File tree Expand file tree Collapse file tree 18 files changed +96
-12
lines changed Expand file tree Collapse file tree 18 files changed +96
-12
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * ** data-grid:** allow empty date ([ #2322 ] ( https://github.com/telekom/scale/issues/2322 ) ) ([ 116b50e] ( https://github.com/telekom/scale/commit/116b50e7a8712722f76edb9727ae0d9996aa516f ) )
12
+ * ** data-grid:** re-apply sort on data change ([ #2324 ] ( https://github.com/telekom/scale/issues/2324 ) ) ([ 3558e4b] ( https://github.com/telekom/scale/commit/3558e4b3ffd0b39fa34e7674c94482b8f82707f9 ) )
13
+ * ** dropdown-select:** remove type keyword in import ([ #2310 ] ( https://github.com/telekom/scale/issues/2310 ) ) ([ 7304444] ( https://github.com/telekom/scale/commit/7304444f9dfee131496db39b28d99d46538946bb ) )
14
+
15
+
16
+
17
+
18
+
6
19
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
20
8
21
Original file line number Diff line number Diff line change 7
7
" --pure-lockfile"
8
8
],
9
9
"useWorkspaces" : true ,
10
- "version" : " 3.0.0-beta.151 " ,
10
+ "version" : " 3.0.0-beta.152 " ,
11
11
"command" : {
12
12
"version" : {
13
13
"allowBranch" : " main"
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+ ** Note:** Version bump only for package @telekom/scale-components-angular
9
+
10
+
11
+
12
+
13
+
6
14
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
15
8
16
** Note:** Version bump only for package @telekom/scale-components-angular
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @telekom/scale-components-angular" ,
3
- "version" : " 3.0.0-beta.151 " ,
3
+ "version" : " 3.0.0-beta.152 " ,
4
4
"description" : " Angular specific wrapper for @telekom/scale-components" ,
5
5
"license" : " MPL-2.0" ,
6
6
"homepage" : " https://github.com/telekom/scale" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+ ** Note:** Version bump only for package @telekom/scale-components-react
9
+
10
+
11
+
12
+
13
+
6
14
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
15
8
16
** Note:** Version bump only for package @telekom/scale-components-react
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @telekom/scale-components-react" ,
3
3
"sideEffects" : false ,
4
- "version" : " 3.0.0-beta.151 " ,
4
+ "version" : " 3.0.0-beta.152 " ,
5
5
"description" : " React proxy for @telekom/scale-components" ,
6
6
"license" : " MPL-2.0" ,
7
7
"homepage" : " https://github.com/telekom/scale" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+ ** Note:** Version bump only for package @telekom/scale-components-vue
9
+
10
+
11
+
12
+
13
+
6
14
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
15
8
16
** Note:** Version bump only for package @telekom/scale-components-vue
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @telekom/scale-components-vue" ,
3
3
"sideEffects" : false ,
4
- "version" : " 3.0.0-beta.151 " ,
4
+ "version" : " 3.0.0-beta.152 " ,
5
5
"description" : " Vue specific wrapper for @telekom/scale-components" ,
6
6
"license" : " MPL-2.0" ,
7
7
"homepage" : " https://github.com/telekom/scale" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * ** data-grid:** allow empty date ([ #2322 ] ( https://github.com/telekom/scale/issues/2322 ) ) ([ 116b50e] ( https://github.com/telekom/scale/commit/116b50e7a8712722f76edb9727ae0d9996aa516f ) )
12
+ * ** data-grid:** re-apply sort on data change ([ #2324 ] ( https://github.com/telekom/scale/issues/2324 ) ) ([ 3558e4b] ( https://github.com/telekom/scale/commit/3558e4b3ffd0b39fa34e7674c94482b8f82707f9 ) )
13
+ * ** dropdown-select:** remove type keyword in import ([ #2310 ] ( https://github.com/telekom/scale/issues/2310 ) ) ([ 7304444] ( https://github.com/telekom/scale/commit/7304444f9dfee131496db39b28d99d46538946bb ) )
14
+
15
+
16
+
17
+
18
+
6
19
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
20
8
21
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @telekom/scale-components" ,
3
- "version" : " 3.0.0-beta.151 " ,
3
+ "version" : " 3.0.0-beta.152 " ,
4
4
"description" : " Scale is the digital design system for Telekom products and experiences." ,
5
5
"homepage" : " https://github.com/telekom/scale" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export const DateCell: Cell = {
24
24
sortBy : 'date' ,
25
25
} ,
26
26
render : ( { content, isAutoWidthCheck } ) => {
27
- let value = content ;
27
+ let value = content ?? '' ;
28
28
29
29
// Render all digits with 8s as they're the widest
30
30
if ( isAutoWidthCheck ) {
Original file line number Diff line number Diff line change @@ -209,6 +209,8 @@ export class DataGrid {
209
209
this . parseFields ( ) ;
210
210
this . checkForMobileTitle ( ) ;
211
211
this . checkForSortableFields ( ) ;
212
+ // if the fields have changed then reset the sorting as the field may no longer be sortable
213
+ this . resetSortingToggle ( ) ;
212
214
this . dataNeedsCheck = true ;
213
215
}
214
216
@Watch ( 'rows' )
@@ -220,7 +222,6 @@ export class DataGrid {
220
222
}
221
223
this . parseRows ( ) ;
222
224
this . setInitialRowProps ( ) ;
223
- this . resetSortingToggle ( ) ;
224
225
this . dataNeedsCheck = true ;
225
226
// Set flag to dirty to redo column width with new data
226
227
this . needsAutoWidthParse = true ;
@@ -235,6 +236,15 @@ export class DataGrid {
235
236
// step back one page
236
237
this . paginationStart = this . paginationStart - this . pageSize ;
237
238
}
239
+
240
+ // If the table was sorted and the data has changed then apply the existing sorting again
241
+ if ( this . activeSortingIndex !== - 1 ) {
242
+ this . sortTable (
243
+ this . fields [ this . activeSortingIndex ] . sortDirection ,
244
+ this . fields [ this . activeSortingIndex ] . type ,
245
+ this . activeSortingIndex
246
+ ) ;
247
+ }
238
248
}
239
249
240
250
/* 8. Public Methods */
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+ ** Note:** Version bump only for package @telekom/scale-design-tokens
9
+
10
+
11
+
12
+
13
+
6
14
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
15
8
16
** Note:** Version bump only for package @telekom/scale-design-tokens
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @telekom/scale-design-tokens" ,
3
- "version" : " 3.0.0-beta.151 " ,
3
+ "version" : " 3.0.0-beta.152 " ,
4
4
"type" : " module" ,
5
5
"description" : " Design Tokens for the Scale Design System" ,
6
6
"homepage" : " https://github.com/telekom/scale" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+ ** Note:** Version bump only for package @telekom/scale-storybook-vue
9
+
10
+
11
+
12
+
13
+
6
14
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
15
8
16
Original file line number Diff line number Diff line change 2
2
"homepage" : " https://telekom.github.io/scale" ,
3
3
"name" : " @telekom/scale-storybook-vue" ,
4
4
"private" : true ,
5
- "version" : " 3.0.0-beta.151 " ,
5
+ "version" : " 3.0.0-beta.152 " ,
6
6
"main" : " index.js" ,
7
7
"license" : " MPL-2.0" ,
8
8
"devDependencies" : {
32
32
"dependencies" : {
33
33
"@storybook/addon-viewport" : " ^6.4.22" ,
34
34
"@telekom/design-tokens" : " ^1.0.0-beta.2" ,
35
- "@telekom/scale-components" : " ^3.0.0-beta.151 " ,
36
- "@telekom/scale-components-vue" : " ^3.0.0-beta.151 "
35
+ "@telekom/scale-components" : " ^3.0.0-beta.152 " ,
36
+ "@telekom/scale-components-vue" : " ^3.0.0-beta.152 "
37
37
},
38
38
"scripts" : {
39
39
"prestart" : " rm -rf node_modules/.cache/ && yes | cp -a ../components/dist/scale-components/fonts/* public/fonts/ && yes | cp -a ../components/dist/scale-components/scale-components.css public/" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 3.0.0-beta.152] ( https://github.com/telekom/scale/compare/v3.0.0-beta.151...v3.0.0-beta.152 ) (2024-07-10)
7
+
8
+ ** Note:** Version bump only for package @telekom/scale-visual-tests
9
+
10
+
11
+
12
+
13
+
6
14
# [ 3.0.0-beta.151] ( https://github.com/telekom/scale/compare/v3.0.0-beta.150...v3.0.0-beta.151 ) (2024-04-12)
7
15
8
16
** Note:** Version bump only for package @telekom/scale-visual-tests
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @telekom/scale-visual-tests" ,
3
3
"private" : true ,
4
- "version" : " 3.0.0-beta.151 " ,
4
+ "version" : " 3.0.0-beta.152 " ,
5
5
"main" : " index.js" ,
6
6
"license" : " MPL-2.0" ,
7
7
"scripts" : {
You can’t perform that action at this time.
0 commit comments