@smartbit4all/ng-client 3.3.116 → 3.3.118
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 +9 -3
- package/esm2020/lib/view-context/smart-view-context.service.mjs +4 -1
- package/fesm2015/smartbit4all-ng-client.mjs +11 -2
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +11 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/smart-view-context.service.d.ts +1 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.118.tgz +0 -0
- package/smartbit4all-ng-client-3.3.116.tgz +0 -0
|
@@ -3232,6 +3232,9 @@ class SmartViewContextService {
|
|
|
3232
3232
|
this.handlePerformActionResponse(change);
|
|
3233
3233
|
return change;
|
|
3234
3234
|
}
|
|
3235
|
+
getCurrentViewContext() {
|
|
3236
|
+
return this.viewContext;
|
|
3237
|
+
}
|
|
3235
3238
|
}
|
|
3236
3239
|
SmartViewContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, deps: [{ token: ViewService }, { token: SmartSessionService }, { token: SmartNavigationService }, { token: SmartViewContextDialogService }, { token: ApiQueueService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3237
3240
|
SmartViewContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: SmartViewContextService, providedIn: 'root' });
|
|
@@ -15128,9 +15131,15 @@ class SmartComponentApiClient {
|
|
|
15128
15131
|
actionModel.push(action);
|
|
15129
15132
|
});
|
|
15130
15133
|
this.uiActionModels = globalUiActionModels;
|
|
15131
|
-
toolbars.
|
|
15134
|
+
Promise.all(toolbars.map((toolbar) => {
|
|
15132
15135
|
toolbar.uiActionModels = toolbarModels.get(toolbar.id);
|
|
15133
|
-
toolbar.setUp();
|
|
15136
|
+
return toolbar.setUp();
|
|
15137
|
+
}))
|
|
15138
|
+
.then(() => {
|
|
15139
|
+
// continue code here if needed
|
|
15140
|
+
})
|
|
15141
|
+
.catch((error) => {
|
|
15142
|
+
console.error('An error occurred during toolbar setup:', error);
|
|
15134
15143
|
});
|
|
15135
15144
|
}
|
|
15136
15145
|
}
|