@indigina/ui-kit 1.1.634 → 1.1.636
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.
|
@@ -17057,8 +17057,18 @@ class KitGridColumnManagerComponent {
|
|
|
17057
17057
|
}
|
|
17058
17058
|
applyChanges() {
|
|
17059
17059
|
const { sort: sortDescriptor } = this.store.selectSnapshot(KIT_GRID_STATE_TOKEN);
|
|
17060
|
-
const visibleColumns = new Set(this.updatedColumns()
|
|
17061
|
-
|
|
17060
|
+
const visibleColumns = new Set(this.updatedColumns()
|
|
17061
|
+
.filter(({ hidden, hiddenInGrid }) => !hidden && !hiddenInGrid)
|
|
17062
|
+
.map(({ field }) => field));
|
|
17063
|
+
const sort = sortDescriptor.filter(({ field, dir }) => visibleColumns.has(field) &&
|
|
17064
|
+
(dir === KitSortDirection.ASC || dir === KitSortDirection.DESC));
|
|
17065
|
+
if (!sort.length) {
|
|
17066
|
+
const fallbackColumn = this.updatedColumns()
|
|
17067
|
+
.find(({ field, sortable = true }) => visibleColumns.has(field) && sortable);
|
|
17068
|
+
if (fallbackColumn) {
|
|
17069
|
+
sort.push({ field: fallbackColumn.field, dir: KitSortDirection.DESC });
|
|
17070
|
+
}
|
|
17071
|
+
}
|
|
17062
17072
|
this.store.dispatch([
|
|
17063
17073
|
new SetGridSort(sort),
|
|
17064
17074
|
new SetGridColumns(this.updatedColumns()),
|
|
@@ -17912,9 +17922,8 @@ class KitTranslateLoader {
|
|
|
17912
17922
|
};
|
|
17913
17923
|
}
|
|
17914
17924
|
getTranslation(lang) {
|
|
17915
|
-
const
|
|
17916
|
-
const
|
|
17917
|
-
const overridePath = `${this.overridePathPrefix}/${lang}.json?v=${timestamp}`;
|
|
17925
|
+
const defaultPath = `${this.defaultPathPerfix}/${lang}.json`;
|
|
17926
|
+
const overridePath = `${this.overridePathPrefix}/${lang}.json`;
|
|
17918
17927
|
return forkJoin({
|
|
17919
17928
|
default: this.http.get(defaultPath).pipe(catchError$1(() => of({}))),
|
|
17920
17929
|
override: this.http.get(overridePath).pipe(catchError$1(() => of({}))),
|