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
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<lintje-find>` — a field that finds a word in content already shown, and steps through the hits.
|
|
3
|
+
*
|
|
4
|
+
* It searches nothing itself: the host, or the element around it, counts the hits, sets `total`
|
|
5
|
+
* and `current`, and marks them in its content with `lintje-highlight`. Finding filters nothing.
|
|
6
|
+
* The count and the buttons stand inside the field, so nothing around it moves while typing. A
|
|
7
|
+
* host that counts asynchronously sets `busy` until it knows the total.
|
|
8
|
+
*
|
|
9
|
+
* Events: `lintje-change` `string` (the term, 300 ms after the last key; `''` when cleared),
|
|
10
|
+
* `lintje-values-change` `{ [name]: term }` (with a `name`), `lintje-find-step` `1 | -1` (to the
|
|
11
|
+
* next or the previous hit; the host answers with `current`).
|
|
12
|
+
*/
|
|
13
|
+
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
14
|
+
import '../../feedback/spinner/spinner.js';
|
|
15
|
+
import { LintjeInputElement } from '../shared/input.js';
|
|
16
|
+
export declare class LintjeFind extends LintjeInputElement {
|
|
17
|
+
#private;
|
|
18
|
+
static styles: import("lit").CSSResult[];
|
|
19
|
+
static properties: PropertyDeclarations;
|
|
20
|
+
value: string;
|
|
21
|
+
/** Without one, the field shows its label. */
|
|
22
|
+
placeholder: string;
|
|
23
|
+
/** The number of hits; `null` while there is no count. */
|
|
24
|
+
total: number | null;
|
|
25
|
+
/** The current hit, from 1; `0` for none. */
|
|
26
|
+
current: number;
|
|
27
|
+
/** The host is still counting: the field says "Zoeken…" and cannot step. */
|
|
28
|
+
busy: boolean;
|
|
29
|
+
protected message: string;
|
|
30
|
+
private readonly typing;
|
|
31
|
+
constructor();
|
|
32
|
+
private get navigable();
|
|
33
|
+
private get countText();
|
|
34
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
35
|
+
protected updated(changed: PropertyValues<this>): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private say;
|
|
38
|
+
private send;
|
|
39
|
+
private onInput;
|
|
40
|
+
private onKeydown;
|
|
41
|
+
private step;
|
|
42
|
+
private clear;
|
|
43
|
+
private keepTyping;
|
|
44
|
+
private renderButton;
|
|
45
|
+
protected render(): TemplateResult;
|
|
46
|
+
}
|
|
47
|
+
declare global {
|
|
48
|
+
interface HTMLElementTagNameMap {
|
|
49
|
+
'lintje-find': LintjeFind;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
* `<lintje-multiselect>` — several values in one field: chips in the field, a search and a
|
|
3
3
|
* checkbox list in the popover.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* fixed to the viewport and anchored to the field: an absolute one is cut off by the scrolling
|
|
8
|
-
* filter bar and sheet around it. Escape closes only the popover (`ownsEscape`) and gives the
|
|
9
|
-
* focus back to the field; so does Tab out of the element, without taking the focus back.
|
|
5
|
+
* The popover is fixed to the viewport, so a scrolling filter bar or sheet around it does not cut
|
|
6
|
+
* it off. Escape and Tab out of the element close only the popover.
|
|
10
7
|
*
|
|
11
|
-
* Events: `lintje-change
|
|
8
|
+
* Events: `lintje-change` `string[]`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
9
|
+
* `lintje-reset` (the reset link was pressed).
|
|
12
10
|
*/
|
|
13
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
14
12
|
import { LintjeInputElement } from '../shared/input.js';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-number-input>` — a −/+ stepper around a centred value, or a unit on the right
|
|
3
|
-
*
|
|
2
|
+
* `<lintje-number-input>` — a −/+ stepper around a centred value, or a unit on the right without
|
|
3
|
+
* the stepper.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* It commits on `change`; a press on − or + commits at once. At `min` or `max` the step stays
|
|
6
|
+
* focusable but does nothing.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `number | null`, `lintje-values-change` `{ [name]: value }` (with a
|
|
9
|
+
* `name`), `lintje-reset` (the reset link was pressed).
|
|
9
10
|
*/
|
|
10
11
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
11
12
|
import { LintjeFormInputElement } from '../shared/input.js';
|
|
@@ -17,7 +18,7 @@ export declare class LintjeNumberInput extends LintjeFormInputElement {
|
|
|
17
18
|
min?: number;
|
|
18
19
|
max?: number;
|
|
19
20
|
step: number;
|
|
20
|
-
/** The unit on the right, e.g. "min";
|
|
21
|
+
/** The unit on the right, e.g. "min", which describes the field; only without the stepper. */
|
|
21
22
|
unit?: string;
|
|
22
23
|
/** The −/+ buttons. Bind as `.stepper=${false}`, never `?stepper=`. */
|
|
23
24
|
stepper: boolean;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-radio-group>` — one option per line, for options that do not fit `lintje-segmented`.
|
|
3
|
-
* Options are `FilterOption[]`. Arrow keys are the browser's: the inputs share one `name` inside
|
|
4
|
-
* this shadow root, so two groups never collide. `variant="cards"` draws each option as a card in
|
|
5
|
-
* a grid, its `description` under the label, the chosen one quiet as in `lintje-segmented`.
|
|
6
3
|
*
|
|
7
|
-
* Events: `lintje-change
|
|
4
|
+
* Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
5
|
+
* `lintje-reset` (the reset link was pressed).
|
|
8
6
|
*/
|
|
9
7
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
10
8
|
import { LintjeInputElement } from '../shared/input.js';
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-range>` — one track, one or two handles, over labeled steps.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* `single`, `value` is the step itself,
|
|
6
|
-
*
|
|
7
|
-
* With two handles only the thumbs take the pointer, so a press on the track moves the nearer
|
|
8
|
-
* handle there; on stacked handles the side of the press decides.
|
|
4
|
+
* With two handles `from` and `to` are indexes into `steps`, and a change is `[from, to]`; with
|
|
5
|
+
* `single`, `value` is the step itself, and a change is that step. A drag commits when the pointer
|
|
6
|
+
* is let go, a key press at once.
|
|
9
7
|
*
|
|
10
|
-
* Events: `lintje-change
|
|
8
|
+
* Events: `lintje-change` `[number, number] | number | string`, `lintje-values-change`
|
|
9
|
+
* `{ [name]: value }` (with a `name`), `lintje-reset` (the reset link was pressed).
|
|
11
10
|
*/
|
|
12
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
12
|
import { LintjeInputElement } from '../shared/input.js';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-segmented>` — one row of options, the chosen one marked
|
|
3
|
-
* stands as a column
|
|
4
|
-
* In a filter bar it is `hide-label` and nameless; the bar decides what to commit.
|
|
2
|
+
* `<lintje-segmented>` — one row of options, the chosen one marked; a row wider than its room
|
|
3
|
+
* stands as a column.
|
|
5
4
|
*
|
|
6
|
-
*
|
|
5
|
+
* In a filter bar it is `hide-label` and nameless: the bar decides what to commit.
|
|
6
|
+
*
|
|
7
|
+
* Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
8
|
+
* `lintje-reset` (the reset link was pressed).
|
|
7
9
|
*/
|
|
8
10
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
|
+
import '../../feedback/badge/badge.js';
|
|
9
12
|
import { LintjeInputElement } from '../shared/input.js';
|
|
10
13
|
import type { FilterOption } from '../../../types.js';
|
|
11
14
|
export declare class LintjeSegmented extends LintjeInputElement {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-select>` — a select, bold once the value differs from the default.
|
|
3
|
-
* The filter bar passes no `name` and sets `hide-label`. The width is the host's, not inline,
|
|
4
|
-
* so `filter-layout.css` can narrow it from outside.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* In a filter bar it is `hide-label` and nameless. Its width is the host's, so the filter layout
|
|
5
|
+
* can narrow it from outside.
|
|
6
|
+
*
|
|
7
|
+
* Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
8
|
+
* `lintje-reset` (the reset link was pressed).
|
|
7
9
|
*/
|
|
8
10
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
9
11
|
import { LintjeInputElement } from '../shared/input.js';
|
|
@@ -12,6 +14,7 @@ export declare class LintjeSelect extends LintjeInputElement {
|
|
|
12
14
|
static styles: import("lit").CSSResult[];
|
|
13
15
|
static properties: PropertyDeclarations;
|
|
14
16
|
value: string;
|
|
17
|
+
/** Bold the value, as a modified filter does. */
|
|
15
18
|
bold: boolean;
|
|
16
19
|
stacked: boolean;
|
|
17
20
|
options?: FilterOption[];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* is set, so an input inside another component's shadow root does not leak a filter change.
|
|
7
7
|
*/
|
|
8
8
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
9
|
-
import { LintjeGridItemElement } from '
|
|
9
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
10
10
|
/** What an input may commit. A host serialises it into the URL. */
|
|
11
11
|
export type InputValue = string | number | boolean | null;
|
|
12
12
|
export declare abstract class LintjeInputElement extends LintjeGridItemElement {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-slot-picker>` — a time for an appointment: days side by side, each with its times as
|
|
3
|
-
* options.
|
|
4
|
-
* a time's name carries its day. A full time stays, disabled, with the word "Vol" beside it
|
|
5
|
-
* (rule 13), and a day without times says so. The days are the host's: it sends the ones it
|
|
6
|
-
* offers, and pages them itself.
|
|
3
|
+
* options.
|
|
7
4
|
*
|
|
8
|
-
*
|
|
5
|
+
* The days are the host's: it sends the ones it offers, and pages them itself. One radio group
|
|
6
|
+
* spans every day, so Tab stops once. A full time stays, disabled, with the word "Vol" beside it.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `string` (the chosen time's `value`), `lintje-values-change`
|
|
9
|
+
* `{ [name]: value }` (with a `name`), `lintje-reset` (the reset link was pressed).
|
|
9
10
|
*/
|
|
10
11
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
11
12
|
import { LintjeInputElement } from '../shared/input.js';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-tag-input>` — free keywords as chips in one field.
|
|
3
|
-
* or leaving the field makes chips; a duplicate lights up its chip and is said instead of being
|
|
4
|
-
* added. With `.options` it also suggests options, and still takes a word that is not among them.
|
|
5
|
-
* A chip's cross is its one control: the arrows walk the crosses, Backspace and Delete remove.
|
|
2
|
+
* `<lintje-tag-input>` — free keywords as chips in one field.
|
|
6
3
|
*
|
|
7
|
-
*
|
|
4
|
+
* Enter, a comma, a paste with commas or leaving the field makes chips; a duplicate is pointed out
|
|
5
|
+
* instead of added. With `options` it also suggests, and still takes a word that is not among
|
|
6
|
+
* them.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `string[]`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
9
|
+
* `lintje-reset` (the reset link was pressed).
|
|
8
10
|
*/
|
|
9
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
10
|
-
import '
|
|
12
|
+
import '../../overlays/popover/popover.js';
|
|
11
13
|
import { LintjeInputElement } from '../shared/input.js';
|
|
12
14
|
import type { FilterOption } from '../../../types.js';
|
|
13
15
|
export declare function splitWords(text: string): string[];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-text-editor>` — formatted text
|
|
3
|
-
* the value is markdown (`markdown.ts`). Formatting uses `document.execCommand`, the one API
|
|
4
|
-
* every browser has for a `contenteditable` selection; the markdown writer reads only the five
|
|
5
|
-
* formats from whatever markup it leaves. Commits when the surface loses focus, if changed.
|
|
6
|
-
* A link is http(s), mailto, tel or relative; any other scheme is dropped.
|
|
2
|
+
* `<lintje-text-editor>` — formatted text: bold, italic, one heading, a bullet list and a link.
|
|
7
3
|
*
|
|
8
|
-
*
|
|
4
|
+
* The value is markdown, committed when the surface loses focus, if changed. A link is http(s),
|
|
5
|
+
* mailto, tel or relative; any other scheme is dropped.
|
|
6
|
+
*
|
|
7
|
+
* Events: `lintje-change` `string` (the markdown), `lintje-values-change` `{ [name]: value }`
|
|
8
|
+
* (with a `name`), `lintje-reset` (the reset link was pressed).
|
|
9
9
|
*/
|
|
10
10
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
11
11
|
import { LintjeInputElement } from '../shared/input.js';
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
12
|
+
import '../../overlays/popover/popover.js';
|
|
13
|
+
import '../../actions/button/button.js';
|
|
14
14
|
import '../text-input/text-input.js';
|
|
15
15
|
export type EditorFormat = 'bold' | 'italic' | 'heading' | 'list' | 'link';
|
|
16
16
|
export declare class LintjeTextEditor extends LintjeInputElement {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-text-input>` — a text field:
|
|
3
|
-
* search, password or email. It checks nothing itself; the host sets `error`.
|
|
2
|
+
* `<lintje-text-input>` — a text field: text, search, password or email.
|
|
4
3
|
*
|
|
5
|
-
* It commits on `change` (leaving the field,
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* It checks nothing itself: the host sets `error`. It commits on `change` (leaving the field,
|
|
5
|
+
* Enter), since every commit is a URL change and a tile reload, and never commits the same value
|
|
6
|
+
* twice.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
9
|
+
* `lintje-reset` (the reset link was pressed).
|
|
8
10
|
*/
|
|
9
11
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
10
|
-
import '
|
|
12
|
+
import '../../actions/button/button.js';
|
|
11
13
|
import { LintjeFormInputElement } from '../shared/input.js';
|
|
12
14
|
export type TextInputType = 'text' | 'search' | 'password' | 'email';
|
|
13
15
|
/** When a typed value is committed: on leaving the field, or 300 ms after the last key. */
|
|
@@ -22,7 +24,10 @@ export declare class LintjeTextInput extends LintjeFormInputElement {
|
|
|
22
24
|
clearable: boolean;
|
|
23
25
|
stacked: boolean;
|
|
24
26
|
type: TextInputType;
|
|
25
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The attribute `commit`; `commit()` is the method every input commits through. `input`
|
|
29
|
+
* bundles keystrokes and commits 300 ms after the last.
|
|
30
|
+
*/
|
|
26
31
|
commitOn: CommitOn;
|
|
27
32
|
/** Passed to the native input as is. */
|
|
28
33
|
autocomplete: string;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-textarea>` — the multi-line text field: three to twelve lines
|
|
3
|
-
*
|
|
4
|
-
* focus ring, takes the type of where it stands and fills its height, for a surface that frames
|
|
5
|
-
* the text and draws the ring itself (`lintje-translator`). Typing past the limit is allowed (a paste lands whole); the field
|
|
6
|
-
* shows the error, alerted once as the text crosses the limit. The counter is read out from 90 %
|
|
7
|
-
* of the limit on.
|
|
2
|
+
* `<lintje-textarea>` — the multi-line text field: three to twelve lines, with a counter when
|
|
3
|
+
* there is a `maxlength`.
|
|
8
4
|
*
|
|
9
|
-
*
|
|
5
|
+
* It commits like `lintje-text-input`; Ctrl+Enter commits and submits a host's form. Typing past
|
|
6
|
+
* the limit is allowed, so a paste lands whole: the field shows the error. The counter is
|
|
7
|
+
* `part="counter"`, so a surface can stand it on its own line.
|
|
10
8
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* Events: `lintje-change` `string`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
10
|
+
* `lintje-reset` (the reset link was pressed).
|
|
13
11
|
*/
|
|
14
12
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
13
|
import { LintjeFormInputElement } from '../shared/input.js';
|
|
@@ -24,14 +22,17 @@ export declare class LintjeTextarea extends LintjeFormInputElement {
|
|
|
24
22
|
static properties: PropertyDeclarations;
|
|
25
23
|
value: string;
|
|
26
24
|
placeholder: string;
|
|
27
|
-
/** The limit the counter counts to. */
|
|
25
|
+
/** The limit the counter counts to; the counter is read out from 90 % of it on. */
|
|
28
26
|
maxlength?: number;
|
|
29
27
|
/** The attribute `commit`; `commit()` is the method every input commits through. */
|
|
30
28
|
commitOn: CommitOn;
|
|
31
29
|
stacked: boolean;
|
|
32
30
|
/** The least number of lines the field shows. */
|
|
33
31
|
rows: number;
|
|
34
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* `field` (default): the bordered field. `plain`: no box and no focus ring, the type of where it
|
|
34
|
+
* stands and the full height, for a surface that frames the text and draws the ring itself.
|
|
35
|
+
*/
|
|
35
36
|
variant: TextareaVariant;
|
|
36
37
|
private readonly typing;
|
|
37
38
|
private get counterId();
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-time-input>` — a time of day, `HH:MM` on a 24-hour clock, or
|
|
3
|
-
* or picked from a list. Typed text is read on leaving the field or Enter (`time-format.ts`).
|
|
4
|
-
* The list holds the times from `min` to `max`, `step` minutes apart; a typed value between two
|
|
5
|
-
* of them stays as typed, and the list opens on the first time at or after it without selecting
|
|
6
|
-
* one. The element checks its own text and shows a message in place of the hint; a host's
|
|
7
|
-
* `error` wins. It knows no day or time zone. Tab out of the element closes the list, so it does
|
|
8
|
-
* not cover the next field.
|
|
2
|
+
* `<lintje-time-input>` — a time of day, `HH:MM` on a 24-hour clock, typed or picked from a list.
|
|
9
3
|
*
|
|
10
|
-
*
|
|
4
|
+
* The element reads typed text on leaving the field or Enter, checks it and shows a message in
|
|
5
|
+
* place of the hint; a host's `error` wins. A typed time between two in the list stays as typed.
|
|
6
|
+
* It knows no day or time zone. Tab out of the element closes the list.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-change` `string | null` (`HH:MM`), `lintje-values-change` `{ [name]: value }`
|
|
9
|
+
* (with a `name`), `lintje-reset` (the reset link was pressed).
|
|
11
10
|
*/
|
|
12
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
12
|
import { LintjeInputElement } from '../shared/input.js';
|
|
14
|
-
import '
|
|
13
|
+
import '../../overlays/popover/popover.js';
|
|
15
14
|
export declare class LintjeTimeInput extends LintjeInputElement {
|
|
16
15
|
static styles: import("lit").CSSResult[];
|
|
17
16
|
static properties: PropertyDeclarations;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-toggle>` — a switch for immediate effect: it commits when switched, never in a form.
|
|
3
|
+
*
|
|
3
4
|
* A value that waits for a button is a checkbox.
|
|
4
5
|
*
|
|
5
|
-
* Events: `lintje-change
|
|
6
|
+
* Events: `lintje-change` `boolean`, `lintje-values-change` `{ [name]: value }` (with a `name`),
|
|
7
|
+
* `lintje-reset` (the reset link was pressed).
|
|
6
8
|
*/
|
|
7
9
|
import { type PropertyDeclarations, type TemplateResult } from 'lit';
|
|
8
10
|
import { LintjeInputElement } from '../shared/input.js';
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-expander>` — a title you press; what is slotted under it shows or hides.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `leading` puts the chevron before the title and the content in line with the title's text, for
|
|
8
|
-
* a stack of expanders that read as rows. `columns` sets the title in a column of its own
|
|
9
|
-
* (`--lintje-expander-label`) with the content beside it, as rows of text do beside their speaker;
|
|
10
|
-
* a narrow expander stacks them again.
|
|
4
|
+
* Closed, the content stays in the DOM, out of the tab order and the accessibility tree. What is
|
|
5
|
+
* slotted in `actions` stands beside the title, outside its button: a few icon buttons about the
|
|
6
|
+
* content.
|
|
11
7
|
*
|
|
12
|
-
* Events: `lintje-toggle` (open, after the reader pressed the title).
|
|
8
|
+
* Events: `lintje-toggle` `boolean` (open, after the reader pressed the title).
|
|
13
9
|
*/
|
|
14
10
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
|
-
import { LintjeGridItemElement } from '
|
|
11
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
16
12
|
export declare class LintjeExpander extends LintjeGridItemElement {
|
|
17
13
|
#private;
|
|
18
14
|
static styles: import("lit").CSSResult[];
|
|
@@ -24,9 +20,12 @@ export declare class LintjeExpander extends LintjeGridItemElement {
|
|
|
24
20
|
open: boolean;
|
|
25
21
|
/** No surface of its own: an expander inside a tile is not a second card. */
|
|
26
22
|
flat: boolean;
|
|
27
|
-
/** The chevron before the title, the content under the title's text. */
|
|
23
|
+
/** The chevron before the title, the content under the title's text: expanders read as rows. */
|
|
28
24
|
leading: boolean;
|
|
29
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The title in a column of its own (`--lintje-expander-label`), the content beside it, as rows
|
|
27
|
+
* of text beside their speaker; a narrow expander stacks them again.
|
|
28
|
+
*/
|
|
30
29
|
columns: boolean;
|
|
31
30
|
protected updated(changed: PropertyValues<this>): void;
|
|
32
31
|
protected render(): TemplateResult;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-grid>` — the 12-column grid.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* `<lintje-grid>` — the 12-column grid.
|
|
3
|
+
*
|
|
4
|
+
* Its items are its own children; a tile carries `span` itself and needs no wrapper.
|
|
5
5
|
*/
|
|
6
6
|
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
7
|
-
import { LintjeElement } from '
|
|
7
|
+
import { LintjeElement } from '../../../core/element.js';
|
|
8
8
|
export declare class LintjeGrid extends LintjeElement {
|
|
9
9
|
static styles: import("lit").CSSResult;
|
|
10
10
|
static properties: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** `<lintje-grid-item>` — a grid cell for non-`lintje-` content.
|
|
1
|
+
/** `<lintje-grid-item>` — a grid cell for non-`lintje-` content. */
|
|
2
2
|
import { type TemplateResult } from 'lit';
|
|
3
|
-
import { LintjeGridItemElement } from '
|
|
3
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
4
4
|
export declare class LintjeGridItem extends LintjeGridItemElement {
|
|
5
5
|
static styles: import("lit").CSSResult;
|
|
6
6
|
protected render(): TemplateResult;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `<lintje-split-pane>` — two panels side by side with a split the reader moves.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* it
|
|
4
|
+
* It moves without dragging too: a click on the strip lifts the split and the next click places
|
|
5
|
+
* it; Escape or a click outside puts it back, a double click returns to 50/50. Below 768 px there
|
|
6
|
+
* are never two panels: a segmented control chooses which one shows.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* Events: `lintje-split-change` (the percentage), `lintje-pane-change` (`'start'` | `'end'`).
|
|
8
|
+
* Events: `lintje-split-change` `number` (the percentage), `lintje-pane-change`
|
|
9
|
+
* `'start' | 'end'`.
|
|
11
10
|
*/
|
|
12
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
12
|
import { LintjeElement } from '../../../core/element.js';
|
|
@@ -31,6 +30,7 @@ export declare class LintjeSplitPane extends LintjeElement {
|
|
|
31
30
|
/** The two panels' names, for the phone's choice. */
|
|
32
31
|
startLabel: string;
|
|
33
32
|
endLabel: string;
|
|
33
|
+
/** The panel shown below 768 px; a host that keeps it in the URL sets it back. */
|
|
34
34
|
pane: SplitPaneSide;
|
|
35
35
|
protected dragging: boolean;
|
|
36
36
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-tabs>` — switches between panels slotted under each tab's `value`.
|
|
3
|
-
* `value`; the tabs only ask. A modified click on a link tab is the browser's.
|
|
4
|
-
* The row is one tab stop: arrows choose at once, and a disabled tab is reached but not chosen.
|
|
5
|
-
* `variant="panel"` draws large tabs that head a panel: each with an icon and a hint, the chosen
|
|
6
|
-
* one running into the panel below; on a phone the icon stands above the label and the hint goes.
|
|
7
|
-
* When every tab is a link, the row is a `<nav>` of links, the chosen one `aria-current="page"`,
|
|
8
|
-
* with the same look: pages are no tabs, and the content under it is the page's, not a tabpanel.
|
|
2
|
+
* `<lintje-tabs>` — switches between panels slotted under each tab's `value`.
|
|
9
3
|
*
|
|
10
|
-
*
|
|
4
|
+
* The host holds `value`: the tabs only ask. The row is one tab stop; arrows choose at once. When
|
|
5
|
+
* every tab is a link, the row is a `<nav>` of links with the same look, and the content under it
|
|
6
|
+
* is the page's, not a tab panel.
|
|
7
|
+
*
|
|
8
|
+
* Events: `lintje-tab-change` `string` (the value), `lintje-navigate` `{ href }` (a tab with an
|
|
9
|
+
* `href`).
|
|
11
10
|
*/
|
|
12
11
|
import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
13
12
|
import { LintjeElement } from '../../../core/element.js';
|
|
14
|
-
import '
|
|
13
|
+
import '../../feedback/badge/badge.js';
|
|
15
14
|
export interface TabItem {
|
|
16
15
|
/** What `lintje-tab-change` carries and the name of the panel's slot. */
|
|
17
16
|
value: string;
|
|
@@ -40,7 +39,10 @@ export declare class LintjeTabs extends LintjeElement {
|
|
|
40
39
|
/** The chosen tab's value; the first tab when unset. */
|
|
41
40
|
value?: string;
|
|
42
41
|
label: string;
|
|
43
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* `line` (default): a row over the content. `panel`: large tabs that head a bordered panel, each
|
|
44
|
+
* with an icon and a hint; on a phone the icon stands above the label and the hint goes.
|
|
45
|
+
*/
|
|
44
46
|
variant: TabsVariant;
|
|
45
47
|
protected edges: {
|
|
46
48
|
start: boolean;
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-tile>` — the frame around a chart, map or table.
|
|
3
|
-
* legend, content, legend (`legend-below`), footnote. `slot="aside"` puts a key figure beside the
|
|
4
|
-
* content, above it below 768 px. Hover actions show on focus too, always on touch screens.
|
|
2
|
+
* `<lintje-tile>` — the frame around a chart, map or table.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
4
|
+
* Top to bottom: header, notice, intro, legend, content, legend (`legend-below`), footnote.
|
|
5
|
+
* `slot="aside"` puts a key figure beside the content, above it below 768 px. Hover actions show
|
|
6
|
+
* on focus too, and always on touch screens. The tile expands and downloads nothing itself: the
|
|
7
|
+
* host answers its events.
|
|
8
|
+
*
|
|
9
|
+
* Events: `lintje-tile-expand`, `lintje-tile-download`.
|
|
7
10
|
*/
|
|
8
11
|
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
9
|
-
import { LintjeGridItemElement } from '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
|
|
12
|
+
import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
|
|
13
|
+
import '../../actions/button/button.js';
|
|
14
|
+
import '../../actions/icon-button/icon-button.js';
|
|
15
|
+
import '../../feedback/status-dot/status-dot.js';
|
|
16
|
+
import '../../feedback/skeleton/skeleton.js';
|
|
17
|
+
import type { ContentStateKind } from '../../shared/tone.js';
|
|
18
|
+
/** The same four as `ContentState` in the contract. */
|
|
19
|
+
export type ContentState = ContentStateKind;
|
|
15
20
|
export declare class LintjeTile extends LintjeGridItemElement {
|
|
16
21
|
#private;
|
|
17
22
|
static styles: import("lit").CSSResult[];
|
|
@@ -70,6 +75,10 @@ export declare class LintjeTile extends LintjeGridItemElement {
|
|
|
70
75
|
flush: {
|
|
71
76
|
type: BooleanConstructor;
|
|
72
77
|
};
|
|
78
|
+
breakable: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
reflect: boolean;
|
|
81
|
+
};
|
|
73
82
|
filled: {
|
|
74
83
|
state: boolean;
|
|
75
84
|
};
|
|
@@ -97,6 +106,9 @@ export declare class LintjeTile extends LintjeGridItemElement {
|
|
|
97
106
|
/** The content runs to the tile's edges and indents what it draws by the tile's padding: rows
|
|
98
107
|
* whose lines reach the frame, as a work list's. */
|
|
99
108
|
flush: boolean;
|
|
109
|
+
/** On paper the tile may break between two sheets, as a long table does; otherwise it moves to
|
|
110
|
+
* the next sheet whole where it fits. */
|
|
111
|
+
breakable: boolean;
|
|
100
112
|
/** The words in the loading or error live region, or `null`; filled a frame after the region
|
|
101
113
|
* is drawn, because a region that arrives with its text is not announced. */
|
|
102
114
|
protected filled: string | null;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `<lintje-map>` — a map in its tile.
|
|
3
|
-
* to confirm it in the next `data`. `tile.expandable` shows the same map again in the modal; the
|
|
4
|
-
* modal's own events stop here.
|
|
2
|
+
* `<lintje-map>` — a map in its tile.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `
|
|
9
|
-
* in the URL can drop it. With `data.controls.lasso`, `.circle` or `.rect` a drawn area chooses
|
|
10
|
-
* every mark in it — two or more tools share one button that opens their menu:
|
|
11
|
-
* `lintje-area-select` `{area, ids}`, and `{area: null, ids: []}` when it is undone; the host
|
|
4
|
+
* A new layer shows at once and expects the host to confirm it in the next `data`. With
|
|
5
|
+
* `tile.expandable` the same map shows again in the modal, whose own events stop here. With
|
|
6
|
+
* `data.controls.lasso`, `.circle` or `.rect` a drawn area chooses every mark in it; the host
|
|
12
7
|
* keeps the area in its URL and sends it back as `selectedArea`.
|
|
8
|
+
*
|
|
9
|
+
* Events: `lintje-mark-select` `{ id, label, href? }` (deselected, `id: null` and
|
|
10
|
+
* `href: data.clearHref`), `lintje-layer-change` `string` (the chosen layer's value),
|
|
11
|
+
* `lintje-area-select` `{ area, ids }` (undone, `{ area: null, ids: [] }`).
|
|
13
12
|
*/
|
|
14
13
|
import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
|
|
15
14
|
import { type FrameSettings } from '../../../core/element.js';
|
|
16
15
|
import { LintjeContentTileElement } from '../../shared/content-tile.js';
|
|
17
16
|
import '../../feedback/announcement/announcement.js';
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
17
|
+
import '../../layout/tile/tile.js';
|
|
18
|
+
import '../../overlays/tooltip/tooltip.js';
|
|
20
19
|
import type { MapData } from '../../../types.js';
|
|
21
20
|
export declare class LintjeMap extends LintjeContentTileElement {
|
|
22
21
|
#private;
|
|
@@ -26,12 +25,14 @@ export declare class LintjeMap extends LintjeContentTileElement {
|
|
|
26
25
|
/** The chosen layer, shown before the host confirms it. */
|
|
27
26
|
layer?: string;
|
|
28
27
|
protected get dataSettings(): FrameSettings | undefined;
|
|
28
|
+
connectedCallback(): void;
|
|
29
29
|
disconnectedCallback(): void;
|
|
30
30
|
protected expandChanged(open: boolean): void;
|
|
31
31
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
32
32
|
private png;
|
|
33
33
|
private csv;
|
|
34
34
|
protected render(): TemplateResult | typeof nothing;
|
|
35
|
+
/** The map, or its skeleton for the tile's `loading` slot; empty and error are the tile's. */
|
|
35
36
|
private content;
|
|
36
37
|
/** Refocuses the chosen mark so clearing does not drop a keyboard user at the top; the map area
|
|
37
38
|
* takes the focus when the mark is gone after a redraw. */
|