@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
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@design.estate/wcctools": "^7.1.4",
|
|
66
|
-
"@git.zone/tsrepo": "^
|
|
66
|
+
"@git.zone/tsrepo": "^2.0.0",
|
|
67
67
|
"@push.rocks/projectinfo": "^5.1.0",
|
|
68
68
|
"@types/node": "26.6.6",
|
|
69
69
|
"@types/qrcode": "^1.5.6"
|
package/readme.md
CHANGED
|
@@ -27,6 +27,8 @@ switcher**, **view-toggle**, and **single-selection toggle** all lead to
|
|
|
27
27
|
| Navigate open content panels, with optional close controls | [`dees-appui-tabs`](#deesappuitabs) | Tab selection, close actions and keyboard focus. Use multitoggle for changing a display mode within a panel. |
|
|
28
28
|
| Build an application shell with views and menus | [`dees-appui`](#deesappui) | Main/secondary navigation, content tabs, bars and view lifecycle. Routes by hash, or by path beside the host's server routes. |
|
|
29
29
|
| Give a view its page header: title, summary, actions, tabs | [`dees-appui-page`](#deesappuipage) | One max-width and padding for every view; the primary action at the end of the title row. Do not hand-code headers. |
|
|
30
|
+
| Open a list's record beside the list, each scrolling on its own; a list with a sidebar | [`dees-appui-detailpane`](#deesappuidetailpane) in a `dees-appui-page` with `layout="fill"` | The host opens it from a row and closes it on `close-request`; the reader resizes it, and `width-change` reports the width to keep. At 700px or less it covers the list. |
|
|
31
|
+
| Switch a page's sub-views or a record's parts with tabs under its heading | [`dees-appui-secondarytabs`](#deesappuisecondarytabs), or `tabs` on [`dees-appui-page`](#deesappuipage) | A stripe of its own under the heading, the selected tab's line on its hairline; one Tab stop, badges, the first label under the title. Open records a reader closes again are content tabs ([`dees-appui-tabs`](#deesappuitabs)). |
|
|
30
32
|
| Head a view with its title, summary and actions above content that scrolls on its own | [`dees-appui-contentheading`](#deesappuicontentheading), or `contentHeading` in the view definition | A title with its badges, a line of facts joined with " · ", the view's tools and actions at the end of the row and a hairline across the content area; it stays while the view scrolls. `dees-appui-page` draws its header with it. |
|
|
31
33
|
| Report a page's warnings and errors from its header instead of stacking hints above its content | [`dees-statusbutton`](#deesstatusbutton) | One button beside the page's actions shows the worst status and a count; its speech-bubble panel lists the statuses, and an error or a severe warning opens it by itself. Keep [`dees-hint`](#deeshint) for a note next to the thing it explains. |
|
|
32
34
|
| Say that a tile, panel or list is loading, empty or failed | [`dees-state`](#deesstate) | One pattern for all three: icon or spinner, sentence, the way on, Retry and folded technical detail. A `dees-table` says the same through `loading`, `error` and `'empty'` actions. |
|
|
@@ -372,12 +374,14 @@ task guide and examples deliberately; the generated table does not replace them.
|
|
|
372
374
|
| `dees-appui-bottombar` | appui | [DeesAppuiBottombar](#deesappuibottombar) | [Source](ts_web/elements/00group-appui/dees-appui-bottombar/dees-appui-bottombar.ts) |
|
|
373
375
|
| `dees-appui-commandpalette` | appui | [DeesAppuiCommandpalette](#deesappuicommandpalette) | [Source](ts_web/elements/00group-appui/dees-appui-commandpalette/dees-appui-commandpalette.ts) |
|
|
374
376
|
| `dees-appui-contentheading` | appui | [DeesAppuiContentheading](#deesappuicontentheading) | [Source](ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.ts) |
|
|
377
|
+
| `dees-appui-detailpane` | appui | [DeesAppuiDetailpane](#deesappuidetailpane) | [Source](ts_web/elements/00group-appui/dees-appui-detailpane/dees-appui-detailpane.ts) |
|
|
375
378
|
| `dees-appui-location` | appui | [DeesAppuiLocation](#deesappuilocation) | [Source](ts_web/elements/00group-appui/dees-appui-location/dees-appui-location.ts) |
|
|
376
379
|
| `dees-appui-maincontent` | appui | [DeesAppuiMaincontent](#deesappuimaincontent) | [Source](ts_web/elements/00group-appui/dees-appui-maincontent/dees-appui-maincontent.ts) |
|
|
377
380
|
| `dees-appui-mainmenu` | appui | [DeesAppuiMainmenu](#deesappuimainmenu) | [Source](ts_web/elements/00group-appui/dees-appui-mainmenu/dees-appui-mainmenu.ts) |
|
|
378
381
|
| `dees-appui-page` | appui | [DeesAppuiPage](#deesappuipage) | [Source](ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.ts) |
|
|
379
382
|
| `dees-appui-profiledropdown` | appui | — | [Source](ts_web/elements/00group-appui/dees-appui-profiledropdown/dees-appui-profiledropdown.ts) |
|
|
380
383
|
| `dees-appui-secondarymenu` | appui | [DeesAppuiSecondarymenu](#deesappuisecondarymenu) | [Source](ts_web/elements/00group-appui/dees-appui-secondarymenu/dees-appui-secondarymenu.ts) |
|
|
384
|
+
| `dees-appui-secondarytabs` | appui | [DeesAppuiSecondarytabs](#deesappuisecondarytabs) | [Source](ts_web/elements/00group-appui/dees-appui-secondarytabs/dees-appui-secondarytabs.ts) |
|
|
381
385
|
| `dees-appui-signin` | appui | [DeesAppuiSignin](#deesappuisignin) | [Source](ts_web/elements/00group-appui/dees-appui-signin/dees-appui-signin.ts) |
|
|
382
386
|
| `dees-appui-tabs` | appui | [DeesAppuiTabs](#deesappuitabs) | [Source](ts_web/elements/00group-appui/dees-appui-tabs/dees-appui-tabs.ts) |
|
|
383
387
|
| `dees-appui-tray` | appui | [DeesAppuiTray](#deesappuitray) | [Source](ts_web/elements/00group-appui/dees-appui-tray/dees-appui-tray.ts) |
|
|
@@ -1337,13 +1341,14 @@ button**, **page status**, **warnings**, **errors**, **issues panel**, **health
|
|
|
1337
1341
|
indicator**.
|
|
1338
1342
|
|
|
1339
1343
|
The pattern, the design.estate standard for a view whose statuses would otherwise sit
|
|
1340
|
-
above its table: the page header holds the status button
|
|
1341
|
-
|
|
1344
|
+
above its table: the page header holds the status button and the table's search field
|
|
1345
|
+
in its tools, before its actions, and the page body is the table alone, `frameless` and
|
|
1346
|
+
`fill` (with the page's `layout="fill"`, the integrated list).
|
|
1342
1347
|
|
|
1343
1348
|
```typescript
|
|
1344
|
-
html`<dees-appui-page heading="Bank statements" description="4 statements · 2 accounts" .actions=${actions}>
|
|
1345
|
-
<dees-table-search slot="
|
|
1346
|
-
<dees-statusbutton slot="
|
|
1349
|
+
html`<dees-appui-page heading="Bank statements" description="4 statements · 2 accounts" layout="fill" .actions=${actions}>
|
|
1350
|
+
<dees-table-search slot="tools" for="statements" dataName="statements"></dees-table-search>
|
|
1351
|
+
<dees-statusbutton slot="tools" .items=${statuses}></dees-statusbutton>
|
|
1347
1352
|
${loading
|
|
1348
1353
|
? html`<dees-state variant="loading"></dees-state>`
|
|
1349
1354
|
: html`<dees-table id="statements" frameless fill .searchable=${false} dataName="statements"
|
|
@@ -2914,9 +2919,11 @@ explicit ranges supplied through the chart API.
|
|
|
2914
2919
|
|
|
2915
2920
|
App UI chrome shares an opaque tone and a 40px desktop / 48px touch row across
|
|
2916
2921
|
the app bar, pane headings, tabs and compact navigation. The section menu and the
|
|
2917
|
-
side panel
|
|
2918
|
-
to reset — and the shell writes their widths to `--dees-appui-secondary-width
|
|
2919
|
-
|
|
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
|
|
2920
2927
|
width and says so as its `compact` attribute; neither it nor the app bar is a CSS
|
|
2921
2928
|
size container. Sidebar selection follows
|
|
2922
2929
|
the item's `key`, including immutable badge updates. Tabs use an inset selection
|
|
@@ -3001,9 +3008,10 @@ interface IAppConfig {
|
|
|
3001
3008
|
defaultView?: string; // the first screen when the address names none
|
|
3002
3009
|
notFoundView?: string; // where an address naming no screen lands, told it in query.path
|
|
3003
3010
|
secondaryMenu?: ISecondaryMenuConfig; // { autoHide?: boolean } — on unless false: no section menu while the view has no sections
|
|
3004
|
-
activityLog?: IActivityLogConfig; // toggle: false drops the app bar's activity button; width is
|
|
3005
|
-
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)
|
|
3006
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
|
|
3007
3015
|
bottomBar?: IBottomBarConfig;
|
|
3008
3016
|
commands?: ICommand[];
|
|
3009
3017
|
tray?: boolean; // the tabs tray: pages a reader keeps across views, above the bottom bar
|
|
@@ -3065,7 +3073,7 @@ speaks English until it is set.
|
|
|
3065
3073
|
| **Content Heading** | `setContentHeading(heading \| null)`, `getContentHeading()`; a view declares its own in `contentHeading` |
|
|
3066
3074
|
| **Activity Log** | `activityLog.add()`, `activityLog.addMany()`, `activityLog.clear()`, `activityLog.getEntries()`, `activityLog.filter()`, `activityLog.search()` |
|
|
3067
3075
|
| **Side Panel** | `setAside(tool \| null)`, `getAside()` for `'activity'` and `'assistant'`; the `aside-change` event (`{ aside }`) once per change a reader makes |
|
|
3068
|
-
| **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 |
|
|
3069
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 |
|
|
3070
3078
|
| **Bottom Bar** | `bottomBar.addWidget()`, `bottomBar.updateWidget()`, `bottomBar.removeWidget()`, `bottomBar.getWidget()`, `bottomBar.clearWidgets()`, `bottomBar.addAction()`, `bottomBar.removeAction()`, `bottomBar.clearActions()`, `setBottomBarVisible()`, `getBottomBarVisible()` |
|
|
3071
3079
|
| **Observables** | `viewChanged$`, `viewLifecycle$` |
|
|
@@ -3619,8 +3627,9 @@ with the focus in it. See
|
|
|
3619
3627
|
|
|
3620
3628
|
The page of a view inside `dees-appui`: its header and its content within one
|
|
3621
3629
|
max-width and one padding, so every view of an app lines up and none hand-codes a
|
|
3622
|
-
header
|
|
3623
|
-
|
|
3630
|
+
header — or, with `layout="fill"`, an integrated list that fills the view. The header
|
|
3631
|
+
is a [`dees-appui-contentheading`](#deesappuicontentheading). Search terms: **page
|
|
3632
|
+
header**, **page title**, **header actions**, **page tabs**, **integrated list**.
|
|
3624
3633
|
|
|
3625
3634
|
```typescript
|
|
3626
3635
|
html`<dees-appui-page
|
|
@@ -3651,14 +3660,17 @@ html`<dees-appui-page
|
|
|
3651
3660
|
the title row, the primary one last and in the accent colour, secondary ones as
|
|
3652
3661
|
outlines. Each `action` is awaited with its button pending meanwhile, and a
|
|
3653
3662
|
rejection is reported as `dees-action-error` (`source: 'page-action'`). The
|
|
3654
|
-
`
|
|
3655
|
-
[`dees-table-search`](#deestablesearch) and the page's
|
|
3656
|
-
[`dees-statusbutton`](#deesstatusbutton)
|
|
3657
|
-
fit in one row, and always below 700px of
|
|
3658
|
-
title
|
|
3663
|
+
`tools` slot takes controls of the host's own before them — the list's
|
|
3664
|
+
[`dees-table-search`](#deestablesearch), filters and the page's
|
|
3665
|
+
[`dees-statusbutton`](#deesstatusbutton) — and the `actions` slot after them. Where
|
|
3666
|
+
the title and the tools and actions do not fit in one row, and always below 700px of
|
|
3667
|
+
page width, the tools and actions stand under the title together; the title keeps
|
|
3668
|
+
its width.
|
|
3659
3669
|
- `tabs` (`IAppuiPageTab[]`: `key`, `label`, `iconName?`, `badge?`) are sections of
|
|
3660
|
-
the page,
|
|
3661
|
-
|
|
3670
|
+
the page — its sub-views, or the parts of a record — in a stripe of their own under
|
|
3671
|
+
the header: a [`dees-appui-secondarytabs`](#deesappuisecondarytabs) named by the
|
|
3672
|
+
title, with its own hairline and the selected tab's line on it. The content is their
|
|
3673
|
+
`tabpanel`, named by the selected tab. `selectedTab` (reflected) is the selected key, the first tab while
|
|
3662
3674
|
it names none. A click, or Enter or Space after moving with the arrow keys (in the
|
|
3663
3675
|
writing direction), Home and End, selects a tab, sets `selectedTab` and emits the
|
|
3664
3676
|
bubbling, composed `tab-select` (`{ key, tab }`); the tabs are one Tab stop. A host
|
|
@@ -3666,8 +3678,116 @@ html`<dees-appui-page
|
|
|
3666
3678
|
- The page owns its inset (32px, 16px below 700px of page width) and its
|
|
3667
3679
|
max-width: `contentWidth` `'default'` (`--dees-content-width-xl`, 1200px), `'wide'`
|
|
3668
3680
|
(`--dees-content-width-2xl`, 1600px) or `'full'`, or `--dees-appui-page-max-width` for
|
|
3669
|
-
another. The header's content
|
|
3670
|
-
width. The content is a grid with a 16px gap.
|
|
3681
|
+
another. The header's content and the tabs keep both; their hairlines span the
|
|
3682
|
+
page's full width. The content is a grid with a 16px gap.
|
|
3683
|
+
- `layout` (reflected) is `'scroll'`, the default, or `'fill'`: the integrated list.
|
|
3684
|
+
The page takes its container's height (`height: 100%`); the heading and the tabs keep
|
|
3685
|
+
theirs, and the content fills the rest edge to edge — no max-width, no side inset, no
|
|
3686
|
+
bottom padding — without the page scrolling. A frameless, `fill` table or a
|
|
3687
|
+
[`dees-appui-detailpane`](#deesappuidetailpane) fills it and scrolls inside itself;
|
|
3688
|
+
the content area scrolls only what does not. The heading and the tabs drop the
|
|
3689
|
+
max-width as well, and the content declares the page's inset as the region inset
|
|
3690
|
+
(`--dees-inset-inline`), so the list's first column stands under the title.
|
|
3691
|
+
|
|
3692
|
+
```typescript
|
|
3693
|
+
html`<dees-appui-page heading="Routes" description="Network · 9 routes" layout="fill"
|
|
3694
|
+
.actions=${[{ label: 'Add route', iconName: 'lucide:Plus', type: 'primary', action: () => this.add() }]}
|
|
3695
|
+
.tabs=${[{ key: 'routes', label: 'Routes', badge: 9 }, { key: 'redirects', label: 'Derived redirects', badge: 5 }]}
|
|
3696
|
+
>
|
|
3697
|
+
<dees-table-search slot="tools" for="routes" dataName="routes"></dees-table-search>
|
|
3698
|
+
<dees-statusbutton slot="tools" .items=${statuses}></dees-statusbutton>
|
|
3699
|
+
<dees-table id="routes" frameless fill .searchable=${false} .columns=${columns} .data=${routes}></dees-table>
|
|
3700
|
+
</dees-appui-page>`
|
|
3701
|
+
```
|
|
3702
|
+
|
|
3703
|
+
#### `DeesAppuiSecondarytabs`
|
|
3704
|
+
|
|
3705
|
+
A view's second level of tabs — the sub-views of a page, or the parts of a record —
|
|
3706
|
+
as a stripe across the content's width under the page heading, with a hairline of its
|
|
3707
|
+
own below it on which the selected tab's line lies. `dees-appui-page` draws its `tabs`
|
|
3708
|
+
with one; a view that heads itself with a
|
|
3709
|
+
[`dees-appui-contentheading`](#deesappuicontentheading) puts one under it. Search
|
|
3710
|
+
terms: **sub-views**, **sub tabs**, **record tabs**, **tab stripe**, **secondary
|
|
3711
|
+
navigation**.
|
|
3712
|
+
|
|
3713
|
+
```typescript
|
|
3714
|
+
html`<dees-appui-contentheading heading="Routes" description="Network · 9 routes"></dees-appui-contentheading>
|
|
3715
|
+
<dees-appui-secondarytabs
|
|
3716
|
+
label="Routes"
|
|
3717
|
+
.tabs=${[{ key: 'routes', label: 'Routes', badge: 9 }, { key: 'redirects', label: 'Derived redirects', badge: 5 }]}
|
|
3718
|
+
.selectedTab=${this.subView}
|
|
3719
|
+
.controlsElement=${this.panel}
|
|
3720
|
+
@tab-select=${(event: CustomEvent<IAppuiPageTabSelectEvent>) => this.show(event.detail.key)}
|
|
3721
|
+
></dees-appui-secondarytabs>`
|
|
3722
|
+
```
|
|
3723
|
+
|
|
3724
|
+
- `tabs` (`IAppuiPageTab[]`: `key`, `label`, `iconName?`, `badge?`), a badge a count or
|
|
3725
|
+
a short mark after the label. `selectedTab` (reflected) is the selected key, the
|
|
3726
|
+
first tab while it names none; `label` (reflected) names the `tablist`, such as the
|
|
3727
|
+
page's title. `controlsElement` is the element that shows the selected tab, which
|
|
3728
|
+
every tab names as the panel it controls (an element reference: an IDREF does not
|
|
3729
|
+
cross the tabs' shadow root); name that panel after the selected tab.
|
|
3730
|
+
- A click, or Enter or Space after moving with the arrow keys (in the writing
|
|
3731
|
+
direction), Home and End, selects a tab, reflects `selectedTab` and emits the
|
|
3732
|
+
bubbling, composed `tab-select` (`{ key, tab }`); the tabs are one Tab stop. A tab
|
|
3733
|
+
the host selects through `selectedTab` emits nothing.
|
|
3734
|
+
- The first tab's label stands at the region inset, `--dees-inset-inline`, where a
|
|
3735
|
+
container declares one, else at 32px (16px below 700px of width), so it lines up with
|
|
3736
|
+
the title above; its hover face reaches into the inset.
|
|
3737
|
+
`--dees-appui-secondarytabs-max-width` caps the row, centred, while the hairline keeps
|
|
3738
|
+
the full width. A row wider than the stripe scrolls sideways under an overlay
|
|
3739
|
+
scrollbar, and the selected tab scrolls into view.
|
|
3740
|
+
|
|
3741
|
+
#### `DeesAppuiDetailpane`
|
|
3742
|
+
|
|
3743
|
+
A list and the record it opens, side by side inside a view's content — the integrated
|
|
3744
|
+
list's sidebar: the list takes the room left and scrolls on its own, the record scrolls
|
|
3745
|
+
on its own in a pane at the end, with the side panel's surface and hairline. Put it in
|
|
3746
|
+
a [`dees-appui-page`](#deesappuipage) with `layout="fill"`. Search terms: **detail
|
|
3747
|
+
pane**, **sidebar**, **master detail**, **record panel**, **split view**, **inspector**.
|
|
3748
|
+
|
|
3749
|
+
```typescript
|
|
3750
|
+
html`<dees-appui-page layout="fill" heading="Routes" .actions=${actions}>
|
|
3751
|
+
<dees-table-search slot="tools" for="routes"></dees-table-search>
|
|
3752
|
+
<dees-appui-detailpane
|
|
3753
|
+
.open=${!!this.route}
|
|
3754
|
+
.heading=${this.route?.name ?? ''}
|
|
3755
|
+
.description=${this.route ? `${this.route.target} · ${this.route.cluster}` : ''}
|
|
3756
|
+
.width=${this.paneWidth}
|
|
3757
|
+
@close-request=${() => this.closeRoute()}
|
|
3758
|
+
@width-change=${(event: CustomEvent<IAppuiDetailpaneWidthChangeEvent>) => this.keepWidth(event.detail.width)}
|
|
3759
|
+
>
|
|
3760
|
+
<dees-table id="routes" frameless fill .searchable=${false} .selectionMode=${'single'} .rowKey=${'id'}
|
|
3761
|
+
.columns=${columns} .data=${routes}
|
|
3762
|
+
@selectionChange=${(event: CustomEvent) => this.openRoute(event.detail.selectedIds[0])}></dees-table>
|
|
3763
|
+
<dees-badge slot="status" tone="warning" text="Applying" rounded></dees-badge>
|
|
3764
|
+
<dees-button slot="actions" size="sm" type="outline" text="Edit"></dees-button>
|
|
3765
|
+
<div slot="detail">${this.renderRoute()}</div>
|
|
3766
|
+
</dees-appui-detailpane>
|
|
3767
|
+
</dees-appui-page>`
|
|
3768
|
+
```
|
|
3769
|
+
|
|
3770
|
+
- Slots: the default slot is the list; `detail` is the record, with the pane's padding;
|
|
3771
|
+
`status` stands beside the heading (a `dees-badge`); `actions` before the close
|
|
3772
|
+
button. A frameless list in the default slot takes the region inset of the page
|
|
3773
|
+
around it, so its first column stands under the page's title; the record does not.
|
|
3774
|
+
- `heading` and `description` (reflected) are the record's name and one line about it.
|
|
3775
|
+
`open` (reflected) shows the pane; the host sets it, and the record, from a row it
|
|
3776
|
+
opens, and clears them on the bubbling, composed `close-request` that the close
|
|
3777
|
+
button sends — the pane never closes itself.
|
|
3778
|
+
- `width` (reflected, 400) is drawn between `minWidth` (320) and `maxWidth` (640). The
|
|
3779
|
+
handle on the pane's inner edge (a `dees-resize-handle`, a focusable separator
|
|
3780
|
+
with `aria-valuenow`, `-min` and `-max`) resizes it by pointer drag or by the arrow
|
|
3781
|
+
keys (Shift for 64px, Home and End to the bounds, Enter and a double-click back to
|
|
3782
|
+
400); the width lands at once, and `width-change` (`{ width }`, bubbling, composed)
|
|
3783
|
+
reports it once settled, for the host to keep and give back as `width`.
|
|
3784
|
+
- At 700px of its own width or less (the app UI's compact width) the open pane covers
|
|
3785
|
+
the list, which is inert meanwhile, and Escape asks to close it unless something
|
|
3786
|
+
inside took the press; the host attribute `narrow` and the `narrow` getter say so.
|
|
3787
|
+
- `focus()` takes the reader into the pane — call it when opening covers the list, or
|
|
3788
|
+
whenever the reader should land in the record; it waits for the render that shows
|
|
3789
|
+
the pane. When the pane closes, the focus goes where the host puts it: the row the
|
|
3790
|
+
record came from.
|
|
3671
3791
|
|
|
3672
3792
|
#### `DeesAppuiSignin`
|
|
3673
3793
|
|
|
@@ -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
|
}
|
|
@@ -18,6 +18,13 @@ import type {
|
|
|
18
18
|
export const normalizeIconName = (iconName: string): string =>
|
|
19
19
|
iconName.includes(':') ? iconName : `lucide:${iconName}`;
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* At or below this width an app UI layout is compact: the shell opens its
|
|
23
|
+
* navigation on demand and its side panel covers the content, and a detail
|
|
24
|
+
* pane covers its list. Each measures its own width against it.
|
|
25
|
+
*/
|
|
26
|
+
export const appuiCompactMaxWidth = 700;
|
|
27
|
+
|
|
21
28
|
/** The activity log's icon, on its app bar button and its palette command. */
|
|
22
29
|
export const activityLogIconName = 'lucide:activity';
|
|
23
30
|
|
|
@@ -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 = {
|