@design.estate/dees-catalog 24.3.0 → 24.4.0
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 +102 -86
- 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 +42 -23
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.demo.js +2 -3
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +93 -81
- package/dist_ts_web/elements/00group-appui/dees-appui/shell.storage.d.ts +11 -4
- package/dist_ts_web/elements/00group-appui/dees-appui/shell.storage.js +32 -9
- package/dist_ts_web/elements/interfaces/appconfig.d.ts +28 -10
- package/package.json +1 -1
- package/readme.md +9 -6
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/dees-appui/dees-appui.demo.ts +1 -2
- package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +102 -89
- package/ts_web/elements/00group-appui/dees-appui/readme.md +42 -26
- package/ts_web/elements/00group-appui/dees-appui/shell.storage.ts +42 -11
- package/ts_web/elements/interfaces/appconfig.ts +29 -10
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { IAppRoute } from '../../interfaces/applocation.js';
|
|
2
|
-
import type { IAppShellStorage, IAppShellStorageErrorEvent, IAppTrayTab, TAppuiAside
|
|
2
|
+
import type { IAppShellStorage, IAppShellStorageErrorEvent, IAppTrayTab, TAppuiAside } from '../../interfaces/appconfig.js';
|
|
3
|
+
/** A pane that has a width of its own: the section menu, and the side panel whichever tool it shows. */
|
|
4
|
+
export type TShellPane = 'secondary' | 'aside';
|
|
3
5
|
/**
|
|
4
6
|
* What the shell keeps through a host's storage adapter, one key each, stored
|
|
5
7
|
* as `dees-appui.<key>` with a JSON value.
|
|
@@ -8,7 +10,10 @@ export interface IShellStoredState {
|
|
|
8
10
|
mainMenuCollapsed: boolean;
|
|
9
11
|
secondaryMenuCollapsed: boolean;
|
|
10
12
|
secondaryPaneWidth: number;
|
|
13
|
+
asidePaneWidth: number;
|
|
14
|
+
/** Read only: the activity log's width from before the side panel had one width. */
|
|
11
15
|
activityPaneWidth: number;
|
|
16
|
+
/** Read only: the assistant's width from before the side panel had one width. */
|
|
12
17
|
assistantPaneWidth: number;
|
|
13
18
|
aside: TAppuiAside | null;
|
|
14
19
|
lastView: IAppRoute;
|
|
@@ -16,7 +21,7 @@ export interface IShellStoredState {
|
|
|
16
21
|
}
|
|
17
22
|
export type TShellStoredKey = keyof IShellStoredState;
|
|
18
23
|
/** The key a pane's width is kept under. */
|
|
19
|
-
export declare const paneWidthKey: (pane:
|
|
24
|
+
export declare const paneWidthKey: (pane: TShellPane) => "asidePaneWidth" | "secondaryPaneWidth";
|
|
20
25
|
/**
|
|
21
26
|
* The shell's side of a host's storage adapter, for one configuration. Every
|
|
22
27
|
* failure — the adapter throwing or rejecting, a stored value that is no JSON
|
|
@@ -36,8 +41,10 @@ export declare class ShellStorage {
|
|
|
36
41
|
* Applies a key's stored value. An adapter that answers at once is applied
|
|
37
42
|
* at once, before the render the caller is part of, so nothing shows the
|
|
38
43
|
* value it replaces. A later answer is applied when it arrives, unless
|
|
39
|
-
* another storage took over or the key was written meanwhile.
|
|
40
|
-
* the
|
|
44
|
+
* another storage took over or the key was written meanwhile. The keys it
|
|
45
|
+
* superseded are asked with it; while the key holds nothing usable, the
|
|
46
|
+
* first of them that does is applied and written under the key. Resolves
|
|
47
|
+
* once the answer is applied or dropped.
|
|
41
48
|
*/
|
|
42
49
|
restore<K extends TShellStoredKey>(key: K, apply: (value: IShellStoredState[K]) => void): Promise<void>;
|
|
43
50
|
/** A key's stored value, once the adapter answered; `undefined` when nothing usable is stored. */
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
/** The key a pane's width is kept under. */
|
|
2
2
|
export const paneWidthKey = (pane) => `${pane}PaneWidth`;
|
|
3
|
+
/**
|
|
4
|
+
* Keys a newer key took over from, asked together with it and taken in this
|
|
5
|
+
* order while the newer one holds nothing usable. The first that holds a value
|
|
6
|
+
* is applied and written under the newer key, so it is taken once: the shell
|
|
7
|
+
* writes only the newer key, which answers from then on. Asked in the same
|
|
8
|
+
* round as the newer key, they cost an adapter over a server no extra wait.
|
|
9
|
+
* The side panel's one width starts from the assistant's width a reader left,
|
|
10
|
+
* else the activity log's.
|
|
11
|
+
*/
|
|
12
|
+
const supersededKeys = {
|
|
13
|
+
asidePaneWidth: ['assistantPaneWidth', 'activityPaneWidth'],
|
|
14
|
+
};
|
|
3
15
|
/** The key the adapter sees: the shell's keys live under one namespace. */
|
|
4
16
|
const storageKey = (key) => `dees-appui.${key}`;
|
|
5
17
|
const isBoolean = (value) => typeof value === 'boolean';
|
|
@@ -27,6 +39,7 @@ const storedShapes = {
|
|
|
27
39
|
mainMenuCollapsed: isBoolean,
|
|
28
40
|
secondaryMenuCollapsed: isBoolean,
|
|
29
41
|
secondaryPaneWidth: isWidth,
|
|
42
|
+
asidePaneWidth: isWidth,
|
|
30
43
|
activityPaneWidth: isWidth,
|
|
31
44
|
assistantPaneWidth: isWidth,
|
|
32
45
|
aside: (value) => value === null || value === 'activity' || value === 'assistant',
|
|
@@ -57,21 +70,31 @@ export class ShellStorage {
|
|
|
57
70
|
* Applies a key's stored value. An adapter that answers at once is applied
|
|
58
71
|
* at once, before the render the caller is part of, so nothing shows the
|
|
59
72
|
* value it replaces. A later answer is applied when it arrives, unless
|
|
60
|
-
* another storage took over or the key was written meanwhile.
|
|
61
|
-
* the
|
|
73
|
+
* another storage took over or the key was written meanwhile. The keys it
|
|
74
|
+
* superseded are asked with it; while the key holds nothing usable, the
|
|
75
|
+
* first of them that does is applied and written under the key. Resolves
|
|
76
|
+
* once the answer is applied or dropped.
|
|
62
77
|
*/
|
|
63
78
|
restore(key, apply) {
|
|
79
|
+
// A superseded key holds a value of its successor's shape, which its own guard checks.
|
|
80
|
+
const sources = [key, ...(supersededKeys[key] ?? [])];
|
|
64
81
|
const settle = (stored) => {
|
|
65
|
-
const
|
|
66
|
-
|
|
82
|
+
for (const [index, source] of sources.entries()) {
|
|
83
|
+
const value = this.decode(source, stored[index]);
|
|
84
|
+
if (value === undefined)
|
|
85
|
+
continue;
|
|
67
86
|
apply(value);
|
|
87
|
+
if (source !== key)
|
|
88
|
+
this.write(key, value);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
68
91
|
};
|
|
69
|
-
const
|
|
70
|
-
if (!(answer instanceof Promise)) {
|
|
71
|
-
settle(
|
|
92
|
+
const answers = sources.map((source) => this.readStored(source));
|
|
93
|
+
if (!answers.some((answer) => answer instanceof Promise)) {
|
|
94
|
+
settle(answers);
|
|
72
95
|
return Promise.resolve();
|
|
73
96
|
}
|
|
74
|
-
return
|
|
97
|
+
return Promise.all(answers).then((stored) => {
|
|
75
98
|
if (!this.retired && !this.written.has(key))
|
|
76
99
|
settle(stored);
|
|
77
100
|
});
|
|
@@ -122,4 +145,4 @@ export class ShellStorage {
|
|
|
122
145
|
return undefined;
|
|
123
146
|
}
|
|
124
147
|
}
|
|
125
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
148
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hlbGwuc3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3RzX3dlYi9lbGVtZW50cy8wMGdyb3VwLWFwcHVpL2RlZXMtYXBwdWkvc2hlbGwuc3RvcmFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrQ0EsNENBQTRDO0FBQzVDLE1BQU0sQ0FBQyxNQUFNLFlBQVksR0FBRyxDQUFDLElBQWdCLEVBQUUsRUFBRSxDQUFDLEdBQUcsSUFBSSxXQUFvQixDQUFDO0FBRTlFOzs7Ozs7OztHQVFHO0FBQ0gsTUFBTSxjQUFjLEdBQW9GO0lBQ3RHLGNB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yxNQUFNLENBQUMsQ0FBQztRQUM3QixDQUFDO1FBQUMsT0FBTyxLQUFLLEVBQUUsQ0FBQztZQUNmLE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDakMsQ0FBQztRQUNELElBQUksWUFBWSxDQUFDLEdBQUcsQ0FBQyxDQUFDLEtBQUssQ0FBQztZQUFFLE9BQU8sS0FBSyxDQUFDO1FBQzNDLE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsSUFBSSxTQUFTLENBQUMsd0JBQXdCLFVBQVUsQ0FBQyxHQUFHLENBQUMsc0NBQXNDLENBQUMsQ0FBQyxDQUFDO0lBQ3hILENBQUM7SUFFRCx5RkFBeUY7SUFDakYsTUFBTSxDQUFDLEdBQW9CLEVBQUUsS0FBYztRQUNqRCxJQUFJLENBQUMsV0FBVyxDQUFDLEVBQUUsR0FBRyxFQUFFLFVBQVUsQ0FBQyxHQUFHLENBQUMsRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDO1FBQ2xELE9BQU8sU0FBUyxDQUFDO0lBQ25CLENBQUM7Q0FDRiJ9
|
|
@@ -98,11 +98,13 @@ export interface IBottomBarAPI {
|
|
|
98
98
|
clearActions: () => void;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* A pane a reader can resize: `secondary` is the section menu, `
|
|
102
|
-
*
|
|
103
|
-
*
|
|
101
|
+
* A pane a reader can resize: `secondary` is the section menu, `aside` the
|
|
102
|
+
* side panel, which has one width whichever tool it shows. `activity` and
|
|
103
|
+
* `assistant` are deprecated names of `aside`, from when each tool had a width
|
|
104
|
+
* of its own: they size and read the same one width. The main menu is not
|
|
105
|
+
* one: it is either a rail or expanded.
|
|
104
106
|
*/
|
|
105
|
-
export type TAppuiPane = 'secondary' | 'activity' | 'assistant';
|
|
107
|
+
export type TAppuiPane = 'secondary' | 'aside' | 'activity' | 'assistant';
|
|
106
108
|
/**
|
|
107
109
|
* A tool the side panel on the content's end edge shows, one at a time:
|
|
108
110
|
* `activity` is the activity log, `assistant` the host's assistant.
|
|
@@ -435,9 +437,10 @@ export interface IActivityLogConfig {
|
|
|
435
437
|
*/
|
|
436
438
|
toggle?: boolean;
|
|
437
439
|
/**
|
|
438
|
-
* The
|
|
439
|
-
*
|
|
440
|
-
*
|
|
440
|
+
* The side panel's first width in CSS pixels, as `IAppConfig.asideWidth`
|
|
441
|
+
* sets it, which wins, as does `IAppAssistantConfig.width`.
|
|
442
|
+
* @deprecated The side panel has one width whichever tool it shows: set
|
|
443
|
+
* `IAppConfig.asideWidth`.
|
|
441
444
|
*/
|
|
442
445
|
width?: number;
|
|
443
446
|
}
|
|
@@ -456,9 +459,10 @@ export interface IAppAssistantConfig {
|
|
|
456
459
|
/** The icon of the app bar button and the palette command (default: `lucide:Sparkles`). */
|
|
457
460
|
iconName?: string;
|
|
458
461
|
/**
|
|
459
|
-
* The
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
+
* The side panel's first width in CSS pixels, as `IAppConfig.asideWidth`
|
|
463
|
+
* sets it, which wins; this wins over `IActivityLogConfig.width`.
|
|
464
|
+
* @deprecated The side panel has one width whichever tool it shows: set
|
|
465
|
+
* `IAppConfig.asideWidth`.
|
|
462
466
|
*/
|
|
463
467
|
width?: number;
|
|
464
468
|
/**
|
|
@@ -564,6 +568,14 @@ export interface IAppConfig {
|
|
|
564
568
|
* last chose, read from `storage`, wins.
|
|
565
569
|
*/
|
|
566
570
|
aside?: TAppuiAside | null;
|
|
571
|
+
/**
|
|
572
|
+
* The side panel's width in CSS pixels, clamped to 320–640, the same
|
|
573
|
+
* whichever tool it shows: opening, switching and closing a tool never
|
|
574
|
+
* change it. Unset keeps the width the panel has: 400 at first. A width the
|
|
575
|
+
* reader left it at, read from `storage`, wins. Wins over the deprecated
|
|
576
|
+
* `assistant.width`, which wins over the deprecated `activityLog.width`.
|
|
577
|
+
*/
|
|
578
|
+
asideWidth?: number;
|
|
567
579
|
/** Bottom bar configuration */
|
|
568
580
|
bottomBar?: IBottomBarConfig;
|
|
569
581
|
/** Host commands offered in the command palette beside the shell's own sources. */
|
|
@@ -617,6 +629,12 @@ export interface IViewChangeEvent {
|
|
|
617
629
|
* new width, in CSS pixels — at the end of a drag, or with a key.
|
|
618
630
|
*/
|
|
619
631
|
export interface IPaneResizeEvent {
|
|
632
|
+
/**
|
|
633
|
+
* `secondary`, or for the side panel the tool it showed, `activity` or
|
|
634
|
+
* `assistant`, as hosts written while each tool had a width of its own
|
|
635
|
+
* expect. Either is a deprecated name of `aside`: `width` is the panel's one
|
|
636
|
+
* width, whichever tool it shows.
|
|
637
|
+
*/
|
|
620
638
|
pane: TAppuiPane;
|
|
621
639
|
width: number;
|
|
622
640
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design.estate/dees-catalog",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.4.0",
|
|
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",
|
package/readme.md
CHANGED
|
@@ -2919,9 +2919,11 @@ explicit ranges supplied through the chart API.
|
|
|
2919
2919
|
|
|
2920
2920
|
App UI chrome shares an opaque tone and a 40px desktop / 48px touch row across
|
|
2921
2921
|
the app bar, pane headings, tabs and compact navigation. The section menu and the
|
|
2922
|
-
side panel
|
|
2923
|
-
to reset — and the shell writes their widths to `--dees-appui-secondary-width
|
|
2924
|
-
|
|
2922
|
+
side panel are resizable by their inner edge — a drag, the Arrow keys, Enter
|
|
2923
|
+
to reset — and the shell writes their widths to `--dees-appui-secondary-width`
|
|
2924
|
+
and `--dees-appui-aside-width` on itself. The side panel has one width whichever
|
|
2925
|
+
tool it shows, so switching between the activity log and the assistant moves
|
|
2926
|
+
nothing. It is compact at or below 700px of its own
|
|
2925
2927
|
width and says so as its `compact` attribute; neither it nor the app bar is a CSS
|
|
2926
2928
|
size container. Sidebar selection follows
|
|
2927
2929
|
the item's `key`, including immutable badge updates. Tabs use an inset selection
|
|
@@ -3006,9 +3008,10 @@ interface IAppConfig {
|
|
|
3006
3008
|
defaultView?: string; // the first screen when the address names none
|
|
3007
3009
|
notFoundView?: string; // where an address naming no screen lands, told it in query.path
|
|
3008
3010
|
secondaryMenu?: ISecondaryMenuConfig; // { autoHide?: boolean } — on unless false: no section menu while the view has no sections
|
|
3009
|
-
activityLog?: IActivityLogConfig; // toggle: false drops the app bar's activity button; width is
|
|
3010
|
-
assistant?: IAppAssistantConfig; // the side panel's second tool: content, iconName,
|
|
3011
|
+
activityLog?: IActivityLogConfig; // toggle: false drops the app bar's activity button; width is deprecated (asideWidth)
|
|
3012
|
+
assistant?: IAppAssistantConfig; // the side panel's second tool: content, iconName, shortcut, focus; width is deprecated (asideWidth)
|
|
3011
3013
|
aside?: TAppuiAside | null; // what the side panel shows first: 'activity', 'assistant' or nothing
|
|
3014
|
+
asideWidth?: number; // the side panel's first width, the same for both tools
|
|
3012
3015
|
bottomBar?: IBottomBarConfig;
|
|
3013
3016
|
commands?: ICommand[];
|
|
3014
3017
|
tray?: boolean; // the tabs tray: pages a reader keeps across views, above the bottom bar
|
|
@@ -3070,7 +3073,7 @@ speaks English until it is set.
|
|
|
3070
3073
|
| **Content Heading** | `setContentHeading(heading \| null)`, `getContentHeading()`; a view declares its own in `contentHeading` |
|
|
3071
3074
|
| **Activity Log** | `activityLog.add()`, `activityLog.addMany()`, `activityLog.clear()`, `activityLog.getEntries()`, `activityLog.filter()`, `activityLog.search()` |
|
|
3072
3075
|
| **Side Panel** | `setAside(tool \| null)`, `getAside()` for `'activity'` and `'assistant'`; the `aside-change` event (`{ aside }`) once per change a reader makes |
|
|
3073
|
-
| **Layout** | `setPaneWidth(pane, width)`, `getPaneWidth(pane)` for `'secondary'
|
|
3076
|
+
| **Layout** | `setPaneWidth(pane, width)`, `getPaneWidth(pane)` for `'secondary'` and `'aside'` (`'activity'` and `'assistant'` are deprecated names of `'aside'`); the `pane-resize` event (`{ pane, width }`) once per width a reader settles |
|
|
3074
3077
|
| **Persistence** | `setStorage(storage)`: another storage adapter while the shell runs; the layout and the tray's tabs are read from it again, and every change is written to it only |
|
|
3075
3078
|
| **Bottom Bar** | `bottomBar.addWidget()`, `bottomBar.updateWidget()`, `bottomBar.removeWidget()`, `bottomBar.getWidget()`, `bottomBar.clearWidgets()`, `bottomBar.addAction()`, `bottomBar.removeAction()`, `bottomBar.clearActions()`, `setBottomBarVisible()`, `getBottomBarVisible()` |
|
|
3076
3079
|
| **Observables** | `viewChanged$`, `viewLifecycle$` |
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-catalog',
|
|
6
|
-
version: '24.
|
|
6
|
+
version: '24.4.0',
|
|
7
7
|
description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.'
|
|
8
8
|
}
|
|
@@ -31,8 +31,7 @@ const assistantReply = 'edge-eu is back within its 200 ms latency target, and it
|
|
|
31
31
|
*/
|
|
32
32
|
const keptKeys = new Set([
|
|
33
33
|
'dees-appui.secondaryPaneWidth',
|
|
34
|
-
'dees-appui.
|
|
35
|
-
'dees-appui.assistantPaneWidth',
|
|
34
|
+
'dees-appui.asidePaneWidth',
|
|
36
35
|
'dees-appui.lastView',
|
|
37
36
|
]);
|
|
38
37
|
const sessionShellStorage: IAppShellStorage = {
|