lintje 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist-elements/actions.js +1 -1
  2. package/dist-elements/charts.js +1 -1
  3. package/dist-elements/chunks/{base-rBLTcEIv.js → base-Bg-IFOPG.js} +134 -105
  4. package/dist-elements/chunks/{date-format-B5DPGjAw.js → date-format-mHtZyBys.js} +28 -2
  5. package/dist-elements/chunks/disclosure-BXTX04gM.js +4 -0
  6. package/dist-elements/chunks/{disclosure-CHasOudX.js → disclosure-CMXhX-Vb.js} +7 -7
  7. package/dist-elements/chunks/download-y528pIHP.js +230 -0
  8. package/dist-elements/chunks/{focus-trap-w3vCamJ6.js → focus-trap-9BnE-xWv.js} +1 -1
  9. package/dist-elements/chunks/{input-jQVTln7H.js → input-BtuNFSWk.js} +13 -13
  10. package/dist-elements/chunks/{player-Bq9YGnpt.js → player-DXOZEyEy.js} +24 -24
  11. package/dist-elements/chunks/{sentence-CLNJOeXz.js → sentence-BI3lwEuT.js} +3 -3
  12. package/dist-elements/chunks/{stagger-9hYzxhMG.js → stagger-qGD3wmhg.js} +145 -123
  13. package/dist-elements/core.js +1 -1
  14. package/dist-elements/custom-elements.json +436 -26
  15. package/dist-elements/feedback.js +1 -1
  16. package/dist-elements/guides/dashboard.md +1 -1
  17. package/dist-elements/guides/events.md +3 -2
  18. package/dist-elements/guides/loading.md +3 -3
  19. package/dist-elements/guides/start.md +1 -1
  20. package/dist-elements/inputs.js +1 -0
  21. package/dist-elements/layout.js +1 -1
  22. package/dist-elements/lintje.js +22659 -22216
  23. package/dist-elements/map.js +1 -1
  24. package/dist-elements/overlays.js +1 -1
  25. package/dist-elements/tag/activity-log.js +11 -11
  26. package/dist-elements/tag/ai-label.js +7 -7
  27. package/dist-elements/tag/announcement.js +19 -19
  28. package/dist-elements/tag/app-search.js +21 -21
  29. package/dist-elements/tag/audio-player.js +34 -34
  30. package/dist-elements/tag/badge.js +1 -1
  31. package/dist-elements/tag/breadcrumbs.js +11 -11
  32. package/dist-elements/tag/button.js +1 -1
  33. package/dist-elements/tag/card-list.js +1 -1
  34. package/dist-elements/tag/card.js +25 -25
  35. package/dist-elements/tag/chart.d.ts +1 -0
  36. package/dist-elements/tag/chart.js +1868 -0
  37. package/dist-elements/tag/chat-answer.js +28 -28
  38. package/dist-elements/tag/chat-composer.js +20 -20
  39. package/dist-elements/tag/chat-message.js +9 -9
  40. package/dist-elements/tag/chat-strip.js +16 -16
  41. package/dist-elements/tag/chat-suggestions.js +1 -1
  42. package/dist-elements/tag/chat.js +27 -27
  43. package/dist-elements/tag/checkbox.js +6 -6
  44. package/dist-elements/tag/code.js +8 -8
  45. package/dist-elements/tag/combobox.js +13 -13
  46. package/dist-elements/tag/confirm-dialog.js +6 -6
  47. package/dist-elements/tag/conflict-alert.js +5 -5
  48. package/dist-elements/tag/copy-button.js +7 -7
  49. package/dist-elements/tag/data-table.js +179 -179
  50. package/dist-elements/tag/date-input.js +34 -42
  51. package/dist-elements/tag/date-range.js +33 -33
  52. package/dist-elements/tag/description-list.js +20 -20
  53. package/dist-elements/tag/document-viewer.js +19 -19
  54. package/dist-elements/tag/drawer.js +7 -7
  55. package/dist-elements/tag/empty-state.js +11 -11
  56. package/dist-elements/tag/error-summary.js +8 -8
  57. package/dist-elements/tag/expander.js +7 -7
  58. package/dist-elements/tag/explainer.js +9 -9
  59. package/dist-elements/tag/field.js +4 -4
  60. package/dist-elements/tag/file-upload.js +20 -20
  61. package/dist-elements/tag/filter-bar.js +35 -35
  62. package/dist-elements/tag/filter-sheet.js +6 -6
  63. package/dist-elements/tag/filter-zone.js +21 -21
  64. package/dist-elements/tag/footer.js +1 -1
  65. package/dist-elements/tag/form-actions.js +7 -7
  66. package/dist-elements/tag/form-section.js +3 -3
  67. package/dist-elements/tag/form.js +4 -4
  68. package/dist-elements/tag/gallery.js +6 -6
  69. package/dist-elements/tag/grid-item.js +1 -1
  70. package/dist-elements/tag/grid.js +1 -1
  71. package/dist-elements/tag/hero.js +6 -6
  72. package/dist-elements/tag/highlight.js +6 -6
  73. package/dist-elements/tag/icon-button.js +1 -1
  74. package/dist-elements/tag/icon.js +1 -1
  75. package/dist-elements/tag/job-list.js +6 -6
  76. package/dist-elements/tag/kpi-row.js +7 -5
  77. package/dist-elements/tag/kpi.js +259 -69
  78. package/dist-elements/tag/level-meter.js +5 -5
  79. package/dist-elements/tag/list.js +28 -28
  80. package/dist-elements/tag/logo.js +9 -9
  81. package/dist-elements/tag/map.d.ts +1 -0
  82. package/dist-elements/tag/map.js +21910 -0
  83. package/dist-elements/tag/menu-button.js +48 -47
  84. package/dist-elements/tag/modal.js +9 -9
  85. package/dist-elements/tag/multiselect.js +18 -18
  86. package/dist-elements/tag/note.js +4 -4
  87. package/dist-elements/tag/notifications.js +24 -24
  88. package/dist-elements/tag/number-input.js +8 -8
  89. package/dist-elements/tag/page-header.js +13 -13
  90. package/dist-elements/tag/pagination.js +27 -27
  91. package/dist-elements/tag/popover.js +1 -1
  92. package/dist-elements/tag/progress-bar.js +1 -1
  93. package/dist-elements/tag/prose.js +4 -4
  94. package/dist-elements/tag/qr-code.js +6 -6
  95. package/dist-elements/tag/radio-group.js +7 -7
  96. package/dist-elements/tag/range.js +13 -13
  97. package/dist-elements/tag/recording-status.js +8 -8
  98. package/dist-elements/tag/repeater.js +1 -1
  99. package/dist-elements/tag/segmented.js +7 -7
  100. package/dist-elements/tag/select.js +6 -6
  101. package/dist-elements/tag/session-expiry.js +13 -13
  102. package/dist-elements/tag/shell.js +168 -168
  103. package/dist-elements/tag/shortcuts.js +8 -8
  104. package/dist-elements/tag/skeleton.js +1 -1
  105. package/dist-elements/tag/slot-picker.d.ts +1 -0
  106. package/dist-elements/tag/slot-picker.js +74 -0
  107. package/dist-elements/tag/sortable-list.js +11 -11
  108. package/dist-elements/tag/spinner.js +1 -1
  109. package/dist-elements/tag/split-pane.js +4 -4
  110. package/dist-elements/tag/status-dot.js +1 -1
  111. package/dist-elements/tag/stepper.js +13 -13
  112. package/dist-elements/tag/streaming-text.js +15 -15
  113. package/dist-elements/tag/sub-nav.js +26 -26
  114. package/dist-elements/tag/tabs.js +13 -13
  115. package/dist-elements/tag/tag-input.js +14 -14
  116. package/dist-elements/tag/text-editor.js +7 -7
  117. package/dist-elements/tag/text-input.js +10 -10
  118. package/dist-elements/tag/textarea.js +6 -6
  119. package/dist-elements/tag/tile.js +1 -1
  120. package/dist-elements/tag/time-input.js +136 -42
  121. package/dist-elements/tag/toast.js +10 -10
  122. package/dist-elements/tag/toggle.js +6 -6
  123. package/dist-elements/tag/toggletip.js +11 -11
  124. package/dist-elements/tag/tooltip.js +1 -1
  125. package/dist-elements/tag/transcript.js +31 -31
  126. package/dist-elements/tag/translator.js +7 -7
  127. package/dist-elements/tag/tree-view.js +12 -12
  128. package/dist-elements/tag/user-menu.js +31 -30
  129. package/dist-elements/tag/video-player.js +13 -13
  130. package/dist-elements/tokens.css +2 -0
  131. package/dist-elements/types/bundle/charts.d.ts +1 -1
  132. package/dist-elements/types/bundle/index.d.ts +1 -1
  133. package/dist-elements/types/bundle/inputs.d.ts +1 -0
  134. package/dist-elements/types/bundle/map.d.ts +1 -1
  135. package/dist-elements/types/components/charts/{chart-tile/chart-tile.d.ts → chart/chart.d.ts} +7 -7
  136. package/dist-elements/types/components/charts/kpi/gauge.d.ts +18 -0
  137. package/dist-elements/types/components/charts/kpi/kpi.d.ts +28 -3
  138. package/dist-elements/types/components/chat/chat-answer/chat-answer.d.ts +1 -1
  139. package/dist-elements/types/components/index.d.ts +8 -5
  140. package/dist-elements/types/components/inputs/date-input/date-format.d.ts +4 -0
  141. package/dist-elements/types/components/inputs/slot-picker/slot-picker.d.ts +41 -0
  142. package/dist-elements/types/components/inputs/time-input/time-format.d.ts +4 -0
  143. package/dist-elements/types/components/inputs/time-input/time-input.d.ts +25 -6
  144. package/dist-elements/types/components/map/{map-tile/map-tile.d.ts → map/map.d.ts} +10 -6
  145. package/dist-elements/types/components/shared/charts/histogram-chart/histogram-chart.d.ts +33 -0
  146. package/dist-elements/types/components/shared/charts/index.d.ts +3 -1
  147. package/dist-elements/types/components/shared/charts/map-chart/area.d.ts +16 -0
  148. package/dist-elements/types/components/shared/charts/map-chart/drawings.d.ts +6 -2
  149. package/dist-elements/types/components/shared/charts/map-chart/geo.d.ts +6 -0
  150. package/dist-elements/types/components/shared/charts/map-chart/leaflet.d.ts +40 -2
  151. package/dist-elements/types/components/shared/charts/map-chart/map-chart.d.ts +17 -3
  152. package/dist-elements/types/components/shared/charts/map-chart/map-legend.d.ts +26 -0
  153. package/dist-elements/types/components/shared/charts/map-chart/marks.d.ts +47 -0
  154. package/dist-elements/types/components/shared/charts/map-chart/reveal.d.ts +1 -1
  155. package/dist-elements/types/components/shared/charts/scatter-chart/scatter-chart.d.ts +29 -0
  156. package/dist-elements/types/components/shared/charts/shared/axes.d.ts +21 -4
  157. package/dist-elements/types/components/shared/charts/shared/chart-icons.d.ts +4 -3
  158. package/dist-elements/types/components/shared/charts/shared/controller.d.ts +27 -15
  159. package/dist-elements/types/components/shared/charts/shared/types.d.ts +112 -6
  160. package/dist-elements/types/core/format.d.ts +5 -2
  161. package/dist-elements/types/icons/register.d.ts +1 -1
  162. package/dist-elements/types/primitives/shared/place.d.ts +1 -1
  163. package/dist-elements/types/primitives/tooltip/tooltip.d.ts +2 -0
  164. package/dist-elements/types/types.d.ts +37 -7
  165. package/dist-icons/functioneel-cirkelselectie.svg +1 -0
  166. package/dist-icons/functioneel-lasso.svg +1 -0
  167. package/dist-icons/functioneel-punaise-outline.svg +1 -0
  168. package/dist-icons/functioneel-punaise.svg +1 -0
  169. package/dist-icons/functioneel-rechthoekselectie.svg +1 -0
  170. package/dist-icons/functioneel-selectie.svg +1 -0
  171. package/package.json +1 -1
  172. package/dist-elements/chunks/disclosure-Z7Ny17sS.js +0 -4
  173. package/dist-elements/chunks/download-lFooAfD1.js +0 -226
  174. package/dist-elements/tag/chart-tile.d.ts +0 -1
  175. package/dist-elements/tag/chart-tile.js +0 -1474
  176. package/dist-elements/tag/map-tile.d.ts +0 -1
  177. package/dist-elements/tag/map-tile.js +0 -22292
