@smartbit4all/ng-client 1.0.19 → 1.0.20
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 +2 -1
- package/esm2020/lib/view-context/smart-view-context.service.mjs +7 -3
- package/fesm2015/smartbit4all-ng-client.mjs +7 -2
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +7 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/smart-view-context.service.d.ts +2 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.20.tgz +0 -0
- package/smartbit4all-ng-client-1.0.19.tgz +0 -0
|
@@ -2089,7 +2089,9 @@ class SmartViewContextService {
|
|
|
2089
2089
|
}
|
|
2090
2090
|
async startViewContext() {
|
|
2091
2091
|
this.clearSessionStorage();
|
|
2092
|
-
let newViewContext = await this.view
|
|
2092
|
+
let newViewContext = await this.view
|
|
2093
|
+
.createViewContext()
|
|
2094
|
+
.toPromise();
|
|
2093
2095
|
if (!newViewContext) {
|
|
2094
2096
|
throw new Error('No ViewContext was created');
|
|
2095
2097
|
}
|
|
@@ -2230,7 +2232,9 @@ class SmartViewContextService {
|
|
|
2230
2232
|
return uuid;
|
|
2231
2233
|
}
|
|
2232
2234
|
async message(messageData, messageResult) {
|
|
2233
|
-
await this.view
|
|
2235
|
+
await this.view
|
|
2236
|
+
.message(messageData.viewUuid ?? '', messageData.uuid, messageResult)
|
|
2237
|
+
.toPromise();
|
|
2234
2238
|
await this.getAndSyncViewContext();
|
|
2235
2239
|
}
|
|
2236
2240
|
getSmartViewContextApiErrorByCode(code) {
|
|
@@ -3865,6 +3869,7 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
3865
3869
|
smartGrid.uiActionService = this.uiActionService;
|
|
3866
3870
|
smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
|
|
3867
3871
|
smartGrid.serviceToUse = this;
|
|
3872
|
+
smartGrid.viewContextService = this.viewContext;
|
|
3868
3873
|
if (useAsDefaultGrid) {
|
|
3869
3874
|
this.smartGrid = smartGrid;
|
|
3870
3875
|
return this.smartGrid;
|