@indigina/ui-kit 1.1.146 → 1.1.147
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.
|
@@ -4671,7 +4671,7 @@ class KitDatepickerComponent {
|
|
|
4671
4671
|
documentClick(event) {
|
|
4672
4672
|
const target = event.target;
|
|
4673
4673
|
const popup = this.document.querySelector('.kit-datepicker-popup');
|
|
4674
|
-
if (!this.elementRef?.nativeElement.contains(target) && !popup?.contains(target)) {
|
|
4674
|
+
if (!this.elementRef?.nativeElement.contains(target) && !popup?.contains(target) && !target?.matches('.k-link')) {
|
|
4675
4675
|
this.datepicker.toggle(false);
|
|
4676
4676
|
}
|
|
4677
4677
|
}
|
|
@@ -7173,8 +7173,8 @@ class KitGridViewsManagerComponent extends DialogContentBase {
|
|
|
7173
7173
|
this.checkChanges();
|
|
7174
7174
|
}
|
|
7175
7175
|
checkChanges() {
|
|
7176
|
-
const
|
|
7177
|
-
const usedConfig =
|
|
7176
|
+
const views = this.store.selectSnapshot(KIT_GRID_VIEWS_STATE_TOKEN).data.views;
|
|
7177
|
+
const usedConfig = views.map(view => ({ title: view.title, hidden: view.hidden ?? false })) ?? [];
|
|
7178
7178
|
const updatedViews = this.items().map(view => ({ title: view.title, hidden: view.hidden ?? false }));
|
|
7179
7179
|
this.hasUnsavedChanges.set(JSON.stringify(usedConfig) !== JSON.stringify(updatedViews));
|
|
7180
7180
|
}
|
|
@@ -7280,9 +7280,14 @@ class KitGridViewsComponent {
|
|
|
7280
7280
|
this.kitDialogService.dialogRef?.result.pipe(filter(result => !(result instanceof DialogCloseResult))).subscribe(() => {
|
|
7281
7281
|
const views = this.store.selectSnapshot(KitGridViewsState.getViews());
|
|
7282
7282
|
const view = findGridViewByName(views, this.selectedView()?.title ?? '');
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7283
|
+
if (view) {
|
|
7284
|
+
this.store.dispatch(new SetSelectedView(view));
|
|
7285
|
+
}
|
|
7286
|
+
else {
|
|
7287
|
+
const defaultView = findGridViewByName(views, this.defaultViewName());
|
|
7288
|
+
navigateToView(this.defaultViewName(), this.router, this.activatedRoute);
|
|
7289
|
+
defaultView && this.store.dispatch(new SetSelectedView(defaultView));
|
|
7290
|
+
}
|
|
7286
7291
|
});
|
|
7287
7292
|
}
|
|
7288
7293
|
onViewCreate() {
|