@one-paragon/angular-utilities 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3163,12 +3163,12 @@ class TableStore extends ComponentStore {
|
|
|
3163
3163
|
let nextSort;
|
|
3164
3164
|
switch (currentGroupBy.sort) {
|
|
3165
3165
|
case '':
|
|
3166
|
-
nextSort = 'asc';
|
|
3167
|
-
break;
|
|
3168
|
-
case 'asc':
|
|
3169
3166
|
nextSort = 'desc';
|
|
3170
3167
|
break;
|
|
3171
3168
|
case 'desc':
|
|
3169
|
+
nextSort = 'asc';
|
|
3170
|
+
break;
|
|
3171
|
+
case 'asc':
|
|
3172
3172
|
nextSort = '';
|
|
3173
3173
|
break;
|
|
3174
3174
|
}
|
|
@@ -4508,7 +4508,7 @@ class GenericTableComponent {
|
|
|
4508
4508
|
this.$trackByFunction = computed(() => {
|
|
4509
4509
|
const trackBy = this.$trackBy();
|
|
4510
4510
|
if (!trackBy)
|
|
4511
|
-
return (index, item) => item[initIndexSymbol];
|
|
4511
|
+
return (index, item) => isGroupHeader(item) ? `${item.level}-${item[initIndexSymbol]}` : item[initIndexSymbol];
|
|
4512
4512
|
return ((index, item) => isGroupHeader(item) ? `${item.level}-${item[initIndexSymbol]}` : item[trackBy]);
|
|
4513
4513
|
});
|
|
4514
4514
|
this.$hasFooterMeta = computed(() => this.state.$metaDataArray().some(md => !!md.additional?.footer));
|