@smartbit4all/ng-client 3.3.235 → 3.3.237
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.
- package/esm2020/lib/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +14 -3
- package/fesm2015/smartbit4all-ng-client.mjs +14 -4
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +12 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.237.tgz +0 -0
- package/smartbit4all-ng-client-3.3.235.tgz +0 -0
|
@@ -14582,8 +14582,6 @@ class SmartFilterEditorContentComponent {
|
|
|
14582
14582
|
this._destroy$.complete();
|
|
14583
14583
|
}
|
|
14584
14584
|
setupSimpleFilter() {
|
|
14585
|
-
this.simpleFilterVcRef?.clear();
|
|
14586
|
-
this.simpleFilterRef?.destroy();
|
|
14587
14585
|
if (!this.simpleFilterVcRef) {
|
|
14588
14586
|
return;
|
|
14589
14587
|
}
|
|
@@ -14631,6 +14629,18 @@ class SmartFilterEditorContentComponent {
|
|
|
14631
14629
|
useOnBlurEvent: true,
|
|
14632
14630
|
widgets,
|
|
14633
14631
|
};
|
|
14632
|
+
if (this.simpleFilterRef?.instance) {
|
|
14633
|
+
// we already have a SmartFormComponent, use that
|
|
14634
|
+
let comp = this.simpleFilterRef?.instance;
|
|
14635
|
+
if (comp.smartForm && deepEqual(comp.smartForm.widgets, smartForm.widgets)) {
|
|
14636
|
+
// there's no structural change, don't recreate SmartFormComponent
|
|
14637
|
+
comp.smartForm.componentModel = smartForm.componentModel;
|
|
14638
|
+
comp.constructForm();
|
|
14639
|
+
return;
|
|
14640
|
+
}
|
|
14641
|
+
}
|
|
14642
|
+
this.simpleFilterVcRef?.clear();
|
|
14643
|
+
this.simpleFilterRef?.destroy();
|
|
14634
14644
|
this.simpleFilterRef = this.cfService.createComponent(this.simpleFilterVcRef, SmartformComponent, new Map([['smartForm', smartForm]]));
|
|
14635
14645
|
this.subsrcibeSimpleFormChildrenEvents();
|
|
14636
14646
|
}
|