lintje 0.2.0 → 0.3.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 (276) hide show
  1. package/README.md +2 -2
  2. package/dist-elements/actions.js +1 -1
  3. package/dist-elements/chunks/{base-Bg-IFOPG.js → base-CbmWxUig.js} +444 -272
  4. package/dist-elements/chunks/{controls-B1455oPG.js → controls-DxmnDSBr.js} +6 -0
  5. package/dist-elements/chunks/dialog-DChINFxD.js +28 -0
  6. package/dist-elements/chunks/{disclosure-BXTX04gM.js → disclosure-D39vAR5q.js} +1 -1
  7. package/dist-elements/chunks/{disclosure-CMXhX-Vb.js → disclosure-DLkXPUpV.js} +6 -6
  8. package/dist-elements/chunks/download-Ct9q2anY.js +206 -0
  9. package/dist-elements/chunks/{focus-trap-9BnE-xWv.js → focus-trap-BwOxE5BX.js} +1 -1
  10. package/dist-elements/chunks/input-CRW_exv_.js +195 -0
  11. package/dist-elements/chunks/{player-DXOZEyEy.js → player-B8QXJ0Z5.js} +26 -26
  12. package/dist-elements/chunks/{sentence-BI3lwEuT.js → sentence-B19AyZBS.js} +3 -3
  13. package/dist-elements/chunks/{stagger-qGD3wmhg.js → stagger-BHoOgy0g.js} +81 -75
  14. package/dist-elements/core.js +1 -1
  15. package/dist-elements/custom-elements.json +980 -670
  16. package/dist-elements/data-types.json +6798 -0
  17. package/dist-elements/feedback.js +2 -1
  18. package/dist-elements/frame.js +0 -2
  19. package/dist-elements/guides/dashboard.md +8 -0
  20. package/dist-elements/guides/events.md +4 -5
  21. package/dist-elements/guides/loading.md +8 -7
  22. package/dist-elements/guides/page-contents.md +110 -0
  23. package/dist-elements/guides/start.md +12 -0
  24. package/dist-elements/inputs.js +2 -1
  25. package/dist-elements/layout.js +1 -1
  26. package/dist-elements/lintje.js +6975 -6120
  27. package/dist-elements/overlays.js +2 -2
  28. package/dist-elements/skills/lintje/SKILL.md +1 -1
  29. package/dist-elements/tables.js +1 -1
  30. package/dist-elements/tag/activity-log.js +15 -15
  31. package/dist-elements/tag/ai-label.js +10 -10
  32. package/dist-elements/tag/announcement.js +36 -76
  33. package/dist-elements/tag/app-search.js +49 -49
  34. package/dist-elements/tag/audio-player.js +57 -57
  35. package/dist-elements/tag/badge.js +1 -1
  36. package/dist-elements/tag/breadcrumbs.js +15 -15
  37. package/dist-elements/tag/button.js +1 -1
  38. package/dist-elements/tag/card-list.js +12 -12
  39. package/dist-elements/tag/card.js +39 -44
  40. package/dist-elements/tag/chart.js +1050 -795
  41. package/dist-elements/tag/chat-answer.js +49 -49
  42. package/dist-elements/tag/chat-composer.js +75 -71
  43. package/dist-elements/tag/chat-message.js +8 -8
  44. package/dist-elements/tag/chat-strip.js +22 -22
  45. package/dist-elements/tag/chat-suggestions.js +12 -12
  46. package/dist-elements/tag/chat.js +56 -56
  47. package/dist-elements/tag/checkbox-group.d.ts +1 -0
  48. package/dist-elements/tag/checkbox-group.js +59 -0
  49. package/dist-elements/tag/checkbox.js +8 -8
  50. package/dist-elements/tag/code.js +9 -9
  51. package/dist-elements/tag/combobox.js +18 -18
  52. package/dist-elements/tag/conflict-alert.js +12 -12
  53. package/dist-elements/tag/copy-button.js +14 -14
  54. package/dist-elements/tag/data-table.js +878 -530
  55. package/dist-elements/tag/date-input.js +30 -30
  56. package/dist-elements/tag/date-range.js +37 -37
  57. package/dist-elements/tag/description-list.js +29 -32
  58. package/dist-elements/tag/dialog.d.ts +1 -0
  59. package/dist-elements/tag/dialog.js +144 -0
  60. package/dist-elements/tag/document-viewer.js +23 -23
  61. package/dist-elements/tag/drawer.js +28 -32
  62. package/dist-elements/tag/empty-state.js +19 -30
  63. package/dist-elements/tag/error-page.d.ts +1 -0
  64. package/dist-elements/tag/error-page.js +109 -0
  65. package/dist-elements/tag/error-summary.js +10 -10
  66. package/dist-elements/tag/expander.js +8 -8
  67. package/dist-elements/tag/explainer.js +11 -11
  68. package/dist-elements/tag/field.js +5 -5
  69. package/dist-elements/tag/file-upload.js +34 -34
  70. package/dist-elements/tag/filter-bar.js +56 -56
  71. package/dist-elements/tag/filter-sheet.js +11 -11
  72. package/dist-elements/tag/filter-zone.js +31 -31
  73. package/dist-elements/tag/footer.js +21 -21
  74. package/dist-elements/tag/form-actions.js +29 -25
  75. package/dist-elements/tag/form-section.js +6 -6
  76. package/dist-elements/tag/form.js +12 -12
  77. package/dist-elements/tag/gallery.js +14 -14
  78. package/dist-elements/tag/grid-item.js +1 -1
  79. package/dist-elements/tag/grid.js +1 -1
  80. package/dist-elements/tag/hero.js +12 -12
  81. package/dist-elements/tag/highlight.js +5 -5
  82. package/dist-elements/tag/icon-button.js +1 -1
  83. package/dist-elements/tag/icon.js +1 -1
  84. package/dist-elements/tag/job-list.js +22 -44
  85. package/dist-elements/tag/kpi-row.js +12 -10
  86. package/dist-elements/tag/kpi.js +146 -137
  87. package/dist-elements/tag/level-meter.js +11 -11
  88. package/dist-elements/tag/list.js +55 -55
  89. package/dist-elements/tag/logo.js +30 -30
  90. package/dist-elements/tag/map.js +690 -665
  91. package/dist-elements/tag/menu-button.js +70 -69
  92. package/dist-elements/tag/modal.js +28 -37
  93. package/dist-elements/tag/multiselect.js +34 -34
  94. package/dist-elements/tag/note.js +5 -5
  95. package/dist-elements/tag/notifications.js +36 -36
  96. package/dist-elements/tag/number-input.js +12 -12
  97. package/dist-elements/tag/page-header.js +140 -37
  98. package/dist-elements/tag/pagination.js +53 -48
  99. package/dist-elements/tag/popover.js +1 -1
  100. package/dist-elements/tag/progress-bar.js +1 -1
  101. package/dist-elements/tag/prose.js +6 -6
  102. package/dist-elements/tag/qr-code.js +7 -7
  103. package/dist-elements/tag/radio-group.js +12 -12
  104. package/dist-elements/tag/range.js +22 -22
  105. package/dist-elements/tag/recording-status.js +14 -14
  106. package/dist-elements/tag/repeater.js +10 -10
  107. package/dist-elements/tag/segmented.js +13 -13
  108. package/dist-elements/tag/select.js +10 -10
  109. package/dist-elements/tag/shell.js +356 -339
  110. package/dist-elements/tag/skeleton.js +1 -1
  111. package/dist-elements/tag/slot-picker.js +14 -14
  112. package/dist-elements/tag/sortable-list.js +14 -14
  113. package/dist-elements/tag/spinner.js +1 -1
  114. package/dist-elements/tag/split-pane.js +12 -12
  115. package/dist-elements/tag/status-dot.js +1 -1
  116. package/dist-elements/tag/stepper.js +21 -21
  117. package/dist-elements/tag/streaming-text.js +13 -13
  118. package/dist-elements/tag/sub-nav.js +39 -38
  119. package/dist-elements/tag/tabs.js +38 -38
  120. package/dist-elements/tag/tag-input.js +19 -19
  121. package/dist-elements/tag/text-editor.js +24 -24
  122. package/dist-elements/tag/text-input.js +14 -14
  123. package/dist-elements/tag/textarea.js +14 -14
  124. package/dist-elements/tag/tile.js +1 -1
  125. package/dist-elements/tag/time-input.js +19 -19
  126. package/dist-elements/tag/toast.js +32 -23
  127. package/dist-elements/tag/toggle.js +8 -8
  128. package/dist-elements/tag/toggletip.js +27 -27
  129. package/dist-elements/tag/tooltip.js +1 -1
  130. package/dist-elements/tag/transcript.js +48 -48
  131. package/dist-elements/tag/translator.js +13 -13
  132. package/dist-elements/tag/tree-view.js +13 -13
  133. package/dist-elements/tag/user-menu.js +37 -37
  134. package/dist-elements/tag/video-player.js +21 -21
  135. package/dist-elements/tokens.css +120 -96
  136. package/dist-elements/types/bundle/feedback.d.ts +1 -0
  137. package/dist-elements/types/bundle/frame.d.ts +0 -2
  138. package/dist-elements/types/bundle/inputs.d.ts +1 -0
  139. package/dist-elements/types/bundle/overlays.d.ts +1 -1
  140. package/dist-elements/types/components/actions/copy-button/copy-button.d.ts +6 -7
  141. package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +13 -15
  142. package/dist-elements/types/components/actions/qr-code/qr-code.d.ts +9 -9
  143. package/dist-elements/types/components/charts/chart/chart.d.ts +5 -4
  144. package/dist-elements/types/components/charts/kpi/kpi.d.ts +16 -8
  145. package/dist-elements/types/components/charts/kpi-row/kpi-row.d.ts +1 -7
  146. package/dist-elements/types/components/charts/note/note.d.ts +1 -1
  147. package/dist-elements/types/components/chat/chat/chat.d.ts +8 -10
  148. package/dist-elements/types/components/chat/chat-answer/chat-answer.d.ts +7 -8
  149. package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +8 -10
  150. package/dist-elements/types/components/chat/chat-message/chat-message.d.ts +6 -7
  151. package/dist-elements/types/components/chat/chat-strip/chat-strip.d.ts +5 -5
  152. package/dist-elements/types/components/chat/chat-suggestions/chat-suggestions.d.ts +9 -10
  153. package/dist-elements/types/components/content/audio-player/audio-player.d.ts +10 -12
  154. package/dist-elements/types/components/content/code/code.d.ts +2 -3
  155. package/dist-elements/types/components/content/document-viewer/document-viewer.d.ts +8 -9
  156. package/dist-elements/types/components/content/gallery/gallery.d.ts +5 -4
  157. package/dist-elements/types/components/content/highlight/highlight.d.ts +4 -3
  158. package/dist-elements/types/components/content/prose/prose.d.ts +2 -3
  159. package/dist-elements/types/components/content/transcript/transcript.d.ts +12 -25
  160. package/dist-elements/types/components/content/translator/translator.d.ts +11 -15
  161. package/dist-elements/types/components/content/video-player/video-player.d.ts +11 -13
  162. package/dist-elements/types/components/feedback/ai-label/ai-label.d.ts +3 -4
  163. package/dist-elements/types/components/feedback/announcement/announcement.d.ts +3 -7
  164. package/dist-elements/types/components/feedback/conflict-alert/conflict-alert.d.ts +3 -4
  165. package/dist-elements/types/components/feedback/empty-state/empty-state.d.ts +5 -8
  166. package/dist-elements/types/components/feedback/error-page/error-page.d.ts +52 -0
  167. package/dist-elements/types/components/feedback/job-list/job-list.d.ts +9 -12
  168. package/dist-elements/types/components/feedback/level-meter/level-meter.d.ts +4 -6
  169. package/dist-elements/types/components/feedback/recording-status/recording-status.d.ts +5 -6
  170. package/dist-elements/types/components/feedback/streaming-text/streaming-text.d.ts +10 -7
  171. package/dist-elements/types/components/feedback/toast/toast.d.ts +8 -9
  172. package/dist-elements/types/components/filters/filter-bar/filter-bar.d.ts +9 -4
  173. package/dist-elements/types/components/filters/filter-sheet/filter-sheet.d.ts +5 -5
  174. package/dist-elements/types/components/filters/filter-zone/filter-zone.d.ts +4 -4
  175. package/dist-elements/types/components/forms/error-summary/error-summary.d.ts +5 -6
  176. package/dist-elements/types/components/forms/form/form.d.ts +5 -5
  177. package/dist-elements/types/components/forms/form-actions/form-actions.d.ts +9 -7
  178. package/dist-elements/types/components/forms/form-section/form-section.d.ts +6 -5
  179. package/dist-elements/types/components/forms/repeater/repeater.d.ts +13 -7
  180. package/dist-elements/types/components/forms/stepper/stepper.d.ts +5 -4
  181. package/dist-elements/types/components/frame/app-search/app-search.d.ts +6 -7
  182. package/dist-elements/types/components/frame/breadcrumbs/breadcrumbs.d.ts +2 -2
  183. package/dist-elements/types/components/frame/footer/footer.d.ts +3 -2
  184. package/dist-elements/types/components/frame/hero/hero.d.ts +7 -9
  185. package/dist-elements/types/components/frame/notifications/notifications.d.ts +5 -9
  186. package/dist-elements/types/components/frame/page-header/page-header.d.ts +12 -15
  187. package/dist-elements/types/components/frame/shell/shell.d.ts +14 -13
  188. package/dist-elements/types/components/frame/sub-nav/sub-nav.d.ts +10 -6
  189. package/dist-elements/types/components/frame/user-menu/user-menu.d.ts +11 -10
  190. package/dist-elements/types/components/index.d.ts +8 -9
  191. package/dist-elements/types/components/inputs/checkbox/checkbox.d.ts +4 -4
  192. package/dist-elements/types/components/inputs/checkbox-group/checkbox-group.d.ts +33 -0
  193. package/dist-elements/types/components/inputs/combobox/combobox.d.ts +12 -6
  194. package/dist-elements/types/components/inputs/date-input/date-input.d.ts +5 -5
  195. package/dist-elements/types/components/inputs/date-range/date-range.d.ts +11 -6
  196. package/dist-elements/types/components/inputs/field/field.d.ts +5 -3
  197. package/dist-elements/types/components/inputs/file-upload/file-upload.d.ts +6 -8
  198. package/dist-elements/types/components/inputs/multiselect/multiselect.d.ts +4 -6
  199. package/dist-elements/types/components/inputs/number-input/number-input.d.ts +8 -7
  200. package/dist-elements/types/components/inputs/radio-group/radio-group.d.ts +2 -4
  201. package/dist-elements/types/components/inputs/range/range.d.ts +5 -6
  202. package/dist-elements/types/components/inputs/segmented/segmented.d.ts +7 -4
  203. package/dist-elements/types/components/inputs/select/select.d.ts +6 -3
  204. package/dist-elements/types/components/inputs/slot-picker/slot-picker.d.ts +6 -5
  205. package/dist-elements/types/components/inputs/tag-input/tag-input.d.ts +7 -5
  206. package/dist-elements/types/components/inputs/text-editor/text-editor.d.ts +6 -6
  207. package/dist-elements/types/components/inputs/text-input/text-input.d.ts +11 -6
  208. package/dist-elements/types/components/inputs/textarea/textarea.d.ts +12 -11
  209. package/dist-elements/types/components/inputs/time-input/time-input.d.ts +7 -8
  210. package/dist-elements/types/components/inputs/toggle/toggle.d.ts +3 -1
  211. package/dist-elements/types/components/layout/expander/expander.d.ts +9 -10
  212. package/dist-elements/types/components/layout/split-pane/split-pane.d.ts +6 -6
  213. package/dist-elements/types/components/layout/tabs/tabs.d.ts +11 -9
  214. package/dist-elements/types/components/map/map/map.d.ts +10 -9
  215. package/dist-elements/types/components/overlays/dialog/dialog.d.ts +49 -0
  216. package/dist-elements/types/components/overlays/drawer/drawer.d.ts +6 -5
  217. package/dist-elements/types/components/overlays/modal/modal.d.ts +7 -12
  218. package/dist-elements/types/components/overlays/toggletip/toggletip.d.ts +3 -7
  219. package/dist-elements/types/components/shared/charts/index.d.ts +4 -1
  220. package/dist-elements/types/components/shared/charts/kinds.d.ts +86 -0
  221. package/dist-elements/types/components/shared/charts/line-chart/line-chart.d.ts +2 -2
  222. package/dist-elements/types/components/shared/charts/map-chart/leaflet.d.ts +5 -0
  223. package/dist-elements/types/components/shared/charts/shared/chart-states.d.ts +8 -19
  224. package/dist-elements/types/components/shared/charts/shared/controller.d.ts +7 -0
  225. package/dist-elements/types/components/shared/charts/shared/types.d.ts +29 -0
  226. package/dist-elements/types/components/shared/charts/stacked-area-chart/stacked-area-chart.d.ts +13 -0
  227. package/dist-elements/types/components/shared/dialog.d.ts +9 -0
  228. package/dist-elements/types/components/shared/overflow.d.ts +58 -0
  229. package/dist-elements/types/components/tables/activity-log/activity-log.d.ts +2 -3
  230. package/dist-elements/types/components/tables/card/card.d.ts +14 -20
  231. package/dist-elements/types/components/tables/card-list/card-list.d.ts +9 -11
  232. package/dist-elements/types/components/tables/data-table/data-table.d.ts +85 -16
  233. package/dist-elements/types/components/tables/data-table/filters.d.ts +13 -4
  234. package/dist-elements/types/components/tables/description-list/description-list.d.ts +12 -11
  235. package/dist-elements/types/components/tables/list/list.d.ts +9 -20
  236. package/dist-elements/types/components/tables/pagination/pagination.d.ts +12 -11
  237. package/dist-elements/types/components/tables/sortable-list/sortable-list.d.ts +5 -6
  238. package/dist-elements/types/components/tables/tree-view/tree-view.d.ts +4 -4
  239. package/dist-elements/types/core/media.d.ts +2 -2
  240. package/dist-elements/types/core/motion.d.ts +5 -0
  241. package/dist-elements/types/core/print.d.ts +15 -0
  242. package/dist-elements/types/core/shortcuts.d.ts +2 -2
  243. package/dist-elements/types/icons/icon/icon.d.ts +2 -3
  244. package/dist-elements/types/icons/register.d.ts +1 -1
  245. package/dist-elements/types/primitives/badge/badge.d.ts +9 -5
  246. package/dist-elements/types/primitives/button/button.d.ts +12 -9
  247. package/dist-elements/types/primitives/grid/grid.d.ts +3 -3
  248. package/dist-elements/types/primitives/grid-item/grid-item.d.ts +1 -1
  249. package/dist-elements/types/primitives/icon-button/icon-button.d.ts +7 -5
  250. package/dist-elements/types/primitives/index.d.ts +3 -1
  251. package/dist-elements/types/primitives/popover/popover.d.ts +5 -4
  252. package/dist-elements/types/primitives/progress-bar/progress-bar.d.ts +8 -6
  253. package/dist-elements/types/primitives/shared/announcement-block.d.ts +38 -0
  254. package/dist-elements/types/primitives/shared/empty-state-block.d.ts +26 -0
  255. package/dist-elements/types/primitives/shared/tone.d.ts +18 -0
  256. package/dist-elements/types/primitives/skeleton/skeleton.d.ts +1 -1
  257. package/dist-elements/types/primitives/spinner/spinner.d.ts +1 -2
  258. package/dist-elements/types/primitives/status-dot/status-dot.d.ts +4 -5
  259. package/dist-elements/types/primitives/tile/tile.d.ts +17 -5
  260. package/dist-elements/types/primitives/tooltip/tooltip.d.ts +6 -6
  261. package/dist-elements/types/types.d.ts +70 -10
  262. package/dist-icons/functioneel-kolommen.svg +1 -0
  263. package/dist-icons/functioneel-trechter.svg +1 -0
  264. package/package.json +1 -1
  265. package/dist-elements/chunks/confirm-dialog-D5EVGuil.js +0 -4
  266. package/dist-elements/chunks/download-y528pIHP.js +0 -230
  267. package/dist-elements/chunks/input-BtuNFSWk.js +0 -195
  268. package/dist-elements/tag/confirm-dialog.d.ts +0 -1
  269. package/dist-elements/tag/confirm-dialog.js +0 -118
  270. package/dist-elements/tag/session-expiry.d.ts +0 -1
  271. package/dist-elements/tag/session-expiry.js +0 -184
  272. package/dist-elements/tag/shortcuts.d.ts +0 -1
  273. package/dist-elements/tag/shortcuts.js +0 -104
  274. package/dist-elements/types/components/frame/session-expiry/session-expiry.d.ts +0 -55
  275. package/dist-elements/types/components/frame/shortcuts/shortcuts.d.ts +0 -41
  276. package/dist-elements/types/components/overlays/confirm-dialog/confirm-dialog.d.ts +0 -41
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Actions that do not fit on one line give way to one menu, "Meer", in front of the ones that
3
+ * stay: the page header's actions today. `overflowCount` is the arithmetic; `OverflowController`
4
+ * measures and applies it for an element whose actions are slotted `lintje-button`s.
5
+ *
6
+ * Both widths compared are independent of the outcome, so the choice cannot flip back and forth:
7
+ * an action in the menu stays laid out, invisible (`data-lintje-overflow`, hidden by the owner's
8
+ * `::slotted` rule), and the menu's trigger stays laid out the same way while it is spare, so
9
+ * every natural width can be read in either state. The owner's order is the priority: the first
10
+ * action goes first, the last never goes, and a menu of one row does not exist.
11
+ */
12
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
13
+ import type { LintjeButton } from '../../primitives/button/button.js';
14
+ import type { MenuEntry } from '../actions/menu-button/menu-button.js';
15
+ export interface OverflowItem {
16
+ width: number;
17
+ /** Never goes into the menu: the last action, and anything that is not a button. */
18
+ fixed: boolean;
19
+ }
20
+ /**
21
+ * How many of the collapsible items, from the first, go into the menu so that the rest and the
22
+ * menu's trigger fit in `room` on one line. One alone never goes: then two go, or, with no second
23
+ * one to go with it, none.
24
+ */
25
+ export declare function overflowCount(items: OverflowItem[], menuWidth: number, gap: number, room: number): number;
26
+ export interface OverflowHost extends ReactiveControllerHost, HTMLElement {
27
+ readonly renderRoot: HTMLElement | DocumentFragment;
28
+ }
29
+ export interface OverflowOptions {
30
+ /** The box the actions must fit in on one line, in the host's render root. */
31
+ row: string;
32
+ /** The `lintje-menu-button` that is "Meer", in the host's render root. */
33
+ menu: string;
34
+ /** The name of the slot the actions are in. */
35
+ slot: string;
36
+ }
37
+ export declare class OverflowController implements ReactiveController {
38
+ #private;
39
+ private readonly host;
40
+ private readonly options;
41
+ /** The buttons that went into the menu, in order. */
42
+ collapsed: LintjeButton[];
43
+ constructor(host: OverflowHost, options: OverflowOptions);
44
+ hostDisconnected(): void;
45
+ hostUpdated(): void;
46
+ /** The actions in the slot, in order. */
47
+ get actions(): HTMLElement[];
48
+ /** The menu's rows: one per collapsed button, a danger button after a separator. */
49
+ items(): MenuEntry[];
50
+ /** A chosen row clicks its button, so the owner's own listener sees the click. */
51
+ activate(value: string): void;
52
+ /**
53
+ * Reads the room and every natural width, and asks for a render when the count changes. The
54
+ * attributes are written after that render (`hostUpdated`), never inside the observer: a
55
+ * synchronous change there would resize the row during the observer's own delivery.
56
+ */
57
+ measure(): void;
58
+ }
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * `<lintje-activity-log>` — a timeline of what happened to one item, newest first.
3
3
  *
