@smartbit4all/ng-client 1.1.22 → 1.1.23
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 +7 -5
- package/fesm2015/smartbit4all-ng-client.mjs +6 -4
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +6 -4
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/smart-view-context.service.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.1.23.tgz +0 -0
- package/smartbit4all-ng-client-1.1.22.tgz +0 -0
|
@@ -2266,7 +2266,7 @@ class SmartViewContextService {
|
|
|
2266
2266
|
uuid: this.viewContext?.uuid,
|
|
2267
2267
|
});
|
|
2268
2268
|
}
|
|
2269
|
-
closeView(view) {
|
|
2269
|
+
closeView(view, keepInSession) {
|
|
2270
2270
|
let viewHandler = this.viewHandlers.find((handler) => handler.name === view.viewName);
|
|
2271
2271
|
if (!viewHandler) {
|
|
2272
2272
|
throw new Error(`SmartViewHandlerModel was not found by view name: ${view.viewName}`);
|
|
@@ -2294,7 +2294,9 @@ class SmartViewContextService {
|
|
|
2294
2294
|
if (index >= 0) {
|
|
2295
2295
|
this.openedViewUuids.splice(index, 1);
|
|
2296
2296
|
this.openedViewData.splice(index, 1);
|
|
2297
|
-
|
|
2297
|
+
if (!keepInSession) {
|
|
2298
|
+
sessionStorage.removeItem(view.viewName);
|
|
2299
|
+
}
|
|
2298
2300
|
}
|
|
2299
2301
|
this.updateViewContext({
|
|
2300
2302
|
updates: [
|
|
@@ -2321,7 +2323,7 @@ class SmartViewContextService {
|
|
|
2321
2323
|
this.openView(view);
|
|
2322
2324
|
break;
|
|
2323
2325
|
case ViewState.ToClose:
|
|
2324
|
-
this.closeView(view);
|
|
2326
|
+
this.closeView(view, false);
|
|
2325
2327
|
break;
|
|
2326
2328
|
}
|
|
2327
2329
|
});
|
|
@@ -2330,7 +2332,7 @@ class SmartViewContextService {
|
|
|
2330
2332
|
.includes(viewData.uuid));
|
|
2331
2333
|
if (viewDataToClose?.length) {
|
|
2332
2334
|
viewDataToClose.map((viewData) => {
|
|
2333
|
-
this.closeView(viewData);
|
|
2335
|
+
this.closeView(viewData, true);
|
|
2334
2336
|
});
|
|
2335
2337
|
}
|
|
2336
2338
|
this.viewContextHasBeenSynced.next();
|