@@ -1,12 +1,13 @@
1
- import { $ as e, Bt as t, G as n, Gt as r, Ht as i, I as a, Kt as o, Z as s, et as c, zt as l } from "../chunks/base-rBLTcEIv.js";
2
- import { nextRow as u, renderMenuEntries as d, t as f } from "./menu-button.js";
1
+ import { $ as e, Bt as t, G as n, Gt as r, Ht as i, I as a, Z as o, et as s, qt as c, zt as l } from "../chunks/base-Bg-IFOPG.js";
2
+ import { n as u, nextRow as d, renderMenuEntries as f, t as p } from "./menu-button.js";
3
3
  //#region src/components/frame/user-menu/user-menu.css?inline
4
- var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigation bar; the menu is a fixed popover\n * and takes no space. `inline`, it is a block at the bottom of the mobile navigation.\n * `menu-button.css` is adopted beside this file: the rows are its `.lintje-menu__row`.\n */\n:host { display: inline-flex; flex: none; vertical-align: middle; }\n:host([inline]) { display: block; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* The avatar and the chevron that says it opens a menu; at least `--h-touch` high. */\n.lintje-user-menu__trigger {\n display: flex; align-items: center; justify-content: center;\n gap: var(--space-2);\n min-width: var(--h-touch); height: var(--lintje-tool-height, var(--h-touch));\n padding: 0 var(--space-3);\n color: var(--color-nav-text);\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-user-menu__trigger:hover,\n.lintje-user-menu__trigger.is-open { background: var(--color-nav-hover); }\n\n.lintje-user-menu__avatar {\n display: flex; align-items: center; justify-content: center;\n flex: none;\n width: 2rem; height: 2rem;\n border-radius: var(--radius-round);\n background: var(--color-nav-avatar-bg);\n color: var(--color-nav-avatar-text);\n font-size: 0.875rem; font-weight: 700;\n}\n\n.lintje-user-menu__panel {\n width: 17.5rem;\n max-width: 100%;\n font: var(--text-ui);\n color: var(--color-text-primary);\n}\n\n.lintje-user-menu__who {\n display: flex; align-items: center; gap: var(--space-3);\n padding: var(--space-3) var(--space-4);\n border-bottom: 1px solid var(--color-border-default);\n}\n.lintje-user-menu__names { min-width: 0; }\n.lintje-user-menu__name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }\n.lintje-user-menu__role { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }\n\n.lintje-user-menu__group { display: flex; flex-direction: column; padding: var(--space-1) 0; }\n.lintje-user-menu__group--logout { border-top: 1px solid var(--color-border-default); }\n.lintje-user-menu__group:first-child.lintje-user-menu__group--logout { border-top: 0; }\n.lintje-user-menu__logout { display: flex; flex-direction: column; margin: 0; }\n.lintje-user-menu__logout-row { font-weight: 700; }\n\n.lintje-user-menu__version {\n margin: 0;\n padding: var(--space-2) var(--space-4);\n border-top: 1px solid var(--color-border-default);\n font-size: 0.875rem;\n color: var(--color-text-muted);\n}\n\n.lintje-user-menu__panel.is-inline { width: 100%; color: var(--color-nav-text); }\n.lintje-user-menu__panel.is-inline .lintje-user-menu__who,\n.lintje-user-menu__panel.is-inline .lintje-user-menu__group--logout,\n.lintje-user-menu__panel.is-inline .lintje-user-menu__version { border-color: var(--color-nav-line); }\n.lintje-user-menu__panel.is-inline .lintje-user-menu__who { padding: var(--space-4) var(--space-5); }\n/* Small text on the theme fill takes the menu's own ink: the sub tint is 3.82:1 on #01689B. */\n.lintje-user-menu__panel.is-inline .lintje-user-menu__role,\n.lintje-user-menu__panel.is-inline .lintje-user-menu__version,\n.lintje-user-menu__panel.is-inline .lintje-menu__hint { color: var(--color-nav-text); }\n.lintje-user-menu__panel.is-inline .lintje-user-menu__version { padding: var(--space-2) var(--space-5); }\n.lintje-user-menu__panel.is-inline .lintje-menu__row {\n height: var(--h-touch);\n padding: 0 var(--space-5);\n color: var(--color-nav-text);\n}\n.lintje-user-menu__panel.is-inline .lintje-menu__row:hover { background: var(--color-nav-hover); }\n.lintje-user-menu__panel.is-inline .lintje-menu__row.is-disabled,\n.lintje-user-menu__panel.is-inline .lintje-menu__row.is-disabled .lintje-menu__hint { color: var(--color-nav-disabled); }\n.lintje-user-menu__panel.is-inline .lintje-menu__separator { background: var(--color-nav-line); }\n\n/* On the theme fill the orange ring disappears: the on-theme ring, as the side menu. */\n.lintje-user-menu__trigger:focus-visible,\n.lintje-user-menu__panel.is-inline :focus-visible { outline-color: var(--color-focus-on-theme); }\n\n/* Forced colours: the open button keeps a Highlight edge, the avatar a CanvasText ring. */\n@media (forced-colors: active) {\n .lintje-user-menu__trigger:focus-visible,\n .lintje-user-menu__panel.is-inline :focus-visible { outline-color: Highlight; }\n .lintje-user-menu__trigger.is-open:not(:focus-visible) { outline: 1px solid Highlight; outline-offset: -1px; }\n .lintje-user-menu__avatar { border: 1px solid CanvasText; }\n}\n", m = 0, h = class extends l {
4
+ var m = "/*\n * The host is the avatar button's `--h-touch` box in the navigation bar; the menu is a fixed popover\n * and takes no space. `inline`, it is a block at the bottom of the mobile navigation.\n * `menu-button.css` is adopted beside this file: the rows are its `.lintje-menu__row`.\n */\n:host { display: inline-flex; flex: none; vertical-align: middle; }\n:host([inline]) { display: block; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n/* The avatar and the chevron that says it opens a menu; at least `--h-touch` high. */\n.lintje-user-menu__trigger {\n display: flex; align-items: center; justify-content: center;\n gap: var(--space-2);\n min-width: var(--h-touch); height: var(--lintje-tool-height, var(--h-touch));\n padding: 0 var(--space-3);\n color: var(--color-nav-text);\n transition: background var(--dur-hover) var(--ease-in-motion);\n}\n.lintje-user-menu__trigger:hover,\n.lintje-user-menu__trigger.is-open { background: var(--color-nav-hover); }\n\n.lintje-user-menu__avatar {\n display: flex; align-items: center; justify-content: center;\n flex: none;\n width: 2rem; height: 2rem;\n border-radius: var(--radius-round);\n background: var(--color-nav-avatar-bg);\n color: var(--color-nav-avatar-text);\n font-size: 0.875rem; font-weight: 700;\n}\n\n.lintje-user-menu__panel {\n width: 17.5rem;\n max-width: 100%;\n font: var(--text-ui);\n color: var(--color-text-primary);\n}\n\n.lintje-user-menu__who {\n display: flex; align-items: center; gap: var(--space-3);\n padding: var(--space-3) var(--space-4);\n border-bottom: 1px solid var(--color-border-default);\n}\n.lintje-user-menu__names { min-width: 0; }\n.lintje-user-menu__name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }\n.lintje-user-menu__role { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }\n\n.lintje-user-menu__group { display: flex; flex-direction: column; padding: var(--space-1) 0; }\n.lintje-user-menu__group--logout { border-top: 1px solid var(--color-border-default); }\n.lintje-user-menu__group:first-child.lintje-user-menu__group--logout { border-top: 0; }\n.lintje-user-menu__logout { display: flex; flex-direction: column; margin: 0; }\n.lintje-user-menu__logout-row { font-weight: 700; }\n\n.lintje-user-menu__version {\n margin: 0;\n padding: var(--space-2) var(--space-4);\n border-top: 1px solid var(--color-border-default);\n font-size: 0.875rem;\n color: var(--color-text-muted);\n}\n\n.lintje-user-menu__panel.is-inline { width: 100%; color: var(--color-nav-text); }\n.lintje-user-menu__panel.is-inline .lintje-user-menu__who,\n.lintje-user-menu__panel.is-inline .lintje-user-menu__group--logout,\n.lintje-user-menu__panel.is-inline .lintje-user-menu__version { border-color: var(--color-nav-line); }\n.lintje-user-menu__panel.is-inline .lintje-user-menu__who { padding: var(--space-4) var(--space-5); }\n/* Small text on the theme fill takes the menu's own ink: the sub tint is 3.82:1 on #01689B. */\n.lintje-user-menu__panel.is-inline .lintje-user-menu__role,\n.lintje-user-menu__panel.is-inline .lintje-user-menu__version,\n.lintje-user-menu__panel.is-inline .lintje-menu__hint { color: var(--color-nav-text); }\n.lintje-user-menu__panel.is-inline .lintje-user-menu__version { padding: var(--space-2) var(--space-5); }\n.lintje-user-menu__panel.is-inline .lintje-menu__row {\n height: var(--h-touch);\n padding: 0 var(--space-5);\n color: var(--color-nav-text);\n}\n.lintje-user-menu__panel.is-inline .lintje-menu__row:hover { background: var(--color-nav-hover); }\n.lintje-user-menu__panel.is-inline .lintje-menu__row.is-disabled,\n.lintje-user-menu__panel.is-inline .lintje-menu__row.is-disabled .lintje-menu__hint { color: var(--color-nav-disabled); }\n.lintje-user-menu__panel.is-inline .lintje-menu__separator { background: var(--color-nav-line); }\n\n/* On the theme fill the orange ring disappears: the on-theme ring, as the side menu. */\n.lintje-user-menu__trigger:focus-visible,\n.lintje-user-menu__panel.is-inline :focus-visible { outline-color: var(--color-focus-on-theme); }\n\n/* Forced colours: the open button keeps a Highlight edge, the avatar a CanvasText ring. */\n@media (forced-colors: active) {\n .lintje-user-menu__trigger:focus-visible,\n .lintje-user-menu__panel.is-inline :focus-visible { outline-color: Highlight; }\n .lintje-user-menu__trigger.is-open:not(:focus-visible) { outline: 1px solid Highlight; outline-offset: -1px; }\n .lintje-user-menu__avatar { border: 1px solid CanvasText; }\n}\n", h = 0, g = class extends l {
5
5
  static {
6
6
  this.styles = [
7
7
  e,
8
- i(f),
9
- i(p)
8
+ i(u),
9
+ i(p),
10
+ i(m)
10
11
  ];
11
12
  }
12
13
  static {
@@ -45,7 +46,7 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
45
46
  }));
