@design.estate/dees-catalog 21.38.0 → 21.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +102 -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-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-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
|
@@ -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 {
|
|
@@ -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
|