@smartbit4all/ng-client 3.3.226 → 3.3.227
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-client/smart-component-api-client.mjs +29 -2
- package/fesm2015/smartbit4all-ng-client.mjs +28 -1
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +28 -1
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +1 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.227.tgz +0 -0
- package/smartbit4all-ng-client-3.3.226.tgz +0 -0
|
@@ -15609,6 +15609,7 @@ class SmartComponentApiClient {
|
|
|
15609
15609
|
this.sendModelOnWidgetAction = false;
|
|
15610
15610
|
this.dataChangeKeys = [];
|
|
15611
15611
|
this.dataChangeActionHandlers = new Map();
|
|
15612
|
+
this.filterModelChangeSubjects = new Map();
|
|
15612
15613
|
// check and calculate pageName
|
|
15613
15614
|
if (!this.pageName && !this._componentName) {
|
|
15614
15615
|
throw new Error('pageName or componentName must be specified!');
|
|
@@ -15696,6 +15697,9 @@ class SmartComponentApiClient {
|
|
|
15696
15697
|
_ngOnDestroy() {
|
|
15697
15698
|
this.viewContext.unfollow(this.uuid);
|
|
15698
15699
|
this.widgets.clear();
|
|
15700
|
+
this.formWidgets.clear();
|
|
15701
|
+
this.dataChangeActionHandlers.clear();
|
|
15702
|
+
this.filterModelChangeSubjects.clear();
|
|
15699
15703
|
this._destroy$.next();
|
|
15700
15704
|
this._destroy$.complete();
|
|
15701
15705
|
}
|
|
@@ -15740,8 +15744,31 @@ class SmartComponentApiClient {
|
|
|
15740
15744
|
this.initActions();
|
|
15741
15745
|
}
|
|
15742
15746
|
}
|
|
15743
|
-
if (this.uuid && this.uuid !== grid.uuid)
|
|
15747
|
+
if (this.uuid && this.uuid !== grid.uuid) {
|
|
15744
15748
|
grid.uuid = this.uuid;
|
|
15749
|
+
}
|
|
15750
|
+
}
|
|
15751
|
+
});
|
|
15752
|
+
}
|
|
15753
|
+
if (!this.getSmartFilterEditorContentComponentsQL()) {
|
|
15754
|
+
console.warn('SmartFilterEditorContentComponentsQL not available!');
|
|
15755
|
+
}
|
|
15756
|
+
else {
|
|
15757
|
+
this.handleQueryList(this.getSmartFilterEditorContentComponentsQL(), (filterComp) => {
|
|
15758
|
+
if (filterComp) {
|
|
15759
|
+
if (filterComp.service) {
|
|
15760
|
+
let service = filterComp.service;
|
|
15761
|
+
if (this.uuid && this.uuid !== service.config.uuid) {
|
|
15762
|
+
service.config.uuid = this.uuid;
|
|
15763
|
+
}
|
|
15764
|
+
let identifier = service.config.identifier;
|
|
15765
|
+
if (identifier && !this.filterModelChangeSubjects.has(identifier)) {
|
|
15766
|
+
this.filterModelChangeSubjects.set(identifier, service.modelChanged);
|
|
15767
|
+
service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
15768
|
+
this.initActions();
|
|
15769
|
+
});
|
|
15770
|
+
}
|
|
15771
|
+
}
|
|
15745
15772
|
}
|
|
15746
15773
|
});
|
|
15747
15774
|
}
|