@nldd/design-system 0.8.99 → 0.9.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/custom-elements.json +484 -40
- package/dist/components/actions/button/button.d.ts +7 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +3 -1
- package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.js +3 -1
- package/dist/components/actions/button/button.i18n.js.map +1 -1
- package/dist/components/actions/button/button.js +3 -3
- package/dist/components/actions/button/button.styles.js +2 -2
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +9 -10
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +7 -5
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +3 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js +3 -1
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +3 -3
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +7 -7
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +9 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +18 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +1 -1
- package/dist/components/actions/split-button/split-button.js +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts +3 -1
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.js +3 -1
- package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +4 -2
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/components.js +1014 -296
- package/dist/components/content/avatar/avatar.d.ts +5 -3
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts +3 -1
- package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.i18n.js +3 -1
- package/dist/components/content/avatar/avatar.i18n.js.map +1 -1
- package/dist/components/content/avatar/avatar.js +1 -1
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +6 -6
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +55 -0
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +16 -1
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +109 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +39 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts +1 -1
- package/dist/components/content/token/token.js +1 -1
- package/dist/components/{icon-button-CJIikwyu.js → icon-button-BVhiOwX9.js} +12 -7
- package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +6 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +6 -4
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +3 -1
- package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.js +3 -1
- package/dist/components/layout/card/card.i18n.js.map +1 -1
- package/dist/components/layout/card/card.js +2 -2
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +6 -6
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +16 -5
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +44 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +7 -6
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +1 -1
- package/dist/components/layout/container/container.js +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +4 -0
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +29 -0
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js +131 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +139 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts +13 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +42 -6
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +16 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +61 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -1
- package/dist/components/layout/window/window.js +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +5 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +25 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +28 -7
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js +8 -4
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +5 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +9 -4
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +12 -5
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +3 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js +3 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +15 -7
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +9 -2
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +6 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +7 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +12 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +6 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +8 -5
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +19 -10
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +4 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +5 -1
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +7 -5
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.d.ts +3 -1
- package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.js +3 -1
- package/dist/components/navigation/link/link.i18n.js.map +1 -1
- package/dist/components/navigation/link/link.js +3 -3
- package/dist/components/navigation/link/link.styles.js +2 -2
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +7 -8
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +4 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +11 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.js +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +1 -14
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +7 -55
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +6 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
- package/dist/components/{with-translations-C8_0-9y8.js → with-translations-C6QfP6_S.js} +24 -1
- package/dist/css/rich-text.css +1 -1
- package/dist/css/variables.css +1 -0
- package/dist/nldd.min.js +962 -683
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +24 -7
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +24 -7
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +24 -7
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +24 -7
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +24 -7
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +71 -38
- package/dist/utilities/focus-target.d.ts +23 -0
- package/dist/utilities/focus-target.d.ts.map +1 -0
- package/dist/utilities/focus-target.js +70 -0
- package/dist/utilities/focus-target.js.map +1 -0
- package/dist/utilities/link-hint.d.ts +18 -0
- package/dist/utilities/link-hint.d.ts.map +1 -0
- package/dist/utilities/link-hint.js +29 -0
- package/dist/utilities/link-hint.js.map +1 -0
- package/package.json +3 -2
|
@@ -25,6 +25,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
25
25
|
* The sheet gets a sticky title bar by default — the `sidebar-label` as title plus a
|
|
26
26
|
* "Sluit" button — overridable via the `sheet-top-title-bar` slot.
|
|
27
27
|
*
|
|
28
|
+
* A link in the sheet to a place on the page beside it, such as a row of a
|
|
29
|
+
* table of contents, closes the sheet first and then scrolls to that place and
|
|
30
|
+
* moves focus there, with a temporary tab stop as a skip link does. Left to the
|
|
31
|
+
* browser, the page would scroll under a sheet that is still open, and on
|
|
32
|
+
* closing the browser gives focus back to the trigger without scrolling to it,
|
|
33
|
+
* so focus ends up out of sight. A link that opens elsewhere (another page, a
|
|
34
|
+
* new tab, a modifier key, a `download`) or points into the sidebar itself is
|
|
35
|
+
* left alone, as is a click the consumer has already handled with
|
|
36
|
+
* `preventDefault()`. The address gets the fragment through `replaceState`,
|
|
37
|
+
* without a new history entry and without a `hashchange` event or a `:target`
|
|
38
|
+
* match: a router that listens for those does not see the jump.
|
|
39
|
+
*
|
|
28
40
|
* The sidebar content lives in `slot="sidebar"`. Its slot outlet moves between the
|
|
29
41
|
* box (expanded) and the sheet (collapsed) so there is a single, never-duplicated
|
|
30
42
|
* copy — the light DOM (and its state) is preserved across the switch.
|
|
@@ -74,6 +86,7 @@ import '../../sheet/sheet.js';
|
|
|
74
86
|
import '../../page/page.js';
|
|
75
87
|
import '../../../navigation/top-title-bar/top-title-bar.js';
|
|
76
88
|
import { translate } from '../../../../utilities/translations.js';
|
|
89
|
+
import { focusTemporarily, hashTarget, samePageHash } from '../../../../utilities/focus-target.js';
|
|
77
90
|
let NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitElement) {
|
|
78
91
|
constructor() {
|
|
79
92
|
super(...arguments);
|
|
@@ -96,9 +109,50 @@ let NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitEl
|
|
|
96
109
|
this._hasMeasured = true;
|
|
97
110
|
this._applyCollapsed(width, announce);
|
|
98
111
|
};
|
|
112
|
+
/** A link in the open sheet to a place on the page: close first, then go there. */
|
|
113
|
+
this._onClick = (event) => {
|
|
114
|
+
if (!this.collapsed || !this._sheetOpen || event.defaultPrevented)
|
|
115
|
+
return;
|
|
116
|
+
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)
|
|
117
|
+
return;
|
|
118
|
+
const path = event.composedPath();
|
|
119
|
+
if (!path.some((node) => node instanceof Element && node.parentElement === this && node.slot === 'sidebar'))
|
|
120
|
+
return;
|
|
121
|
+
const anchor = path.find((node) => node instanceof HTMLAnchorElement && node.hasAttribute('href'));
|
|
122
|
+
if (!anchor || anchor.hasAttribute('download') || (anchor.target && anchor.target !== '_self'))
|
|
123
|
+
return;
|
|
124
|
+
const hash = samePageHash(anchor.href);
|
|
125
|
+
const target = hash ? hashTarget(hash, this) : null;
|
|
126
|
+
if (!target || this._inSidebar(target))
|
|
127
|
+
return;
|
|
128
|
+
event.preventDefault();
|
|
129
|
+
// The sheet gives focus back to its trigger as it closes; go on from there.
|
|
130
|
+
// A jump that never came (the close did not happen) must not fire on a
|
|
131
|
+
// later close, so a new click or the sheet opening again calls it off.
|
|
132
|
+
this._pendingJump?.abort();
|
|
133
|
+
const jump = new AbortController();
|
|
134
|
+
this._pendingJump = jump;
|
|
135
|
+
this._sheet?.addEventListener('close', () => queueMicrotask(() => {
|
|
136
|
+
if (jump.signal.aborted)
|
|
137
|
+
return;
|
|
138
|
+
this._pendingJump = undefined;
|
|
139
|
+
target.scrollIntoView();
|
|
140
|
+
focusTemporarily(target, { preventScroll: true });
|
|
141
|
+
history.replaceState(history.state, '', hash);
|
|
142
|
+
}), { once: true, signal: jump.signal });
|
|
143
|
+
this.hide();
|
|
144
|
+
// The sheet clears `open` as soon as it starts to close. Still open means
|
|
145
|
+
// no close is coming, and a jump left waiting would fire on a later one.
|
|
146
|
+
if (this._sheet?.open)
|
|
147
|
+
jump.abort();
|
|
148
|
+
};
|
|
99
149
|
// Track open state for toggle(); the open/close events still bubble out to the
|
|
100
150
|
// consumer (for aria-expanded) — these handlers don't stop them.
|
|
101
|
-
this._onSheetOpen = () => {
|
|
151
|
+
this._onSheetOpen = () => {
|
|
152
|
+
this._sheetOpen = true;
|
|
153
|
+
this._pendingJump?.abort();
|
|
154
|
+
this._pendingJump = undefined;
|
|
155
|
+
};
|
|
102
156
|
this._onSheetClose = () => { this._sheetOpen = false; };
|
|
103
157
|
}
|
|
104
158
|
get _resolvedSidebarLabel() {
|
|
@@ -117,12 +171,15 @@ let NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitEl
|
|
|
117
171
|
// whatever space it's placed in (a narrow column, a split-view pane, …).
|
|
118
172
|
this._ro = new ResizeObserver(this._onResize);
|
|
119
173
|
this._ro.observe(this);
|
|
174
|
+
this.addEventListener('click', this._onClick);
|
|
120
175
|
}
|
|
121
176
|
disconnectedCallback() {
|
|
122
177
|
super.disconnectedCallback();
|
|
123
178
|
this._ro?.disconnect();
|
|
124
179
|
this._ro = undefined;
|
|
125
180
|
this._hasMeasured = false;
|
|
181
|
+
this.removeEventListener('click', this._onClick);
|
|
182
|
+
this._pendingJump?.abort();
|
|
126
183
|
}
|
|
127
184
|
firstUpdated() {
|
|
128
185
|
// Seed the collapsed state from the rendered width before the first paint,
|
|
@@ -194,6 +251,9 @@ let NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitEl
|
|
|
194
251
|
else
|
|
195
252
|
this._sheet?.show();
|
|
196
253
|
}
|
|
254
|
+
_inSidebar(node) {
|
|
255
|
+
return [...this.children].some((child) => child.slot === 'sidebar' && child.contains(node));
|
|
256
|
+
}
|
|
197
257
|
render() {
|
|
198
258
|
return sidebarSectionTemplate(this);
|
|
199
259
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/sidebar-section/sidebar-section.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"sidebar-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/sidebar-section/sidebar-section.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,E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C;IACrC,CAAC;;AA1Le,yBAAM,GAAG,oBAAoB,AAAvB,CAAwB;AAG9C;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;iDAC3D;AAGX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;wDACrC;AAIlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDACuC;AAGlE;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;sDAClD;AAGnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;qDACpD;AAGf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;wDACpD;AAGlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDACzB;AAGV;IADP,KAAK,CAAC,yBAAyB,CAAC;kDACN;AA1Bf,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CA4L9B"}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @attr {boolean} centered - Centers both axes on the viewport. Overridable per axis: `centered top="0"` is horizontally centered, top aligned. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides.
|
|
26
26
|
* @attr {string} accessible-label - Accessible name (aria-label). Unset, the window takes the text of the nldd-top-title-bar inside it, and without one the i18n default ('Venster'). Each window needs a unique, descriptive name, from either.
|
|
27
27
|
* @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
|
|
28
|
-
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
28
|
+
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working.
|
|
29
29
|
* @attr {boolean} open - Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event.
|
|
30
30
|
*
|
|
31
31
|
* @slot - Complete window content (e.g. nldd-page)
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* @attr {boolean} centered - Centers both axes on the viewport. Overridable per axis: `centered top="0"` is horizontally centered, top aligned. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides.
|
|
26
26
|
* @attr {string} accessible-label - Accessible name (aria-label). Unset, the window takes the text of the nldd-top-title-bar inside it, and without one the i18n default ('Venster'). Each window needs a unique, descriptive name, from either.
|
|
27
27
|
* @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
|
|
28
|
-
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
28
|
+
* @attr {boolean} no-light-dismiss - A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working.
|
|
29
29
|
* @attr {boolean} open - Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event.
|
|
30
30
|
*
|
|
31
31
|
* @slot - Complete window content (e.g. nldd-page)
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
* @attr {'major' | 'minor' | 'none'} level - What stands in the lane: a whole dot (`major`, the default), a smaller one for a row that belongs under the one above it (`minor`), or nothing at all (`none`) for a row that carries what a step holds rather than being a step. A `none` row keeps its `size` and its `status`, so it stays in the same lane and the track runs on in the right color
|
|
19
19
|
* @attr {'past' | 'current' | 'future'} status - How far along this row is (default 'past'); the same values as `nldd-step-bar-item`. It colors the dot and the track around it: covered above where you are, still ahead below
|
|
20
20
|
* @attr {'sm' | 'md'} size - How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps
|
|
21
|
+
* @attr {'top' | 'center' | 'bottom'} vertical-alignment - Where the dot stands in the row (default 'center'). `top` puts it against the row's top padding and `bottom` against its bottom padding, as a whole dot would stand, so a `minor` dot lines up with a `major` one. To line it up with what stands beside it, such as the first line of a text cell or a title, use `marker-offset`. The track runs to the middle of the dot either way, so consecutive rows still connect
|
|
22
|
+
* @attr {string} marker-offset - How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development
|
|
21
23
|
* @attr {'down' | 'up'} direction - The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there
|
|
22
24
|
* @attr {'first' | 'between' | 'last' | 'only'} position - Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it
|
|
23
25
|
* @attr {'auto' | 'top' | 'bottom' | 'both' | 'none'} line - Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you
|
|
@@ -34,6 +36,7 @@ type Level = 'major' | 'minor' | 'none';
|
|
|
34
36
|
type Direction = 'down' | 'up';
|
|
35
37
|
type Position = 'first' | 'between' | 'last' | 'only';
|
|
36
38
|
type Line = 'auto' | 'top' | 'bottom' | 'both' | 'none';
|
|
39
|
+
type VerticalAlignment = 'top' | 'center' | 'bottom';
|
|
37
40
|
declare const NLDDStepCell_base: typeof LitElement & (new (...args: any[]) => LitElement & {
|
|
38
41
|
hideBelow?: string;
|
|
39
42
|
hideAbove?: string;
|
|
@@ -55,6 +58,8 @@ export declare class NLDDStepCell extends NLDDStepCell_base {
|
|
|
55
58
|
/** How wide the lane is, and with it how big the dot. One size per list: a
|
|
56
59
|
* lane that changes width halfway bends the track. */
|
|
57
60
|
size: Size;
|
|
61
|
+
verticalAlignment: VerticalAlignment;
|
|
62
|
+
markerOffset: string;
|
|
58
63
|
/** Which way the timeline moves forward. The cell only knows its own step, so
|
|
59
64
|
* it cannot tell which neighbor came first: with `up` (newest at the top)
|
|
60
65
|
* the traveled half of the track is the one below the marker. Only the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"step-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAMtD,OAAO,+BAA+B,CAAC;AAEvC,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC5C,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,KAAK,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AACxC,KAAK,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC;AAC/B,KAAK,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AACtD,KAAK,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AACxD,KAAK,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;AAIrD,qBACa,YAAa,SAAQ,iBAA8C;IAC/E,OAAgB,MAAM,0BAAkB;IAExC;;;;;;;;;OASG;IAEH,KAAK,EAAE,KAAK,CAAW;IAGvB,MAAM,EAAE,MAAM,CAAU;IAExB;2DACuD;IAEvD,IAAI,EAAE,IAAI,CAAQ;IAGlB,iBAAiB,EAAE,iBAAiB,CAAY;IAGhD,YAAY,SAAM;IAElB;;;;4BAIwB;IAExB,SAAS,EAAE,SAAS,CAAU;IAG9B,QAAQ,EAAE,QAAQ,CAAa;IAE/B;;;;;;;;;;;;;;;OAeG;IAEH,IAAI,EAAE,IAAI,CAAU;IAGpB,IAAI,SAAM;IAGV,IAAI,SAAM;IAEV;kEAC8D;IAC9D,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,OAAO,CAAC,cAAc,CAAS;IAEtB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAyBtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
|
|
@@ -24,6 +24,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
24
24
|
* @attr {'major' | 'minor' | 'none'} level - What stands in the lane: a whole dot (`major`, the default), a smaller one for a row that belongs under the one above it (`minor`), or nothing at all (`none`) for a row that carries what a step holds rather than being a step. A `none` row keeps its `size` and its `status`, so it stays in the same lane and the track runs on in the right color
|
|
25
25
|
* @attr {'past' | 'current' | 'future'} status - How far along this row is (default 'past'); the same values as `nldd-step-bar-item`. It colors the dot and the track around it: covered above where you are, still ahead below
|
|
26
26
|
* @attr {'sm' | 'md'} size - How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps
|
|
27
|
+
* @attr {'top' | 'center' | 'bottom'} vertical-alignment - Where the dot stands in the row (default 'center'). `top` puts it against the row's top padding and `bottom` against its bottom padding, as a whole dot would stand, so a `minor` dot lines up with a `major` one. To line it up with what stands beside it, such as the first line of a text cell or a title, use `marker-offset`. The track runs to the middle of the dot either way, so consecutive rows still connect
|
|
28
|
+
* @attr {string} marker-offset - How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development
|
|
27
29
|
* @attr {'down' | 'up'} direction - The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there
|
|
28
30
|
* @attr {'first' | 'between' | 'last' | 'only'} position - Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it
|
|
29
31
|
* @attr {'auto' | 'top' | 'bottom' | 'both' | 'none'} line - Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you
|
|
@@ -39,6 +41,7 @@ import { VisibilityMixin } from '../../../../utilities/visibility-mixin.js';
|
|
|
39
41
|
import { stepCellStyles } from './step-cell.styles.js';
|
|
40
42
|
import { stepCellTemplate } from './step-cell.template.js';
|
|
41
43
|
import '../../../content/icon/icon.js';
|
|
44
|
+
const CSS_WIDE_KEYWORDS = new Set(['inherit', 'initial', 'unset', 'revert', 'revert-layer']);
|
|
42
45
|
let NLDDStepCell = class NLDDStepCell extends VisibilityMixin(LitElement, 'cells-container') {
|
|
43
46
|
constructor() {
|
|
44
47
|
super(...arguments);
|
|
@@ -57,6 +60,8 @@ let NLDDStepCell = class NLDDStepCell extends VisibilityMixin(LitElement, 'cells
|
|
|
57
60
|
/** How wide the lane is, and with it how big the dot. One size per list: a
|
|
58
61
|
* lane that changes width halfway bends the track. */
|
|
59
62
|
this.size = 'sm';
|
|
63
|
+
this.verticalAlignment = 'center';
|
|
64
|
+
this.markerOffset = '';
|
|
60
65
|
/** Which way the timeline moves forward. The cell only knows its own step, so
|
|
61
66
|
* it cannot tell which neighbor came first: with `up` (newest at the top)
|
|
62
67
|
* the traveled half of the track is the one below the marker. Only the
|
|
@@ -92,6 +97,20 @@ let NLDDStepCell = class NLDDStepCell extends VisibilityMixin(LitElement, 'cells
|
|
|
92
97
|
}
|
|
93
98
|
updated(changed) {
|
|
94
99
|
super.updated(changed);
|
|
100
|
+
if (changed.has('markerOffset')) {
|
|
101
|
+
const offset = (this.markerOffset ?? '').trim();
|
|
102
|
+
// margin-top takes a length or a percentage, as the offset does, and also
|
|
103
|
+
// `auto`, which is no position: that one is turned away by name.
|
|
104
|
+
const valid = offset !== '' && !CSS_WIDE_KEYWORDS.has(offset.toLowerCase()) && offset.toLowerCase() !== 'auto' && CSS.supports('margin-top', offset);
|
|
105
|
+
if (valid)
|
|
106
|
+
this.style.setProperty('--_step-cell-marker-offset', offset);
|
|
107
|
+
else
|
|
108
|
+
this.style.removeProperty('--_step-cell-marker-offset');
|
|
109
|
+
this.toggleAttribute('data-marker-offset', valid);
|
|
110
|
+
if (import.meta.env?.DEV && offset !== '' && !valid) {
|
|
111
|
+
console.warn(`<nldd-step-cell>: marker-offset="${offset}" is not a CSS length or percentage, so the dot falls back to vertical-alignment. Use a length such as "1rem" or a percentage such as "25%".`, this);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
95
114
|
if (!import.meta.env?.DEV)
|
|
96
115
|
return;
|
|
97
116
|
const ignored = !this.showsContent && Boolean(this.text || this.icon);
|
|
@@ -117,6 +136,12 @@ __decorate([
|
|
|
117
136
|
__decorate([
|
|
118
137
|
property({ reflect: true, converter: reflectNonDefault('sm') })
|
|
119
138
|
], NLDDStepCell.prototype, "size", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
property({ reflect: true, attribute: 'vertical-alignment', converter: reflectNonDefault('center') })
|
|
141
|
+
], NLDDStepCell.prototype, "verticalAlignment", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
property({ reflect: true, attribute: 'marker-offset', converter: reflectNonDefault('') })
|
|
144
|
+
], NLDDStepCell.prototype, "markerOffset", void 0);
|
|
120
145
|
__decorate([
|
|
121
146
|
property({ reflect: true, converter: reflectNonDefault('down') })
|
|
122
147
|
], NLDDStepCell.prototype, "direction", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-cell.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"step-cell.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;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EAAE,MAAM,EAAE,CAAC;0CACjB;AAhEE,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAsGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-cell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"step-cell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBA0M1B,CAAC"}
|
|
@@ -19,6 +19,8 @@ export const stepCellStyles = css `
|
|
|
19
19
|
--_step-cell-future-content-color: var(--semantics-content-secondary-color);
|
|
20
20
|
--_step-cell-current-fill-color: light-dark(var(--primitives-color-accent-75), var(--primitives-color-accent-100));
|
|
21
21
|
--_step-cell-icon-size: calc(var(--_step-cell-marker-size) * 2 / 3);
|
|
22
|
+
--_step-cell-marker-offset: 0px;
|
|
23
|
+
--_step-cell-marker-center: 50%;
|
|
22
24
|
|
|
23
25
|
isolation: isolate;
|
|
24
26
|
display: flex;
|
|
@@ -47,6 +49,18 @@ export const stepCellStyles = css `
|
|
|
47
49
|
--_step-cell-marker-size: var(--primitives-space-12);
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
:host([vertical-alignment="top"]) {
|
|
53
|
+
--_step-cell-marker-center: calc(var(--_step-cell-lane-size) / 2);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([vertical-alignment="bottom"]) {
|
|
57
|
+
--_step-cell-marker-center: calc(100% - var(--_step-cell-lane-size) / 2);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([data-marker-offset]) {
|
|
61
|
+
--_step-cell-marker-center: var(--_step-cell-marker-offset);
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
/* Bleeds back over the host's block padding, so consecutive rows connect. */
|
|
51
65
|
.step-cell {
|
|
52
66
|
position: relative;
|
|
@@ -56,6 +70,13 @@ export const stepCellStyles = css `
|
|
|
56
70
|
margin-block: calc(var(--context-cell-padding-block, 0px) * -1);
|
|
57
71
|
}
|
|
58
72
|
|
|
73
|
+
/* The row's content box: the dot is placed in it, and the lines reach out
|
|
74
|
+
over the padding from it. */
|
|
75
|
+
.step-cell__content {
|
|
76
|
+
position: absolute;
|
|
77
|
+
inset: var(--context-cell-padding-block, 0px) 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
59
80
|
/* The ring, but only left and right. A spread would put the same band above
|
|
60
81
|
and below the line, and there it would cut the track at every row
|
|
61
82
|
boundary: the lines that run on downward deliberately reach past the cell
|
|
@@ -80,18 +101,18 @@ export const stepCellStyles = css `
|
|
|
80
101
|
without this the track breaks at every row. The top line needs nothing —
|
|
81
102
|
the row above already covers the band. */
|
|
82
103
|
.step-cell__full-line {
|
|
83
|
-
top:
|
|
84
|
-
bottom: calc(-1 * var(--semantics-dividers-thickness));
|
|
104
|
+
top: calc(-1 * var(--context-cell-padding-block, 0px));
|
|
105
|
+
bottom: calc(-1 * var(--context-cell-padding-block, 0px) - var(--semantics-dividers-thickness));
|
|
85
106
|
}
|
|
86
107
|
|
|
87
108
|
.step-cell__top-line {
|
|
88
|
-
|
|
89
|
-
height:
|
|
109
|
+
top: calc(-1 * var(--context-cell-padding-block, 0px));
|
|
110
|
+
height: calc(var(--context-cell-padding-block, 0px) + var(--_step-cell-marker-center));
|
|
90
111
|
}
|
|
91
112
|
|
|
92
113
|
.step-cell__bottom-line {
|
|
93
|
-
top:
|
|
94
|
-
bottom: calc(-1 * var(--semantics-dividers-thickness));
|
|
114
|
+
top: var(--_step-cell-marker-center);
|
|
115
|
+
bottom: calc(-1 * var(--context-cell-padding-block, 0px) - var(--semantics-dividers-thickness));
|
|
95
116
|
}
|
|
96
117
|
|
|
97
118
|
:host([status="future"]:not([line])) .step-cell__top-line,
|
|
@@ -134,7 +155,7 @@ export const stepCellStyles = css `
|
|
|
134
155
|
.step-cell__marker {
|
|
135
156
|
box-sizing: border-box;
|
|
136
157
|
position: absolute;
|
|
137
|
-
top:
|
|
158
|
+
top: var(--_step-cell-marker-center);
|
|
138
159
|
left: 50%;
|
|
139
160
|
z-index: var(--_step-cell-marker-z-index);
|
|
140
161
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-cell.styles.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"step-cell.styles.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-cell.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"step-cell.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,GAAG,cAAc,CA2CxE"}
|
|
@@ -6,7 +6,9 @@ export function stepCellTemplate(component) {
|
|
|
6
6
|
if (component.level === 'none') {
|
|
7
7
|
return html `
|
|
8
8
|
<div class="step-cell">
|
|
9
|
-
|
|
9
|
+
<div class="step-cell__content">
|
|
10
|
+
${component.position === 'only' ? nothing : html `<div class="step-cell__full-line"></div>`}
|
|
11
|
+
</div>
|
|
10
12
|
</div>
|
|
11
13
|
`;
|
|
12
14
|
}
|
|
@@ -31,9 +33,11 @@ export function stepCellTemplate(component) {
|
|
|
31
33
|
: marker;
|
|
32
34
|
return html `
|
|
33
35
|
<div class="step-cell">
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
<div class="step-cell__content">
|
|
37
|
+
${showTopLine ? html `<div class="step-cell__top-line"></div>` : nothing}
|
|
38
|
+
<div class="step-cell__marker">${content}</div>
|
|
39
|
+
${showBottomLine ? html `<div class="step-cell__bottom-line"></div>` : nothing}
|
|
40
|
+
</div>
|
|
37
41
|
</div>
|
|
38
42
|
`;
|
|
39
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-cell.template.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAGzD,MAAM,UAAU,gBAAgB,CAAC,SAAuB;IACvD,6EAA6E;IAC7E,2EAA2E;IAC3E,8DAA8D;IAC9D,IAAI,SAAS,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;QAChC,OAAO,IAAI,CAAA
|
|
1
|
+
{"version":3,"file":"step-cell.template.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/step-cell/step-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAGzD,MAAM,UAAU,gBAAgB,CAAC,SAAuB;IACvD,6EAA6E;IAC7E,2EAA2E;IAC3E,8DAA8D;IAC9D,IAAI,SAAS,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;QAChC,OAAO,IAAI,CAAA;;;OAGN,SAAS,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA,0CAA0C;;;GAG5F,CAAC;IACH,CAAC;IAED,+EAA+E;IAC/E,4EAA4E;IAC5E,kBAAkB;IAClB,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC,QAAQ,KAAK,MAAM,CAAC;IACjF,MAAM,SAAS,GAAG,SAAS,CAAC,QAAQ,KAAK,SAAS,IAAI,SAAS,CAAC,QAAQ,KAAK,OAAO,CAAC;IACrF,MAAM,WAAW,GAAG,MAAM,IAAI,SAAS,CAAC,IAAI,KAAK,KAAK,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,CAAC;IACpF,MAAM,cAAc,GAAG,SAAS,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,CAAC;IAC7F,MAAM,MAAM,GAAG,CAAC,SAAS,CAAC,YAAY;QACrC,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,SAAS,CAAC,IAAI;YACf,CAAC,CAAC,IAAI,CAAA,2CAA2C,SAAS,CAAC,IAAI,eAAe;YAC9E,CAAC,CAAC,SAAS,CAAC,IAAI;gBACf,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,IAAI,SAAS;gBAC9D,CAAC,CAAC,OAAO,CAAC;IACb,+EAA+E;IAC/E,iBAAiB;IACjB,MAAM,OAAO,GAAG,SAAS,CAAC,YAAY;QACrC,CAAC,CAAC,IAAI,CAAA,GAAG,MAAM,eAAe;QAC9B,CAAC,CAAC,MAAM,CAAC;IAEV,OAAO,IAAI,CAAA;;;MAGN,WAAW,CAAC,CAAC,CAAC,IAAI,CAAA,yCAAyC,CAAC,CAAC,CAAC,OAAO;qCACtC,OAAO;MACtC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,4CAA4C,CAAC,CAAC,CAAC,OAAO;;;EAG/E,CAAC;AACH,CAAC"}
|
|
@@ -155,7 +155,7 @@ export interface NLDDReorderEventDetail {
|
|
|
155
155
|
* @attr {'list'|'navigation'|'listbox'|'tree'|'form'|'radiogroup'} type - A11y role and behavior (default 'list'). See the docblock above.
|
|
156
156
|
* @attr {'always'|'on-touch'|'never'} dividers - When to draw the lines between the items (default 'always'). `on-touch` draws them only where the primary input is touch, under `(pointer: coarse)`: a pointer has the hover highlight to tell one row from the next and a finger has nothing, so the line earns its place in the one case and is clutter in the other. `never` hides them everywhere
|
|
157
157
|
* @attr {string} height - Listbox only: caps the options' scroll region at this CSS length (e.g. '320px'). Unset means no cap.
|
|
158
|
-
* @attr {string} accessible-label - Accessible name
|
|
158
|
+
* @attr {string} accessible-label - Accessible name: of the list in `type="list"`, of the search field in `type="listbox"`, and of the navigation landmark in `type="navigation"`, so several navigation lists on a page can be told apart. Falls back to the i18n default. An `aria-label` or `aria-labelledby` set on the element itself wins.
|
|
159
159
|
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
160
160
|
* @attr {boolean} reorderable - Enables drag-to-reorder and pushes `reorderable` onto the items. Only valid with `type="list"`; there the arrow keys move rows instead of focus.
|
|
161
161
|
*
|
|
@@ -246,7 +246,10 @@ export declare class NLDDList extends LitElement {
|
|
|
246
246
|
updated(changed: Map<string, unknown>): void;
|
|
247
247
|
/** The navigation label this list set itself, so a consumer's own is left alone. */
|
|
248
248
|
private _autoLabel;
|
|
249
|
-
/**
|
|
249
|
+
/** The name of a navigation list: `accessible-label`, or the translated default. */
|
|
250
|
+
private _navigationLabel;
|
|
251
|
+
/** On every render, so the texts this list sets itself follow a language
|
|
252
|
+
* switch and a change of `accessible-label`. */
|
|
250
253
|
private _syncTranslatedTexts;
|
|
251
254
|
private _applyHostType;
|
|
252
255
|
private _getItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,0DAA0D,CAAC;AAClE,OAAO,4BAA4B,CAAC;AACpC,OAAO,0CAA0C,CAAC;AAGlD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;AAE1F,MAAM,WAAW,sBAAsB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CAChB;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6JG;AACH,qBACa,QAAS,SAAQ,UAAU;IACvC,OAAgB,MAAM,4BAAgB;IAEtC;;4EAEwE;IAExE,UAAU,EAAE,cAAc,CAAY;IAEtC,0CAA0C;IAE1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0Bf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
|
|
@@ -163,7 +163,7 @@ const SHADOW_TAB_STOP = ':is(a[href], button, input, select, textarea, [tabindex
|
|
|
163
163
|
* @attr {'list'|'navigation'|'listbox'|'tree'|'form'|'radiogroup'} type - A11y role and behavior (default 'list'). See the docblock above.
|
|
164
164
|
* @attr {'always'|'on-touch'|'never'} dividers - When to draw the lines between the items (default 'always'). `on-touch` draws them only where the primary input is touch, under `(pointer: coarse)`: a pointer has the hover highlight to tell one row from the next and a finger has nothing, so the line earns its place in the one case and is clutter in the other. `never` hides them everywhere
|
|
165
165
|
* @attr {string} height - Listbox only: caps the options' scroll region at this CSS length (e.g. '320px'). Unset means no cap.
|
|
166
|
-
* @attr {string} accessible-label - Accessible name
|
|
166
|
+
* @attr {string} accessible-label - Accessible name: of the list in `type="list"`, of the search field in `type="listbox"`, and of the navigation landmark in `type="navigation"`, so several navigation lists on a page can be told apart. Falls back to the i18n default. An `aria-label` or `aria-labelledby` set on the element itself wins.
|
|
167
167
|
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
168
168
|
* @attr {boolean} reorderable - Enables drag-to-reorder and pushes `reorderable` onto the items. Only valid with `type="list"`; there the arrow keys move rows instead of focus.
|
|
169
169
|
*
|
|
@@ -647,10 +647,15 @@ let NLDDList = NLDDList_1 = class NLDDList extends LitElement {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
/**
|
|
650
|
+
/** The name of a navigation list: `accessible-label`, or the translated default. */
|
|
651
|
+
_navigationLabel() {
|
|
652
|
+
return this.accessibleLabel || this._t('components.list.navigation-accessible-label');
|
|
653
|
+
}
|
|
654
|
+
/** On every render, so the texts this list sets itself follow a language
|
|
655
|
+
* switch and a change of `accessible-label`. */
|
|
651
656
|
_syncTranslatedTexts() {
|
|
652
657
|
if (this.hasAttribute('data-nldd-auto-label') && this.getAttribute('aria-label') === this._autoLabel) {
|
|
653
|
-
this._autoLabel = this.
|
|
658
|
+
this._autoLabel = this._navigationLabel();
|
|
654
659
|
this.setAttribute('aria-label', this._autoLabel);
|
|
655
660
|
}
|
|
656
661
|
if (this.hasAttribute('aria-keyshortcuts')) {
|
|
@@ -665,7 +670,7 @@ let NLDDList = NLDDList_1 = class NLDDList extends LitElement {
|
|
|
665
670
|
if (this.type === 'navigation') {
|
|
666
671
|
this.setAttribute('role', 'navigation');
|
|
667
672
|
if (!this.hasAttribute('aria-label') && !this.hasAttribute('aria-labelledby')) {
|
|
668
|
-
this._autoLabel = this.
|
|
673
|
+
this._autoLabel = this._navigationLabel();
|
|
669
674
|
this.setAttribute('aria-label', this._autoLabel);
|
|
670
675
|
this.setAttribute('data-nldd-auto-label', '');
|
|
671
676
|
}
|