@nldd/design-system 0.16.2 → 0.17.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 (168) hide show
  1. package/custom-elements.json +1376 -415
  2. package/dist/components/components.js +1438 -356
  3. package/dist/components/content/blockquote/blockquote.d.ts +11 -1
  4. package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
  5. package/dist/components/content/blockquote/blockquote.js +39 -0
  6. package/dist/components/content/blockquote/blockquote.js.map +1 -1
  7. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  8. package/dist/components/content/blockquote/blockquote.styles.js +42 -1
  9. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  10. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  11. package/dist/components/content/icon/icon-gallery-status.js +7 -0
  12. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  13. package/dist/components/content/icon/icon-registry.js +393 -393
  14. package/dist/components/content/icon/icon-registry.js.map +1 -1
  15. package/dist/components/content/icon/icon.template.js +1 -1
  16. package/dist/components/content/text/text.d.ts +21 -3
  17. package/dist/components/content/text/text.d.ts.map +1 -1
  18. package/dist/components/content/text/text.js +41 -1
  19. package/dist/components/content/text/text.js.map +1 -1
  20. package/dist/components/content/text/text.styles.d.ts +2 -1
  21. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  22. package/dist/components/content/text/text.styles.js +88 -2
  23. package/dist/components/content/text/text.styles.js.map +1 -1
  24. package/dist/components/content/title/title.d.ts +1 -3
  25. package/dist/components/content/title/title.d.ts.map +1 -1
  26. package/dist/components/content/title/title.js +5 -79
  27. package/dist/components/content/title/title.js.map +1 -1
  28. package/dist/components/{decorate-CtaxGuuh.js → decorate-D2HtKmpx.js} +1 -1
  29. package/dist/components/{defer-focus-CC5RVvh6.js → defer-focus-JRj1EYUV.js} +2 -2
  30. package/dist/components/{dev-checks-a7fZ6hgC.js → dev-checks-BPjCXw_r.js} +109 -12
  31. package/dist/components/icon-DU_IMj2t.js +968 -0
  32. package/dist/components/{icon-button-DJPpMxWn.js → icon-button-BgeikVnm.js} +3 -3
  33. package/dist/components/index.d.ts +2 -1
  34. package/dist/components/index.d.ts.map +1 -1
  35. package/dist/components/index.js +2 -1
  36. package/dist/components/index.js.map +1 -1
  37. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +172 -0
  38. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -0
  39. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +447 -0
  40. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -0
  41. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts +2 -0
  42. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -0
  43. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +188 -0
  44. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -0
  45. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.d.ts +4 -0
  46. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.d.ts.map +1 -0
  47. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +64 -0
  48. package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -0
  49. package/dist/components/inputs/search-field/search-field.d.ts +4 -2
  50. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  51. package/dist/components/inputs/search-field/search-field.js +5 -4
  52. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  53. package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
  54. package/dist/components/inputs/search-field/search-field.template.js +4 -3
  55. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  56. package/dist/components/inputs/text-field/text-field.d.ts +14 -0
  57. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  58. package/dist/components/inputs/text-field/text-field.js +51 -1
  59. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  60. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  61. package/dist/components/inputs/text-field/text-field.styles.js +21 -1
  62. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  63. package/dist/components/inputs/text-field/text-field.template.d.ts.map +1 -1
  64. package/dist/components/inputs/text-field/text-field.template.js +5 -0
  65. package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
  66. package/dist/components/{just-in-time-education.i18n-S05IOgqk.js → just-in-time-education.i18n-eCghRteQ.js} +10 -10
  67. package/dist/components/layout/{task-board/task-board-column.d.ts → column-board/column-board-column.d.ts} +5 -5
  68. package/dist/components/layout/column-board/column-board-column.d.ts.map +1 -0
  69. package/dist/components/layout/{task-board/task-board-column.js → column-board/column-board-column.js} +34 -34
  70. package/dist/components/layout/column-board/column-board-column.js.map +1 -0
  71. package/dist/components/layout/column-board/column-board-column.template.d.ts +3 -0
  72. package/dist/components/layout/column-board/column-board-column.template.d.ts.map +1 -0
  73. package/dist/components/layout/{task-board/task-board-column.template.js → column-board/column-board-column.template.js} +10 -10
  74. package/dist/components/layout/column-board/column-board-column.template.js.map +1 -0
  75. package/dist/components/layout/{task-board/task-board.d.ts → column-board/column-board.d.ts} +21 -21
  76. package/dist/components/layout/column-board/column-board.d.ts.map +1 -0
  77. package/dist/components/layout/column-board/column-board.i18n.d.ts +11 -0
  78. package/dist/components/layout/column-board/column-board.i18n.d.ts.map +1 -0
  79. package/dist/components/layout/column-board/column-board.i18n.js +10 -0
  80. package/dist/components/layout/column-board/column-board.i18n.js.map +1 -0
  81. package/dist/components/layout/{task-board/task-board.js → column-board/column-board.js} +43 -43
  82. package/dist/components/layout/column-board/column-board.js.map +1 -0
  83. package/dist/components/layout/column-board/column-board.styles.d.ts +3 -0
  84. package/dist/components/layout/column-board/column-board.styles.d.ts.map +1 -0
  85. package/dist/components/layout/column-board/column-board.styles.js +260 -0
  86. package/dist/components/layout/column-board/column-board.styles.js.map +1 -0
  87. package/dist/components/layout/column-board/column-board.template.d.ts +3 -0
  88. package/dist/components/layout/column-board/column-board.template.d.ts.map +1 -0
  89. package/dist/components/layout/{task-board/task-board.template.js → column-board/column-board.template.js} +5 -5
  90. package/dist/components/layout/column-board/column-board.template.js.map +1 -0
  91. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +5 -2
  92. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  93. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +15 -3
  94. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  95. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  96. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +5 -0
  97. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  98. package/dist/components/{nl.generated-CUo20aPV.js → nl.generated-B0pvf8VH.js} +2 -2
  99. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +12 -1
  100. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  101. package/dist/components/status-and-feedback/status-bar/status-bar.js +32 -1
  102. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  103. package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -1
  104. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +59 -0
  105. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -1
  106. package/dist/components/status-and-feedback/status-bar/status-bar.template.d.ts.map +1 -1
  107. package/dist/components/status-and-feedback/status-bar/status-bar.template.js +4 -1
  108. package/dist/components/status-and-feedback/status-bar/status-bar.template.js.map +1 -1
  109. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +15 -8
  110. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
  111. package/dist/components/status-and-feedback/step-bar/step-bar.js +30 -12
  112. package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
  113. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts +7 -2
  114. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
  115. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +31 -19
  116. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  117. package/dist/components/{visibility-mixin-CwMutpAK.js → visibility-mixin-Dti3xE8R.js} +1 -1
  118. package/dist/nldd.min.js +2256 -1815
  119. package/dist/translations/en-US.js +7 -7
  120. package/dist/translations/en-US.js.map +1 -1
  121. package/dist/translations/fy.js +7 -7
  122. package/dist/translations/fy.js.map +1 -1
  123. package/dist/translations/nl.generated.d.ts +7 -7
  124. package/dist/translations/nl.generated.js +2 -2
  125. package/dist/translations/nl.generated.js.map +1 -1
  126. package/dist/translations/pap-AW.js +7 -7
  127. package/dist/translations/pap-AW.js.map +1 -1
  128. package/dist/translations/pap-CW.js +7 -7
  129. package/dist/translations/pap-CW.js.map +1 -1
  130. package/dist/types/vue.d.ts +129 -50
  131. package/dist/utilities/custom-font-size.d.ts +19 -0
  132. package/dist/utilities/custom-font-size.d.ts.map +1 -0
  133. package/dist/utilities/custom-font-size.js +90 -0
  134. package/dist/utilities/custom-font-size.js.map +1 -0
  135. package/dist/utilities/dev-checks.d.ts +7 -0
  136. package/dist/utilities/dev-checks.d.ts.map +1 -1
  137. package/dist/utilities/dev-checks.js +23 -0
  138. package/dist/utilities/dev-checks.js.map +1 -1
  139. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  140. package/dist/utilities/dev-rules.generated.js +94 -14
  141. package/dist/utilities/dev-rules.generated.js.map +1 -1
  142. package/dist/utilities/file-drag-and-drop.js +1 -1
  143. package/dist/utilities/file-drag-and-drop.js.map +1 -1
  144. package/dist/utilities/status-bar-change.d.ts +7 -0
  145. package/dist/utilities/status-bar-change.d.ts.map +1 -0
  146. package/dist/utilities/status-bar-change.js +7 -0
  147. package/dist/utilities/status-bar-change.js.map +1 -0
  148. package/lint/data.generated.json +1 -1
  149. package/package.json +9 -5
  150. package/dist/components/icon-Bkdlj87q.js +0 -968
  151. package/dist/components/layout/task-board/task-board-column.d.ts.map +0 -1
  152. package/dist/components/layout/task-board/task-board-column.js.map +0 -1
  153. package/dist/components/layout/task-board/task-board-column.template.d.ts +0 -3
  154. package/dist/components/layout/task-board/task-board-column.template.d.ts.map +0 -1
  155. package/dist/components/layout/task-board/task-board-column.template.js.map +0 -1
  156. package/dist/components/layout/task-board/task-board.d.ts.map +0 -1
  157. package/dist/components/layout/task-board/task-board.i18n.d.ts +0 -11
  158. package/dist/components/layout/task-board/task-board.i18n.d.ts.map +0 -1
  159. package/dist/components/layout/task-board/task-board.i18n.js +0 -10
  160. package/dist/components/layout/task-board/task-board.i18n.js.map +0 -1
  161. package/dist/components/layout/task-board/task-board.js.map +0 -1
  162. package/dist/components/layout/task-board/task-board.styles.d.ts +0 -3
  163. package/dist/components/layout/task-board/task-board.styles.d.ts.map +0 -1
  164. package/dist/components/layout/task-board/task-board.styles.js +0 -260
  165. package/dist/components/layout/task-board/task-board.styles.js.map +0 -1
  166. package/dist/components/layout/task-board/task-board.template.d.ts +0 -3
  167. package/dist/components/layout/task-board/task-board.template.d.ts.map +0 -1
  168. package/dist/components/layout/task-board/task-board.template.js.map +0 -1
@@ -5139,6 +5139,36 @@
5139
5139
  },
5140
5140
  "default": "undefined",
5141
5141
  "attribute": "cite"
5142
+ },
5143
+ {
5144
+ "kind": "field",
5145
+ "name": "smCustomSize",
5146
+ "type": {
5147
+ "text": "string"
5148
+ },
5149
+ "default": "''",
5150
+ "attribute": "sm-custom-size",
5151
+ "reflects": true
5152
+ },
5153
+ {
5154
+ "kind": "field",
5155
+ "name": "mdCustomSize",
5156
+ "type": {
5157
+ "text": "string"
5158
+ },
5159
+ "default": "''",
5160
+ "attribute": "md-custom-size",
5161
+ "reflects": true
5162
+ },
5163
+ {
5164
+ "kind": "field",
5165
+ "name": "lgCustomSize",
5166
+ "type": {
5167
+ "text": "string"
5168
+ },
5169
+ "default": "''",
5170
+ "attribute": "lg-custom-size",
5171
+ "reflects": true
5142
5172
  }
5143
5173
  ],
