lintje 0.9.2 → 0.10.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 (192) hide show
  1. package/README.md +21 -1
  2. package/dist-elements/actions.js +1 -1
  3. package/dist-elements/chunks/{addon-DoyybBuA.js → addon-D_qiELEE.js} +1 -1
  4. package/dist-elements/chunks/{avatar-BGJgBB9r.js → avatar-fsp2gI9x.js} +1 -1
  5. package/dist-elements/chunks/{axes-DfDMsu3s.js → axes-DVNd9rvA.js} +53 -53
  6. package/dist-elements/chunks/base-BbinwQUv.js +242 -0
  7. package/dist-elements/chunks/chart-styles-DYVopFQv.js +45 -0
  8. package/dist-elements/chunks/dialog-close-Ir9E-YQI.js +1 -0
  9. package/dist-elements/chunks/{disclosure-Ch2SwnkG.js → disclosure-CfMDSiGM.js} +1 -1
  10. package/dist-elements/chunks/{disclosure-Cr6FasjS.js → disclosure-CwyiRC_B.js} +6 -6
  11. package/dist-elements/chunks/{download-Bm3q8daQ.js → download-BTA_mOVO.js} +1 -1
  12. package/dist-elements/chunks/{focus-trap-BQMduQNN.js → focus-trap-bJm7pdpd.js} +1 -1
  13. package/dist-elements/chunks/frame-CWMTL0Pv.js +1 -0
  14. package/dist-elements/chunks/input-Ap7GDYW9.js +1 -0
  15. package/dist-elements/chunks/{input-D43cAS2M.js → input-B451zEPB.js} +4 -4
  16. package/dist-elements/chunks/menu-ku7K3tXM.js +1 -0
  17. package/dist-elements/chunks/{month-grid-BQKSnNLC.js → month-grid-Bu05f13h.js} +1 -1
  18. package/dist-elements/chunks/{other-GcjW2Nqw.js → other-Djlj_GCj.js} +1 -1
  19. package/dist-elements/chunks/{player-DtFr1Bf8.js → player-B_Ae6Dt2.js} +17 -17
  20. package/dist-elements/chunks/prose-BALGe_vb.js +1 -0
  21. package/dist-elements/chunks/sentence-D48K1ZTn.js +3 -0
  22. package/dist-elements/chunks/{stagger-CYcBlEiK.js → stagger-3qKZSgS1.js} +8 -8
  23. package/dist-elements/core.js +1 -1
  24. package/dist-elements/custom-elements.json +3612 -51
  25. package/dist-elements/data-types.json +81 -3
  26. package/dist-elements/feedback.js +1 -1
  27. package/dist-elements/frame.js +1 -1
  28. package/dist-elements/guides/dashboard.md +13 -3
  29. package/dist-elements/guides/loading.md +1 -1
  30. package/dist-elements/guides/start.md +53 -1
  31. package/dist-elements/guides/theming.md +69 -0
  32. package/dist-elements/layout.js +1 -1
  33. package/dist-elements/lintje.js +1068 -948
  34. package/dist-elements/overlays.js +1 -1
  35. package/dist-elements/skills/lintje/SKILL.md +3 -1
  36. package/dist-elements/tag/accordion.js +3 -3
  37. package/dist-elements/tag/activity-log.js +11 -11
  38. package/dist-elements/tag/ai-label.js +4 -4
  39. package/dist-elements/tag/announcement.js +9 -9
  40. package/dist-elements/tag/app-search.js +19 -19
  41. package/dist-elements/tag/attachment.js +24 -24
  42. package/dist-elements/tag/audio-player.js +39 -39
  43. package/dist-elements/tag/badge.js +1 -1
  44. package/dist-elements/tag/breadcrumbs.js +10 -10
  45. package/dist-elements/tag/button.js +1 -1
  46. package/dist-elements/tag/card-list.js +9 -9
  47. package/dist-elements/tag/card.js +30 -30
  48. package/dist-elements/tag/chart.js +542 -530
  49. package/dist-elements/tag/chat-answer.js +43 -43
  50. package/dist-elements/tag/chat-composer.js +66 -74
  51. package/dist-elements/tag/chat-message.js +14 -14
  52. package/dist-elements/tag/chat-questions.js +57 -57
  53. package/dist-elements/tag/chat-steps.js +20 -20
  54. package/dist-elements/tag/chat-strip.js +23 -23
  55. package/dist-elements/tag/chat-suggestions.js +6 -6
  56. package/dist-elements/tag/chat.js +47 -47
  57. package/dist-elements/tag/checkbox-group.js +11 -10
  58. package/dist-elements/tag/checkbox.js +7 -7
  59. package/dist-elements/tag/code.js +6 -6
  60. package/dist-elements/tag/combobox.js +20 -19
  61. package/dist-elements/tag/conflict-alert.js +8 -8
  62. package/dist-elements/tag/copy-button.js +5 -5
  63. package/dist-elements/tag/data-table.js +164 -163
  64. package/dist-elements/tag/date-input.js +11 -10
  65. package/dist-elements/tag/date-range.js +16 -15
  66. package/dist-elements/tag/description-list.js +17 -17
  67. package/dist-elements/tag/dialog.js +7 -7
  68. package/dist-elements/tag/document-viewer.js +21 -21
  69. package/dist-elements/tag/drawer.js +9 -9
  70. package/dist-elements/tag/empty-state.js +1 -1
  71. package/dist-elements/tag/error-page.js +11 -11
  72. package/dist-elements/tag/error-summary.js +12 -12
  73. package/dist-elements/tag/expander.js +4 -4
  74. package/dist-elements/tag/explainer.js +4 -4
  75. package/dist-elements/tag/field.js +4 -4
  76. package/dist-elements/tag/file-upload.js +18 -17
  77. package/dist-elements/tag/filter-bar.js +40 -40
  78. package/dist-elements/tag/filter-sheet.js +3 -3
  79. package/dist-elements/tag/filter-zone.js +18 -18
  80. package/dist-elements/tag/find.js +14 -14
  81. package/dist-elements/tag/footer.js +15 -15
  82. package/dist-elements/tag/form-actions.js +2 -2
  83. package/dist-elements/tag/form-section.js +3 -3
  84. package/dist-elements/tag/form.js +3 -3
  85. package/dist-elements/tag/gallery.js +11 -11
  86. package/dist-elements/tag/graph.js +64 -63
  87. package/dist-elements/tag/grid-item.js +1 -1
  88. package/dist-elements/tag/grid.js +1 -1
  89. package/dist-elements/tag/hero.js +8 -7
  90. package/dist-elements/tag/highlight.js +4 -4
  91. package/dist-elements/tag/icon-button.js +1 -1
  92. package/dist-elements/tag/icon.js +1 -1
  93. package/dist-elements/tag/job-list.js +3 -3
  94. package/dist-elements/tag/key.js +1 -1
  95. package/dist-elements/tag/kpi-row.js +4 -4
  96. package/dist-elements/tag/kpi.js +73 -73
  97. package/dist-elements/tag/language-nav.d.ts +1 -0
  98. package/dist-elements/tag/language-nav.js +45 -0
  99. package/dist-elements/tag/level-meter.js +8 -8
  100. package/dist-elements/tag/list.js +26 -26
  101. package/dist-elements/tag/log-viewer.js +72 -71
  102. package/dist-elements/tag/logo.js +15 -15
  103. package/dist-elements/tag/map.js +148 -147
  104. package/dist-elements/tag/menu-button.js +43 -41
  105. package/dist-elements/tag/modal.js +9 -9
  106. package/dist-elements/tag/multiselect.js +15 -14
  107. package/dist-elements/tag/note.js +2 -2
  108. package/dist-elements/tag/notifications.js +23 -23
  109. package/dist-elements/tag/number-input.js +19 -18
  110. package/dist-elements/tag/page-header.js +21 -11
  111. package/dist-elements/tag/pagination.js +28 -28
  112. package/dist-elements/tag/person-group.js +5 -5
  113. package/dist-elements/tag/person.js +8 -8
  114. package/dist-elements/tag/popover.js +1 -1
  115. package/dist-elements/tag/progress-bar.js +1 -1
  116. package/dist-elements/tag/prose.js +1 -1
  117. package/dist-elements/tag/qr-code.js +3 -3
  118. package/dist-elements/tag/radio-group.js +15 -14
  119. package/dist-elements/tag/range.js +17 -16
  120. package/dist-elements/tag/recording-status.js +9 -9
  121. package/dist-elements/tag/repeater.js +5 -5
  122. package/dist-elements/tag/segmented.js +8 -7
  123. package/dist-elements/tag/select.js +10 -7
  124. package/dist-elements/tag/shell.js +265 -248
  125. package/dist-elements/tag/skeleton.js +1 -1
  126. package/dist-elements/tag/slot-picker.js +15 -14
  127. package/dist-elements/tag/sortable-list.js +21 -21
  128. package/dist-elements/tag/spinner.js +1 -1
  129. package/dist-elements/tag/split-pane.js +9 -9
  130. package/dist-elements/tag/status-dot.js +1 -1
  131. package/dist-elements/tag/stepper.js +12 -12
  132. package/dist-elements/tag/streaming-text.js +12 -12
  133. package/dist-elements/tag/sub-nav.js +20 -20
  134. package/dist-elements/tag/tabs.js +35 -33
  135. package/dist-elements/tag/tag-input.js +26 -25
  136. package/dist-elements/tag/text-editor.js +12 -11
  137. package/dist-elements/tag/text-input.js +20 -19
  138. package/dist-elements/tag/textarea.js +11 -10
  139. package/dist-elements/tag/tile.js +1 -1
  140. package/dist-elements/tag/time-input.js +8 -7
  141. package/dist-elements/tag/toast.js +8 -8
  142. package/dist-elements/tag/toggle.js +4 -4
  143. package/dist-elements/tag/toggletip.js +6 -6
  144. package/dist-elements/tag/token-value.js +2 -2
  145. package/dist-elements/tag/tooltip.js +1 -1
  146. package/dist-elements/tag/transcript.js +22 -22
  147. package/dist-elements/tag/translator.js +6 -6
  148. package/dist-elements/tag/tree-view.js +22 -22
  149. package/dist-elements/tag/user-menu.js +43 -42
  150. package/dist-elements/tag/video-player.js +15 -15
  151. package/dist-elements/tokens.css +331 -11
  152. package/dist-elements/tokens.json +419 -19
  153. package/dist-elements/types/bundle/frame.d.ts +1 -0
  154. package/dist-elements/types/components/actions/button/button.d.ts +5 -1
  155. package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +23 -5
  156. package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +4 -2
  157. package/dist-elements/types/components/frame/breadcrumbs/breadcrumbs.d.ts +6 -2
  158. package/dist-elements/types/components/frame/footer/footer.d.ts +5 -1
  159. package/dist-elements/types/components/frame/hero/hero.d.ts +18 -1
  160. package/dist-elements/types/components/frame/language-nav/language-nav.d.ts +49 -0
  161. package/dist-elements/types/components/frame/page-header/page-header.d.ts +15 -1
  162. package/dist-elements/types/components/frame/shell/shell.d.ts +23 -3
  163. package/dist-elements/types/components/index.d.ts +4 -1
  164. package/dist-elements/types/components/inputs/shared/field-foot.d.ts +3 -2
  165. package/dist-elements/types/components/inputs/shared/input.d.ts +11 -0
  166. package/dist-elements/types/components/inputs/text-input/text-input.d.ts +1 -1
  167. package/dist-elements/types/components/inputs/textarea/textarea.d.ts +1 -0
  168. package/dist-elements/types/components/layout/expander/expander.d.ts +10 -5
  169. package/dist-elements/types/components/layout/tabs/tabs.d.ts +3 -0
  170. package/dist-elements/types/components/layout/tile/tile.d.ts +22 -2
  171. package/dist-elements/types/components/overlays/drawer/drawer.d.ts +5 -1
  172. package/dist-elements/types/components/overlays/popover/popover.d.ts +2 -0
  173. package/dist-elements/types/components/shared/announcement-block.d.ts +2 -0
  174. package/dist-elements/types/components/shared/grid-item-element.d.ts +24 -1
  175. package/dist-elements/types/components/shared/tone.d.ts +7 -0
  176. package/dist-elements/types/components/tables/list/list.d.ts +6 -0
  177. package/dist-elements/types/core/element.d.ts +20 -2
  178. package/dist-elements/types/core/styles.d.ts +4 -2
  179. package/dist-elements/types/icons/register.d.ts +1 -1
  180. package/dist-elements/types/types.d.ts +15 -0
  181. package/dist-icons/functioneel-cirkel-vinkje-gekleurd.svg +1 -0
  182. package/dist-icons/functioneel-foutmelding-gekleurd.svg +1 -0
  183. package/dist-icons/functioneel-info-gekleurd.svg +1 -0
  184. package/dist-icons/functioneel-waarschuwing-gekleurd.svg +1 -0
  185. package/package.json +1 -1
  186. package/dist-elements/chunks/base-DpZg_-sV.js +0 -226
  187. package/dist-elements/chunks/chart-styles-BIR87i7H.js +0 -45
  188. package/dist-elements/chunks/dialog-close-B0vtlJWP.js +0 -1
  189. package/dist-elements/chunks/frame-BMR48Vea.js +0 -1
  190. package/dist-elements/chunks/input-CCT6CcW1.js +0 -1
  191. package/dist-elements/chunks/prose-aNcSsHId.js +0 -1
  192. package/dist-elements/chunks/sentence-Dq2QLUs9.js +0 -3