46
47
  }
47
48
  focusRow(e, t) {
48
- let n = this.rowElements(), r = u(this.rowStates(n), t, e);
49
+ let n = this.rowElements(), r = d(this.rowStates(n), t, e);
49
50
  r >= 0 && n[r]?.focus();
50
51
  }
51
52
  show(e) {
@@ -55,7 +56,7 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
55
56
  this.open = !1, e && this.trigger?.focus();
56
57
  }
57
58
  constructor() {
58
- super(), this.items = [], this.csrf = "", this.inline = !1, this.open = !1, this.#e = `lintje-user-menu-${++m}`, this.#t = null, this.onFocusOut = (e) => {
59
+ super(), this.items = [], this.csrf = "", this.inline = !1, this.open = !1, this.#e = `lintje-user-menu-${++h}`, this.#t = null, this.onFocusOut = (e) => {
59
60
  let t = e.relatedTarget;
60
61
  this.open && t && !n(t, this) && !n(this, t) && this.hide(!1);
61
62
  }, this.onTriggerKeydown = (e) => {
@@ -102,16 +103,16 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
102
103
  }
103
104
  }
104
105
  renderRow(e) {
105
- let t = this.inline ? r : "menuitem", n = this.inline ? r : "-1", i = s({
106
+ let t = this.inline ? r : "menuitem", n = this.inline ? r : "-1", i = o({
106
107
  "lintje-menu__row": !0,
107
108
  "focus-inset": !0,
108
109
  "is-danger": !!e.danger,
109
110
  "is-disabled": !!e.disabled
110
- }), a = o`${e.icon ? c(e.icon, {
111
+ }), a = c`${e.icon ? s(e.icon, {
111
112
  size: 16,
112
113
  className: "lintje-menu__icon"
113
- }) : r}<span class="lintje-menu__label">${e.label}</span>${e.hint ? o`<span class="lintje-menu__hint">${e.hint}</span>` : r}`;
114
- if (e.href && !e.disabled) return o`<a
114
+ }) : r}<span class="lintje-menu__label">${e.label}</span>${e.hint ? c`<span class="lintje-menu__hint">${e.hint}</span>` : r}`;
115
+ if (e.href && !e.disabled) return c`<a
115
116
  class=${i}
