@kuzntsv/uikit 1.0.52 → 1.0.54

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.
@@ -2636,8 +2636,23 @@ var BaseSignalFilterClass = class BaseSignalFilterClass {
2636
2636
  loaderService = inject(LoaderService);
2637
2637
  notificationService = inject(NotificationService);
2638
2638
  defaultDebounceTime = 500;
2639
- filter = model({}, ...ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []);
2639
+ filters = model({}, ...ngDevMode ? [{ debugName: "filters" }] : /* istanbul ignore next */ []);
2640
2640
  clearFilter = input(null, ...ngDevMode ? [{ debugName: "clearFilter" }] : /* istanbul ignore next */ []);
2641
+ isUseInternalFilterSignal = 0;
2642
+ internalFilterSignal = signal({ ...this.filters() }, ...ngDevMode ? [{ debugName: "internalFilterSignal" }] : /* istanbul ignore next */ []);
2643
+ constructor() {
2644
+ effect(() => {
2645
+ if (this.isUseInternalFilterSignal) {
2646
+ const stableLocalValue = this.internalFilterSignal();
2647
+ if (JSON.stringify(stableLocalValue) !== JSON.stringify(this.filters())) this.filters.set(stableLocalValue);
2648
+ }
2649
+ });
2650
+ effect(() => {
2651
+ this.clearFilter();
2652
+ if (this.isUseInternalFilterSignal) this.internalFilterSignal.set({ ...this.DEFAULT_FILTER });
2653
+ else this.filters.set({ ...this.DEFAULT_FILTER });
2654
+ });
2655
+ }
2641
2656
  static ɵfac = i0.ɵɵngDeclareFactory({
2642
2657
  minVersion: "12.0.0",
2643
2658
  version: "22.2.2",
@@ -2652,9 +2667,9 @@ var BaseSignalFilterClass = class BaseSignalFilterClass {
2652
2667
  type: BaseSignalFilterClass,
2653
2668
  isStandalone: true,
2654
2669
  inputs: {
2655
- filter: {
2656
- classPropertyName: "filter",
2657
- publicName: "filter",
2670
+ filters: {
2671
+ classPropertyName: "filters",
2672
+ publicName: "filters",
2658
2673
  isSignal: true,
2659
2674
  isRequired: false,
2660
2675
  transformFunction: null
@@ -2667,7 +2682,7 @@ var BaseSignalFilterClass = class BaseSignalFilterClass {
2667
2682
  transformFunction: null
2668
2683
  }
2669
2684
  },
2670
- outputs: { filter: "filterChange" },
2685
+ outputs: { filters: "filtersChange" },
2671
2686
  ngImport: i0
2672
2687
  });
2673
2688
  };
@@ -2677,17 +2692,18 @@ i0.ɵɵngDeclareClassMetadata({
2677
2692
  ngImport: i0,
2678
2693
  type: BaseSignalFilterClass,
2679
2694
  decorators: [{ type: Directive }],
2695
+ ctorParameters: () => [],
2680
2696
  propDecorators: {
2681
- filter: [{
2697
+ filters: [{
2682
2698
  type: i0.Input,
2683
2699
  args: [{
2684
2700
  isSignal: true,
2685
- alias: "filter",
2701
+ alias: "filters",
2686
2702
  required: false
2687
2703
  }]
2688
2704
  }, {
2689
2705
  type: i0.Output,
2690
- args: ["filterChange"]
2706
+ args: ["filtersChange"]
2691
2707
  }],
2692
2708
  clearFilter: [{
2693
2709
  type: i0.Input,
@@ -2701,7 +2717,6 @@ i0.ɵɵngDeclareClassMetadata({
2701
2717
  });
2702
2718
  var BaseSignalPageClass = class BaseSignalPageClass {
2703
2719
  dialog = inject(MatDialog);
2704
- entityType;
2705
2720
  entityService;
2706
2721
  entityEditComponent;
2707
2722
  extraData;
@@ -3041,7 +3056,7 @@ var BaseSignalPageClass = class BaseSignalPageClass {
3041
3056
  dialogConfig.autoFocus = true;
3042
3057
  dialogConfig.width = this.dialogEditWidth;
3043
3058
  dialogConfig.data = data;
3044
- dialogConfig.panelClass = this.entityType.name + "-edit-dialog";
3059
+ dialogConfig.panelClass = this.constructor.name + "-edit-dialog";
3045
3060
  return dialog.open(entityComponent, dialogConfig);
3046
3061
  }
3047
3062
  openDialogRemoveConfirm(removalMessage) {