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,21 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-notifications>` — the bell with its unread counter, and the panel it opens.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* focus-trap stack. It fetches and marks nothing: the host sets `.items`.
|
|
4
|
+
* It fetches and marks nothing: the host sets `items`. More unread items than before are spoken
|
|
5
|
+
* from a status region beside the bell. Above 768 px the panel is a popover; below, a full-screen
|
|
6
|
+
* sheet that traps the focus.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* Events: `lintje-notification-open` `{ id, href? }` — a plain click on a title with an `href`
|
|
13
|
-
* is cancelled and left to the host —, `lintje-notifications-read` ("Alles gelezen").
|
|
8
|
+
* Events: `lintje-notification-open` `{ id, href? }` (a title was clicked; with an `href`, cancel
|
|
9
|
+
* it to route), `lintje-notifications-read` ("Alles gelezen" was pressed).
|
|
14
10
|
*/
|
|
15
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
16
12
|
import { LintjeElement } from '../../../core/element.js';
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
13
|
+
import '../../feedback/badge/badge.js';
|
|
14
|
+
import '../../overlays/popover/popover.js';
|
|
19
15
|
export interface NotificationItem {
|
|
20
16
|
id: string;
|
|
21
17
|
title: string;
|
|
@@ -1,38 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-page-header>` — the title zone of a page, with an announcement above it.
|
|
3
3
|
*
|
|
4
|
-
* The title is an h2: the page's h1 is the shell's `name`.
|
|
5
|
-
*
|
|
4
|
+
* The title is an h2: the page's h1 is the shell's `name`. Actions that do not fit on one line go
|
|
5
|
+
* into one menu, "Meer": the first goes first, the last never, and a chosen row clicks its button,
|
|
6
|
+
* so the host's own listener sees the click. In the page's content it is a band that tells the
|
|
7
|
+
* shell when the title scrolls under the top bar.
|
|
6
8
|
*
|
|
7
|
-
*
|
|
8
|
-
* title scrolls under the top bar. The observer watches the title itself: a sentinel element in
|
|
9
|
-
* this column would pick up the gap and push the page down 6 px.
|
|
10
|
-
*
|
|
11
|
-
* In `lintje-shell`'s `header` slot it stands flush in the shell's content column, as an
|
|
12
|
-
* application's title row: no band, the description at every width, no observer.
|
|
13
|
-
*
|
|
14
|
-
* `editable` puts a pencil beside the title, shown while the title is pointed at or focused: the
|
|
15
|
-
* way to rename what the page is about. The page renames; the header only asks.
|
|
16
|
-
*
|
|
17
|
-
* Events: `lintje-title-edit` (the pencil was pressed).
|
|
9
|
+
* Events: `lintje-title-edit` (the pencil was pressed: the page renames, the header only asks).
|
|
18
10
|
*/
|
|
19
11
|
import { nothing, type PropertyDeclarations, type TemplateResult, type PropertyValues } from 'lit';
|
|
20
12
|
import { LintjeElement, type FrameSettings } from '../../../core/element.js';
|
|
21
13
|
import '../../feedback/announcement/announcement.js';
|
|
22
|
-
import '
|
|
14
|
+
import '../../actions/menu-button/menu-button.js';
|
|
15
|
+
import '../../actions/icon-button/icon-button.js';
|
|
23
16
|
import type { PageHeaderData } from '../../../types.js';
|
|
24
17
|
export declare class LintjePageHeader extends LintjeElement {
|
|
25
18
|
static styles: import("lit").CSSResult;
|
|
26
19
|
static properties: PropertyDeclarations;
|
|
27
20
|
data?: PageHeaderData | null;
|
|
28
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* In `lintje-shell`'s `header` slot: an application's title row, flush in the content column,
|
|
23
|
+
* with no band, the description at every width and no top bar to tell.
|
|
24
|
+
*/
|
|
29
25
|
inShell: boolean;
|
|
30
26
|
/** An empty actions slot takes no place, so a long title never wraps onto an empty line. */
|
|
31
27
|
hasActions: boolean;
|
|
32
|
-
/** A pencil beside the title asks to rename it. */
|
|
28
|
+
/** A pencil beside the title, shown while it is pointed at or focused, asks to rename it. */
|
|
33
29
|
editable: boolean;
|
|
34
30
|
protected get dataSettings(): FrameSettings | undefined;
|
|
35
31
|
private readonly mobile;
|
|
32
|
+
private readonly overflow;
|
|
36
33
|
private observer;
|
|
37
34
|
connectedCallback(): void;
|
|
38
35
|
disconnectedCallback(): void;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-shell>` — the frame around a page: the Rijkshuisstijl header above it
|
|
3
|
-
*
|
|
4
|
-
* and a `<main>` with the host's content.
|
|
2
|
+
* `<lintje-shell>` — the frame around a page: the Rijkshuisstijl header above it or the menu
|
|
3
|
+
* beside it, the mobile header and menu below 768 px, and a `<main>` with the host's content.
|
|
5
4
|
*
|
|
6
|
-
* It never fetches and never reads the URL: the active page
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* It never fetches and never reads the URL: the active page and the reader's settings are the
|
|
6
|
+
* host's, and a change goes out as `lintje-view-change` and comes back as data. `full` runs edge
|
|
7
|
+
* to edge above the content, `header` holds the `lintje-page-header` and `footer` the
|
|
8
|
+
* `lintje-footer`. The events of its parts (`lintje-action`, `lintje-logout`,
|
|
9
|
+
* `lintje-notification-open`, `lintje-notifications-read`) reach the host as they are.
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* width and padding; `footer` runs edge to edge under it all (`lintje-footer`).
|
|
13
|
-
*
|
|
14
|
-
* Events: `lintje-navigate` `{ href }`, `lintje-view-change`, `lintje-search-open`; from its
|
|
15
|
-
* parts `lintje-action`, `lintje-logout`, `lintje-notification-open`, `lintje-notifications-read`.
|
|
11
|
+
* Events: `lintje-navigate` `{ href }`, `lintje-view-change` `ShellViewChange`,
|
|
12
|
+
* `lintje-search-open`.
|
|
16
13
|
*/
|
|
17
14
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
18
15
|
import { LintjeElement, type FrameSettings } from '../../../core/element.js';
|
|
19
|
-
import '
|
|
16
|
+
import '../../actions/button/button.js';
|
|
20
17
|
import '../../actions/logo/logo.js';
|
|
21
18
|
import '../../feedback/toast/toast.js';
|
|
19
|
+
import type { ToastKind } from '../../feedback/toast/toast.js';
|
|
22
20
|
import '../../actions/qr-code/qr-code.js';
|
|
23
21
|
import '../notifications/notifications.js';
|
|
24
22
|
import '../user-menu/user-menu.js';
|
|
@@ -58,6 +56,7 @@ export declare class LintjeShell extends LintjeElement {
|
|
|
58
56
|
/** The `header` or default slot holds something; without, `full` takes the room. */
|
|
59
57
|
hasContent: boolean;
|
|
60
58
|
toast?: string | null;
|
|
59
|
+
toastKind: ToastKind;
|
|
61
60
|
readonly wide: MediaController;
|
|
62
61
|
readonly mobile: MediaController;
|
|
63
62
|
readonly submenu: SubmenuController;
|
|
@@ -88,7 +87,7 @@ export declare class LintjeShell extends LintjeElement {
|
|
|
88
87
|
/** Closes "Weergave" or "Delen" with the focus on its tool, in the bar that shows: each bar has
|
|
89
88
|
* one, and below 768 px the top bar's is hidden. A `lintje-button` hands the focus inside. */
|
|
90
89
|
closePanel(tool: string): void;
|
|
91
|
-
showToast(text: string): void;
|
|
90
|
+
showToast(text: string, kind?: ToastKind): void;
|
|
92
91
|
/** The main region lies under the bars that stay; the page scrolls it up to just below them. */
|
|
93
92
|
skipToContent(event: Event): void;
|
|
94
93
|
renderSearch(): TemplateResult | typeof nothing;
|
|
@@ -97,6 +96,8 @@ export declare class LintjeShell extends LintjeElement {
|
|
|
97
96
|
renderUserMenu(inline: boolean): TemplateResult | typeof nothing;
|
|
98
97
|
private renderSkipLink;
|
|
99
98
|
private renderLogo;
|
|
99
|
+
/** Paper has no bars: the logo, the application's name and the environment say what it is. */
|
|
100
|
+
private renderPrintHead;
|
|
100
101
|
private renderNavEnd;
|
|
101
102
|
/** The slot of the nav bar keeps its height while the bar itself is pinned to the viewport. */
|
|
102
103
|
private renderTop;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-sub-nav>` — the navigation within one part of an application, beside its content.
|
|
3
3
|
*
|
|
4
|
-
* Groups of links
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* reads the URL.
|
|
4
|
+
* Groups of links and one action below them ("Nieuw …"). The host marks the reader's page with
|
|
5
|
+
* `active`; the element never reads the URL. Below 768 px it is one button with the reader's
|
|
6
|
+
* page, which opens the list in place.
|
|
8
7
|
*
|
|
9
|
-
* Events: `lintje-navigate` `{ href }`, `lintje-action` `{ value }` (the action).
|
|
8
|
+
* Events: `lintje-navigate` `{ href }`, `lintje-action` `{ value }` (the action was pressed).
|
|
10
9
|
*/
|
|
11
10
|
import { nothing, type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
12
11
|
import { LintjeElement } from '../../../core/element.js';
|
|
@@ -25,7 +24,7 @@ export interface SubNavItem {
|
|
|
25
24
|
};
|
|
26
25
|
/** The page exists but the reader may not open it: struck through, with a lock. */
|
|
27
26
|
noAccess?: boolean;
|
|
28
|
-
/** The level below, shown while this item or one of them is active
|
|
27
|
+
/** The level below, shown while this item or one of them is active, or with `expanded`. */
|
|
29
28
|
items?: SubNavItem[];
|
|
30
29
|
}
|
|
31
30
|
export interface SubNavGroup {
|
|
@@ -55,6 +54,11 @@ export declare class LintjeSubNav extends LintjeElement {
|
|
|
55
54
|
action?: SubNavAction;
|
|
56
55
|
/** The navigation's accessible name: "Instellingen". */
|
|
57
56
|
label: string;
|
|
57
|
+
/**
|
|
58
|
+
* Every level shows, not only the one on the reader's path: for the list of a long page's
|
|
59
|
+
* sections, which must not shift while it is read.
|
|
60
|
+
*/
|
|
61
|
+
expanded: boolean;
|
|
58
62
|
/** Whether the phone's list is open. */
|
|
59
63
|
open: boolean;
|
|
60
64
|
private follow;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-user-menu>` — the user's avatar in the navigation bar and the menu it opens: name and
|
|
3
|
-
* role, the host's rows (`MenuEntry
|
|
3
|
+
* role, the host's rows (`MenuEntry`), "Afmelden" and the version.
|
|
4
4
|
*
|
|
5
|
-
* A menu, not a dialog: no
|
|
6
|
-
* dialog's.
|
|
7
|
-
* token in a hidden `csrf_token` field: signing out leaves the page, which a fetch cannot do.
|
|
8
|
-
* `inline` draws the content without button and popover, for the shell's mobile sheet.
|
|
5
|
+
* A menu, not a dialog: it traps no focus, and an Escape in a dialog opened over it is the
|
|
6
|
+
* dialog's.
|
|
9
7
|
*
|
|
10
|
-
* Events: `lintje-action` (the row's value), `lintje-navigate` `{ href }`
|
|
11
|
-
* `lintje-logout` (
|
|
8
|
+
* Events: `lintje-action` `string` (the row's value), `lintje-navigate` `{ href }` (a link row),
|
|
9
|
+
* `lintje-logout` (without `logout-action`).
|
|
12
10
|
*/
|
|
13
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
14
12
|
import { LintjeElement } from '../../../core/element.js';
|
|
15
13
|
import { type MenuEntry } from '../../actions/menu-button/menu-button.js';
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
14
|
+
import '../../overlays/popover/popover.js';
|
|
15
|
+
import '../../overlays/tooltip/tooltip.js';
|
|
18
16
|
import type { UserMenuUser } from '../../../types.js';
|
|
19
17
|
export declare class LintjeUserMenu extends LintjeElement {
|
|
20
18
|
#private;
|
|
@@ -24,11 +22,14 @@ export declare class LintjeUserMenu extends LintjeElement {
|
|
|
24
22
|
items: MenuEntry[];
|
|
25
23
|
/** Shown at the bottom: "Versie 2.4.1". */
|
|
26
24
|
version?: string;
|
|
27
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The URL "Afmelden" posts a real `<form>` to: signing out leaves the page, which a fetch
|
|
27
|
+
* cannot do. Without it "Afmelden" sends `lintje-logout`.
|
|
28
|
+
*/
|
|
28
29
|
logoutAction?: string;
|
|
29
|
-
/** The session's CSRF token, posted with "Afmelden". */
|
|
30
|
+
/** The session's CSRF token, posted with "Afmelden" in a hidden `csrf_token` field. */
|
|
30
31
|
csrf: string;
|
|
31
|
-
/** The content without button and popover, on the navigation's colours. */
|
|
32
|
+
/** The content without button and popover, on the navigation's colours: for the mobile sheet. */
|
|
32
33
|
inline: boolean;
|
|
33
34
|
open: boolean;
|
|
34
35
|
private get trigger();
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
2
|
+
* The tags of every category. Importing this module registers every tag it defines;
|
|
3
3
|
* `define()` leaves a tag another bundle already defined alone. The modal's and the toast's
|
|
4
4
|
* events are stopped by the content tiles and `<lintje-shell>`, so one action is one line in a
|
|
5
5
|
* host's log. Put one filter bar on a page: two would both write the count in the mobile header
|
|
6
6
|
* and both own the sheet.
|
|
7
7
|
*/
|
|
8
|
+
import './actions/icon/icon.js';
|
|
9
|
+
import './actions/button/button.js';
|
|
10
|
+
import './actions/icon-button/icon-button.js';
|
|
11
|
+
import './feedback/status-dot/status-dot.js';
|
|
12
|
+
import './feedback/skeleton/skeleton.js';
|
|
13
|
+
import './layout/grid/grid.js';
|
|
14
|
+
import './layout/grid-item/grid-item.js';
|
|
15
|
+
import './layout/tile/tile.js';
|
|
16
|
+
import './feedback/badge/badge.js';
|
|
17
|
+
import './feedback/spinner/spinner.js';
|
|
18
|
+
import './feedback/progress-bar/progress-bar.js';
|
|
19
|
+
import './overlays/popover/popover.js';
|
|
20
|
+
import './overlays/tooltip/tooltip.js';
|
|
8
21
|
import './frame/shell/shell.js';
|
|
9
22
|
import './frame/user-menu/user-menu.js';
|
|
10
23
|
import './frame/page-header/page-header.js';
|
|
@@ -30,9 +43,11 @@ import './content/prose/prose.js';
|
|
|
30
43
|
import './feedback/toast/toast.js';
|
|
31
44
|
import './overlays/toggletip/toggletip.js';
|
|
32
45
|
import './inputs/checkbox/checkbox.js';
|
|
46
|
+
import './inputs/checkbox-group/checkbox-group.js';
|
|
33
47
|
import './inputs/number-input/number-input.js';
|
|
34
48
|
import './inputs/radio-group/radio-group.js';
|
|
35
49
|
import './inputs/text-input/text-input.js';
|
|
50
|
+
import './inputs/find/find.js';
|
|
36
51
|
import './inputs/toggle/toggle.js';
|
|
37
52
|
import './actions/logo/logo.js';
|
|
38
53
|
import './inputs/field/field.js';
|
|
@@ -47,7 +62,7 @@ import './forms/form/form.js';
|
|
|
47
62
|
import './forms/form-section/form-section.js';
|
|
48
63
|
import './forms/error-summary/error-summary.js';
|
|
49
64
|
import './forms/form-actions/form-actions.js';
|
|
50
|
-
import './overlays/
|
|
65
|
+
import './overlays/dialog/dialog.js';
|
|
51
66
|
import './inputs/textarea/textarea.js';
|
|
52
67
|
import './inputs/file-upload/file-upload.js';
|
|
53
68
|
import './inputs/combobox/combobox.js';
|
|
@@ -78,11 +93,13 @@ import './tables/tree-view/tree-view.js';
|
|
|
78
93
|
import './tables/sortable-list/sortable-list.js';
|
|
79
94
|
import './tables/description-list/description-list.js';
|
|
80
95
|
import './feedback/empty-state/empty-state.js';
|
|
96
|
+
import './feedback/error-page/error-page.js';
|
|
81
97
|
import './tables/activity-log/activity-log.js';
|
|
82
98
|
import './actions/copy-button/copy-button.js';
|
|
83
99
|
import './actions/qr-code/qr-code.js';
|
|
84
100
|
import './feedback/ai-label/ai-label.js';
|
|
85
101
|
import './content/highlight/highlight.js';
|
|
102
|
+
import './content/token-value/token-value.js';
|
|
86
103
|
import './feedback/job-list/job-list.js';
|
|
87
104
|
import './feedback/streaming-text/streaming-text.js';
|
|
88
105
|
import './content/audio-player/audio-player.js';
|
|
@@ -91,9 +108,30 @@ import './content/transcript/transcript.js';
|
|
|
91
108
|
import './content/document-viewer/document-viewer.js';
|
|
92
109
|
import './feedback/conflict-alert/conflict-alert.js';
|
|
93
110
|
import './frame/app-search/app-search.js';
|
|
94
|
-
import './frame/shortcuts/shortcuts.js';
|
|
95
|
-
import './frame/session-expiry/session-expiry.js';
|
|
96
111
|
import './frame/notifications/notifications.js';
|
|
112
|
+
export { LintjeIcon, ICON_NAMES } from './actions/icon/icon.js';
|
|
113
|
+
export { LintjeButton } from './actions/button/button.js';
|
|
114
|
+
export type { ButtonSize, ButtonVariant } from './actions/button/button.js';
|
|
115
|
+
export { LintjeIconButton } from './actions/icon-button/icon-button.js';
|
|
116
|
+
export type { IconButtonVariant } from './actions/icon-button/icon-button.js';
|
|
117
|
+
export { LintjeStatusDot, STATUS_LABEL } from './feedback/status-dot/status-dot.js';
|
|
118
|
+
export { TONE_ICON, TONE_WORD, WORK_STATE_LABEL, WORK_STATE_TONE } from './shared/tone.js';
|
|
119
|
+
export type { ContentStateKind, Tone, WorkState } from './shared/tone.js';
|
|
120
|
+
export { LintjeSkeleton } from './feedback/skeleton/skeleton.js';
|
|
121
|
+
export { LintjeGrid } from './layout/grid/grid.js';
|
|
122
|
+
export { LintjeGridItem } from './layout/grid-item/grid-item.js';
|
|
123
|
+
export { LintjeGridItemElement, spanStyles } from './shared/grid-item-element.js';
|
|
124
|
+
export { LintjeTile } from './layout/tile/tile.js';
|
|
125
|
+
export { LintjeBadge, badgeStyles, renderBadge } from './feedback/badge/badge.js';
|
|
126
|
+
export type { BadgeOptions, BadgeTone, BadgeVariant } from './feedback/badge/badge.js';
|
|
127
|
+
export { LintjeSpinner } from './feedback/spinner/spinner.js';
|
|
128
|
+
export type { SpinnerSize } from './feedback/spinner/spinner.js';
|
|
129
|
+
export { LintjeProgressBar } from './feedback/progress-bar/progress-bar.js';
|
|
130
|
+
export type { ProgressState } from './feedback/progress-bar/progress-bar.js';
|
|
131
|
+
export { LintjePopover } from './overlays/popover/popover.js';
|
|
132
|
+
export { LintjeTooltip } from './overlays/tooltip/tooltip.js';
|
|
133
|
+
export { place } from './shared/place.js';
|
|
134
|
+
export type { Place, Placement } from './shared/place.js';
|
|
97
135
|
export { LintjeAnnouncement } from './feedback/announcement/announcement.js';
|
|
98
136
|
export { LintjeChart } from './charts/chart/chart.js';
|
|
99
137
|
export { LintjeChat } from './chat/chat/chat.js';
|
|
@@ -126,9 +164,11 @@ export type { ToggletipPlacement } from './overlays/toggletip/toggletip.js';
|
|
|
126
164
|
export { LintjeInputElement } from './inputs/shared/input.js';
|
|
127
165
|
export type { InputValue } from './inputs/shared/input.js';
|
|
128
166
|
export { LintjeCheckbox } from './inputs/checkbox/checkbox.js';
|
|
167
|
+
export { LintjeCheckboxGroup } from './inputs/checkbox-group/checkbox-group.js';
|
|
129
168
|
export { LintjeNumberInput } from './inputs/number-input/number-input.js';
|
|
130
169
|
export { LintjeRadioGroup } from './inputs/radio-group/radio-group.js';
|
|
131
170
|
export { LintjeTextInput } from './inputs/text-input/text-input.js';
|
|
171
|
+
export { LintjeFind } from './inputs/find/find.js';
|
|
132
172
|
export { LintjeToggle } from './inputs/toggle/toggle.js';
|
|
133
173
|
export { LintjeLogo } from './actions/logo/logo.js';
|
|
134
174
|
export { LintjeField } from './inputs/field/field.js';
|
|
@@ -150,8 +190,8 @@ export { LintjeErrorSummary } from './forms/error-summary/error-summary.js';
|
|
|
150
190
|
export type { ErrorSummaryItem } from './forms/error-summary/error-summary.js';
|
|
151
191
|
export { LintjeFormActions } from './forms/form-actions/form-actions.js';
|
|
152
192
|
export type { FormActionsState } from './forms/form-actions/form-actions.js';
|
|
153
|
-
export {
|
|
154
|
-
export type {
|
|
193
|
+
export { LintjeDialog } from './overlays/dialog/dialog.js';
|
|
194
|
+
export type { DialogCloseReason } from './overlays/dialog/dialog.js';
|
|
155
195
|
export { LintjeTextarea } from './inputs/textarea/textarea.js';
|
|
156
196
|
export { LintjeFileUpload } from './inputs/file-upload/file-upload.js';
|
|
157
197
|
export type { UploadFile } from './inputs/file-upload/file-upload.js';
|
|
@@ -201,6 +241,8 @@ export type { SortableItem } from './tables/sortable-list/sortable-list.js';
|
|
|
201
241
|
export { LintjeDescriptionList } from './tables/description-list/description-list.js';
|
|
202
242
|
export type { DescriptionItem, DescriptionAction } from './tables/description-list/description-list.js';
|
|
203
243
|
export { LintjeEmptyState } from './feedback/empty-state/empty-state.js';
|
|
244
|
+
export { LintjeErrorPage } from './feedback/error-page/error-page.js';
|
|
245
|
+
export type { ErrorPageLink } from './feedback/error-page/error-page.js';
|
|
204
246
|
export { LintjeActivityLog } from './tables/activity-log/activity-log.js';
|
|
205
247
|
export type { ActivityEntry } from './tables/activity-log/activity-log.js';
|
|
206
248
|
export { LintjeCopyButton } from './actions/copy-button/copy-button.js';
|
|
@@ -208,6 +250,7 @@ export { LintjeQrCode } from './actions/qr-code/qr-code.js';
|
|
|
208
250
|
export { LintjeAiLabel } from './feedback/ai-label/ai-label.js';
|
|
209
251
|
export { LintjeHighlight } from './content/highlight/highlight.js';
|
|
210
252
|
export type { HighlightKind } from './content/highlight/highlight.js';
|
|
253
|
+
export { LintjeTokenValue, formatColour } from './content/token-value/token-value.js';
|
|
211
254
|
export { LintjeJobList } from './feedback/job-list/job-list.js';
|
|
212
255
|
export type { Job, JobState } from './feedback/job-list/job-list.js';
|
|
213
256
|
export { LintjeStreamingText } from './feedback/streaming-text/streaming-text.js';
|
|
@@ -215,8 +258,8 @@ export type { StreamState } from './feedback/streaming-text/streaming-text.js';
|
|
|
215
258
|
export { LintjeConflictAlert } from './feedback/conflict-alert/conflict-alert.js';
|
|
216
259
|
export type { ConflictChange, ConflictChoice } from './feedback/conflict-alert/conflict-alert.js';
|
|
217
260
|
export { LintjeAudioPlayer } from './content/audio-player/audio-player.js';
|
|
218
|
-
export { speakerColours, SPEAKER_COLOURS } from './content/
|
|
219
|
-
export type { SpeakerColour } from './content/
|
|
261
|
+
export { speakerColours, SPEAKER_COLOURS } from './content/shared/playback.js';
|
|
262
|
+
export type { SpeakerColour } from './content/shared/playback.js';
|
|
220
263
|
export { LintjeVideoPlayer } from './content/video-player/video-player.js';
|
|
221
264
|
export type { TimedText } from './content/video-player/video-player.js';
|
|
222
265
|
export { LintjeTranscript } from './content/transcript/transcript.js';
|
|
@@ -225,10 +268,6 @@ export { LintjeDocumentViewer } from './content/document-viewer/document-viewer.
|
|
|
225
268
|
export type { ZoomLevel } from './content/document-viewer/document-viewer.js';
|
|
226
269
|
export { LintjeAppSearch } from './frame/app-search/app-search.js';
|
|
227
270
|
export type { SearchGroup, SearchResult, AppSearchCloseReason } from './frame/app-search/app-search.js';
|
|
228
|
-
export { LintjeShortcuts } from './frame/shortcuts/shortcuts.js';
|
|
229
|
-
export type { ShortcutsCloseReason } from './frame/shortcuts/shortcuts.js';
|
|
230
|
-
export { LintjeSessionExpiry } from './frame/session-expiry/session-expiry.js';
|
|
231
|
-
export type { SessionPhase, RestoredReason } from './frame/session-expiry/session-expiry.js';
|
|
232
271
|
export { LintjeNotifications } from './frame/notifications/notifications.js';
|
|
233
272
|
export type { NotificationItem } from './frame/notifications/notifications.js';
|
|
234
273
|
export { MediaController, MOBILE, WIDE } from '../core/media.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-checkbox>` — a checkbox; `indeterminate` shows a dash.
|
|
3
|
-
* boolean, not `value` (the string a native checkbox submits). `lintje-values-change` goes out
|
|
4
|
-
* only with a `name`, so `lintje-multiselect`'s unnamed rows leak nothing to the host.
|
|
2
|
+
* `<lintje-checkbox>` — a checkbox; `indeterminate` shows a dash.
|
|
5
3
|
*
|
|
6
|
-
* Events: `lintje-change`
|
|
4
|
+
* Events: `lintje-change` `boolean`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
5
|
+
* `lintje-reset` (the reset link was pressed).
|
|
7
6
|
*/
|
|
8
7
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
9
8
|
import { LintjeInputElement } from '../shared/input.js';
|
|
10
9
|
export declare class LintjeCheckbox extends LintjeInputElement {
|
|
11
10
|
static styles: import("lit").CSSResult[];
|
|
12
11
|
static properties: PropertyDeclarations;
|
|
12
|
+
/** The value: a boolean, not `value` (the string a native checkbox submits). */
|
|
13
13
|
checked: boolean;
|
|
14
14
|
indeterminate: boolean;
|
|
15
15
|
private change;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-checkbox-group>` — several options under one label, a checkbox per line, with one hint
|
|
3
|
+
* and one message for the group.
|
|
4
|
+
*
|
|
5
|
+
* Only the group tells the host: its rows carry no `name`. `required` draws nothing and sets no
|
|
6
|
+
* ARIA, since a group cannot carry `aria-required`: the host's message says what is missing.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `string[]` (the checked values), `lintje-values-change`
|
|
9
|
+
* `{ [name]: value }` (with a `name`), `lintje-reset` (the reset link was pressed).
|
|
10
|
+
*/
|
|
11
|
+
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
12
|
+
import { LintjeInputElement } from '../shared/input.js';
|
|
13
|
+
import '../checkbox/checkbox.js';
|
|
14
|
+
import type { FilterOption } from '../../../types.js';
|
|
15
|
+
export declare class LintjeCheckboxGroup extends LintjeInputElement {
|
|
16
|
+
static styles: import("lit").CSSResult[];
|
|
17
|
+
static properties: PropertyDeclarations;
|
|
18
|
+
/** A `description` stands under its option. */
|
|
19
|
+
options?: FilterOption[];
|
|
20
|
+
/**
|
|
21
|
+
* The checked values, in the order of `options`; a value the options do not hold is kept after
|
|
22
|
+
* them. A property, not an attribute: a server-rendered page sets it as data.
|
|
23
|
+
*/
|
|
24
|
+
selected: string[];
|
|
25
|
+
private toggle;
|
|
26
|
+
protected focusControl(options?: FocusOptions): void;
|
|
27
|
+
protected render(): TemplateResult;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'lintje-checkbox-group': LintjeCheckboxGroup;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-combobox>` — search while typing and choose one value.
|
|
3
|
-
* itself; with `remote` it sends `lintje-search` after typing stops and shows a busy row until
|
|
4
|
-
* the host sets new `.options` (it never fetches). Text that matches no option is never a value;
|
|
5
|
-
* emptying the field commits `null`. Escape closes and restores the previous value.
|
|
2
|
+
* `<lintje-combobox>` — search while typing and choose one value.
|
|
6
3
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* Typing narrows `options` itself, unless `remote`; the element never fetches. Text that matches
|
|
5
|
+
* no option is never a value, and emptying the field commits `null`. Escape closes and restores
|
|
6
|
+
* the previous value.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `string | null`, `lintje-values-change` `{ [name]: value }` (with a
|
|
9
|
+
* `name`), `lintje-reset` (the reset link was pressed), `lintje-search` `{ query }` (with
|
|
10
|
+
* `remote`, after typing stops).
|
|
9
11
|
*/
|
|
10
12
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
+
import '../../overlays/popover/popover.js';
|
|
14
|
+
import '../../feedback/spinner/spinner.js';
|
|
13
15
|
import { LintjeInputElement } from '../shared/input.js';
|
|
14
16
|
import type { FilterOption } from '../../../types.js';
|
|
15
17
|
export declare function filterOptions(options: FilterOption[], query: string): FilterOption[];
|
|
@@ -21,6 +23,10 @@ export declare class LintjeCombobox extends LintjeInputElement {
|
|
|
21
23
|
value: string | null;
|
|
22
24
|
options?: FilterOption[];
|
|
23
25
|
placeholder: string;
|
|
26
|
+
/**
|
|
27
|
+
* The host searches: `lintje-search` goes out after typing stops, and a busy row shows until
|
|
28
|
+
* the host sets new `options`.
|
|
29
|
+
*/
|
|
24
30
|
remote: boolean;
|
|
25
31
|
loadingLabel: string;
|
|
26
32
|
emptyLabel: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-date-input>` — one day, typed or picked in a calendar popover.
|
|
3
3
|
*
|
|
4
|
-
* The field shows `dd-mm-jjjj`; what crosses is ISO, or `null` when empty.
|
|
5
|
-
* leaving the field or Enter
|
|
6
|
-
*
|
|
7
|
-
* the element closes the calendar, so it does not cover the next field.
|
|
4
|
+
* The field shows `dd-mm-jjjj`; what crosses is ISO, or `null` when empty. The element reads typed
|
|
5
|
+
* text on leaving the field or Enter, checks it and shows a message in place of the hint; a host's
|
|
6
|
+
* `error` wins. A calendar day knows no time zone. Tab out of the element closes the calendar.
|
|
8
7
|
*
|
|
9
|
-
* Events: `lintje-change`
|
|
8
|
+
* Events: `lintje-change` `string | null` (the ISO day), `lintje-values-change`
|
|
9
|
+
* `{ [name]: value }` (with a `name`), `lintje-reset` (the reset link was pressed).
|
|
10
10
|
*/
|
|
11
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
12
12
|
import { LintjeInputElement } from '../shared/input.js';
|
|
13
|
-
import '
|
|
13
|
+
import '../../overlays/popover/popover.js';
|
|
14
14
|
export declare class LintjeDateInput extends LintjeInputElement {
|
|
15
15
|
static styles: import("lit").CSSResult[];
|
|
16
16
|
static properties: PropertyDeclarations;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-date-range>` — the date range picker: a field and a popover with a calendar, presets
|
|
3
|
-
* and "Wissen"/"Toepassen".
|
|
3
|
+
* and "Wissen"/"Toepassen".
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* `lintje-
|
|
5
|
+
* Escape closes only the popover; it and "Toepassen" give the focus back to the field. Tab out of
|
|
6
|
+
* the element closes the popover.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `{ from, to }`, `lintje-values-change` `{ [name]: value }` (with a
|
|
9
|
+
* `name`), `lintje-reset` (the reset link was pressed).
|
|
10
10
|
*/
|
|
11
11
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
12
12
|
import { LintjeInputElement } from '../shared/input.js';
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
13
|
+
import '../../actions/button/button.js';
|
|
14
|
+
import '../../actions/icon-button/icon-button.js';
|
|
15
15
|
/**
|
|
16
16
|
* Each preset as its first and last day. "Afgelopen n dagen" runs back from today; the calendar
|
|
17
17
|
* periods run past today while they last, and `presetRange` cuts them at the data's last day.
|
|
@@ -28,9 +28,14 @@ export declare function formatDate(date: Date): string;
|
|
|
28
28
|
export declare class LintjeDateRange extends LintjeInputElement {
|
|
29
29
|
static styles: import("lit").CSSResult[];
|
|
30
30
|
static properties: PropertyDeclarations;
|
|
31
|
+
/**
|
|
32
|
+
* Names the field inside, which `aria-label` on the host would not; the name ends in the
|
|
33
|
+
* chosen range.
|
|
34
|
+
*/
|
|
31
35
|
accessibleName: string;
|
|
32
36
|
stacked: boolean;
|
|
33
37
|
open: boolean;
|
|
38
|
+
/** The chosen days, as `dd-mm-yyyy`. */
|
|
34
39
|
range: DateRange;
|
|
35
40
|
/** A form gets the days as the URL does: ISO. */
|
|
36
41
|
protected get postedValue(): unknown;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-field>` — the label above a filter control.
|
|
3
|
-
*
|
|
4
|
-
* label focuses the first slotted control that takes focus.
|
|
2
|
+
* `<lintje-field>` — the label above a filter control.
|
|
3
|
+
*
|
|
4
|
+
* A click on the label focuses the first slotted control that takes focus. There is no `for`: a
|
|
5
|
+
* `<label for>` cannot name a control in another shadow root, so each control carries its own
|
|
6
|
+
* `aria-label`.
|
|
5
7
|
*/
|
|
6
8
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
7
9
|
import { LintjeElement } from '../../../core/element.js';
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-file-upload>` — choose or drop files, and see per file how far it is and how it ended.
|
|
3
|
-
* It never uploads: it checks files against `accept` and `max-size`, sends the ones that pass
|
|
4
|
-
* with `lintje-files-add`, and draws the rows from `.files`. A file it refuses itself never
|
|
5
|
-
* reaches the host. Its value is the ids of the rows that are done.
|
|
6
3
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* It never uploads: it checks files against `accept` and `max-size`, sends the ones that pass with
|
|
5
|
+
* `lintje-files-add` and draws the rows from `files`. A file it refuses never reaches the host.
|
|
6
|
+
* Its value is the ids of the rows that are done.
|
|
10
7
|
*
|
|
11
|
-
* Events: `lintje-files-add`
|
|
12
|
-
* `{ id }
|
|
8
|
+
* Events: `lintje-files-add` `File[]`, `lintje-file-remove` `{ id }`, `lintje-file-cancel`
|
|
9
|
+
* `{ id }`, `lintje-change` `string[]`, `lintje-values-change` `{ [name]: value }` (with a
|
|
10
|
+
* `name`), `lintje-reset` (the reset link was pressed).
|
|
13
11
|
*/
|
|
14
12
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
13
|
+
import '../../actions/button/button.js';
|
|
14
|
+
import '../../feedback/progress-bar/progress-bar.js';
|
|
17
15
|
import { LintjeInputElement } from '../shared/input.js';
|
|
18
16
|
/** One row, as the host keeps it. */
|
|
19
17
|
export interface UploadFile {
|