@design.estate/dees-catalog 21.44.0 → 21.44.1
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/dist_bundle/bundle.js +7 -3
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +9 -3
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +10 -2
- package/ts_web/elements/00group-appui/dees-appui/readme.md +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design.estate/dees-catalog",
|
|
3
|
-
"version": "21.44.
|
|
3
|
+
"version": "21.44.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
|
|
6
6
|
"main": "dist_ts_web/index.js",
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '21.44.
|
|
6
|
+
version: '21.44.1',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
}
|
|
@@ -106,6 +106,9 @@ interface IViewChrome {
|
|
|
106
106
|
/**
|
|
107
107
|
* New with each heading a view brings, so each gets an element of its own and
|
|
108
108
|
* an action still running for one view never shows as pending on the next.
|
|
109
|
+
* The view on screen activated again on its own element, for another address
|
|
110
|
+
* of its own, keeps it: its heading stays the same element, and the view's
|
|
111
|
+
* `tools` in it keep their place and the focus.
|
|
109
112
|
*/
|
|
110
113
|
contentHeadingKey: object;
|
|
111
114
|
}
|
|
@@ -3235,8 +3238,10 @@ export class DeesAppui extends DeesElement {
|
|
|
3235
3238
|
): Promise<void> {
|
|
3236
3239
|
const previousView = this.currentView;
|
|
3237
3240
|
const replaced = this.captureViewChrome();
|
|
3241
|
+
// the view on screen, activated again on its own element for another of its addresses
|
|
3242
|
+
const continued = previousView?.id === view.id && this.viewRegistry.getInstance(view.id) === element;
|
|
3238
3243
|
this.heldChrome = replaced;
|
|
3239
|
-
this.showViewChrome(this.chromeFor(view, replaced));
|
|
3244
|
+
this.showViewChrome(this.chromeFor(view, replaced, continued));
|
|
3240
3245
|
try {
|
|
3241
3246
|
await this.viewRegistry.activatePreparedView(view.id, element, params, query);
|
|
3242
3247
|
} catch (error) {
|
|
@@ -3298,8 +3303,10 @@ export class DeesAppui extends DeesElement {
|
|
|
3298
3303
|
/**
|
|
3299
3304
|
* The chrome a view starts from: an empty one — or, when the view keeps its
|
|
3300
3305
|
* chrome, the one of the view it replaces — with its declared parts on top.
|
|
3306
|
+
* The view on screen activated again (`continued`) starts over in the same
|
|
3307
|
+
* heading element (`IViewChrome.contentHeadingKey`).
|
|
3301
3308
|
*/
|
|
3302
|
-
private chromeFor(view: interfaces.IViewDefinition, replaced: IViewChrome): IViewChrome {
|
|
3309
|
+
private chromeFor(view: interfaces.IViewDefinition, replaced: IViewChrome, continued: boolean): IViewChrome {
|
|
3303
3310
|
const chrome = view.keepChrome ? { ...replaced } : createEmptyViewChrome();
|
|
3304
3311
|
if (view.secondaryMenu) {
|
|
3305
3312
|
chrome.secondaryMenuHeading = view.name;
|
|
@@ -3311,6 +3318,7 @@ export class DeesAppui extends DeesElement {
|
|
|
3311
3318
|
chrome.contentHeading = view.contentHeading;
|
|
3312
3319
|
chrome.contentHeadingKey = {};
|
|
3313
3320
|
}
|
|
3321
|
+
if (continued) chrome.contentHeadingKey = replaced.contentHeadingKey;
|
|
3314
3322
|
chrome.viewName = view.name;
|
|
3315
3323
|
return chrome;
|
|
3316
3324
|
}
|
|
@@ -583,7 +583,11 @@ appui.getContentHeading(); // a copy of the heading on screen, or null
|
|
|
583
583
|
Called in `onActivate`, `setContentHeading` heads the view being activated, and a
|
|
584
584
|
heading without a title takes that view's name. Called again while the view is on
|
|
585
585
|
screen, for a title or badges that changed, it updates the same heading in place: the
|
|
586
|
-
`tools` element set again stays where it is, and so does the focus in it.
|
|
586
|
+
`tools` element set again stays where it is, and so does the focus in it. The same
|
|
587
|
+
holds when the view on screen activates again for another of its addresses — a search
|
|
588
|
+
or a filter in its tools that writes itself into the route: its heading starts over
|
|
589
|
+
from the declaration in the same element, so the `tools` element its `onActivate`
|
|
590
|
+
sets again keeps its place and the focus.
|
|
587
591
|
|
|
588
592
|
```typescript
|
|
589
593
|
// One tools element per view: created once, rendered by the view, handed over each time
|