@smartbit4all/ng-client 3.3.134 → 3.3.135
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 +12 -5
- package/fesm2015/smartbit4all-ng-client.mjs +11 -4
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +11 -4
- 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.135.tgz +0 -0
- package/smartbit4all-ng-client-3.3.134.tgz +0 -0
|
@@ -15016,6 +15016,7 @@ class SmartComponentApiClient {
|
|
|
15016
15016
|
}
|
|
15017
15017
|
if (this.uuid && this.uuid !== comp.uuid)
|
|
15018
15018
|
comp.uuid = this.uuid;
|
|
15019
|
+
SmartComponentLayoutUtility.getGrids(comp).forEach((grid) => this.setupGridServices(grid));
|
|
15019
15020
|
});
|
|
15020
15021
|
// for handling embedded forms
|
|
15021
15022
|
this.handleQueryList(this.getSmartComponentLayoutsQL(), (form) => {
|
|
@@ -15037,10 +15038,7 @@ class SmartComponentApiClient {
|
|
|
15037
15038
|
this.handleQueryList(this.getSmartGridsQL(), (grid) => {
|
|
15038
15039
|
if (grid) {
|
|
15039
15040
|
if (grid.smartGrid) {
|
|
15040
|
-
|
|
15041
|
-
grid.smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
|
|
15042
|
-
grid.smartGrid.serviceToUse = this;
|
|
15043
|
-
grid.smartGrid.viewContextService = this.viewContext;
|
|
15041
|
+
this.setupGridServices(grid);
|
|
15044
15042
|
grid.setupToolbar();
|
|
15045
15043
|
if (grid.toolbar) {
|
|
15046
15044
|
this.initActions();
|
|
@@ -15053,6 +15051,14 @@ class SmartComponentApiClient {
|
|
|
15053
15051
|
}
|
|
15054
15052
|
}
|
|
15055
15053
|
}
|
|
15054
|
+
setupGridServices(grid) {
|
|
15055
|
+
if (grid.smartGrid && !grid.smartGrid.uiActionService) {
|
|
15056
|
+
grid.smartGrid.uiActionService = this.uiActionService;
|
|
15057
|
+
grid.smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
|
|
15058
|
+
grid.smartGrid.serviceToUse = this;
|
|
15059
|
+
grid.smartGrid.viewContextService = this.viewContext;
|
|
15060
|
+
}
|
|
15061
|
+
}
|
|
15056
15062
|
handleQueryListSimple(ql, handler) {
|
|
15057
15063
|
handler();
|
|
15058
15064
|
ql.changes.pipe(takeUntil(this._destroy$)).subscribe(() => handler());
|
|
@@ -15502,6 +15508,7 @@ class SmartComponentApiClient {
|
|
|
15502
15508
|
changedWidgets.forEach((key) => {
|
|
15503
15509
|
const reference = widgets.get(key);
|
|
15504
15510
|
if (reference instanceof SmartGridComponent) {
|
|
15511
|
+
this.setupGridServices(reference);
|
|
15505
15512
|
reference.refresh();
|
|
15506
15513
|
}
|
|
15507
15514
|
else if (reference instanceof SmarttreeGenericService) {
|