5144
5174
  "attributes": [
@@ -5150,6 +5180,33 @@
5150
5180
  "default": "undefined",
5151
5181
  "fieldName": "cite",
5152
5182
  "description": "URL of the source (forwarded to the <blockquote> element)"
5183
+ },
5184
+ {
5185
+ "name": "sm-custom-size",
5186
+ "type": {
5187
+ "text": "string"
5188
+ },
5189
+ "default": "''",
5190
+ "fieldName": "smCustomSize",
5191
+ "description": "A size of your own for the quote at sm, any CSS length (e.g. '32px', '2rem', 'clamp(1.5rem, 4vw, 3rem)'), for a quote that stands out on its own, such as on a landing page. A quote in running text keeps its own size. Set per breakpoint on purpose: a breakpoint without one keeps the quote's own size, so a quote made large for a wide screen never breaks a narrow one. Never smaller than the quote's own size at the same breakpoint: a smaller value shows at that size, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Only the quote grows, with its line height and the space between paragraphs; the attribution and the border stay as they are. An invalid value falls back to the quote's own size"
5192
+ },
5193
+ {
5194
+ "name": "md-custom-size",
5195
+ "type": {
5196
+ "text": "string"
5197
+ },
5198
+ "default": "''",
5199
+ "fieldName": "mdCustomSize",
5200
+ "description": "The same, at md"
5201
+ },
5202
+ {
5203
+ "name": "lg-custom-size",
5204
+ "type": {
5205
+ "text": "string"
5206
+ },
5207
+ "default": "''",
5208
+ "fieldName": "lgCustomSize",
5209
+ "description": "The same, at lg"
5153
5210
  }
5154
5211
  ],
