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