@smartbit4all/ng-client 1.1.17 → 1.1.19
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/view-context/smart-view-context.service.mjs +11 -9
- package/fesm2015/smartbit4all-ng-client.mjs +12 -10
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +10 -8
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.1.19.tgz +0 -0
- package/smartbit4all-ng-client-1.1.17.tgz +0 -0
|
@@ -2144,8 +2144,8 @@ class SmartViewContextService {
|
|
|
2144
2144
|
if (!uuid) {
|
|
2145
2145
|
uuid = this.getUuidOfPage(this.tabIdName);
|
|
2146
2146
|
}
|
|
2147
|
-
await this.getViewContext(uuid).then(() => {
|
|
2148
|
-
this.syncView();
|
|
2147
|
+
await this.getViewContext(uuid).then(async () => {
|
|
2148
|
+
await this.syncView();
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
2151
|
async getViewContext(uuid) {
|
|
@@ -2226,6 +2226,7 @@ class SmartViewContextService {
|
|
|
2226
2226
|
if (!viewHandler) {
|
|
2227
2227
|
throw new Error(`SmartViewHandlerModel was not found by view name: ${view.viewName}`);
|
|
2228
2228
|
}
|
|
2229
|
+
sessionStorage.setItem(view.viewName, view.uuid);
|
|
2229
2230
|
if (view.type === ViewType.Dialog) {
|
|
2230
2231
|
if (!viewHandler.component) {
|
|
2231
2232
|
throw new Error(`Component is undefined in SmartViewHandlerModel with name: ${view.viewName}`);
|
|
@@ -2253,7 +2254,6 @@ class SmartViewContextService {
|
|
|
2253
2254
|
view.state = ViewState.Opened;
|
|
2254
2255
|
this.openedViewUuids.push(view.uuid);
|
|
2255
2256
|
this.openedViewData.push(view);
|
|
2256
|
-
sessionStorage.setItem(view.viewName, view.uuid);
|
|
2257
2257
|
this.uuidOfPageHasBeenChanged.next(view.viewName);
|
|
2258
2258
|
await this.updateViewContext({
|
|
2259
2259
|
updates: [
|
|
@@ -2290,8 +2290,10 @@ class SmartViewContextService {
|
|
|
2290
2290
|
}
|
|
2291
2291
|
view.state = ViewState.Closed;
|
|
2292
2292
|
const index = this.openedViewUuids.indexOf(view.uuid);
|
|
2293
|
-
|
|
2294
|
-
|
|
2293
|
+
if (index >= 0) {
|
|
2294
|
+
this.openedViewUuids.splice(index, 1);
|
|
2295
|
+
this.openedViewData.splice(index, 1);
|
|
2296
|
+
}
|
|
2295
2297
|
sessionStorage.removeItem(view.viewName);
|
|
2296
2298
|
await this.updateViewContext({
|
|
2297
2299
|
updates: [
|
|
@@ -2307,8 +2309,8 @@ class SmartViewContextService {
|
|
|
2307
2309
|
if (!this.viewContext) {
|
|
2308
2310
|
await this.getViewContext(uuid);
|
|
2309
2311
|
}
|
|
2310
|
-
this.viewContext.views.map((view) => {
|
|
2311
|
-
this.openView(view);
|
|
2312
|
+
this.viewContext.views.map(async (view) => {
|
|
2313
|
+
await this.openView(view);
|
|
2312
2314
|
});
|
|
2313
2315
|
}
|
|
2314
2316
|
async syncView() {
|
|
@@ -2467,7 +2469,7 @@ class SmartViewContextService {
|
|
|
2467
2469
|
}
|
|
2468
2470
|
async handlePerformActionResponse(viewContextChange) {
|
|
2469
2471
|
this.viewContext = viewContextChange?.viewContext;
|
|
2470
|
-
this.syncView();
|
|
2472
|
+
await this.syncView();
|
|
2471
2473
|
if (viewContextChange?.changes) {
|
|
2472
2474
|
this.handleChanges(viewContextChange.changes);
|
|
2473
2475
|
}
|