4
- * Shows `limit` entries and "Toon eerdere" for ten more; when that press removes the button,
5
- * focus moves to the first new entry. The host sends the entries in order with `when` already
6
- * written in Dutch.
4
+ * The host sends the entries in order, with `when` already written in Dutch. "Toon eerdere" shows
5
+ * ten more.
7
6
  */
8
7
  import { type PropertyDeclarations, type TemplateResult } from 'lit';
9
8
  import { LintjeElement } from '../../../core/element.js';
@@ -1,32 +1,23 @@
1
1
  /**
2
- * `<lintje-card>` — one item of a collection: a product, a dataset, a recording, an app. A muted
3
- * line above the title (its kind, its owner), the title, a line of text, optionally a few facts
4
- * as a small table, a status as a glyph and its word, and at most two actions. A screenshot stands above it, a logo beside the title.
5
- * Square and flat; in a grid it is drawn by `lintje-card-list`.
2
+ * `<lintje-card>` — one item of a collection: a product, a dataset, a recording, an app.
6
3
  *
7
- * `layout="horizontal"` puts the picture or logo in a column on the left, for a long list; below
8
- * 768 px it stands as the vertical card.
9
- *
10
- * A card is either a link or carries actions, never both. Without actions and with `href` the
11
- * whole card is clickable and the title is its one tab stop; with actions only the title and the
12
- * actions are. The card knows no domain: "toegang" or "eigenaar" are the host's words.
13
- *
14
- * `iconActions` stand beside the title as icon buttons, also on a card that is a link: an action
15
- * on the item itself, such as marking it. One with `pressed` is a switch; the card keeps nothing
16
- * and the host sets the new `pressed` after the event.
17
- *
18
- * `layout="horizontal"` wants a column of at least `--w-card-wide`; `lintje-card-list` keeps to it.
4
+ * Square and flat; in a grid it is drawn by `lintje-card-list`. A card is either a link or carries
5
+ * actions, never both: with an `href` and no actions the whole card is clickable. Icon actions
6
+ * stand beside the title, also on a card that is a link; one with `pressed` is a switch, and the
7
+ * host sets the new `pressed` after the event. The card knows no domain: "toegang" or "eigenaar"
8
+ * are the host's words.
19
9
  *
20
10
  * Events: `lintje-navigate` `{ href }` (a plain click on the title, the card or an action with an
21
- * `href` in this tab), `lintje-card-action` `{ id, value }` (an action without `href`) and
22
- * `{ id, value, pressed }` (an icon action, with a switch's value asked for).
11
+ * `href`), `lintje-card-action` `{ id, value, pressed? }` (an action without `href`; `pressed`
12
+ * from an icon action that is a switch).
23
13
  */
