@kuzntsv/uikit 1.0.129 → 1.0.130

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,16 +1713,13 @@ 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({}, ...ngDevMode ? [{ debugName: "internalFilterSignal" }] : /* istanbul ignore next */ []);
1717
- ngOnInit() {
1718
- if (this.isUseInternalFilterSignal) this.internalFilterSignal.set({ ...this.filters() });
1719
- }
1716
+ internalFilterSignal = signal({ ...this.filters() }, ...ngDevMode ? [{ debugName: "internalFilterSignal" }] : /* istanbul ignore next */ []);
1720
1717
  constructor() {
1721
1718
  effect(() => {
1722
1719
  if (this.isUseInternalFilterSignal) {
1723
1720
  const stableLocalValue = this.internalFilterSignal();
1724
1721
  if (Object.keys(stableLocalValue).length === 0) return;
1725
- if (JSON.stringify(stableLocalValue) !== JSON.stringify(this.filters())) this.filters.set(stableLocalValue);
1722
+ if (Object.keys(stableLocalValue).length > 0 && JSON.stringify(stableLocalValue) !== JSON.stringify(this.filters())) this.filters.set(stableLocalValue);
1726
1723
  }
1727
1724
  });
1728
1725
  effect(() => {