@design.estate/dees-catalog 21.38.0 → 21.39.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 +110 -58
- package/dist_bundle/bundle.js.map +1 -1
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-H5AZRDKM.js → chunk-7SVFKQJK.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MFMMXJXV.js → chunk-FGQNHF2X.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-IBYJBCAQ.js → dees-modal-43SBKV7A.js} +2 -2
- package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EVDB2ODT.js → dees-workspace-terminal-4WZ3CPSW.js} +3 -3
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.d.ts +12 -4
- package/dist_ts_web/elements/00group-appui/dees-appui/dees-appui.js +28 -8
- package/dist_ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.d.ts +12 -8
- package/dist_ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.demo.d.ts +1 -0
- package/dist_ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.demo.js +20 -6
- package/dist_ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.js +41 -21
- package/dist_ts_web/elements/00group-appui/dees-appui-maincontent/dees-appui-maincontent.d.ts +9 -2
- package/dist_ts_web/elements/00group-appui/dees-appui-maincontent/dees-appui-maincontent.js +19 -17
- package/dist_ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.js +4 -2
- package/dist_ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.js +10 -1
- package/dist_ts_web/elements/00group-simple/dees-simple-appdash/dees-simple-appdash.d.ts +2 -2
- package/dist_ts_web/elements/00group-simple/dees-simple-appdash/dees-simple-appdash.js +5 -3
- package/dist_ts_web/elements/interfaces/appconfig.d.ts +4 -3
- package/dist_ts_web/elements/interfaces/contentheading.d.ts +15 -0
- package/package.json +1 -1
- package/readme.md +19 -11
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/00group-appui/dees-appui/dees-appui.ts +27 -7
- package/ts_web/elements/00group-appui/dees-appui/readme.md +44 -20
- package/ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.demo.ts +19 -5
- package/ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.ts +25 -12
- package/ts_web/elements/00group-appui/dees-appui-maincontent/dees-appui-maincontent.ts +17 -15
- package/ts_web/elements/00group-appui/dees-appui-page/dees-appui-page.ts +3 -1
- package/ts_web/elements/00group-input/dees-input-dropdown/dees-input-dropdown-popup.ts +9 -0
- package/ts_web/elements/00group-simple/dees-simple-appdash/dees-simple-appdash.ts +6 -4
- package/ts_web/elements/interfaces/appconfig.ts +4 -3
- package/ts_web/elements/interfaces/contentheading.ts +16 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-H5AZRDKM.js.map → chunk-7SVFKQJK.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MFMMXJXV.js.map → chunk-FGQNHF2X.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-modal-IBYJBCAQ.js.map → dees-modal-43SBKV7A.js.map} +0 -0
- /package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{dees-workspace-terminal-EVDB2ODT.js.map → dees-workspace-terminal-4WZ3CPSW.js.map} +0 -0
package/ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.demo.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { demoPage, demoSection } from '../../../demos/templates.js';
|
|
|
3
3
|
import type { IContentHeadingAction } from '../../interfaces/contentheading.js';
|
|
4
4
|
import '../../00group-feedback/dees-badge/dees-badge.js';
|
|
5
5
|
import '../../00group-button/dees-button/dees-button.js';
|
|
6
|
+
import '../../00group-input/dees-input-text/dees-input-text.js';
|
|
6
7
|
|
|
7
8
|
const delay = (ms: number) => new Promise<void>((resolve) => setTimeout(resolve, ms));
|
|
8
9
|
|
|
@@ -40,7 +41,7 @@ export const demoFunc = () => {
|
|
|
40
41
|
{ label: 'Close the year', iconName: 'lucide:Lock', type: 'destructive', action: () => { narrowResult.textContent = 'Close the year'; } },
|
|
41
42
|
{ label: 'New booking', iconName: 'lucide:Plus', type: 'primary', action: () => { narrowResult.textContent = 'New booking'; } },
|
|
42
43
|
];
|
|
43
|
-
return demoPage('Content heading', 'The heading of what the content area shows: a title, the line under it with what the screen shows and further facts, the screen\'s actions at the end of the row, and a hairline across the content area. A view declares it as data in `contentHeading`, and dees-appui renders it; dees-appui-page draws its header with it.', html`
|
|
44
|
+
return demoPage('Content heading', 'The heading of what the content area shows: a title with its badges, the line under it with what the screen shows and further facts, the view\'s tools and the screen\'s actions at the end of the row, and a hairline across the content area. A view declares it as data in `contentHeading`, and dees-appui renders it; dees-appui-page draws its header with it.', html`
|
|
44
45
|
${demoSection('A start screen', 'A title, a line with the chart of accounts and the reader\'s role, and the screen\'s primary action.', html`
|
|
45
46
|
${contentArea(html`<dees-appui-contentheading
|
|
46
47
|
heading="Home"
|
|
@@ -50,16 +51,15 @@ export const demoFunc = () => {
|
|
|
50
51
|
></dees-appui-contentheading>`)}
|
|
51
52
|
${homeResult}
|
|
52
53
|
`)}
|
|
53
|
-
${demoSection('A record', 'A back link to the list, a
|
|
54
|
+
${demoSection('A record', 'A back link to the list, its state as a badge beside the title, facts on the line under it, and two actions. Download runs for a moment: its button shows the pending state.', html`
|
|
54
55
|
${contentArea(html`<dees-appui-contentheading
|
|
55
56
|
heading="Invoice 2026-0142"
|
|
56
57
|
description="Acme Supplies Ltd."
|
|
57
58
|
.meta=${['Due 2026-10-24', 'EUR 1,280.00']}
|
|
58
59
|
.back=${{ label: 'Invoices', href: '#invoices' }}
|
|
60
|
+
.badges=${[{ text: 'Open', type: 'warning' }, { text: 'Overdue', type: 'error' }]}
|
|
59
61
|
.actions=${detailActions}
|
|
60
|
-
|
|
61
|
-
<dees-badge slot="status" type="warning" text="Open" rounded></dees-badge>
|
|
62
|
-
</dees-appui-contentheading>`)}
|
|
62
|
+
></dees-appui-contentheading>`)}
|
|
63
63
|
${detailResult}
|
|
64
64
|
`)}
|
|
65
65
|
${demoSection('A glyph and slotted actions', 'A glyph before the title, and controls in the actions slot instead of declared actions.', html`
|
|
@@ -67,6 +67,20 @@ export const demoFunc = () => {
|
|
|
67
67
|
<dees-button slot="actions" type="outline" icon="lucide:RefreshCw" .text=${'Sync'}></dees-button>
|
|
68
68
|
</dees-appui-contentheading>`)}
|
|
69
69
|
`)}
|
|
70
|
+
${demoSection('Tools before the actions', 'Controls of the view\'s own in the tools slot — a filter and a grouping — stand before the declared actions.', html`
|
|
71
|
+
${contentArea(html`<dees-appui-contentheading
|
|
72
|
+
heading="Invoices"
|
|
73
|
+
description="Incoming invoices"
|
|
74
|
+
.meta=${['42 this year']}
|
|
75
|
+
.badges=${[{ text: '3 open', type: 'warning' }]}
|
|
76
|
+
.actions=${[{ label: 'New invoice', iconName: 'lucide:Plus', type: 'primary', action: () => undefined }]}
|
|
77
|
+
>
|
|
78
|
+
<div slot="tools" style="display: flex; align-items: center; gap: var(--dees-spacing-sm);">
|
|
79
|
+
<dees-input-text style="width: 200px;" labelPosition="none" placeholder="Filter invoices"></dees-input-text>
|
|
80
|
+
<dees-button type="outline" icon="lucide:Group" .text=${'By supplier'}></dees-button>
|
|
81
|
+
</div>
|
|
82
|
+
</dees-appui-contentheading>`)}
|
|
83
|
+
`)}
|
|
70
84
|
${demoSection('Narrow', 'At 600px the actions stand under the title and wrap, and a title wider than the row ends in an ellipsis.', html`
|
|
71
85
|
${contentArea(html`<dees-appui-contentheading
|
|
72
86
|
heading="Journal of the financial year 2026 for Acme Holding GmbH and its subsidiaries"
|
package/ts_web/elements/00group-appui/dees-appui-contentheading/dees-appui-contentheading.ts
CHANGED
|
@@ -9,10 +9,11 @@ import {
|
|
|
9
9
|
cssManager,
|
|
10
10
|
} from '@design.estate/dees-element';
|
|
11
11
|
import type { IAppLocationItem } from '../../interfaces/applocation.js';
|
|
12
|
-
import type { IContentHeadingAction } from '../../interfaces/contentheading.js';
|
|
12
|
+
import type { IContentHeadingAction, IContentHeadingBadge } from '../../interfaces/contentheading.js';
|
|
13
13
|
import { themeDefaultStyles } from '../../00theme.js';
|
|
14
14
|
import { runAction } from '../../00actionerror.js';
|
|
15
15
|
import '../../00group-button/dees-button/dees-button.js';
|
|
16
|
+
import '../../00group-feedback/dees-badge/dees-badge.js';
|
|
16
17
|
import '../../00group-utility/dees-icon/dees-icon.js';
|
|
17
18
|
import { normalizeIconName } from '../appui.helpers.js';
|
|
18
19
|
import { dcLocalize } from '../../../i18n/localize.js';
|
|
@@ -39,10 +40,11 @@ const actionKeyOf = (action: IContentHeadingAction): string => action.key ?? act
|
|
|
39
40
|
* Before the title stands a back link to the screen above (`back`) or a glyph
|
|
40
41
|
* (`iconName`); above it, optionally, `breadcrumbs`.
|
|
41
42
|
*
|
|
42
|
-
* Slots: `status` sits beside the title
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* Beside the title stand its `badges`. Slots: `status` sits beside the title,
|
|
44
|
+
* after the badges (a `dees-badge`); `description` replaces the line under the
|
|
45
|
+
* title with markup; `tools` takes controls before the declared `actions`
|
|
46
|
+
* (filters, a status button, a menu); `actions` adds controls after them; `tabs`
|
|
47
|
+
* takes a tab row under the title row, standing on the hairline.
|
|
46
48
|
*
|
|
47
49
|
* The title and its line keep their width: where they and the actions do not
|
|
48
50
|
* fit in one row, the actions move under them; below 700px of width they always
|
|
@@ -62,6 +64,10 @@ export class DeesAppuiContentheading extends DeesElement {
|
|
|
62
64
|
@property({ type: String, reflect: true })
|
|
63
65
|
accessor heading: string = '';
|
|
64
66
|
|
|
67
|
+
/** States of what the screen shows, as badges beside the title. */
|
|
68
|
+
@property({ attribute: false })
|
|
69
|
+
accessor badges: IContentHeadingBadge[] = [];
|
|
70
|
+
|
|
65
71
|
/** The line under the title: what the screen shows. */
|
|
66
72
|
@property({ type: String, reflect: true })
|
|
67
73
|
accessor description: string = '';
|
|
@@ -93,9 +99,9 @@ export class DeesAppuiContentheading extends DeesElement {
|
|
|
93
99
|
@state()
|
|
94
100
|
private accessor pendingActions: ReadonlySet<string> = new Set();
|
|
95
101
|
|
|
96
|
-
/**
|
|
102
|
+
/** The slots beside the declared actions that hold anything, which show the actions without declared ones. */
|
|
97
103
|
@state()
|
|
98
|
-
private accessor
|
|
104
|
+
private accessor filledControlSlots: ReadonlySet<string> = new Set();
|
|
99
105
|
|
|
100
106
|
/** Whether the `tabs` slot holds a tab row, which then stands on the hairline. */
|
|
101
107
|
@state()
|
|
@@ -244,7 +250,8 @@ export class DeesAppuiContentheading extends DeesElement {
|
|
|
244
250
|
min-width: 0;
|
|
245
251
|
}
|
|
246
252
|
|
|
247
|
-
::slotted([slot='status'])
|
|
253
|
+
::slotted([slot='status']),
|
|
254
|
+
.titleLine dees-badge {
|
|
248
255
|
flex: none;
|
|
249
256
|
}
|
|
250
257
|
|
|
@@ -303,14 +310,16 @@ export class DeesAppuiContentheading extends DeesElement {
|
|
|
303
310
|
<div class="titles">
|
|
304
311
|
<div class="titleLine">
|
|
305
312
|
<h1 title=${this.heading}>${this.heading}</h1>
|
|
313
|
+
${this.badges.map((badge) => html`<dees-badge .type=${badge.type ?? 'default'} .text=${badge.text} .rounded=${true}></dees-badge>`)}
|
|
306
314
|
<slot name="status"></slot>
|
|
307
315
|
</div>
|
|
308
316
|
<div class="subheading"><slot name="description">${line}</slot></div>
|
|
309
317
|
</div>
|
|
310
318
|
</div>
|
|
311
|
-
<div class="actions ${this.actions.length || this.
|
|
319
|
+
<div class="actions ${this.actions.length || this.filledControlSlots.size ? 'filled' : ''}">
|
|
320
|
+
<slot name="tools" @slotchange=${this.handleControlSlotChange}></slot>
|
|
312
321
|
${this.orderedActions().map((action) => this.renderAction(action))}
|
|
313
|
-
<slot name="actions" @slotchange=${this.
|
|
322
|
+
<slot name="actions" @slotchange=${this.handleControlSlotChange}></slot>
|
|
314
323
|
</div>
|
|
315
324
|
</div>
|
|
316
325
|
<slot name="tabs" @slotchange=${this.handleTabsSlotChange}></slot>
|
|
@@ -320,8 +329,12 @@ export class DeesAppuiContentheading extends DeesElement {
|
|
|
320
329
|
}
|
|
321
330
|
|
|
322
331
|
/** Flattened: a slot a composing element forwards counts by what it holds. */
|
|
323
|
-
private readonly
|
|
324
|
-
|
|
332
|
+
private readonly handleControlSlotChange = (event: Event) => {
|
|
333
|
+
const slot = event.currentTarget as HTMLSlotElement;
|
|
334
|
+
const filled = new Set(this.filledControlSlots);
|
|
335
|
+
if (slot.assignedElements({ flatten: true }).length > 0) filled.add(slot.name);
|
|
336
|
+
else filled.delete(slot.name);
|
|
337
|
+
this.filledControlSlots = filled;
|
|
325
338
|
};
|
|
326
339
|
|
|
327
340
|
private readonly handleTabsSlotChange = (event: Event) => {
|
|
@@ -21,7 +21,8 @@ import { demoFunc } from './dees-appui-maincontent.demo.js';
|
|
|
21
21
|
* The content area of `dees-appui`: the content tabs, then the `heading` slot
|
|
22
22
|
* (a `dees-appui-contentheading`, which `dees-appui` places there for a view
|
|
23
23
|
* that declares a `contentHeading`), then the scrolling content. The tabs and
|
|
24
|
-
* the heading stay while the content scrolls beneath them.
|
|
24
|
+
* the heading stay while the content scrolls beneath them. The tab bar takes
|
|
25
|
+
* no room while it has no tab and no tab action to show.
|
|
25
26
|
*/
|
|
26
27
|
@customElement('dees-appui-maincontent')
|
|
27
28
|
export class DeesAppuiMaincontent extends DeesElement {
|
|
@@ -130,7 +131,7 @@ export class DeesAppuiMaincontent extends DeesElement {
|
|
|
130
131
|
public render(): TemplateResult {
|
|
131
132
|
return html`
|
|
132
133
|
<div class="maincontainer">
|
|
133
|
-
<div class="topbar">
|
|
134
|
+
<div class="topbar" ?inert=${!this.tabBarShown()}>
|
|
134
135
|
<dees-appui-tabs
|
|
135
136
|
.labels=${this.labels}
|
|
136
137
|
.tabs=${this.tabs}
|
|
@@ -158,6 +159,16 @@ export class DeesAppuiMaincontent extends DeesElement {
|
|
|
158
159
|
`;
|
|
159
160
|
}
|
|
160
161
|
|
|
162
|
+
/**
|
|
163
|
+
* Whether the tab bar takes its row: it is shown, it holds a tab or a tab
|
|
164
|
+
* action — an empty bar is no bar — and auto-hide does not take it away.
|
|
165
|
+
*/
|
|
166
|
+
private tabBarShown(): boolean {
|
|
167
|
+
if (!this.showTabs) return false;
|
|
168
|
+
if (this.tabsAutoHide && this.tabs.length <= this.tabsAutoHideThreshold) return false;
|
|
169
|
+
return this.tabs.length > 0 || this.tabActionsLeft.length > 0 || this.tabActionsRight.length > 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
161
172
|
/**
|
|
162
173
|
* Put the reader into the content area. This is where the shell's skip link
|
|
163
174
|
* lands: the view container itself has `display: contents` and generates no
|
|
@@ -191,23 +202,14 @@ export class DeesAppuiMaincontent extends DeesElement {
|
|
|
191
202
|
}));
|
|
192
203
|
}
|
|
193
204
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
this.removeAttribute('notabs');
|
|
199
|
-
} else {
|
|
200
|
-
this.setAttribute('notabs', '');
|
|
201
|
-
}
|
|
202
|
-
}
|
|
205
|
+
/** Set before each render, so a bar that starts without tabs never shows, not even for a frame. */
|
|
206
|
+
protected willUpdate(changedProperties: Map<PropertyKey, unknown>) {
|
|
207
|
+
super.willUpdate(changedProperties);
|
|
208
|
+
this.toggleAttribute('notabs', !this.tabBarShown());
|
|
203
209
|
}
|
|
204
210
|
|
|
205
211
|
async firstUpdated(_changedProperties: Map<string | number | symbol, unknown>) {
|
|
206
212
|
await super.firstUpdated(_changedProperties);
|
|
207
|
-
// Apply initial notabs state
|
|
208
|
-
if (!this.showTabs) {
|
|
209
|
-
this.setAttribute('notabs', '');
|
|
210
|
-
}
|
|
211
213
|
// Tab selection is now handled by the dees-appui-tabs component
|
|
212
214
|
// But we need to ensure the tabs component is ready
|
|
213
215
|
// The tab bar names the panel through the element itself: an `aria-controls`
|
|
@@ -144,7 +144,8 @@ export class DeesAppuiPage extends DeesElement {
|
|
|
144
144
|
outline-offset: -2px;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
/* The selected tab's line lies on the heading's hairline: the row reaches over it.
|
|
147
|
+
/* The selected tab's line lies on the heading's hairline: the row reaches over it.
|
|
148
|
+
The first tab's label stands at the title's inset; its hover face reaches into the inset. */
|
|
148
149
|
.tabs {
|
|
149
150
|
display: flex;
|
|
150
151
|
gap: var(--dees-spacing-xs);
|
|
@@ -152,6 +153,7 @@ export class DeesAppuiPage extends DeesElement {
|
|
|
152
153
|
scrollbar-width: none;
|
|
153
154
|
margin-top: var(--dees-spacing-xs);
|
|
154
155
|
margin-bottom: calc(-1 * var(--dees-line-width-hairline));
|
|
156
|
+
margin-inline-start: calc(-1 * var(--dees-spacing-md));
|
|
155
157
|
}
|
|
156
158
|
|
|
157
159
|
.tab {
|
|
@@ -148,6 +148,12 @@ export class DeesInputDropdownPopup extends DeesElement {
|
|
|
148
148
|
opacity: 1;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
/* A list on its way out takes no presses: the reader has already chosen, and the next press
|
|
152
|
+
belongs to what lies under it. Set on the host the moment closing starts, not by a render. */
|
|
153
|
+
:host(.closing) .selectionBox {
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
151
157
|
.options-container {
|
|
152
158
|
min-height: 0;
|
|
153
159
|
max-height: 250px;
|
|
@@ -338,6 +344,8 @@ export class DeesInputDropdownPopup extends DeesElement {
|
|
|
338
344
|
const selectedIndex = this.options.findIndex((option) => option.key === this.selectedKey && !option.disabled);
|
|
339
345
|
this.highlightedIndex = selectedIndex >= 0 ? selectedIndex : firstUsableIndex(this.options);
|
|
340
346
|
this.searchValue = '';
|
|
347
|
+
// the field reuses its list: one closed before takes presses again
|
|
348
|
+
this.classList.remove('closing');
|
|
341
349
|
|
|
342
350
|
// Create window layer (transparent click-catcher, no dim/blur)
|
|
343
351
|
this.windowLayer = await DeesWindowLayer.createAndShow({ dimmed: false, ownerElement: this.ownerComponent });
|
|
@@ -367,6 +375,7 @@ export class DeesInputDropdownPopup extends DeesElement {
|
|
|
367
375
|
return;
|
|
368
376
|
}
|
|
369
377
|
this.isDestroying = true;
|
|
378
|
+
this.classList.add('closing');
|
|
370
379
|
this.searchAbort?.abort();
|
|
371
380
|
|
|
372
381
|
// Remove scroll/resize listeners
|
|
@@ -20,8 +20,8 @@ export interface IView {
|
|
|
20
20
|
subViews?: IView[];
|
|
21
21
|
/**
|
|
22
22
|
* The view's heading, above it in the workspace: its title (the view's `name`
|
|
23
|
-
* unless it names one), the line under it and
|
|
24
|
-
* heading of its own.
|
|
23
|
+
* unless it names one), the line under it, its badges, tools and actions. The
|
|
24
|
+
* view draws no heading of its own.
|
|
25
25
|
*/
|
|
26
26
|
contentHeading?: IContentHeading;
|
|
27
27
|
}
|
|
@@ -102,6 +102,8 @@ export class DeesSimpleAppDash extends DeesElement {
|
|
|
102
102
|
.viewTab.sub { min-height: 34px; font-size: 12px; }
|
|
103
103
|
.appActions { padding: 8px; border-top: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle); }
|
|
104
104
|
.workspace { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; min-height: 0; }
|
|
105
|
+
/* Carries a view's heading tools into their slot; the view's element is the control. */
|
|
106
|
+
.heading-tools { display: contents; }
|
|
105
107
|
.contentArea { min-height: 0; min-width: 0; position: relative; display: grid; }
|
|
106
108
|
.appcontent { overflow: auto; min-height: 0; min-width: 0; scrollbar-gutter: stable; overscroll-behavior: contain; }
|
|
107
109
|
.appcontent[inert] { visibility: hidden; }
|
|
@@ -209,8 +211,8 @@ export class DeesSimpleAppDash extends DeesElement {
|
|
|
209
211
|
const trail = view && (parent || title !== view.name) ? [...(parent ? [parent] : []), view].map(entry => ({ label: entry.name })) : [];
|
|
210
212
|
return html`${directives.keyed(view, html`<dees-appui-contentheading
|
|
211
213
|
.heading=${title} .description=${heading.description ?? ''} .meta=${heading.meta ?? []} .iconName=${heading.iconName ?? ''}
|
|
212
|
-
.back=${heading.back ?? null} .breadcrumbs=${trail} .actions=${heading.actions ?? []}
|
|
213
|
-
|
|
214
|
+
.back=${heading.back ?? null} .breadcrumbs=${trail} .badges=${heading.badges ?? []} .actions=${heading.actions ?? []}
|
|
215
|
+
>${heading.tools ? html`<div class="heading-tools" slot="tools">${heading.tools}</div>` : ''}</dees-appui-contentheading>`)}`;
|
|
214
216
|
}
|
|
215
217
|
|
|
216
218
|
private handleNavigationKey(event: KeyboardEvent): void {
|
|
@@ -293,8 +293,8 @@ export interface IViewDefinition {
|
|
|
293
293
|
contentTabs?: IMenuItem[];
|
|
294
294
|
/**
|
|
295
295
|
* The heading the shell shows above this view, under the content tabs: its
|
|
296
|
-
* title (the view's `name` unless it names one), the line under it
|
|
297
|
-
* actions, with a hairline across the content area. It stays while the view
|
|
296
|
+
* title (the view's `name` unless it names one), the line under it, its
|
|
297
|
+
* badges, tools and actions, with a hairline across the content area. It stays while the view
|
|
298
298
|
* scrolls. A view that draws its own heading, such as a `dees-appui-page`,
|
|
299
299
|
* declares none.
|
|
300
300
|
*/
|
|
@@ -421,7 +421,8 @@ export interface ISecondaryMenuConfig {
|
|
|
421
421
|
* The section menu takes no room while the view on screen declares no
|
|
422
422
|
* sections: no track in the grid, no resize handle, no compact "Sections"
|
|
423
423
|
* button. Its width and collapsed state are kept for the next view that has
|
|
424
|
-
* sections.
|
|
424
|
+
* sections. On unless set to `false`, which keeps an empty menu in place.
|
|
425
|
+
* See `setSecondaryMenuAutoHide`.
|
|
425
426
|
*/
|
|
426
427
|
autoHide?: boolean;
|
|
427
428
|
}
|
|
@@ -17,6 +17,13 @@ export interface IContentHeadingAction {
|
|
|
17
17
|
action: () => void | Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/** A badge beside a content heading's title: a state of what the screen shows. */
|
|
21
|
+
export interface IContentHeadingBadge {
|
|
22
|
+
text: string;
|
|
23
|
+
/** The badge's tone; `'default'` when unset. */
|
|
24
|
+
type?: 'default' | 'primary' | 'success' | 'warning' | 'error';
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
/**
|
|
21
28
|
* The heading of what the content area shows, declared as data: a view's
|
|
22
29
|
* `contentHeading`, which `dees-appui` renders above the view as a
|
|
@@ -25,6 +32,8 @@ export interface IContentHeadingAction {
|
|
|
25
32
|
export interface IContentHeading {
|
|
26
33
|
/** The title; in a view's `contentHeading`, the view's `name` while unset. */
|
|
27
34
|
title?: string;
|
|
35
|
+
/** States of what the screen shows, as badges beside the title. */
|
|
36
|
+
badges?: IContentHeadingBadge[];
|
|
28
37
|
/** The line under the title: what the screen shows. */
|
|
29
38
|
description?: string;
|
|
30
39
|
/** Further facts on that line, after the description, joined with " · ". */
|
|
@@ -34,4 +43,11 @@ export interface IContentHeading {
|
|
|
34
43
|
/** The screen above this one, a link before the title; shown when it has an `href`. */
|
|
35
44
|
back?: IAppLocationItem;
|
|
36
45
|
actions?: IContentHeadingAction[];
|
|
46
|
+
/**
|
|
47
|
+
* An element the view owns, placed before the actions, for controls that are
|
|
48
|
+
* no action: filters, a status button, a menu of record actions. The view
|
|
49
|
+
* renders and updates its content; setting the same element again leaves it
|
|
50
|
+
* in place, and the focus in it.
|
|
51
|
+
*/
|
|
52
|
+
tools?: HTMLElement;
|
|
37
53
|
}
|
/package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-H5AZRDKM.js.map → chunk-7SVFKQJK.js.map}
RENAMED
|
File without changes
|
/package/dist_bundle/chunks/U6Ua8p1giFoD1s7vrUZUdpbg/{chunk-MFMMXJXV.js.map → chunk-FGQNHF2X.js.map}
RENAMED
|
File without changes
|
|
File without changes
|