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,6 +1,6 @@
|
|
|
1
|
-
import { Bt as e, Gt as t, Ht as n,
|
|
1
|
+
import { Bt as e, Gt as t, Ht as n, O as r, Z as i, qt as a } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
//#region src/components/content/code/code.css?inline
|
|
3
|
-
var o = "/* No syntax colouring: the chart grammar is the only place colour carries meaning. */\n:host {\n display: block;\n min-width: 0;\n}\n:host([hidden]) { display: none; }\n\n/* --- */\n\n.lintje-code { position: relative; }\n.lintje-code__language {\n /* Inside the border, on the block's surface: a long line scrolls under the label. */\n position: absolute; top: 1px; right: 1px;\n z-index: 1;\n padding: calc(var(--space-2) - 1px) calc(var(--space-3) - 1px) var(--space-1) var(--space-2);\n background: var(--color-bg-subtle);\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 pointer-events: none;\n}\n.lintje-code__block {\n margin: 0;\n padding: var(--space-3) var(--space-4);\n background: var(--color-bg-subtle);\n border: 1px solid var(--color-border-default);\n border-radius: var(--radius);\n font-family: var(--font-mono);\n font-size: 0.875rem;\n line-height: 1.6;\n color: var(--color-text-primary);\n font-variant-numeric: normal;\n overflow-x: auto;\n white-space: pre;\n tab-size: 2;\n}\n.lintje-code--labelled .lintje-code__block { padding-right: var(--space-10); }\n.lintje-code__block.is-wrapped { white-space: pre-wrap; overflow-wrap: anywhere; }\n\n/* Line numbers are a CSS counter, so a copy is only the code. The line spans stay inline and\n carry their own newline: a block-level line would break twice and blank every second line. */\n.lintje-code__line { counter-increment: lintje-code-line; }\n.lintje-code--numbered .lintje-code__block { counter-reset: lintje-code-line; }\n.lintje-code--numbered .lintje-code__line::before {\n /* A screen reader reads the code, not a number before each line. */\n content: counter(lintje-code-line);\n content: counter(lintje-code-line) / '';\n display: inline-block;\n width: var(--space-6);\n padding-right: var(--space-3);\n text-align: right;\n color: var(--color-text-disabled);\n user-select: none;\n}\n", s = class extends
|
|
3
|
+
var o = "/* No syntax colouring: the chart grammar is the only place colour carries meaning. */\n:host {\n display: block;\n min-width: 0;\n}\n:host([hidden]) { display: none; }\n\n/* --- */\n\n.lintje-code { position: relative; }\n.lintje-code__language {\n /* Inside the border, on the block's surface: a long line scrolls under the label. */\n position: absolute; top: 1px; right: 1px;\n z-index: 1;\n padding: calc(var(--space-2) - 1px) calc(var(--space-3) - 1px) var(--space-1) var(--space-2);\n background: var(--color-bg-subtle);\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 pointer-events: none;\n}\n.lintje-code__block {\n margin: 0;\n padding: var(--space-3) var(--space-4);\n background: var(--color-bg-subtle);\n border: 1px solid var(--color-border-default);\n border-radius: var(--radius);\n font-family: var(--font-mono);\n font-size: 0.875rem;\n line-height: 1.6;\n color: var(--color-text-primary);\n font-variant-numeric: normal;\n overflow-x: auto;\n white-space: pre;\n tab-size: 2;\n}\n.lintje-code--labelled .lintje-code__block { padding-right: var(--space-10); }\n.lintje-code__block.is-wrapped { white-space: pre-wrap; overflow-wrap: anywhere; }\n\n/* Line numbers are a CSS counter, so a copy is only the code. The line spans stay inline and\n carry their own newline: a block-level line would break twice and blank every second line. */\n.lintje-code__line { counter-increment: lintje-code-line; }\n.lintje-code--numbered .lintje-code__block { counter-reset: lintje-code-line; }\n.lintje-code--numbered .lintje-code__line::before {\n /* A screen reader reads the code, not a number before each line. */\n content: counter(lintje-code-line);\n content: counter(lintje-code-line) / '';\n display: inline-block;\n width: var(--space-6);\n padding-right: var(--space-3);\n text-align: right;\n color: var(--color-text-disabled);\n user-select: none;\n}\n", s = class extends r {
|
|
4
4
|
constructor(...e) {
|
|
5
5
|
super(...e), this.numbered = !1, this.wrap = !1;
|
|
6
6
|
}
|
|
@@ -33,25 +33,25 @@ var o = "/* No syntax colouring: the chart grammar is the only place colour carr
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
let e = this.body.split("\n");
|
|
36
|
-
return
|
|
37
|
-
class=${
|
|
36
|
+
return a`<div
|
|
37
|
+
class=${i({
|
|
38
38
|
"lintje-code": !0,
|
|
39
39
|
"lintje-code--numbered": this.numbered,
|
|
40
40
|
"lintje-code--labelled": !!this.language
|
|
41
41
|
})}
|
|
42
42
|
>
|
|
43
|
-
${this.language ?
|
|
43
|
+
${this.language ? a`<span class="lintje-code__language" aria-hidden="true">${this.language}</span>` : t}
|
|
44
44
|
<pre
|
|
45
|
-
class=${
|
|
45
|
+
class=${i({
|
|
46
46
|
"lintje-code__block": !0,
|
|
47
47
|
"is-wrapped": this.wrap
|
|
48
48
|
})}
|
|
49
49
|
role="region"
|
|
50
50
|
tabindex="0"
|
|
51
51
|
aria-label=${this.name}
|
|
52
|
-
><code>${this.numbered ? e.map((t, n) =>
|
|
52
|
+
><code>${this.numbered ? e.map((t, n) => a`<span class="lintje-code__line"
|
|
53
53
|
>${n < e.length - 1 ? `${t}\n` : t}</span
|
|
54
|
-
>`) : this.body ||
|
|
54
|
+
>`) : this.body || a`<slot></slot>`}</code></pre>
|
|
55
55
|
</div>`;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, Bt as t, Gt as n, Ht as r,
|
|
2
|
-
import { r as c, t as l } from "../chunks/input-
|
|
1
|
+
import { $ as e, Bt as t, Gt as n, Ht as r, Z as i, et as a, f as o, qt as s } from "../chunks/base-Bg-IFOPG.js";
|
|
2
|
+
import { r as c, t as l } from "../chunks/input-BtuNFSWk.js";
|
|
3
3
|
import { t as u } from "../chunks/debounce-JXnLMCcF.js";
|
|
4
4
|
//#region src/components/inputs/combobox/combobox.css?inline
|
|
5
5
|
var d = "/* The combobox: the text field with the chevron, and the list slotted into a `lintje-popover`. */\n:host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n/* Below 768 px: the touch height and the full width, as `stacked`. */\n@media (max-width: 767px) {\n :host {\n width: 100%;\n --h-control: var(--h-touch);\n }\n}\n\n/* --- */\n\n.lintje-combobox { position: relative; display: flex; align-items: center; }\n.lintje-combobox__control {\n width: 100%; height: var(--h-control);\n padding: 0 var(--space-10) 0 14px;\n border: 1px solid var(--color-border-field);\n border-radius: var(--radius);\n background: var(--color-bg-surface);\n color: var(--color-text-primary);\n font-size: 1rem;\n}\n.lintje-combobox__control::placeholder { color: var(--color-text-placeholder); opacity: 1; }\n.lintje-combobox__control.is-error { border: 2px solid var(--color-error); }\n/* Disabled wins over error: after it, the whole border back to 1 px strong. */\n.lintje-combobox__control:disabled {\n border: 1px solid var(--color-border-strong);\n background: var(--color-bg-subtle);\n color: var(--color-text-disabled);\n cursor: not-allowed;\n}\n/* The chevron is drawing, not a control: a press on it lands in the field. */\n.lintje-combobox__chevron {\n position: absolute; right: var(--space-3);\n color: var(--color-text-muted);\n pointer-events: none;\n}\n\n/* A dense list (`--h-option`): at most seven rows in view, then it scrolls. */\n.lintje-combobox__list {\n max-height: calc(7 * var(--h-option) + var(--space-2));\n overflow-y: auto;\n padding: var(--space-1) 0;\n font: var(--text-ui);\n}\n.lintje-combobox__option {\n display: flex; align-items: center;\n min-height: var(--h-option);\n padding: 0 14px;\n color: var(--color-text-primary);\n cursor: pointer;\n}\n.lintje-combobox__option:hover,\n.lintje-combobox__option.is-active { background: var(--color-bg-subtle); }\n/* The option the keys stand on: the fill alone is about 1.1:1, so the focus ring inside the row. */\n.lintje-combobox__option.is-active {\n outline: var(--focus-width) solid var(--color-focus);\n outline-offset: calc(var(--focus-width) * -1);\n}\n.lintje-combobox__option.is-selected { background: var(--color-bg-selected); font-weight: 700; }\n.lintje-combobox__match { font-weight: 700; }\n\n.lintje-combobox__status,\n.lintje-combobox__empty {\n padding: 10px 14px;\n font: var(--text-ui);\n color: var(--color-text-muted);\n}\n\n/* Forced colours drop fills: both rows take an edge inside the row, so none changes size. */\n@media (forced-colors: active) {\n .lintje-combobox__option.is-active { outline: 1px solid CanvasText; outline-offset: -1px; }\n .lintje-combobox__option.is-selected { outline: 2px solid Highlight; outline-offset: -2px; }\n}\n";
|
|
@@ -127,10 +127,10 @@ var h = "lintje-combobox-list", g = (e) => `lintje-combobox-option-${e}`, _ = cl
|
|
|
127
127
|
e.stopPropagation(), this.restore();
|
|
128
128
|
}
|
|
129
129
|
renderOption(e, t) {
|
|
130
|
-
let [r,
|
|
131
|
-
return
|
|
130
|
+
let [r, a, o] = p(e.label, this.text ?? ""), c = e.value === this.value;
|
|
131
|
+
return s`<li
|
|
132
132
|
id=${g(t)}
|
|
133
|
-
class=${
|
|
133
|
+
class=${i({
|
|
134
134
|
"lintje-combobox__option": !0,
|
|
135
135
|
"is-active": t === this.active,
|
|
136
136
|
"is-selected": c
|
|
@@ -139,16 +139,16 @@ var h = "lintje-combobox-list", g = (e) => `lintje-combobox-option-${e}`, _ = cl
|
|
|
139
139
|
aria-selected=${c ? "true" : "false"}
|
|
140
140
|
@click=${() => this.choose(e)}
|
|
141
141
|
>
|
|
142
|
-
${r}${
|
|
142
|
+
${r}${a ? s`<strong class="lintje-combobox__match">${a}</strong>` : n}${o}
|
|
143
143
|
</li>`;
|
|
144
144
|
}
|
|
145
145
|
renderList() {
|
|
146
146
|
if (!this.open) return n;
|
|
147
|
-
if (this.loading) return
|
|
147
|
+
if (this.loading) return s`<div class="lintje-combobox__status">
|
|
148
148
|
<lintje-spinner label=${this.loadingLabel}></lintje-spinner>
|
|
149
149
|
</div>`;
|
|
150
150
|
let e = this.visible;
|
|
151
|
-
return e.length ?
|
|
151
|
+
return e.length ? s`<ul
|
|
152
152
|
id=${h}
|
|
153
153
|
class="lintje-combobox__list"
|
|
154
154
|
role="listbox"
|
|
@@ -156,21 +156,21 @@ var h = "lintje-combobox-list", g = (e) => `lintje-combobox-option-${e}`, _ = cl
|
|
|
156
156
|
aria-labelledby=${this.labelId}
|
|
157
157
|
>
|
|
158
158
|
${e.map((e, t) => this.renderOption(e, t))}
|
|
159
|
-
</ul>` :
|
|
159
|
+
</ul>` : s`<p class="lintje-combobox__empty">${this.emptyLabel} “${this.text ?? ""}”</p>`;
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
162
|
let e = this.open && !this.disabled, t = e && !this.loading && this.visible.length > 0, r = e && !this.loading ? m(this.visible.length) : "";
|
|
163
|
-
return
|
|
163
|
+
return s`<div class="lintje-field">
|
|
164
164
|
${this.renderLabel(this.controlId)}
|
|
165
165
|
<div class="lintje-combobox">
|
|
166
166
|
<input
|
|
167
167
|
type="text"
|
|
168
168
|
id=${this.controlId}
|
|
169
|
-
class=${
|
|
169
|
+
class=${i({
|
|
170
170
|
"lintje-combobox__control": !0,
|
|
171
171
|
"is-error": !!this.error
|
|
172
172
|
})}
|
|
173
|
-
.value=${
|
|
173
|
+
.value=${o(this.text ?? this.chosenText)}
|
|
174
174
|
placeholder=${this.placeholder || n}
|
|
175
175
|
autocomplete="off"
|
|
176
176
|
role="combobox"
|
|
@@ -190,7 +190,7 @@ var h = "lintje-combobox-list", g = (e) => `lintje-combobox-option-${e}`, _ = cl
|
|
|
190
190
|
this.disabled || (this.open = !0);
|
|
191
191
|
}}
|
|
192
192
|
/>
|
|
193
|
-
${
|
|
193
|
+
${a("functioneel-delta-omlaag", {
|
|
194
194
|
size: 16,
|
|
195
195
|
className: "lintje-combobox__chevron"
|
|
196
196
|
})}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Bt as e, Gt as t, Ht as n, It as r,
|
|
2
|
-
import { n as c, t as l } from "../chunks/focus-trap-
|
|
1
|
+
import { Bt as e, Gt as t, Ht as n, It as r, Lt as i, Nt as a, qt as o, zt as s } from "../chunks/base-Bg-IFOPG.js";
|
|
2
|
+
import { n as c, t as l } from "../chunks/focus-trap-9BnE-xWv.js";
|
|
3
3
|
import { t as u } from "../chunks/confirm-dialog-D5EVGuil.js";
|
|
4
4
|
//#region src/components/overlays/confirm-dialog/confirm-dialog.ts
|
|
5
5
|
var d = class extends s {
|
|
6
6
|
constructor(...e) {
|
|
7
|
-
super(...e), this.open = !1, this.heading = "", this.confirmLabel = "Bevestigen", this.cancelLabel = "Annuleren", this.tone = "danger", this.busy = !1, this.#e = new
|
|
7
|
+
super(...e), this.open = !1, this.heading = "", this.confirmLabel = "Bevestigen", this.cancelLabel = "Annuleren", this.tone = "danger", this.busy = !1, this.#e = new i(this, r), this.#t = null, this.#n = new l(), this.#r = (e) => {
|
|
8
8
|
e.key === "Escape" && this.#n.isTopmost() && this.cancel("escape");
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -54,7 +54,7 @@ var d = class extends s {
|
|
|
54
54
|
super.updated(e), this.open && !this.#t ? this.#i() : !this.open && this.#t && this.#a();
|
|
55
55
|
}
|
|
56
56
|
async #i() {
|
|
57
|
-
this.#t =
|
|
57
|
+
this.#t = a(), document.addEventListener("keydown", this.#r);
|
|
58
58
|
let e = this.renderRoot.querySelector(".lintje-confirm-dialog");
|
|
59
59
|
if (!e) return;
|
|
60
60
|
this.#n.activate(e, { focus: !1 });
|
|
@@ -67,7 +67,7 @@ var d = class extends s {
|
|
|
67
67
|
render() {
|
|
68
68
|
if (!this.open) return t;
|
|
69
69
|
let e = this.#e.matches;
|
|
70
|
-
return
|
|
70
|
+
return o`<div class="lintje-confirm-dialog__scrim" @click=${() => this.cancel("scrim")}>
|
|
71
71
|
<div
|
|
72
72
|
class="lintje-confirm-dialog"
|
|
73
73
|
role="alertdialog"
|
|
@@ -84,7 +84,7 @@ var d = class extends s {
|
|
|
84
84
|
<slot></slot>
|
|
85
85
|
</div>
|
|
86
86
|
<div class="lintje-confirm-dialog__actions">
|
|
87
|
-
${this.actionLabel ?
|
|
87
|
+
${this.actionLabel ? o`<lintje-button
|
|
88
88
|
class="lintje-confirm-dialog__action"
|
|
89
89
|
variant="tertiary"
|
|
90
90
|
?block=${e}
|
|
@@ -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, qt as a, zt as o } from "../chunks/base-Bg-IFOPG.js";
|
|
2
2
|
import "./announcement.js";
|
|
3
3
|
import "./highlight.js";
|
|
4
4
|
//#region src/components/feedback/conflict-alert/conflict-alert.css?inline
|
|
@@ -16,7 +16,7 @@ function c(e, t, n = "dit item") {
|
|
|
16
16
|
}
|
|
17
17
|
var l = class extends o {
|
|
18
18
|
constructor(...e) {
|
|
19
|
-
super(...e), this.item = "dit item", this.changes = [], this.comparing = !1, this.#e = new
|
|
19
|
+
super(...e), this.item = "dit item", this.changes = [], this.comparing = !1, this.#e = new i(this, r);
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.styles = n(s);
|
|
@@ -44,8 +44,8 @@ var l = class extends o {
|
|
|
44
44
|
renderChanges() {
|
|
45
45
|
if (!this.comparing || !this.changes?.length) return t;
|
|
46
46
|
let e = this.who ? `de versie van ${this.who}` : "de andere versie";
|
|
47
|
-
return
|
|
48
|
-
${this.changes.map((t) =>
|
|
47
|
+
return a`<div class="lintje-conflict-alert__changes">
|
|
48
|
+
${this.changes.map((t) => a`<div class="lintje-conflict-alert__change">
|
|
49
49
|
<p class="lintje-conflict-alert__label">${t.label}</p>
|
|
50
50
|
<p class="lintje-conflict-alert__versions">
|
|
51
51
|
<lintje-highlight kind="removed" label="jouw versie">${t.mine}</lintje-highlight>
|
|
@@ -57,7 +57,7 @@ var l = class extends o {
|
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
59
|
let e = this.who || "de ander", t = this.busy || "", n = this.#e.matches;
|
|
60
|
-
return
|
|
60
|
+
return a`<div class="lintje-conflict-alert" tabindex="-1">
|
|
61
61
|
<lintje-announcement compact .data=${c(this.who, this.when, this.item)}>
|
|
62
62
|
<div slot="action" class="lintje-conflict-alert__actions">
|
|
63
63
|
<lintje-button
|
|
@@ -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/copy-button/copy-button.css?inline
|
|
@@ -75,13 +75,13 @@ var s = ":host { display: inline-flex; vertical-align: middle; }\n:host([hidden]
|
|
|
75
75
|
}
|
|
76
76
|
renderButton() {
|
|
77
77
|
let e = this.copied ? "functioneel-vinkje" : "functioneel-kopieren";
|
|
78
|
-
return this.iconOnly ?
|
|
78
|
+
return this.iconOnly ? i`<lintje-icon-button
|
|
79
79
|
variant=${this.variant === "flat" ? "flat" : "outlined"}
|
|
80
80
|
icon=${e}
|
|
81
81
|
label=${this.copied ? l : c}
|
|
82
82
|
?disabled=${this.unavailable}
|
|
83
83
|
@click=${this.copy}
|
|
84
|
-
></lintje-icon-button>` :
|
|
84
|
+
></lintje-icon-button>` : i`<lintje-button
|
|
85
85
|
variant=${this.variant === "primary" ? "primary" : "secondary"}
|
|
86
86
|
size=${this.size === "compact" ? "compact" : "regular"}
|
|
87
87
|
icon=${e}
|
|
@@ -89,13 +89,13 @@ var s = ":host { display: inline-flex; vertical-align: middle; }\n:host([hidden]
|
|
|
89
89
|
@click=${this.copy}
|
|
90
90
|
><span class="lintje-copy-button__labels"
|
|
91
91
|
><span
|
|
92
|
-
class=${
|
|
92
|
+
class=${r({
|
|
93
93
|
"lintje-copy-button__label": !0,
|
|
94
94
|
"is-hidden": this.copied
|
|
95
95
|
})}
|
|
96
96
|
>${c}</span
|
|
97
97
|
><span
|
|
98
|
-
class=${
|
|
98
|
+
class=${r({
|
|
99
99
|
"lintje-copy-button__label": !0,
|
|
100
100
|
"is-hidden": !this.copied
|
|
101
101
|
})}
|
|
@@ -105,9 +105,9 @@ var s = ":host { display: inline-flex; vertical-align: middle; }\n:host([hidden]
|
|
|
105
105
|
>`;
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return
|
|
108
|
+
return i`${this.renderButton()}<span class="visually-hidden" role="status"
|
|
109
109
|
>${this.status || t}</span
|
|
110
|
-
>${this.failed ?
|
|
110
|
+
>${this.failed ? i`<lintje-toast kind="error" @lintje-close=${this.onToastClose}>${u}</lintje-toast>` : t}`;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
e("lintje-copy-button", d);
|