@smartbit4all/ng-client 3.3.234 → 3.3.236
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/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +3 -1
- package/fesm2015/smartbit4all-ng-client.mjs +16 -4
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +14 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.236.tgz +0 -0
- package/smartbit4all-ng-client-3.3.234.tgz +0 -0
|
@@ -5665,6 +5665,8 @@ class SmartformwidgetComponent {
|
|
|
5665
5665
|
this.onBlur?.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
5666
5666
|
this.getErrorMessage(this.widgetInstance);
|
|
5667
5667
|
});
|
|
5668
|
+
// handle initial error message from server
|
|
5669
|
+
this.getErrorMessage(this.widgetInstance);
|
|
5668
5670
|
if (this.widgetInstance.type === SmartFormWidgetType.INDICATOR &&
|
|
5669
5671
|
this.widgetInstance.indicator) {
|
|
5670
5672
|
if (this.widgetInstance.indicator?.indicatorLength) {
|
|
@@ -14580,8 +14582,6 @@ class SmartFilterEditorContentComponent {
|
|
|
14580
14582
|
this._destroy$.complete();
|
|
14581
14583
|
}
|
|
14582
14584
|
setupSimpleFilter() {
|
|
14583
|
-
this.simpleFilterVcRef?.clear();
|
|
14584
|
-
this.simpleFilterRef?.destroy();
|
|
14585
14585
|
if (!this.simpleFilterVcRef) {
|
|
14586
14586
|
return;
|
|
14587
14587
|
}
|
|
@@ -14629,6 +14629,18 @@ class SmartFilterEditorContentComponent {
|
|
|
14629
14629
|
useOnBlurEvent: true,
|
|
14630
14630
|
widgets,
|
|
14631
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, smartForm)) {
|
|
14636
|
+
// there's no structural change, don't recreate SmartFormComponent
|
|
14637
|
+
comp.smartForm.componentModel = { data: model };
|
|
14638
|
+
comp.constructForm();
|
|
14639
|
+
return;
|
|
14640
|
+
}
|
|
14641
|
+
}
|
|
14642
|
+
this.simpleFilterVcRef?.clear();
|
|
14643
|
+
this.simpleFilterRef?.destroy();
|
|
14632
14644
|
this.simpleFilterRef = this.cfService.createComponent(this.simpleFilterVcRef, SmartformComponent, new Map([['smartForm', smartForm]]));
|
|
14633
14645
|
this.subsrcibeSimpleFormChildrenEvents();
|
|
14634
14646
|
}
|