@design.estate/dees-catalog 24.2.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 +6265 -5348
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-SSD44HAU.js → chunk-4UZGSPGV.js} +8 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-SSD44HAU.js.map → chunk-4UZGSPGV.js.map} +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-YUJKYSDX.js → chunk-7CM7S6EQ.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-347GWLFZ.js → chunk-R6EBIDCM.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{de-5P7JLMRS.js → de-LD3JG4AD.js} +5 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-LD3JG4AD.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-PC4PYTOT.js → dees-modal-Z3DSEMNI.js} +3 -3
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-GFHNW2QR.js → dees-workspace-terminal-KPB3RVGL.js} +4 -4
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/es-J75P6Y7U.js +1461 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/es-J75P6Y7U.js.map +1 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/fr-FXZISX5I.js +1461 -0
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/fr-FXZISX5I.js.map +1 -0
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/appui.helpers.d.ts +6 -0
- package/dist_ts_web/elements/00group-appui/appui.helpers.js +7 -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 +99 -90
- 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/00group-appui/dees-appui-detailpane/dees-appui-detailpane.d.ts +88 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.d.ts +34 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.js +317 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.js +510 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-detailpane/index.js +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.d.ts +43 -17
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.js +28 -3
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.js +113 -152
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.d.ts +68 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.d.ts +4 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.js +57 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.js +357 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/index.d.ts +1 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-secondarytabs/index.js +2 -0
- package/dist_ts_web/elements/00group-appui/index.d.ts +2 -0
- package/dist_ts_web/elements/00group-appui/index.js +3 -1
- package/dist_ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.js +6 -6
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/component.d.ts +10 -0
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/component.js +38 -6
- package/dist_ts_web/elements/00group-media/dees-pdf-viewer/styles.js +4 -1
- package/dist_ts_web/elements/interfaces/appconfig.d.ts +28 -10
- package/dist_ts_web/i18n/de.d.ts +12 -0
- package/dist_ts_web/i18n/de.js +4 -1
- package/dist_ts_web/i18n/es.d.ts +5780 -0
- package/dist_ts_web/i18n/es.js +1452 -0
- package/dist_ts_web/i18n/fr.d.ts +5780 -0
- package/dist_ts_web/i18n/fr.js +1452 -0
- package/dist_ts_web/i18n/messages.d.ts +13 -1
- package/dist_ts_web/i18n/messages.js +8 -2
- package/package.json +2 -2
- package/readme.md +142 -22
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/appui.helpers.ts +7 -0
- 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 +108 -99
- 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/00group-appui/dees-appui-detailpane/dees-appui-detailpane.demo.ts +267 -0
- package/ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.ts +451 -0
- package/ts_web/elements/00group-appui/dees-appui-detailpane/index.ts +1 -0
- package/ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.demo.ts +30 -2
- package/ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.ts +113 -148
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.demo.ts +62 -0
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.ts +299 -0
- package/ts_web/elements/00group-appui/dees-appui-secondarytabs/index.ts +1 -0
- package/ts_web/elements/00group-appui/index.ts +2 -0
- package/ts_web/elements/00group-feedback/dees-statusbutton/dees-statusbutton.demo.ts +5 -5
- package/ts_web/elements/00group-media/dees-pdf-viewer/component.ts +37 -5
- package/ts_web/elements/00group-media/dees-pdf-viewer/styles.ts +3 -0
- package/ts_web/elements/interfaces/appconfig.ts +29 -10
- package/ts_web/i18n/de.ts +3 -0
- package/ts_web/i18n/es.ts +1452 -0
- package/ts_web/i18n/fr.ts +1452 -0
- package/ts_web/i18n/messages.ts +8 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/de-5P7JLMRS.js.map +0 -1
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-YUJKYSDX.js.map → chunk-7CM7S6EQ.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-347GWLFZ.js.map → chunk-R6EBIDCM.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-PC4PYTOT.js.map → dees-modal-Z3DSEMNI.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-GFHNW2QR.js.map → dees-workspace-terminal-KPB3RVGL.js.map} +0 -0
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
type IShortcutChord,
|
|
38
38
|
type TShortcutSource,
|
|
39
39
|
} from '../appui.shortcuts.js';
|
|
40
|
-
import { activityLogIconName, defaultAssistantIconName, secondaryMenuTabRows } from '../appui.helpers.js';
|
|
40
|
+
import { activityLogIconName, appuiCompactMaxWidth, defaultAssistantIconName, secondaryMenuTabRows } from '../appui.helpers.js';
|
|
41
41
|
import { appuiWords, formatAppuiLabel, ownAppuiLabels } from '../appui.labels.js';
|
|
42
42
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
43
43
|
|
|
44
44
|
// View registry for managing views
|
|
45
45
|
import { ViewRegistry } from './view.registry.js';
|
|
46
|
-
import { ShellStorage, paneWidthKey } from './shell.storage.js';
|
|
46
|
+
import { ShellStorage, paneWidthKey, type TShellPane } from './shell.storage.js';
|
|
47
47
|
import { createShellAddressing, resolveLocationBaseUrl, type IShellAddressing } from './shell.address.js';
|
|
48
48
|
|
|
49
49
|
// Import child components
|
|
@@ -173,14 +173,6 @@ interface IShellShortcut {
|
|
|
173
173
|
run: () => void;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
/**
|
|
177
|
-
* At or below this width the shell is compact: navigation opens on demand as a
|
|
178
|
-
* drawer and the side panel covers the content. It is decided here and
|
|
179
|
-
* nowhere else; the styles read the `compact` attribute and the app bar its
|
|
180
|
-
* `compact` property.
|
|
181
|
-
*/
|
|
182
|
-
const compactMaxWidth = 700;
|
|
183
|
-
|
|
184
176
|
/** A tray tab of its own, so neither the caller nor the tray changes the other's. */
|
|
185
177
|
const copyTrayTab = (tab: interfaces.IAppTrayTab): interfaces.IAppTrayTab => ({
|
|
186
178
|
key: tab.key,
|
|
@@ -211,6 +203,13 @@ const assertAsideAvailable = (
|
|
|
211
203
|
}
|
|
212
204
|
};
|
|
213
205
|
|
|
206
|
+
/**
|
|
207
|
+
* The side panel's first width a configuration sets: `asideWidth`, else the
|
|
208
|
+
* deprecated `assistant.width`, else the deprecated `activityLog.width`.
|
|
209
|
+
*/
|
|
210
|
+
const configuredAsideWidth = (config: interfaces.IAppConfig): number | undefined =>
|
|
211
|
+
config.asideWidth ?? config.assistant?.width ?? config.activityLog?.width;
|
|
212
|
+
|
|
214
213
|
/** A pane width is a finite number of pixels; anything else is refused rather than clamped. */
|
|
215
214
|
const assertFinitePaneWidth = (pane: interfaces.TAppuiPane, width: number): void => {
|
|
216
215
|
if (!Number.isFinite(width)) {
|
|
@@ -239,6 +238,7 @@ const assertValidConfig = (config: interfaces.IAppConfig): void => {
|
|
|
239
238
|
if (config.notFoundView && !config.views.some((view) => view.id === config.notFoundView)) {
|
|
240
239
|
throw new Error(`The not-found view "${config.notFoundView}" must be one of the configured views.`);
|
|
241
240
|
}
|
|
241
|
+
if (config.asideWidth !== undefined) assertFinitePaneWidth('aside', config.asideWidth);
|
|
242
242
|
if (config.activityLog?.width !== undefined) assertFinitePaneWidth('activity', config.activityLog.width);
|
|
243
243
|
if (config.assistant?.width !== undefined) assertFinitePaneWidth('assistant', config.assistant.width);
|
|
244
244
|
assertAsideAvailable(config.aside, config.assistant);
|
|
@@ -253,14 +253,15 @@ const assertValidConfig = (config: interfaces.IAppConfig): void => {
|
|
|
253
253
|
if (locale !== undefined) assertValidLocale(locale);
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
+
/** The pane a name stands for: `activity` and `assistant` are older names of the side panel. */
|
|
257
|
+
const shellPaneOf = (pane: interfaces.TAppuiPane): TShellPane => (pane === 'secondary' ? 'secondary' : 'aside');
|
|
258
|
+
|
|
256
259
|
/** What the shell knows about a pane a reader can resize. */
|
|
257
260
|
interface IResizablePane {
|
|
258
261
|
/** The id of the pane's element, which its handle names as the one it controls. */
|
|
259
262
|
elementId: string;
|
|
260
263
|
/** Which side of its handle the pane lies on. */
|
|
261
264
|
side: TResizeHandlePrimary;
|
|
262
|
-
/** The label that names the pane's handle. */
|
|
263
|
-
handleLabel: 'resizeSecondary' | 'resizeActivity' | 'resizeAssistant';
|
|
264
265
|
/** The width the pane starts at and a reset gives back, in CSS pixels. */
|
|
265
266
|
defaultWidth: number;
|
|
266
267
|
minWidth: number;
|
|
@@ -269,30 +270,21 @@ interface IResizablePane {
|
|
|
269
270
|
|
|
270
271
|
/**
|
|
271
272
|
* The panes a reader can resize. The section menu lies before its handle, on
|
|
272
|
-
* the content column's start edge; the side panel
|
|
273
|
-
*
|
|
273
|
+
* the content column's start edge; the side panel after its own, on the end
|
|
274
|
+
* edge. The panel has one width whichever tool it shows: a tool fills it,
|
|
275
|
+
* so opening, switching or closing a tool never moves it.
|
|
274
276
|
*/
|
|
275
|
-
const resizablePanes: Record<
|
|
277
|
+
const resizablePanes: Record<TShellPane, IResizablePane> = {
|
|
276
278
|
secondary: {
|
|
277
279
|
elementId: 'secondary-menu',
|
|
278
280
|
side: 'start',
|
|
279
|
-
handleLabel: 'resizeSecondary',
|
|
280
281
|
defaultWidth: 240,
|
|
281
282
|
minWidth: 180,
|
|
282
283
|
maxWidth: 400,
|
|
283
284
|
},
|
|
284
|
-
|
|
285
|
-
elementId: sidePanelId,
|
|
286
|
-
side: 'end',
|
|
287
|
-
handleLabel: 'resizeActivity',
|
|
288
|
-
defaultWidth: 280,
|
|
289
|
-
minWidth: 240,
|
|
290
|
-
maxWidth: 480,
|
|
291
|
-
},
|
|
292
|
-
assistant: {
|
|
285
|
+
aside: {
|
|
293
286
|
elementId: sidePanelId,
|
|
294
287
|
side: 'end',
|
|
295
|
-
handleLabel: 'resizeAssistant',
|
|
296
288
|
defaultWidth: 400,
|
|
297
289
|
minWidth: 320,
|
|
298
290
|
maxWidth: 640,
|
|
@@ -300,7 +292,7 @@ const resizablePanes: Record<interfaces.TAppuiPane, IResizablePane> = {
|
|
|
300
292
|
};
|
|
301
293
|
|
|
302
294
|
/** Every pane a reader can resize. */
|
|
303
|
-
const paneNames = Object.keys(resizablePanes) as
|
|
295
|
+
const paneNames = Object.keys(resizablePanes) as TShellPane[];
|
|
304
296
|
|
|
305
297
|
/** How far Shift and an Arrow key move a pane's edge; a plain Arrow key moves it the handle's 16px. */
|
|
306
298
|
const paneLargeStep = 64;
|
|
@@ -590,10 +582,9 @@ export class DeesAppui extends DeesElement {
|
|
|
590
582
|
|
|
591
583
|
/** The width of each resizable pane in CSS pixels, kept while a pane is hidden or collapsed. */
|
|
592
584
|
@state()
|
|
593
|
-
private accessor paneWidths: Record<
|
|
585
|
+
private accessor paneWidths: Record<TShellPane, number> = {
|
|
594
586
|
secondary: resizablePanes.secondary.defaultWidth,
|
|
595
|
-
|
|
596
|
-
assistant: resizablePanes.assistant.defaultWidth,
|
|
587
|
+
aside: resizablePanes.aside.defaultWidth,
|
|
597
588
|
};
|
|
598
589
|
|
|
599
590
|
constructor() {
|
|
@@ -606,8 +597,12 @@ export class DeesAppui extends DeesElement {
|
|
|
606
597
|
this.registerStartupFunction(async (signal) => {
|
|
607
598
|
await this.updateComplete;
|
|
608
599
|
if (signal.aborted) return;
|
|
600
|
+
// At or below the app UI's compact width the shell is compact: navigation
|
|
601
|
+
// opens on demand as a drawer and the side panel covers the content. It is
|
|
602
|
+
// decided here and nowhere else; the styles read the `compact` attribute and
|
|
603
|
+
// the app bar its `compact` property.
|
|
609
604
|
const update = () => {
|
|
610
|
-
this.compact = this.clientWidth <=
|
|
605
|
+
this.compact = this.clientWidth <= appuiCompactMaxWidth;
|
|
611
606
|
this.toggleAttribute('compact', this.compact);
|
|
612
607
|
};
|
|
613
608
|
update();
|
|
@@ -781,11 +776,11 @@ export class DeesAppui extends DeesElement {
|
|
|
781
776
|
}
|
|
782
777
|
|
|
783
778
|
/* The side panel fills the shell's last track and clips what does not
|
|
784
|
-
fit it, so the track reveals the panel as it slides in while
|
|
785
|
-
keeps the width
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
779
|
+
fit it, so the track reveals the panel as it slides in while what it
|
|
780
|
+
holds keeps the panel's width: nothing in it reflows with the track.
|
|
781
|
+
It clips rather than hides its overflow, which would make it a scroll
|
|
782
|
+
container that focusing a tool mid-slide could scroll. Closed and slid
|
|
783
|
+
out, it leaves the rendering. */
|
|
789
784
|
.side-panel {
|
|
790
785
|
position: relative;
|
|
791
786
|
grid-area: 1 / 2;
|
|
@@ -806,25 +801,16 @@ export class DeesAppui extends DeesElement {
|
|
|
806
801
|
/* The panel's own rows, which continue the bars it stands beside: a
|
|
807
802
|
header as tall as the app bar and a footer as tall as the bottom bar,
|
|
808
803
|
drawing their lines where the bars draw theirs, and the tool between. */
|
|
809
|
-
/*
|
|
810
|
-
does not reflow, and
|
|
811
|
-
the narrower tool keeps the header across the panel while it
|
|
812
|
-
narrows. */
|
|
804
|
+
/* At the panel's width whichever tool it holds, so the panel slides over
|
|
805
|
+
a frame that does not reflow, and a switch moves nothing. */
|
|
813
806
|
.side-frame {
|
|
814
807
|
justify-self: start;
|
|
815
808
|
display: grid;
|
|
816
809
|
grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
|
|
810
|
+
width: var(--dees-appui-aside-width);
|
|
817
811
|
min-height: 0;
|
|
818
812
|
}
|
|
819
813
|
|
|
820
|
-
.side-frame[data-tool='activity'] {
|
|
821
|
-
width: max(100%, var(--dees-appui-activity-width));
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
.side-frame[data-tool='assistant'] {
|
|
825
|
-
width: max(100%, var(--dees-appui-assistant-width));
|
|
826
|
-
}
|
|
827
|
-
|
|
828
814
|
.side-header,
|
|
829
815
|
.side-footer {
|
|
830
816
|
display: flex;
|
|
@@ -952,29 +938,25 @@ export class DeesAppui extends DeesElement {
|
|
|
952
938
|
min-height: 0;
|
|
953
939
|
}
|
|
954
940
|
|
|
955
|
-
/* Both tools share one place and stay mounted and
|
|
956
|
-
keeps a draft, a scroll position and a stream, and
|
|
957
|
-
size fall to nothing. The tool the panel
|
|
958
|
-
transparent: transparency hides all it
|
|
959
|
-
would let a descendant that declares
|
|
960
|
-
drawer, show through. */
|
|
941
|
+
/* Both tools share one place at the panel's width and stay mounted and
|
|
942
|
+
laid out: a switch keeps a draft, a scroll position and a stream, and
|
|
943
|
+
no tool sees its size change or fall to nothing. The tool the panel
|
|
944
|
+
does not hold is inert and transparent: transparency hides all it
|
|
945
|
+
contains, where visibility would let a descendant that declares
|
|
946
|
+
itself visible, such as an open drawer, show through. */
|
|
961
947
|
.side-tool {
|
|
962
948
|
grid-area: 1 / 1;
|
|
963
949
|
justify-self: start;
|
|
964
950
|
display: grid;
|
|
965
951
|
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
952
|
+
width: var(--dees-appui-aside-width);
|
|
966
953
|
min-height: 0;
|
|
967
954
|
}
|
|
968
955
|
|
|
969
|
-
.side-tool[data-tool='activity'] {
|
|
970
|
-
width: var(--dees-appui-activity-width);
|
|
971
|
-
}
|
|
972
|
-
|
|
973
956
|
/* The activity log draws the edge it shares with the content; an
|
|
974
957
|
assistant does not know it stands beside the content, so its place
|
|
975
958
|
draws that edge. */
|
|
976
959
|
.side-tool[data-tool='assistant'] {
|
|
977
|
-
width: var(--dees-appui-assistant-width);
|
|
978
960
|
border-inline-start: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
|
|
979
961
|
}
|
|
980
962
|
|
|
@@ -1355,7 +1337,7 @@ export class DeesAppui extends DeesElement {
|
|
|
1355
1337
|
@tray-toggle=${() => { void this.toggleTrayFromReader(); }}
|
|
1356
1338
|
></dees-appui-bottombar>
|
|
1357
1339
|
</div>
|
|
1358
|
-
${this.
|
|
1340
|
+
${this.isPaneResizable('aside') ? this.renderPaneHandle('aside') : ''}
|
|
1359
1341
|
<aside
|
|
1360
1342
|
id=${sidePanelId}
|
|
1361
1343
|
class="side-panel"
|
|
@@ -1385,14 +1367,14 @@ export class DeesAppui extends DeesElement {
|
|
|
1385
1367
|
}
|
|
1386
1368
|
|
|
1387
1369
|
/**
|
|
1388
|
-
* The shell's tracks: the workspace, and the side panel at
|
|
1389
|
-
*
|
|
1390
|
-
*
|
|
1391
|
-
* workspace instead.
|
|
1370
|
+
* The shell's tracks: the workspace, and the side panel at its width while it
|
|
1371
|
+
* shows a tool. Showing and closing the panel move that last track, through
|
|
1372
|
+
* the shell's transition; switching tools leaves it where it is. The compact
|
|
1373
|
+
* panel covers the workspace instead.
|
|
1392
1374
|
*/
|
|
1393
1375
|
private shellColumns(): string {
|
|
1394
1376
|
if (this.compact) return 'minmax(0, 1fr)';
|
|
1395
|
-
return `minmax(0, 1fr) ${this.aside ?
|
|
1377
|
+
return `minmax(0, 1fr) ${this.aside ? 'var(--dees-appui-aside-width)' : '0px'}`;
|
|
1396
1378
|
}
|
|
1397
1379
|
|
|
1398
1380
|
/** The workspace's tracks: one column when compact, else each shown menu and the content. */
|
|
@@ -1438,7 +1420,7 @@ export class DeesAppui extends DeesElement {
|
|
|
1438
1420
|
}
|
|
1439
1421
|
|
|
1440
1422
|
/**
|
|
1441
|
-
* A tool's place in the side panel, at the
|
|
1423
|
+
* A tool's place in the side panel, at the panel's width. Both places stay
|
|
1442
1424
|
* mounted; the one the panel does not hold is inert. A tool that asks to
|
|
1443
1425
|
* close the panel asks here.
|
|
1444
1426
|
*/
|
|
@@ -1457,15 +1439,15 @@ export class DeesAppui extends DeesElement {
|
|
|
1457
1439
|
* The separator on a pane's inner edge. What a reader asks for lands at
|
|
1458
1440
|
* once; a size that settles is reported to the host.
|
|
1459
1441
|
*/
|
|
1460
|
-
private renderPaneHandle(pane:
|
|
1461
|
-
const { elementId, side,
|
|
1442
|
+
private renderPaneHandle(pane: TShellPane): TemplateResult {
|
|
1443
|
+
const { elementId, side, defaultWidth, minWidth, maxWidth } = resizablePanes[pane];
|
|
1462
1444
|
return html`
|
|
1463
1445
|
<dees-resize-handle
|
|
1464
1446
|
class="pane-handle"
|
|
1465
1447
|
data-pane=${pane}
|
|
1466
1448
|
aria-controls=${elementId}
|
|
1467
1449
|
.primary=${side}
|
|
1468
|
-
.label=${this.word(
|
|
1450
|
+
.label=${this.word(this.paneHandleLabel(pane))}
|
|
1469
1451
|
.hint=${this.word('resizeReset')}
|
|
1470
1452
|
.value=${this.paneWidths[pane]}
|
|
1471
1453
|
.min=${minWidth}
|
|
@@ -2100,7 +2082,6 @@ export class DeesAppui extends DeesElement {
|
|
|
2100
2082
|
const content = assistant?.content;
|
|
2101
2083
|
const replaced = content !== this.assistantConfig?.content;
|
|
2102
2084
|
this.assistantConfig = assistant;
|
|
2103
|
-
if (assistant?.width !== undefined) this.applyPaneWidth('assistant', assistant.width);
|
|
2104
2085
|
if (!replaced) return;
|
|
2105
2086
|
this.handFocusOutOf('assistant');
|
|
2106
2087
|
this.assistantElement = typeof content === 'function' ? undefined : content;
|
|
@@ -2374,37 +2355,52 @@ export class DeesAppui extends DeesElement {
|
|
|
2374
2355
|
// ==========================================
|
|
2375
2356
|
|
|
2376
2357
|
/**
|
|
2377
|
-
* Size a pane — `secondary`, the section menu, `
|
|
2378
|
-
*
|
|
2379
|
-
*
|
|
2380
|
-
*
|
|
2358
|
+
* Size a pane — `secondary`, the section menu, or `aside`, the side panel,
|
|
2359
|
+
* whichever tool it shows — in CSS pixels, clamped to the pane's range and
|
|
2360
|
+
* rounded to whole pixels. The width lands at once, even while the pane is
|
|
2361
|
+
* hidden or collapsed, and the configured storage keeps it. Nothing is
|
|
2381
2362
|
* emitted: `pane-resize` reports what a reader did, so a host restoring a
|
|
2382
|
-
* width of its own never hears it echoed back.
|
|
2363
|
+
* width of its own never hears it echoed back. `activity` and `assistant`
|
|
2364
|
+
* are deprecated names of `aside`: they size the one side panel.
|
|
2383
2365
|
*/
|
|
2384
2366
|
public setPaneWidth(pane: interfaces.TAppuiPane, width: number): void {
|
|
2385
2367
|
assertFinitePaneWidth(pane, width);
|
|
2386
|
-
|
|
2387
|
-
this.
|
|
2368
|
+
const shellPane = shellPaneOf(pane);
|
|
2369
|
+
this.applyPaneWidth(shellPane, width);
|
|
2370
|
+
this.storePaneWidth(shellPane);
|
|
2388
2371
|
}
|
|
2389
2372
|
|
|
2390
|
-
/**
|
|
2373
|
+
/**
|
|
2374
|
+
* A pane's width in CSS pixels, kept while the pane is hidden or collapsed.
|
|
2375
|
+
* `activity` and `assistant` are deprecated names of `aside`: both answer
|
|
2376
|
+
* the side panel's one width.
|
|
2377
|
+
*/
|
|
2391
2378
|
public getPaneWidth(pane: interfaces.TAppuiPane): number {
|
|
2392
|
-
return this.paneWidths[pane];
|
|
2379
|
+
return this.paneWidths[shellPaneOf(pane)];
|
|
2393
2380
|
}
|
|
2394
2381
|
|
|
2395
2382
|
/**
|
|
2396
2383
|
* A pane can be resized while it stands open beside the content, never as a
|
|
2397
|
-
* compact drawer or overlay;
|
|
2384
|
+
* compact drawer or overlay; the side panel while it shows a tool.
|
|
2398
2385
|
*/
|
|
2399
|
-
private isPaneResizable(pane:
|
|
2386
|
+
private isPaneResizable(pane: TShellPane): boolean {
|
|
2400
2387
|
if (this.compact) return false;
|
|
2401
2388
|
return pane === 'secondary'
|
|
2402
2389
|
? this.secondaryMenuShown(this.chromeOnScreen()) && !this.secondarymenuCollapsed
|
|
2403
|
-
: this.aside
|
|
2390
|
+
: this.aside !== null;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* The words a pane's handle is named with. The side panel's names the tool a
|
|
2395
|
+
* reader sees beside it; either way it sizes the panel.
|
|
2396
|
+
*/
|
|
2397
|
+
private paneHandleLabel(pane: TShellPane): 'resizeSecondary' | 'resizeActivity' | 'resizeAssistant' {
|
|
2398
|
+
if (pane === 'secondary') return 'resizeSecondary';
|
|
2399
|
+
return this.asideTool === 'activity' ? 'resizeActivity' : 'resizeAssistant';
|
|
2404
2400
|
}
|
|
2405
2401
|
|
|
2406
2402
|
/** The one writer of the pane widths, whoever asks: a handle, `setPaneWidth()`, `configure()` or the storage. */
|
|
2407
|
-
private applyPaneWidth(pane:
|
|
2403
|
+
private applyPaneWidth(pane: TShellPane, width: number): void {
|
|
2408
2404
|
const { minWidth, maxWidth } = resizablePanes[pane];
|
|
2409
2405
|
const clamped = Math.min(maxWidth, Math.max(minWidth, Math.round(width)));
|
|
2410
2406
|
if (clamped === this.paneWidths[pane]) return;
|
|
@@ -2414,35 +2410,41 @@ export class DeesAppui extends DeesElement {
|
|
|
2414
2410
|
|
|
2415
2411
|
/**
|
|
2416
2412
|
* Puts the pane widths on the host as `--dees-appui-<pane>-width`, where the
|
|
2417
|
-
* grid, the panes and anybody reading the layout find them
|
|
2418
|
-
*
|
|
2419
|
-
*
|
|
2420
|
-
*
|
|
2421
|
-
*
|
|
2413
|
+
* grid, the panes and anybody reading the layout find them, the side panel's
|
|
2414
|
+
* also under the deprecated names `--dees-appui-activity-width` and
|
|
2415
|
+
* `--dees-appui-assistant-width`. The tracks and the section menu animate a
|
|
2416
|
+
* pane being shown or collapsed, but a width lands at once: `resizing`
|
|
2417
|
+
* switches those transitions off, and because a transition is decided when
|
|
2418
|
+
* styles resolve, the styles are resolved before `resizing` goes.
|
|
2422
2419
|
*/
|
|
2423
2420
|
private writePaneWidths(): void {
|
|
2424
2421
|
this.toggleAttribute('resizing', true);
|
|
2425
2422
|
for (const [pane, width] of Object.entries(this.paneWidths)) {
|
|
2426
2423
|
this.style.setProperty(`--dees-appui-${pane}-width`, `${width}px`);
|
|
2427
2424
|
}
|
|
2425
|
+
for (const tool of ['activity', 'assistant'] as const) {
|
|
2426
|
+
this.style.setProperty(`--dees-appui-${tool}-width`, `${this.paneWidths.aside}px`);
|
|
2427
|
+
}
|
|
2428
2428
|
// Reading any computed style resolves every pending one.
|
|
2429
2429
|
void getComputedStyle(this).display;
|
|
2430
2430
|
this.toggleAttribute('resizing', false);
|
|
2431
2431
|
}
|
|
2432
2432
|
|
|
2433
2433
|
/** Keeps a pane's width, as it now stands, in the configured storage. */
|
|
2434
|
-
private storePaneWidth(pane:
|
|
2434
|
+
private storePaneWidth(pane: TShellPane): void {
|
|
2435
2435
|
this.storage?.write(paneWidthKey(pane), this.paneWidths[pane]);
|
|
2436
2436
|
}
|
|
2437
2437
|
|
|
2438
2438
|
/**
|
|
2439
2439
|
* A reader settled a pane at a new width: the configured storage keeps it,
|
|
2440
|
-
* and the host hears it once, to keep it or to follow it.
|
|
2440
|
+
* and the host hears it once, to keep it or to follow it. The side panel is
|
|
2441
|
+
* reported under the name of the tool it shows, as hosts written while each
|
|
2442
|
+
* tool had a width of its own expect; either name is the panel's one width.
|
|
2441
2443
|
*/
|
|
2442
|
-
private reportPaneResize(pane:
|
|
2444
|
+
private reportPaneResize(pane: TShellPane): void {
|
|
2443
2445
|
this.storePaneWidth(pane);
|
|
2444
2446
|
this.dispatchEvent(new CustomEvent<interfaces.IPaneResizeEvent>('pane-resize', {
|
|
2445
|
-
detail: { pane, width: this.paneWidths[pane] },
|
|
2447
|
+
detail: { pane: pane === 'aside' ? this.asideTool : pane, width: this.paneWidths[pane] },
|
|
2446
2448
|
bubbles: true,
|
|
2447
2449
|
composed: true,
|
|
2448
2450
|
}));
|
|
@@ -2889,8 +2891,11 @@ export class DeesAppui extends DeesElement {
|
|
|
2889
2891
|
* `bottomBar` section replaces the bar's widgets and actions, the assistant
|
|
2890
2892
|
* is this call's or none, the side panel shows what `aside` says, the labels
|
|
2891
2893
|
* and the storage are this call's or none, and routing starts over. What the
|
|
2892
|
-
* storage holds wins over what the call sets, and nothing is written
|
|
2893
|
-
*
|
|
2894
|
+
* storage holds wins over what the call sets, and nothing is written but,
|
|
2895
|
+
* once, a side panel width the storage still keeps under a tool's old key,
|
|
2896
|
+
* which moves to the panel's own. The side panel's first width is
|
|
2897
|
+
* `asideWidth`, else the deprecated `assistant.width`, else the deprecated
|
|
2898
|
+
* `activityLog.width`. A configuration it cannot honour — a `notFoundView` that is not among
|
|
2894
2899
|
* `views`, a location base URL of another app, a width that is no finite
|
|
2895
2900
|
* number, `aside: 'assistant'` without an assistant, an assistant shortcut
|
|
2896
2901
|
* that names no key, `restoreLastView` without `storage`, a labels `locale`
|
|
@@ -2955,10 +2960,11 @@ export class DeesAppui extends DeesElement {
|
|
|
2955
2960
|
if (config.activityLog) {
|
|
2956
2961
|
this.activityLogToggleVisible = config.activityLog.toggle ?? true;
|
|
2957
2962
|
if (config.activityLog.live !== undefined) this.activityLogLive = config.activityLog.live;
|
|
2958
|
-
if (config.activityLog.width !== undefined) this.applyPaneWidth('activity', config.activityLog.width);
|
|
2959
2963
|
}
|
|
2960
2964
|
|
|
2961
|
-
// The side panel: the assistant this configuration offers, then what it shows.
|
|
2965
|
+
// The side panel: its one width, the assistant this configuration offers, then what it shows.
|
|
2966
|
+
const asideWidth = configuredAsideWidth(config);
|
|
2967
|
+
if (asideWidth !== undefined) this.applyPaneWidth('aside', asideWidth);
|
|
2962
2968
|
this.applyAssistantConfig(config.assistant);
|
|
2963
2969
|
this.applyAside(config.aside ?? null);
|
|
2964
2970
|
|
|
@@ -3008,8 +3014,9 @@ export class DeesAppui extends DeesElement {
|
|
|
3008
3014
|
* for a host whose storage scope changes while the shell runs: a reader who
|
|
3009
3015
|
* switches to another set of books, whose tray tabs are that set's. The
|
|
3010
3016
|
* shell reads what it restores from the new storage, as `configure()` does,
|
|
3011
|
-
* and writes nothing
|
|
3012
|
-
*
|
|
3017
|
+
* and writes nothing but, once, a side panel width the storage still keeps
|
|
3018
|
+
* under a tool's old key: the layout (both menus' collapse, the pane widths,
|
|
3019
|
+
* the side panel), where a key the new storage does not hold keeps what the shell
|
|
3013
3020
|
* shows, and, where the tray is offered, the tray's tabs, which belong to the
|
|
3014
3021
|
* storage: the tray empties at once and shows the new storage's tabs, or none.
|
|
3015
3022
|
* The last view is not read; the route stays. From here on every change is
|
|
@@ -3033,7 +3040,9 @@ export class DeesAppui extends DeesElement {
|
|
|
3033
3040
|
/**
|
|
3034
3041
|
* What a reader left the layout at, read from the configured storage over
|
|
3035
3042
|
* what the configuration set: both menus' collapse, the pane widths and what
|
|
3036
|
-
* the side panel shows. A
|
|
3043
|
+
* the side panel shows. A side panel width kept only under a tool's key from
|
|
3044
|
+
* before the panel had one width is taken once and kept under the panel's
|
|
3045
|
+
* (`ShellStorage.restore()`). A stored assistant the configuration no longer
|
|
3037
3046
|
* offers is stale, not an error, and leaves the panel as configured.
|
|
3038
3047
|
* Resolves once the storage answered every key.
|
|
3039
3048
|
*/
|
|
@@ -80,9 +80,10 @@ interface IAppConfig {
|
|
|
80
80
|
defaultView?: string; // the first screen when the address names none
|
|
81
81
|
notFoundView?: string; // where an address naming no screen lands; one of `views`
|
|
82
82
|
secondaryMenu?: ISecondaryMenuConfig; // { autoHide?: boolean } — on unless false: no section menu while the view has no sections
|
|
83
|
-
activityLog?: IActivityLogConfig; // { live?: boolean; toggle?: boolean; width?: number (
|
|
83
|
+
activityLog?: IActivityLogConfig; // { live?: boolean; toggle?: boolean; width?: number (deprecated: asideWidth) }
|
|
84
84
|
assistant?: IAppAssistantConfig; // the side panel's second tool; see Side Panel
|
|
85
85
|
aside?: TAppuiAside | null; // what the side panel shows first: 'activity', 'assistant' or nothing
|
|
86
|
+
asideWidth?: number; // the side panel's first width (px), whichever tool it shows
|
|
86
87
|
bottomBar?: IBottomBarConfig;
|
|
87
88
|
commands?: ICommand[]; // host commands in the command palette
|
|
88
89
|
tray?: boolean; // offers the tabs tray; see Tabs Tray
|
|
@@ -856,11 +857,11 @@ appui.configure({
|
|
|
856
857
|
assistant: {
|
|
857
858
|
content: chat, // or () => createChat(), called on the first show
|
|
858
859
|
iconName: 'lucide:Sparkles', // the default
|
|
859
|
-
width: 420, // its first width, within 320–640px
|
|
860
860
|
shortcut: 'Mod+J', // shows it, or closes it while shown; no default
|
|
861
861
|
focus: () => chat.focusComposer(), // where a reader who opens it lands
|
|
862
862
|
},
|
|
863
863
|
aside: 'activity', // what the panel shows first; unset shows nothing
|
|
864
|
+
asideWidth: 420, // its first width, within 320–640px, for either tool
|
|
864
865
|
});
|
|
865
866
|
|
|
866
867
|
appui.setAside('assistant'); // show a tool in place of the one shown
|
|
@@ -884,6 +885,11 @@ appui.addEventListener('aside-change', (event) => {
|
|
|
884
885
|
and `setAside('assistant')` throws without an assistant.
|
|
885
886
|
- **Both tools stay mounted.** The tool not shown is inert and transparent, never
|
|
886
887
|
removed, so a switch keeps a chat draft, a scroll position and a stream.
|
|
888
|
+
- **One width.** The panel has a width, and the tool it shows fills it: opening,
|
|
889
|
+
switching or closing a tool never changes it, only a reader's resize,
|
|
890
|
+
`setPaneWidth('aside', …)` or `asideWidth` (see [Layout](#layout)). The
|
|
891
|
+
deprecated `assistant.width` and `activityLog.width` set the same one width;
|
|
892
|
+
`asideWidth` wins over `assistant.width`, which wins over `activityLog.width`.
|
|
887
893
|
- **`setAside()` is silent.** It emits nothing, so a host restoring a stored state
|
|
888
894
|
never hears it echoed back, it stores nothing (see [Persistence](#persistence)),
|
|
889
895
|
and it does not take the focus into the tool.
|
|
@@ -957,10 +963,10 @@ Each type has a default icon that can be overridden:
|
|
|
957
963
|
|
|
958
964
|
## Layout
|
|
959
965
|
|
|
960
|
-
The section menu and the side panel
|
|
961
|
-
|
|
962
|
-
that a reader drags, or focuses and moves with the keyboard. The side panel has one
|
|
963
|
-
|
|
966
|
+
The section menu and the side panel can be resized. Each has a separator on its
|
|
967
|
+
inner edge, a [`dees-resize-handle`](../../00group-layout/dees-resize-handle/dees-resize-handle.ts),
|
|
968
|
+
that a reader drags, or focuses and moves with the keyboard. The side panel has one
|
|
969
|
+
width whichever tool it shows, so its separator sizes the panel for both tools.
|
|
964
970
|
|
|
965
971
|
| Key | Moves the separator |
|
|
966
972
|
| --- | --- |
|
|
@@ -972,14 +978,13 @@ which sizes the tool it shows; each tool keeps its own width.
|
|
|
972
978
|
| Pane | Default | Range |
|
|
973
979
|
| --- | --- | --- |
|
|
974
980
|
| `secondary`, the section menu | 240px | 180–400px |
|
|
975
|
-
| `
|
|
976
|
-
| `assistant`, the assistant | 400px | 320–640px |
|
|
981
|
+
| `aside`, the side panel, whichever tool it shows | 400px | 320–640px |
|
|
977
982
|
|
|
978
983
|
```typescript
|
|
979
|
-
appui.configure({ views, aside: 'activity',
|
|
984
|
+
appui.configure({ views, aside: 'activity', asideWidth: 360 }); // the panel's first width
|
|
980
985
|
appui.setPaneWidth('secondary', 320); // clamped to the range, in whole pixels
|
|
981
|
-
appui.getPaneWidth('
|
|
982
|
-
appui.setPaneWidth('
|
|
986
|
+
appui.getPaneWidth('aside'); // 360, also while the panel is closed
|
|
987
|
+
appui.setPaneWidth('aside', 480); // the panel's, for the activity log and the assistant alike
|
|
983
988
|
|
|
984
989
|
// A reader settled a pane at a new width: once per drag, once per key.
|
|
985
990
|
appui.addEventListener('pane-resize', (event) => {
|
|
@@ -988,6 +993,11 @@ appui.addEventListener('pane-resize', (event) => {
|
|
|
988
993
|
});
|
|
989
994
|
```
|
|
990
995
|
|
|
996
|
+
`'activity'` and `'assistant'` are deprecated names of `'aside'`, from when each tool
|
|
997
|
+
had a width of its own: `setPaneWidth()` and `getPaneWidth()` take them for the one
|
|
998
|
+
side panel width, and `pane-resize` still names the side panel by the tool it showed,
|
|
999
|
+
so hosts written for per-tool widths keep working; either name carries the one width.
|
|
1000
|
+
|
|
991
1001
|
A width lands at once, whoever sets it: the pane follows the pointer directly, and
|
|
992
1002
|
only showing, hiding and collapsing a pane animate. `setPaneWidth()` emits nothing,
|
|
993
1003
|
so a host restoring a stored width never hears it echoed back; a configured storage
|
|
@@ -997,10 +1007,10 @@ expanded, and both menus fold into their rail as one motion, the words fading wh
|
|
|
997
1007
|
the icons stay where they are.
|
|
998
1008
|
|
|
999
1009
|
The shell writes the widths into its own inline style as
|
|
1000
|
-
`--dees-appui-secondary-width
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1010
|
+
`--dees-appui-secondary-width` and `--dees-appui-aside-width`, for anything laid out
|
|
1011
|
+
beside the panes to read; the side panel's also as the deprecated
|
|
1012
|
+
`--dees-appui-activity-width` and `--dees-appui-assistant-width`. They are outputs,
|
|
1013
|
+
not settings: a width is set through `setPaneWidth()` or `asideWidth`. Set other inline styles on the shell property
|
|
1004
1014
|
by property (`style.height`, `styleMap`), because replacing the whole `style`
|
|
1005
1015
|
attribute takes the widths with it.
|
|
1006
1016
|
|
|
@@ -1044,18 +1054,23 @@ every value is JSON.
|
|
|
1044
1054
|
| --- | --- | --- |
|
|
1045
1055
|
| `dees-appui.mainMenuCollapsed` | `true` or `false` | `setMainMenuCollapsed()`, or a reader uses the main menu's own toggle |
|
|
1046
1056
|
| `dees-appui.secondaryMenuCollapsed` | `true` or `false` | `setSecondaryMenuCollapsed()`, or a reader uses the section menu's own toggle |
|
|
1047
|
-
| `dees-appui.secondaryPaneWidth`, `.
|
|
1057
|
+
| `dees-appui.secondaryPaneWidth`, `.asidePaneWidth` | whole CSS pixels | `setPaneWidth()`, or a reader settles a width on the pane's handle |
|
|
1048
1058
|
| `dees-appui.aside` | `"activity"`, `"assistant"` or `null` | a reader shows a tool or closes the side panel, as `aside-change` reports |
|
|
1049
1059
|
| `dees-appui.lastView` | `{ "viewId", "params", "query" }` | every activation while `restoreLastView` is set, the first screen's included, except the not-found view's |
|
|
1050
1060
|
| `dees-appui.trayTabs` | `[{ "key", "label", "iconName"?, "route": { "viewId", "params", "query" } }]` | every change of the tabs tray's tabs, by a reader or through the API |
|
|
1051
1061
|
|
|
1052
1062
|
- **Reading back.** `configure()` reads the layout keys and applies what they hold
|
|
1053
|
-
over what the configuration says: a stored width wins over `
|
|
1054
|
-
|
|
1063
|
+
over what the configuration says: a stored width wins over `asideWidth`, a
|
|
1064
|
+
stored side panel over `aside`. What an adapter answers
|
|
1055
1065
|
at once is in place when `configure()` returns, so the first render already shows
|
|
1056
1066
|
the reader's layout. A promise applies when it resolves, unless `configure()` ran
|
|
1057
1067
|
again or the key was written meanwhile; a menu restored that late folds with its
|
|
1058
1068
|
usual motion.
|
|
1069
|
+
- **Widths from before the side panel had one.** The shell asks for
|
|
1070
|
+
`.assistantPaneWidth` and `.activityPaneWidth`, which earlier versions wrote for
|
|
1071
|
+
each tool, together with `.asidePaneWidth`. While `.asidePaneWidth` holds
|
|
1072
|
+
nothing, it applies the first of them that holds a width and writes it under
|
|
1073
|
+
`.asidePaneWidth` once, which answers from then on. It never writes the old keys.
|
|
1059
1074
|
- **The last view** is read only when the address names no screen: a deep link
|
|
1060
1075
|
wins and the key is not even read. A promise is awaited inside the navigation
|
|
1061
1076
|
queue, so no screen and no menu row shows as current until it answers, and a
|
|
@@ -1063,7 +1078,8 @@ every value is JSON.
|
|
|
1063
1078
|
therefore settles every promise it returns. A stored route that no longer names a
|
|
1064
1079
|
screen — its view gone, a parameter missing, its `validateRoute` refusing — is
|
|
1065
1080
|
stale, not an error: the default view shows.
|
|
1066
|
-
- **What writes nothing:** `configure()`, restoring the layout
|
|
1081
|
+
- **What writes nothing:** `configure()`, restoring the layout (but for the one
|
|
1082
|
+
move of an old side panel width above), assigning a
|
|
1067
1083
|
property such as `mainmenuCollapsed` directly, a view's chrome starting over,
|
|
1068
1084
|
opening or closing a compact drawer, the widths a handle passes through before it
|
|
1069
1085
|
settles, and `setAside()`. The stored side panel is what a reader chose, so a
|
|
@@ -1284,10 +1300,10 @@ has the focus, and moves the focus into the content region.
|
|
|
1284
1300
|
loads; the message that stands in for a view that failed to load is a
|
|
1285
1301
|
`role="alert"`, so it is announced as it appears.
|
|
1286
1302
|
- Each resize handle is a focusable `separator` named "Resize section navigation",
|
|
1287
|
-
"Resize activity log" or "Resize
|
|
1288
|
-
|
|
1289
|
-
naming the pane — the side
|
|
1290
|
-
how to reset it.
|
|
1303
|
+
or after the tool the side panel shows, "Resize activity log" or "Resize
|
|
1304
|
+
assistant", with the pane's width and range in pixels as `aria-valuenow`,
|
|
1305
|
+
`aria-valuemin` and `aria-valuemax`, `aria-controls` naming the pane — the side
|
|
1306
|
+
panel, whichever tool it shows — and an `aria-description` saying how to reset it.
|
|
1291
1307
|
|
|
1292
1308
|
The names above are the English words; each comes from the catalog and can be a label (see [Labels](#labels)).
|
|
1293
1309
|
|
|
@@ -1786,11 +1802,11 @@ All interfaces are exported from `@design.estate/dees-catalog`:
|
|
|
1786
1802
|
- `IAppUser` - User configuration
|
|
1787
1803
|
- `IActivityEntry` - Activity log entry
|
|
1788
1804
|
- `IActivityLogAPI` - Activity log methods
|
|
1789
|
-
- `IActivityLogConfig` - Activity log configuration
|
|
1790
|
-
- `TAppuiPane` - A resizable pane: `'secondary' | 'activity'
|
|
1805
|
+
- `IActivityLogConfig` - Activity log configuration (`width` is deprecated: `asideWidth`)
|
|
1806
|
+
- `TAppuiPane` - A resizable pane: `'secondary' | 'aside'`; `'activity'` and `'assistant'` are deprecated names of `'aside'`
|
|
1791
1807
|
- `IPaneResizeEvent` - The detail of `pane-resize`: `{ pane, width }`
|
|
1792
1808
|
- `TAppuiAside` - A side panel tool: `'activity' | 'assistant'`
|
|
1793
|
-
- `IAppAssistantConfig` - The assistant: `content`, `iconName`, `
|
|
1809
|
+
- `IAppAssistantConfig` - The assistant: `content`, `iconName`, `shortcut`, `focus` (`width` is deprecated: `asideWidth`)
|
|
1794
1810
|
- `IAsideChangeEvent` - The detail of `aside-change`: `{ aside }`
|
|
1795
1811
|
- `IAsideToggleEvent` - The detail of the app bar's `aside-toggle`: `{ tool }`
|
|
1796
1812
|
- `IAppShellStorage` - The host's storage adapter: `read(key)` and `write(key, value)`, each at once or as a promise
|