116
117
  role=${t}
117
118
  tabindex=${n}
@@ -119,7 +120,7 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
119
120
  @click=${(t) => this.choose(e, t)}
120
121
  >${a}</a
121
122
  >`;
122
- let l = o`<button
123
+ let l = c`<button
123
124
  type="button"
124
125
  class=${i}
125
126
  role=${t}
@@ -129,14 +130,14 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
129
130
  >
130
131
  ${a}
131
132
  </button>`;
132
- return e.disabled && e.reason ? o`<lintje-tooltip class="lintje-menu__tip" text=${e.reason}>${l}</lintje-tooltip>` : l;
133
+ return e.disabled && e.reason ? c`<lintje-tooltip class="lintje-menu__tip" text=${e.reason}>${l}</lintje-tooltip>` : l;
133
134
  }
134
135
  renderLogout() {
135
- let e = this.inline ? r : "menuitem", t = this.inline ? r : "-1", n = c("functioneel-uitloggen", {
136
+ let e = this.inline ? r : "menuitem", t = this.inline ? r : "-1", n = s("functioneel-uitloggen", {
136
137
  size: 16,
137
138
  className: "lintje-menu__icon"
138
- }), i = o`${n}<span class="lintje-menu__label">Afmelden</span>`;
139
- return this.logoutAction ? o`<form class="lintje-user-menu__logout" method="post" action=${this.logoutAction}>
139
+ }), i = c`${n}<span class="lintje-menu__label">Afmelden</span>`;
140
+ return this.logoutAction ? c`<form class="lintje-user-menu__logout" method="post" action=${this.logoutAction}>
140
141
  <input type="hidden" name="csrf_token" .value=${this.csrf} />
141
142
  <button
142
143
  type="submit"
@@ -146,7 +147,7 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
146
147
  >
147
148
  ${i}
148
149
  </button>
149
- </form>` : o`<button
150
+ </form>` : c`<button
150
151
  type="button"
151
152
  class="lintje-menu__row lintje-user-menu__logout-row focus-inset"
152
153
  role=${e}
@@ -158,18 +159,18 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
158
159
  }
159
160
  renderContent() {
160
161
  let e = this.user;
161
- return o`<div
162
- class=${s({
162
+ return c`<div
163
+ class=${o({
163
164
  "lintje-user-menu__panel": !0,
164
165
  "is-inline": this.inline
165
166
  })}
166
167
  @keydown=${this.onMenuKeydown}
167
168
  >
168
- ${e ? o`<div class="lintje-user-menu__who">
169
- ${this.inline ? o`<span class="lintje-user-menu__avatar" aria-hidden="true">${e.initials}</span>` : r}
169
+ ${e ? c`<div class="lintje-user-menu__who">
170
+ ${this.inline ? c`<span class="lintje-user-menu__avatar" aria-hidden="true">${e.initials}</span>` : r}
170
171
  <div class="lintje-user-menu__names">
171
172
  <p class="lintje-user-menu__name">${e.name}</p>
172
- ${e.role ? o`<p class="lintje-user-menu__role">${e.role}</p>` : r}
173
+ ${e.role ? c`<p class="lintje-user-menu__role">${e.role}</p>` : r}
173
174
  </div>
174
175
  </div>` : r}
175
176
  <div
@@ -177,20 +178,20 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
177
178
  role=${this.inline ? "group" : "menu"}
178
179
  aria-label=${e ? `Menu van ${e.name}` : "Gebruikersmenu"}
179
180
  >
180
- ${this.items.length ? o`<div class="lintje-user-menu__group">
181
- ${d(this.items, "lintje-user-menu", (e) => this.renderRow(e))}
181
+ ${this.items.length ? c`<div class="lintje-user-menu__group">
182
+ ${f(this.items, "lintje-user-menu", (e) => this.renderRow(e))}
182
183
  </div>` : r}
183
184
  <div class="lintje-user-menu__group lintje-user-menu__group--logout">${this.renderLogout()}</div>
184
185
  </div>
185
- ${this.version ? o`<p class="lintje-user-menu__version">Versie ${this.version}</p>` : r}
186
+ ${this.version ? c`<p class="lintje-user-menu__version">Versie ${this.version}</p>` : r}
186
187
  </div>`;
187
188
  }
188
189
  render() {
189
190
  if (this.inline) return this.renderContent();
190
191
  let e = this.user;
191
- return o`<button
192
+ return c`<button
192
193
  type="button"
193
- class=${s({
194
+ class=${o({
194
195
  "lintje-user-menu__trigger": !0,
195
196
  "is-open": this.open
196
197
  })}
@@ -202,7 +203,7 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
202
203
  @keydown=${this.onTriggerKeydown}
203
204
  >
204
205
  <span class="lintje-user-menu__avatar" aria-hidden="true">${e?.initials ?? ""}</span>
205
- ${c("functioneel-delta-omlaag", {
206
+ ${s("functioneel-delta-omlaag", {
206
207
  size: 16,
207
208
  rotate: this.open ? 180 : void 0
208
209
  })}
@@ -216,6 +217,6 @@ var p = "/*\n * The host is the avatar button's `--h-touch` box in the navigatio
216
217
  >`;
217
218
  }
218
219
  };
219
- t("lintje-user-menu", h);
220
+ t("lintje-user-menu", g);
220
221
  //#endregion
221
- export { h as LintjeUserMenu };
222
+ export { g as LintjeUserMenu };
@@ -1,7 +1,7 @@
1
- import { $ as e, Bt as t, Gt as n, Ht as r, Kt as i, Z as a, et as o, j as s, q as c } from "../chunks/base-rBLTcEIv.js";
1
+ import { $ as e, Bt as t, Gt as n, Ht as r, Z as i, et as a, j as o, q as s, qt as c } from "../chunks/base-Bg-IFOPG.js";
2
2
  import "./menu-button.js";
3
3
  import { n as l, o as u, p as d } from "../chunks/playback-DZJ_NMXv.js";
4
- import { n as f, t as p } from "../chunks/player-Bq9YGnpt.js";
4
+ import { n as f, t as p } from "../chunks/player-DXOZEyEy.js";
5
5
  //#region src/components/content/video-player/video-player.css?inline
6
6
  var m = ":host { display: block; min-width: 0; }\n:host([hidden]) { display: none; }\n\n/* ------------------------------------------------------------------------ */\n\n.lintje-video-player {\n border: 1px solid var(--color-border-default);\n background: var(--color-bg-surface);\n color: var(--color-text-primary);\n}\n\n/* No surface token stays black in dark, so the surface takes the ink on a light fill. */\n.lintje-video-player__stage {\n position: relative;\n aspect-ratio: 16 / 9;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--color-text-on-light-fill);\n overflow: hidden;\n}\n.lintje-video-player__video {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: contain;\n background: var(--color-text-on-light-fill);\n}\n\n/* What stands on the picture has a white edge, so the fill keeps apart from the dark. */\n.lintje-video-player__big-play.lintje-button,\n.lintje-video-player__retry.lintje-button {\n position: relative;\n border: 2px solid var(--color-text-on-fill);\n}\n.lintje-video-player__big-play.lintje-button { width: 64px; height: 64px; padding: 0; }\n.lintje-video-player__big-play.lintje-button.is-disabled {\n border-color: var(--color-text-on-fill);\n}\n\n/* A failed load says so where the picture would be: the announcement's light fill would float. */\n.lintje-video-player__failed {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--space-3);\n padding: 0 var(--space-6);\n text-align: center;\n color: var(--color-text-on-fill);\n}\n.lintje-video-player__failed-mark {\n width: var(--space-6);\n height: var(--space-6);\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--color-error);\n color: var(--color-text-inverse);\n}\n.lintje-video-player__failed-text { margin: 0; font: var(--text-ui); font-weight: 700; }\n\n.lintje-video-player__caption {\n position: absolute;\n left: var(--space-4);\n right: var(--space-4);\n bottom: var(--space-4);\n text-align: center;\n pointer-events: none;\n}\n.lintje-video-player__caption-text {\n padding: 2px var(--space-2);\n background: var(--color-text-on-light-fill);\n color: var(--color-text-on-fill);\n font: var(--text-body);\n box-decoration-break: clone;\n -webkit-box-decoration-break: clone;\n}\n\n/* Two lines at every width: the time beside the bar keeps the buttons on one line in a tile. */\n.lintje-video-player__controls {\n display: flex;\n flex-direction: column;\n gap: var(--space-2);\n padding: var(--space-3) var(--space-3) var(--space-2);\n}\n.lintje-video-player__timeline { display: flex; align-items: center; gap: var(--space-3); }\n.lintje-video-player__buttons { display: flex; align-items: center; gap: var(--space-1); }\n.lintje-video-player__speed {\n flex: none;\n padding: 0 var(--space-1);\n background: var(--color-term-bg);\n color: var(--color-accent-text);\n font: var(--text-small);\n font-weight: 700;\n font-variant-numeric: tabular-nums;\n}\n/* The menu's trigger takes the 48 px of the player's other buttons. */\n.lintje-video-player__more { margin-left: auto; --h-icon-button: var(--h-touch); }\n\n.lintje-video-player:fullscreen { display: flex; flex-direction: column; border: 0; }\n.lintje-video-player:fullscreen .lintje-video-player__stage {\n flex: 1 1 auto;\n min-height: 0;\n aspect-ratio: auto;\n}\n\n@media (max-width: 767px) {\n .lintje-video-player { border-left: 0; border-right: 0; }\n}\n\n/* Forced colours drop the fills: the speed and the mark keep an outline. */\n@media (forced-colors: active) {\n .lintje-video-player__speed,\n .lintje-video-player__failed-mark { outline: 1px solid CanvasText; }\n}\n", h = "ondertiteling", g = "audiodescriptie";
7
7
  function _(e, t) {
@@ -21,8 +21,8 @@ var v = class extends f {
21
21
  static {
22
22
  this.styles = [
23
23
  e,
24
- r(c),
25
24
  r(s),
25
+ r(o),
26
26
  r(p),
27
27
  r(m)
28
28
  ];
@@ -109,9 +109,9 @@ var v = class extends f {
109
109
  _(e, "f") ? (e.preventDefault(), this.toggleFullscreen()) : _(e, "c") ? (e.preventDefault(), this.captions = !this.captions) : this.onGroupKeydown(e);
110
110
  }
111
111
  renderFailed() {
112
- return i`<div class="lintje-video-player__failed" role="alert">
112
+ return c`<div class="lintje-video-player__failed" role="alert">
113
113
  <span class="lintje-video-player__failed-mark"
114
- >${o("functioneel-waarschuwing", { size: 14 })}</span
114
+ >${a("functioneel-waarschuwing", { size: 14 })}</span
115
115
  >
116
116
  <p class="lintje-video-player__failed-text">De video kan niet worden geladen.</p>
117
117
  <button
@@ -119,16 +119,16 @@ var v = class extends f {
119
119
  class="lintje-button lintje-button--primary lintje-video-player__retry"
120
120
  @click=${this.onRetry}
121
121
  >
122
- ${o("functioneel-refresh", { size: 20 })}
122
+ ${a("functioneel-refresh", { size: 20 })}
123
123
  <span class="lintje-button__label">Opnieuw proberen</span>
124
124
  </button>
125
125
  </div>`;
126
126
  }
127
127
  renderOverlay() {
128
128
  if (this.failed) return this.renderFailed();
129
- if (this.waiting) return i`<button
129
+ if (this.waiting) return c`<button
130
130
  type="button"
131
- class=${a({
131
+ class=${i({
132
132
  "lintje-button": !0,
133
133
  "lintje-button--primary": !0,
134
134
  "lintje-video-player__big-play": !0,
@@ -139,15 +139,15 @@ var v = class extends f {
139
139
  aria-disabled=${this.ready ? n : "true"}
140
140
  @click=${this.onBigPlay}
141
141
  >
142
- ${o("multimedia-player-afspelen", { size: 28 })}
142
+ ${a("multimedia-player-afspelen", { size: 28 })}
143
143
  </button>`;
144
144
  let e = this.captions ? this.caption : "";
145
- return e ? i`<div class="lintje-video-player__caption">
145
+ return e ? c`<div class="lintje-video-player__caption">
146
146
  <span class="lintje-video-player__caption-text">${e}</span>
147
147
  </div>` : n;
148
148
  }
149
149
  renderStage() {
150
- return i`<div class="lintje-video-player__stage">
150
+ return c`<div class="lintje-video-player__stage">
151
151
  <video
152
152
  class="lintje-video-player__video"
153
153
  preload="metadata"
@@ -166,12 +166,12 @@ var v = class extends f {
166
166
  });
167
167
  }
168
168
  render() {
169
- return i`<div class="lintje-video-player" role="group" aria-label=${this.name || "Video"} @keydown=${this.onKeydown}>
169
+ return c`<div class="lintje-video-player" role="group" aria-label=${this.name || "Video"} @keydown=${this.onKeydown}>
170
170
  ${this.renderStage()}
171
171
  <div class="lintje-video-player__controls">
172
172
  <div class="lintje-video-player__timeline">
173
173
  ${this.renderBar()} ${this.renderTime(!0)}
174
- ${this.speed === 1 ? n : i`<span class="lintje-video-player__speed">${d(this.speed)}</span>`}
174
+ ${this.speed === 1 ? n : c`<span class="lintje-video-player__speed">${d(this.speed)}</span>`}
175
175
  </div>
176
176
  <div class="lintje-video-player__buttons">
177
177
  ${this.renderPlay()} ${this.renderMute()}
@@ -352,6 +352,8 @@
352
352
  --h-target-text: 1.5rem;
353
353
  /* The two dense exceptions to the target: a date picker day cell and a listbox option row. */
354
354
  --h-option: 2.5rem;
355
+ /* The sparkline of a KPI: a line and its area under the figure, with no axes. */
356
+ --h-sparkline: 2rem;
355
357
 
356
358
  --w-nav: 288px;
357
359
  --w-rail: 72px;
@@ -1,6 +1,6 @@
1
1
  /** The charts category (Kerncijfers en grafieken): importing it defines its tags. */
2
2
  import '../components/charts/kpi-row/kpi-row.js';
3
3
  import '../components/charts/kpi/kpi.js';
4
- import '../components/charts/chart-tile/chart-tile.js';
4
+ import '../components/charts/chart/chart.js';
5
5
  import '../components/charts/note/note.js';
6
6
  import '../components/charts/explainer/explainer.js';
@@ -17,7 +17,7 @@ export type * from '../types.js';
17
17
  /** Every tag this bundle defines, for a host that wants to check. */
18
18
  export declare const LINTJE_TAGS: readonly string[];
19
19
  /** The views a host mounts: the tags that take a `data` object straight from the host. */
20
- export declare const LINTJE_VIEWS: readonly ['shell', 'page-header', 'filter-bar', 'kpi-row', 'chart-tile', 'data-table', 'announcement', 'map-tile', 'explainer', 'note', 'chat'];
20
+ export declare const LINTJE_VIEWS: readonly ['shell', 'page-header', 'filter-bar', 'kpi-row', 'chart', 'data-table', 'announcement', 'map', 'explainer', 'note', 'chat'];
21
21
  export type LintjeViewName = (typeof LINTJE_VIEWS)[number];
22
22
  /** The tag of a view: `lintje-` plus its name. */
23
23
  export declare const tagFor: (view: LintjeViewName) => string;
@@ -15,5 +15,6 @@ import '../components/inputs/range/range.js';
15
15
  import '../components/inputs/date-input/date-input.js';
16
16
  import '../components/inputs/time-input/time-input.js';
17
17
  import '../components/inputs/date-range/date-range.js';
18
+ import '../components/inputs/slot-picker/slot-picker.js';
18
19
  import '../components/inputs/file-upload/file-upload.js';
19
20
  import '../components/inputs/text-editor/text-editor.js';
@@ -1,2 +1,2 @@
1
1
  /** The map category (Kaart): importing it defines its tags. */
2
- import '../components/map/map-tile/map-tile.js';
2
+ import '../components/map/map/map.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * `<lintje-chart-tile>` — a chart in its tile, with loading, empty and error states.
2
+ * `<lintje-chart>` — a chart in its tile, with loading, empty and error states.
3
3
  *
4
4
  * Events: `lintje-mark-select` `{id, label, href}` when a mark with a `href` is clicked, and
5
5
  * `{id: null, label: null, href: clearHref}` when it is deselected. Expand and download stay here.
@@ -14,14 +14,14 @@ import '../../feedback/announcement/announcement.js';
14
14
  import '../../tables/data-table/data-table.js';
15
15
  import '../../inputs/segmented/segmented.js';
16
16
  import '../../../primitives/tile/tile.js';
17
- import type { ChartTileData } from '../../../types.js';
18
- type ChartTileView = 'chart' | 'table';
19
- export declare class LintjeChartTile extends LintjeContentTileElement {
17
+ import type { ChartData } from '../../../types.js';
18
+ type ChartView = 'chart' | 'table';
19
+ export declare class LintjeChart extends LintjeContentTileElement {
20
20
  #private;
21
21
  static styles: import("lit").CSSResult[];
22
22
  static properties: PropertyDeclarations;
23
- data?: ChartTileData | null;
24
- view: ChartTileView;
23
+ data?: ChartData | null;
24
+ view: ChartView;
25
25
  protected get dataSettings(): FrameSettings | undefined;
26
26
  disconnectedCallback(): void;
27
27
  private get ready();
@@ -43,7 +43,7 @@ export declare class LintjeChartTile extends LintjeContentTileElement {
43
43
  }
44
44
  declare global {
45
45
  interface HTMLElementTagNameMap {
46
- 'lintje-chart-tile': LintjeChartTile;
46
+ 'lintje-chart': LintjeChart;
47
47
  }
48
48
  }
49
49
  export {};
@@ -0,0 +1,18 @@
1
+ /** The scale of a single KPI figure: a half circle around the value, or a bar under it. */
2
+ import { type TemplateResult } from 'lit';
3
+ import type { KpiGauge } from '../../../types.js';
4
+ export interface GaugeView {
5
+ gauge: KpiGauge;
6
+ /** The figure on the scale; `null` draws the track alone. */
7
+ value: number | null;
8
+ /** Draws the fill; empty and error keep the scale and the target without it. */
9
+ ready: boolean;
10
+ /** Draws the track alone. */
11
+ loading: boolean;
12
+ /** Starts the fill's sweep. */
13
+ drawn: boolean;
14
+ /** The accent of the variable. */
15
+ color: string;
16
+ }
17
+ /** The number figure goes in as `figure`: in the arc's mouth, or above the bar. */
18
+ export declare function renderGauge(view: GaugeView, figure: TemplateResult): TemplateResult;
@@ -1,13 +1,18 @@
1
1
  /**
2
2
  * `<lintje-kpi>` — the KPI tile: one figure, or several of the same variable (`items`). Rich
3
- * values go in as properties. The value counts up from zero once 35 % of the tile is in view,
4
- * and not under `prefers-reduced-motion`. Events: none.
3
+ * values go in as properties. The value counts up from zero and the sparkline draws in once
4
+ * 35 % of the tile is in view, and not under `prefers-reduced-motion`. A single figure can stand
5
+ * on its scale (`gauge`): a half circle around the value or a bar under it, with the target
6
+ * dashed; the trend or note says in words how the figure stands to the target. Events: none.
5
7
  */
6
8
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
7
9
  import { LintjeGridItemElement } from '../../../primitives/shared/grid-item-element.js';
8
10
  import '../../../primitives/status-dot/status-dot.js';
9
11
  import '../../../primitives/skeleton/skeleton.js';
10
- import type { KpiItem, KpiState, KpiTrend, KpiVariable } from '../../../types.js';
12
+ import type { KpiGauge, KpiItem, KpiSparkline, KpiState, KpiTrend, KpiVariable } from '../../../types.js';
13
+ type Point = [number, number];
14
+ /** The points of each unbroken run of values: a `null` ends a run (rule 15). */
15
+ export declare function sparklineRuns(values: (number | null)[], width: number, height: number): Point[][];
11
16
  export declare class LintjeKpi extends LintjeGridItemElement {
12
17
  #private;
13
18
  static styles: import("lit").CSSResult[];
@@ -27,6 +32,10 @@ export declare class LintjeKpi extends LintjeGridItemElement {
27
32
  /** Default `true`: bind as `.dividers=${false}`, an attribute cannot turn it off. */
28
33
  dividers: boolean;
29
34
  trend?: KpiTrend;
35
+ /** The figure's recent values as a line with its area, under the figure. */
36
+ sparkline?: KpiSparkline;
37
+ /** The single figure on its scale, as a half circle (`arc`) or a bar (`linear`); not with `items`. */
38
+ gauge?: KpiGauge;
30
39
  /** A line without an arrow, for when there is no direction. */
31
40
  note?: string;
32
41
  detail?: string;
@@ -35,14 +44,29 @@ export declare class LintjeKpi extends LintjeGridItemElement {
35
44
  state: KpiState;
36
45
  index: number;
37
46
  counting: (string | null)[];
47
+ /** The sparkline draws in once the tile is in view, like the count. */
48
+ drawn: boolean;
49
+ /** The measured box of the sparkline, so the drawing is never stretched. */
50
+ sparklineBox: {
51
+ width: number;
52
+ height: number;
53
+ };
38
54
  private get figures();
39
55
  private get reduced();
40
56
  connectedCallback(): void;
41
57
  disconnectedCallback(): void;
58
+ /** Measures the sparkline's box; the svg takes that size instead of stretching into it. */
59
+ private observeSparkline;
42
60
  protected willUpdate(changed: PropertyValues<this>): void;
43
61
  private startCount;
44
62
  protected render(): TemplateResult;
45
63
  private body;
64
+ /** The sparkline while `ready`, its skeleton while `loading`, nothing otherwise. */
65
+ private renderSparkline;
66
+ /** One unbroken run: its area down to the box's bottom and its line; a lone value is a point. */
67
+ private run;
68
+ /** The single figure on its scale; while loading the track stands and the text is a skeleton. */
69
+ private gauged;
46
70
  /** Trend, note or state message, then the detail line; with `primary` the detail stands apart. */
47
71
  private lines;
48
72
  private trendLine;
@@ -55,3 +79,4 @@ declare global {
55
79
  'lintje-kpi': LintjeKpi;
56
80
  }
57
81
  }
82
+ export {};
@@ -17,7 +17,7 @@ import '../../../primitives/button/button.js';
17
17
  import '../../../primitives/icon-button/icon-button.js';
18
18
  import '../../../primitives/spinner/spinner.js';
19
19
  import '../../feedback/announcement/announcement.js';
20
- import '../../charts/chart-tile/chart-tile.js';
20
+ import '../../charts/chart/chart.js';
21
21
  import '../chat-strip/chat-strip.js';
22
22
  import '../chat-suggestions/chat-suggestions.js';
23
23
  import '../../tables/data-table/data-table.js';
@@ -10,7 +10,7 @@ import './frame/user-menu/user-menu.js';
10
10
  import './frame/page-header/page-header.js';
11
11
  import './filters/filter-bar/filter-bar.js';
12
12
  import './feedback/announcement/announcement.js';
13
- import './charts/chart-tile/chart-tile.js';
13
+ import './charts/chart/chart.js';
14
14
  import './chat/chat/chat.js';
15
15
  import './chat/chat-answer/chat-answer.js';
16
16
  import './chat/chat-composer/chat-composer.js';
@@ -23,7 +23,7 @@ import './layout/expander/expander.js';
23
23
  import './charts/explainer/explainer.js';
24
24
  import './charts/kpi/kpi.js';
25
25
  import './charts/kpi-row/kpi-row.js';
26
- import './map/map-tile/map-tile.js';
26
+ import './map/map/map.js';
27
27
  import './overlays/modal/modal.js';
28
28
  import './charts/note/note.js';
29
29
  import './content/prose/prose.js';
@@ -55,6 +55,7 @@ import './inputs/tag-input/tag-input.js';
55
55
  import './inputs/date-input/date-input.js';
56
56
  import './inputs/time-input/time-input.js';
57
57
  import './inputs/text-editor/text-editor.js';
58
+ import './inputs/slot-picker/slot-picker.js';
58
59
  import './forms/repeater/repeater.js';
59
60
  import './layout/tabs/tabs.js';
60
61
  import './frame/hero/hero.js';
@@ -94,7 +95,7 @@ import './frame/shortcuts/shortcuts.js';
94
95
  import './frame/session-expiry/session-expiry.js';
95
96
  import './frame/notifications/notifications.js';
96
97
  export { LintjeAnnouncement } from './feedback/announcement/announcement.js';
97
- export { LintjeChartTile } from './charts/chart-tile/chart-tile.js';
98
+ export { LintjeChart } from './charts/chart/chart.js';
98
99
  export { LintjeChat } from './chat/chat/chat.js';
99
100
  export { LintjeChatAnswer } from './chat/chat-answer/chat-answer.js';
100
101
  export type { ChatRating } from './chat/chat-answer/chat-answer.js';
@@ -114,7 +115,7 @@ export { LintjeExpander } from './layout/expander/expander.js';
114
115
  export { LintjeExplainer } from './charts/explainer/explainer.js';
115
116
  export { LintjeKpi } from './charts/kpi/kpi.js';
116
117
  export { LintjeKpiRow } from './charts/kpi-row/kpi-row.js';
117
- export { LintjeMapTile } from './map/map-tile/map-tile.js';
118
+ export { LintjeMap } from './map/map/map.js';
118
119
  export { LintjeModal } from './overlays/modal/modal.js';
119
120
  export { LintjeNote } from './charts/note/note.js';
120
121
  export { LintjeProse } from './content/prose/prose.js';
@@ -160,6 +161,8 @@ export { LintjeDateInput } from './inputs/date-input/date-input.js';
160
161
  export { LintjeTimeInput } from './inputs/time-input/time-input.js';
161
162
  export { LintjeTextEditor } from './inputs/text-editor/text-editor.js';
162
163
  export type { EditorFormat } from './inputs/text-editor/text-editor.js';
164
+ export { LintjeSlotPicker } from './inputs/slot-picker/slot-picker.js';
165
+ export type { SlotDay, TimeSlot } from './inputs/slot-picker/slot-picker.js';
163
166
  export { LintjeRepeater, LintjeRepeaterRow } from './forms/repeater/repeater.js';
164
167
  export { LintjeTabs } from './layout/tabs/tabs.js';
165
168
  export type { TabItem, TabsVariant } from './layout/tabs/tabs.js';
@@ -233,7 +236,7 @@ export { setHostConfig, scrollRoot } from '../core/host-config.js';
233
236
  export type { HostConfig } from '../core/host-config.js';
234
237
  export { toCsv, downloadCsv, downloadPng } from './shared/download.js';
235
238
  export type { CsvCell } from './shared/download.js';
236
- export type { AnnouncementData, AnnouncementKind, AnnouncementViewData, CellValue, ChartTileData, DataTableData, ExplainerData, KpiData, KpiRowData, MapTileViewData, NoteData, SortState, TableColumnData, TileData, } from '../types.js';
239
+ export type { AnnouncementData, AnnouncementKind, AnnouncementViewData, CellValue, ChartData, DataTableData, ExplainerData, KpiData, KpiRowData, MapData, NoteData, SortState, TableColumnData, TileData, } from '../types.js';
237
240
  export { LintjeShell } from './frame/shell/shell.js';
238
241
  export { LintjeUserMenu } from './frame/user-menu/user-menu.js';
239
242
  export { LintjePageHeader } from './frame/page-header/page-header.js';
@@ -41,4 +41,8 @@ export declare function monthWeeks(iso: string): string[][];
41
41
  export declare function clampDay(iso: string, min?: string | null, max?: string | null): string;
42
42
  export declare function todayIso(now?: Date): string;
43
43
  export declare function monthLabel(iso: string): string;
44
+ /** The weekday abbreviations, Monday first, as a calendar heads its columns. */
45
+ export declare const WEEKDAYS: string[];
46
+ /** "ma 12 okt": the day as a column heading. */
47
+ export declare function shortDayLabel(iso: string): string;
44
48
  export declare function dayLabel(iso: string): string;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * `<lintje-slot-picker>` — a time for an appointment: days side by side, each with its times as
3
+ * options. One radio group over every day, so the arrow keys walk the times and Tab stops once;
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.
7
+ *
8
+ * Events: `lintje-change` with the chosen time's `value`; with a `name` also `lintje-values-change`.
9
+ */
10
+ import { type PropertyDeclarations, type TemplateResult } from 'lit';
11
+ import { LintjeInputElement } from '../shared/input.js';
12
+ export interface TimeSlot {
13
+ /** What crosses in `lintje-change`: an id, or an ISO date-time. */
14
+ value: string;
15
+ /** The time as the reader sees it: "09:30". */
16
+ label: string;
17
+ /** Taken: drawn disabled, with "Vol" beside the time. */
18
+ full?: boolean;
19
+ }
20
+ export interface SlotDay {
21
+ /** The day as ISO (`2026-10-12`); the heading and each time's name come from it. */
22
+ date: string;
23
+ /** In the order they are drawn; `[]` says "Geen tijden". */
24
+ slots: TimeSlot[];
25
+ }
26
+ export declare class LintjeSlotPicker extends LintjeInputElement {
27
+ static styles: import("lit").CSSResult[];
28
+ static properties: PropertyDeclarations;
29
+ /** The chosen time's `value`; `''` while nothing is chosen. */
30
+ value: string;
31
+ days?: SlotDay[];
32
+ private choose;
33
+ protected render(): TemplateResult;
34
+ private renderDay;
35
+ private renderSlot;
36
+ }
37
+ declare global {
38
+ interface HTMLElementTagNameMap {
39
+ 'lintje-slot-picker': LintjeSlotPicker;
40
+ }
41
+ }
@@ -20,3 +20,7 @@ export declare function addMinutes(time: string, count: number): string;
20
20
  /** The time on the clock now, rounded to the nearest `step` minutes: 10:52 with 15 is 10:45. */
21
21
  export declare function nowRounded(step: number, now?: Date): string;
22
22
  export declare function clampTime(time: string, min?: string | null, max?: string | null): string;
23
+ /** The times from `min` (default 00:00) to `max` (default the end of the day), `step` minutes apart. */
24
+ export declare function timesBetween(min?: string | null, max?: string | null, step?: number): string[];
25
+ /** The first of a sorted list at or after `time`, else its last; `''` for an empty list. */
26
+ export declare function timeAtOrAfter(times: string[], time: string): string;
@@ -1,34 +1,53 @@
1
1
  /**
2
- * `<lintje-time-input>` — a time of day, `HH:MM` on a 24-hour clock, or `null` when empty.
3
- * Typed text is read on leaving the field or Enter (`time-format.ts`). It checks its own text
4
- * and shows a message in place of the hint; a host's `error` wins. It knows no day or time zone.
2
+ * `<lintje-time-input>` — a time of day, `HH:MM` on a 24-hour clock, or `null` when empty, typed
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.
5
9
  *
6
10
  * Events: `lintje-change` with `HH:MM` or `null`; with a `name` also `lintje-values-change`.
7
11
  */
8
12
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
9
13
  import { LintjeInputElement } from '../shared/input.js';
14
+ import '../../../primitives/popover/popover.js';
10
15
  export declare class LintjeTimeInput extends LintjeInputElement {
11
16
  static styles: import("lit").CSSResult[];
12
17
  static properties: PropertyDeclarations;
13
18
  value: string | null;
14
- /** The earliest time, `HH:MM`. */
19
+ /** The earliest time, `HH:MM`; the list starts here, else at 00:00. */
15
20
  min?: string;
16
- /** The latest time, `HH:MM`. */
21
+ /** The latest time, `HH:MM`; the list ends at the last time at or before it, else 23:59. */
17
22
  max?: string;
18
- /** The minutes PageUp and PageDown move. */
23
+ /** The minutes between the times in the list, and that PageUp and PageDown move in the field. */
19
24
  step: number;
20
25
  placeholder: string;
21
26
  stacked: boolean;
27
+ /** Whether the list is open. Reflected, so a sheet can leave Escape to it. */
28
+ open: boolean;
22
29
  hint: string | undefined;
23
30
  protected text: string;
24
31
  protected problem: string;
32
+ /** The time the keys stand on in the list. */
33
+ protected focusTime: string;
25
34
  private get message();
26
35
  protected get footMessage(): string;
36
+ private get times();
27
37
  protected willUpdate(changed: PropertyValues<this>): void;
28
38
  private outOfBounds;
29
39
  private choose;
30
40
  private onChange;
31
41
  private onKeydown;
42
+ private openList;
43
+ private toggle;
44
+ /** On opening the time stands mid-list, so earlier and later are both in view. */
45
+ private focusOption;
46
+ private onPopoverClose;
47
+ private onFocusOut;
48
+ private pick;
49
+ private onListKeydown;
50
+ private renderList;
32
51
  protected render(): TemplateResult;
33
52
  }
34
53
  declare global {