@kuzntsv/uikit 1.0.127 → 1.0.128
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,8 +1713,16 @@ 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
1717
|
constructor() {
|
|
1718
|
+
let isFirstLoadSynced = false;
|
|
1719
|
+
effect(() => {
|
|
1720
|
+
const parentFilters = this.filters();
|
|
1721
|
+
if (!isFirstLoadSynced && Object.keys(parentFilters).length > 0) {
|
|
1722
|
+
this.internalFilterSignal.set({ ...parentFilters });
|
|
1723
|
+
isFirstLoadSynced = true;
|
|
1724
|
+
}
|
|
1725
|
+
}, { allowSignalWrites: true });
|
|
1718
1726
|
effect(() => {
|
|
1719
1727
|
if (this.isUseInternalFilterSignal) {
|
|
1720
1728
|
const stableLocalValue = this.internalFilterSignal();
|