@kuzntsv/uikit 1.0.130 → 1.0.132

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.
@@ -1713,7 +1713,7 @@ var BaseSignalFilterClass = class BaseSignalFilterClass {
1713
1713
  filters = model({}, ...ngDevMode ? [{ debugName: "filters" }] : /* istanbul ignore next */ []);
1714
1714
  clearFilter = input(null, ...ngDevMode ? [{ debugName: "clearFilter" }] : /* istanbul ignore next */ []);
1715
1715
  isUseInternalFilterSignal = 0;
1716
- internalFilterSignal = signal({ ...this.filters() }, ...ngDevMode ? [{ debugName: "internalFilterSignal" }] : /* istanbul ignore next */ []);
1716
+ internalFilterSignal = signal(this.filters(), ...ngDevMode ? [{ debugName: "internalFilterSignal" }] : /* istanbul ignore next */ []);
1717
1717
  constructor() {
1718
1718
  effect(() => {
1719
1719
  if (this.isUseInternalFilterSignal) {
@@ -1723,7 +1723,8 @@ var BaseSignalFilterClass = class BaseSignalFilterClass {
1723
1723
  }
1724
1724
  });
1725
1725
  effect(() => {
1726
- this.clearFilter();
1726
+ const clearFilter = this.clearFilter();
1727
+ if (!(clearFilter && typeof clearFilter === "object" && Object.keys(clearFilter).length === 0)) return;
1727
1728
  if (this.isUseInternalFilterSignal) this.internalFilterSignal.set({ ...this.DEFAULT_FILTER });
1728
1729
  else this.filters.set({ ...this.DEFAULT_FILTER });
1729
1730
  });