@@ -1,5 +1,9 @@
1
1
  /**
2
- * `<lintje-menu-button>` — a button with a menu of actions.
2
+ * `<lintje-menu-button>` — a button with a menu of actions, or with a panel of choices.
3
+ *
4
+ * Without `items` the button opens its own content instead, as a panel: choices that are not
5
+ * actions, such as how a message is sent. The panel's first element takes the focus, so it is a
6
+ * control or has `tabindex="-1"`; Escape puts the focus back on the button.
3
7
  *
4
8
  * A disabled trigger stays in the tab order and refuses to open. The keys reach disabled rows
5
9
  * too, so their `reason` tooltip shows on focus.
@@ -38,7 +42,7 @@ export interface MenuHeading {
38
42
  }
39
43
  /** A row, a group's heading, or the line between two groups. */
40
44
  export type MenuEntry = MenuItem | MenuHeading | 'separator';
41
- /** `flat` is the tertiary without its border, for a trigger among flat icon buttons. */
45
+ /** `flat` is the tertiary with less side padding, for a trigger among flat icon buttons. */
42
46
  export type MenuButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'flat' | 'ellipsis';
43
47
  /**
44
48
  * The entries of a menu: a heading and the rows under it form a `group` named by it, since a menu
@@ -84,16 +88,30 @@ export declare class LintjeMenuButton extends LintjeElement {
84
88
  /** Reflected, so a sheet around it can see a menu is open and leave Escape to it. */
