lintje 0.2.0 → 0.4.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/README.md +2 -2
- package/dist-elements/actions.js +1 -1
- package/dist-elements/chunks/{base-Bg-IFOPG.js → base-DRGvkF-r.js} +484 -309
- package/dist-elements/chunks/{controls-B1455oPG.js → controls-_4ac1Lpz.js} +7 -1
- package/dist-elements/chunks/{date-format-mHtZyBys.js → date-format-DxP9yfDp.js} +1 -1
- package/dist-elements/chunks/dialog-B7aRBtjy.js +28 -0
- package/dist-elements/chunks/{disclosure-BXTX04gM.js → disclosure-D39vAR5q.js} +1 -1
- package/dist-elements/chunks/{disclosure-CMXhX-Vb.js → disclosure-DirPLy2E.js} +6 -6
- package/dist-elements/chunks/download-C68kcwPj.js +206 -0
- package/dist-elements/chunks/{focus-trap-9BnE-xWv.js → focus-trap-Dv8zu64A.js} +1 -1
- package/dist-elements/chunks/input-BGMLam-O.js +195 -0
- package/dist-elements/chunks/input-lQTmOMOz.js +4 -0
- package/dist-elements/chunks/{player-DXOZEyEy.js → player-BApadXr8.js} +27 -27
- package/dist-elements/chunks/{sentence-BI3lwEuT.js → sentence-0wO85ZdJ.js} +3 -3
- package/dist-elements/chunks/{stagger-qGD3wmhg.js → stagger-BB_gcxBI.js} +88 -74
- package/dist-elements/content.js +1 -0
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +8858 -7715
- package/dist-elements/data-types.json +6900 -0
- package/dist-elements/feedback.js +2 -1
- package/dist-elements/frame.js +0 -2
- package/dist-elements/guides/dashboard.md +8 -0
- package/dist-elements/guides/events.md +4 -5
- package/dist-elements/guides/loading.md +10 -9
- package/dist-elements/guides/page-contents.md +110 -0
- package/dist-elements/guides/start.md +12 -0
- package/dist-elements/inputs.js +3 -1
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +8562 -7138
- package/dist-elements/overlays.js +2 -2
- package/dist-elements/skills/lintje/SKILL.md +1 -1
- package/dist-elements/tables.js +1 -1
- package/dist-elements/tag/activity-log.js +15 -15
- package/dist-elements/tag/ai-label.js +10 -10
- package/dist-elements/tag/announcement.js +36 -76
- package/dist-elements/tag/app-search.js +49 -49
- package/dist-elements/tag/audio-player.js +57 -57
- package/dist-elements/tag/badge.d.ts +1 -1
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +15 -15
- package/dist-elements/tag/button.d.ts +1 -1
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +12 -12
- package/dist-elements/tag/card.js +39 -44
- package/dist-elements/tag/chart.js +1357 -787
- package/dist-elements/tag/chat-answer.js +49 -49
- package/dist-elements/tag/chat-composer.js +75 -71
- package/dist-elements/tag/chat-message.js +8 -8
- package/dist-elements/tag/chat-strip.js +22 -22
- package/dist-elements/tag/chat-suggestions.js +12 -12
- package/dist-elements/tag/chat.js +56 -56
- package/dist-elements/tag/checkbox-group.d.ts +1 -0
- package/dist-elements/tag/checkbox-group.js +60 -0
- package/dist-elements/tag/checkbox.js +9 -8
- package/dist-elements/tag/code.js +9 -9
- package/dist-elements/tag/combobox.js +19 -18
- package/dist-elements/tag/conflict-alert.js +12 -12
- package/dist-elements/tag/copy-button.js +14 -14
- package/dist-elements/tag/data-table.js +880 -532
- package/dist-elements/tag/date-input.js +30 -29
- package/dist-elements/tag/date-range.js +39 -38
- package/dist-elements/tag/description-list.js +29 -32
- package/dist-elements/tag/dialog.d.ts +1 -0
- package/dist-elements/tag/dialog.js +144 -0
- package/dist-elements/tag/document-viewer.js +23 -23
- package/dist-elements/tag/drawer.js +28 -32
- package/dist-elements/tag/empty-state.js +19 -30
- package/dist-elements/tag/error-page.d.ts +1 -0
- package/dist-elements/tag/error-page.js +109 -0
- package/dist-elements/tag/error-summary.js +10 -10
- package/dist-elements/tag/expander.js +8 -8
- package/dist-elements/tag/explainer.js +11 -11
- package/dist-elements/tag/field.js +5 -5
- package/dist-elements/tag/file-upload.js +35 -34
- package/dist-elements/tag/filter-bar.js +56 -56
- package/dist-elements/tag/filter-sheet.js +11 -11
- package/dist-elements/tag/filter-zone.js +31 -31
- package/dist-elements/tag/find.d.ts +1 -0
- package/dist-elements/tag/find.js +128 -0
- package/dist-elements/tag/footer.js +21 -21
- package/dist-elements/tag/form-actions.js +29 -25
- package/dist-elements/tag/form-section.js +6 -6
- package/dist-elements/tag/form.js +12 -12
- package/dist-elements/tag/gallery.js +14 -14
- package/dist-elements/tag/grid-item.d.ts +1 -1
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.d.ts +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +12 -12
- package/dist-elements/tag/highlight.js +5 -5
- package/dist-elements/tag/icon-button.d.ts +1 -1
- package/dist-elements/tag/icon-button.js +1 -1
- package/dist-elements/tag/icon.d.ts +1 -1
- package/dist-elements/tag/icon.js +1 -1
- package/dist-elements/tag/job-list.js +22 -44
- package/dist-elements/tag/kpi-row.js +12 -10
- package/dist-elements/tag/kpi.js +149 -140
- package/dist-elements/tag/level-meter.js +11 -11
- package/dist-elements/tag/list.js +55 -55
- package/dist-elements/tag/logo.js +30 -30
- package/dist-elements/tag/map.js +702 -671
- package/dist-elements/tag/menu-button.js +70 -69
- package/dist-elements/tag/modal.js +28 -37
- package/dist-elements/tag/multiselect.js +35 -34
- package/dist-elements/tag/note.js +5 -5
- package/dist-elements/tag/notifications.js +36 -36
- package/dist-elements/tag/number-input.js +13 -12
- package/dist-elements/tag/page-header.js +140 -37
- package/dist-elements/tag/pagination.js +54 -49
- package/dist-elements/tag/popover.d.ts +1 -1
- package/dist-elements/tag/popover.js +1 -1
- package/dist-elements/tag/progress-bar.d.ts +1 -1
- package/dist-elements/tag/progress-bar.js +1 -1
- package/dist-elements/tag/prose.js +6 -6
- package/dist-elements/tag/qr-code.js +7 -7
- package/dist-elements/tag/radio-group.js +13 -12
- package/dist-elements/tag/range.js +23 -22
- package/dist-elements/tag/recording-status.js +14 -14
- package/dist-elements/tag/repeater.js +10 -10
- package/dist-elements/tag/segmented.js +14 -13
- package/dist-elements/tag/select.js +11 -10
- package/dist-elements/tag/shell.js +356 -339
- package/dist-elements/tag/skeleton.d.ts +1 -1
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.js +16 -15
- package/dist-elements/tag/sortable-list.js +14 -14
- package/dist-elements/tag/spinner.d.ts +1 -1
- package/dist-elements/tag/spinner.js +1 -1
- package/dist-elements/tag/split-pane.js +12 -12
- package/dist-elements/tag/status-dot.d.ts +1 -1
- package/dist-elements/tag/status-dot.js +1 -1
- package/dist-elements/tag/stepper.js +21 -21
- package/dist-elements/tag/streaming-text.js +13 -13
- package/dist-elements/tag/sub-nav.js +39 -38
- package/dist-elements/tag/tabs.js +38 -38
- package/dist-elements/tag/tag-input.js +20 -19
- package/dist-elements/tag/text-editor.js +25 -24
- package/dist-elements/tag/text-input.js +15 -14
- package/dist-elements/tag/textarea.js +15 -14
- package/dist-elements/tag/tile.d.ts +1 -1
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +20 -19
- package/dist-elements/tag/toast.js +32 -23
- package/dist-elements/tag/toggle.js +9 -8
- package/dist-elements/tag/toggletip.js +27 -27
- package/dist-elements/tag/token-value.d.ts +1 -0
- package/dist-elements/tag/token-value.js +75 -0
- package/dist-elements/tag/tooltip.d.ts +1 -1
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +48 -48
- package/dist-elements/tag/translator.js +13 -13
- package/dist-elements/tag/tree-view.js +13 -13
- package/dist-elements/tag/user-menu.js +37 -37
- package/dist-elements/tag/video-player.js +21 -21
- package/dist-elements/tokens.css +120 -96
- package/dist-elements/tokens.json +1244 -0
- package/dist-elements/types/bundle/actions.d.ts +3 -3
- package/dist-elements/types/bundle/content.d.ts +1 -0
- package/dist-elements/types/bundle/feedback.d.ts +6 -5
- package/dist-elements/types/bundle/frame.d.ts +0 -2
- package/dist-elements/types/bundle/index.d.ts +0 -10
- package/dist-elements/types/bundle/inputs.d.ts +2 -0
- package/dist-elements/types/bundle/layout.d.ts +3 -3
- package/dist-elements/types/bundle/overlays.d.ts +3 -3
- package/dist-elements/types/categories.d.ts +4 -0
- package/dist-elements/types/{primitives → components/actions}/button/button.d.ts +13 -10
- package/dist-elements/types/components/actions/copy-button/copy-button.d.ts +8 -9
- package/dist-elements/types/{icons → components/actions}/icon/icon.d.ts +4 -5
- package/dist-elements/types/{primitives → components/actions}/icon-button/icon-button.d.ts +8 -6
- package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +16 -18
- package/dist-elements/types/components/actions/qr-code/qr-code.d.ts +10 -10
- package/dist-elements/types/components/charts/chart/chart.d.ts +6 -5
- package/dist-elements/types/components/charts/explainer/explainer.d.ts +1 -1
- package/dist-elements/types/components/charts/kpi/kpi.d.ts +19 -11
- package/dist-elements/types/components/charts/kpi-row/kpi-row.d.ts +2 -8
- package/dist-elements/types/components/charts/note/note.d.ts +2 -2
- package/dist-elements/types/components/chat/chat/chat.d.ts +9 -11
- package/dist-elements/types/components/chat/chat-answer/chat-answer.d.ts +10 -11
- package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +10 -12
- package/dist-elements/types/components/chat/chat-message/chat-message.d.ts +7 -8
- package/dist-elements/types/components/chat/chat-strip/chat-strip.d.ts +5 -5
- package/dist-elements/types/components/chat/chat-suggestions/chat-suggestions.d.ts +9 -10
- package/dist-elements/types/components/content/audio-player/audio-player.d.ts +15 -17
- package/dist-elements/types/components/content/code/code.d.ts +3 -4
- package/dist-elements/types/components/content/document-viewer/document-viewer.d.ts +10 -11
- package/dist-elements/types/components/content/gallery/gallery.d.ts +5 -4
- package/dist-elements/types/components/content/highlight/highlight.d.ts +5 -4
- package/dist-elements/types/components/content/prose/prose.d.ts +3 -4
- package/dist-elements/types/components/content/token-value/token-value.d.ts +42 -0
- package/dist-elements/types/components/content/transcript/transcript.d.ts +15 -28
- package/dist-elements/types/components/content/translator/translator.d.ts +12 -16
- package/dist-elements/types/components/content/video-player/video-player.d.ts +12 -14
- package/dist-elements/types/components/feedback/ai-label/ai-label.d.ts +3 -4
- package/dist-elements/types/components/feedback/announcement/announcement.d.ts +5 -9
- package/dist-elements/types/{primitives → components/feedback}/badge/badge.d.ts +10 -6
- package/dist-elements/types/components/feedback/conflict-alert/conflict-alert.d.ts +4 -5
- package/dist-elements/types/components/feedback/empty-state/empty-state.d.ts +5 -8
- package/dist-elements/types/components/feedback/error-page/error-page.d.ts +52 -0
- package/dist-elements/types/components/feedback/job-list/job-list.d.ts +9 -12
- package/dist-elements/types/components/feedback/level-meter/level-meter.d.ts +4 -6
- package/dist-elements/types/{primitives → components/feedback}/progress-bar/progress-bar.d.ts +9 -7
- package/dist-elements/types/components/feedback/recording-status/recording-status.d.ts +5 -6
- package/dist-elements/types/{primitives → components/feedback}/skeleton/skeleton.d.ts +2 -2
- package/dist-elements/types/{primitives → components/feedback}/spinner/spinner.d.ts +2 -3
- package/dist-elements/types/{primitives → components/feedback}/status-dot/status-dot.d.ts +5 -6
- package/dist-elements/types/components/feedback/streaming-text/streaming-text.d.ts +12 -9
- package/dist-elements/types/components/feedback/toast/toast.d.ts +8 -9
- package/dist-elements/types/components/filters/filter-bar/filter-bar.d.ts +9 -4
- package/dist-elements/types/components/filters/filter-sheet/filter-sheet.d.ts +7 -7
- package/dist-elements/types/components/filters/filter-zone/filter-zone.d.ts +4 -4
- package/dist-elements/types/components/forms/error-summary/error-summary.d.ts +6 -7
- package/dist-elements/types/components/forms/form/form.d.ts +5 -5
- package/dist-elements/types/components/forms/form-actions/form-actions.d.ts +10 -8
- package/dist-elements/types/components/forms/form-section/form-section.d.ts +6 -5
- package/dist-elements/types/components/forms/repeater/repeater.d.ts +15 -9
- package/dist-elements/types/components/forms/stepper/stepper.d.ts +6 -5
- package/dist-elements/types/components/frame/app-search/app-search.d.ts +7 -8
- package/dist-elements/types/components/frame/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/dist-elements/types/components/frame/footer/footer.d.ts +3 -2
- package/dist-elements/types/components/frame/hero/hero.d.ts +7 -9
- package/dist-elements/types/components/frame/notifications/notifications.d.ts +7 -11
- package/dist-elements/types/components/frame/page-header/page-header.d.ts +13 -16
- package/dist-elements/types/components/frame/shell/shell.d.ts +15 -14
- package/dist-elements/types/components/frame/sub-nav/sub-nav.d.ts +10 -6
- package/dist-elements/types/components/frame/user-menu/user-menu.d.ts +13 -12
- package/dist-elements/types/components/index.d.ts +51 -12
- package/dist-elements/types/components/inputs/checkbox/checkbox.d.ts +4 -4
- package/dist-elements/types/components/inputs/checkbox-group/checkbox-group.d.ts +33 -0
- package/dist-elements/types/components/inputs/combobox/combobox.d.ts +14 -8
- package/dist-elements/types/components/inputs/date-input/date-input.d.ts +6 -6
- package/dist-elements/types/components/inputs/date-range/date-range.d.ts +13 -8
- package/dist-elements/types/components/inputs/field/field.d.ts +5 -3
- package/dist-elements/types/components/inputs/file-upload/file-upload.d.ts +8 -10
- package/dist-elements/types/components/inputs/find/find.d.ts +51 -0
- package/dist-elements/types/components/inputs/multiselect/multiselect.d.ts +4 -6
- package/dist-elements/types/components/inputs/number-input/number-input.d.ts +8 -7
- package/dist-elements/types/components/inputs/radio-group/radio-group.d.ts +2 -4
- package/dist-elements/types/components/inputs/range/range.d.ts +5 -6
- package/dist-elements/types/components/inputs/segmented/segmented.d.ts +7 -4
- package/dist-elements/types/components/inputs/select/select.d.ts +6 -3
- package/dist-elements/types/components/inputs/shared/input.d.ts +1 -1
- package/dist-elements/types/components/inputs/slot-picker/slot-picker.d.ts +6 -5
- package/dist-elements/types/components/inputs/tag-input/tag-input.d.ts +8 -6
- package/dist-elements/types/components/inputs/text-editor/text-editor.d.ts +8 -8
- package/dist-elements/types/components/inputs/text-input/text-input.d.ts +12 -7
- package/dist-elements/types/components/inputs/textarea/textarea.d.ts +12 -11
- package/dist-elements/types/components/inputs/time-input/time-input.d.ts +8 -9
- package/dist-elements/types/components/inputs/toggle/toggle.d.ts +3 -1
- package/dist-elements/types/components/layout/expander/expander.d.ts +10 -11
- package/dist-elements/types/{primitives → components/layout}/grid/grid.d.ts +4 -4
- package/dist-elements/types/{primitives → components/layout}/grid-item/grid-item.d.ts +2 -2
- package/dist-elements/types/components/layout/split-pane/split-pane.d.ts +6 -6
- package/dist-elements/types/components/layout/tabs/tabs.d.ts +12 -10
- package/dist-elements/types/{primitives → components/layout}/tile/tile.d.ts +22 -10
- package/dist-elements/types/components/map/map/map.d.ts +12 -11
- package/dist-elements/types/components/overlays/dialog/dialog.d.ts +49 -0
- package/dist-elements/types/components/overlays/drawer/drawer.d.ts +6 -5
- package/dist-elements/types/components/overlays/modal/modal.d.ts +9 -14
- package/dist-elements/types/{primitives → components/overlays}/popover/popover.d.ts +7 -6
- package/dist-elements/types/components/overlays/toggletip/toggletip.d.ts +4 -8
- package/dist-elements/types/{primitives → components/overlays}/tooltip/tooltip.d.ts +8 -8
- package/dist-elements/types/components/shared/announcement-block.d.ts +38 -0
- package/dist-elements/types/components/shared/charts/index.d.ts +5 -1
- package/dist-elements/types/components/shared/charts/kinds.d.ts +92 -0
- package/dist-elements/types/components/shared/charts/line-chart/line-chart.d.ts +2 -2
- package/dist-elements/types/components/shared/charts/map-chart/leaflet.d.ts +5 -0
- package/dist-elements/types/components/shared/charts/map-chart/map-chart.d.ts +1 -1
- package/dist-elements/types/components/shared/charts/radar-chart/radar-chart.d.ts +31 -0
- package/dist-elements/types/components/shared/charts/shared/axes.d.ts +3 -1
- package/dist-elements/types/components/shared/charts/shared/chart-states.d.ts +8 -19
- package/dist-elements/types/components/shared/charts/shared/controller.d.ts +12 -0
- package/dist-elements/types/components/shared/charts/shared/types.d.ts +62 -0
- package/dist-elements/types/components/shared/charts/stacked-area-chart/stacked-area-chart.d.ts +13 -0
- package/dist-elements/types/components/shared/content-tile.d.ts +1 -1
- package/dist-elements/types/components/{forms/form → shared}/controls.d.ts +3 -2
- package/dist-elements/types/components/shared/dialog.d.ts +9 -0
- package/dist-elements/types/components/shared/empty-state-block.d.ts +26 -0
- package/dist-elements/types/components/shared/overflow.d.ts +58 -0
- package/dist-elements/types/components/shared/tone.d.ts +18 -0
- package/dist-elements/types/components/tables/activity-log/activity-log.d.ts +3 -4
- package/dist-elements/types/components/tables/card/card.d.ts +17 -23
- package/dist-elements/types/components/tables/card-list/card-list.d.ts +9 -11
- package/dist-elements/types/components/tables/data-table/actions.d.ts +1 -1
- package/dist-elements/types/components/tables/data-table/data-table.d.ts +88 -19
- package/dist-elements/types/components/tables/data-table/editing.d.ts +1 -1
- package/dist-elements/types/components/tables/data-table/filters.d.ts +15 -6
- package/dist-elements/types/components/tables/description-list/description-list.d.ts +13 -12
- package/dist-elements/types/components/tables/list/list.d.ts +13 -24
- package/dist-elements/types/components/tables/pagination/pagination.d.ts +12 -11
- package/dist-elements/types/components/tables/sortable-list/sortable-list.d.ts +5 -6
- package/dist-elements/types/components/tables/tree-view/tree-view.d.ts +5 -5
- package/dist-elements/types/core/focus.d.ts +1 -1
- package/dist-elements/types/core/media.d.ts +2 -2
- package/dist-elements/types/core/motion.d.ts +5 -0
- package/dist-elements/types/core/print.d.ts +15 -0
- package/dist-elements/types/core/shortcuts.d.ts +2 -2
- package/dist-elements/types/icons/register.d.ts +1 -1
- package/dist-elements/types/types.d.ts +70 -10
- package/dist-icons/functioneel-kolommen.svg +1 -0
- package/dist-icons/functioneel-trechter.svg +1 -0
- package/package.json +1 -1
- package/dist-elements/chunks/confirm-dialog-D5EVGuil.js +0 -4
- package/dist-elements/chunks/download-y528pIHP.js +0 -230
- package/dist-elements/chunks/input-BtuNFSWk.js +0 -195
- package/dist-elements/tag/confirm-dialog.d.ts +0 -1
- package/dist-elements/tag/confirm-dialog.js +0 -118
- package/dist-elements/tag/session-expiry.d.ts +0 -1
- package/dist-elements/tag/session-expiry.js +0 -184
- package/dist-elements/tag/shortcuts.d.ts +0 -1
- package/dist-elements/tag/shortcuts.js +0 -104
- package/dist-elements/types/components/frame/session-expiry/session-expiry.d.ts +0 -55
- package/dist-elements/types/components/frame/shortcuts/shortcuts.d.ts +0 -41
- package/dist-elements/types/components/overlays/confirm-dialog/confirm-dialog.d.ts +0 -41
- package/dist-elements/types/primitives/index.d.ts +0 -33
- /package/dist-elements/types/components/content/{audio-player → shared}/playback.d.ts +0 -0
- /package/dist-elements/types/components/content/{audio-player → shared}/player.d.ts +0 -0
- /package/dist-elements/types/components/{inputs/date-input → shared}/date-format.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/grid-item-element.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/length.d.ts +0 -0
- /package/dist-elements/types/{primitives → components}/shared/place.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as l, d as u, i as d, l as f, n as p, r as m, u as h } from "../chunks/controls-
|
|
1
|
+
import { Gt as e, Jt as t, Kt as n, Q as r, Yt as i, Z as a, Zt as o, en as s, nn as c } from "../chunks/base-DRGvkF-r.js";
|
|
2
|
+
import { c as l, d as u, i as d, l as f, n as p, r as m, u as h } from "../chunks/controls-_4ac1Lpz.js";
|
|
3
3
|
import "./error-summary.js";
|
|
4
4
|
import "./form-actions.js";
|
|
5
5
|
//#region src/components/forms/form/form.css?inline
|
|
@@ -28,9 +28,9 @@ function S(e, t, n = Date.now()) {
|
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
var C = class extends
|
|
32
|
-
constructor(...
|
|
33
|
-
super(...
|
|
31
|
+
var C = class extends t {
|
|
32
|
+
constructor(...t) {
|
|
33
|
+
super(...t), this.values = {}, this.busy = !1, this.draftTtl = 24, this.dirty = !1, this.phase = "", this.#e = {}, this.#t = !1, this.#n = !1, this.#r = null, this.#i = !1, this.#a = null, this.#o = new MutationObserver((e) => {
|
|
34
34
|
let t = [], n = [];
|
|
35
35
|
for (let r of e) {
|
|
36
36
|
for (let e of r.addedNodes) t.push(...f(e));
|
|
@@ -42,7 +42,7 @@ var C = class extends c {
|
|
|
42
42
|
let t = d(e);
|
|
43
43
|
!this.contains(e) && !r.has(t) && this.forget(t);
|
|
44
44
|
}
|
|
45
|
-
}), this.#s = new
|
|
45
|
+
}), this.#s = new n(this, e), this.#c = new p("disabled"), this.#l = new p("stacked"), this.#u = (e) => {
|
|
46
46
|
let t = e.target;
|
|
47
47
|
if (t === this) return;
|
|
48
48
|
let n = d(t);
|
|
@@ -68,7 +68,7 @@ var C = class extends c {
|
|
|
68
68
|
}, this.#h = "", this.#E = [], this.#D = !1, this.#O = !1;
|
|
69
69
|
}
|
|
70
70
|
static {
|
|
71
|
-
this.styles =
|
|
71
|
+
this.styles = o(g);
|
|
72
72
|
}
|
|
73
73
|
static {
|
|
74
74
|
this.properties = {
|
|
@@ -243,7 +243,7 @@ var C = class extends c {
|
|
|
243
243
|
return t;
|
|
244
244
|
}
|
|
245
245
|
willUpdate(e) {
|
|
246
|
-
super.willUpdate(e), this.#n || (this.#n = !0, this.#g(), this.#b(Object.keys(this.#e).length ? "dirty" : "")), e.has("savedAt") && this.hasUpdated && this.savedAt && this.phase !== "saved" && this.#y(), e.has("errors") && (this.#E = this.#T()), e.has("busy") && this.busy && (this.#a =
|
|
246
|
+
super.willUpdate(e), this.#n || (this.#n = !0, this.#g(), this.#b(Object.keys(this.#e).length ? "dirty" : "")), e.has("savedAt") && this.hasUpdated && this.savedAt && this.phase !== "saved" && this.#y(), e.has("errors") && (this.#E = this.#T()), e.has("busy") && this.busy && (this.#a = r(this) ? a() : null), e.has("dirty") && (this.dirty ? window.addEventListener("beforeunload", this.#m) : window.removeEventListener("beforeunload", this.#m));
|
|
247
247
|
}
|
|
248
248
|
#E;
|
|
249
249
|
#D;
|
|
@@ -260,7 +260,7 @@ var C = class extends c {
|
|
|
260
260
|
#A() {
|
|
261
261
|
let e = this.#a;
|
|
262
262
|
this.#a = null, e && requestAnimationFrame(() => {
|
|
263
|
-
let t =
|
|
263
|
+
let t = a();
|
|
264
264
|
t && t !== document.body || e.isConnected && e.focus();
|
|
265
265
|
});
|
|
266
266
|
}
|
|
@@ -275,10 +275,10 @@ var C = class extends c {
|
|
|
275
275
|
for (let n of this.querySelectorAll("lintje-form-actions")) n.state = e, n.savedAt = t;
|
|
276
276
|
}
|
|
277
277
|
render() {
|
|
278
|
-
return
|
|
278
|
+
return c`<form
|
|
279
279
|
class="lintje-form"
|
|
280
280
|
novalidate
|
|
281
|
-
aria-busy=${this.busy ? "true" :
|
|
281
|
+
aria-busy=${this.busy ? "true" : s}
|
|
282
282
|
@submit=${(e) => {
|
|
283
283
|
e.preventDefault(), this.submit();
|
|
284
284
|
}}
|
|
@@ -297,6 +297,6 @@ var C = class extends c {
|
|
|
297
297
|
</form>`;
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
|
-
|
|
300
|
+
i("lintje-form", C);
|
|
301
301
|
//#endregion
|
|
302
302
|
export { _ as DRAFT_PREFIX, C as LintjeForm, S as readDraft };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as e, Yt as t, Zt as n, en as r, nn as i, st as a } from "../chunks/base-DRGvkF-r.js";
|
|
2
2
|
//#region src/components/content/gallery/gallery.css?inline
|
|
3
|
-
var o = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-gallery { display: flex; flex-direction: column; gap: var(--space-3); }\n\n.lintje-gallery__figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }\n/* A screen whole, on the subtle surface: a screenshot is never cropped. */\n.lintje-gallery__image {\n display: block;\n width: 100%;\n aspect-ratio: 16 / 10;\n object-fit: contain;\n background: var(--color-bg-subtle);\n border: 1px solid var(--color-border-default);\n box-sizing: border-box;\n}\n.lintje-gallery__caption { font: var(--text-small); color: var(--color-text-muted); }\n\n.lintje-gallery__thumbs {\n list-style: none; margin: 0; padding: 0;\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(var(--w-gallery-thumb), 1fr));\n gap: var(--space-2);\n}\n.lintje-gallery__thumb {\n display: block;\n width: 100%;\n padding: 0;\n border: 1px solid var(--color-border-default);\n background: var(--color-bg-subtle);\n cursor: pointer;\n}\n.lintje-gallery__thumb:hover { border-color: var(--color-border-heavy); }\n/* The chosen one carries the selected edge, and aria-current says it in words. */\n.lintje-gallery__thumb.is-selected { outline: 2px solid var(--color-accent-line); outline-offset: -2px; }\n.lintje-gallery__thumb:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }\n.lintje-gallery__thumb-image {\n display: block;\n width: 100%;\n aspect-ratio: 16 / 10;\n object-fit: cover;\n object-position: top left;\n}\n\n@media (forced-colors: active) {\n .lintje-gallery__thumb.is-selected { outline-color: Highlight; }\n}\n", s = class extends
|
|
3
|
+
var o = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-gallery { display: flex; flex-direction: column; gap: var(--space-3); }\n\n.lintje-gallery__figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }\n/* A screen whole, on the subtle surface: a screenshot is never cropped. */\n.lintje-gallery__image {\n display: block;\n width: 100%;\n aspect-ratio: 16 / 10;\n object-fit: contain;\n background: var(--color-bg-subtle);\n border: 1px solid var(--color-border-default);\n box-sizing: border-box;\n}\n.lintje-gallery__caption { font: var(--text-small); color: var(--color-text-muted); }\n\n.lintje-gallery__thumbs {\n list-style: none; margin: 0; padding: 0;\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(var(--w-gallery-thumb), 1fr));\n gap: var(--space-2);\n}\n.lintje-gallery__thumb {\n display: block;\n width: 100%;\n padding: 0;\n border: 1px solid var(--color-border-default);\n background: var(--color-bg-subtle);\n cursor: pointer;\n}\n.lintje-gallery__thumb:hover { border-color: var(--color-border-heavy); }\n/* The chosen one carries the selected edge, and aria-current says it in words. */\n.lintje-gallery__thumb.is-selected { outline: 2px solid var(--color-accent-line); outline-offset: -2px; }\n.lintje-gallery__thumb:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }\n.lintje-gallery__thumb-image {\n display: block;\n width: 100%;\n aspect-ratio: 16 / 10;\n object-fit: cover;\n object-position: top left;\n}\n\n@media (forced-colors: active) {\n .lintje-gallery__thumb.is-selected { outline-color: Highlight; }\n}\n", s = class extends e {
|
|
4
4
|
constructor(...e) {
|
|
5
5
|
super(...e), this.items = [], this.selected = 0, this.label = "Afbeeldingen", this.spoken = "";
|
|
6
6
|
}
|
|
@@ -26,35 +26,35 @@ var o = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
let e = this.items;
|
|
29
|
-
if (!e.length) return
|
|
30
|
-
let
|
|
29
|
+
if (!e.length) return r;
|
|
30
|
+
let t = this.shown, n = e[t];
|
|
31
31
|
return i`<div class="lintje-gallery">
|
|
32
32
|
<figure class="lintje-gallery__figure">
|
|
33
|
-
<img class="lintje-gallery__image" src=${
|
|
34
|
-
${
|
|
33
|
+
<img class="lintje-gallery__image" src=${n.src} alt=${n.alt} />
|
|
34
|
+
${n.caption ? i`<figcaption class="lintje-gallery__caption">${n.caption}</figcaption>` : r}
|
|
35
35
|
</figure>
|
|
36
36
|
${e.length > 1 ? i`<ul class="lintje-gallery__thumbs" aria-label=${this.label}>
|
|
37
|
-
${e.map((
|
|
37
|
+
${e.map((n, o) => i`<li>
|
|
38
38
|
<button
|
|
39
39
|
type="button"
|
|
40
|
-
class=${
|
|
40
|
+
class=${a({
|
|
41
41
|
"lintje-gallery__thumb": !0,
|
|
42
|
-
"is-selected": o ===
|
|
42
|
+
"is-selected": o === t
|
|
43
43
|
})}
|
|
44
|
-
aria-current=${o ===
|
|
44
|
+
aria-current=${o === t ? "true" : r}
|
|
45
45
|
@click=${() => this.choose(o)}
|
|
46
46
|
>
|
|
47
|
-
<img class="lintje-gallery__thumb-image" src=${
|
|
47
|
+
<img class="lintje-gallery__thumb-image" src=${n.src} alt="" />
|
|
48
48
|
<span class="visually-hidden"
|
|
49
|
-
>Afbeelding ${o + 1} van ${e.length}: ${
|
|
49
|
+
>Afbeelding ${o + 1} van ${e.length}: ${n.caption || n.alt}</span
|
|
50
50
|
>
|
|
51
51
|
</button>
|
|
52
52
|
</li>`)}
|
|
53
53
|
</ul>
|
|
54
|
-
<span class="visually-hidden" role="status">${this.spoken}</span>` :
|
|
54
|
+
<span class="visually-hidden" role="status">${this.spoken}</span>` : r}
|
|
55
55
|
</div>`;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
t("lintje-gallery", s);
|
|
59
59
|
//#endregion
|
|
60
60
|
export { s as LintjeGallery };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../types/
|
|
1
|
+
export * from '../types/components/layout/grid-item/grid-item.js'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { S as LintjeGridItem } from "../chunks/base-DRGvkF-r.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../types/
|
|
1
|
+
export * from '../types/components/layout/grid/grid.js'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { C as LintjeGrid } from "../chunks/base-DRGvkF-r.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, Jt as t, Yt as n, Zt as r, en as i, lt as a, nn as o, st as s, ut as c } from "../chunks/base-DRGvkF-r.js";
|
|
2
2
|
//#region src/components/frame/hero/hero.css?inline
|
|
3
|
-
var l = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* The side padding is the content column's, taken of the full width the band stands in. */\n.lintje-hero__band {\n padding: calc(var(--space-10) + var(--space-4)) calc(var(--page-pad-x) + var(--page-gutter))\n calc(var(--space-10) + var(--space-2));\n background: var(--color-hero-bg);\n color: var(--color-hero-text);\n}\n/* With an aside the text keeps its column and the picture takes the room to its right. */\n.lintje-hero.has-aside .lintje-hero__band {\n display: flex;\n align-items: center;\n gap: var(--space-10);\n}\n.lintje-hero.has-overlap .lintje-hero__band {\n padding-bottom: calc(var(--space-10) + var(--space-2) + var(--hero-overlap));\n}\n.lintje-hero__band :focus-visible { outline-color: var(--color-hero-focus); }\n\n.lintje-hero__body {\n flex: 1 1 auto;\n min-width: 0;\n display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6);\n}\n\n.lintje-hero__aside {\n flex: 0 1 var(--w-hero-aside);\n min-width: 0;\n display: flex; justify-content: flex-end;\n}\n.lintje-hero__aside ::slotted(*) { max-width: 100%; }\n/* A picture keeps its proportions when the column narrows it. */\n.lintje-hero__aside ::slotted(img) { height: auto; }\n.lintje-hero:not(.has-aside) .lintje-hero__aside { display: none; }\n\n/* Below 1024 px the text needs the room; the picture only supports it. */\n@media (max-width: 1023px) {\n .lintje-hero.has-aside .lintje-hero__band { display: block; }\n .lintje-hero__aside { display: none; }\n .lintje-hero__panel { margin-top: var(--space-8); }\n}\n\n/* Content beside the text takes the other half from 1024 px; below it, it follows the text. */\n.lintje-hero:not(.has-panel) .lintje-hero__panel { display: none; }\n.lintje-hero__panel { display: flex; flex-direction: column; min-width: 0; }\n.lintje-hero__panel ::slotted(*) { flex: 1 1 auto; }\n.lintje-hero.has-panel .lintje-hero__aside { display: none; }\n@media (min-width: 1024px) {\n .lintje-hero.has-panel .lintje-hero__band {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n align-items: stretch;\n gap: var(--space-10);\n }\n}\n.lintje-hero__heading { display: flex; flex-direction: column; gap: var(--space-3); }\n.lintje-hero__title { margin: 0; font: var(--text-h1-display); }\n.lintje-hero__description {\n margin: 0;\n max-width: var(--w-text);\n font-size: 1.25rem;\n line-height: 1.4;\n text-wrap: pretty;\n}\n\n.lintje-hero__action {\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n min-height: var(--h-touch);\n color: inherit;\n font-weight: 700;\n text-decoration: underline;\n text-underline-offset: 0.2em;\n}\n.lintje-hero__action:hover { text-decoration-thickness: 2px; }\n\n/* Pulled up by the room the band keeps for it; without content it takes no space. */\n.lintje-hero__overlap {\n position: relative;\n margin-top: calc(-1 * var(--hero-overlap));\n padding: 0 calc(var(--page-pad-x) + var(--page-gutter));\n}\n.lintje-hero:not(.has-overlap) .lintje-hero__overlap { display: none; }\n\n@media (max-width: 767px) {\n .lintje-hero__band { padding-top: var(--space-8); padding-bottom: var(--space-8); }\n .lintje-hero.has-overlap .lintje-hero__band {\n padding-bottom: calc(var(--space-8) + var(--hero-overlap));\n }\n .lintje-hero__title { font: var(--text-h1); }\n .lintje-hero__description { font-size: 1.125rem; }\n}\n", u = class extends
|
|
3
|
+
var l = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* The side padding is the content column's, taken of the full width the band stands in. */\n.lintje-hero__band {\n padding: calc(var(--space-10) + var(--space-4)) calc(var(--page-pad-x) + var(--page-gutter))\n calc(var(--space-10) + var(--space-2));\n background: var(--color-hero-bg);\n color: var(--color-hero-text);\n}\n/* With an aside the text keeps its column and the picture takes the room to its right. */\n.lintje-hero.has-aside .lintje-hero__band {\n display: flex;\n align-items: center;\n gap: var(--space-10);\n}\n.lintje-hero.has-overlap .lintje-hero__band {\n padding-bottom: calc(var(--space-10) + var(--space-2) + var(--hero-overlap));\n}\n.lintje-hero__band :focus-visible { outline-color: var(--color-hero-focus); }\n\n.lintje-hero__body {\n flex: 1 1 auto;\n min-width: 0;\n display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6);\n}\n\n.lintje-hero__aside {\n flex: 0 1 var(--w-hero-aside);\n min-width: 0;\n display: flex; justify-content: flex-end;\n}\n.lintje-hero__aside ::slotted(*) { max-width: 100%; }\n/* A picture keeps its proportions when the column narrows it. */\n.lintje-hero__aside ::slotted(img) { height: auto; }\n.lintje-hero:not(.has-aside) .lintje-hero__aside { display: none; }\n\n/* Below 1024 px the text needs the room; the picture only supports it. */\n@media (max-width: 1023px) {\n .lintje-hero.has-aside .lintje-hero__band { display: block; }\n .lintje-hero__aside { display: none; }\n .lintje-hero__panel { margin-top: var(--space-8); }\n}\n\n/* Content beside the text takes the other half from 1024 px; below it, it follows the text. */\n.lintje-hero:not(.has-panel) .lintje-hero__panel { display: none; }\n.lintje-hero__panel { display: flex; flex-direction: column; min-width: 0; }\n.lintje-hero__panel ::slotted(*) { flex: 1 1 auto; }\n.lintje-hero.has-panel .lintje-hero__aside { display: none; }\n@media (min-width: 1024px) {\n .lintje-hero.has-panel .lintje-hero__band {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n align-items: stretch;\n gap: var(--space-10);\n }\n}\n.lintje-hero__heading { display: flex; flex-direction: column; gap: var(--space-3); }\n.lintje-hero__title { margin: 0; font: var(--text-h1-display); }\n.lintje-hero__description {\n margin: 0;\n max-width: var(--w-text);\n font-size: 1.25rem;\n line-height: 1.4;\n text-wrap: pretty;\n}\n\n.lintje-hero__action {\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n min-height: var(--h-touch);\n color: inherit;\n font-weight: 700;\n text-decoration: underline;\n text-underline-offset: 0.2em;\n}\n.lintje-hero__action:hover { text-decoration-thickness: 2px; }\n\n/* Pulled up by the room the band keeps for it; without content it takes no space. */\n.lintje-hero__overlap {\n position: relative;\n margin-top: calc(-1 * var(--hero-overlap));\n padding: 0 calc(var(--page-pad-x) + var(--page-gutter));\n}\n.lintje-hero:not(.has-overlap) .lintje-hero__overlap { display: none; }\n\n@media screen and (max-width: 767px) {\n .lintje-hero__band { padding-top: var(--space-8); padding-bottom: var(--space-8); }\n .lintje-hero.has-overlap .lintje-hero__band {\n padding-bottom: calc(var(--space-8) + var(--hero-overlap));\n }\n .lintje-hero__title { font: var(--text-h1); }\n .lintje-hero__description { font-size: 1.125rem; }\n}\n", u = class extends t {
|
|
4
4
|
constructor(...e) {
|
|
5
5
|
super(...e), this.heading = "", this.hasOverlap = !1, this.hasAside = !1, this.hasPanel = !1;
|
|
6
6
|
}
|
|
7
7
|
static {
|
|
8
|
-
this.styles = [
|
|
8
|
+
this.styles = [a, r(l)];
|
|
9
9
|
}
|
|
10
10
|
static {
|
|
11
11
|
this.properties = {
|
|
@@ -27,12 +27,12 @@ var l = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
27
27
|
onPanelChange(e) {
|
|
28
28
|
this.hasPanel = e.target.assignedElements().length > 0;
|
|
29
29
|
}
|
|
30
|
-
onAction(
|
|
31
|
-
this.href &&
|
|
30
|
+
onAction(t) {
|
|
31
|
+
this.href && e(t) && this.followLink(this.href, t);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return
|
|
35
|
-
class=${
|
|
34
|
+
return o`<div
|
|
35
|
+
class=${s({
|
|
36
36
|
"lintje-hero": !0,
|
|
37
37
|
"has-overlap": this.hasOverlap,
|
|
38
38
|
"has-aside": this.hasAside,
|
|
@@ -44,12 +44,12 @@ var l = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
44
44
|
<slot name="status"></slot>
|
|
45
45
|
<div class="lintje-hero__heading">
|
|
46
46
|
<h2 class="lintje-hero__title">${this.heading}</h2>
|
|
47
|
-
${this.description ?
|
|
47
|
+
${this.description ? o`<p class="lintje-hero__description">${this.description}</p>` : i}
|
|
48
48
|
</div>
|
|
49
49
|
<slot></slot>
|
|
50
|
-
${this.action && this.href ?
|
|
51
|
-
>${this.action}${
|
|
52
|
-
>` :
|
|
50
|
+
${this.action && this.href ? o`<a class="lintje-hero__action" href=${this.href} @click=${this.onAction}
|
|
51
|
+
>${this.action}${c("functioneel-delta-rechts", { size: 16 })}</a
|
|
52
|
+
>` : i}
|
|
53
53
|
</div>
|
|
54
54
|
<div class="lintje-hero__aside">
|
|
55
55
|
<slot name="aside" @slotchange=${this.onAsideChange}></slot>
|
|
@@ -64,6 +64,6 @@ var l = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
64
64
|
</div>`;
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
n("lintje-hero", u);
|
|
68
68
|
//#endregion
|
|
69
69
|
export { u as LintjeHero };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as e, Yt as t, Zt as n, nn as r, st as i } from "../chunks/base-DRGvkF-r.js";
|
|
2
2
|
//#region src/components/content/highlight/highlight.css?inline
|
|
3
3
|
var a = ":host { display: inline; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* `clone`: a marking that wraps paints its fill and line on every line it covers. */\n.lintje-highlight {\n font: inherit;\n color: var(--color-text-primary);\n -webkit-box-decoration-break: clone;\n box-decoration-break: clone;\n}\n\n.lintje-highlight--uncertain {\n background: var(--color-attention-bg);\n border-bottom: 2px dotted var(--color-attention);\n}\n\n.lintje-highlight--term {\n background: var(--color-bg-selected);\n border: 0;\n border-bottom: 2px solid var(--color-accent-line);\n padding: 0;\n}\n.lintje-highlight--control { cursor: help; }\n.lintje-highlight--control:hover { background: var(--color-bg-subtle); }\n\n.lintje-highlight--match {\n background: var(--color-warning);\n color: var(--color-text-on-light-fill);\n}\n.lintje-highlight--match.is-current { outline: 2px solid var(--color-text-primary); }\n\n.lintje-highlight--removed {\n background: var(--color-error-bg);\n text-decoration: line-through;\n}\n.lintje-highlight--added {\n background: var(--color-success-bg);\n text-decoration: underline;\n}\n\n/* Forced colours: a match is only a fill, so it takes the system's marking colours. */\n@media (forced-colors: active) {\n .lintje-highlight--match { forced-color-adjust: none; background: Mark; color: MarkText; }\n .lintje-highlight--match.is-current { outline-color: CanvasText; }\n}\n", o = {
|
|
4
4
|
uncertain: "lage zekerheid",
|
|
@@ -7,12 +7,12 @@ var a = ":host { display: inline; }\n:host([hidden]) { display: none; }\n\n/* --
|
|
|
7
7
|
}, s = {
|
|
8
8
|
removed: "verwijderd",
|
|
9
9
|
added: "toegevoegd"
|
|
10
|
-
}, c = class extends
|
|
10
|
+
}, c = class extends e {
|
|
11
11
|
constructor(...e) {
|
|
12
12
|
super(...e), this.kind = "match", this.current = !1;
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.styles =
|
|
15
|
+
this.styles = n(a);
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.properties = {
|
|
@@ -32,7 +32,7 @@ var a = ":host { display: inline; }\n:host([hidden]) { display: none; }\n\n/* --
|
|
|
32
32
|
return this.kind === "term" && !!this.explanation;
|
|
33
33
|
}
|
|
34
34
|
get classes() {
|
|
35
|
-
return
|
|
35
|
+
return i({
|
|
36
36
|
"lintje-highlight": !0,
|
|
37
37
|
[`lintje-highlight--${this.kind}`]: !0,
|
|
38
38
|
"lintje-highlight--control": this.isControl,
|
|
@@ -55,6 +55,6 @@ var a = ":host { display: inline; }\n:host([hidden]) { display: none; }\n\n/* --
|
|
|
55
55
|
>`;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
t("lintje-highlight", c);
|
|
59
59
|
//#endregion
|
|
60
60
|
export { c as LintjeHighlight };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../types/
|
|
1
|
+
export * from '../types/components/actions/icon-button/icon-button.js'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { j as LintjeIconButton } from "../chunks/base-DRGvkF-r.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../types/
|
|
1
|
+
export * from '../types/components/actions/icon/icon.js'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Et as ICONS, b as ICON_NAMES, x as LintjeIcon } from "../chunks/base-DRGvkF-r.js";
|
|
@@ -1,32 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jt as e, Q as t, X as n, Y as r, Yt as i, Zt as a, en as o, nn as s } from "../chunks/base-DRGvkF-r.js";
|
|
2
2
|
import "./list.js";
|
|
3
3
|
//#region src/components/feedback/job-list/job-list.css?inline
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
busy: {
|
|
10
|
-
label: "Bezig",
|
|
11
|
-
tone: "busy"
|
|
12
|
-
},
|
|
13
|
-
paused: {
|
|
14
|
-
label: "Onderbroken",
|
|
15
|
-
tone: "warning"
|
|
16
|
-
},
|
|
17
|
-
done: {
|
|
18
|
-
label: "Klaar",
|
|
19
|
-
tone: "success"
|
|
20
|
-
},
|
|
21
|
-
error: {
|
|
22
|
-
label: "Mislukt",
|
|
23
|
-
tone: "error"
|
|
24
|
-
},
|
|
25
|
-
cancelled: {
|
|
26
|
-
label: "Geannuleerd",
|
|
27
|
-
tone: "subtle"
|
|
28
|
-
}
|
|
29
|
-
}, c = {
|
|
4
|
+
var c = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* The rows are the work list's (`lintje-list`); the job list adds no look of its own. */\n.lintje-job-list { display: block; }\n", l = Object.fromEntries(Object.keys(r).map((e) => [e, {
|
|
5
|
+
label: r[e],
|
|
6
|
+
tone: n[e]
|
|
7
|
+
}])), u = {
|
|
30
8
|
queued: (e) => `${e} staat in de wachtrij.`,
|
|
31
9
|
busy: (e) => `${e} wordt verwerkt.`,
|
|
32
10
|
paused: (e) => `${e} is onderbroken.`,
|
|
@@ -34,11 +12,11 @@ var o = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: non
|
|
|
34
12
|
error: (e) => `${e} is mislukt.`,
|
|
35
13
|
cancelled: (e) => `${e} is geannuleerd.`
|
|
36
14
|
};
|
|
37
|
-
function
|
|
38
|
-
let t =
|
|
15
|
+
function d(e) {
|
|
16
|
+
let t = u[e.state](e.name), n = e.state === "error" ? e.detail?.trim() : "";
|
|
39
17
|
return n ? `${t} ${n}${/[.!?]$/.test(n) ? "" : "."}` : t;
|
|
40
18
|
}
|
|
41
|
-
var
|
|
19
|
+
var f = {
|
|
42
20
|
queued: {
|
|
43
21
|
label: "Annuleren",
|
|
44
22
|
event: "lintje-job-cancel"
|
|
@@ -60,8 +38,8 @@ var u = {
|
|
|
60
38
|
event: "lintje-job-remove"
|
|
61
39
|
}
|
|
62
40
|
};
|
|
63
|
-
function
|
|
64
|
-
let n = typeof e.progress == "number" && !Number.isNaN(e.progress), r =
|
|
41
|
+
function p(e, t = !1) {
|
|
42
|
+
let n = typeof e.progress == "number" && !Number.isNaN(e.progress), r = f[e.state], i = e.state === "done";
|
|
65
43
|
return {
|
|
66
44
|
id: e.id,
|
|
67
45
|
title: e.name,
|
|
@@ -71,7 +49,7 @@ function d(e, t = !1) {
|
|
|
71
49
|
meta: e.meta,
|
|
72
50
|
icon: e.icon,
|
|
73
51
|
group: e.group,
|
|
74
|
-
status: t && i ? void 0 :
|
|
52
|
+
status: t && i ? void 0 : l[e.state],
|
|
75
53
|
progress: n && (e.state === "busy" || e.state === "paused") ? e.progress : void 0,
|
|
76
54
|
action: r ? {
|
|
77
55
|
label: r.label,
|
|
@@ -83,12 +61,12 @@ function d(e, t = !1) {
|
|
|
83
61
|
}] : void 0
|
|
84
62
|
};
|
|
85
63
|
}
|
|
86
|
-
var
|
|
64
|
+
var m = class extends e {
|
|
87
65
|
constructor(...e) {
|
|
88
66
|
super(...e), this.jobs = [], this.headingLevel = 3, this.spoken = "", this.known = /* @__PURE__ */ new Map(), this.emptiedWithFocus = !1;
|
|
89
67
|
}
|
|
90
68
|
static {
|
|
91
|
-
this.styles =
|
|
69
|
+
this.styles = a(c);
|
|
92
70
|
}
|
|
93
71
|
static {
|
|
94
72
|
this.properties = {
|
|
@@ -102,13 +80,13 @@ var f = class extends a {
|
|
|
102
80
|
}
|
|
103
81
|
willUpdate(e) {
|
|
104
82
|
if (super.willUpdate(e), !e.has("jobs")) return;
|
|
105
|
-
let
|
|
106
|
-
this.emptiedWithFocus = !this.jobs?.length && !!(
|
|
107
|
-
let
|
|
83
|
+
let n = this.renderRoot.querySelector("lintje-list");
|
|
84
|
+
this.emptiedWithFocus = !this.jobs?.length && !!(n && t(n));
|
|
85
|
+
let r = this.known.size === 0, i = [], a = /* @__PURE__ */ new Map();
|
|
108
86
|
for (let e of this.jobs ?? []) {
|
|
109
87
|
a.set(e.id, e.state);
|
|
110
88
|
let t = this.known.get(e.id);
|
|
111
|
-
!
|
|
89
|
+
!r && t !== e.state && i.push(d(e));
|
|
112
90
|
}
|
|
113
91
|
this.known = a, i.length ? this.spoken = i.join(" ") : this.emptiedWithFocus && (this.spoken = "Er staan geen taken meer in de lijst.");
|
|
114
92
|
}
|
|
@@ -128,16 +106,16 @@ var f = class extends a {
|
|
|
128
106
|
}
|
|
129
107
|
render() {
|
|
130
108
|
let e = this.jobs ?? [];
|
|
131
|
-
return
|
|
109
|
+
return s`${e.length ? s`<lintje-list
|
|
132
110
|
class="lintje-job-list"
|
|
133
111
|
heading-level=${this.headingLevel}
|
|
134
|
-
.items=${e.map((t) =>
|
|
112
|
+
.items=${e.map((t) => p(t, e.every((e) => e.state === "done")))}
|
|
135
113
|
@lintje-row-action=${this.onAction}
|
|
136
114
|
@lintje-row-click=${this.onRowClick}
|
|
137
|
-
></lintje-list>` :
|
|
115
|
+
></lintje-list>` : o}
|
|
138
116
|
<p class="visually-hidden" role="status">${this.spoken}</p>`;
|
|
139
117
|
}
|
|
140
118
|
};
|
|
141
|
-
|
|
119
|
+
i("lintje-job-list", m);
|
|
142
120
|
//#endregion
|
|
143
|
-
export {
|
|
121
|
+
export { m as LintjeJobList, p as jobRow, d as spokenState };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e, P as t, Yt as n, Zt as r, bt as i, en as a, nn as o } from "../chunks/base-DRGvkF-r.js";
|
|
2
2
|
import "./kpi.js";
|
|
3
3
|
//#region src/components/charts/kpi-row/kpi-row.css?inline
|
|
4
|
-
var s = "/* The KPIs render in this root, so these rules reach the items directly (no `::slotted()`). */\n:host { display: block; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-grid {\n display: grid;\n grid-template-columns: repeat(12, minmax(0, 1fr));\n gap: var(--grid-gutter);\n align-items: stretch;\n /* A view's held `min-height` is taken by the grid too, so the items fill the held box. */\n min-height: inherit;\n}\n\n/* Lower bound 768 on purpose: the one-column rule below it has lower specificity. */\n@media (min-width: 768px) and (max-width: 1023px) {\n .lintje-grid > [style*='span 4'] { grid-column: span 6 !important; }\n .lintje-grid > [style*='span 8'] { grid-column: span 12 !important; }\n}\n/* Grid sets grid-template-columns inline, so only !important beats it. */\n@media (max-width: 767px) {\n .lintje-grid { grid-template-columns: minmax(0, 1fr) !important; }\n .lintje-grid > * { grid-column: span 1 !important; }\n}\n\n/* After the fallback rules above, so at equal specificity this wins on source order. */\n@media (min-width: 768px) and (max-width: 1023px) {\n .lintje-grid--kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }\n .lintje-grid--kpi-row > * { grid-column: span 1 !important; }\n}\n@media (max-width: 767px) {\n .lintje-grid--kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }\n .lintje-grid--kpi-row > * { grid-column: span 1 !important; }\n}\n", c = class extends
|
|
4
|
+
var s = "/* The KPIs render in this root, so these rules reach the items directly (no `::slotted()`). */\n:host { display: block; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-grid {\n display: grid;\n grid-template-columns: repeat(12, minmax(0, 1fr));\n gap: var(--grid-gutter);\n align-items: stretch;\n /* A view's held `min-height` is taken by the grid too, so the items fill the held box. */\n min-height: inherit;\n}\n\n/* Lower bound 768 on purpose: the one-column rule below it has lower specificity. */\n@media (min-width: 768px) and (max-width: 1023px), print and (max-width: 1023px) {\n .lintje-grid > [style*='span 4'] { grid-column: span 6 !important; }\n .lintje-grid > [style*='span 8'] { grid-column: span 12 !important; }\n}\n/* Grid sets grid-template-columns inline, so only !important beats it. */\n@media screen and (max-width: 767px) {\n .lintje-grid { grid-template-columns: minmax(0, 1fr) !important; }\n .lintje-grid > * { grid-column: span 1 !important; }\n}\n\n/* After the fallback rules above, so at equal specificity this wins on source order. */\n@media (min-width: 768px) and (max-width: 1023px), print and (max-width: 1023px) {\n .lintje-grid--kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }\n .lintje-grid--kpi-row > * { grid-column: span 1 !important; }\n}\n@media screen and (max-width: 767px) {\n .lintje-grid--kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }\n .lintje-grid--kpi-row > * { grid-column: span 1 !important; }\n}\n", c = class extends t {
|
|
5
5
|
static {
|
|
6
|
-
this.styles = [
|
|
6
|
+
this.styles = [e, r(s)];
|
|
7
7
|
}
|
|
8
8
|
static {
|
|
9
9
|
this.properties = { data: { attribute: !1 } };
|
|
@@ -12,15 +12,15 @@ var s = "/* The KPIs render in this root, so these rules reach the items directl
|
|
|
12
12
|
return this.data ?? void 0;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
let e = this.data?.kpis ?? [],
|
|
16
|
-
return
|
|
15
|
+
let e = this.data?.kpis ?? [], t = this.data?.columns ?? 5;
|
|
16
|
+
return o`<div
|
|
17
17
|
class="lintje-grid lintje-grid--kpi-row"
|
|
18
|
-
${
|
|
18
|
+
${i({ gridTemplateColumns: `repeat(${t}, minmax(0, 1fr))` })}
|
|
19
19
|
>
|
|
20
|
-
${e.map((e,
|
|
21
|
-
index=${
|
|
20
|
+
${e.map((e, t) => o`<lintje-kpi
|
|
21
|
+
index=${t}
|
|
22
22
|
label=${e.label}
|
|
23
|
-
icon=${e.icon ??
|
|
23
|
+
icon=${e.icon ?? a}
|
|
24
24
|
.value=${e.value}
|
|
25
25
|
.suffix=${e.suffix}
|
|
26
26
|
.items=${e.items}
|
|
@@ -34,10 +34,12 @@ var s = "/* The KPIs render in this root, so these rules reach the items directl
|
|
|
34
34
|
.dividers=${e.dividers ?? !0}
|
|
35
35
|
variable=${e.variable ?? "sky-blue"}
|
|
36
36
|
state=${e.state ?? "ready"}
|
|
37
|
+
.message=${e.message}
|
|
38
|
+
.lastKnown=${e.lastKnown}
|
|
37
39
|
></lintje-kpi>`)}
|
|
38
40
|
</div>`;
|
|
39
41
|
}
|
|
40
42
|
};
|
|
41
|
-
|
|
43
|
+
n("lintje-kpi-row", c);
|
|
42
44
|
//#endregion
|
|
43
45
|
export { c as LintjeKpiRow };
|