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 { $ as e, Bt as t, G as n, Gt as r, Ht as i, I as a, It as o,
|
|
2
|
-
import { t as h } from "../chunks/focus-trap-
|
|
1
|
+
import { $ as e, Bt as t, G as n, Gt as r, Ht as i, I as a, It as o, Lt as s, Nt as c, U as l, V as u, Z as d, et as f, qt as p, zt as m } from "../chunks/base-Bg-IFOPG.js";
|
|
2
|
+
import { t as h } from "../chunks/focus-trap-9BnE-xWv.js";
|
|
3
3
|
import { t as g } from "../chunks/dialog-close-u75fVEw4.js";
|
|
4
4
|
//#region src/components/frame/notifications/notifications.css?inline
|
|
5
5
|
var _ = "/* The host is the bell's box; the panel is fixed and takes no space. */\n:host { display: inline-flex; flex: none; vertical-align: middle; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-notifications__bell {\n position: relative;\n display: flex; align-items: center; justify-content: center;\n width: var(--h-touch); height: var(--lintje-tool-height, var(--h-touch));\n color: var(--color-nav-text);\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-notifications__bell:hover,\n.lintje-notifications__bell.is-open { background: var(--color-nav-hover); }\n\n/* The counter is placed from the bell's middle, so a bell as high as the bar does not carry it\n up to the bar's edge. */\n.lintje-notifications__count {\n position: absolute;\n top: calc(50% - var(--h-touch) / 2 + var(--space-1)); right: var(--space-1);\n}\n/* The keyed figure is a new element per value, so the rise plays once per change. */\n.lintje-notifications__figure { display: inline-block; }\n.lintje-notifications__figure.is-replaced {\n animation: lintje-rise var(--dur-badge) var(--ease-in-motion) both;\n}\n\n.lintje-notifications__panel {\n width: 440px;\n max-width: 100%;\n max-height: 480px;\n overflow-y: auto;\n font: var(--text-ui);\n color: var(--color-text-primary);\n}\n\n.lintje-notifications__head {\n display: flex; align-items: center; justify-content: space-between;\n gap: var(--space-4);\n padding: var(--space-3) var(--space-4);\n border-bottom: 1px solid var(--color-border-default);\n}\n.lintje-notifications__heading { font: var(--text-tile-title); }\n/* The link-style button reaches the target height through a hit area above and below only. */\n.lintje-notifications__read {\n position: relative;\n min-height: var(--space-6);\n margin-left: auto;\n color: var(--color-link);\n font-size: 0.875rem; font-weight: 700;\n text-decoration: underline;\n}\n.lintje-notifications__read::after {\n content: '';\n position: absolute;\n inset: min(0px, calc((100% - var(--h-target)) / 2)) 0;\n}\n.lintje-notifications__read:hover { color: var(--color-link-hover); }\n\n.lintje-notifications__list { margin: 0; padding: 0; list-style: none; }\n.lintje-notifications__item {\n display: flex; gap: var(--space-3);\n padding: var(--space-3) var(--space-4);\n border-bottom: 1px solid var(--color-border-default);\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-notifications__item:last-child { border-bottom: 0; }\n.lintje-notifications__item.is-unread { background: var(--color-bg-selected); }\n.lintje-notifications__item:hover { background: var(--color-bg-subtle); }\n\n.lintje-notifications__dot,\n.lintje-notifications__dot-space { flex: 0 0 8px; height: 8px; margin-top: 7px; }\n.lintje-notifications__dot { border-radius: var(--radius-round); background: var(--color-accent-line); }\n\n.lintje-notifications__body { min-width: 0; }\n.lintje-notifications__title {\n display: inline;\n padding: 0;\n color: var(--color-link);\n font-size: 1rem; font-weight: 400;\n text-align: left;\n text-decoration: underline;\n}\n.lintje-notifications__title:hover { color: var(--color-link-hover); }\n.lintje-notifications__item.is-unread .lintje-notifications__title { font-weight: 700; }\n.lintje-notifications__text { margin: 0; font-size: 0.875rem; overflow-wrap: anywhere; }\n.lintje-notifications__when { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }\n\n.lintje-notifications__empty {\n margin: 0;\n padding: var(--space-6) var(--space-4);\n color: var(--color-text-muted);\n text-align: center;\n}\n\n/* Phone: the sheet takes focus only when the trap pulls back stray focus, and draws no ring. */\n.lintje-notifications__sheet {\n position: fixed;\n z-index: 85;\n inset: 0;\n overflow-y: auto;\n background: var(--color-bg-surface);\n animation: lintje-fade-in var(--dur-popover) var(--ease-in-motion);\n}\n.lintje-notifications__sheet:focus { outline: none; }\n.lintje-notifications__panel.is-sheet { width: 100%; max-height: none; }\n.lintje-notifications__close { margin-right: calc(var(--space-2) * -1); }\n.lintje-notifications__close:hover { color: var(--color-text-primary); }\n.lintje-notifications__panel.is-sheet .lintje-notifications__head { padding-top: 0; padding-bottom: 0; min-height: var(--h-mobile-header); }\n\n/* Forced colours: the unread surface is dropped, so the dot keeps a system-colour fill. */\n@media (forced-colors: active) {\n .lintje-notifications__dot { forced-color-adjust: none; background: CanvasText; }\n .lintje-notifications__bell.is-open { outline: 1px solid Highlight; outline-offset: -1px; }\n}\n", v = 0;
|
|
@@ -47,7 +47,7 @@ var S = class extends m {
|
|
|
47
47
|
this.open = !1, e && this.bell?.focus();
|
|
48
48
|
}
|
|
49
49
|
constructor() {
|
|
50
|
-
super(), this.items = [], this.max = 9, this.open = !1, this.#e = 0, this.#t = !1, this.news = "", this.#n = 0, this.#r = !1, this.#i = new
|
|
50
|
+
super(), this.items = [], this.max = 9, this.open = !1, this.#e = 0, this.#t = !1, this.news = "", this.#n = 0, this.#r = !1, this.#i = new s(this, o), this.#a = `lintje-notifications-${++v}`, this.onFocusOut = (e) => {
|
|
51
51
|
let t = e.relatedTarget;
|
|
52
52
|
this.open && !this.#i.matches && t && (n(t, this) || n(this, t) || this.hide(!1));
|
|
53
53
|
}, this.#o = null, this.#s = new h(), this.#c = (e) => {
|
|
@@ -65,7 +65,7 @@ var S = class extends m {
|
|
|
65
65
|
let t = this.unread, n = this.#e;
|
|
66
66
|
this.#t = n > 0 && t > 0 && t !== n, this.#e = t, this.hasUpdated && t > n && this.#l(x(t - n));
|
|
67
67
|
let r = this.renderRoot.querySelector(".lintje-notifications__read");
|
|
68
|
-
t === 0 && r &&
|
|
68
|
+
t === 0 && r && l(r) && (this.#r = !0);
|
|
69
69
|
}
|
|
70
70
|
#l(e) {
|
|
71
71
|
this.news = "", this.#n && cancelAnimationFrame(this.#n), this.#n = requestAnimationFrame(() => {
|
|
@@ -82,7 +82,7 @@ var S = class extends m {
|
|
|
82
82
|
t && !this.#o ? this.#u() : !t && this.#o && this.#d();
|
|
83
83
|
}
|
|
84
84
|
#u() {
|
|
85
|
-
this.#o =
|
|
85
|
+
this.#o = c(), document.addEventListener("keydown", this.#c);
|
|
86
86
|
let e = this.renderRoot.querySelector(".lintje-notifications__sheet"), t = this.renderRoot.querySelector(".lintje-notifications__close");
|
|
87
87
|
e && this.#s.activate(e, { focus: t ?? !0 });
|
|
88
88
|
}
|
|
@@ -99,65 +99,65 @@ var S = class extends m {
|
|
|
99
99
|
} : { id: e.id }) || t.preventDefault());
|
|
100
100
|
}
|
|
101
101
|
renderItem(e) {
|
|
102
|
-
let t = !!e.unread, n = e.href ?
|
|
102
|
+
let t = !!e.unread, n = e.href ? p`<a
|
|
103
103
|
class="lintje-notifications__title"
|
|
104
104
|
href=${e.href}
|
|
105
105
|
@click=${(t) => this.choose(e, t)}
|
|
106
106
|
>${e.title}</a
|
|
107
|
-
>` :
|
|
107
|
+
>` : p`<button
|
|
108
108
|
type="button"
|
|
109
109
|
class="lintje-notifications__title"
|
|
110
110
|
@click=${(t) => this.choose(e, t)}
|
|
111
111
|
>
|
|
112
112
|
${e.title}
|
|
113
113
|
</button>`;
|
|
114
|
-
return
|
|
114
|
+
return p`<li class=${d({
|
|
115
115
|
"lintje-notifications__item": !0,
|
|
116
116
|
"is-unread": t
|
|
117
117
|
})}>
|
|
118
|
-
${t ?
|
|
118
|
+
${t ? p`<span class="lintje-notifications__dot" role="img" aria-label="Ongelezen"></span>` : p`<span class="lintje-notifications__dot-space"></span>`}
|
|
119
119
|
<div class="lintje-notifications__body">
|
|
120
120
|
${n}
|
|
121
|
-
${e.text ?
|
|
121
|
+
${e.text ? p`<p class="lintje-notifications__text">${e.text}</p>` : r}
|
|
122
122
|
<p class="lintje-notifications__when">${e.when}</p>
|
|
123
123
|
</div>
|
|
124
124
|
</li>`;
|
|
125
125
|
}
|
|
126
126
|
renderPanel(e) {
|
|
127
|
-
return
|
|
127
|
+
return p`<div class=${d({
|
|
128
128
|
"lintje-notifications__panel": !0,
|
|
129
129
|
"is-sheet": e
|
|
130
130
|
})}>
|
|
131
131
|
<div class="lintje-notifications__head">
|
|
132
132
|
<h2 class="lintje-notifications__heading">Meldingen</h2>
|
|
133
|
-
${this.unread > 0 ?
|
|
133
|
+
${this.unread > 0 ? p`<button
|
|
134
134
|
type="button"
|
|
135
135
|
class="lintje-notifications__read"
|
|
136
136
|
@click=${() => this.emit("lintje-notifications-read")}
|
|
137
137
|
>
|
|
138
138
|
Alles gelezen
|
|
139
139
|
</button>` : r}
|
|
140
|
-
${e ?
|
|
140
|
+
${e ? p`<button
|
|
141
141
|
type="button"
|
|
142
142
|
class="lintje-dialog-close lintje-notifications__close"
|
|
143
143
|
aria-label="Meldingen sluiten"
|
|
144
144
|
@click=${() => this.hide(!0)}
|
|
145
145
|
>
|
|
146
|
-
${
|
|
146
|
+
${f("functioneel-kruis", { size: 16 })}
|
|
147
147
|
</button>` : r}
|
|
148
148
|
</div>
|
|
149
|
-
${this.items.length ?
|
|
149
|
+
${this.items.length ? p`<ul class="lintje-notifications__list">
|
|
150
150
|
${this.items.map((e) => this.renderItem(e))}
|
|
151
|
-
</ul>` :
|
|
151
|
+
</ul>` : p`<p class="lintje-notifications__empty">
|
|
152
152
|
Geen meldingen. Wat klaar is of mislukt, verschijnt hier.
|
|
153
153
|
</p>`}
|
|
154
154
|
</div>`;
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
157
|
let e = this.unread, t = this.#i.matches;
|
|
158
|
-
return
|
|
158
|
+
return p`<button
|
|
159
159
|
type="button"
|
|
160
|
-
class=${
|
|
160
|
+
class=${d({
|
|
161
161
|
"lintje-notifications__bell": !0,
|
|
162
162
|
"is-open": this.open
|
|
163
163
|
})}
|
|
@@ -167,10 +167,10 @@ var S = class extends m {
|
|
|
167
167
|
aria-controls=${this.#a}
|
|
168
168
|
@click=${() => this.open ? this.hide(!1) : this.open = !0}
|
|
169
169
|
>
|
|
170
|
-
${
|
|
171
|
-
${e > 0 ?
|
|
172
|
-
>${
|
|
173
|
-
class=${
|
|
170
|
+
${f("functioneel-bel", { size: 20 })}
|
|
171
|
+
${e > 0 ? p`<lintje-badge class="lintje-notifications__count" variant="unread" aria-hidden="true"
|
|
172
|
+
>${u(y(e, this.max), p`<span
|
|
173
|
+
class=${d({
|
|
174
174
|
"lintje-notifications__figure": !0,
|
|
175
175
|
"is-replaced": this.#t
|
|
176
176
|
})}
|
|
@@ -178,7 +178,7 @@ var S = class extends m {
|
|
|
178
178
|
>`)}</lintje-badge
|
|
179
179
|
>` : r}
|
|
180
180
|
</button>
|
|
181
|
-
${t ? this.open ?
|
|
181
|
+
${t ? this.open ? p`<div
|
|
182
182
|
id=${this.#a}
|
|
183
183
|
class="lintje-notifications__sheet"
|
|
184
184
|
role="dialog"
|
|
@@ -187,7 +187,7 @@ var S = class extends m {
|
|
|
187
187
|
tabindex="-1"
|
|
188
188
|
>
|
|
189
189
|
${this.renderPanel(!0)}
|
|
190
|
-
</div>` : r :
|
|
190
|
+
</div>` : r : p`<lintje-popover
|
|
191
191
|
id=${this.#a}
|
|
192
192
|
panel-role="dialog"
|
|
193
193
|
label="Meldingen"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, Bt as t, Gt as n, Ht as r,
|
|
2
|
-
import { n as s, t as c } from "../chunks/input-
|
|
1
|
+
import { $ as e, Bt as t, Gt as n, Ht as r, Z as i, et as a, qt as o } from "../chunks/base-Bg-IFOPG.js";
|
|
2
|
+
import { n as s, t as c } from "../chunks/input-BtuNFSWk.js";
|
|
3
3
|
//#region src/components/inputs/number-input/number-input.css?inline
|
|
4
4
|
var l = "/* The number field with its stepper. */\n\n/* --- Number field --------------------------------------------------------- */\n.lintje-number-input {\n display: flex; align-items: stretch;\n height: var(--h-control);\n border: 1px solid var(--color-border-field);\n background: var(--color-bg-surface);\n border-radius: var(--radius);\n}\n.lintje-number-input.is-error { border: 2px solid var(--color-error); }\n.lintje-number-input.is-readonly { border: 1px solid var(--color-border-strong); background: var(--color-bg-subtle); }\n.lintje-number-input.is-readonly .lintje-number-input__step {\n border-color: var(--color-border-strong);\n color: var(--color-text-disabled);\n cursor: default;\n}\n.lintje-number-input.is-readonly .lintje-number-input__step:hover { background: none; }\n.lintje-number-input.is-readonly .lintje-number-input__control { cursor: default; }\n.lintje-number-input.is-disabled { border: 1px solid var(--color-border-strong); background: var(--color-bg-subtle); }\n.lintje-number-input__step {\n width: var(--h-control); flex: none;\n display: flex; align-items: center; justify-content: center;\n color: var(--color-text-primary);\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-number-input__step--down { border-right: 1px solid var(--color-border-field); }\n.lintje-number-input__step--up { border-left: 1px solid var(--color-border-field); }\n.lintje-number-input.is-disabled .lintje-number-input__step { border-color: var(--color-border-strong); }\n.lintje-number-input__step:hover:not(:disabled):not(.is-limit) { background: var(--color-bg-subtle); }\n/* At `min` or `max` the step keeps the focus (`aria-disabled`) and looks disabled. */\n.lintje-number-input__step:disabled,\n.lintje-number-input__step.is-limit { color: var(--color-text-disabled); cursor: not-allowed; }\n.lintje-number-input__control {\n flex: 1; min-width: 0;\n border: none; background: none;\n padding: 0 var(--space-2);\n text-align: center;\n font-size: 1rem;\n font-variant-numeric: tabular-nums;\n color: var(--color-text-primary);\n appearance: textfield;\n -moz-appearance: textfield;\n}\n/* The browser's own spinner would sit beside the design's. */\n.lintje-number-input__control::-webkit-outer-spin-button,\n.lintje-number-input__control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }\n.lintje-number-input__control:disabled { color: var(--color-text-disabled); cursor: not-allowed; }\n.lintje-number-input--unit .lintje-number-input__control { text-align: left; padding-left: 14px; }\n.lintje-number-input__unit {\n display: flex; align-items: center; flex: none;\n padding-right: 14px;\n font-size: 1rem; color: var(--color-text-muted);\n}\n", u = "lintje-number-input-unit", d = class extends s {
|
|
5
5
|
constructor(...e) {
|
|
@@ -47,9 +47,9 @@ var l = "/* The number field with its stepper. */\n\n/* --- Number field -------
|
|
|
47
47
|
}
|
|
48
48
|
stepButton(e) {
|
|
49
49
|
let t = e === -1, r = !this.disabled && (t ? this.atMin : this.atMax);
|
|
50
|
-
return
|
|
50
|
+
return o`<button
|
|
51
51
|
type="button"
|
|
52
|
-
class=${
|
|
52
|
+
class=${i({
|
|
53
53
|
"lintje-number-input__step": !0,
|
|
54
54
|
[`lintje-number-input__step--${t ? "down" : "up"}`]: !0,
|
|
55
55
|
"is-limit": r
|
|
@@ -59,15 +59,15 @@ var l = "/* The number field with its stepper. */\n\n/* --- Number field -------
|
|
|
59
59
|
aria-disabled=${this.readonly && !this.disabled || r ? "true" : n}
|
|
60
60
|
@click=${() => this.nudge(e * this.step)}
|
|
61
61
|
>
|
|
62
|
-
${
|
|
62
|
+
${a(t ? "functioneel-minus" : "functioneel-plus", { size: 16 })}
|
|
63
63
|
</button>`;
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
66
|
let e = !!this.unit && !this.stepper, t = [e ? u : "", this.describedBy === n ? "" : this.describedBy].filter(Boolean).join(" ");
|
|
67
|
-
return
|
|
67
|
+
return o`<div class="lintje-field">
|
|
68
68
|
${this.renderLabel(this.controlId)}
|
|
69
69
|
<div
|
|
70
|
-
class=${
|
|
70
|
+
class=${i({
|
|
71
71
|
"lintje-number-input": !0,
|
|
72
72
|
"lintje-number-input--unit": e,
|
|
73
73
|
"is-error": !!this.error,
|
|
@@ -94,7 +94,7 @@ var l = "/* The number field with its stepper. */\n\n/* --- Number field -------
|
|
|
94
94
|
@change=${this.change}
|
|
95
95
|
@keydown=${(e) => this.submitOnEnter(e, () => this.change(e))}
|
|
96
96
|
/>
|
|
97
|
-
${e ?
|
|
97
|
+
${e ? o`<span id=${u} class="lintje-number-input__unit">${this.unit}</span>` : n}
|
|
98
98
|
${this.stepper ? this.stepButton(1) : n}
|
|
99
99
|
</div>
|
|
100
100
|
${this.renderFoot()}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, At as t, Bt as n, Gt as r, Ht as i, It as a,
|
|
1
|
+
import { A as e, At as t, Bt as n, Gt as r, Ht as i, It as a, Lt as o, Z as s, qt as c, zt as l } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import "./announcement.js";
|
|
3
3
|
//#region src/components/frame/page-header/page-header.css?inline
|
|
4
4
|
var u = ":host {\n display: block;\n}\n:host([hidden]) { display: none; }\n\n/* --- */\n\n.lintje-page-header {\n background: var(--color-bg-title);\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: var(--space-5) var(--space-6) 18px;\n}\n/* The actions stand level with the title; under a description, level with its last line. */\n.lintje-page-header__row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-3) var(--space-6);\n}\n.lintje-page-header__row.is-described { align-items: flex-end; }\n.lintje-page-header__heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.lintje-page-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }\n.lintje-page-header__actions.is-empty { display: none; }\n.lintje-page-header__title { font: var(--text-h1); color: var(--color-text-primary); }\n/* The pencil shows while the title is pointed at or the pencil has the focus; a touch screen\n always shows it. */\n.lintje-page-header__title-row { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }\n.lintje-page-header__edit { flex: none; opacity: 0; transition: opacity var(--dur-hover) var(--ease-in-motion); }\n.lintje-page-header__title-row:hover .lintje-page-header__edit,\n.lintje-page-header__edit:focus-within { opacity: 1; }\n@media (hover: none) {\n .lintje-page-header__edit { opacity: 1; }\n}\n.lintje-page-header__description {\n margin-top: 6px;\n max-width: var(--w-text);\n font-size: 1rem;\n line-height: 1.5;\n color: var(--color-text-secondary);\n}\n.lintje-page-header__meta {\n margin-top: var(--space-2);\n font: var(--text-small);\n color: var(--color-text-muted);\n}\n.lintje-page-header__more { color: var(--color-link); font-weight: 700; text-decoration: underline; }\n\n.lintje-page-header__kicker {\n font-size: var(--label-size);\n font-weight: var(--label-weight);\n letter-spacing: var(--label-tracking);\n text-transform: uppercase;\n color: var(--color-text-muted);\n}\n\n@media (max-width: 767px) {\n .lintje-page-header { padding: var(--space-4) var(--space-4) 14px; gap: 4px; }\n .lintje-page-header__title { font: var(--text-h1-mobile); }\n .lintje-page-header__meta { font: var(--text-meta); margin-top: 0; }\n}\n\n/* In the shell: flush in the content column, the trail and the title row closer together. */\n.lintje-page-header--shell { padding: 0; gap: var(--space-2); }\n.lintje-page-header--shell .lintje-page-header__heading { gap: var(--space-1); }\n.lintje-page-header--shell .lintje-page-header__title { overflow-wrap: anywhere; }\n.lintje-page-header--shell .lintje-page-header__description { margin-top: 0; }\n", d = class extends l {
|
|
5
5
|
constructor(...e) {
|
|
6
|
-
super(...e), this.inShell = !1, this.hasActions = !1, this.editable = !1, this.mobile = new
|
|
6
|
+
super(...e), this.inShell = !1, this.hasActions = !1, this.editable = !1, this.mobile = new o(this, a), this.observer = null;
|
|
7
7
|
}
|
|
8
8
|
static {
|
|
9
9
|
this.styles = i(u);
|
|
@@ -48,25 +48,25 @@ var u = ":host {\n display: block;\n}\n:host([hidden]) { display: none; }\n\n/*
|
|
|
48
48
|
render() {
|
|
49
49
|
let e = this.data;
|
|
50
50
|
if (!e) return r;
|
|
51
|
-
let t = this.mobile.matches, n = this.inShell, i = !!e.description && (n || !t), { asOf: a, source:
|
|
52
|
-
return a && u.push(
|
|
51
|
+
let t = this.mobile.matches, n = this.inShell, i = !!e.description && (n || !t), { asOf: a, source: o, more: l } = e, u = [];
|
|
52
|
+
return a && u.push(c`<span>Waarde van ${a}</span>`), a && o && u.push(c`<span aria-hidden="true"> · </span>`), o && u.push(c`<span>Bron: ${o}</span>`), l && (u.push(c`<span aria-hidden="true"> · </span>`), u.push(c`<a href=${l.href} class="lintje-page-header__more"
|
|
53
53
|
>${l.label ?? "Meer over deze cijfers"} ›</a
|
|
54
|
-
>`)),
|
|
55
|
-
${e.announcement ?
|
|
56
|
-
<div class=${
|
|
54
|
+
>`)), c`
|
|
55
|
+
${e.announcement ? c`<lintje-announcement .data=${e.announcement}></lintje-announcement>` : r}
|
|
56
|
+
<div class=${s({
|
|
57
57
|
"lintje-page-header": !0,
|
|
58
58
|
"lintje-page-header--shell": n
|
|
59
59
|
})}>
|
|
60
60
|
<slot name="breadcrumbs"></slot>
|
|
61
|
-
${t && e.kicker ?
|
|
62
|
-
<div class=${
|
|
61
|
+
${t && e.kicker ? c`<p class="lintje-page-header__kicker">${e.kicker}</p>` : r}
|
|
62
|
+
<div class=${s({
|
|
63
63
|
"lintje-page-header__row": !0,
|
|
64
64
|
"is-described": i
|
|
65
65
|
})}>
|
|
66
66
|
<div class="lintje-page-header__heading">
|
|
67
67
|
<div class="lintje-page-header__title-row">
|
|
68
68
|
<h2 class="lintje-page-header__title">${e.title}</h2>
|
|
69
|
-
${this.editable ?
|
|
69
|
+
${this.editable ? c`<lintje-icon-button
|
|
70
70
|
class="lintje-page-header__edit"
|
|
71
71
|
icon="functioneel-bewerken"
|
|
72
72
|
label="Naam wijzigen"
|
|
@@ -74,11 +74,11 @@ var u = ":host {\n display: block;\n}\n:host([hidden]) { display: none; }\n\n/*
|
|
|
74
74
|
@click=${() => this.emit("lintje-title-edit")}
|
|
75
75
|
></lintje-icon-button>` : r}
|
|
76
76
|
</div>
|
|
77
|
-
${i ?
|
|
77
|
+
${i ? c`<p class="lintje-page-header__description">${e.description}</p>` : r}
|
|
78
78
|
</div>
|
|
79
79
|
<slot
|
|
80
80
|
name="actions"
|
|
81
|
-
class=${
|
|
81
|
+
class=${s({
|
|
82
82
|
"lintje-page-header__actions": !0,
|
|
83
83
|
"is-empty": !this.hasActions
|
|
84
84
|
})}
|
|
@@ -87,7 +87,7 @@ var u = ":host {\n display: block;\n}\n:host([hidden]) { display: none; }\n\n/*
|
|
|
87
87
|
}}
|
|
88
88
|
></slot>
|
|
89
89
|
</div>
|
|
90
|
-
${u.length > 0 ?
|
|
90
|
+
${u.length > 0 ? c`<p class="lintje-page-header__meta">${u}</p>` : r}
|
|
91
91
|
</div>
|
|
92
92
|
`;
|
|
93
93
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, Bt as t, Gt as n, Ht as r, I as i,
|
|
1
|
+
import { $ as e, Bt as t, Gt as n, Ht as r, I as i, Z as a, et as o, p as s, q as c, qt as l, s as u, zt as d } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import "./menu-button.js";
|
|
3
3
|
//#region src/components/tables/pagination/pagination.css?inline
|
|
4
4
|
var f = "/* \"Vorige\" and \"Volgende\" wear `.lintje-button--link` from the button's sheet. */\n/* In a flush tile the pages keep the heading's indent, as the rows above them do, and the tile's\n padding below them when no footnote follows. */\n:host {\n display: block; min-width: 0;\n padding-inline: var(--lintje-inset, 0px);\n padding-block-end: var(--lintje-inset-end, 0px);\n}\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* Three zones: the count left, the pages centred under what they page, the size choice right.\n Stacked, the pages take the first line and the count and the choice share the second. */\n.lintje-pagination {\n display: grid; grid-template-columns: 1fr auto 1fr;\n grid-template-areas: \"count nav size\";\n align-items: center;\n gap: var(--space-2) var(--space-4);\n}\n.lintje-pagination.is-stacked {\n grid-template-columns: 1fr auto;\n grid-template-areas: \"nav nav\" \"count size\";\n}\n\n.lintje-pagination__nav {\n grid-area: nav; justify-self: center;\n display: flex; flex-wrap: wrap; align-items: center;\n font: var(--text-ui);\n}\n.lintje-pagination__pages { display: contents; }\n\n/* The chevron and the bold word make a step a control without an underline at rest. */\n.lintje-pagination__step {\n height: var(--h-target);\n padding: 0 var(--space-3);\n gap: var(--space-1);\n text-decoration: none;\n}\n.lintje-pagination__step:not(:disabled):hover { text-decoration: underline; }\n/* Without its word a step is a square chevron, as large as a number. */\n.lintje-pagination.is-compact .lintje-pagination__step { width: var(--h-target); padding: 0; }\n\n/* Flat: a box around every number weighs more than the one that matters. */\n.lintje-pagination__page {\n display: inline-flex; align-items: center; justify-content: center;\n min-width: var(--h-target); height: var(--h-target);\n padding: 0 var(--space-1);\n background: transparent;\n border: 1px solid transparent;\n color: var(--color-link);\n font: var(--text-ui);\n font-variant-numeric: tabular-nums;\n text-decoration: none;\n cursor: pointer;\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-pagination__page:hover { background: var(--color-bg-subtle); color: var(--color-link-hover); }\n\n/* The one filled square; its edge is the primary button's, the tint that carries it in dark. */\n.lintje-pagination__page.is-current {\n background: var(--color-action-primary);\n border-color: var(--color-action-primary-border);\n color: var(--color-action-primary-text);\n font-weight: 700;\n cursor: default;\n}\n/* Choosing the current page does nothing, so it does not answer the pointer. */\n.lintje-pagination__page.is-current:hover { background: var(--color-action-primary); }\n\n/* As wide as a number, so the seven slots keep one length. */\n.lintje-pagination__gap {\n min-width: var(--h-target);\n text-align: center;\n color: var(--color-text-muted);\n}\n\n.lintje-pagination__where { display: none; color: var(--color-text-primary); white-space: nowrap; }\n\n.lintje-pagination__count {\n grid-area: count; justify-self: start;\n margin: 0;\n white-space: nowrap;\n font: var(--text-small);\n color: var(--color-text-muted);\n font-variant-numeric: tabular-nums;\n}\n\n.lintje-pagination__size { grid-area: size; justify-self: end; white-space: nowrap; }\n\n@media (max-width: 767px) {\n .lintje-pagination {\n grid-template-columns: 1fr auto;\n grid-template-areas: \"nav nav\" \"count size\";\n }\n .lintje-pagination__nav {\n justify-self: stretch;\n flex-wrap: nowrap; justify-content: space-between;\n }\n .lintje-pagination__pages { display: none; }\n .lintje-pagination__where { display: block; }\n .lintje-pagination__step { flex: 0 0 auto; padding: 0 var(--space-2); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .lintje-pagination__page { transition: none; }\n}\n\n/* Forced colours: the current page's fill is dropped, so its border turns Highlight. */\n@media (forced-colors: active) {\n .lintje-pagination__page.is-current { border-color: Highlight; }\n}\n", p = 7;
|
|
@@ -40,9 +40,9 @@ function g(e, t, n, r = h) {
|
|
|
40
40
|
if (!t || n == null || Number.isNaN(n)) return null;
|
|
41
41
|
if (n <= 0) return `Geen ${r.many}`;
|
|
42
42
|
let i = n === 1 ? r.one : r.many;
|
|
43
|
-
if (n <= t) return `${
|
|
43
|
+
if (n <= t) return `${u(n)} ${i}`;
|
|
44
44
|
let a = Math.min((e - 1) * t + 1, n), o = Math.min(e * t, n);
|
|
45
|
-
return `${a === o ?
|
|
45
|
+
return `${a === o ? u(a) : `${u(a)}–${u(o)}`} van ${u(n)} ${i}`;
|
|
46
46
|
}
|
|
47
47
|
function _(e) {
|
|
48
48
|
if (!e) return;
|
|
@@ -56,7 +56,7 @@ var v = class extends d {
|
|
|
56
56
|
static {
|
|
57
57
|
this.styles = [
|
|
58
58
|
e,
|
|
59
|
-
r(
|
|
59
|
+
r(c),
|
|
60
60
|
r(f)
|
|
61
61
|
];
|
|
62
62
|
}
|
|
@@ -144,15 +144,15 @@ var v = class extends d {
|
|
|
144
144
|
let e = this.pageSizes;
|
|
145
145
|
if (!e?.length) return n;
|
|
146
146
|
let t = this.pageSize ?? e[0], r = e.includes(t) ? e : [...e, t].sort((e, t) => e - t), i = this.countUnit.many;
|
|
147
|
-
return
|
|
147
|
+
return l`<lintje-menu-button
|
|
148
148
|
class="lintje-pagination__size"
|
|
149
149
|
variant="flat"
|
|
150
150
|
placement="bottom-end"
|
|
151
|
-
label=${`${
|
|
152
|
-
accessible-label=${`${i[0].toUpperCase()}${i.slice(1)}: ${
|
|
151
|
+
label=${`${u(t)} per pagina`}
|
|
152
|
+
accessible-label=${`${i[0].toUpperCase()}${i.slice(1)}: ${u(t)} per pagina`}
|
|
153
153
|
.items=${r.map((e) => ({
|
|
154
154
|
value: String(e),
|
|
155
|
-
label: `${
|
|
155
|
+
label: `${u(e)} per pagina`,
|
|
156
156
|
checked: e === t,
|
|
157
157
|
radio: !0
|
|
158
158
|
}))}
|
|
@@ -170,19 +170,19 @@ var v = class extends d {
|
|
|
170
170
|
for (let e of n) if (!(!e || e instanceof HTMLButtonElement && e.disabled) && (e.focus(), t.activeElement === e)) return;
|
|
171
171
|
}
|
|
172
172
|
step(e, t, n) {
|
|
173
|
-
let r = e === "previous", i = r ? "Vorige" : "Volgende", s =
|
|
173
|
+
let r = e === "previous", i = r ? "Vorige" : "Volgende", s = o("functioneel-delta-rechts", {
|
|
174
174
|
size: 16,
|
|
175
175
|
flip: r ? "horizontal" : void 0
|
|
176
|
-
}),
|
|
177
|
-
class=${
|
|
176
|
+
}), c = l`<span
|
|
177
|
+
class=${a({
|
|
178
178
|
"lintje-pagination__word": !0,
|
|
179
179
|
"visually-hidden": this.compact
|
|
180
180
|
})}
|
|
181
181
|
>${i}</span
|
|
182
|
-
>`, u = r ?
|
|
183
|
-
return n || !d ?
|
|
182
|
+
>`, u = r ? l`${s}${c}` : l`${c}${s}`, d = this.hrefFor(t);
|
|
183
|
+
return n || !d ? l`<button
|
|
184
184
|
type="button"
|
|
185
|
-
class=${
|
|
185
|
+
class=${a({
|
|
186
186
|
"lintje-button": !0,
|
|
187
187
|
"lintje-button--link": !0,
|
|
188
188
|
"lintje-pagination__step": !0,
|
|
@@ -193,7 +193,7 @@ var v = class extends d {
|
|
|
193
193
|
@click=${(n) => this.choose(n, t, e)}
|
|
194
194
|
>
|
|
195
195
|
${u}
|
|
196
|
-
</button>` :
|
|
196
|
+
</button>` : l`<a
|
|
197
197
|
class="lintje-button lintje-button--link lintje-pagination__step"
|
|
198
198
|
data-step=${e}
|
|
199
199
|
href=${d}
|
|
@@ -202,23 +202,23 @@ var v = class extends d {
|
|
|
202
202
|
>`;
|
|
203
203
|
}
|
|
204
204
|
number(e, t) {
|
|
205
|
-
let r = e === t, i =
|
|
205
|
+
let r = e === t, i = a({
|
|
206
206
|
"lintje-pagination__page": !0,
|
|
207
207
|
"is-current": r
|
|
208
|
-
}),
|
|
209
|
-
return
|
|
208
|
+
}), o = r ? `Pagina ${e}, huidige pagina` : `Ga naar pagina ${e}`, s = this.hrefFor(e);
|
|
209
|
+
return s ? l`<a
|
|
210
210
|
class=${i}
|
|
211
|
-
href=${
|
|
211
|
+
href=${s}
|
|
212
212
|
data-page=${e}
|
|
213
|
-
aria-label=${
|
|
213
|
+
aria-label=${o}
|
|
214
214
|
aria-current=${r ? "page" : n}
|
|
215
215
|
@click=${(t) => this.choose(t, e, e)}
|
|
216
216
|
>${e}</a
|
|
217
|
-
>` :
|
|
217
|
+
>` : l`<button
|
|
218
218
|
type="button"
|
|
219
219
|
class=${i}
|
|
220
220
|
data-page=${e}
|
|
221
|
-
aria-label=${
|
|
221
|
+
aria-label=${o}
|
|
222
222
|
aria-current=${r ? "page" : n}
|
|
223
223
|
@click=${(t) => this.choose(t, e, e)}
|
|
224
224
|
>
|
|
@@ -226,19 +226,19 @@ var v = class extends d {
|
|
|
226
226
|
</button>`;
|
|
227
227
|
}
|
|
228
228
|
render() {
|
|
229
|
-
let e = this.count, t = this.current, r = m(t, e), i = r.indexOf(t),
|
|
230
|
-
return
|
|
231
|
-
class=${
|
|
229
|
+
let e = this.count, t = this.current, r = m(t, e), i = r.indexOf(t), o = g(t, this.pageSize, this.total, this.countUnit);
|
|
230
|
+
return l`<div
|
|
231
|
+
class=${a({
|
|
232
232
|
"lintje-pagination": !0,
|
|
233
233
|
"is-compact": this.compact,
|
|
234
234
|
"is-stacked": this.stacked
|
|
235
235
|
})}
|
|
236
236
|
>
|
|
237
|
-
${
|
|
237
|
+
${o ? l`<p class="lintje-pagination__count">${o}</p>` : n}
|
|
238
238
|
<nav class="lintje-pagination__nav" aria-label=${this.label}>
|
|
239
239
|
${this.step("previous", t - 1, t <= 1)}
|
|
240
240
|
<span class="lintje-pagination__pages">
|
|
241
|
-
${
|
|
241
|
+
${s(r, (e, t) => e === "gap" ? t < i ? "gap-before" : "gap-after" : e, (e) => e === "gap" ? l`<span class="lintje-pagination__gap" aria-hidden="true">…</span>` : this.number(e, t))}
|
|
242
242
|
</span>
|
|
243
243
|
<span class="lintje-pagination__where">Pagina ${t} van ${e}</span>
|
|
244
244
|
${this.step("next", t + 1, t >= e)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { L as LintjePopover } from "../chunks/base-
|
|
1
|
+
export { L as LintjePopover } from "../chunks/base-Bg-IFOPG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { m as LintjeProgressBar } from "../chunks/base-
|
|
1
|
+
export { m as LintjeProgressBar } from "../chunks/base-Bg-IFOPG.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bt as e, Ht as t,
|
|
1
|
+
import { Bt as e, Ht as t, O as n, Z as r, ft as i, qt as a } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import { t as o } from "../chunks/prose-CmKVp5kL.js";
|
|
3
3
|
//#region src/components/content/prose/prose.ts
|
|
4
|
-
var s = class extends
|
|
4
|
+
var s = class extends n {
|
|
5
5
|
constructor(...e) {
|
|
6
6
|
super(...e), this.tone = "default";
|
|
7
7
|
}
|
|
@@ -19,11 +19,11 @@ var s = class extends r {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
let e =
|
|
22
|
+
let e = r({
|
|
23
23
|
"lintje-prose": !0,
|
|
24
24
|
[`lintje-prose--${this.tone}`]: this.tone !== "default"
|
|
25
25
|
});
|
|
26
|
-
return this.html ?
|
|
26
|
+
return this.html ? a`<div class=${e}>${i(this.html)}</div>` : this.text ? a`<div class=${e}><p>${this.text}</p></div>` : a`<div class=${e}><slot></slot></div>`;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
e("lintje-prose", s);
|
|
@@ -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, Z as r, qt as i, zt as a } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import "./toast.js";
|
|
3
3
|
import { t as o } from "../chunks/copied-7BXYVkXT.js";
|
|
4
4
|
//#region src/components/actions/qr-code/qr-code.css?inline
|
|
@@ -859,8 +859,8 @@ var b = class extends a {
|
|
|
859
859
|
e.stopPropagation(), this.failed = !1;
|
|
860
860
|
}
|
|
861
861
|
render() {
|
|
862
|
-
return
|
|
863
|
-
${this.drawn ?
|
|
862
|
+
return i`<div class="lintje-qr-code__zone">
|
|
863
|
+
${this.drawn ? i`<img class="lintje-qr-code__image" src=${this.drawn} alt=${this.alt} />` : this.tooLong ? i`<p class="lintje-qr-code__hint">${g}</p>` : t}
|
|
864
864
|
</div>
|
|
865
865
|
<lintje-button
|
|
866
866
|
variant="secondary"
|
|
@@ -868,19 +868,19 @@ var b = class extends a {
|
|
|
868
868
|
?disabled=${!this.drawn}
|
|
869
869
|
@click=${this.copy}
|
|
870
870
|
><span class="lintje-qr-code__labels"
|
|
871
|
-
><span class=${
|
|
871
|
+
><span class=${r({
|
|
872
872
|
"lintje-qr-code__label": !0,
|
|
873
873
|
"is-hidden": this.copied
|
|
874
874
|
})}
|
|
875
875
|
>${p}</span
|
|
876
|
-
><span class=${
|
|
876
|
+
><span class=${r({
|
|
877
877
|
"lintje-qr-code__label": !0,
|
|
878
878
|
"is-hidden": !this.copied
|
|
879
879
|
})}
|
|
880
880
|
>${m}</span
|
|
881
881
|
></span
|
|
882
882
|
></lintje-button
|
|
883
|
-
><span class="visually-hidden" role="status">${this.status || t}</span>${this.failed ?
|
|
883
|
+
><span class="visually-hidden" role="status">${this.status || t}</span>${this.failed ? i`<lintje-toast kind="error" @lintje-close=${this.onToastClose}>${h}</lintje-toast>` : t}`;
|
|
884
884
|
}
|
|
885
885
|
};
|
|
886
886
|
e("lintje-qr-code", b);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, Bt as t, Gt as n, Ht as r,
|
|
2
|
-
import { r as o, t as s } from "../chunks/input-
|
|
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
3
|
//#region src/components/inputs/radio-group/radio-group.css?inline
|
|
4
4
|
var c = "/* The radio group's stack; the radio itself is the shared `choice`. */\n\n.lintje-radio-group { display: flex; flex-direction: column; }\n/* Cards: the options side by side, each with a line under its label. The chosen one is quiet, as\n in the segmented control: the choice's wash and an edge in the accent line. */\n.lintje-radio-group--cards {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(6 * var(--space-10))), 1fr));\n gap: var(--space-2);\n}\n.lintje-radio-group__card {\n align-items: flex-start;\n padding: var(--space-3);\n border: 1px solid var(--color-border-default);\n background: var(--color-bg-surface);\n}\n.lintje-radio-group__card:hover:not(.is-chosen, .is-disabled) { background: var(--color-bg-subtle); }\n.lintje-radio-group__card.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}\n.lintje-radio-group__card .lintje-choice__label { display: flex; flex-direction: column; font-weight: 700; }\n.lintje-radio-group__description { font: var(--text-small); font-weight: 400; color: var(--color-text-muted); }\n\n/* Below 768 px the two text fields take the touch height; the choice rows already have it. */\n@media (max-width: 767px) {\n :host(lintje-text-input),\n :host(lintje-number-input) { --h-control: var(--h-touch); }\n}\n", l = class extends o {
|
|
5
5
|
constructor(...e) {
|
|
@@ -26,7 +26,7 @@ var c = "/* The radio group's stack; the radio itself is the shared `choice`. */
|
|
|
26
26
|
this.value = e, this.commit(e);
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return
|
|
29
|
+
return a`<div
|
|
30
30
|
class="lintje-field"
|
|
31
31
|
role="radiogroup"
|
|
32
32
|
aria-labelledby=${this.labelId}
|
|
@@ -35,12 +35,12 @@ var c = "/* The radio group's stack; the radio itself is the shared `choice`. */
|
|
|
35
35
|
aria-required=${this.required ? "true" : n}
|
|
36
36
|
>
|
|
37
37
|
${this.renderLabel()}
|
|
38
|
-
<div class=${
|
|
38
|
+
<div class=${i({
|
|
39
39
|
"lintje-radio-group": !0,
|
|
40
40
|
"lintje-radio-group--cards": this.variant === "cards"
|
|
41
41
|
})}>
|
|
42
|
-
${(this.options ?? []).map((e) =>
|
|
43
|
-
class=${
|
|
42
|
+
${(this.options ?? []).map((e) => a`<label
|
|
43
|
+
class=${i({
|
|
44
44
|
"lintje-choice": !0,
|
|
45
45
|
"lintje-radio-group__card": this.variant === "cards",
|
|
46
46
|
"is-chosen": this.variant === "cards" && e.value === this.value,
|
|
@@ -58,7 +58,7 @@ var c = "/* The radio group's stack; the radio itself is the shared `choice`. */
|
|
|
58
58
|
/>
|
|
59
59
|
<span class="lintje-choice__radio" aria-hidden="true"></span>
|
|
60
60
|
<span class="lintje-choice__label"
|
|
61
|
-
>${e.label}${this.variant === "cards" && e.description ?
|
|
61
|
+
>${e.label}${this.variant === "cards" && e.description ? a`<span class="lintje-radio-group__description">${e.description}</span>` : n}</span
|
|
62
62
|
>
|
|
63
63
|
</label>`)}
|
|
64
64
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bt as e, Gt as t, Ht as n,
|
|
2
|
-
import { r as o, t as s } from "../chunks/input-
|
|
1
|
+
import { Bt as e, Gt as t, Ht as n, Z as r, qt as i, ut as a } from "../chunks/base-Bg-IFOPG.js";
|
|
2
|
+
import { r as o, t as s } from "../chunks/input-BtuNFSWk.js";
|
|
3
3
|
//#region src/components/inputs/range/range-ticks.ts
|
|
4
4
|
var c = [
|
|
5
5
|
1,
|
|
@@ -147,7 +147,7 @@ var p = "/* The range slider. */\n\n/* --- Range slider ------------------------
|
|
|
147
147
|
}
|
|
148
148
|
handles() {
|
|
149
149
|
let e = this.lastIndex;
|
|
150
|
-
if (this.single) return
|
|
150
|
+
if (this.single) return i`<input
|
|
151
151
|
type="range"
|
|
152
152
|
class="lintje-range__input"
|
|
153
153
|
role="slider"
|
|
@@ -169,9 +169,9 @@ var p = "/* The range slider. */\n\n/* --- Range slider ------------------------
|
|
|
169
169
|
@change=${(e) => this.commitStep(Number(e.target.value))}
|
|
170
170
|
/>`;
|
|
171
171
|
let [n, a] = this.pair;
|
|
172
|
-
return
|
|
172
|
+
return i`<input
|
|
173
173
|
type="range"
|
|
174
|
-
class=${
|
|
174
|
+
class=${r({
|
|
175
175
|
"lintje-range__input": !0,
|
|
176
176
|
"is-raised": n === a && a === e
|
|
177
177
|
})}
|
|
@@ -219,11 +219,11 @@ var p = "/* The range slider. */\n\n/* --- Range slider ------------------------
|
|
|
219
219
|
right: null,
|
|
220
220
|
transform: "translateX(-50%)"
|
|
221
221
|
}, u = this.single ? 0 : this.pair[0], d = this.single ? this.index : this.pair[1];
|
|
222
|
-
return
|
|
223
|
-
${this.renderLabel(void 0,
|
|
224
|
-
${this.hideLabel ?
|
|
222
|
+
return i`<div class="lintje-field">
|
|
223
|
+
${this.renderLabel(void 0, i`<span class="lintje-field__value">${this.valueText}</span>`)}
|
|
224
|
+
${this.hideLabel ? i`<span class="lintje-range__values">${this.valueText}</span>` : t}
|
|
225
225
|
<div
|
|
226
|
-
class=${
|
|
226
|
+
class=${r({
|
|
227
227
|
"lintje-range": !0,
|
|
228
228
|
"is-error": !!this.error
|
|
229
229
|
})}
|
|
@@ -240,15 +240,15 @@ var p = "/* The range slider. */\n\n/* --- Range slider ------------------------
|
|
|
240
240
|
${this.handles()}
|
|
241
241
|
</div>
|
|
242
242
|
<div class="lintje-range__scale" aria-hidden="true">
|
|
243
|
-
${s.marks.map((e) =>
|
|
244
|
-
class=${
|
|
243
|
+
${s.marks.map((e) => i`<span
|
|
244
|
+
class=${r({
|
|
245
245
|
"lintje-range__mark": !0,
|
|
246
246
|
"is-labelled": c.has(e)
|
|
247
247
|
})}
|
|
248
248
|
${a({ left: `${this.percent(e)}%` })}
|
|
249
249
|
></span>`)}
|
|
250
|
-
${s.labels.map((t) =>
|
|
251
|
-
class=${
|
|
250
|
+
${s.labels.map((t) => i`<span
|
|
251
|
+
class=${r({
|
|
252
252
|
"lintje-range__step": !0,
|
|
253
253
|
"is-active": this.single ? t === this.index : t >= u && t <= d
|
|
254
254
|
})}
|