85
89
  open: boolean;
86
90
  /**
87
- * Two halves of one button, 1 px apart: the label does the usual action (`action`), the arrow
88
- * beside it opens the other ways to do it.
91
+ * Two halves of one button with a line in its ink between them: the label does the usual action
92
+ * (`action`), the arrow beside it opens the other ways to do it, or the panel.
89
93
  */
90
94
  split: boolean;
91
95
  /** What a split button's own half sends as `lintje-action`. */
92
96
  action: string;
97
+ /**
98
+ * A split button's own half is off while its arrow still opens: a message that cannot be sent
99
+ * yet keeps its options. The arrow drops from primary to secondary, so the grey half does not
100
+ * stand beside the strongest fill.
101
+ */
102
+ actionDisabled: boolean;
103
+ /**
104
+ * A split button's own half is its `leading-icon` alone, in a square, named by `label`: a
105
+ * phone's send button, where the label would take a line of its own.
106
+ */
107
+ iconOnly: boolean;
93
108
  private readonly menuId;
94
109
  private pendingFocus;
95
110
  private get unavailable();
96
111
  private get rows();
112
+ /** No rows: the arrow opens the element's own content. */
113
+ private get panel();
114
+ private get popup();
97
115
  private get trigger();
98
116
  private rowElements;
99
117
  private show;
