lintje 0.1.1 → 0.2.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-elements/actions.js +1 -1
- package/dist-elements/charts.js +1 -1
- package/dist-elements/chunks/{base-rBLTcEIv.js → base-Bg-IFOPG.js} +134 -105
- package/dist-elements/chunks/{date-format-B5DPGjAw.js → date-format-mHtZyBys.js} +28 -2
- package/dist-elements/chunks/disclosure-BXTX04gM.js +4 -0
- package/dist-elements/chunks/{disclosure-CHasOudX.js → disclosure-CMXhX-Vb.js} +7 -7
- package/dist-elements/chunks/download-y528pIHP.js +230 -0
- package/dist-elements/chunks/{focus-trap-w3vCamJ6.js → focus-trap-9BnE-xWv.js} +1 -1
- package/dist-elements/chunks/{input-jQVTln7H.js → input-BtuNFSWk.js} +13 -13
- package/dist-elements/chunks/{player-Bq9YGnpt.js → player-DXOZEyEy.js} +24 -24
- package/dist-elements/chunks/{sentence-CLNJOeXz.js → sentence-BI3lwEuT.js} +3 -3
- package/dist-elements/chunks/{stagger-9hYzxhMG.js → stagger-qGD3wmhg.js} +145 -123
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +436 -26
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/guides/dashboard.md +1 -1
- package/dist-elements/guides/events.md +3 -2
- package/dist-elements/guides/loading.md +3 -3
- package/dist-elements/guides/start.md +1 -1
- package/dist-elements/inputs.js +1 -0
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +22659 -22216
- package/dist-elements/map.js +1 -1
- package/dist-elements/overlays.js +1 -1
- package/dist-elements/tag/activity-log.js +11 -11
- package/dist-elements/tag/ai-label.js +7 -7
- package/dist-elements/tag/announcement.js +19 -19
- package/dist-elements/tag/app-search.js +21 -21
- package/dist-elements/tag/audio-player.js +34 -34
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +11 -11
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +1 -1
- package/dist-elements/tag/card.js +25 -25
- package/dist-elements/tag/chart.d.ts +1 -0
- package/dist-elements/tag/chart.js +1868 -0
- package/dist-elements/tag/chat-answer.js +28 -28
- package/dist-elements/tag/chat-composer.js +20 -20
- package/dist-elements/tag/chat-message.js +9 -9
- package/dist-elements/tag/chat-strip.js +16 -16
- package/dist-elements/tag/chat-suggestions.js +1 -1
- package/dist-elements/tag/chat.js +27 -27
- package/dist-elements/tag/checkbox.js +6 -6
- package/dist-elements/tag/code.js +8 -8
- package/dist-elements/tag/combobox.js +13 -13
- package/dist-elements/tag/confirm-dialog.js +6 -6
- package/dist-elements/tag/conflict-alert.js +5 -5
- package/dist-elements/tag/copy-button.js +7 -7
- package/dist-elements/tag/data-table.js +179 -179
- package/dist-elements/tag/date-input.js +34 -42
- package/dist-elements/tag/date-range.js +33 -33
- package/dist-elements/tag/description-list.js +20 -20
- package/dist-elements/tag/document-viewer.js +19 -19
- package/dist-elements/tag/drawer.js +7 -7
- package/dist-elements/tag/empty-state.js +11 -11
- package/dist-elements/tag/error-summary.js +8 -8
- package/dist-elements/tag/expander.js +7 -7
- package/dist-elements/tag/explainer.js +9 -9
- package/dist-elements/tag/field.js +4 -4
- package/dist-elements/tag/file-upload.js +20 -20
- package/dist-elements/tag/filter-bar.js +35 -35
- package/dist-elements/tag/filter-sheet.js +6 -6
- package/dist-elements/tag/filter-zone.js +21 -21
- package/dist-elements/tag/footer.js +1 -1
- package/dist-elements/tag/form-actions.js +7 -7
- package/dist-elements/tag/form-section.js +3 -3
- package/dist-elements/tag/form.js +4 -4
- package/dist-elements/tag/gallery.js +6 -6
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +6 -6
- package/dist-elements/tag/highlight.js +6 -6
- package/dist-elements/tag/icon-button.js +1 -1
- package/dist-elements/tag/icon.js +1 -1
- package/dist-elements/tag/job-list.js +6 -6
- package/dist-elements/tag/kpi-row.js +7 -5
- package/dist-elements/tag/kpi.js +259 -69
- package/dist-elements/tag/level-meter.js +5 -5
- package/dist-elements/tag/list.js +28 -28
- package/dist-elements/tag/logo.js +9 -9
- package/dist-elements/tag/map.d.ts +1 -0
- package/dist-elements/tag/map.js +21910 -0
- package/dist-elements/tag/menu-button.js +48 -47
- package/dist-elements/tag/modal.js +9 -9
- package/dist-elements/tag/multiselect.js +18 -18
- package/dist-elements/tag/note.js +4 -4
- package/dist-elements/tag/notifications.js +24 -24
- package/dist-elements/tag/number-input.js +8 -8
- package/dist-elements/tag/page-header.js +13 -13
- package/dist-elements/tag/pagination.js +27 -27
- package/dist-elements/tag/popover.js +1 -1
- package/dist-elements/tag/progress-bar.js +1 -1
- package/dist-elements/tag/prose.js +4 -4
- package/dist-elements/tag/qr-code.js +6 -6
- package/dist-elements/tag/radio-group.js +7 -7
- package/dist-elements/tag/range.js +13 -13
- package/dist-elements/tag/recording-status.js +8 -8
- package/dist-elements/tag/repeater.js +1 -1
- package/dist-elements/tag/segmented.js +7 -7
- package/dist-elements/tag/select.js +6 -6
- package/dist-elements/tag/session-expiry.js +13 -13
- package/dist-elements/tag/shell.js +168 -168
- package/dist-elements/tag/shortcuts.js +8 -8
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.d.ts +1 -0
- package/dist-elements/tag/slot-picker.js +74 -0
- package/dist-elements/tag/sortable-list.js +11 -11
- package/dist-elements/tag/spinner.js +1 -1
- package/dist-elements/tag/split-pane.js +4 -4
- package/dist-elements/tag/status-dot.js +1 -1
- package/dist-elements/tag/stepper.js +13 -13
- package/dist-elements/tag/streaming-text.js +15 -15
- package/dist-elements/tag/sub-nav.js +26 -26
- package/dist-elements/tag/tabs.js +13 -13
- package/dist-elements/tag/tag-input.js +14 -14
- package/dist-elements/tag/text-editor.js +7 -7
- package/dist-elements/tag/text-input.js +10 -10
- package/dist-elements/tag/textarea.js +6 -6
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +136 -42
- package/dist-elements/tag/toast.js +10 -10
- package/dist-elements/tag/toggle.js +6 -6
- package/dist-elements/tag/toggletip.js +11 -11
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +31 -31
- package/dist-elements/tag/translator.js +7 -7
- package/dist-elements/tag/tree-view.js +12 -12
- package/dist-elements/tag/user-menu.js +31 -30
- package/dist-elements/tag/video-player.js +13 -13
- package/dist-elements/tokens.css +2 -0
- package/dist-elements/types/bundle/charts.d.ts +1 -1
- package/dist-elements/types/bundle/index.d.ts +1 -1
- package/dist-elements/types/bundle/inputs.d.ts +1 -0
- package/dist-elements/types/bundle/map.d.ts +1 -1
- package/dist-elements/types/components/charts/{chart-tile/chart-tile.d.ts → chart/chart.d.ts} +7 -7
- package/dist-elements/types/components/charts/kpi/gauge.d.ts +18 -0
- package/dist-elements/types/components/charts/kpi/kpi.d.ts +28 -3
- package/dist-elements/types/components/chat/chat-answer/chat-answer.d.ts +1 -1
- package/dist-elements/types/components/index.d.ts +8 -5
- package/dist-elements/types/components/inputs/date-input/date-format.d.ts +4 -0
- package/dist-elements/types/components/inputs/slot-picker/slot-picker.d.ts +41 -0
- package/dist-elements/types/components/inputs/time-input/time-format.d.ts +4 -0
- package/dist-elements/types/components/inputs/time-input/time-input.d.ts +25 -6
- package/dist-elements/types/components/map/{map-tile/map-tile.d.ts → map/map.d.ts} +10 -6
- package/dist-elements/types/components/shared/charts/histogram-chart/histogram-chart.d.ts +33 -0
- package/dist-elements/types/components/shared/charts/index.d.ts +3 -1
- package/dist-elements/types/components/shared/charts/map-chart/area.d.ts +16 -0
- package/dist-elements/types/components/shared/charts/map-chart/drawings.d.ts +6 -2
- package/dist-elements/types/components/shared/charts/map-chart/geo.d.ts +6 -0
- package/dist-elements/types/components/shared/charts/map-chart/leaflet.d.ts +40 -2
- package/dist-elements/types/components/shared/charts/map-chart/map-chart.d.ts +17 -3
- package/dist-elements/types/components/shared/charts/map-chart/map-legend.d.ts +26 -0
- package/dist-elements/types/components/shared/charts/map-chart/marks.d.ts +47 -0
- package/dist-elements/types/components/shared/charts/map-chart/reveal.d.ts +1 -1
- package/dist-elements/types/components/shared/charts/scatter-chart/scatter-chart.d.ts +29 -0
- package/dist-elements/types/components/shared/charts/shared/axes.d.ts +21 -4
- package/dist-elements/types/components/shared/charts/shared/chart-icons.d.ts +4 -3
- package/dist-elements/types/components/shared/charts/shared/controller.d.ts +27 -15
- package/dist-elements/types/components/shared/charts/shared/types.d.ts +112 -6
- package/dist-elements/types/core/format.d.ts +5 -2
- package/dist-elements/types/icons/register.d.ts +1 -1
- package/dist-elements/types/primitives/shared/place.d.ts +1 -1
- package/dist-elements/types/primitives/tooltip/tooltip.d.ts +2 -0
- package/dist-elements/types/types.d.ts +37 -7
- package/dist-icons/functioneel-cirkelselectie.svg +1 -0
- package/dist-icons/functioneel-lasso.svg +1 -0
- package/dist-icons/functioneel-punaise-outline.svg +1 -0
- package/dist-icons/functioneel-punaise.svg +1 -0
- package/dist-icons/functioneel-rechthoekselectie.svg +1 -0
- package/dist-icons/functioneel-selectie.svg +1 -0
- package/package.json +1 -1
- package/dist-elements/chunks/disclosure-Z7Ny17sS.js +0 -4
- package/dist-elements/chunks/download-lFooAfD1.js +0 -226
- package/dist-elements/tag/chart-tile.d.ts +0 -1
- package/dist-elements/tag/chart-tile.js +0 -1474
- package/dist-elements/tag/map-tile.d.ts +0 -1
- package/dist-elements/tag/map-tile.js +0 -22292
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bt as e, Ct as t, Gt as n, Ht as r,
|
|
2
|
-
import { t as f } from "../chunks/focus-trap-
|
|
1
|
+
import { Bt as e, Ct as t, Gt as n, Ht as r, Nt as i, St as a, qt as o, vt as s, wt as c, xt as l, yt as u, zt as d } from "../chunks/base-Bg-IFOPG.js";
|
|
2
|
+
import { t as f } from "../chunks/focus-trap-9BnE-xWv.js";
|
|
3
3
|
import { t as p } from "../chunks/key-CuuOw1KE.js";
|
|
4
4
|
import "./toggle.js";
|
|
5
5
|
import { t as m } from "../chunks/confirm-dialog-D5EVGuil.js";
|
|
@@ -33,7 +33,7 @@ var h = "/* The frame is `confirm-dialog.css`. The host takes no space: a closed
|
|
|
33
33
|
#n;
|
|
34
34
|
#r;
|
|
35
35
|
connectedCallback() {
|
|
36
|
-
super.connectedCallback(), this.#e =
|
|
36
|
+
super.connectedCallback(), this.#e = a({
|
|
37
37
|
keys: "?",
|
|
38
38
|
description: "Dit overzicht",
|
|
39
39
|
handler: () => {
|
|
@@ -54,7 +54,7 @@ var h = "/* The frame is `confirm-dialog.css`. The host takes no space: a closed
|
|
|
54
54
|
super.updated(e), this.open && !this.#t ? this.#i() : !this.open && this.#t && this.#a();
|
|
55
55
|
}
|
|
56
56
|
#i() {
|
|
57
|
-
this.#t =
|
|
57
|
+
this.#t = i(), document.addEventListener("keydown", this.#r);
|
|
58
58
|
let e = this.renderRoot.querySelector(".lintje-confirm-dialog");
|
|
59
59
|
e && this.#n.activate(e);
|
|
60
60
|
}
|
|
@@ -62,16 +62,16 @@ var h = "/* The frame is `confirm-dialog.css`. The host takes no space: a closed
|
|
|
62
62
|
this.#t && (document.removeEventListener("keydown", this.#r), this.#t(), this.#t = null, this.#n.deactivate());
|
|
63
63
|
}
|
|
64
64
|
renderRow(e) {
|
|
65
|
-
return
|
|
65
|
+
return o`<dt class="lintje-shortcuts__what">${e.description}</dt>
|
|
66
66
|
<dd class="lintje-shortcuts__keys">
|
|
67
|
-
${l(e.keys).map((e) =>
|
|
67
|
+
${l(e.keys).map((e) => o`<kbd class="lintje-key">${e}</kbd>`)}
|
|
68
68
|
</dd>`;
|
|
69
69
|
}
|
|
70
70
|
onCharacterKeys(e) {
|
|
71
71
|
this.characterKeys = e.detail, t(e.detail);
|
|
72
72
|
}
|
|
73
73
|
renderSetting() {
|
|
74
|
-
return this.list.some((e) => u(e.keys)) ?
|
|
74
|
+
return this.list.some((e) => u(e.keys)) ? o`<lintje-toggle
|
|
75
75
|
class="lintje-shortcuts__setting"
|
|
76
76
|
label="Sneltoetsen van één teken"
|
|
77
77
|
hint="Uit werken alleen de sneltoetsen met Ctrl, Alt of Cmd."
|
|
@@ -80,7 +80,7 @@ var h = "/* The frame is `confirm-dialog.css`. The host takes no space: a closed
|
|
|
80
80
|
></lintje-toggle>` : n;
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return this.open ?
|
|
83
|
+
return this.open ? o`<div class="lintje-confirm-dialog__scrim" @click=${() => this.close("scrim")}>
|
|
84
84
|
<div
|
|
85
85
|
class="lintje-confirm-dialog lintje-shortcuts"
|
|
86
86
|
role="dialog"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { C as LintjeSkeleton } from "../chunks/base-
|
|
1
|
+
export { C as LintjeSkeleton } from "../chunks/base-Bg-IFOPG.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../types/components/inputs/slot-picker/slot-picker.js'
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { $ as e, Bt as t, Gt as n, Ht as r, Z as i, qt as a } from "../chunks/base-Bg-IFOPG.js";
|
|
2
|
+
import { r as o, t as s } from "../chunks/input-BtuNFSWk.js";
|
|
3
|
+
import { o as c, p as l } from "../chunks/date-format-mHtZyBys.js";
|
|
4
|
+
//#region src/components/inputs/slot-picker/slot-picker.css?inline
|
|
5
|
+
var u = "/* The slot picker: a column per day, every time a chip; the radio itself is the shared `choice` input. */\n:host {\n display: block;\n min-width: 0;\n}\n:host([hidden]) { display: none; }\n\n/* --- */\n\n/* Every day takes an equal column, however many the host sends. */\n.lintje-slot-picker {\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: minmax(0, 1fr);\n gap: var(--space-3);\n}\n.lintje-slot-picker__day { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }\n.lintje-slot-picker__heading {\n margin: 0;\n padding: 0 0 var(--space-1);\n border-bottom: 1px solid var(--color-border-default);\n text-align: center;\n font-size: var(--label-size); font-weight: var(--label-weight);\n letter-spacing: var(--label-tracking); text-transform: uppercase;\n color: var(--color-text-muted);\n}\n:host([disabled]) .lintje-slot-picker__heading { color: var(--color-text-disabled); }\n\n/* A time is a dense option; the chosen one is quiet, as in the segmented control. */\n.lintje-slot-picker__slot {\n position: relative;\n display: flex; align-items: center; justify-content: center; gap: var(--space-1);\n min-height: var(--h-option);\n padding: 0 var(--space-2);\n border: 1px solid var(--color-border-default);\n background: var(--color-bg-surface);\n color: var(--color-text-primary);\n font-size: 1rem;\n font-variant-numeric: tabular-nums;\n cursor: pointer;\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-slot-picker__slot:hover:not(.is-chosen, .is-disabled) { background: var(--color-bg-subtle); }\n.lintje-slot-picker__slot.is-chosen {\n background: var(--color-choice-active-bg);\n border-color: var(--color-accent-line);\n box-shadow: inset 0 0 0 1px var(--color-accent-line);\n color: var(--color-accent-text);\n font-weight: 700;\n}\n/* Disabled wins over chosen: the whole chip back to the quiet disabled surface. */\n.lintje-slot-picker__slot.is-disabled {\n background: var(--color-bg-subtle);\n border-color: var(--color-border-strong);\n box-shadow: none;\n color: var(--color-text-disabled);\n cursor: not-allowed;\n}\n/* The input is hidden, so its focus ring goes on the chip. */\n.lintje-slot-picker__slot:has(.lintje-choice__input:focus-visible) {\n outline: var(--focus-width) solid var(--color-focus);\n outline-offset: var(--focus-offset);\n}\n.lintje-slot-picker__full { font: var(--text-small); }\n.lintje-slot-picker__none {\n margin: 0;\n padding: var(--space-2) 0;\n text-align: center;\n font: var(--text-small);\n color: var(--color-text-muted);\n}\n/* Without any day the words stand where the days would, at the left. */\n.lintje-field > .lintje-slot-picker__none { padding: 0; text-align: left; }\n\n/* Below 768 px the days stand under each other, each with its times in rows. */\n@media (max-width: 767px) {\n .lintje-slot-picker { grid-auto-flow: row; gap: var(--space-4); }\n .lintje-slot-picker__day {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(calc(2 * var(--space-10)), 1fr));\n }\n .lintje-slot-picker__heading,\n .lintje-slot-picker__none { grid-column: 1 / -1; text-align: left; }\n}\n\n/* Forced colours drop the fill and ring: the chosen chip keeps its edge in Highlight. */\n@media (forced-colors: active) {\n .lintje-slot-picker__slot.is-chosen { border-color: Highlight; box-shadow: none; }\n .lintje-slot-picker__slot.is-disabled { border-color: GrayText; color: GrayText; }\n .lintje-slot-picker__slot:has(.lintje-choice__input:focus-visible) { outline-color: Highlight; }\n}\n", d = class extends o {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.value = "";
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = [
|
|
11
|
+
e,
|
|
12
|
+
r(s),
|
|
13
|
+
r(u)
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.properties = {
|
|
18
|
+
value: { type: String },
|
|
19
|
+
days: { attribute: !1 }
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
choose(e) {
|
|
23
|
+
this.value = e, this.commit(e);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
let e = this.days ?? [];
|
|
27
|
+
return a`<div
|
|
28
|
+
class="lintje-field"
|
|
29
|
+
role="radiogroup"
|
|
30
|
+
aria-labelledby=${this.labelId}
|
|
31
|
+
aria-describedby=${this.describedBy}
|
|
32
|
+
aria-invalid=${this.error ? "true" : n}
|
|
33
|
+
aria-required=${this.required ? "true" : n}
|
|
34
|
+
>
|
|
35
|
+
${this.renderLabel()}
|
|
36
|
+
${e.length ? a`<div class="lintje-slot-picker">${e.map((e) => this.renderDay(e))}</div>` : a`<p class="lintje-slot-picker__none">Geen tijden beschikbaar</p>`}
|
|
37
|
+
${this.renderFoot()}
|
|
38
|
+
</div>`;
|
|
39
|
+
}
|
|
40
|
+
renderDay(e) {
|
|
41
|
+
return a`<div class="lintje-slot-picker__day">
|
|
42
|
+
<p class="lintje-slot-picker__heading" aria-hidden="true">${l(e.date)}</p>
|
|
43
|
+
${e.slots.length ? e.slots.map((t) => this.renderSlot(e, t)) : a`<p class="lintje-slot-picker__none">
|
|
44
|
+
<span class="visually-hidden">${c(e.date)}: </span>Geen tijden
|
|
45
|
+
</p>`}
|
|
46
|
+
</div>`;
|
|
47
|
+
}
|
|
48
|
+
renderSlot(e, t) {
|
|
49
|
+
let r = t.value === this.value, o = this.disabled || !!t.full;
|
|
50
|
+
return a`<label
|
|
51
|
+
class=${i({
|
|
52
|
+
"lintje-slot-picker__slot": !0,
|
|
53
|
+
"is-chosen": r,
|
|
54
|
+
"is-disabled": o
|
|
55
|
+
})}
|
|
56
|
+
>
|
|
57
|
+
<input
|
|
58
|
+
type="radio"
|
|
59
|
+
class="lintje-choice__input"
|
|
60
|
+
name=${this.name || "lintje-slot-picker"}
|
|
61
|
+
value=${t.value}
|
|
62
|
+
.checked=${r}
|
|
63
|
+
?disabled=${o}
|
|
64
|
+
@change=${() => this.choose(t.value)}
|
|
65
|
+
/>
|
|
66
|
+
<span class="visually-hidden">${c(e.date)}, </span>
|
|
67
|
+
<span class="lintje-slot-picker__time">${t.label}</span>
|
|
68
|
+
${t.full ? a`<span class="lintje-slot-picker__full">Vol</span>` : n}
|
|
69
|
+
</label>`;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
t("lintje-slot-picker", d);
|
|
73
|
+
//#endregion
|
|
74
|
+
export { d as LintjeSlotPicker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, Bt as t, Gt as n, Ht as r,
|
|
1
|
+
import { $ as e, Bt as t, Gt as n, Ht as r, Z as i, et as a, p as o, qt as s, ut as c, zt as l } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import "./checkbox.js";
|
|
3
3
|
//#region src/components/tables/sortable-list/sortable-list.css?inline
|
|
4
4
|
var u = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-sortable-list { display: flex; flex-direction: column; gap: var(--space-2); }\n\n.lintje-sortable-list__rows {\n list-style: none; margin: 0; padding: 0;\n display: flex; flex-direction: column;\n gap: var(--space-1);\n font: var(--text-ui);\n}\n\n.lintje-sortable-list__row {\n position: relative;\n display: flex; align-items: center;\n gap: var(--space-2);\n height: var(--h-touch);\n padding: 0 var(--space-2);\n background: var(--color-bg-surface);\n border: 1px solid var(--color-border-default);\n color: var(--color-text-primary);\n}\n.lintje-sortable-list__row.is-lifted {\n z-index: 1;\n border-color: var(--color-accent-line);\n box-shadow: var(--shadow-popover);\n font-weight: 700;\n}\n/* The row follows the pointer through the CSSOM; nothing eases it. */\n.lintje-sortable-list__row.is-dragging { transition: none; }\n\n.lintje-sortable-list__row.is-drop-before::before,\n.lintje-sortable-list__row.is-drop-after::after {\n content: '';\n position: absolute;\n left: -1px; right: -1px;\n height: 3px;\n background: var(--color-accent-line);\n pointer-events: none;\n}\n.lintje-sortable-list__row.is-drop-before::before { top: -4px; }\n.lintje-sortable-list__row.is-drop-after::after { bottom: -4px; }\n\n/* The grip is the only handle, so a finger on the row still scrolls. Its hit area reaches the\n row's full height, up and down only. */\n.lintje-sortable-list__grip {\n position: relative;\n flex: none;\n display: inline-flex; align-items: center; justify-content: center;\n width: var(--h-chip-field); height: var(--h-chip-field);\n color: var(--color-text-muted);\n cursor: grab;\n touch-action: none;\n transition: color var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-sortable-list__grip::after {\n content: '';\n position: absolute;\n inset: min(0px, calc((100% - var(--h-target)) / 2)) 0;\n}\n.lintje-sortable-list__grip:hover { color: var(--color-text-primary); }\n.lintje-sortable-list__row.is-lifted .lintje-sortable-list__grip {\n color: var(--color-accent-text);\n cursor: grabbing;\n}\n\n.lintje-sortable-list__label {\n min-width: 0;\n overflow: hidden; text-overflow: ellipsis; white-space: nowrap;\n}\n.lintje-sortable-list__check { min-width: 0; }\n\n.lintje-sortable-list__status {\n margin: 0;\n min-height: 1lh;\n font: var(--text-small);\n color: var(--color-text-muted);\n}\n\n@media (max-width: 767px) {\n .lintje-sortable-list__row { padding-left: 0; }\n .lintje-sortable-list__grip { width: var(--h-touch); height: 100%; }\n}\n\n/* Reduced motion: nothing eases; the state still shows at once. */\n@media (prefers-reduced-motion: reduce) {\n .lintje-sortable-list__grip { transition: none; }\n}\n\n/* Forced colours: the lifted row's shadow is dropped, so its edge turns Highlight; likewise the drop line. */\n@media (forced-colors: active) {\n .lintje-sortable-list__row.is-lifted { border-color: Highlight; }\n .lintje-sortable-list__row.is-drop-before::before,\n .lintje-sortable-list__row.is-drop-after::after { border-top: 3px solid Highlight; }\n}\n";
|
|
@@ -157,14 +157,14 @@ var p = 4, m = class extends l {
|
|
|
157
157
|
return t.to < n.length ? n[t.to] === e ? "before" : null : n[n.length - 1] === e ? "after" : null;
|
|
158
158
|
}
|
|
159
159
|
row(e, t) {
|
|
160
|
-
let n = this.drag?.id === e.id, r = n || this.grabbed?.id === e.id,
|
|
161
|
-
return
|
|
162
|
-
class=${
|
|
160
|
+
let n = this.drag?.id === e.id, r = n || this.grabbed?.id === e.id, o = this.dropLine(t);
|
|
161
|
+
return s`<li
|
|
162
|
+
class=${i({
|
|
163
163
|
"lintje-sortable-list__row": !0,
|
|
164
164
|
"is-lifted": r,
|
|
165
165
|
"is-dragging": n,
|
|
166
|
-
"is-drop-before":
|
|
167
|
-
"is-drop-after":
|
|
166
|
+
"is-drop-before": o === "before",
|
|
167
|
+
"is-drop-after": o === "after"
|
|
168
168
|
})}
|
|
169
169
|
${c({ transform: n ? `translateY(${this.drag.dy}px)` : null })}
|
|
170
170
|
>
|
|
@@ -182,20 +182,20 @@ var p = 4, m = class extends l {
|
|
|
182
182
|
@pointerup=${(t) => this.onPointerUp(t, e)}
|
|
183
183
|
@pointercancel=${() => this.onPointerCancel()}
|
|
184
184
|
>
|
|
185
|
-
${
|
|
185
|
+
${a("functioneel-sleep", { size: 16 })}
|
|
186
186
|
</button>
|
|
187
|
-
${this.checkable ?
|
|
187
|
+
${this.checkable ? s`<lintje-checkbox
|
|
188
188
|
class="lintje-sortable-list__check"
|
|
189
189
|
label=${e.label}
|
|
190
190
|
?checked=${!!e.checked}
|
|
191
191
|
@lintje-change=${(t) => this.onCheck(t, e)}
|
|
192
|
-
></lintje-checkbox>` :
|
|
192
|
+
></lintje-checkbox>` : s`<span class="lintje-sortable-list__label">${e.label}</span>`}
|
|
193
193
|
</li>`;
|
|
194
194
|
}
|
|
195
195
|
render() {
|
|
196
|
-
return
|
|
196
|
+
return s`<div class="lintje-sortable-list">
|
|
197
197
|
<ul class="lintje-sortable-list__rows" aria-label=${this.label ?? n}>
|
|
198
|
-
${
|
|
198
|
+
${o(this.order, (e) => e.id, (e, t) => this.row(e, t))}
|
|
199
199
|
</ul>
|
|
200
200
|
<p id="lintje-sortable-list-help" class="visually-hidden">
|
|
201
201
|
Spatie of Enter pakt op, pijl omhoog en omlaag verplaatsen, spatie of Enter legt neer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as LintjeSpinner } from "../chunks/base-
|
|
1
|
+
export { F as LintjeSpinner } from "../chunks/base-Bg-IFOPG.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as e, Gt as t, Ht as n, It as r,
|
|
1
|
+
import { Bt as e, Gt as t, Ht as n, It as r, Lt as i, Z as a, qt as o, ut as s, zt as c } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import "./segmented.js";
|
|
3
3
|
//#region src/components/layout/split-pane/split-pane.css?inline
|
|
4
4
|
var l = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* The first panel's share is `--lintje-split` (a percentage, set through the CSSOM). */\n.lintje-split-pane {\n display: flex;\n border: 1px solid var(--color-border-default);\n}\n.lintje-split-pane__pane { min-width: 0; padding: var(--space-4); overflow: auto; }\n.lintje-split-pane__pane--start { flex: 0 0 calc((100% - 9px) * var(--lintje-split, 50) / 100); }\n.lintje-split-pane__pane--end { flex: 1 1 0; }\n\n.lintje-split-pane__strip {\n flex: 0 0 9px;\n display: flex; align-items: center; justify-content: center;\n background: var(--color-bg-subtle);\n border-left: 1px solid var(--color-border-default);\n border-right: 1px solid var(--color-border-default);\n cursor: col-resize;\n touch-action: none;\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-split-pane__handle {\n flex: none;\n width: 7px; height: var(--h-touch);\n background: var(--color-border-heavy);\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-split-pane__strip:hover .lintje-split-pane__handle,\n.lintje-split-pane.is-dragging .lintje-split-pane__handle { background: var(--color-accent-line); }\n\n/* Dragging: no text is selected until release. */\n.lintje-split-pane.is-dragging { user-select: none; cursor: col-resize; }\n.lintje-split-pane.is-dragging .lintje-split-pane__strip { background: var(--color-bg-selected); transition: none; }\n\n.lintje-split-pane__choice { display: block; margin-bottom: var(--space-3); }\n.lintje-split-pane--phone { display: block; border: 0; }\n.lintje-split-pane--phone .lintje-split-pane__pane { padding: 0; }\n\n/* Forced colours: the grip is a fill, which the mode drops; it is drawn in the text colour. */\n@media (forced-colors: active) {\n .lintje-split-pane__handle { forced-color-adjust: none; background: CanvasText; }\n .lintje-split-pane__strip:hover .lintje-split-pane__handle,\n .lintje-split-pane.is-dragging .lintje-split-pane__handle { background: Highlight; }\n}\n", u = 5, d = 50, f = 3;
|
|
@@ -28,7 +28,7 @@ function _(e, t) {
|
|
|
28
28
|
}
|
|
29
29
|
var v = class extends c {
|
|
30
30
|
constructor(...e) {
|
|
31
|
-
super(...e), this.value = 50, this.min = 20, this.max = 80, this.startLabel = "Links", this.endLabel = "Rechts", this.pane = "start", this.dragging = !1, this.#e = new
|
|
31
|
+
super(...e), this.value = 50, this.min = 20, this.max = 80, this.startLabel = "Links", this.endLabel = "Rechts", this.pane = "start", this.dragging = !1, this.#e = new i(this, r), this.#t = 50, this.#n = 0, this.#r = !1, this.#i = !1, this.onPointerDown = (e) => {
|
|
32
32
|
e.button !== 0 || this.#r || (e.preventDefault(), e.currentTarget.setPointerCapture?.(e.pointerId), this.renderRoot.querySelector(".lintje-split-pane__handle")?.focus(), this.#t = this.value, this.#n = e.clientX, this.dragging = !0);
|
|
33
33
|
}, this.onPointerMove = (e) => {
|
|
34
34
|
if (!this.dragging) return;
|
|
@@ -123,7 +123,7 @@ var v = class extends c {
|
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
125
|
let e = this.#e.matches, n = Math.round(this.value);
|
|
126
|
-
return
|
|
126
|
+
return o`${e ? o`<lintje-segmented
|
|
127
127
|
class="lintje-split-pane__choice"
|
|
128
128
|
label="Paneel kiezen"
|
|
129
129
|
hide-label
|
|
@@ -137,7 +137,7 @@ var v = class extends c {
|
|
|
137
137
|
}]}
|
|
138
138
|
@lintje-change=${this.onPaneChange}
|
|
139
139
|
></lintje-segmented>` : t}<div
|
|
140
|
-
class=${
|
|
140
|
+
class=${a({
|
|
141
141
|
"lintje-split-pane": !0,
|
|
142
142
|
"lintje-split-pane--phone": e,
|
|
143
143
|
"is-dragging": this.dragging
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as LintjeStatusDot, E as STATUS_LABEL } from "../chunks/base-
|
|
1
|
+
export { T as LintjeStatusDot, E as STATUS_LABEL } from "../chunks/base-Bg-IFOPG.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, Bt as t, Gt as n, Ht as r, I as i, It as a,
|
|
1
|
+
import { $ as e, Bt as t, Gt as n, Ht as r, I as i, It as a, Lt as o, Z as s, et as c, qt as l, zt as u } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
//#region src/components/forms/stepper/stepper.css?inline
|
|
3
3
|
var d = "/* The host is the full width of where it stands: what the steps are measured against. */\n:host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-stepper { font: var(--text-ui); color: var(--color-text-primary); }\n\n/* The row never wraps: its overflow is what tells the element to stand the steps up. */\n.lintje-stepper__list { display: flex; }\n.lintje-stepper__list--row { flex-direction: row; gap: var(--space-2); overflow: hidden; }\n.lintje-stepper__list--column { flex-direction: column; }\n\n/* The label's line is as tall as the pointer target: the row's `overflow: hidden` would cut off more. */\n.lintje-stepper__step {\n position: relative;\n display: flex; align-items: flex-start; gap: var(--space-3);\n flex: none;\n}\n.lintje-stepper__list--row .lintje-stepper__step { flex: 1 1 auto; white-space: nowrap; }\n.lintje-stepper__list--row .lintje-stepper__step:last-child { flex: none; }\n.lintje-stepper__list--column .lintje-stepper__step:not(:last-child) { padding-bottom: var(--space-4); }\n\n/* The line to the next step: drawn through from a done step, dashed from the current one on. */\n.lintje-stepper__line { border: 0 dashed var(--color-border-heavy); }\n.lintje-stepper__step--done .lintje-stepper__line { border-style: solid; border-color: var(--color-accent-line); }\n/* In the row the line fills the room up to the next marker. */\n.lintje-stepper__list--row .lintje-stepper__body { flex: 1 1 auto; }\n.lintje-stepper__list--row .lintje-stepper__line {\n flex: 1 1 0;\n min-width: var(--space-8);\n border-top-width: 2px;\n}\n/* In the column it runs from the marker's foot to the top of the next one. */\n.lintje-stepper__list--column .lintje-stepper__line {\n position: absolute;\n top: calc((var(--h-target) + var(--h-chip-field)) / 2);\n bottom: calc((var(--h-chip-field) - var(--h-target)) / 2);\n left: calc(var(--h-chip-field) / 2 - 1px);\n border-left-width: 2px;\n}\n\n.lintje-stepper__body { display: flex; flex-direction: column; }\n.lintje-stepper__list--column .lintje-stepper__body { min-width: 0; }\n.lintje-stepper__head {\n display: flex; align-items: center; gap: var(--space-2);\n min-height: var(--h-target);\n}\n/* What stands under the label starts level with the marker's foot. */\n.lintje-stepper__head + .lintje-stepper__description,\n.lintje-stepper__head + .lintje-stepper__meta { margin-top: calc((var(--h-chip-field) - var(--h-target)) / 2); }\n.lintje-stepper__description { margin: 0 0 var(--space-1); color: var(--color-text-secondary); }\n.lintje-stepper__meta { font: var(--text-meta); color: var(--color-text-secondary); }\n\n.lintje-stepper__marker {\n display: inline-flex; align-items: center; justify-content: center;\n flex: none;\n width: var(--h-chip-field); height: var(--h-chip-field);\n margin-top: calc((var(--h-target) - var(--h-chip-field)) / 2);\n border: 1px solid transparent;\n font-size: 0.875rem; font-weight: 700;\n}\n.lintje-stepper__marker--next { border-color: var(--color-text-muted); color: var(--color-text-muted); font-weight: 400; }\n.lintje-stepper__step--next .lintje-stepper__name { color: var(--color-text-muted); }\n.lintje-stepper__marker--current {\n background: var(--color-action-primary);\n border-color: var(--color-action-primary-border);\n color: var(--color-action-primary-text);\n}\n.lintje-stepper__step--current .lintje-stepper__name { font-weight: 700; }\n/* Done: the frame is a line (3:1), the check stands for a word (4.5:1). */\n.lintje-stepper__marker--done { border-color: var(--color-accent-line); color: var(--color-accent-text); }\n.lintje-stepper__marker--done.is-error { border-color: var(--color-error); color: var(--color-error); }\n\n.lintje-stepper__name--link {\n position: relative;\n color: var(--color-link);\n transition: color var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-stepper__name--link::after {\n content: '';\n position: absolute;\n inset: min(0px, calc((100% - var(--h-target)) / 2)) 0;\n}\n.lintje-stepper__name--link:hover { color: var(--color-link-hover); }\n\n.lintje-stepper__errors { font: var(--text-meta); font-weight: 700; color: var(--color-error-text); }\n\n.lintje-stepper--phone { display: flex; flex-direction: column; gap: var(--space-2); }\n.lintje-stepper__summary {\n display: flex; justify-content: space-between; gap: var(--space-3);\n}\n.lintje-stepper__current { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.lintje-stepper__count { flex: none; color: var(--color-text-muted); }\n\n/* Forced colours: the current step's fill is dropped, so its border turns Highlight. */\n@media (forced-colors: active) {\n .lintje-stepper__marker--current { border-color: Highlight; }\n}\n";
|
|
4
4
|
//#endregion
|
|
@@ -23,7 +23,7 @@ var h = {
|
|
|
23
23
|
next: "nog niet aan de beurt"
|
|
24
24
|
}, g = class extends u {
|
|
25
25
|
constructor(...e) {
|
|
26
|
-
super(...e), this.steps = [], this.label = "Stappen", this.orientation = "horizontal", this.layout = "row", this.#e = new
|
|
26
|
+
super(...e), this.steps = [], this.label = "Stappen", this.orientation = "horizontal", this.layout = "row", this.#e = new o(this, a), this.#t = null, this.#n = 0;
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.styles = [e, r(d)];
|
|
@@ -69,39 +69,39 @@ var h = {
|
|
|
69
69
|
i(e) && this.followLink(t, e);
|
|
70
70
|
}
|
|
71
71
|
renderMarker(e, t) {
|
|
72
|
-
let n = e.state === "done" && !!e.errors, r =
|
|
72
|
+
let n = e.state === "done" && !!e.errors, r = s({
|
|
73
73
|
"lintje-stepper__marker": !0,
|
|
74
74
|
[`lintje-stepper__marker--${e.state}`]: !0,
|
|
75
75
|
"is-error": n
|
|
76
76
|
}), i = String(t + 1);
|
|
77
|
-
return e.state === "done" && (i =
|
|
77
|
+
return e.state === "done" && (i = c(n ? "functioneel-waarschuwing" : "functioneel-vinkje", { size: 16 })), l`<span class=${r} aria-hidden="true">${i}</span>`;
|
|
78
78
|
}
|
|
79
79
|
renderName(e) {
|
|
80
80
|
if (e.state === "done" && e.href) {
|
|
81
81
|
let t = e.href;
|
|
82
|
-
return
|
|
82
|
+
return l`<a
|
|
83
83
|
class="lintje-stepper__name lintje-stepper__name--link"
|
|
84
84
|
href=${t}
|
|
85
85
|
@click=${(e) => this.follow(e, t)}
|
|
86
86
|
>${e.label}<span class="visually-hidden">, ${h.done}</span></a
|
|
87
87
|
>`;
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return l`<span class="lintje-stepper__name"
|
|
90
90
|
>${e.label}<span class="visually-hidden">, ${h[e.state]}</span></span
|
|
91
91
|
>`;
|
|
92
92
|
}
|
|
93
93
|
renderBody(e, t) {
|
|
94
94
|
let r = this.layout === "column" ? e.description : void 0;
|
|
95
|
-
return
|
|
95
|
+
return l`<div class="lintje-stepper__body">
|
|
96
96
|
<div class="lintje-stepper__head">
|
|
97
|
-
${this.renderName(e)}${e.state === "done" && e.errors ?
|
|
97
|
+
${this.renderName(e)}${e.state === "done" && e.errors ? l`<span class="lintje-stepper__errors">${f(e.errors)}</span>` : n}${t ? n : l`<span class="lintje-stepper__line"></span>`}
|
|
98
98
|
</div>
|
|
99
|
-
${r ?
|
|
99
|
+
${r ? l`<p class="lintje-stepper__description">${r}</p>` : n}${e.meta ? l`<span class="lintje-stepper__meta">${e.meta}</span>` : n}
|
|
100
100
|
</div>`;
|
|
101
101
|
}
|
|
102
102
|
renderPhone() {
|
|
103
103
|
let { place: e, total: t, percent: n } = p(this.steps), r = this.steps[e - 1], i = `Stap ${e} van ${t}`;
|
|
104
|
-
return
|
|
104
|
+
return l`<nav class="lintje-stepper lintje-stepper--phone" aria-label=${this.label}>
|
|
105
105
|
<div class="lintje-stepper__summary">
|
|
106
106
|
<strong class="lintje-stepper__current">${r?.label ?? ""}</strong>
|
|
107
107
|
<span class="lintje-stepper__count">${i}</span>
|
|
@@ -110,10 +110,10 @@ var h = {
|
|
|
110
110
|
</nav>`;
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
-
return this.#e.matches && !this.vertical ? this.renderPhone() :
|
|
113
|
+
return this.#e.matches && !this.vertical ? this.renderPhone() : l`<nav class="lintje-stepper" aria-label=${this.label}>
|
|
114
114
|
<ol class="lintje-stepper__list lintje-stepper__list--${this.layout}">
|
|
115
|
-
${this.steps.map((e, t) =>
|
|
116
|
-
class=${
|
|
115
|
+
${this.steps.map((e, t) => l`<li
|
|
116
|
+
class=${s({
|
|
117
117
|
"lintje-stepper__step": !0,
|
|
118
118
|
[`lintje-stepper__step--${e.state}`]: !0
|
|
119
119
|
})}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as e, Gt as t, Ht as n,
|
|
1
|
+
import { Bt as e, Gt as t, Ht as n, U as r, Z as i, qt as a, zt as o } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import { t as s } from "../chunks/sentence-end-8jlqKJ5P.js";
|
|
3
3
|
//#region src/components/feedback/streaming-text/streaming-text.css?inline
|
|
4
4
|
var c = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n/* Plain takes the type of where it stands, past the UI type every element sets on itself. */\n:host([variant='plain']) { font: inherit; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-streaming-text { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }\n\n.lintje-streaming-text__box {\n padding: var(--space-3);\n background: var(--color-bg-page);\n border: 1px solid var(--color-border-default);\n font: var(--text-body);\n color: var(--color-text-primary);\n overflow-wrap: anywhere;\n}\n/* Keeps a line break the server sends; slotted prose keeps its own rules. */\n.lintje-streaming-text__plain { white-space: pre-wrap; }\n.lintje-streaming-text__box--waiting {\n display: flex;\n align-items: center;\n gap: var(--space-2);\n font: var(--text-ui);\n}\n.lintje-streaming-text__waiting { color: var(--color-text-muted); }\n\n.lintje-streaming-text__caret {\n display: inline-block;\n width: 8px;\n height: 18px;\n margin-left: var(--space-1);\n vertical-align: text-bottom;\n background: var(--color-accent-line);\n animation: lintje-caret-blink var(--dur-skeleton) steps(1, end) infinite;\n}\n/* A keyframe only works in the root that uses it. */\n@keyframes lintje-caret-blink {\n 0% { opacity: 1; }\n 50% { opacity: 0; }\n}\n@media (prefers-reduced-motion: reduce) {\n .lintje-streaming-text__caret { animation: none; }\n}\n\n/* Plain: the surface around it is the box. */\n.lintje-streaming-text--plain .lintje-streaming-text__box {\n padding: 0;\n background: transparent;\n border: 0;\n font: inherit;\n}\n.lintje-streaming-text--plain .lintje-streaming-text__box--waiting { font: var(--text-ui); }\n\n.lintje-streaming-text__foot {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-2) var(--space-4);\n}\n.lintje-streaming-text__note { font: var(--text-small); color: var(--color-text-muted); }\n.lintje-streaming-text__note--error { font: var(--text-meta); font-weight: 700; color: var(--color-error-text); }\n", l = "Gestopt", u = "De verbinding viel weg. De tekst is niet af.", d = class extends o {
|
|
@@ -30,17 +30,17 @@ var c = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
30
30
|
willUpdate(e) {
|
|
31
31
|
if (super.willUpdate(e), e.get("state") === "streaming" && this.ended) {
|
|
32
32
|
let e = this.renderRoot.querySelector(".lintje-streaming-text__stop");
|
|
33
|
-
e &&
|
|
33
|
+
e && r(e) && (this.focusRetry = !0);
|
|
34
34
|
}
|
|
35
35
|
if (!e.has("text") && !e.has("state") && !e.has("message")) return;
|
|
36
|
-
let t = e.get("text") ?? "", n = e.has("text") && !this.text.startsWith(t) || e.has("state") && this.state === "waiting",
|
|
36
|
+
let t = e.get("text") ?? "", n = e.has("text") && !this.text.startsWith(t) || e.has("state") && this.state === "waiting", i = n ? [] : [...this.spoken];
|
|
37
37
|
n && (this.said = 0);
|
|
38
38
|
let a = this.text.slice(this.said), o = this.ended ? a.length : s(a);
|
|
39
39
|
if (o > 0) {
|
|
40
40
|
let e = a.slice(0, o).trim();
|
|
41
|
-
e &&
|
|
41
|
+
e && i.push(e), this.said += o;
|
|
42
42
|
}
|
|
43
|
-
e.has("state") && this.state === "stopped" &&
|
|
43
|
+
e.has("state") && this.state === "stopped" && i.push(l), (e.has("state") || e.has("message")) && this.state === "error" && i.push(this.message || u), (n || i.length !== this.spoken.length) && (this.spoken = i);
|
|
44
44
|
}
|
|
45
45
|
updated(e) {
|
|
46
46
|
if (super.updated(e), !this.focusRetry || !this.ended) return;
|
|
@@ -52,24 +52,24 @@ var c = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
52
52
|
this.focusRetry = !0, this.emit("lintje-stop");
|
|
53
53
|
}
|
|
54
54
|
renderBox() {
|
|
55
|
-
if (this.state === "waiting") return
|
|
55
|
+
if (this.state === "waiting") return a`<div
|
|
56
56
|
class="lintje-streaming-text__box lintje-streaming-text__box--waiting"
|
|
57
57
|
role="status"
|
|
58
58
|
>
|
|
59
59
|
<lintje-spinner></lintje-spinner>
|
|
60
60
|
<span class="lintje-streaming-text__waiting">${this.label}</span>
|
|
61
61
|
</div>`;
|
|
62
|
-
if (this.state === "done") return
|
|
62
|
+
if (this.state === "done") return a`<div class="lintje-streaming-text__box" tabindex="-1">
|
|
63
63
|
<slot><span class="lintje-streaming-text__plain">${this.text}</span></slot>
|
|
64
64
|
</div>`;
|
|
65
65
|
if (!this.text && this.state !== "streaming") return t;
|
|
66
66
|
let e = this.state === "streaming";
|
|
67
|
-
return
|
|
68
|
-
><span class="lintje-streaming-text__plain">${this.text}</span>${e ?
|
|
67
|
+
return a`<div class="lintje-streaming-text__box" aria-busy=${e ? "true" : "false"}
|
|
68
|
+
><span class="lintje-streaming-text__plain">${this.text}</span>${e ? a`<span class="lintje-streaming-text__caret" aria-hidden="true"></span>` : t}</div
|
|
69
69
|
>`;
|
|
70
70
|
}
|
|
71
71
|
renderFoot() {
|
|
72
|
-
if (this.state === "streaming") return
|
|
72
|
+
if (this.state === "streaming") return a`<div class="lintje-streaming-text__foot">
|
|
73
73
|
<lintje-button
|
|
74
74
|
class="lintje-streaming-text__stop"
|
|
75
75
|
variant="secondary"
|
|
@@ -80,9 +80,9 @@ var c = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
80
80
|
</div>`;
|
|
81
81
|
if (this.state !== "stopped" && this.state !== "error") return t;
|
|
82
82
|
let e = this.state === "error";
|
|
83
|
-
return
|
|
83
|
+
return a`<div class="lintje-streaming-text__foot">
|
|
84
84
|
<span
|
|
85
|
-
class=${
|
|
85
|
+
class=${i({
|
|
86
86
|
"lintje-streaming-text__note": !0,
|
|
87
87
|
"lintje-streaming-text__note--error": e
|
|
88
88
|
})}
|
|
@@ -98,15 +98,15 @@ var c = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
98
98
|
</div>`;
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return
|
|
102
|
-
class=${
|
|
101
|
+
return a`<div
|
|
102
|
+
class=${i({
|
|
103
103
|
"lintje-streaming-text": !0,
|
|
104
104
|
"lintje-streaming-text--plain": this.variant === "plain"
|
|
105
105
|
})}
|
|
106
106
|
>
|
|
107
107
|
${this.renderBox()} ${this.renderFoot()}
|
|
108
108
|
<div class="visually-hidden" aria-live="polite" aria-atomic="false">
|
|
109
|
-
${this.spoken.map((e) =>
|
|
109
|
+
${this.spoken.map((e) => a`<p>${e}</p>`)}
|
|
110
110
|
</div>
|
|
111
111
|
</div>`;
|
|
112
112
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, Bt as t, Gt as n, Ht as r, I as i, It as a,
|
|
1
|
+
import { $ as e, Bt as t, Gt as n, Ht as r, I as i, It as a, Lt as o, U as s, X as c, Y as l, Z as u, et as d, qt as f, zt as p } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
//#region src/components/frame/sub-nav/sub-nav.css?inline
|
|
3
3
|
var m = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* Typographic, as the Rijkshuisstijl's side-nav: links in the link colour, the reader's page in\n the text colour and bold, groups apart by space alone. No fill and no edge. */\n.lintje-sub-nav { font: var(--text-ui); }\n\n.lintje-sub-nav__group + .lintje-sub-nav__group { margin-top: var(--space-6); }\n\n.lintje-sub-nav__heading {\n margin: 0;\n padding: var(--space-3) 0 var(--space-1);\n font-size: var(--label-size);\n font-weight: var(--label-weight);\n letter-spacing: var(--label-tracking);\n line-height: 1.3;\n text-transform: uppercase;\n color: var(--color-text-muted);\n}\n\n.lintje-sub-nav__list { list-style: none; margin: 0; padding: 0; }\n\n/* The second level hangs from a line, the width of the separators the house style draws. */\n.lintje-sub-nav__list--nested {\n margin-bottom: var(--space-1);\n padding-left: calc(var(--space-6) - 2px);\n border-left: 2px solid var(--color-border-default);\n}\n\n/* The row reaches past the text column on both sides, so the inset focus ring clears the word. */\n.lintje-sub-nav__link {\n display: flex; align-items: flex-start; gap: var(--space-2);\n box-sizing: border-box;\n min-height: var(--h-nav-row);\n margin: 0 calc(var(--space-2) * -1);\n padding: var(--space-3) var(--space-2);\n border: 0;\n background: none;\n font: inherit;\n line-height: 1.5;\n color: var(--color-link);\n text-align: left;\n text-decoration: none;\n cursor: pointer;\n transition: color var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-sub-nav__link--action { width: calc(100% + var(--space-2) * 2); }\n\n/* Only the word is underlined: an icon or a count under a line reads as part of the link text. */\n.lintje-sub-nav__label { min-width: 0; text-underline-offset: 0.2em; }\n.lintje-sub-nav__link:hover { color: var(--color-link-hover); }\n.lintje-sub-nav__link:hover .lintje-sub-nav__label { text-decoration: underline; }\n\n/* Bold carries the reader's page beside the colour (rule 13); on a fill, the side menu does not. */\n.lintje-sub-nav__link.is-current { color: var(--color-text-primary); font-weight: 700; cursor: default; }\n.lintje-sub-nav__link.is-current .lintje-sub-nav__label { text-decoration: none; }\n.lintje-sub-nav__link.is-ancestor { color: var(--color-text-primary); }\n\n.lintje-sub-nav__link.is-no-page,\n.lintje-sub-nav__link.is-no-access { color: var(--color-text-disabled); cursor: default; }\n.lintje-sub-nav__link.is-no-access { cursor: not-allowed; }\n.lintje-sub-nav__link.is-no-access .lintje-sub-nav__label { text-decoration: line-through; }\n\n/* Icon, lock and count stand on the first line of a label that wraps. */\n.lintje-sub-nav__icon { flex: none; margin-top: 2px; }\n.lintje-sub-nav__lock { flex: none; margin-top: var(--space-1); }\n.lintje-sub-nav__count { flex: none; }\n\n/* Below 768 px: one button with the reader's page, which opens the list in place. */\n.lintje-sub-nav__toggle {\n display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);\n width: 100%;\n min-height: var(--h-control);\n padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);\n border: 1px solid var(--color-border-field);\n background: var(--color-bg-surface);\n color: var(--color-text-primary);\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-sub-nav__toggle:hover { background: var(--color-bg-subtle); }\n.lintje-sub-nav__toggle-text { display: flex; flex-direction: column; min-width: 0; }\n.lintje-sub-nav__toggle-group { font: var(--text-small); color: var(--color-text-muted); }\n.lintje-sub-nav__toggle-current { font-weight: 700; }\n.lintje-sub-nav__toggle-icon { flex: none; transition: transform var(--dur-hover) var(--ease-in-motion); }\n.lintje-sub-nav__toggle.is-open .lintje-sub-nav__toggle-icon { transform: rotate(180deg); }\n\n.lintje-sub-nav__panel {\n padding: var(--space-1) var(--space-6) var(--space-2);\n border: 1px solid var(--color-border-field);\n border-top: 0;\n background: var(--color-bg-surface);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .lintje-sub-nav__link,\n .lintje-sub-nav__toggle,\n .lintje-sub-nav__toggle-icon { transition: none; }\n}\n\n@media (forced-colors: active) {\n .lintje-sub-nav__link.is-current { text-decoration: underline; }\n .lintje-sub-nav__link.is-no-page,\n .lintje-sub-nav__link.is-no-access { color: GrayText; }\n}\n", h = (e) => !!e.active || !!e.items?.some(h);
|
|
4
4
|
function g(e) {
|
|
@@ -21,12 +21,12 @@ function g(e) {
|
|
|
21
21
|
}
|
|
22
22
|
var _ = 0, v = class extends p {
|
|
23
23
|
constructor(...e) {
|
|
24
|
-
super(...e), this.groups = [], this.label = "Submenu", this.open = !1, this.#e = new
|
|
24
|
+
super(...e), this.groups = [], this.label = "Submenu", this.open = !1, this.#e = new o(this, a), this.#t = `lintje-sub-nav-${++_}`;
|
|
25
25
|
}
|
|
26
26
|
static {
|
|
27
27
|
this.styles = [
|
|
28
28
|
e,
|
|
29
|
-
|
|
29
|
+
l,
|
|
30
30
|
r(m)
|
|
31
31
|
];
|
|
32
32
|
}
|
|
@@ -42,7 +42,7 @@ var _ = 0, v = class extends p {
|
|
|
42
42
|
#t;
|
|
43
43
|
#n() {
|
|
44
44
|
let e = this.renderRoot.querySelector(".lintje-sub-nav__panel");
|
|
45
|
-
e &&
|
|
45
|
+
e && s(e) && this.renderRoot.querySelector(".lintje-sub-nav__toggle")?.focus(), this.open = !1;
|
|
46
46
|
}
|
|
47
47
|
follow(e, t) {
|
|
48
48
|
i(e) && (this.#n(), this.followLink(t, e));
|
|
@@ -54,34 +54,34 @@ var _ = 0, v = class extends p {
|
|
|
54
54
|
e.key === "Escape" && this.open && (e.stopPropagation(), this.open = !1, this.renderRoot.querySelector(".lintje-sub-nav__toggle")?.focus());
|
|
55
55
|
}
|
|
56
56
|
renderItem(e) {
|
|
57
|
-
let t = e.items?.length && h(e) ? e.items : null, r = !e.active && !!t, i = e.icon ?
|
|
57
|
+
let t = e.items?.length && h(e) ? e.items : null, r = !e.active && !!t, i = e.icon ? d(e.icon, {
|
|
58
58
|
size: 20,
|
|
59
59
|
className: "lintje-sub-nav__icon"
|
|
60
|
-
}) : n, a = e.badge ?
|
|
60
|
+
}) : n, a = e.badge ? c({
|
|
61
61
|
value: e.badge.value,
|
|
62
62
|
variant: "count",
|
|
63
63
|
label: e.badge.label,
|
|
64
64
|
className: "lintje-sub-nav__count"
|
|
65
|
-
}) : n,
|
|
65
|
+
}) : n, o = f`<span class="lintje-sub-nav__label">${e.label}</span>`, s;
|
|
66
66
|
if (e.noAccess || !e.href) {
|
|
67
|
-
let t =
|
|
67
|
+
let t = d("gebruiksvoorwerpen-hangslot-dicht", {
|
|
68
68
|
size: 16,
|
|
69
69
|
label: "Geen toegang",
|
|
70
70
|
className: "lintje-sub-nav__lock"
|
|
71
71
|
});
|
|
72
|
-
|
|
73
|
-
class=${
|
|
72
|
+
s = f`<span
|
|
73
|
+
class=${u({
|
|
74
74
|
"lintje-sub-nav__link": !0,
|
|
75
75
|
"is-no-access": !!e.noAccess,
|
|
76
76
|
"is-no-page": !e.noAccess
|
|
77
77
|
})}
|
|
78
78
|
aria-disabled="true"
|
|
79
|
-
>${i}${
|
|
79
|
+
>${i}${o}${e.noAccess ? t === n ? f`<span>geen toegang</span>` : t : f`<span class="visually-hidden"> (niet beschikbaar)</span>`}</span
|
|
80
80
|
>`;
|
|
81
81
|
} else {
|
|
82
82
|
let t = e.href;
|
|
83
|
-
|
|
84
|
-
class=${
|
|
83
|
+
s = f`<a
|
|
84
|
+
class=${u({
|
|
85
85
|
"lintje-sub-nav__link": !0,
|
|
86
86
|
"focus-inset": !0,
|
|
87
87
|
"is-current": !!e.active,
|
|
@@ -90,32 +90,32 @@ var _ = 0, v = class extends p {
|
|
|
90
90
|
href=${t}
|
|
91
91
|
aria-current=${e.active ? "page" : n}
|
|
92
92
|
@click=${(e) => this.follow(e, t)}
|
|
93
|
-
>${i}${
|
|
93
|
+
>${i}${o}${a}</a
|
|
94
94
|
>`;
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
${
|
|
96
|
+
return f`<li>
|
|
97
|
+
${s}${t ? f`<ul class="lintje-sub-nav__list lintje-sub-nav__list--nested">
|
|
98
98
|
${t.map((e) => this.renderItem(e))}
|
|
99
99
|
</ul>` : n}
|
|
100
100
|
</li>`;
|
|
101
101
|
}
|
|
102
102
|
renderGroups() {
|
|
103
103
|
let e = this.action;
|
|
104
|
-
return
|
|
104
|
+
return f`${this.groups.map((e, t) => {
|
|
105
105
|
let r = `${this.#t}-g${t}`;
|
|
106
|
-
return
|
|
107
|
-
${e.label ?
|
|
106
|
+
return f`<div class="lintje-sub-nav__group">
|
|
107
|
+
${e.label ? f`<p id=${r} class="lintje-sub-nav__heading">${e.label}</p>` : n}
|
|
108
108
|
<ul class="lintje-sub-nav__list" aria-labelledby=${e.label ? r : n}>
|
|
109
109
|
${e.items.map((e) => this.renderItem(e))}
|
|
110
110
|
</ul>
|
|
111
111
|
</div>`;
|
|
112
|
-
})}${e ?
|
|
112
|
+
})}${e ? f`<div class="lintje-sub-nav__group">
|
|
113
113
|
<button
|
|
114
114
|
type="button"
|
|
115
115
|
class="lintje-sub-nav__link lintje-sub-nav__link--action focus-inset"
|
|
116
116
|
@click=${() => this.act(e.value)}
|
|
117
117
|
>
|
|
118
|
-
${
|
|
118
|
+
${d(e.icon ?? "functioneel-plus", {
|
|
119
119
|
size: 20,
|
|
120
120
|
className: "lintje-sub-nav__icon"
|
|
121
121
|
})}<span class="lintje-sub-nav__label">${e.label}</span>
|
|
@@ -124,10 +124,10 @@ var _ = 0, v = class extends p {
|
|
|
124
124
|
}
|
|
125
125
|
renderPhone() {
|
|
126
126
|
let e = g(this.groups), t = `${this.#t}-panel`;
|
|
127
|
-
return
|
|
127
|
+
return f`<nav class="lintje-sub-nav" aria-label=${this.label} @keydown=${this.onKeydown}>
|
|
128
128
|
<button
|
|
129
129
|
type="button"
|
|
130
|
-
class=${
|
|
130
|
+
class=${u({
|
|
131
131
|
"lintje-sub-nav__toggle": !0,
|
|
132
132
|
"is-open": this.open
|
|
133
133
|
})}
|
|
@@ -136,10 +136,10 @@ var _ = 0, v = class extends p {
|
|
|
136
136
|
@click=${() => this.open = !this.open}
|
|
137
137
|
>
|
|
138
138
|
<span class="lintje-sub-nav__toggle-text">
|
|
139
|
-
${e?.group ?
|
|
139
|
+
${e?.group ? f`<span class="lintje-sub-nav__toggle-group">${e.group}</span>` : n}
|
|
140
140
|
<span class="lintje-sub-nav__toggle-current">${e?.item.label ?? this.label}</span>
|
|
141
141
|
</span>
|
|
142
|
-
${
|
|
142
|
+
${d("functioneel-delta-omlaag", {
|
|
143
143
|
size: 24,
|
|
144
144
|
className: "lintje-sub-nav__toggle-icon"
|
|
145
145
|
})}
|
|
@@ -148,7 +148,7 @@ var _ = 0, v = class extends p {
|
|
|
148
148
|
</nav>`;
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return !this.groups.length && !this.action ? n : this.#e.matches ? this.renderPhone() :
|
|
151
|
+
return !this.groups.length && !this.action ? n : this.#e.matches ? this.renderPhone() : f`<nav class="lintje-sub-nav" aria-label=${this.label}>${this.renderGroups()}</nav>`;
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
t("lintje-sub-nav", v);
|