@kuzntsv/uikit 1.0.53 → 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.
|
@@ -2638,6 +2638,21 @@ var BaseSignalFilterClass = class BaseSignalFilterClass {
|
|
|
2638
2638
|
defaultDebounceTime = 500;
|
|
2639
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",
|
|
@@ -2677,6 +2692,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2677
2692
|
ngImport: i0,
|
|
2678
2693
|
type: BaseSignalFilterClass,
|
|
2679
2694
|
decorators: [{ type: Directive }],
|
|
2695
|
+
ctorParameters: () => [],
|
|
2680
2696
|
propDecorators: {
|
|
2681
2697
|
filters: [{
|
|
2682
2698
|
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.
|
|
3059
|
+
dialogConfig.panelClass = this.constructor.name + "-edit-dialog";
|
|
3045
3060
|
return dialog.open(entityComponent, dialogConfig);
|
|
3046
3061
|
}
|
|
3047
3062
|
openDialogRemoveConfirm(removalMessage) {
|