@@ -109,7 +127,7 @@ export declare class LintjeMenuButton extends LintjeElement {
109
127
  private choose;
110
128
  protected willUpdate(changed: PropertyValues<this>): void;
111
129
  protected updated(changed: PropertyValues<this>): void;
112
- /** The usual action on the label, the arrow beside it for the rest: one group, 1 px apart. */
130
+ /** The usual action on the label, the arrow beside it for the rest: one group. */
113
131
  private renderSplit;
114
132
  private renderTrigger;
115
133
  private renderRow;
@@ -19,6 +19,7 @@ import { type PropertyDeclarations, type PropertyValues, type TemplateResult } f
19
19
  import { LintjeElement } from '../../../core/element.js';
20
20
  import '../../actions/button/button.js';
21
21
  import '../../actions/icon-button/icon-button.js';
22
+ import '../../actions/menu-button/menu-button.js';
22
23
  import '../../content/attachment/attachment.js';
23
24
  import '../../inputs/multiselect/multiselect.js';
24
25
  import '../../inputs/radio-group/radio-group.js';
@@ -49,7 +50,6 @@ export declare class LintjeChatComposer extends LintjeElement {
49
50
  vocabulary?: ChatTermData[];
50
51
  /** The host's own reading of the text; it wins while the text is unchanged. */
51
52
  draftTerms?: ChatDraftTerms;
52
- optionsOpen: boolean;
53
53
  /** Only "Versturen": no choice of the answer's form, no send key. For a question that is not a
54
54
  * conversation with data, such as the one on a start page that searches a catalogue. */
55
55
  plain: boolean;
@@ -126,7 +126,6 @@ export declare class LintjeChatComposer extends LintjeElement {
126
126
  private clearHighlights;
127
127
  private paint;
128
128
  private setSendKey;
129
- private toggleOptions;
130
129
  protected render(): TemplateResult;
131
130
  private get placeholderText();
132
131
  /** "Stel een nieuwe vraag · 2 bijlagen": every chip counts, also one busy or refused. */
@@ -136,6 +135,9 @@ export declare class LintjeChatComposer extends LintjeElement {
136
135
  /** While files hang over the window, the frame is the drop zone of the upload field. */
137
136
  private renderDrop;
138
137
  private renderAsk;
138
+ /** Only "Versturen", without the arrow: a phone's is the icon alone. */
139
+ private renderPlainSend;
140
+ /** The send button's panel: it takes the focus itself when it opens. */
139
141
  private renderSendOptions;
140
142
  private renderEdit;
141
143
  }
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * `<lintje-breadcrumbs>` — the breadcrumb trail above a page's title.
3
3
  *
4
- * The last item is the current page, never a link. Past four levels the middle collapses into a
5
- * "…" menu. It never reads the URL: the host passes the levels.
4
+ * The last item is the current page, never a link. In the new house style the trail shows only
5
+ * the levels above the page, as the house style draws it: a last item without `href` is the page
6
+ * itself and stays out, every level shown is a link. Past four levels the middle collapses into
7
+ * a "…" menu. It never reads the URL: the host passes the levels.
6
8
  *
7
9
  * Events: `lintje-navigate` `{ href }`.
8
10
  */
@@ -30,6 +32,8 @@ export declare class LintjeBreadcrumbs extends LintjeElement {
30
32
  private follow;
31
33
  private renderCrumb;
32
34
  private renderMenu;
35
+ /** The levels drawn: in the new house style without the page itself. */
36
+ private get shown();
33
37
  private renderPhone;
34
38
  protected render(): TemplateResult | typeof nothing;
35
39
  }
@@ -3,7 +3,9 @@
3
3
  * of links under a heading, and a row of the links every page carries (privacy, accessibility).
4
4
  *
5
5
  * It stands on the menu's own fill and runs edge to edge; in `lintje-shell` it goes in the
6
- * `footer` slot. Below 768 px the columns stand under each other.
6
+ * `footer` slot. Below 768 px the columns stand under each other. With `variant="compact"` it is
7
+ * the foot of a form or a task page: the tagline and the fixed links on one row on the subtle
8
+ * surface, without columns.
7
9
  *
8
10
  * Events: `lintje-navigate` `{ href }` (a plain click on a link).
9
11
  */
@@ -30,6 +32,8 @@ export declare class LintjeFooter extends LintjeElement {
30
32
  static styles: import("lit").CSSResult[];
31
33
  static properties: PropertyDeclarations;
32
34
  data?: FooterData;
35
+ /** `compact`: the tagline and the fixed links on one row on the subtle surface; `columns` are left out. */
36
+ variant: 'default' | 'compact';
33
37
  private onLink;
34
38
  private link;
35
39
  protected render(): TemplateResult;
@@ -6,16 +6,33 @@
6
6
  * `full` slot. The title is an h2: the page's h1 is the shell's `name`. The default slot takes a
7
7
  * search field or a short form under the introduction, `aside` one picture beside the text (left
8
8
  * out below 1024 px), `panel` content beside the text, and `overlap` what stands half over the
9
- * band's lower edge, such as a panel of tabs.
9
+ * band's lower edge, such as a panel of tabs. With `tone="primary"` it is the page's head: the
10
+ * `breadcrumbs` slot takes the trail above the title. In a shell whose menu is light a hero
11
+ * without a `tone` is primary by itself; `tone="wash"` keeps the wash. `narrow` sets the band
12
+ * inside the page's margins, with the one corner of the new house style (`--radius-corner`).
10
13
  *
11
14
  * Events: `lintje-navigate` `{ href }` (the action).
12
15
  */
13
16
  import { type PropertyDeclarations, type TemplateResult } from 'lit';
14
17
  import { LintjeElement } from '../../../core/element.js';
15
18
  export declare class LintjeHero extends LintjeElement {
19
+ #private;
16
20
  static styles: import("lit").CSSResult[];
17
21
  static properties: PropertyDeclarations;
18
22
  heading: string;
23
+ /**
24
+ * `wash`: the start page's band in the primary's wash. `primary`: the page's head in the
25
+ * primary colour itself, with white text.
26
+ */
27
+ /** Unset, the hero is on the wash, or primary under a light menu: only a chosen tone reflects. */
28
+ tone?: 'wash' | 'primary';
29
+ /** The band inside the page's margins, in the content column, with the one corner top right;
30
+ * without it the band runs edge to edge and is square. */
31
+ narrow: boolean;
32
+ /** In a shell with a light menu: primary unless the host chose a tone, read from the shell's `data-tone`. */
33
+ band: boolean;
34
+ connectedCallback(): void;
35
+ disconnectedCallback(): void;
19
36
  description?: string;
20
37
  /** The one link onward under the introduction; drawn only with `href`. */
21
38
  action?: string;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * `<lintje-language-nav>` — the choice of language: a button with the current language and a
3
+ * chevron, and the languages in a popover under it, the current one filled in the primary.
4
+ *
5
+ * The host holds `current`: a choice goes out as `lintje-language-change`, and a language with an
6
+ * `href` is followed as a link, so a page per language works without script. In `lintje-shell` it
7
+ * goes in the `end` slot, at the end of the bar.
8
+ *
9
+ * Events: `lintje-language-change` `{ code }`, `lintje-navigate` `{ href }` (a language with an
10
+ * `href`).
11
+ */
12
+ import { nothing, type PropertyDeclarations, type TemplateResult } from 'lit';
13
+ import { LintjeElement } from '../../../core/element.js';
14
+ import '../../overlays/popover/popover.js';
15
+ export interface Language {
16
+ /** The BCP 47 tag, `nl` or `en`: what `lintje-language-change` carries and the row's `lang`. */
17
+ code: string;
18
+ /** The language's name in that language: "Nederlands", "English". */
19
+ label: string;
20
+ /** The same page in that language; the row is then a link. */
21
+ href?: string;
22
+ }
23
+ export declare class LintjeLanguageNav extends LintjeElement {
24
+ #private;
25
+ static styles: import("lit").CSSResult[];
26
+ static properties: PropertyDeclarations;
27
+ languages: Language[];
28
+ /** The code of the language the page is in. */
29
+ current: string;
30
+ /** The name of the choice for a screen reader, before the current language. */
31
+ label: string;
32
+ open: boolean;
33
+ private get trigger();
34
+ private rowElements;
35
+ private show;
36
+ private hide;
37
+ private readonly onFocusOut;
38
+ constructor();
39
+ private onTriggerKeydown;
40
+ private onListKeydown;
41
+ private choose;
42
+ private renderRow;
43
+ protected render(): TemplateResult | typeof nothing;
44
+ }
45
+ declare global {
46
+ interface HTMLElementTagNameMap {
47
+ 'lintje-language-nav': LintjeLanguageNav;
48
+ }
49
+ }
@@ -4,7 +4,12 @@
4
4
  * The title is an h2: the page's h1 is the shell's `name`. Actions that do not fit on one line go
5
5
  * into one menu, "Meer": the first goes first, the last never, and a chosen row clicks its button,
6
6
  * so the host's own listener sees the click. In the page's content it is a band that tells the
7
- * shell when the title scrolls under the top bar.
7
+ * shell when the title scrolls under the top bar. In a shell whose menu is light (the new house
8
+ * style, or `nav-tone="light"`), in either slot, it is the page's band in the primary colour,
9
+ * square from edge to edge (with `narrow` inside the margins, with the one corner), and every button in `actions` turns to its reverse by
10
+ * itself. `meta` takes a
11
+ * line of facts under the title, `tabs` a `lintje-tabs` row on the head's lower edge: the parts
12
+ * of the page, in the band's ink on the band.
8
13
  *
9
14
  * Events: `lintje-title-edit` (the pencil was pressed: the page renames, the header only asks).
10
15
  */
@@ -15,6 +20,7 @@ import '../../actions/menu-button/menu-button.js';
15
20
  import '../../actions/icon-button/icon-button.js';
16
21
  import type { PageHeaderData } from '../../../types.js';
17
22
  export declare class LintjePageHeader extends LintjeElement {
23
+ #private;
18
24
  static styles: import("lit").CSSResult;
19
25
  static properties: PropertyDeclarations;
20
26
  data?: PageHeaderData | null;
@@ -23,10 +29,18 @@ export declare class LintjePageHeader extends LintjeElement {
23
29
  * with no band and no top bar to tell.
24
30
  */
25
31
  inShell: boolean;
32
+ /** In a shell with a light menu, in any slot: the band in the primary colour, read from the shell's `data-tone`. */
33
+ band: boolean;
26
34
  /** An empty actions slot takes no place, so a long title never wraps onto an empty line. */
27
35
  hasActions: boolean;
36
+ /** With a row of tabs the head ends on their line and sticks under the top bar, risen by what
37
+ * stands above the tabs, so only their row stays in view. */
38
+ hasTabs: boolean;
28
39
  /** A pencil beside the title, shown while it is pointed at or focused, asks to rename it. */
29
40
  editable: boolean;
41
+ /** As a band: inside the page's margins, in the content column, with the one corner top right;
42
+ * without it the band runs edge to edge and is square. */
43
+ narrow: boolean;
30
44
  protected get dataSettings(): FrameSettings | undefined;
31
45
  private readonly mobile;
32
46
  private readonly overflow;
@@ -3,9 +3,14 @@
3
3
  * beside it, the mobile header and menu below 768 px, and a `<main>` with the host's content.
4
4
  *
5
5
  * It never fetches and never reads the URL: the active page and the reader's settings are the
6
- * host's, and a change goes out as `lintje-view-change` and comes back as data. `full` runs edge
7
- * to edge above the content, `header` holds the `lintje-page-header` and `footer` the
8
- * `lintje-footer`. The events of its parts (`lintje-action`, `lintje-logout`,
6
+ * host's, and a change goes out as `lintje-view-change` and comes back as data. `nav-tone`
7
+ * chooses the menu's colours: filled in the theme's colour, or light as the house style's bar
8
+ * and side navigation; unset, the new house style takes light and the earlier one filled.
9
+ * `mobile-bar` says where the phone's header stands. `end` takes what a host
10
+ * puts at the end of the bar, such as
11
+ * `lintje-language-nav`, before the search and the user. `header` holds the `lintje-page-header`,
12
+ * the page's head; `full` runs edge to edge above the content (a filter bar, a hero), under the
13
+ * head in the new style and above it in the earlier one; `footer` holds the `lintje-footer`. The events of its parts (`lintje-action`, `lintje-logout`,
9
14
  * `lintje-notification-open`, `lintje-notifications-read`) reach the host as they are.
10
15
  *
11
16
  * Events: `lintje-navigate` `{ href }`, `lintje-view-change` `ShellViewChange`,
@@ -35,6 +40,20 @@ export declare class LintjeShell extends LintjeElement {
35
40
  protected get dataSettings(): FrameSettings | undefined;
36
41
  /** `data.layout`, mirrored on the element so its stylesheet can tell the two apart. */
37
42
  layout: 'side' | 'top';
43
+ /**
44
+ * `filled`: the menu in the theme's colour, beside or above the page. `light`: the house
45
+ * style's white bar and side navigation, with the words in the primary colour, a row under the
46
+ * pointer filled in it and the reader's page in its wash. Unset, the style decides: light in
47
+ * the new house style, filled in the earlier one. The effective tone stands on the host as
48
+ * `data-tone`, where the stylesheet, the page head and the hero read it.
49
+ */
50
+ navTone?: 'filled' | 'light';
51
+ /**
52
+ * Where the header stands below 768 px: at the top of the page (`top`), or stuck to the bottom
53
+ * of the screen under the thumb (`bottom`), the house style's variant; the menu then opens
54
+ * above it. The host's choice.
55
+ */
56
+ mobileBar: 'top' | 'bottom';
38
57
  /** Top layout: index of the open group; `WHOLE_MENU`; or `null`. */
39
58
  openGroup: number | null;
40
59
  railExpanded: boolean;
@@ -60,6 +79,7 @@ export declare class LintjeShell extends LintjeElement {
60
79
  readonly store: FrameStateController;
61
80
  connectedCallback(): void;
62
81
  disconnectedCallback(): void;
82
+ resolveSettings(): void;
63
83
  protected willUpdate(changed: PropertyValues<this>): void;
64
84
  /**
65
85
  * Closing the mobile menu returns the focus to its button: what had it may leave the DOM with
@@ -20,6 +20,7 @@ import './overlays/popover/popover.js';
20
20
  import './overlays/tooltip/tooltip.js';
21
21
  import './frame/shell/shell.js';
22
22
  import './frame/user-menu/user-menu.js';
23
+ import './frame/language-nav/language-nav.js';
23
24
  import './frame/page-header/page-header.js';
24
25
  import './filters/filter-bar/filter-bar.js';
25
26
  import './feedback/announcement/announcement.js';
@@ -124,7 +125,7 @@ export type { ButtonSize, ButtonVariant } from './actions/button/button.js';
124
125
  export { LintjeIconButton } from './actions/icon-button/icon-button.js';
125
126
  export type { IconButtonVariant } from './actions/icon-button/icon-button.js';
126
127
  export { LintjeStatusDot, STATUS_LABEL } from './feedback/status-dot/status-dot.js';
127
- export { TONE_ICON, TONE_WORD, WORK_STATE_LABEL, WORK_STATE_TONE } from './shared/tone.js';
128
+ export { TONE_ICON, TONE_ICON_COLOURED, TONE_WORD, WORK_STATE_LABEL, WORK_STATE_TONE, } from './shared/tone.js';
128
129
  export { OTHER_MISSING_TEXT } from './shared/other.js';
129
130
  export type { ContentStateKind, Tone, WorkState } from './shared/tone.js';
130
131
  export { LintjeSkeleton } from './feedback/skeleton/skeleton.js';
@@ -297,6 +298,8 @@ export type { CsvCell } from './shared/download.js';
297
298
  export type { AnnouncementData, AnnouncementKind, AnnouncementViewData, CellValue, ChartData, DataTableData, ExplainerData, GraphData, GraphDirection, GraphEdge, GraphLayout, GraphLines, GraphNode, GraphNodeStatus, GraphNodeType, KpiData, KpiRowData, MapData, NoteData, RowActionDetail, RowClickDetail, SortState, TableColumnData, TileData, } from '../types.js';
298
299
  export { LintjeShell } from './frame/shell/shell.js';
299
300
  export { LintjeUserMenu } from './frame/user-menu/user-menu.js';
301
+ export { LintjeLanguageNav } from './frame/language-nav/language-nav.js';
302
+ export type { Language } from './frame/language-nav/language-nav.js';
300
303
  export { LintjePageHeader } from './frame/page-header/page-header.js';
301
304
  export { LintjeFilterBar } from './filters/filter-bar/filter-bar.js';
302
305
  export type { FilterBarData, FilterDefinition, FilterKind, FilterOption, FilterValue, ModeSetting, PageHeaderData, Person, ShellData, ShellGroup, ShellLink, ShellView, ShellViewChange, UserMenuUser, } from '../types.js';
@@ -1,6 +1,7 @@
1
1
  /**
2
- * The foot of every field: the hint, or the message that replaces it. One line, so a field in
3
- * error does not grow taller than one with a hint, and `aria-describedby` names what is shown.
2
+ * The line of every field between its label and its control: the hint, or the message that
3
+ * replaces it. One line, so a field in error does not grow taller than one with a hint, and
4
+ * `aria-describedby` names what is shown. A lone choice draws the same line under its label.
4
5
  */
5
6
  import { nothing, type TemplateResult } from 'lit';
6
7
  export interface FootIds {
@@ -104,6 +104,17 @@ export declare abstract class LintjeInputElement extends LintjeGridItemElement {
104
104
  protected get labelSuffixText(): string;
105
105
  /** The label as a reader hears it; empty without a label. */
106
106
  protected get labelText(): string;
107
+ /** The hint, or the message that replaces it, on one line. */
108
+ protected renderFieldLine(): TemplateResult | typeof nothing;
109
+ /** The new style puts a field's message above what it is about; the earlier one under it. */
110
+ protected get messagesAbove(): boolean;
111
+ /**
112
+ * Between the label and the control: in the new style the hint, or the message that replaces
113
+ * it, as the house style puts a field's error above what it is about; nothing otherwise. A
114
+ * lone choice draws it under its label.
115
+ */
116
+ protected renderMessages(): TemplateResult | typeof nothing;
117
+ /** Under the control: the message in the earlier style, and the way back to the default. */
107
118
  protected renderFoot(): TemplateResult | typeof nothing;
108
119
  /**
109
120
  * With `modified` and `resetLabel`, the button back to the default, last in the foot. Its name
@@ -55,7 +55,7 @@ export declare class LintjeTextInput extends LintjeFormInputElement {
55
55
  private clear;
56
56
  private reveal;
57
57
  private act;
58
- protected renderFoot(): TemplateResult | typeof nothing;
58
+ protected renderFieldLine(): TemplateResult | typeof nothing;
59
59
  private get inputType();
60
60
  protected render(): TemplateResult;
61
61
  }
@@ -50,6 +50,7 @@ export declare class LintjeTextarea extends LintjeFormInputElement {
50
50
  protected updated(changed: PropertyValues<this>): void;
51
51
  protected get describedBy(): string | typeof nothing;
52
52
  private get counterShown();
53
+ protected renderFieldLine(): TemplateResult | typeof nothing;
53
54
  protected renderFoot(): TemplateResult | typeof nothing;
54
55
  protected render(): TemplateResult;
55
56
  }
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * `<lintje-expander>` — a title you press; what is slotted under it shows or hides.
3
3
  *
4
- * Closed, the content stays in the DOM, out of the tab order and the accessibility tree. What is
5
- * slotted in `actions` stands beside the title, outside its button: a few icon buttons about the
6
- * content.
4
+ * An outlined card, or in the new house style its accordion row: a line above and under it, the
5
+ * chevron before the title in the primary colour, the content in line with the title. Closed,
6
+ * the content stays in the DOM, out of the tab order and the accessibility tree. What is slotted in `actions` stands
7
+ * beside the title, outside its button: a few icon buttons about the content.
7
8
  *
8
9
  * Events: `lintje-toggle` `boolean` (open, after the reader pressed the title, or after the
9
10
  * `lintje-accordion` it stands in opened or closed it for the reader).
@@ -20,9 +21,11 @@ export declare class LintjeExpander extends LintjeGridItemElement {
20
21
  /** An icon file name. Decorative. */
21
22
  icon?: string;
22
23
  open: boolean;
23
- /** No surface of its own: an expander inside a tile is not a second card. */
24
+ /** No lines and no surface of its own: an expander inside a tile is not a second card. */
24
25
  flat: boolean;
25
- /** The chevron before the title, the content under the title's text: expanders read as rows. */
26
+ /** In the new style: an outlined card on the surface instead of the two lines, for one expander on its own. */
27
+ card: boolean;
28
+ /** The chevron before the title, the content under the title's text: expanders read as rows. The new style's row always. */
26
29
  leading: boolean;
27
30
  /**
28
31
  * The title in a column of its own (`--lintje-expander-label`), the content beside it, as rows
@@ -32,6 +35,8 @@ export declare class LintjeExpander extends LintjeGridItemElement {
32
35
  /** The title's heading level, 2 to 6; `h3` when unset. */
33
36
  level?: HeadingLevel;
34
37
  protected updated(changed: PropertyValues<this>): void;
38
+ /** The new style's row leads with the chevron; the earlier one on request or in columns. */
39
+ private get leadingNow();
35
40
  protected render(): TemplateResult;
36
41
  }
37
42
  declare global {
@@ -44,9 +44,12 @@ export declare class LintjeTabs extends LintjeElement {
44
44
  * with an icon and a hint; on a phone the icon stands above the label and the hint goes.
45
45
  */
46
46
  variant: TabsVariant;
47
+ /** A row of links: whether the host slotted content under the chosen one. */
48
+ panelSlotted: boolean;
47
49
  /** Only the press itself counts: one cancelled or released elsewhere leaves no mark. */
48
50
  private readonly onPanelPress;
49
51
  private readonly onPressEnd;
52
+ private onPanelSlotChange;
50
53
  private onPanelFocus;
51
54
  get selectedIndex(): number;
52
55
  /** Every tab a link: the row is navigation between pages. */
@@ -4,9 +4,11 @@
4
4
  * Top to bottom: header, notice, intro, legend, content, legend (`legend-below`), footnote.
5
5
  * `slot="aside"` puts a key figure beside the content, above it below 768 px. Hover actions show
6
6
  * on focus too, and always on touch screens. The tile expands and downloads nothing itself: the
7
- * host answers its events.
7
+ * host answers its events. With `collapsed-mobile` a phone shows only the head and a button that
8
+ * unfolds the rest, for a tile that matters less there than its neighbours.
8
9
  *
9
- * Events: `lintje-tile-expand`, `lintje-tile-download`.
10
+ * Events: `lintje-tile-expand`, `lintje-tile-download`, `lintje-toggle` `boolean` (unfolded on a
11
+ * phone, after the reader pressed the button).
10
12
  */
11
13
  import { type PropertyValues, type TemplateResult } from 'lit';
12
14
  import { LintjeGridItemElement } from '../../shared/grid-item-element.js';
@@ -49,6 +51,14 @@ export declare class LintjeTile extends LintjeGridItemElement {
49
51
  expandable: {
50
52
  type: BooleanConstructor;
51
53
  };
54
+ collapsedMobile: {
55
+ type: BooleanConstructor;
56
+ attribute: string;
57
+ reflect: boolean;
58
+ };
59
+ unfolded: {
60
+ state: boolean;
61
+ };
52
62
  download: {
53
63
  type: BooleanConstructor;
54
64
  };
@@ -95,6 +105,14 @@ export declare class LintjeTile extends LintjeGridItemElement {
95
105
  asideSlotted: boolean;
96
106
  legendBelow: boolean;
97
107
  expandable: boolean;
108
+ /**
109
+ * On a phone, below 768 px, only the head shows with a button that unfolds the rest; on a wider
110
+ * screen it changes nothing. For a tile that matters less on a phone, such as a map beside the
111
+ * figures it summarises: it stays one tap away instead of being left out.
112
+ */
113
+ collapsedMobile: boolean;
114
+ /** On a phone, whether the reader unfolded a `collapsed-mobile` tile. */
115
+ unfolded: boolean;
98
116
  download: boolean;
99
117
  /** `loading`, `empty` and `error` stand in for the content; the tile keeps its size. */
100
118
  state: ContentState;
@@ -122,6 +140,8 @@ export declare class LintjeTile extends LintjeGridItemElement {
122
140
  private static filled;
123
141
  private onFootnoteChange;
124
142
  private onAsideChange;
143
+ /** The button that folds a `collapsed-mobile` tile on a phone: its word, and the title it is about. */
144
+ private foldToggle;
125
145
  protected render(): TemplateResult;
126
146
  private content;
127
147
  }
@@ -1,5 +1,7 @@
1
1
  /**
2
- * `<lintje-drawer>` — a side panel over the page, for a detail or a short form.
2
+ * `<lintje-drawer>` — a side panel over the page, for a detail or a short form, from the right
3
+ * or (`side="left"`) the left, with the one corner of the new house style (`--radius-corner`)
4
+ * at its top towards the page.
3
5
  *
4
6
  * The host holds `open`: Escape, the close button and the scrim only ask. While `busy` none
5
7
  * of them asks. Focus goes to the first field, else the close button.
@@ -18,6 +20,8 @@ export declare class LintjeDrawer extends LintjeElement {
18
20
  * is the host's call.
19
21
  */
20
22
  open: boolean;
23
+ /** The edge it slides in from; `right` unless the host says `left`. */
24
+ side: 'right' | 'left';
21
25
  /** The title and the dialog's accessible name; without it the dialog is "Zijpaneel". */
22
26
  heading: string;
23
27
  subtitle?: string;
@@ -20,6 +20,8 @@ export declare class LintjePopover extends LintjeElement {
20
20
  /** `dialog`, `menu` or `listbox`, when the slotted content has no role itself. */
21
21
  panelRole?: string;
22
22
  matchWidth: boolean;
23
+ /** The room between the anchor and the panel, in px; 0 sets the panel against it. */
24
+ gap: number;
23
25
  /** What the panel hangs under; default the previous sibling. */
24
26
  anchor?: Element | null;
25
27
  /**
@@ -32,6 +32,8 @@ export interface AnnouncementBlockOptions {
32
32
  action?: TemplateResult | typeof nothing;
33
33
  /** What stands beside the body: the element's `media` slot. */
34
34
  media?: TemplateResult | typeof nothing;
35
+ /** The glyph in the house style's coloured form, as the new style draws a status block. */
36
+ coloured?: boolean;
35
37
  /** With a handler the block draws its close button. */
36
38
  onClose?: () => void;
37
39
  }
@@ -2,10 +2,33 @@
2
2
  import { type PropertyDeclarations, type PropertyValues } from 'lit';
3
3
  import { LintjeElement } from '../../core/element.js';
4
4
  export declare const spanStyles: import("lit").CSSResult;
5
- /** The `span` attribute, reflected, and `--lintje-span` written inline for `span.css`. */
5
+ /**
6
+ * Where an item stands in `<lintje-grid>`: `span`, and on a phone `span-mobile`, `order-mobile`
7
+ * and whether it shows (`hide-mobile`, `hide-desktop`), reflected, with `--lintje-span`,
8
+ * `--lintje-span-mobile` and `--lintje-order-mobile` written inline for `span.css`.
9
+ */
6
10
  export declare class LintjeGridItemElement extends LintjeElement {
7
11
  static properties: PropertyDeclarations;
8
12
  /** Columns of the 12-column grid; default one. */
9
13
  span?: number;
14
+ /**
15
+ * Columns of the phone's four in the new house style, below 768 px; default all four. The
16
+ * earlier style has one column on a phone, so there it changes nothing.
17
+ */
18
+ spanMobile?: number;
19
+ /**
20
+ * The place on a phone, below 768 px, in both house styles: items without it are 0, a higher
21
+ * number stands lower (`1` after them, `-1` before). Only the drawing moves: the reading and
22
+ * focus order stay that of the markup, so move a whole block (a map to the end), never one
23
+ * field among others.
24
+ */
25
+ orderMobile?: number;
26
+ /**
27
+ * Left out on a phone, below 768 px; a desktop reader zoomed to 400 % sees that view too. Only
28
+ * for what the page also says another way, such as a map whose figures stand in a table.
29
+ */
30
+ hideMobile: boolean;
31
+ /** Left out from 768 px, and on paper; shown on a phone only. */
32
+ hideDesktop: boolean;
10
33
  protected willUpdate(changed: PropertyValues<this>): void;
11
34
  }
@@ -8,6 +8,13 @@
8
8
  export type Tone = 'neutral' | 'subtle' | 'busy' | 'success' | 'warning' | 'error' | 'info' | 'attention' | 'live';
9
9
  /** The glyph that says what the tone means; the colour is never the only carrier (rule 13). */
10
10
  export declare const TONE_ICON: Partial<Record<Tone, string>>;
11
+ /**
12
+ * The same glyphs in the house style's coloured form, for a status block (a message, a toast, the
13
+ * summary of a form) in the new house style: the shape in the status colour with the glyph white.
14
+ */
15
+ export declare const TONE_ICON_COLOURED: Partial<Record<Tone, string>>;
16
+ /** The glyph of a status block: the coloured form in the new house style, the plain one otherwise. */
17
+ export declare function statusIcon(tone: Tone, isNewStyle: boolean): string | undefined;
11
18
  /** The word a tone stands for when an element has nothing more specific to say. */
12
19
  export declare const TONE_WORD: Record<Tone, string>;
13
20
  /** What a task is doing: the queue, a progress bar and a status word share it. */
@@ -50,6 +50,12 @@ export interface ListItem {
50
50
  };
51
51
  /** The kind of work, as an icon file name, before the title. */
52
52
  icon?: string;
53
+ /**
54
+ * The row is a person, a speaker: their circle before the title, as `lintje-person` draws it,
55
+ * with the host's initials or photo, else the person icon. With `swatch` the circle takes that
56
+ * colour instead of the bar along the row, where the people are the variable.
57
+ */
58
+ avatar?: Person;
53
59
  /** A data colour as a bar along the row (`sky-blue`): a speaker, as in the player and transcript. */
54
60
  swatch?: string;
55
61
  /**