@indigina/ui-kit 1.1.296 → 1.1.298
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.
|
@@ -7235,8 +7235,8 @@ class KitGridViewsSaveComponent {
|
|
|
7235
7235
|
ngOnInit() {
|
|
7236
7236
|
this.store.select(KIT_GRID_STATE_TOKEN).pipe(filter(({ columns }) => !!columns.length)).subscribe(({ filter, sort, columns }) => {
|
|
7237
7237
|
const selectedViewState = {
|
|
7238
|
-
filter: this.selectedView()?.viewState?.filter,
|
|
7239
|
-
sort: this.selectedView()?.viewState?.sort,
|
|
7238
|
+
filter: this.selectedView()?.viewState?.filter ?? [],
|
|
7239
|
+
sort: this.selectedView()?.viewState?.sort ?? [],
|
|
7240
7240
|
columns: buildGridViewColumns(this.selectedView()?.viewState?.columns ?? []),
|
|
7241
7241
|
};
|
|
7242
7242
|
const currentViewState = {
|
|
@@ -8761,6 +8761,7 @@ class KitGridColumnManagerComponent {
|
|
|
8761
8761
|
this.store = inject(Store);
|
|
8762
8762
|
this.translateService = inject(TranslateService);
|
|
8763
8763
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
8764
|
+
this.kitGridUrlStateService = inject(KitGridUrlStateService);
|
|
8764
8765
|
this.showLabel = input(true, ...(ngDevMode ? [{ debugName: "showLabel" }] : []));
|
|
8765
8766
|
this.dialogContent = viewChild.required('dialogContent');
|
|
8766
8767
|
this.updatedColumns = signal([], ...(ngDevMode ? [{ debugName: "updatedColumns" }] : []));
|
|
@@ -8794,6 +8795,7 @@ class KitGridColumnManagerComponent {
|
|
|
8794
8795
|
new SetGridColumns(this.updatedColumns()),
|
|
8795
8796
|
]).subscribe(() => {
|
|
8796
8797
|
this.hasUnsavedChanges.set(false);
|
|
8798
|
+
this.kitGridUrlStateService.setGridStateToUrl(this.store.selectSnapshot(KIT_GRID_STATE_TOKEN));
|
|
8797
8799
|
this.close();
|
|
8798
8800
|
});
|
|
8799
8801
|
}
|