@smartbit4all/ng-client 3.3.226 → 3.3.228
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 +36 -2
- package/fesm2015/smartbit4all-ng-client.mjs +35 -1
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +35 -1
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +2 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.228.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,29 @@ 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
|
+
this.setupFilterServices(filterComp);
|
|
15761
|
+
let service = filterComp.service;
|
|
15762
|
+
let identifier = service.config.identifier;
|
|
15763
|
+
if (identifier && !this.filterModelChangeSubjects.has(identifier)) {
|
|
15764
|
+
this.filterModelChangeSubjects.set(identifier, service.modelChanged);
|
|
15765
|
+
service.modelChanged.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
15766
|
+
this.initActions();
|
|
15767
|
+
});
|
|
15768
|
+
}
|
|
15769
|
+
}
|
|
15745
15770
|
}
|
|
15746
15771
|
});
|
|
15747
15772
|
}
|
|
@@ -15763,6 +15788,14 @@ class SmartComponentApiClient {
|
|
|
15763
15788
|
}
|
|
15764
15789
|
}
|
|
15765
15790
|
}
|
|
15791
|
+
setupFilterServices(filterComp) {
|
|
15792
|
+
if (filterComp.service) {
|
|
15793
|
+
let service = filterComp.service;
|
|
15794
|
+
if (this.uuid && this.uuid !== service.config.uuid) {
|
|
15795
|
+
service.config.uuid = this.uuid;
|
|
15796
|
+
}
|
|
15797
|
+
}
|
|
15798
|
+
}
|
|
15766
15799
|
handleQueryListSimple(ql, handler) {
|
|
15767
15800
|
handler();
|
|
15768
15801
|
ql.changes.pipe(takeUntil(this._destroy$)).subscribe(() => handler());
|
|
@@ -16232,6 +16265,7 @@ class SmartComponentApiClient {
|
|
|
16232
16265
|
}
|
|
16233
16266
|
}
|
|
16234
16267
|
else if (reference instanceof SmartFilterEditorContentComponent) {
|
|
16268
|
+
this.setupFilterServices(reference);
|
|
16235
16269
|
if (!skipLoad) {
|
|
16236
16270
|
reference.service.load();
|
|
16237
16271
|
}
|