24
14
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
25
15
  import { LintjeElement } from '../../../core/element.js';
16
+ import { type Tone } from '../../../primitives/shared/tone.js';
26
17
  import '../../../primitives/button/button.js';
27
18
  import '../../../primitives/icon-button/icon-button.js';
28
19
  import '../../../primitives/skeleton/skeleton.js';
29
- export type CardStatusTone = 'neutral' | 'success' | 'info' | 'attention' | 'error';
20
+ export type CardStatusTone = Tone;
30
21
  export interface CardStatus {
31
22
  /** The word that carries the status: "Je hebt toegang". */
32
23
  label: string;
@@ -94,7 +85,10 @@ export declare class LintjeCard extends LintjeElement {
94
85
  static styles: import("lit").CSSResult[];
95
86
  static properties: PropertyDeclarations;
96
87
  data?: CardData;
97
- /** `horizontal`: the picture in a column on the left, for a long list. */
88
+ /**
89
+ * `horizontal`: the picture or logo in a column on the left, for a long list; below 768 px the
90
+ * vertical card. It wants a column of at least `--w-card-wide`, as `lintje-card-list` keeps.
91
+ */
98
92
  layout: CardLayout;
99
93
  /** The level of the title, 2 to 4: a card stands under the page's or a section's heading. */
100
94
  headingLevel: 2 | 3 | 4;
@@ -1,15 +1,10 @@
1
1
  /**
2
- * `<lintje-card-list>` — a collection as cards: a real list, in as many columns as fit up to
3
- * `max-columns`, every card in a row as tall as the tallest. Below 768 px one column.
4
- * `layout="horizontal"` draws every card across, two side by side at most where they fit.
2
+ * `<lintje-card-list>` — a collection as cards: a real list, in as many columns as fit, every
3
+ * card in a row as tall as the tallest; below 768 px one column.
5
4
  *
6
- * Slots: `empty` for the way out under the empty text (a link, a button).
7
- *
8
- * It draws `lintje-card` for each item and adds nothing of its own; the cards' events pass
9
- * through. While `loading` it holds skeleton cards, so the page does not jump; a status region
10
- * that is always there says it loads, and then how many it loaded.
11
- *
12
- * Events: those of its cards.
5
+ * It draws a `lintje-card` for each item and adds nothing of its own: the cards' events reach the
6
+ * host as they are. While `loading` it holds skeleton cards, so the page does not jump. The
7
+ * `empty` slot takes the way out under the empty text, such as a link.
13
8
  */
14
9
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
15
10
  import { LintjeElement } from '../../../core/element.js';
@@ -22,7 +17,10 @@ export declare class LintjeCardList extends LintjeElement {
22
17
  items: CardData[];
23
18
  /** Names the list for a screen reader when no heading right above it does. */
24
19
  label?: string;
25
- /** `horizontal`: every card with its picture in a column on the left, for a long list. */
20
+ /**
21
+ * `horizontal`: every card with its picture in a column on the left, for a long list; two side
22
+ * by side at most, where they fit.
23
+ */
26
24
  layout: CardLayout;
27
25
  /** The level of every card's title, 2 to 4. */
28
26
  headingLevel: 2 | 3 | 4;
@@ -1,23 +1,21 @@
1
1
  /**
2
- * `<lintje-data-table>` — the data table, inside a tile. Below 768 px it switches to a
3
- * two-column representation. Missing values are a muted dash, never 0 (rule 15).
2
+ * `<lintje-data-table>` — the data table, inside a tile; below 768 px a two-column list.
4
3
  *
5
- * The table never filters, saves or confirms: it asks and the host answers in `data`. Its
6
- * extensions live in `editing.ts`, `actions.ts` and `filters.ts`. `bare` draws the table alone,
7
- * for a component that already stands in a tile; `plain` draws it on an application page,
8
- * without a tile but with its states.
4
+ * A missing value is a muted dash, never 0. The table never filters, saves or confirms: it shows a
5
+ * change at once, and the host confirms it in the next `data`. Open rows and collapsed groups are
6
+ * the table's own: it sends nothing for them.
9
7
  *
10
- * Events: `lintje-sort-change` `{key, direction} | null`, `lintje-row-click` `{id, label, href?}`,
11
- * `lintje-row-open` `{id, label, href?}`,
12
- * `lintje-checked-change` (the keys). Each shows the change at once and expects the host to
13
- * confirm it in the next `data`. With the extensions: `lintje-cell-edit` `{id, column, value}`,
14
- * `lintje-row-action` `{id, action}`, `lintje-bulk-action` `{ids, action}`,
15
- * `lintje-filter-change` `{column, value}`, `lintje-columns-change` `{order, hidden}`.
8
+ * Events: `lintje-sort-change` `{ key, direction } | null`, `lintje-row-click`
9
+ * `{ id, label, href? }`, `lintje-row-open` `{ id, label, href? }`, `lintje-checked-change`
10
+ * `string[]`, `lintje-cell-edit` `{ id, column, value }`, `lintje-row-action` `{ id, action }`,
11
+ * `lintje-bulk-action` `{ ids, action }`, `lintje-filter-change` `{ column, value }`,
12
+ * `lintje-columns-change` `{ order, hidden }`.
16
13
  */
17
14
  import { nothing, type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
18
15
  import { type FrameSettings } from '../../../core/element.js';
19
16
  import { LintjeContentTileElement } from '../../shared/content-tile.js';
20
17
  import '../../feedback/announcement/announcement.js';
18
+ import '../../feedback/empty-state/empty-state.js';
21
19
  import '../description-list/description-list.js';
22
20
  import '../../actions/menu-button/menu-button.js';
23
21
  import '../pagination/pagination.js';
@@ -56,8 +54,12 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
56
54
  static styles: import("lit").CSSResult[];
57
55
  static properties: PropertyDeclarations;
58
56
  data?: DataTableData | null;
57
+ /** The table alone, for a component that already stands in a tile. */
59
58
  bare: boolean;
60
- /** On an application page: no tile, so no title or tile buttons; the page's heading names it. */
59
+ /**
60
+ * On an application page: no tile, so no title or tile buttons, but with its states; the page's
61
+ * heading names it.
62
+ */
61
63
  plain: boolean;
62
64
  /** The sort and checked rows are shown before the host confirms them. */
63
65
  sort: SortState | null;
@@ -71,8 +73,10 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
71
73
  columnOrder: string[] | null;
72
74
  hiddenKeys: string[];
73
75
  panel: Panel | null;
74
- /** The phone rows whose other columns are open. */
75
- mobileOpen: string[];
76
+ /** The rows whose detail is open: on the phone the same list, so turning the screen keeps them. */
77
+ openRows: string[];
78
+ /** The groups of `groupBy` that stand collapsed, by their value. */
79
+ collapsedGroups: string[];
76
80
  /** What the table's status region says: a sort, a page, a selection, a filter's result. */
77
81
  liveMessage: string;
78
82
  protected createRenderRoot(): HTMLElement | DocumentFragment;
@@ -83,6 +87,22 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
83
87
  protected updated(changed: PropertyValues<this>): void;
84
88
  private get columns();
85
89
  private get rows();
90
+ /** The column `groupBy` names; it heads its groups and is not a column of its own. */
91
+ private get groupColumn();
92
+ private get grouped();
93
+ private get groupsPerPage();
94
+ /**
95
+ * `rows` in groups: the groups in the order they first occur in the host's rows, each group's
96
+ * rows in the order of `rows` as given (already sorted).
97
+ */
98
+ private groupsOf;
99
+ private toggleGroup;
100
+ /**
101
+ * What a row's detail lists: the columns the chooser hides, then `detailFields`. Empty: rows
102
+ * have no detail on desktop.
103
+ */
104
+ private get detailColumns();
105
+ private toggleRow;
86
106
  private rowKey;
87
107
  /** The row's key, the name in its first column and the `href` the host minted on the row. */
88
108
  private rowDetail;
@@ -114,11 +134,24 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
114
134
  private clearFilter;
115
135
  private chooserItems;
116
136
  private changeColumns;
137
+ /** Every column shown, in the order the host declared them. */
138
+ private get columnsAreDefault();
139
+ private resetColumns;
140
+ /** "Filters wissen": one `lintje-filter-change` per active column, as a chip would send. */
141
+ private clearAllFilters;
117
142
  protected render(): TemplateResult | typeof nothing;
118
143
  private csv;
144
+ /**
145
+ * The table, or its state. In a tile the skeleton goes in the tile's `loading` slot and empty
146
+ * and error are the tile's; `plain`, without a tile, composes the elements itself.
147
+ */
119
148
  private content;
120
149
  private table;
150
+ /** "6 van 131 rijen" while a filter narrows the rows and the host gave the total. */
151
+ private get filteredCount();
121
152
  private toolbar;
153
+ /** "Alles inklappen" while any group is open, else "Alles uitklappen". */
154
+ private groupToggle;
122
155
  /**
123
156
  * Below 768 px only one measure has a header: "Sorteren" reaches every sortable column. Hidden
124
157
  * from 768 px, where every column's header sorts.
@@ -128,9 +161,45 @@ export declare class LintjeDataTable extends LintjeContentTileElement {
128
161
  private selectionBar;
129
162
  private panels;
130
163
  private fullTable;
164
+ /**
165
+ * A row of no height with each column's widest value over every row, not only this page's: a
166
+ * sort or another page shows other rows, and the columns keep their width.
167
+ */
168
+ private sizerRow;
169
+ /** Per column the value whose words are longest, over every row; kept while the data stands. */
170
+ private widestRow;
171
+ /** A column's head: the sort button and, for a filterable column, its funnel. */
172
+ private headerCell;
173
+ /** The desktop's last column: the rows' menus, and in its head the column chooser. */
174
+ private get actionColumn();
175
+ private alignsRight;
176
+ /** One body row and, while it is open, its detail under it. */
177
+ private fullRow;
178
+ /** The button that opens a row's detail; the phone's row and the desktop's share it. */
179
+ private rowToggle;
180
+ /** What a row's columns leave out, as label and value. */
181
+ private detailList;
182
+ /**
183
+ * A group's heading: a button with the group's word and its count. Collapsed, the row carries
184
+ * the group's subtotals, so a collapsed table still reads.
185
+ */
186
+ private groupRow;
187
+ private subtotalRow;
188
+ private totalsRow;
189
+ /** A totals or subtotal row: its label in the name's place, the host's values under their columns. */
190
+ private sumRow;
191
+ private totalCell;
131
192
  private editableCell;
132
193
  private mobileTable;
133
- private toggleMobileRow;
194
+ /** A phone row: the name and its line, one measure, the toggle and the menu; its list under it. */
195
+ private mobileRow;
196
+ private mobileGroupRow;
197
+ private mobileSumRow;
198
+ /**
199
+ * A total's value with the word before it that says how it was made. A threshold judges one
200
+ * row, not a sum: a total shows its figure plain.
201
+ */
202
+ private totalContent;
134
203
  /** Enter or Space on the row itself; a key meant for a control inside it stays that control's. */
135
204
  private rowKeydown;
136
205
  /** The page is view state, not a number: it stays out of the URL. The table counts from 0. */
@@ -8,6 +8,7 @@
8
8
  import { type TemplateResult } from 'lit';
9
9
  import '../../../primitives/popover/popover.js';
10
10
  import '../../../primitives/button/button.js';
11
+ import '../../../primitives/tooltip/tooltip.js';
11
12
  import '../../overlays/drawer/drawer.js';
12
13
  import '../sortable-list/sortable-list.js';
13
14
  import type { SortableItem } from '../sortable-list/sortable-list.js';
@@ -28,7 +29,6 @@ export declare function columnsChange(first: string, order: readonly string[], c
28
29
  /** How the focus left a column panel: Tab past its first or last stop, or anywhere else. */
29
30
  export type PanelLeave = 'back' | 'forward' | 'away';
30
31
  export declare function renderFunnel(column: TableColumnData, value: FilterValue | null | undefined, expanded: boolean, onOpen: (anchor: HTMLElement) => void): TemplateResult;
31
- export declare function renderFilterDot(): TemplateResult;
32
32
  export declare function renderFilterField(column: TableColumnData, value: FilterValue | undefined, onChange: (value: FilterValue) => void): TemplateResult;
33
33
  export declare function renderFilterPopover(options: {
34
34
  column: TableColumnData;
@@ -52,14 +52,20 @@ export declare function renderFiltersSheet(options: {
52
52
  export declare function renderToolbar(options: {
53
53
  columns: TableColumnData[];
54
54
  values: Record<string, FilterValue>;
55
- shown: number;
56
- total: number | undefined;
55
+ /** "6 van 131 rijen" while a filter is active and no pager below says it; else empty. */
56
+ count: string;
57
57
  /** Below 768 px, beside "Filters": the sort on any column. */
58
58
  sortMenu?: unknown;
59
+ /** The table's own controls at the toolbar's end ("Alles inklappen"). */
60
+ chooser?: unknown;
59
61
  onClearFilter: (column: string, button: HTMLElement) => void;
62
+ onClearAll: (button: HTMLElement) => void;
60
63
  onOpenSheet: () => void;
61
64
  }): TemplateResult;
62
- /** The column chooser's button, in the head of the actions column: as narrow as the row menus. */
65
+ /**
66
+ * "Kolommen kiezen": a quiet icon at the end of the head, above the rows' menus, where the columns
67
+ * are. The tooltip says its name, which is already the button's own.
68
+ */
63
69
  export declare function renderChooserButton(expanded: boolean, onOpen: (anchor: HTMLElement) => void): TemplateResult;
64
70
  export declare function renderColumnChooser(options: {
65
71
  first: TableColumnData;
@@ -67,6 +73,9 @@ export declare function renderColumnChooser(options: {
67
73
  anchor: Element | null;
68
74
  onOrder: (order: string[]) => void;
69
75
  onChecked: (checked: string[]) => void;
76
+ /** Every column shown, in the host's order; disabled while that is what stands. */
77
+ onReset: () => void;
78
+ isDefault: boolean;
70
79
  onClose: () => void;
71
80
  onLeave: (how: PanelLeave) => boolean;
72
81
  }): TemplateResult;
@@ -1,18 +1,14 @@
1
1
  /**
2
2
  * `<lintje-description-list>` — label-value pairs for a detail or a review screen, a real `<dl>`.
3
3
  *
4
- * A missing value (`null`, `undefined` or `''`) is a muted dash, never 0 (rule 15). A plain click
5
- * on a link is cancelled and sent as `lintje-navigate`; a modified click is the browser's.
6
- *
7
- * `layout="grid"` sets the pairs as cells side by side, for a summary of what is about to happen
8
- * ("Deze opname"): a cell can take two columns, carry an icon and a tone, show its value as tags,
9
- * and take richer content through a slot named by the item (`slot`). Below 30rem of its own width
10
- * it has two columns.
4
+ * A missing value (`null`, `undefined` or `''`) is a muted dash, never 0. A plain click on a link
5
+ * is cancelled and sent as `lintje-navigate`.
11
6
  *
12
7
  * Events: `lintje-navigate` `{ href }`.
13
8
  */
14
9
  import { type PropertyDeclarations, type TemplateResult } from 'lit';
15
10
  import { LintjeGridItemElement } from '../../../primitives/shared/grid-item-element.js';
11
+ import { type Tone } from '../../../primitives/shared/tone.js';
16
12
  /** A link on the right of the value, for changing it ("Locatie wijzigen" as accessible name). */
17
13
  export interface DescriptionAction {
18
14
  href: string;
@@ -35,14 +31,14 @@ export interface DescriptionItem {
35
31
  /** Grid: the one figure a reader looks at, as large as a key figure. */
36
32
  large?: boolean;
37
33
  /**
38
- * `changed`: differs from the default, and says "Aangepast". `warning` and `error`: something to
39
- * act on; the glyph comes with it, the words are the host's (in the value or its slot).
34
+ * `changed`: differs from the default, and says "Aangepast". A shared tone carries its
35
+ * glyph when it has one, and the words are the host's (in the value or its slot).
40
36
  */
41
37
  tone?: DescriptionTone;
42
38
  /** The name of a slot drawn under the value, for what a string cannot say (a meter, a button). */
43
39
  slot?: string;
44
40
  }
45
- export type DescriptionTone = 'changed' | 'warning' | 'error';
41
+ export type DescriptionTone = 'changed' | Tone;
46
42
  export type DescriptionListLayout = 'row' | 'column' | 'grid';
47
43
  export declare class LintjeDescriptionList extends LintjeGridItemElement {
48
44
  static styles: import("lit").CSSResult[];
@@ -52,7 +48,12 @@ export declare class LintjeDescriptionList extends LintjeGridItemElement {
52
48
  columns: number;
53
49
  /** Grid: the cells take the surface and a frame, for a wash such as the hero's. */
54
50
  surface: boolean;
55
- /** `column` keeps the label above the value at every width; `row` only below 768 px; `grid`: cells. */
51
+ /**
52
+ * `column` keeps the label above the value at every width; `row` only below 768 px. `grid` sets
53
+ * the pairs as cells side by side, for a summary of what is about to happen ("Deze opname"): a
54
+ * cell can take two columns, an icon and a tone, show its value as tags, and take richer content
55
+ * through a slot named by the item (`slot`).
56
+ */
56
57
  layout: DescriptionListLayout;
57
58
  private follow;
58
59
  private value;
@@ -1,26 +1,15 @@
1
1
  /**
2
- * `<lintje-list>` — rows for what needs no columns: title, a muted line, a fact or actions. It is
3
- * also the work list: what someone made or had made, in progress or done, with the kind as an
4
- * icon, the state as a word, the progress as a bar, and rows grouped under a moment ("Vandaag").
5
- * A row's title is one line, cut with an ellipsis; it wraps where no pointer shows its tooltip:
6
- * below 768 px, without hover, and under the keyboard's focus. A run's moment is a heading at
7
- * `heading-level`.
2
+ * `<lintje-list>` — rows for what needs no columns: title, a muted line, a fact or actions.
8
3
  *
9
- * The whole row is clickable but the title is the one tab stop; a row with `clickable: false` opens
10
- * nothing, and its title is plain text or, with an `href`, only a link. It does not navigate: a plain
11
- * click is cancelled and sent as `lintje-row-click`; a modifier click on a title link is the
12
- * browser's. A menu's `lintje-action` is stopped and sent again with its row. When the focused
13
- * control leaves with an update (a row removed, an action replaced), the focus goes to the same
14
- * row's other control, else the next row, the previous one, or the list itself. A rename that ends
15
- * gives the focus to its row's first control, found by its id or, saved under a new one, its place.
4
+ * It is also the work list: what someone made or had made, with its kind, state and progress, in
5
+ * runs under a moment ("Vandaag"). It does not navigate: a plain click on a row is cancelled and
6
+ * sent as `lintje-row-click`, and a link row in a menu also sends `lintje-navigate` after its
7
+ * `lintje-row-action`. A row with `rename` turns its title into a field in place; the host keeps
8
+ * that state, as for every row.
16
9
  *
17
- * A row with `rename` turns its title into a field in place, with its save and cancel: renaming
18
- * needs no dialog. The host keeps the state, as it does for every row.
19
- *
20
- * Events: `lintje-row-click` `{ id, label, href? }`, `lintje-row-action` `{ id, label, value }`
21
- * (every chosen menu row, a link row included, and the row's own `action`), `lintje-navigate` `{ href }` (from a link row in a
22
- * menu, after its `lintje-row-action`), `lintje-row-rename` `{ id, value }` and
23
- * `lintje-row-rename-cancel` `{ id }` (Enter and Escape too).
10
+ * Events: `lintje-row-click` `{ id, label, href? }`, `lintje-row-action` `{ id, label, value }` (a
11
+ * chosen menu row or the row's own action), `lintje-row-rename` `{ id, value }`,
12
+ * `lintje-row-rename-cancel` `{ id }`.
24
13
  */
25
14
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
26
15
  import { LintjeElement } from '../../../core/element.js';
@@ -1,15 +1,13 @@
1
1
  /**
2
- * `<lintje-pagination>` — the "21–40 van 131 documenten" count on the left, "Vorige", page
3
- * numbers and "Volgende" in the middle and, with `page-sizes`, the choice how many stand on a page
4
- * on the right. Where the three do not fit on one line the count and the choice go below.
2
+ * `<lintje-pagination>` — the "21–40 van 131 documenten" count, "Vorige", the page numbers and
3
+ * "Volgende" and, with `page-sizes`, the choice how many stand on a page.
5
4
  *
6
- * It does not write the URL. With `href-template` every page is a link and a plain click is
7
- * handed to the host as `lintje-navigate`; without one they are buttons. A choice shows at once
8
- * and the host confirms it through `page` and `page-size`. Pages count from 1.
5
+ * It does not write the URL: a choice shows at once, and the host confirms it through `page` and
6
+ * `page-size`. With `href-template` every page is a link; without one they are buttons. Pages
7
+ * count from 1.
9
8
  *
10
- * Events: `lintje-page-change` `{ page }`; `lintje-page-size-change` `{ pageSize, page }`, where
11
- * `page` is the one that keeps the first row in view; with `href-template` also
12
- * `lintje-navigate` `{ href }`.
9
+ * Events: `lintje-page-change` `{ page }`, `lintje-page-size-change` `{ pageSize, page }` (`page`
10
+ * keeps the first row in view), `lintje-navigate` `{ href }` (with `href-template`).
13
11
  */
14
12
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
15
13
  import { LintjeElement } from '../../../core/element.js';
@@ -27,9 +25,10 @@ export interface CountUnit {
27
25
  }
28
26
  /**
29
27
  * "21–40 van 131 documenten": the rows on `page`, or `null` when the host gave no total. When
30
- * everything fits on one page the range would repeat the total, so only the total stands.
28
+ * everything fits on one page the range would repeat the total, so only the total stands. With
29
+ * `from`, a filter narrowed the total: "· gefilterd uit 980" follows.
31
30
  */
32
- export declare function rangeText(page: number, pageSize?: number, total?: number, unit?: CountUnit): string | null;
31
+ export declare function rangeText(page: number, pageSize?: number, total?: number, unit?: CountUnit, from?: number): string | null;
33
32
  /** `"10, 20, 50"` → `[10, 20, 50]`: whole, positive, each once, in the host's order. */
34
33
  export declare function parsePageSizes(value: string | null): number[] | undefined;
35
34
  export declare class LintjePagination extends LintjeElement {
@@ -41,6 +40,8 @@ export declare class LintjePagination extends LintjeElement {
41
40
  pageCount?: number;
42
41
  /** Rows over all pages, for the count. */
43
42
  total?: number;
43
+ /** The rows before a filter narrowed them to `total`; the count then says it was filtered. */
44
+ filteredFrom?: number;
44
45
  pageSize?: number;
45
46
  /** `"10, 20, 50"`: draws the choice how many stand on a page. */
46
47
  pageSizes?: number[];
@@ -1,13 +1,12 @@
1
1
  /**
2
2
  * `<lintje-sortable-list>` — rows reordered by dragging a grip or with the keyboard.
3
3
  *
4
- * Only the grip starts a drag, so on a phone the list still scrolls under a finger on the row. A
5
- * tap on a grip picks its row up as the keyboard does, and a tap on a grip puts it down there.
6
- * It reorders its own copy of `items` until the host sends new ones and tells an order once, when
7
- * a row is put down at a new place. Every step is read out by a `role="status"`.
4
+ * Only the grip starts a drag, so on a phone the list still scrolls under a finger. It reorders
5
+ * its own copy of `items` until the host sends new ones, and tells an order once, when a row is
6
+ * put down at a new place.
8
7
  *
9
- * Events: `lintje-change` (ids, not composed); `lintje-values-change` `{ [name]: ids }` with a
10
- * `name`; `lintje-checked-change` (ids) with `checkable`.
8
+ * Events: `lintje-change` `string[]` (the ids in order), `lintje-values-change`
9
+ * `{ [name]: value }` (with a `name`), `lintje-checked-change` `string[]` (with `checkable`).
11
10
  */
12
11
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
13
12
  import { LintjeElement } from '../../../core/element.js';
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * `<lintje-tree-view>` — a hierarchy that folds open and shut, one tab stop with roving focus.
3
3
  *
4
- * `expanded` is the host's: the element folds its own copy and reports each fold, so a host that
5
- * loads children on demand answers with `loading` and then `children`. It fetches nothing.
4
+ * It fetches nothing: it folds its own copy of `expanded` and reports each fold, so a host that
5
+ * loads children on demand answers with `loading` and then `children`.
6
6
  *
7
- * Events: `lintje-node-toggle` `{ id, open }`; `lintje-change` (id, not composed);
8
- * `lintje-values-change` `{ [name]: id }` with a `name`.
7
+ * Events: `lintje-node-toggle` `{ id, open }`, `lintje-change` `string` (the chosen node's id),
8
+ * `lintje-values-change` `{ [name]: value }` (with a `name`).
9
9
  */
10
10
  import { type PropertyDeclarations, type PropertyValues, type TemplateResult } from 'lit';
11
11
  import { LintjeElement } from '../../../core/element.js';
@@ -3,8 +3,8 @@
3
3
  * per query string is shared by every controller.
4
4
  */
5
5
  import type { ReactiveController, ReactiveControllerHost } from 'lit';
6
- /** Below this the views take their phone representation (rule 9). */
7
- export declare const MOBILE = "(max-width: 767px)";
6
+ /** Below this the views take their phone representation (rule 9); on screen only, so paper keeps the desktop form. */
7
+ export declare const MOBILE = "screen and (max-width: 767px)";
8
8
  /** From here the menu can be pinned. The frame's markup changes at both breakpoints. */
9
9
  export declare const WIDE = "(min-width: 1440px)";
10
10
  export declare class MediaController implements ReactiveController {
@@ -4,5 +4,10 @@
4
4
  * The unit is parsed: a minifier writes `900ms` as `.9s`, which `parseFloat` alone reads as 0.9 ms.
5
5
  */
6
6
  export declare function durationMs(element: Element, token: string): number;
7
+ /**
8
+ * A timing-function token as a function of progress, for motion drawn frame by frame: `linear`
9
+ * or `cubic-bezier(…)`; anything else runs linear.
10
+ */
11
+ export declare function easing(element: Element, token: string): (t: number) => number;
7
12
  /** Whether the reader asked for less motion. */
8
13
  export declare function prefersReducedMotion(): boolean;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * What an element finishes before the page goes to paper: one `beforeprint` listener for the
3
+ * page, and every element that registers runs before the browser lays out the print.
4
+ *
5
+ * A callback must leave its final state in the DOM before it returns. "Afdrukken" in the shell
6
+ * calls `window.print()` inside a frame callback, so `beforeprint` fires with a script on the
7
+ * stack and a Lit update queued as a microtask would land after the print layout.
8
+ */
9
+ /** Runs `callback` before every print; the returned function unregisters it. */
10
+ export declare function onBeforePrint(callback: () => void): () => void;
11
+ /**
12
+ * Runs `callback` with `true` when the page is laid out for paper and `false` when it is back on
13
+ * screen. Inside the call a box measures its paper size, which `beforeprint` is too early for.
14
+ */
15
+ export declare function onPrintMedia(callback: (printing: boolean) => void): () => void;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The page's one register of keyboard shortcuts: one `keydown` listener; `shortcuts()` lists
3
- * them for `<lintje-shortcuts>`. Without Ctrl, Alt or Meta a key never fires in a field; with
4
- * one, only when registered with `inFields`. A key registered twice warns in development.
3
+ * them for the overview a page shows. Without Ctrl, Alt or Meta a key never fires in a field;
4
+ * with one, only when registered with `inFields`. A key registered twice warns in development.
5
5
  *
6
6
  * A one-character key (`/`, `?`) can be switched off by the reader (WCAG 2.1.4, for speech
7
7
  * input and stray keystrokes): `setCharacterKeys(false)`, remembered in `localStorage`.
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * `<lintje-icon>` — one icon, named by its file in `dist-icons/` (without `.svg`).
3
3
  *
4
- * For plain HTML pages; inside a component use `renderIcon()` (`../render.ts`), which this
5
- * element also draws through. Resolution: `src`, the register, loaded icons, then nothing.
6
- * Events: none.
4
+ * For plain HTML pages; inside a component use `renderIcon()`, which this element also draws
5
+ * through. It takes `src`, else the register, else a loaded file; without any it draws nothing.
7
6
  */
8
7
  import { nothing, type TemplateResult } from 'lit';
9
8
  import { LintjeElement } from '../../core/element.js';
@@ -5,7 +5,7 @@
5
5
  * Every other icon is fetched by name when a name needs it
6
6
  * (`src/icons/loader.ts`); the name is always the file name.
7
7
  *
8
- * 62 icons, of 1198 in `dist-icons/`.
8
+ * 63 icons, of 1200 in `dist-icons/`.
9
9
  */
10
10
  export interface IconGlyph {
11
11
  /** The file's own viewBox: 64 or 48 in RVO's set, 24 for an own icon, 346x75 for an emblem. */