5155
5212
  "superclass": {
@@ -6876,7 +6933,7 @@
6876
6933
  "declarations": [
6877
6934
  {
6878
6935
  "kind": "class",
6879
- "description": "One run of body text at a size from the type scale. It is what you reach for where an app would otherwise write a bare `<p>` and inherit whatever the page happens to set: a line under a title, a sentence in a panel, a caption. Every combination it offers exists as a token, so it cannot invent typography — it only names what the scale already has. The three axes are the same three the tokens carry: size, weight and line height. Not for headings, which is `nldd-title`, and not for a block of prose with its own rhythm, spacing and media widths, which is `nldd-rich-text`. This is one run of text and nothing around it. Color follows the context channel a list item, menu or table sets on its content, so text inside a row travels with that row as it is hovered or selected. Standalone that channel is unset and the semantic color answers. A line stops at `--semantics-text-max-width`, 40em, so it holds the same number of characters at every size and a wide column does not turn one sentence into a ruler. Override that variable, or `max-width` on the element, where a line is meant to run the full width: a label in a table cell, a value beside its own heading.",
6936
+ "description": "One run of body text at a size from the type scale. It is what you reach for where an app would otherwise write a bare `<p>` and inherit whatever the page happens to set: a line under a title, a sentence in a panel, a caption. Every combination it offers exists as a token, so it cannot invent typography — it only names what the scale already has. The three axes are the same three the tokens carry: size, weight and line height. Not for headings, which is `nldd-title`, and not for a block of prose with its own rhythm, spacing and media widths, which is `nldd-rich-text`. This is one run of text and nothing around it. For large letters that are not a heading, such as a number or a statement on a landing page, take a display size: `display-6` to `display-1` are the sizes of `nldd-title`, with its weight, typeface and line height, and they follow the breakpoint as a title does. `weight` and `line-height` belong to the body sizes and do nothing at a display size. For a statement larger than `display-1`, give each breakpoint a size of its own with `sm-custom-size`, `md-custom-size` and `lg-custom-size`. Color follows the context channel a list item, menu or table sets on its content, so text inside a row travels with that row as it is hovered or selected. Standalone that channel is unset and the semantic color answers. A line stops at `--semantics-text-max-width`, 40em, so it holds the same number of characters at every size and a wide column does not turn one sentence into a ruler. Override that variable, or `max-width` on the element, where a line is meant to run the full width: a label in a table cell, a value beside its own heading.",
6880
6937
  "name": "NLDDText",
6881
6938
  "members": [
6882
6939
  {
@@ -6889,6 +6946,36 @@
6889
6946
  "attribute": "size",
6890
6947
  "reflects": true
6891
6948
  },
6949
+ {
6950
+ "kind": "field",
6951
+ "name": "smCustomSize",
6952
+ "type": {
6953
+ "text": "string"
6954
+ },
6955
+ "default": "''",
6956
+ "attribute": "sm-custom-size",
6957
+ "reflects": true
6958
+ },
6959
+ {
6960
+ "kind": "field",
6961
+ "name": "mdCustomSize",
6962
+ "type": {
6963
+ "text": "string"
6964
+ },
6965
+ "default": "''",
6966
+ "attribute": "md-custom-size",
6967
+ "reflects": true
6968
+ },
6969
+ {
6970
+ "kind": "field",
6971
+ "name": "lgCustomSize",
6972
+ "type": {
6973
+ "text": "string"
6974
+ },
6975
+ "default": "''",
6976
+ "attribute": "lg-custom-size",
6977
+ "reflects": true
6978
+ },
6892
6979
  {
6893
6980
  "kind": "field",
6894
6981
  "name": "weight",
@@ -6939,9 +7026,36 @@
6939
7026
  "default": "'md'",
6940
7027
  "fieldName": "size",
6941
7028
  "expandedType": {
6942
- "text": "'lg' | 'md' | 'sm' | 'xs' | 'xxs'"
7029
+ "text": "'display-1' | 'display-2' | 'display-3' | 'display-4' | 'display-5' | 'display-6' | 'lg' | 'md' | 'sm' | 'xs' | 'xxs'"
7030
+ },
7031
+ "description": "Text size: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' on the body scale (default: 'md'), or 'display-6' to 'display-1' for large letters that are not a heading, from small to large"
7032
+ },
7033
+ {
7034
+ "name": "sm-custom-size",
7035
+ "type": {
7036
+ "text": "string"
6943
7037
  },
6944
- "description": "Text size on the body scale: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' (default: 'md')"
7038
+ "default": "''",
7039
+ "fieldName": "smCustomSize",
7040
+ "description": "A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than `display-1`. A var() works when the variable holds a length; one that is not defined leaves the text without its size, the floor included. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so text made large for a wide screen never breaks a narrow one. Never smaller than `display-1` at the same breakpoint: a smaller value shows as `display-1`, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of `display-1`. An invalid value falls back to `size`"
7041
+ },
7042
+ {
7043
+ "name": "md-custom-size",
7044
+ "type": {
7045
+ "text": "string"
7046
+ },
7047
+ "default": "''",
7048
+ "fieldName": "mdCustomSize",
7049
+ "description": "The same, at md"
7050
+ },
7051
+ {
7052
+ "name": "lg-custom-size",
7053
+ "type": {
7054
+ "text": "string"
7055
+ },
7056
+ "default": "''",
7057
+ "fieldName": "lgCustomSize",
7058
+ "description": "The same, at lg"
6945
7059
  },
6946
7060
  {
6947
7061
  "name": "weight",
@@ -7214,7 +7328,7 @@
7214
7328
  "expandedType": {
7215
7329
  "text": "1 | 2 | 3 | 4 | 5 | 6"
7216
7330
  },
7217
- "description": "Renders text as h1–h6; absent renders a p, for a title that is not a heading."
7331
+ "description": "Renders text as h1–h6. Absent renders a p, which is no heading: for large letters that are not a heading, use nldd-text with a display size."
7218
7332
  }
7219
7333
  ],
7220
7334
  "superclass": {
@@ -8802,6 +8916,14 @@
8802
8916
  "module": "./inputs/number-field/number-field.js"
8803
8917
  }
8804
8918
  },
8919
+ {
8920
+ "kind": "js",
8921
+ "name": "NLDDOneTimeCodeField",
8922
+ "declaration": {
8923
+ "name": "NLDDOneTimeCodeField",
8924
+ "module": "./inputs/one-time-code-field/one-time-code-field.js"
8925
+ }
8926
+ },
8805
8927
  {
8806
8928
  "kind": "js",
8807
8929
  "name": "NLDDPasswordField",
@@ -9172,18 +9294,18 @@
9172
9294
  },
9173
9295
  {
9174
9296
  "kind": "js",
9175
- "name": "NLDDTaskBoard",
9297
+ "name": "NLDDColumnBoard",
9176
9298
  "declaration": {
9177
- "name": "NLDDTaskBoard",
9178
- "module": "./layout/task-board/task-board.js"
9299
+ "name": "NLDDColumnBoard",
9300
+ "module": "./layout/column-board/column-board.js"
9179
9301
  }
9180
9302
  },
9181
9303
  {
9182
9304
  "kind": "js",
9183
- "name": "NLDDTaskBoardColumn",
9305
+ "name": "NLDDColumnBoardColumn",
9184
9306
  "declaration": {
9185
- "name": "NLDDTaskBoardColumn",
9186
- "module": "./layout/task-board/task-board.js"
9307
+ "name": "NLDDColumnBoardColumn",
9308
+ "module": "./layout/column-board/column-board.js"
9187
9309
  }
9188
9310
  },
9189
9311
  {
@@ -15645,12 +15767,17 @@
15645
15767
  },
15646
15768
  {
15647
15769
  "kind": "javascript-module",
15648
- "path": "src/components/inputs/password-field/password-field.ts",
15770
+ "path": "src/components/inputs/one-time-code-field/one-time-code-field.ts",
15649
15771
  "declarations": [
15772
+ {
15773
+ "kind": "variable",
15774
+ "name": "BOX",
15775
+ "description": "A box in the format; any other part is a separator."
15776
+ },
15650
15777
  {
15651
15778
  "kind": "class",
15652
- "description": "A password input field with visibility toggle and validation states.",
15653
- "name": "NLDDPasswordField",
15779
+ "description": "A field for a code someone receives once and types over: by text message, by email, from an authenticator app or on a letter. It shows a box per character, but it is one native input underneath, so pasting the whole code, the code a phone offers from a text message (`autocomplete=\"one-time-code\"`), a screen reader and voice control all work as on any other field. The characters are monospace, so 0 and O, or 1, l and I, read apart. Typing fills the boxes from the left. The arrow keys, Home, End and a click move the caret from box to box. In a filled box it stands after the character: Backspace empties that box, without moving the rest up, so you type the right one straight in. A pasted code drops whatever is not part of one, so \"123 456\" or \"123-456\" becomes \"123456\", and a whole code replaces what was there. From a pasted sentence, such as a text message, the field takes the last word that is as long as the code, so \"Your code is 123456\" fills in \"123456\". Once every box is full the field fires `nldd-complete`, and again after a correction that leaves it full. Submitting then is up to your app: send the form, or wait for a button, but never both, or a correction submits twice. Not for a PIN or a password, which must not be readable on screen: use `nldd-password-field`. Put the field in an `nldd-form-field`, whose label says where the code comes from (\"Code uit de sms\").",
15780
+ "name": "NLDDOneTimeCodeField",
15654
15781
  "members": [
15655
15782
  {
15656
15783
  "kind": "field",
@@ -15685,7 +15812,7 @@
15685
15812
  "kind": "field",
15686
15813
  "name": "size",
15687
15814
  "type": {
15688
- "text": "'md' | 'sm'"
15815
+ "text": "OneTimeCodeSize"
15689
15816
  },
15690
15817
  "default": "'md'",
15691
15818
  "attribute": "size",
@@ -15693,50 +15820,52 @@
15693
15820
  },
15694
15821
  {
15695
15822
  "kind": "field",
15696
- "name": "value",
15823
+ "name": "length",
15824
+ "default": "6",
15825
+ "attribute": "length",
15826
+ "reflects": true,
15697
15827
  "type": {
15698
- "text": "string"
15699
- },
15700
- "default": "''",
15701
- "attribute": "value"
15828
+ "text": "number"
15829
+ }
15702
15830
  },
15703
15831
  {
15704
15832
  "kind": "field",
15705
- "name": "inputId",
15833
+ "name": "format",
15706
15834
  "type": {
15707
15835
  "text": "string"
15708
15836
  },
15709
15837
  "default": "''",
15710
- "attribute": "input-id"
15838
+ "attribute": "format",
15839
+ "reflects": true
15711
15840
  },
15712
15841
  {
15713
15842
  "kind": "field",
15714
- "name": "placeholder",
15843
+ "name": "accessibleLabel",
15715
15844
  "type": {
15716
15845
  "text": "string"
15717
15846
  },
15718
15847
  "default": "''",
15719
- "attribute": "placeholder",
15720
- "reflects": true
15848
+ "description": "Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field.",
15849
+ "attribute": "accessible-label"
15721
15850
  },
15722
15851
  {
15723
15852
  "kind": "field",
15724
- "name": "valid",
15853
+ "name": "invalid",
15725
15854
  "type": {
15726
15855
  "text": "boolean"
15727
15856
  },
15728
15857
  "default": "false",
15729
- "attribute": "valid",
15858
+ "attribute": "invalid",
15730
15859
  "reflects": true
15731
15860
  },
15732
15861
  {
15733
15862
  "kind": "field",
15734
- "name": "invalid",
15863
+ "name": "readonly",
15735
15864
  "type": {
15736
15865
  "text": "boolean"
15737
15866
  },
15738
15867
  "default": "false",
15739
- "attribute": "invalid",
15868
+ "attribute": "readonly",
15740
15869
  "reflects": true
15741
15870
  },
15742
15871
  {
@@ -15751,83 +15880,79 @@
15751
15880
  },
15752
15881
  {
15753
15882
  "kind": "field",
15754
- "name": "masked",
15883
+ "name": "inputId",
15755
15884
  "type": {
15756
- "text": "boolean"
15885
+ "text": "string"
15757
15886
  },
15758
- "default": "true",
15759
- "attribute": "masked",
15760
- "reflects": true
15887
+ "default": "''",
15888
+ "attribute": "input-id"
15761
15889
  },
15762
15890
  {
15763
15891
  "kind": "field",
15764
- "name": "translations",
15892
+ "name": "name",
15765
15893
  "type": {
15766
- "text": "Partial<NLDDPasswordFieldTranslations>"
15894
+ "text": "string"
15767
15895
  },
15768
- "default": "{}",
15769
- "description": "Override one or more translation keys. Unset keys fall back to Dutch.",
15770
- "attribute": "translations"
15896
+ "default": "''",
15897
+ "attribute": "name",
15898
+ "reflects": true
15771
15899
  },
15772
15900
  {
15773
15901
  "kind": "field",
15774
- "name": "readonly",
15902
+ "name": "value",
15775
15903
  "type": {
15776
- "text": "boolean"
15904
+ "text": "string"
15777
15905
  },
15778
- "default": "false",
15779
- "attribute": "readonly",
15780
- "reflects": true
15906
+ "default": "''",
15907
+ "attribute": "value"
15781
15908
  },
15782
15909
  {
15783
15910
  "kind": "field",
15784
- "name": "required",
15911
+ "name": "type",
15785
15912
  "type": {
15786
- "text": "boolean"
15913
+ "text": "OneTimeCodeType"
15787
15914
  },
15788
- "default": "false",
15789
- "attribute": "required",
15915
+ "default": "'numeric'",
15916
+ "attribute": "type",
15790
15917
  "reflects": true
15791
15918
  },
15792
15919
  {
15793
15920
  "kind": "field",
15794
- "name": "name",
15921
+ "name": "uppercase",
15795
15922
  "type": {
15796
- "text": "string"
15923
+ "text": "boolean"
15797
15924
  },
15798
- "default": "''",
15799
- "attribute": "name",
15925
+ "default": "false",
15926
+ "attribute": "uppercase",
15800
15927
  "reflects": true
15801
15928
  },
15802
15929
  {
15803
15930
  "kind": "field",
15804
- "name": "autocomplete",
15931
+ "name": "required",
15805
15932
  "type": {
15806
- "text": "string"
15933
+ "text": "boolean"
15807
15934
  },
15808
- "default": "''",
15809
- "attribute": "autocomplete"
15935
+ "default": "false",
15936
+ "attribute": "required",
15937
+ "reflects": true
15810
15938
  },
15811
15939
  {
15812
15940
  "kind": "field",
15813
- "name": "accessibleLabel",
15941
+ "name": "formatParts",
15814
15942
  "type": {
15815
- "text": "string"
15943
+ "text": "FormatPart[] | null"
15816
15944
  },
15817
- "default": "''",
15818
- "description": "Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field.",
15819
- "attribute": "accessible-label"
15945
+ "description": "The format as boxes and the separators between them, or null without a usable format.",
15946
+ "readonly": true
15820
15947
  },
15821
15948
  {
15822
15949
  "kind": "field",
15823
- "name": "width",
15950
+ "name": "boxes",
15824
15951
  "type": {
15825
- "text": "string"
15952
+ "text": "number"
15826
15953
  },
15827
- "default": "''",
15828
- "description": "Optional fixed width (any CSS length). When unset, the field stretches to fill its container.",
15829
- "attribute": "width",
15830
- "reflects": true
15954
+ "description": "The length: the boxes in the format, or else `length` as a whole number of at least one.",
15955
+ "readonly": true
15831
15956
  },
15832
15957
  {
15833
15958
  "kind": "field",
@@ -15835,30 +15960,35 @@
15835
15960
  "type": {
15836
15961
  "text": "string"
15837
15962
  },
15838
- "default": "''",
15839
- "description": "Regular expression the value has to match, as the native `pattern`.",
15840
- "attribute": "pattern",
15841
- "reflects": true
15963
+ "description": "The `pattern` the native input checks: exactly `boxes` characters of the type.",
15964
+ "readonly": true
15842
15965
  },
15843
15966
  {
15844
- "kind": "field",
15845
- "name": "minlength",
15846
- "type": {
15847
- "text": "number | undefined"
15967
+ "kind": "method",
15968
+ "name": "charAt",
15969
+ "return": {
15970
+ "type": {
15971
+ "text": "string"
15972
+ }
15848
15973
  },
15849
- "description": "Fewest characters the value may have, as the native `minlength`.",
15850
- "attribute": "minlength",
15851
- "reflects": true
15974
+ "parameters": [
15975
+ {
15976
+ "name": "index",
15977
+ "type": {
15978
+ "text": "number"
15979
+ }
15980
+ }
15981
+ ],
15982
+ "description": "The character in a box, '' when it is empty."
15852
15983
  },
15853
15984
  {
15854
15985
  "kind": "field",
15855
- "name": "maxlength",
15986
+ "name": "activeBox",
15856
15987
  "type": {
15857
- "text": "number | undefined"
15988
+ "text": "number"
15858
15989
  },
15859
- "description": "Most characters the value may have, as the native `maxlength`.",
15860
- "attribute": "maxlength",
15861
- "reflects": true
15990
+ "description": "The box with the focus ring, or -1 while the field has no focus. A\nreadonly field gets the ring too, since the boxes are its only focus\nindicator, but no caret.",
15991
+ "readonly": true
15862
15992
  },
15863
15993
  {
15864
15994
  "kind": "method",
@@ -15902,7 +16032,7 @@
15902
16032
  },
15903
16033
  {
15904
16034
  "kind": "method",
15905
- "name": "focus",
16035
+ "name": "blur",
15906
16036
  "privacy": "public",
15907
16037
  "return": {
15908
16038
  "type": {
@@ -15912,13 +16042,657 @@
15912
16042
  },
15913
16043
  {
15914
16044
  "kind": "method",
15915
- "name": "blur",
15916
- "privacy": "public",
16045
+ "name": "focus",
15917
16046
  "return": {
15918
16047
  "type": {
15919
16048
  "text": "void"
15920
16049
  }
15921
- }
16050
+ },
16051
+ "parameters": [
16052
+ {
16053
+ "name": "options",
16054
+ "optional": true,
16055
+ "type": {
16056
+ "text": "FocusOptions"
16057
+ }
16058
+ }
16059
+ ],
16060
+ "description": "Delegates focus to the inner native `<input>`."
16061
+ },
16062
+ {
16063
+ "kind": "field",
16064
+ "name": "describedByElements",
16065
+ "type": {
16066
+ "text": "readonly Element[]"
16067
+ },
16068
+ "default": "[]",
16069
+ "description": "Set by nldd-form-field. A consumer never writes this.",
16070
+ "inheritedFrom": {
16071
+ "name": "DescribedBy",
16072
+ "module": "src/utilities/described-by-mixin.ts"
16073
+ }
16074
+ },
16075
+ {
16076
+ "kind": "method",
16077
+ "name": "describedTarget",
16078
+ "return": {
16079
+ "type": {
16080
+ "text": "Element | null"
16081
+ }
16082
+ },
16083
+ "description": "The element the description belongs to. Override where it differs.\n\nPublic rather than protected because TypeScript refuses to emit a\ndeclaration for an anonymous class with protected members, and a mixin\nreturns exactly that. Same reason `formValue()` is public in\nFormAssociated.",
16084
+ "inheritedFrom": {
16085
+ "name": "DescribedBy",
16086
+ "module": "src/utilities/described-by-mixin.ts"
16087
+ }
16088
+ },
16089
+ {
16090
+ "kind": "field",
16091
+ "name": "formAssociated",
16092
+ "type": {
16093
+ "text": "boolean"
16094
+ },
16095
+ "static": true,
16096
+ "default": "true",
16097
+ "inheritedFrom": {
16098
+ "name": "FormAssociated",
16099
+ "module": "src/utilities/form-associated-mixin.ts"
16100
+ }
16101
+ },
16102
+ {
16103
+ "kind": "field",
16104
+ "name": "internals",
16105
+ "readonly": true,
16106
+ "inheritedFrom": {
16107
+ "name": "FormAssociated",
16108
+ "module": "src/utilities/form-associated-mixin.ts"
16109
+ }
16110
+ },
16111
+ {
16112
+ "kind": "method",
16113
+ "name": "formState",
16114
+ "return": {
16115
+ "type": {
16116
+ "text": "FormValue | undefined"
16117
+ }
16118
+ },
16119
+ "description": "Extra state kept for bfcache and state restore, when the submitted\nvalue alone cannot rebuild the control (a combo box submits a code but\nshows a label). Override alongside `formValue()`.",
16120
+ "inheritedFrom": {
16121
+ "name": "FormAssociated",
16122
+ "module": "src/utilities/form-associated-mixin.ts"
16123
+ }
16124
+ },
16125
+ {
16126
+ "kind": "method",
16127
+ "name": "commitFormValue",
16128
+ "return": {
16129
+ "type": {
16130
+ "text": "void"
16131
+ }
16132
+ },
16133
+ "description": "Commit the value now, from the handler that changed it.",
16134
+ "inheritedFrom": {
16135
+ "name": "FormAssociated",
16136
+ "module": "src/utilities/form-associated-mixin.ts"
16137
+ }
16138
+ },
16139
+ {
16140
+ "kind": "method",
16141
+ "name": "validationTarget",
16142
+ "return": {
16143
+ "type": {
16144
+ "text": "HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null"
16145
+ }
16146
+ },
16147
+ "description": "The native control this host speaks for.\n\nThe constraint attributes are handed to a control inside the shadow\nroot, and that control is not a member of the form around the host: the\nform sees the host, the host sees the control, and without something\njoining them a `required` field submits empty. Override when the control\nis not the first one in the shadow root, or return null for a component\nthat has no native control to speak for.",
16148
+ "inheritedFrom": {
16149
+ "name": "FormAssociated",
16150
+ "module": "src/utilities/form-associated-mixin.ts"
16151
+ }
16152
+ },
16153
+ {
16154
+ "kind": "method",
16155
+ "name": "validationAnchor",
16156
+ "return": {
16157
+ "type": {
16158
+ "text": "HTMLElement | undefined"
16159
+ }
16160
+ },
16161
+ "description": "Where an invalid submit points its message and puts the focus.\n\nThe native control, where the user reads and fixes it. Not when that\ncontrol is hidden, as the radio that only carries `required` is: a radio\ninside an element that is itself the radio is a control inside a control,\nand a hidden element cannot hold the message. Then it goes on this\nelement. Override where neither is what the user should land on, such as\na group that has no focus of its own.",
16162
+ "inheritedFrom": {
16163
+ "name": "FormAssociated",
16164
+ "module": "src/utilities/form-associated-mixin.ts"
16165
+ }
16166
+ },
16167
+ {
16168
+ "kind": "method",
16169
+ "name": "ownValidity",
16170
+ "return": {
16171
+ "type": {
16172
+ "text": "OwnValidity | null"
16173
+ }
16174
+ },
16175
+ "description": "What the component knows is wrong and its native control does not, such\nas typed text that is no date in a text input. Override; null is valid.",
16176
+ "inheritedFrom": {
16177
+ "name": "FormAssociated",
16178
+ "module": "src/utilities/form-associated-mixin.ts"
16179
+ }
16180
+ },
16181
+ {
16182
+ "kind": "method",
16183
+ "name": "setCustomValidity",
16184
+ "return": {
16185
+ "type": {
16186
+ "text": "void"
16187
+ }
16188
+ },
16189
+ "parameters": [
16190
+ {
16191
+ "name": "message",
16192
+ "type": {
16193
+ "text": "string"
16194
+ }
16195
+ }
16196
+ ],
16197
+ "description": "A reason the host is invalid that no attribute can express: a server that\nrefused the value, or an nldd-validation-list whose rule it fails. Kept\nbeside the native flags rather than replacing them, because\n`setValidity` writes the whole set at once and the two arrive from\ndifferent places at different times.",
16198
+ "inheritedFrom": {
16199
+ "name": "FormAssociated",
16200
+ "module": "src/utilities/form-associated-mixin.ts"
16201
+ }
16202
+ },
16203
+ {
16204
+ "kind": "method",
16205
+ "name": "commitValidity",
16206
+ "return": {
16207
+ "type": {
16208
+ "text": "void"
16209
+ }
16210
+ },
16211
+ "description": "Hands the control's verdict to the form, as the host's own.\n\nCalled on every render and from `commitFormValue`, so it follows the\nvalue for the same reason and with the same timing.",
16212
+ "inheritedFrom": {
16213
+ "name": "FormAssociated",
16214
+ "module": "src/utilities/form-associated-mixin.ts"
16215
+ }
16216
+ },
16217
+ {
16218
+ "kind": "method",
16219
+ "name": "formDisabledCallback",
16220
+ "return": {
16221
+ "type": {
16222
+ "text": "void"
16223
+ }
16224
+ },
16225
+ "parameters": [
16226
+ {
16227
+ "name": "disabled",
16228
+ "type": {
16229
+ "text": "boolean"
16230
+ }
16231
+ }
16232
+ ],
16233
+ "inheritedFrom": {
16234
+ "name": "FormAssociated",
16235
+ "module": "src/utilities/form-associated-mixin.ts"
16236
+ }
16237
+ }
16238
+ ],
16239
+ "events": [
16240
+ {
16241
+ "name": "input",
16242
+ "description": "When the code changes; detail: { value: string }"
16243
+ },
16244
+ {
16245
+ "name": "change",
16246
+ "description": "When the code is committed; detail: { value: string }"
16247
+ },
16248
+ {
16249
+ "name": "nldd-complete",
16250
+ "description": "When every box is filled; detail: { value: string }"
16251
+ }
16252
+ ],
16253
+ "attributes": [
16254
+ {
16255
+ "name": "size",
16256
+ "type": {
16257
+ "text": "OneTimeCodeSize"
16258
+ },
16259
+ "default": "'md'",
16260
+ "fieldName": "size",
16261
+ "expandedType": {
16262
+ "text": "'lg' | 'md' | 'sm'"
16263
+ },
16264
+ "description": "'sm' | 'md' (default) | 'lg'. 'lg' has boxes of 56px with larger characters, for a page where the code is the only thing to do, such as signing in."
16265
+ },
16266
+ {
16267
+ "name": "length",
16268
+ "default": "DEFAULT_LENGTH",
16269
+ "fieldName": "length",
16270
+ "description": "How many characters the code has (default: 6)."
16271
+ },
16272
+ {
16273
+ "name": "format",
16274
+ "type": {
16275
+ "text": "string"
16276
+ },
16277
+ "default": "''",
16278
+ "fieldName": "format",
16279
+ "description": "The shape of a code that is printed in groups, such as '###-###' or '#### ####': each `#` is a box, anything else a separator you see but a screen reader does not hear. The number of `#` is then the length, so `format` wins over `length`. The value never holds a separator: '123-234' is submitted as '123234'. Leave it out for a code without groups, as most codes from a text message are."
16280
+ },
16281
+ {
16282
+ "name": "accessible-label",
16283
+ "type": {
16284
+ "text": "string"
16285
+ },
16286
+ "default": "''",
16287
+ "description": "Accessible label forwarded to the inner input. Set automatically by nldd-form-field.",
16288
+ "fieldName": "accessibleLabel"
16289
+ },
16290
+ {
16291
+ "name": "invalid",
16292
+ "type": {
16293
+ "text": "boolean"
16294
+ },
16295
+ "default": "false",
16296
+ "fieldName": "invalid",
16297
+ "description": "Marks the field as invalid"
16298
+ },
16299
+ {
16300
+ "name": "readonly",
16301
+ "type": {
16302
+ "text": "boolean"
16303
+ },
16304
+ "default": "false",
16305
+ "fieldName": "readonly",
16306
+ "description": "Readonly state"
16307
+ },
16308
+ {
16309
+ "name": "disabled",
16310
+ "type": {
16311
+ "text": "boolean"
16312
+ },
16313
+ "default": "false",
16314
+ "fieldName": "disabled",
16315
+ "description": "Disabled state"
16316
+ },
16317
+ {
16318
+ "name": "input-id",
16319
+ "type": {
16320
+ "text": "string"
16321
+ },
16322
+ "default": "''",
16323
+ "fieldName": "inputId",
16324
+ "description": "Sets the id on the native input. Set automatically by nldd-form-field."
16325
+ },
16326
+ {
16327
+ "name": "name",
16328
+ "type": {
16329
+ "text": "string"
16330
+ },
16331
+ "default": "''",
16332
+ "fieldName": "name",
16333
+ "description": "Input name for form submission"
16334
+ },
16335
+ {
16336
+ "name": "value",
16337
+ "type": {
16338
+ "text": "string"
16339
+ },
16340
+ "default": "''",
16341
+ "fieldName": "value",
16342
+ "description": "The code"
16343
+ },
16344
+ {
16345
+ "name": "type",
16346
+ "type": {
16347
+ "text": "OneTimeCodeType"
16348
+ },
16349
+ "default": "'numeric'",
16350
+ "fieldName": "type",
16351
+ "expandedType": {
16352
+ "text": "'alphanumeric' | 'numeric'"
16353
+ },
16354
+ "description": "What the code holds: 'numeric' (default, digits only, raises the number keyboard) | 'alphanumeric' (letters and digits)"
16355
+ },
16356
+ {
16357
+ "name": "uppercase",
16358
+ "type": {
16359
+ "text": "boolean"
16360
+ },
16361
+ "default": "false",
16362
+ "fieldName": "uppercase",
16363
+ "description": "Turns letters into capitals as they are typed or pasted, in the boxes and in the value. Only with `type=\"alphanumeric\"`, and only for a code where case does not matter, as with most activation codes. Leave it off for a code that tells \"a\" from \"A\", such as some recovery codes: a value turned into capitals would no longer match."
16364
+ },
16365
+ {
16366
+ "name": "required",
16367
+ "type": {
16368
+ "text": "boolean"
16369
+ },
16370
+ "default": "false",
16371
+ "fieldName": "required",
16372
+ "description": "Required state. A code that is not complete counts as invalid too."
16373
+ }
16374
+ ],
16375
+ "mixins": [
16376
+ {
16377
+ "name": "DescribedBy",
16378
+ "module": "/src/utilities/described-by-mixin.js"
16379
+ },
16380
+ {
16381
+ "name": "FormAssociated",
16382
+ "module": "/src/utilities/form-associated-mixin.js"
16383
+ }
16384
+ ],
16385
+ "superclass": {
16386
+ "name": "LitElement",
16387
+ "package": "lit"
16388
+ },
16389
+ "tagName": "nldd-one-time-code-field",
16390
+ "customElement": true
16391
+ }
16392
+ ],
16393
+ "exports": [
16394
+ {
16395
+ "kind": "js",
16396
+ "name": "BOX",
16397
+ "declaration": {
16398
+ "name": "BOX",
16399
+ "module": "src/components/inputs/one-time-code-field/one-time-code-field.ts"
16400
+ }
16401
+ },
16402
+ {
16403
+ "kind": "js",
16404
+ "name": "NLDDOneTimeCodeField",
16405
+ "declaration": {
16406
+ "name": "NLDDOneTimeCodeField",
16407
+ "module": "src/components/inputs/one-time-code-field/one-time-code-field.ts"
16408
+ }
16409
+ },
16410
+ {
16411
+ "kind": "custom-element-definition",
16412
+ "name": "nldd-one-time-code-field",
16413
+ "declaration": {
16414
+ "name": "NLDDOneTimeCodeField",
16415
+ "module": "src/components/inputs/one-time-code-field/one-time-code-field.ts"
16416
+ }
16417
+ }
16418
+ ]
16419
+ },
16420
+ {
16421
+ "kind": "javascript-module",
16422
+ "path": "src/components/inputs/password-field/password-field.ts",
16423
+ "declarations": [
16424
+ {
16425
+ "kind": "class",
16426
+ "description": "A password input field with visibility toggle and validation states.",
16427
+ "name": "NLDDPasswordField",
16428
+ "members": [
16429
+ {
16430
+ "kind": "field",
16431
+ "name": "shadowRootOptions",
16432
+ "type": {
16433
+ "text": "object"
16434
+ },
16435
+ "static": true,
16436
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
16437
+ },
16438
+ {
16439
+ "kind": "field",
16440
+ "name": "isFormInput",
16441
+ "type": {
16442
+ "text": "boolean"
16443
+ },
16444
+ "static": true,
16445
+ "default": "true",
16446
+ "description": "Says this is the control an nldd-form-field is about, so the field can\nfind it, name it and move focus into it. See nldd-form-field."
16447
+ },
16448
+ {
16449
+ "kind": "field",
16450
+ "name": "blocksImplicitSubmission",
16451
+ "type": {
16452
+ "text": "boolean"
16453
+ },
16454
+ "static": true,
16455
+ "default": "true",
16456
+ "description": "Counts for the implicit-submission rule: a single-line field where Enter\nwould submit the form. See utilities/implicit-submission.ts."
16457
+ },
16458
+ {
16459
+ "kind": "field",
16460
+ "name": "size",
16461
+ "type": {
16462
+ "text": "'md' | 'sm'"
16463
+ },
16464
+ "default": "'md'",
16465
+ "attribute": "size",
16466
+ "reflects": true
16467
+ },
16468
+ {
16469
+ "kind": "field",
16470
+ "name": "value",
16471
+ "type": {
16472
+ "text": "string"
16473
+ },
16474
+ "default": "''",
16475
+ "attribute": "value"
16476
+ },
16477
+ {
16478
+ "kind": "field",
16479
+ "name": "inputId",
16480
+ "type": {
16481
+ "text": "string"
16482
+ },
16483
+ "default": "''",
16484
+ "attribute": "input-id"
16485
+ },
16486
+ {
16487
+ "kind": "field",
16488
+ "name": "placeholder",
16489
+ "type": {
16490
+ "text": "string"
16491
+ },
16492
+ "default": "''",
16493
+ "attribute": "placeholder",
16494
+ "reflects": true
16495
+ },
16496
+ {
16497
+ "kind": "field",
16498
+ "name": "valid",
16499
+ "type": {
16500
+ "text": "boolean"
16501
+ },
16502
+ "default": "false",
16503
+ "attribute": "valid",
16504
+ "reflects": true
16505
+ },
16506
+ {
16507
+ "kind": "field",
16508
+ "name": "invalid",
16509
+ "type": {
16510
+ "text": "boolean"
16511
+ },
16512
+ "default": "false",
16513
+ "attribute": "invalid",
16514
+ "reflects": true
16515
+ },
16516
+ {
16517
+ "kind": "field",
16518
+ "name": "disabled",
16519
+ "type": {
16520
+ "text": "boolean"
16521
+ },
16522
+ "default": "false",
16523
+ "attribute": "disabled",
16524
+ "reflects": true
16525
+ },
16526
+ {
16527
+ "kind": "field",
16528
+ "name": "masked",
16529
+ "type": {
16530
+ "text": "boolean"
16531
+ },
16532
+ "default": "true",
16533
+ "attribute": "masked",
16534
+ "reflects": true
16535
+ },
16536
+ {
16537
+ "kind": "field",
16538
+ "name": "translations",
16539
+ "type": {
16540
+ "text": "Partial<NLDDPasswordFieldTranslations>"
16541
+ },
16542
+ "default": "{}",
16543
+ "description": "Override one or more translation keys. Unset keys fall back to Dutch.",
16544
+ "attribute": "translations"
16545
+ },
16546
+ {
16547
+ "kind": "field",
16548
+ "name": "readonly",
16549
+ "type": {
16550
+ "text": "boolean"
16551
+ },
16552
+ "default": "false",
16553
+ "attribute": "readonly",
16554
+ "reflects": true
16555
+ },
16556
+ {
16557
+ "kind": "field",
16558
+ "name": "required",
16559
+ "type": {
16560
+ "text": "boolean"
16561
+ },
16562
+ "default": "false",
16563
+ "attribute": "required",
16564
+ "reflects": true
16565
+ },
16566
+ {
16567
+ "kind": "field",
16568
+ "name": "name",
16569
+ "type": {
16570
+ "text": "string"
16571
+ },
16572
+ "default": "''",
16573
+ "attribute": "name",
16574
+ "reflects": true
16575
+ },
16576
+ {
16577
+ "kind": "field",
16578
+ "name": "autocomplete",
16579
+ "type": {
16580
+ "text": "string"
16581
+ },
16582
+ "default": "''",
16583
+ "attribute": "autocomplete"
16584
+ },
16585
+ {
16586
+ "kind": "field",
16587
+ "name": "accessibleLabel",
16588
+ "type": {
16589
+ "text": "string"
16590
+ },
16591
+ "default": "''",
16592
+ "description": "Accessible label forwarded to the inner <input>. Set automatically by nldd-form-field.",
16593
+ "attribute": "accessible-label"
16594
+ },
16595
+ {
16596
+ "kind": "field",
16597
+ "name": "width",
16598
+ "type": {
16599
+ "text": "string"
16600
+ },
16601
+ "default": "''",
16602
+ "description": "Optional fixed width (any CSS length). When unset, the field stretches to fill its container.",
16603
+ "attribute": "width",
16604
+ "reflects": true
16605
+ },
16606
+ {
16607
+ "kind": "field",
16608
+ "name": "pattern",
16609
+ "type": {
16610
+ "text": "string"
16611
+ },
16612
+ "default": "''",
16613
+ "description": "Regular expression the value has to match, as the native `pattern`.",
16614
+ "attribute": "pattern",
16615
+ "reflects": true
16616
+ },
16617
+ {
16618
+ "kind": "field",
16619
+ "name": "minlength",
16620
+ "type": {
16621
+ "text": "number | undefined"
16622
+ },
16623
+ "description": "Fewest characters the value may have, as the native `minlength`.",
16624
+ "attribute": "minlength",
16625
+ "reflects": true
16626
+ },
16627
+ {
16628
+ "kind": "field",
16629
+ "name": "maxlength",
16630
+ "type": {
16631
+ "text": "number | undefined"
16632
+ },
16633
+ "description": "Most characters the value may have, as the native `maxlength`.",
16634
+ "attribute": "maxlength",
16635
+ "reflects": true
16636
+ },
16637
+ {
16638
+ "kind": "method",
16639
+ "name": "formValue",
16640
+ "return": {
16641
+ "type": {
16642
+ "text": "FormValue"
16643
+ }
16644
+ },
16645
+ "description": "The value submitted under `name`; `null` submits nothing. Override.",
16646
+ "inheritedFrom": {
16647
+ "name": "FormAssociated",
16648
+ "module": "src/utilities/form-associated-mixin.ts"
16649
+ }
16650
+ },
16651
+ {
16652
+ "kind": "method",
16653
+ "name": "formResetCallback",
16654
+ "return": {
16655
+ "type": {
16656
+ "text": "void"
16657
+ }
16658
+ }
16659
+ },
16660
+ {
16661
+ "kind": "method",
16662
+ "name": "formStateRestoreCallback",
16663
+ "return": {
16664
+ "type": {
16665
+ "text": "void"
16666
+ }
16667
+ },
16668
+ "parameters": [
16669
+ {
16670
+ "name": "state",
16671
+ "type": {
16672
+ "text": "File | string | FormData | null"
16673
+ }
16674
+ }
16675
+ ]
16676
+ },
16677
+ {
16678
+ "kind": "method",
16679
+ "name": "focus",
16680
+ "privacy": "public",
16681
+ "return": {
16682
+ "type": {
16683
+ "text": "void"
16684
+ }
16685
+ }
16686
+ },
16687
+ {
16688
+ "kind": "method",
16689
+ "name": "blur",
16690
+ "privacy": "public",
16691
+ "return": {
16692
+ "type": {
16693
+ "text": "void"
16694
+ }
16695
+ }
15922
16696
  },
15923
16697
  {
15924
16698
  "kind": "field",
@@ -17527,12 +18301,13 @@
17527
18301
  },
17528
18302
  {
17529
18303
  "kind": "field",
17530
- "name": "showSearchButton",
18304
+ "name": "searchButton",
17531
18305
  "type": {
17532
- "text": "boolean"
18306
+ "text": "SearchButtonAppearance | null"
17533
18307
  },
17534
- "default": "false",
17535
- "attribute": "show-search-button",
18308
+ "default": "null",
18309
+ "description": "Shows a search button in this appearance; null for none, an empty string for the default.",
18310
+ "attribute": "search-button",
17536
18311
  "reflects": true
17537
18312
  },
17538
18313
  {
@@ -17967,13 +18742,16 @@
17967
18742
  "fieldName": "accessibleLabel"
17968
18743
  },
17969
18744
  {
17970
- "name": "show-search-button",
18745
+ "name": "search-button",
17971
18746
  "type": {
17972
- "text": "boolean"
18747
+ "text": "SearchButtonAppearance | null"
17973
18748
  },
17974
- "default": "false",
17975
- "fieldName": "showSearchButton",
17976
- "description": "When set, shows a search button on the right"
18749
+ "default": "null",
18750
+ "description": "Shows a search button on the right, in the appearance you name: 'neutral-tinted' (also with no value) | 'accent-filled'. Leave it out for no button: Enter searches as well. 'accent-filled' is for a page where searching is the main task, such as a search page; in a header or above a list the quiet one fits.",
18751
+ "fieldName": "searchButton",
18752
+ "expandedType": {
18753
+ "text": "'' | 'accent-filled' | 'neutral-tinted'"
18754
+ }
17977
18755
  },
17978
18756
  {
17979
18757
  "name": "shortcut",
@@ -25688,6 +26466,15 @@
25688
26466
  "attribute": "maxlength",
25689
26467
  "reflects": true
25690
26468
  },
26469
+ {
26470
+ "kind": "field",
26471
+ "name": "buttonSize",
26472
+ "type": {
26473
+ "text": "'sm' | 'xs'"
26474
+ },
26475
+ "description": "The size a slotted button gets: one step below the field, so it fits inside the border.",
26476
+ "readonly": true
26477
+ },
25691
26478
  {
25692
26479
  "kind": "method",
25693
26480
  "name": "formValue",
@@ -26149,7 +26936,13 @@
26149
26936
  "package": "lit"
26150
26937
  },
26151
26938
  "tagName": "nldd-text-field",
26152
- "customElement": true
26939
+ "customElement": true,
26940
+ "slots": [
26941
+ {
26942
+ "name": "button",
26943
+ "description": "One `nldd-button` or `nldd-icon-button` at the end of the field, for the one action of a form that is only this field: sign up with an email address, redeem a code. The field sets its `size`, `sm` in a field of `md` and `xs` in one of `sm`, so it sits inside the border; a `size` of your own is overwritten. A disabled field disables the button too. Give it `type=\"submit\"` in a form, and its own `text`. A form with more fields keeps its buttons in `nldd-form-actions`."
26944
+ }
26945
+ ]
26153
26946
  }
26154
26947
  ],
26155
26948
  "exports": [
@@ -29605,6 +30398,323 @@
29605
30398
  }
29606
30399
  ]
29607
30400
  },
30401
+ {
30402
+ "kind": "javascript-module",
30403
+ "path": "src/components/layout/column-board/column-board-column.ts",
30404
+ "declarations": [
30405
+ {
30406
+ "kind": "class",
30407
+ "description": "One column of an `nldd-column-board`: a header and the items under it. The items are whatever you put in the column, usually an `nldd-card` each; the board moves them between columns. Without a `header` slot the column shows its `text` and the number of items. With one, the header is yours: an `nldd-title`, a button to add an item, a badge. `text` stays the column's name either way: it is what a screen reader hears when an item moves here (\"Verplaatst naar In behandeling\"), so set it, or `accessible-label`, also when the header comes from the slot. The column scrolls on its own once its items do not fit the height of the board, and fades at the top or the bottom while there is more to scroll to.",
30408
+ "name": "NLDDColumnBoardColumn",
30409
+ "members": [
30410
+ {
30411
+ "kind": "field",
30412
+ "name": "text",
30413
+ "type": {
30414
+ "text": "string"
30415
+ },
30416
+ "default": "''",
30417
+ "attribute": "text",
30418
+ "reflects": true
30419
+ },
30420
+ {
30421
+ "kind": "field",
30422
+ "name": "accessibleLabel",
30423
+ "type": {
30424
+ "text": "string"
30425
+ },
30426
+ "default": "''",
30427
+ "attribute": "accessible-label"
30428
+ },
30429
+ {
30430
+ "kind": "field",
30431
+ "name": "value",
30432
+ "type": {
30433
+ "text": "string"
30434
+ },
30435
+ "default": "''",
30436
+ "attribute": "value",
30437
+ "reflects": true
30438
+ },
30439
+ {
30440
+ "kind": "field",
30441
+ "name": "label",
30442
+ "type": {
30443
+ "text": "string"
30444
+ },
30445
+ "description": "The column's name: what a screen reader hears for it.",
30446
+ "readonly": true
30447
+ },
30448
+ {
30449
+ "kind": "field",
30450
+ "name": "items",
30451
+ "type": {
30452
+ "text": "HTMLElement[]"
30453
+ },
30454
+ "description": "The column's items, in order; a hidden one does not count.",
30455
+ "readonly": true
30456
+ }
30457
+ ],
30458
+ "attributes": [
30459
+ {
30460
+ "name": "text",
30461
+ "type": {
30462
+ "text": "string"
30463
+ },
30464
+ "default": "''",
30465
+ "fieldName": "text",
30466
+ "description": "The column's name, shown in the header and used as its accessible name"
30467
+ },
30468
+ {
30469
+ "name": "accessible-label",
30470
+ "type": {
30471
+ "text": "string"
30472
+ },
30473
+ "default": "''",
30474
+ "fieldName": "accessibleLabel",
30475
+ "description": "Accessible name in place of `text`, for a column whose header comes from the slot"
30476
+ },
30477
+ {
30478
+ "name": "value",
30479
+ "type": {
30480
+ "text": "string"
30481
+ },
30482
+ "default": "''",
30483
+ "fieldName": "value",
30484
+ "description": "What the column stands for in your data, such as a status; `nldd-move` reports it as `fromColumn` and `toColumn`"
30485
+ }
30486
+ ],
30487
+ "superclass": {
30488
+ "name": "LitElement",
30489
+ "package": "lit"
30490
+ },
30491
+ "tagName": "nldd-column-board-column",
30492
+ "customElement": true,
30493
+ "slots": [
30494
+ {
30495
+ "name": "header",
30496
+ "description": "The header, in place of `text` and the count"
30497
+ },
30498
+ {
30499
+ "name": "",
30500
+ "description": "The items"
30501
+ },
30502
+ {
30503
+ "name": "footer",
30504
+ "description": "Right under the last item, such as a button to add one; it scrolls along with the items"
30505
+ }
30506
+ ]
30507
+ }
30508
+ ],
30509
+ "exports": [
30510
+ {
30511
+ "kind": "js",
30512
+ "name": "NLDDColumnBoardColumn",
30513
+ "declaration": {
30514
+ "name": "NLDDColumnBoardColumn",
30515
+ "module": "src/components/layout/column-board/column-board-column.ts"
30516
+ }
30517
+ },
30518
+ {
30519
+ "kind": "custom-element-definition",
30520
+ "name": "nldd-column-board-column",
30521
+ "declaration": {
30522
+ "name": "NLDDColumnBoardColumn",
30523
+ "module": "src/components/layout/column-board/column-board-column.ts"
30524
+ }
30525
+ }
30526
+ ]
30527
+ },
30528
+ {
30529
+ "kind": "javascript-module",
30530
+ "path": "src/components/layout/column-board/column-board.ts",
30531
+ "declarations": [
30532
+ {
30533
+ "kind": "class",
30534
+ "description": "Columns side by side, with items you move between them: a kanban board, or any board where an item's column is one of its values, such as a status or a team. Put `nldd-column-board-column`s in it, and the items in those, usually an `nldd-card` each. The board scrolls sideways once its columns do not fit, and a column scrolls on its own once its items do not fit the height you give the board. An item moves in three ways, and all three fire the same `nldd-move`: - **Dragging.** Pick up the whole item and drop it in a column. A press that does not move is still a click, so an item that is a link or a button keeps working. Released outside the board, the item goes back to its place, which a note above it says once it stays out a moment. On a touch screen you hold the item a moment before it lifts, so a swipe still scrolls. - **Keyboard.** With focus on an item, or on something inside it, Alt with the up or down arrow moves it within its column, and Alt with the left or right arrow to the column beside it. - **`moveItem()`.** WCAG 2.5.7 asks for a way that does not drag. Give each item a menu \"Verplaatsen naar\" with the other columns (`columns` lists them) and call `moveItem()` from it. The menu is yours; the board only moves. With `readonly` nothing moves: no dragging and no Alt with the arrows, while the items still work, so a card still opens. Use it for someone who may only look, or a board that is closed. `moveItem()` still moves, so your app can still show a move someone else made. An attempt to move an item, dragging it past a click or Alt with an arrow, shows \"Dit bord is alleen-lezen\" at the item, says it to a screen reader and fires `nldd-move-denied`, so your app can say why in an `nldd-notification`. Say it above the board too: only your app knows the reason, and then nobody has to try. The board moves nothing itself. `nldd-move` says which item goes where, and your app moves it in its data, or in the DOM, in the handler: the app owns the order, so a framework that renders the columns never fights the board over them. `toIndex` is the place the item takes in `toColumn`, counted without the item itself, so `splice(fromIndex, 1)` on the one list and `splice(toIndex, 0, item)` on the other is the whole move. Move it synchronously in the handler: the board puts focus back on the item right after, and a screen reader hears where it landed.",
30535
+ "name": "NLDDColumnBoard",
30536
+ "members": [
30537
+ {
30538
+ "kind": "field",
30539
+ "name": "accessibleLabel",
30540
+ "type": {
30541
+ "text": "string"
30542
+ },
30543
+ "default": "''",
30544
+ "attribute": "accessible-label"
30545
+ },
30546
+ {
30547
+ "kind": "field",
30548
+ "name": "height",
30549
+ "type": {
30550
+ "text": "string"
30551
+ },
30552
+ "default": "''",
30553
+ "attribute": "height",
30554
+ "reflects": true
30555
+ },
30556
+ {
30557
+ "kind": "field",
30558
+ "name": "readonly",
30559
+ "type": {
30560
+ "text": "boolean"
30561
+ },
30562
+ "default": "false",
30563
+ "attribute": "readonly",
30564
+ "reflects": true
30565
+ },
30566
+ {
30567
+ "kind": "field",
30568
+ "name": "columns",
30569
+ "type": {
30570
+ "text": "NLDDColumnBoardColumn[]"
30571
+ },
30572
+ "description": "The columns, in order.",
30573
+ "readonly": true
30574
+ },
30575
+ {
30576
+ "kind": "method",
30577
+ "name": "moveItem",
30578
+ "return": {
30579
+ "type": {
30580
+ "text": "boolean"
30581
+ }
30582
+ },
30583
+ "parameters": [
30584
+ {
30585
+ "name": "item",
30586
+ "type": {
30587
+ "text": "HTMLElement"
30588
+ }
30589
+ },
30590
+ {
30591
+ "name": "toColumn",
30592
+ "type": {
30593
+ "text": "string | NLDDColumnBoardColumn"
30594
+ }
30595
+ },
30596
+ {
30597
+ "name": "toIndex",
30598
+ "optional": true,
30599
+ "type": {
30600
+ "text": "number"
30601
+ }
30602
+ }
30603
+ ]
30604
+ },
30605
+ {
30606
+ "kind": "field",
30607
+ "name": "translations",
30608
+ "type": {
30609
+ "text": "Partial<T>"
30610
+ },
30611
+ "default": "{}",
30612
+ "attribute": "translations",
30613
+ "inheritedFrom": {
30614
+ "name": "withTranslations",
30615
+ "module": "src/utilities/with-translations.ts"
30616
+ }
30617
+ }
30618
+ ],
30619
+ "events": [
30620
+ {
30621
+ "name": "nldd-move",
30622
+ "description": "An item moves: `{ item, fromColumn, fromIndex, toColumn, toIndex }`, where a column is its `value` (or its `text` without one)"
30623
+ },
30624
+ {
30625
+ "name": "nldd-move-denied",
30626
+ "description": "An item a `readonly` board does not move was dragged or moved with the keyboard: `{ item }`"
30627
+ }
30628
+ ],
30629
+ "attributes": [
30630
+ {
30631
+ "name": "accessible-label",
30632
+ "type": {
30633
+ "text": "string"
30634
+ },
30635
+ "default": "''",
30636
+ "fieldName": "accessibleLabel",
30637
+ "description": "Accessible name of the board (default: \"Bord\")"
30638
+ },
30639
+ {
30640
+ "name": "height",
30641
+ "type": {
30642
+ "text": "string"
30643
+ },
30644
+ "default": "''",
30645
+ "fieldName": "height",
30646
+ "description": "Fixed height as a CSS length (e.g. '480px'): every column takes it, and scrolls its items once they do not fit. To fill a page or a pane, set the height in your layout instead (flex, or `height: 100%`)"
30647
+ },
30648
+ {
30649
+ "name": "readonly",
30650
+ "type": {
30651
+ "text": "boolean"
30652
+ },
30653
+ "default": "false",
30654
+ "fieldName": "readonly",
30655
+ "description": "Items cannot be dragged or moved with the keyboard; they still work, and `moveItem()` still moves"
30656
+ },
30657
+ {
30658
+ "name": "translations",
30659
+ "type": {
30660
+ "text": "Partial<T>"
30661
+ },
30662
+ "default": "{}",
30663
+ "fieldName": "translations",
30664
+ "inheritedFrom": {
30665
+ "name": "withTranslations",
30666
+ "module": "src/utilities/with-translations.ts"
30667
+ },
30668
+ "description": "Override translation keys; unset keys fall back to Dutch"
30669
+ }
30670
+ ],
30671
+ "mixins": [
30672
+ {
30673
+ "name": "withTranslations",
30674
+ "module": "/src/utilities/with-translations.js"
30675
+ }
30676
+ ],
30677
+ "superclass": {
30678
+ "name": "LitElement",
30679
+ "package": "lit"
30680
+ },
30681
+ "tagName": "nldd-column-board",
30682
+ "customElement": true,
30683
+ "slots": [
30684
+ {
30685
+ "name": "",
30686
+ "description": "The columns: `nldd-column-board-column`"
30687
+ }
30688
+ ]
30689
+ }
30690
+ ],
30691
+ "exports": [
30692
+ {
30693
+ "kind": "js",
30694
+ "name": "NLDDColumnBoardColumn",
30695
+ "declaration": {
30696
+ "name": "NLDDColumnBoardColumn",
30697
+ "module": "src/components/layout/column-board/column-board.ts"
30698
+ }
30699
+ },
30700
+ {
30701
+ "kind": "js",
30702
+ "name": "NLDDColumnBoard",
30703
+ "declaration": {
30704
+ "name": "NLDDColumnBoard",
30705
+ "module": "src/components/layout/column-board/column-board.ts"
30706
+ }
30707
+ },
30708
+ {
30709
+ "kind": "custom-element-definition",
30710
+ "name": "nldd-column-board",
30711
+ "declaration": {
30712
+ "name": "NLDDColumnBoard",
30713
+ "module": "src/components/layout/column-board/column-board.ts"
30714
+ }
30715
+ }
30716
+ ]
30717
+ },
29608
30718
  {
29609
30719
  "kind": "javascript-module",
29610
30720
  "path": "src/components/layout/container/container.ts",
@@ -36631,323 +37741,6 @@
36631
37741
  }
36632
37742
  ]
36633
37743
  },
36634
- {
36635
- "kind": "javascript-module",
36636
- "path": "src/components/layout/task-board/task-board-column.ts",
36637
- "declarations": [
36638
- {
36639
- "kind": "class",
36640
- "description": "One column of an `nldd-task-board`: a header and the items under it. The items are whatever you put in the column, usually an `nldd-card` each; the board moves them between columns. Without a `header` slot the column shows its `text` and the number of items. With one, the header is yours: an `nldd-title`, a button to add an item, a badge. `text` stays the column's name either way: it is what a screen reader hears when an item moves here (\"Verplaatst naar In behandeling\"), so set it, or `accessible-label`, also when the header comes from the slot. The column scrolls on its own once its items do not fit the height of the board, and fades at the top or the bottom while there is more to scroll to.",
36641
- "name": "NLDDTaskBoardColumn",
36642
- "members": [
36643
- {
36644
- "kind": "field",
36645
- "name": "text",
36646
- "type": {
36647
- "text": "string"
36648
- },
36649
- "default": "''",
36650
- "attribute": "text",
36651
- "reflects": true
36652
- },
36653
- {
36654
- "kind": "field",
36655
- "name": "accessibleLabel",
36656
- "type": {
36657
- "text": "string"
36658
- },
36659
- "default": "''",
36660
- "attribute": "accessible-label"
36661
- },
36662
- {
36663
- "kind": "field",
36664
- "name": "value",
36665
- "type": {
36666
- "text": "string"
36667
- },
36668
- "default": "''",
36669
- "attribute": "value",
36670
- "reflects": true
36671
- },
36672
- {
36673
- "kind": "field",
36674
- "name": "label",
36675
- "type": {
36676
- "text": "string"
36677
- },
36678
- "description": "The column's name: what a screen reader hears for it.",
36679
- "readonly": true
36680
- },
36681
- {
36682
- "kind": "field",
36683
- "name": "items",
36684
- "type": {
36685
- "text": "HTMLElement[]"
36686
- },
36687
- "description": "The column's items, in order; a hidden one does not count.",
36688
- "readonly": true
36689
- }
36690
- ],
36691
- "attributes": [
36692
- {
36693
- "name": "text",
36694
- "type": {
36695
- "text": "string"
36696
- },
36697
- "default": "''",
36698
- "fieldName": "text",
36699
- "description": "The column's name, shown in the header and used as its accessible name"
36700
- },
36701
- {
36702
- "name": "accessible-label",
36703
- "type": {
36704
- "text": "string"
36705
- },
36706
- "default": "''",
36707
- "fieldName": "accessibleLabel",
36708
- "description": "Accessible name in place of `text`, for a column whose header comes from the slot"
36709
- },
36710
- {
36711
- "name": "value",
36712
- "type": {
36713
- "text": "string"
36714
- },
36715
- "default": "''",
36716
- "fieldName": "value",
36717
- "description": "What the column stands for in your data, such as a status; `nldd-move` reports it as `fromColumn` and `toColumn`"
36718
- }
36719
- ],
36720
- "superclass": {
36721
- "name": "LitElement",
36722
- "package": "lit"
36723
- },
36724
- "tagName": "nldd-task-board-column",
36725
- "customElement": true,
36726
- "slots": [
36727
- {
36728
- "name": "header",
36729
- "description": "The header, in place of `text` and the count"
36730
- },
36731
- {
36732
- "name": "",
36733
- "description": "The items"
36734
- },
36735
- {
36736
- "name": "footer",
36737
- "description": "Right under the last item, such as a button to add one; it scrolls along with the items"
36738
- }
36739
- ]
36740
- }
36741
- ],
36742
- "exports": [
36743
- {
36744
- "kind": "js",
36745
- "name": "NLDDTaskBoardColumn",
36746
- "declaration": {
36747
- "name": "NLDDTaskBoardColumn",
36748
- "module": "src/components/layout/task-board/task-board-column.ts"
36749
- }
36750
- },
36751
- {
36752
- "kind": "custom-element-definition",
36753
- "name": "nldd-task-board-column",
36754
- "declaration": {
36755
- "name": "NLDDTaskBoardColumn",
36756
- "module": "src/components/layout/task-board/task-board-column.ts"
36757
- }
36758
- }
36759
- ]
36760
- },
36761
- {
36762
- "kind": "javascript-module",
36763
- "path": "src/components/layout/task-board/task-board.ts",
36764
- "declarations": [
36765
- {
36766
- "kind": "class",
36767
- "description": "Columns side by side, with items you move between them: a kanban board, or any board where an item's column is one of its values, such as a status or a team. Put `nldd-task-board-column`s in it, and the items in those, usually an `nldd-card` each. The board scrolls sideways once its columns do not fit, and a column scrolls on its own once its items do not fit the height you give the board. An item moves in three ways, and all three fire the same `nldd-move`: - **Dragging.** Pick up the whole item and drop it in a column. A press that does not move is still a click, so an item that is a link or a button keeps working. Released outside the board, the item goes back to its place, which a note above it says once it stays out a moment. On a touch screen you hold the item a moment before it lifts, so a swipe still scrolls. - **Keyboard.** With focus on an item, or on something inside it, Alt with the up or down arrow moves it within its column, and Alt with the left or right arrow to the column beside it. - **`moveItem()`.** WCAG 2.5.7 asks for a way that does not drag. Give each item a menu \"Verplaatsen naar\" with the other columns (`columns` lists them) and call `moveItem()` from it. The menu is yours; the board only moves. With `readonly` nothing moves: no dragging and no Alt with the arrows, while the items still work, so a card still opens. Use it for someone who may only look, or a board that is closed. `moveItem()` still moves, so your app can still show a move someone else made. An attempt to move an item, dragging it past a click or Alt with an arrow, shows \"Dit bord is alleen-lezen\" at the item, says it to a screen reader and fires `nldd-move-denied`, so your app can say why in an `nldd-notification`. Say it above the board too: only your app knows the reason, and then nobody has to try. The board moves nothing itself. `nldd-move` says which item goes where, and your app moves it in its data, or in the DOM, in the handler: the app owns the order, so a framework that renders the columns never fights the board over them. `toIndex` is the place the item takes in `toColumn`, counted without the item itself, so `splice(fromIndex, 1)` on the one list and `splice(toIndex, 0, item)` on the other is the whole move. Move it synchronously in the handler: the board puts focus back on the item right after, and a screen reader hears where it landed.",
36768
- "name": "NLDDTaskBoard",
36769
- "members": [
36770
- {
36771
- "kind": "field",
36772
- "name": "accessibleLabel",
36773
- "type": {
36774
- "text": "string"
36775
- },
36776
- "default": "''",
36777
- "attribute": "accessible-label"
36778
- },
36779
- {
36780
- "kind": "field",
36781
- "name": "height",
36782
- "type": {
36783
- "text": "string"
36784
- },
36785
- "default": "''",
36786
- "attribute": "height",
36787
- "reflects": true
36788
- },
36789
- {
36790
- "kind": "field",
36791
- "name": "readonly",
36792
- "type": {
36793
- "text": "boolean"
36794
- },
36795
- "default": "false",
36796
- "attribute": "readonly",
36797
- "reflects": true
36798
- },
36799
- {
36800
- "kind": "field",
36801
- "name": "columns",
36802
- "type": {
36803
- "text": "NLDDTaskBoardColumn[]"
36804
- },
36805
- "description": "The columns, in order.",
36806
- "readonly": true
36807
- },
36808
- {
36809
- "kind": "method",
36810
- "name": "moveItem",
36811
- "return": {
36812
- "type": {
36813
- "text": "boolean"
36814
- }
36815
- },
36816
- "parameters": [
36817
- {
36818
- "name": "item",
36819
- "type": {
36820
- "text": "HTMLElement"
36821
- }
36822
- },
36823
- {
36824
- "name": "toColumn",
36825
- "type": {
36826
- "text": "string | NLDDTaskBoardColumn"
36827
- }
36828
- },
36829
- {
36830
- "name": "toIndex",
36831
- "optional": true,
36832
- "type": {
36833
- "text": "number"
36834
- }
36835
- }
36836
- ]
36837
- },
36838
- {
36839
- "kind": "field",
36840
- "name": "translations",
36841
- "type": {
36842
- "text": "Partial<T>"
36843
- },
36844
- "default": "{}",
36845
- "attribute": "translations",
36846
- "inheritedFrom": {
36847
- "name": "withTranslations",
36848
- "module": "src/utilities/with-translations.ts"
36849
- }
36850
- }
36851
- ],
36852
- "events": [
36853
- {
36854
- "name": "nldd-move",
36855
- "description": "An item moves: `{ item, fromColumn, fromIndex, toColumn, toIndex }`, where a column is its `value` (or its `text` without one)"
36856
- },
36857
- {
36858
- "name": "nldd-move-denied",
36859
- "description": "An item a `readonly` board does not move was dragged or moved with the keyboard: `{ item }`"
36860
- }
36861
- ],
36862
- "attributes": [
36863
- {
36864
- "name": "accessible-label",
36865
- "type": {
36866
- "text": "string"
36867
- },
36868
- "default": "''",
36869
- "fieldName": "accessibleLabel",
36870
- "description": "Accessible name of the board (default: \"Takenbord\")"
36871
- },
36872
- {
36873
- "name": "height",
36874
- "type": {
36875
- "text": "string"
36876
- },
36877
- "default": "''",
36878
- "fieldName": "height",
36879
- "description": "Fixed height as a CSS length (e.g. '480px'): every column takes it, and scrolls its items once they do not fit. To fill a page or a pane, set the height in your layout instead (flex, or `height: 100%`)"
36880
- },
36881
- {
36882
- "name": "readonly",
36883
- "type": {
36884
- "text": "boolean"
36885
- },
36886
- "default": "false",
36887
- "fieldName": "readonly",
36888
- "description": "Items cannot be dragged or moved with the keyboard; they still work, and `moveItem()` still moves"
36889
- },
36890
- {
36891
- "name": "translations",
36892
- "type": {
36893
- "text": "Partial<T>"
36894
- },
36895
- "default": "{}",
36896
- "fieldName": "translations",
36897
- "inheritedFrom": {
36898
- "name": "withTranslations",
36899
- "module": "src/utilities/with-translations.ts"
36900
- },
36901
- "description": "Override translation keys; unset keys fall back to Dutch"
36902
- }
36903
- ],
36904
- "mixins": [
36905
- {
36906
- "name": "withTranslations",
36907
- "module": "/src/utilities/with-translations.js"
36908
- }
36909
- ],
36910
- "superclass": {
36911
- "name": "LitElement",
36912
- "package": "lit"
36913
- },
36914
- "tagName": "nldd-task-board",
36915
- "customElement": true,
36916
- "slots": [
36917
- {
36918
- "name": "",
36919
- "description": "The columns: `nldd-task-board-column`"
36920
- }
36921
- ]
36922
- }
36923
- ],
36924
- "exports": [
36925
- {
36926
- "kind": "js",
36927
- "name": "NLDDTaskBoardColumn",
36928
- "declaration": {
36929
- "name": "NLDDTaskBoardColumn",
36930
- "module": "src/components/layout/task-board/task-board.ts"
36931
- }
36932
- },
36933
- {
36934
- "kind": "js",
36935
- "name": "NLDDTaskBoard",
36936
- "declaration": {
36937
- "name": "NLDDTaskBoard",
36938
- "module": "src/components/layout/task-board/task-board.ts"
36939
- }
36940
- },
36941
- {
36942
- "kind": "custom-element-definition",
36943
- "name": "nldd-task-board",
36944
- "declaration": {
36945
- "name": "NLDDTaskBoard",
36946
- "module": "src/components/layout/task-board/task-board.ts"
36947
- }
36948
- }
36949
- ]
36950
- },
36951
37744
  {
36952
37745
  "kind": "javascript-module",
36953
37746
  "path": "src/components/layout/window/window.ts",
@@ -45697,7 +46490,7 @@
45697
46490
  "declarations": [
45698
46491
  {
45699
46492
  "kind": "class",
45700
- "description": "A narrow, page-wide status bar (24px) with a deep background color per variant. Use it for persistent system state: an outage, planned maintenance, a draft view or a recording in progress. The bar deliberately shows no icon and supports text only. The text itself has to name the status (\"Storing: …\", \"Gepland onderhoud …\"), so the meaning does not follow from color alone (WCAG 1.4.1). Keep the text short: the bar shows one line and truncates with an ellipsis, certainly on narrower screens. For a long message with a lot of information only the essence belongs in the bar. Point to a separate page or sheet for the rest (through `href` or `button`, for instance), where the user can read on. The whole bar can be clickable: set `href` (renders an `<a>`) or `button` (renders a `<button>`; listen for the native `click` event). Without either the bar is static. On interaction a chevron appears as an affordance. One action per bar at most; several actions, or links in running text, belong in nldd-banner. The bar is the first thing on the screen: above nldd-top-navigation-bar or nldd-top-title-bar, across the whole app, also when a split view shows several panes. It reports the state of the service, not of one page, so it never sits inside the content or below a top bar. Below a top bar it says so in development. role and aria-live are set automatically from the variant: - critical → role=\"alert\" (implies aria-live=\"assertive\"; interrupts the screen reader) - others → role=\"status\" aria-live=\"polite\" Not overridable. If you need a quieter component, pick a different one. Use `critical` only for a real emergency: role=\"alert\" interrupts the screen reader on every change of the content, so do not put text in it that changes regularly (a counting-down timer, for example).",
46493
+ "description": "A narrow, page-wide status bar (24px) with a deep background color per variant. Use it for persistent system state: an outage, planned maintenance, a draft view or a recording in progress. The bar deliberately shows no icon and supports text only. The text itself has to name the status (\"Storing: …\", \"Gepland onderhoud …\"), so the meaning does not follow from color alone (WCAG 1.4.1). Keep the text short: the bar shows one line and truncates with an ellipsis, certainly on narrower screens. For a long message with a lot of information only the essence belongs in the bar. Point to a separate page or sheet for the rest (through `href` or `button`, for instance), where the user can read on. The whole bar can be clickable: set `href` (renders an `<a>`) or `button` (renders a `<button>`; listen for the native `click` event). Without either the bar is static. On interaction a chevron appears as an affordance. One action per bar at most; several actions, or links in running text, belong in nldd-banner. The bar is the first thing on the screen: above nldd-top-navigation-bar or nldd-top-title-bar, across the whole app, also when a split view shows several panes. It reports the state of the service, not of one page, so it never sits inside the content or below a top bar. Below a top bar it says so in development. At the top of the page, in Safari, its color carries on above the page when the page is pulled down, and the ribbon of an nldd-top-navigation-bar below it then starts under the bar, as it does at rest. role and aria-live are set automatically from the variant: - critical → role=\"alert\" (implies aria-live=\"assertive\"; interrupts the screen reader) - others → role=\"status\" aria-live=\"polite\" Not overridable. If you need a quieter component, pick a different one. Use `critical` only for a real emergency: role=\"alert\" interrupts the screen reader on every change of the content, so do not put text in it that changes regularly (a counting-down timer, for example).",
45701
46494
  "name": "NLDDStatusBar",
45702
46495
  "members": [
45703
46496
  {
@@ -45978,7 +46771,7 @@
45978
46771
  },
45979
46772
  {
45980
46773
  "kind": "class",
45981
- "description": "Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status=\"current\"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step 1 is current. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status=\"past\"` or `status=\"future\"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-step-cell`, so a flow reads in one vocabulary whether it runs across or down. Horizontal only. For steps under each other, build an `nldd-list` with an `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. Below the sm breakpoint (a container query, so measured on the component itself rather than on the viewport) it folds into one line of text plus a segmented bar. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. A step that is a link or a button is out of the tab order then: Tab would land on something you cannot see (WCAG 2.4.7). Accessibility: a `nav` with a label, holding a `role=\"list\"` with a `role=\"listitem\"` per step. The current step gets `aria-current=\"step\"`, the only notion WAI-ARIA has for this. \"Done\" and \"still to do\" do not exist as ARIA tokens and travel along as visually hidden text instead.",
46774
+ "description": "Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status=\"current\"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step 1 is current. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status=\"past\"` or `status=\"future\"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-step-cell`, so a flow reads in one vocabulary whether it runs across or down. Horizontal only, for 3 to 5 steps and 7 at most: each step needs room for its label, and with more of them you count instead of seeing at a glance how far you are. For more steps, or steps under each other, build an `nldd-list` with an `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. When the bar is no wider than the sm breakpoint, or than 120px per step, whichever is wider (a container query, so measured on the component itself rather than on the viewport), it folds into one line of text plus a segmented bar. A label that is too long for its step breaks at a syllable. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. A step that is a link or a button is out of the tab order then: Tab would land on something you cannot see (WCAG 2.4.7). Accessibility: a `nav` with a label, holding a `role=\"list\"` with a `role=\"listitem\"` per step. The current step gets `aria-current=\"step\"`, the only notion WAI-ARIA has for this. \"Done\" and \"still to do\" do not exist as ARIA tokens and travel along as visually hidden text instead.",
45982
46775
  "name": "NLDDStepBar",
45983
46776
  "members": [
45984
46777
  {
@@ -46959,6 +47752,149 @@
46959
47752
  }
46960
47753
  ]
46961
47754
  },
47755
+ {
47756
+ "kind": "javascript-module",
47757
+ "path": "src/utilities/custom-font-size.ts",
47758
+ "declarations": [
47759
+ {
47760
+ "kind": "variable",
47761
+ "name": "BREAKPOINTS",
47762
+ "type": {
47763
+ "text": "readonly Breakpoint[]"
47764
+ },
47765
+ "default": "['sm', 'md', 'lg']"
47766
+ },
47767
+ {
47768
+ "kind": "variable",
47769
+ "name": "DISPLAY_1_FONT_SIZE",
47770
+ "type": {
47771
+ "text": "Record<Breakpoint, string>"
47772
+ },
47773
+ "default": "{ sm: 'var(--primitives-font-size-700)', md: 'var(--primitives-font-size-800)', lg: 'var(--primitives-font-size-1000)', }",
47774
+ "description": "The font size of display size 1 per breakpoint: the floor of a custom size on nldd-title and nldd-text."
47775
+ },
47776
+ {
47777
+ "kind": "function",
47778
+ "name": "isFontSize",
47779
+ "return": {
47780
+ "type": {
47781
+ "text": "boolean"
47782
+ }
47783
+ },
47784
+ "parameters": [
47785
+ {
47786
+ "name": "value",
47787
+ "type": {
47788
+ "text": "string"
47789
+ }
47790
+ }
47791
+ ],
47792
+ "description": "A length font-size takes. A keyword cannot go inside the max() that keeps the floor, so it would void the whole font."
47793
+ },
47794
+ {
47795
+ "kind": "function",
47796
+ "name": "applyCustomFontSizes",
47797
+ "return": {
47798
+ "type": {
47799
+ "text": "Partial<Record<Breakpoint, string>>"
47800
+ }
47801
+ },
47802
+ "parameters": [
47803
+ {
47804
+ "name": "host",
47805
+ "type": {
47806
+ "text": "HTMLElement"
47807
+ }
47808
+ },
47809
+ {
47810
+ "name": "prefix",
47811
+ "type": {
47812
+ "text": "string"
47813
+ }
47814
+ },
47815
+ {
47816
+ "name": "own",
47817
+ "type": {
47818
+ "text": "Record<Breakpoint, string>"
47819
+ }
47820
+ }
47821
+ ],
47822
+ "description": "Writes the valid custom sizes onto the host and returns them. A breakpoint\nwithout a valid value keeps the size from the scale. Sets the\n`invalid-custom-size` state when a value is given that is not a length.\nCall it from willUpdate(), so the first paint already has the size."
47823
+ },
47824
+ {
47825
+ "kind": "function",
47826
+ "name": "checkCustomFontSizeFloor",
47827
+ "return": {
47828
+ "type": {
47829
+ "text": "void"
47830
+ }
47831
+ },
47832
+ "parameters": [
47833
+ {
47834
+ "name": "host",
47835
+ "type": {
47836
+ "text": "HTMLElement"
47837
+ }
47838
+ },
47839
+ {
47840
+ "name": "sizes",
47841
+ "type": {
47842
+ "text": "Partial<Record<Breakpoint, string>>"
47843
+ }
47844
+ },
47845
+ {
47846
+ "name": "floors",
47847
+ "type": {
47848
+ "text": "Record<Breakpoint, string>"
47849
+ }
47850
+ }
47851
+ ],
47852
+ "description": "DEV-only: sets the `custom-size-below-floor` state when a fixed custom size\nis smaller than the floor at its breakpoint, which then shows instead."
47853
+ }
47854
+ ],
47855
+ "exports": [
47856
+ {
47857
+ "kind": "js",
47858
+ "name": "BREAKPOINTS",
47859
+ "declaration": {
47860
+ "name": "BREAKPOINTS",
47861
+ "module": "src/utilities/custom-font-size.ts"
47862
+ }
47863
+ },
47864
+ {
47865
+ "kind": "js",
47866
+ "name": "DISPLAY_1_FONT_SIZE",
47867
+ "declaration": {
47868
+ "name": "DISPLAY_1_FONT_SIZE",
47869
+ "module": "src/utilities/custom-font-size.ts"
47870
+ }
47871
+ },
47872
+ {
47873
+ "kind": "js",
47874
+ "name": "isFontSize",
47875
+ "declaration": {
47876
+ "name": "isFontSize",
47877
+ "module": "src/utilities/custom-font-size.ts"
47878
+ }
47879
+ },
47880
+ {
47881
+ "kind": "js",
47882
+ "name": "applyCustomFontSizes",
47883
+ "declaration": {
47884
+ "name": "applyCustomFontSizes",
47885
+ "module": "src/utilities/custom-font-size.ts"
47886
+ }
47887
+ },
47888
+ {
47889
+ "kind": "js",
47890
+ "name": "checkCustomFontSizeFloor",
47891
+ "declaration": {
47892
+ "name": "checkCustomFontSizeFloor",
47893
+ "module": "src/utilities/custom-font-size.ts"
47894
+ }
47895
+ }
47896
+ ]
47897
+ },
46962
47898
  {
46963
47899
  "kind": "javascript-module",
46964
47900
  "path": "src/utilities/defer-focus.ts",
@@ -49745,6 +50681,31 @@
49745
50681
  }
49746
50682
  ]
49747
50683
  },
50684
+ {
50685
+ "kind": "javascript-module",
50686
+ "path": "src/utilities/status-bar-change.ts",
50687
+ "declarations": [
50688
+ {
50689
+ "kind": "variable",
50690
+ "name": "STATUS_BAR_CHANGE",
50691
+ "type": {
50692
+ "text": "string"
50693
+ },
50694
+ "default": "'nldd-status-bar-change'",
50695
+ "description": "Fired on window when an nldd-status-bar connects or disconnects, so an\nnldd-top-navigation-bar measures again where its ribbon starts. In a module\nof its own, so the navigation bar can listen without bundling the status bar."
50696
+ }
50697
+ ],
50698
+ "exports": [
50699
+ {
50700
+ "kind": "js",
50701
+ "name": "STATUS_BAR_CHANGE",
50702
+ "declaration": {
50703
+ "name": "STATUS_BAR_CHANGE",
50704
+ "module": "src/utilities/status-bar-change.ts"
50705
+ }
50706
+ }
50707
+ ]
50708
+ },
49748
50709
  {
49749
50710
  "kind": "javascript-module",
49750
50711
  "path": "src/utilities/tab-order.ts",