@nldd/design-system 0.11.0 → 0.13.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 (268) hide show
  1. package/custom-elements.json +2726 -617
  2. package/dist/components/actions/button-group/button-group.d.ts +4 -3
  3. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  4. package/dist/components/actions/button-group/button-group.js +4 -3
  5. package/dist/components/actions/button-group/button-group.js.map +1 -1
  6. package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
  7. package/dist/components/actions/button-group/button-group.styles.js +6 -6
  8. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  9. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  10. package/dist/components/actions/menu/menu.js +3 -0
  11. package/dist/components/actions/menu/menu.js.map +1 -1
  12. package/dist/components/components.js +21704 -19266
  13. package/dist/components/content/avatar/avatar.d.ts +2 -1
  14. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  15. package/dist/components/content/avatar/avatar.js +12 -1
  16. package/dist/components/content/avatar/avatar.js.map +1 -1
  17. package/dist/components/content/avatar-group/avatar-group.d.ts +30 -2
  18. package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
  19. package/dist/components/content/avatar-group/avatar-group.i18n.d.ts +1 -0
  20. package/dist/components/content/avatar-group/avatar-group.i18n.d.ts.map +1 -1
  21. package/dist/components/content/avatar-group/avatar-group.i18n.js +1 -0
  22. package/dist/components/content/avatar-group/avatar-group.i18n.js.map +1 -1
  23. package/dist/components/content/avatar-group/avatar-group.js +96 -7
  24. package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
  25. package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
  26. package/dist/components/content/avatar-group/avatar-group.styles.js +35 -1
  27. package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
  28. package/dist/components/content/avatar-group/avatar-group.template.d.ts +1 -0
  29. package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
  30. package/dist/components/content/avatar-group/avatar-group.template.js +52 -29
  31. package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
  32. package/dist/components/content/code-viewer/code-viewer.d.ts +14 -1
  33. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  34. package/dist/components/content/code-viewer/code-viewer.diff.d.ts +40 -0
  35. package/dist/components/content/code-viewer/code-viewer.diff.d.ts.map +1 -0
  36. package/dist/components/content/code-viewer/code-viewer.diff.js +261 -0
  37. package/dist/components/content/code-viewer/code-viewer.diff.js.map +1 -0
  38. package/dist/components/content/code-viewer/code-viewer.i18n.d.ts +5 -0
  39. package/dist/components/content/code-viewer/code-viewer.i18n.d.ts.map +1 -1
  40. package/dist/components/content/code-viewer/code-viewer.i18n.js +9 -0
  41. package/dist/components/content/code-viewer/code-viewer.i18n.js.map +1 -1
  42. package/dist/components/content/code-viewer/code-viewer.js +98 -6
  43. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  44. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  45. package/dist/components/content/code-viewer/code-viewer.styles.js +180 -14
  46. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  47. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  48. package/dist/components/content/code-viewer/code-viewer.template.js +5 -4
  49. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  50. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  51. package/dist/components/content/icon/icon-aliases.js +32 -4
  52. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  53. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  54. package/dist/components/content/icon/icon-gallery-status.js +19 -0
  55. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  56. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  57. package/dist/components/content/icon/icon-registry.js +19 -4
  58. package/dist/components/content/icon/icon-registry.js.map +1 -1
  59. package/dist/components/content/rich-text/rich-text.d.ts +10 -0
  60. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  61. package/dist/components/content/rich-text/rich-text.js +10 -0
  62. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  63. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  64. package/dist/components/content/tooltip/tooltip.js +2 -0
  65. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  66. package/dist/components/{dist-Bo5Jeyfn.js → dist-B5E3q-ea.js} +2 -1
  67. package/dist/components/{dist-DbNhCpS5.js → dist-BFw_yEMS.js} +2 -1
  68. package/dist/components/{dist-DnZmcpbQ.js → dist-BNLAXAyO.js} +2 -1
  69. package/dist/components/{dist-DkqAbJH8.js → dist-BOVSVPSz.js} +1 -1
  70. package/dist/components/{dist-Ch3gNAuT.js → dist-BPB3rWnd.js} +2 -1
  71. package/dist/components/{dist-Bud_7w5g.js → dist-BWlUmyq3.js} +34 -2869
  72. package/dist/components/dist-CC8oiVtm.js +366 -0
  73. package/dist/components/dist-COKR0tYU.js +2860 -0
  74. package/dist/components/{dist-CaxHkqR2.js → dist-Co-tsc9S.js} +4 -3
  75. package/dist/components/{dist-iC2RTM0V.js → dist-D_9ZyZ5v.js} +3 -2
  76. package/dist/components/{dist-BB5mlo7D.js → dist-Dn9pjiud.js} +3 -2
  77. package/dist/components/{dist-B2QcygzG.js → dist-Dz28se9B.js} +2 -1
  78. package/dist/components/{dist-CA0yDFIt.js → dist-IPm8ilWf.js} +3 -2
  79. package/dist/components/{icon-zNX9A6d3.js → icon-BJHKWhY5.js} +39 -8
  80. package/dist/components/{icon-button-Cntrg4_E.js → icon-button-DhBIq6lN.js} +75 -2
  81. package/dist/components/inputs/code-editor/code-editor.d.ts +4 -54
  82. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  83. package/dist/components/inputs/code-editor/code-editor.js +22 -262
  84. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  85. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  86. package/dist/components/inputs/code-editor/code-editor.styles.js +43 -6
  87. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  88. package/dist/components/inputs/date-picker/date-picker.d.ts +2 -2
  89. package/dist/components/inputs/date-picker/date-picker.i18n.d.ts +1 -1
  90. package/dist/components/inputs/date-picker/date-picker.i18n.js +1 -1
  91. package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
  92. package/dist/components/inputs/date-picker/date-picker.template.js +1 -1
  93. package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
  94. package/dist/components/inputs/file-field/file-field.d.ts +86 -10
  95. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  96. package/dist/components/inputs/file-field/file-field.drop.d.ts +34 -0
  97. package/dist/components/inputs/file-field/file-field.drop.d.ts.map +1 -0
  98. package/dist/components/inputs/file-field/file-field.drop.js +176 -0
  99. package/dist/components/inputs/file-field/file-field.drop.js.map +1 -0
  100. package/dist/components/inputs/file-field/file-field.i18n.d.ts +20 -1
  101. package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
  102. package/dist/components/inputs/file-field/file-field.i18n.js +20 -1
  103. package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
  104. package/dist/components/inputs/file-field/file-field.js +283 -15
  105. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  106. package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
  107. package/dist/components/inputs/file-field/file-field.styles.js +245 -10
  108. package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
  109. package/dist/components/inputs/file-field/file-field.template.d.ts +1 -0
  110. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  111. package/dist/components/inputs/file-field/file-field.template.js +167 -28
  112. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  113. package/dist/components/inputs/file-field/file-field.truncate.d.ts +22 -0
  114. package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -0
  115. package/dist/components/inputs/file-field/file-field.truncate.js +62 -0
  116. package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -0
  117. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts.map +1 -1
  118. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +9 -7
  119. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js.map +1 -1
  120. package/dist/components/inputs/text-editor/text-editor.annotations.js +1 -1
  121. package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
  122. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +16 -0
  123. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -0
  124. package/dist/components/inputs/text-editor/text-editor.clipboard.js +50 -0
  125. package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -0
  126. package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts +10 -0
  127. package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -0
  128. package/dist/components/inputs/text-editor/text-editor.code-copy.js +141 -0
  129. package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -0
  130. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
  131. package/dist/components/inputs/text-editor/text-editor.commands.js +31 -58
  132. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
  133. package/dist/components/inputs/text-editor/text-editor.d.ts +17 -64
  134. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  135. package/dist/components/inputs/text-editor/text-editor.drag.d.ts.map +1 -1
  136. package/dist/components/inputs/text-editor/text-editor.drag.js +2 -1
  137. package/dist/components/inputs/text-editor/text-editor.drag.js.map +1 -1
  138. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts +3 -0
  139. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts.map +1 -0
  140. package/dist/components/inputs/text-editor/text-editor.focus-selection.js +55 -0
  141. package/dist/components/inputs/text-editor/text-editor.focus-selection.js.map +1 -0
  142. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts +6 -0
  143. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -0
  144. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +305 -0
  145. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -0
  146. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +5 -0
  147. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
  148. package/dist/components/inputs/text-editor/text-editor.i18n.js +7 -0
  149. package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
  150. package/dist/components/inputs/text-editor/text-editor.js +126 -315
  151. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  152. package/dist/components/inputs/text-editor/text-editor.keymap.d.ts +6 -0
  153. package/dist/components/inputs/text-editor/text-editor.keymap.d.ts.map +1 -0
  154. package/dist/components/inputs/text-editor/text-editor.keymap.js +38 -0
  155. package/dist/components/inputs/text-editor/text-editor.keymap.js.map +1 -0
  156. package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
  157. package/dist/components/inputs/text-editor/text-editor.links.js +11 -9
  158. package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
  159. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +1 -17
  160. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  161. package/dist/components/inputs/text-editor/text-editor.markdown.js +32 -188
  162. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  163. package/dist/components/inputs/text-editor/text-editor.mention.d.ts +52 -0
  164. package/dist/components/inputs/text-editor/text-editor.mention.d.ts.map +1 -0
  165. package/dist/components/inputs/text-editor/text-editor.mention.js +186 -0
  166. package/dist/components/inputs/text-editor/text-editor.mention.js.map +1 -0
  167. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +0 -16
  168. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
  169. package/dist/components/inputs/text-editor/text-editor.mentions.js +1 -41
  170. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  171. package/dist/components/inputs/text-editor/text-editor.selection.d.ts +13 -0
  172. package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -0
  173. package/dist/components/inputs/text-editor/text-editor.selection.js +72 -0
  174. package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -0
  175. package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts.map +1 -1
  176. package/dist/components/inputs/text-editor/text-editor.spellcheck.js +4 -6
  177. package/dist/components/inputs/text-editor/text-editor.spellcheck.js.map +1 -1
  178. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  179. package/dist/components/inputs/text-editor/text-editor.styles.js +301 -60
  180. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  181. package/dist/components/inputs/text-editor/text-editor.syntax.d.ts +22 -0
  182. package/dist/components/inputs/text-editor/text-editor.syntax.d.ts.map +1 -1
  183. package/dist/components/inputs/text-editor/text-editor.syntax.js +44 -0
  184. package/dist/components/inputs/text-editor/text-editor.syntax.js.map +1 -1
  185. package/dist/components/inputs/text-editor/text-editor.tasks.d.ts +17 -0
  186. package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -0
  187. package/dist/components/inputs/text-editor/text-editor.tasks.js +109 -0
  188. package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -0
  189. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -1
  190. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +61 -0
  191. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
  192. package/dist/components/layout/page-sections/hero/hero.d.ts +1 -1
  193. package/dist/components/layout/page-sections/hero/hero.js +1 -1
  194. package/dist/components/layout/popover/popover.d.ts +6 -0
  195. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  196. package/dist/components/layout/popover/popover.js +16 -0
  197. package/dist/components/layout/popover/popover.js.map +1 -1
  198. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  199. package/dist/components/layout/popover/popover.styles.js +13 -0
  200. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  201. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  202. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +5 -0
  203. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  204. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  205. package/dist/components/navigation/menu-bar/menu-bar.js +2 -0
  206. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  207. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  208. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +3 -0
  209. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  210. package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
  211. package/dist/components/status-and-feedback/banner/banner.js +2 -2
  212. package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
  213. package/dist/components/status-and-feedback/notification/notification.d.ts +3 -2
  214. package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
  215. package/dist/components/status-and-feedback/notification/notification.js +9 -4
  216. package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
  217. package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
  218. package/dist/components/status-and-feedback/notification/notification.styles.js +18 -0
  219. package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
  220. package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
  221. package/dist/components/status-and-feedback/notification/notifications-area.js +14 -0
  222. package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
  223. package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts +1 -1
  224. package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js +1 -1
  225. package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js.map +1 -1
  226. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
  227. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  228. package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts +1 -1
  229. package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js +1 -1
  230. package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js.map +1 -1
  231. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
  232. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  233. package/dist/css/rich-text.css +61 -1
  234. package/dist/css/themes/donkergeel.css +12 -3
  235. package/dist/css/themes/geel.css +12 -3
  236. package/dist/css/themes.css +24 -6
  237. package/dist/css/variables.css +16 -10
  238. package/dist/nldd.min.js +2217 -1329
  239. package/dist/translations/en-US.d.ts.map +1 -1
  240. package/dist/translations/en-US.js +34 -4
  241. package/dist/translations/en-US.js.map +1 -1
  242. package/dist/translations/fy.d.ts.map +1 -1
  243. package/dist/translations/fy.js +29 -4
  244. package/dist/translations/fy.js.map +1 -1
  245. package/dist/translations/nl.generated.d.ts +34 -4
  246. package/dist/translations/nl.generated.d.ts.map +1 -1
  247. package/dist/translations/pap-AW.d.ts.map +1 -1
  248. package/dist/translations/pap-AW.js +29 -4
  249. package/dist/translations/pap-AW.js.map +1 -1
  250. package/dist/translations/pap-CW.d.ts.map +1 -1
  251. package/dist/translations/pap-CW.js +29 -4
  252. package/dist/translations/pap-CW.js.map +1 -1
  253. package/dist/types/vue.d.ts +43 -39
  254. package/dist/utilities/carried-context.d.ts +20 -0
  255. package/dist/utilities/carried-context.d.ts.map +1 -0
  256. package/dist/utilities/carried-context.js +76 -0
  257. package/dist/utilities/carried-context.js.map +1 -0
  258. package/dist/utilities/codemirror/codemirror-input.d.ts +90 -0
  259. package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -0
  260. package/dist/utilities/codemirror/codemirror-input.js +250 -0
  261. package/dist/utilities/codemirror/codemirror-input.js.map +1 -0
  262. package/dist/utilities/codemirror/languages.d.ts +5 -1
  263. package/dist/utilities/codemirror/languages.d.ts.map +1 -1
  264. package/dist/utilities/codemirror/languages.js +21 -1
  265. package/dist/utilities/codemirror/languages.js.map +1 -1
  266. package/dist/utilities/dismiss-from-title-bar.d.ts +1 -1
  267. package/dist/utilities/dismiss-from-title-bar.js +1 -1
  268. package/package.json +2 -1
@@ -129,7 +129,7 @@
129
129
  "declarations": [
130
130
  {
131
131
  "kind": "class",
132
- "description": "A container for grouping related buttons together, in a row or stacked. `auto`, the default, is a row on a container wide enough for one and a stack over the full width below the sm breakpoint, where two labels beside each other leave no room for either. The group is its own container, so it follows the width it was given rather than the width of the window: the same group is a row in a page and a stack in a sheet beside it. Being a container has one consequence to know: the width has to come from the parent, since a container may not size itself from what is inside it. In a parent that shrink-wraps its content (an inline-flex box, a float, a table cell, a flex item at `width: auto`) the group measures zero and its buttons are invisible. It says so once in development. Give the group or that parent a width. A stack fills the width with its buttons, except an `nldd-icon-button`, which keeps its own size: a bar with a single glyph in the middle is not a bigger target, only a wider one.",
132
+ "description": "A container for grouping related buttons together, in a row or stacked. `auto`, the default, is a row, and a stack over the full width in a container of 30rem (480px) or less, the width of a phone, where two labels beside each other leave no room for either. A card or a dialog between 480px and the sm breakpoint keeps its row. The group is its own container, so it follows the width it was given rather than the width of the window: the same group is a row in a page and a stack in a sheet beside it. Being a container has one consequence to know: the width has to come from the parent, since a container may not size itself from what is inside it. In a parent that shrink-wraps its content (an inline-flex box, a float, a table cell, a flex item at `width: auto`) the group measures zero and its buttons are invisible. It says so once in development. Give the group or that parent a width. A stack fills the width with its buttons, except an `nldd-icon-button`, which keeps its own size: a bar with a single glyph in the middle is not a bigger target, only a wider one.",
133
133
  "name": "NLDDButtonGroup",
134
134
  "members": [
135
135
  {
@@ -3101,7 +3101,7 @@
3101
3101
  "declarations": [
3102
3102
  {
3103
3103
  "kind": "class",
3104
- "description": "Shows several avatars as one group: they overlap, and each one gets a ring in the surface color so they stay apart where they meet. The ring uses the same mechanism as the badge, so on a colored surface you hand the color over through `--context-parent-background-color`. Slot `nldd-avatar` elements, not bare `img`. An avatar already knows what to do with a dead image, when to fall back to initials, and how to show its name as a tooltip; a loose image would have to reproduce all of that and cannot do the last one. Set `decorative` when the names already stand beside the group as text; otherwise give every avatar a name, because the group itself describes nobody. The size applies to the whole group: it is imposed on the avatars, a slotted `img` included. That keeps the row on one line whatever a consumer hands over.",
3104
+ "description": "Shows several avatars as one group: they overlap, and each one gets a ring in the surface color so they stay apart where they meet. The ring uses the same mechanism as the badge, so on a colored surface you hand the color over through `--context-parent-background-color`. Slot `nldd-avatar` elements, not bare `img`. An avatar already knows what to do with a dead image, when to fall back to initials, and how to show its name as a tooltip; a loose image would have to reproduce all of that and cannot do the last one. Set `decorative` when the names already stand beside the group as text; otherwise give every avatar a name, because the group itself describes nobody. The size applies to the whole group: it is imposed on the avatars, a slotted `img` included. That keeps the row on one line whatever a consumer hands over. Avatars that are links or buttons need size 32 or larger: they overlap, so each keeps only part of its width as a target (WCAG 2.5.8). On sm the list behind the button is a bottom sheet with a title bar, which names the group (its `accessible-label`) and closes it. The row never overflows its container. Where there is no room for every avatar, the group shows as many as fit and puts the rest behind the \"+N\" button, as `max` does; `max` is then the most it shows, not a fixed count.",
3105
3105
  "name": "NLDDAvatarGroup",
3106
3106
  "members": [
3107
3107
  {
@@ -3164,7 +3164,7 @@
3164
3164
  },
3165
3165
  "default": "undefined",
3166
3166
  "fieldName": "max",
3167
- "description": "Shows at most this many avatars; the rest go behind a \"+N\" button that opens them as a list of names"
3167
+ "description": "Shows at most this many avatars; the rest go behind a \"+N\" button that opens them as a list of names. A longer number is set smaller, and where it no longer fits the disc the button shows an ellipsis with the count in a tooltip (a number shows from size 24 with one digit, 40 with two, 56 with three and 80 with four)"
3168
3168
  },
3169
3169
  {
3170
3170
  "name": "accessible-label",
@@ -3559,7 +3559,7 @@
3559
3559
  "text": "string"
3560
3560
  },
3561
3561
  "default": "''",
3562
- "description": "Makes the avatar a link to this URL; the shape itself becomes the link, so the hit area and the focus ring follow it",
3562
+ "description": "Makes the avatar a link to this URL; the shape itself becomes the link, so the hit area and the focus ring follow it. As a link or a button the avatar needs size 24 or larger (WCAG 2.5.8)",
3563
3563
  "fieldName": "href"
3564
3564
  },
3565
3565
  {
@@ -3712,13 +3712,131 @@
3712
3712
  }
3713
3713
  ]
3714
3714
  },
3715
+ {
3716
+ "kind": "javascript-module",
3717
+ "path": "src/components/content/code-viewer/code-viewer.diff.ts",
3718
+ "declarations": [
3719
+ {
3720
+ "kind": "function",
3721
+ "name": "parseUnifiedDiff",
3722
+ "return": {
3723
+ "type": {
3724
+ "text": "ParsedDiff"
3725
+ }
3726
+ },
3727
+ "parameters": [
3728
+ {
3729
+ "name": "raw",
3730
+ "type": {
3731
+ "text": "string"
3732
+ }
3733
+ }
3734
+ ],
3735
+ "description": "Parse a unified diff. File headers (`diff --git`, `index`, `---`, `+++` and\nthe like) are left out: the file name belongs to the page around the viewer.\nSo is `\`. A hunk ends where its `@@` header says\nit does, so the headers of a next file in a multi-file diff are not taken for\ncode; their name is lost, though, so give each file a viewer of its own.\nWithout any `@@` header, every line after the file header is code and the\nnumbers start at 1."
3736
+ },
3737
+ {
3738
+ "kind": "function",
3739
+ "name": "pairChangedLines",
3740
+ "return": {
3741
+ "type": {
3742
+ "text": "Array<[number, number]>"
3743
+ }
3744
+ },
3745
+ "parameters": [
3746
+ {
3747
+ "name": "lines",
3748
+ "type": {
3749
+ "text": "DiffLine[]"
3750
+ }
3751
+ }
3752
+ ],
3753
+ "description": "The removed and added lines that are one change: within a hunk, a run of\nremoved lines directly followed by a run of added lines, paired in order.\nIndices are into `lines`."
3754
+ },
3755
+ {
3756
+ "kind": "function",
3757
+ "name": "diffExtensions",
3758
+ "return": {
3759
+ "type": {
3760
+ "text": "Extension"
3761
+ }
3762
+ },
3763
+ "parameters": [
3764
+ {
3765
+ "name": "parsed",
3766
+ "type": {
3767
+ "text": "ParsedDiff"
3768
+ }
3769
+ },
3770
+ {
3771
+ "name": "labels",
3772
+ "type": {
3773
+ "text": "DiffLabels"
3774
+ }
3775
+ }
3776
+ ],
3777
+ "description": "Line colors, gutters, hunk headers and line labels for a parsed diff."
3778
+ },
3779
+ {
3780
+ "kind": "function",
3781
+ "name": "wordExtensions",
3782
+ "return": {
3783
+ "type": {
3784
+ "text": "Promise<Extension>"
3785
+ }
3786
+ },
3787
+ "parameters": [
3788
+ {
3789
+ "name": "parsed",
3790
+ "type": {
3791
+ "text": "ParsedDiff"
3792
+ }
3793
+ }
3794
+ ],
3795
+ "description": "Marks on the words that differ between each paired removed and added line.\nLoads"
3796
+ }
3797
+ ],
3798
+ "exports": [
3799
+ {
3800
+ "kind": "js",
3801
+ "name": "parseUnifiedDiff",
3802
+ "declaration": {
3803
+ "name": "parseUnifiedDiff",
3804
+ "module": "src/components/content/code-viewer/code-viewer.diff.ts"
3805
+ }
3806
+ },
3807
+ {
3808
+ "kind": "js",
3809
+ "name": "pairChangedLines",
3810
+ "declaration": {
3811
+ "name": "pairChangedLines",
3812
+ "module": "src/components/content/code-viewer/code-viewer.diff.ts"
3813
+ }
3814
+ },
3815
+ {
3816
+ "kind": "js",
3817
+ "name": "diffExtensions",
3818
+ "declaration": {
3819
+ "name": "diffExtensions",
3820
+ "module": "src/components/content/code-viewer/code-viewer.diff.ts"
3821
+ }
3822
+ },
3823
+ {
3824
+ "kind": "js",
3825
+ "name": "wordExtensions",
3826
+ "declaration": {
3827
+ "name": "wordExtensions",
3828
+ "module": "src/components/content/code-viewer/code-viewer.diff.ts"
3829
+ }
3830
+ }
3831
+ ]
3832
+ },
3715
3833
  {
3716
3834
  "kind": "javascript-module",
3717
3835
  "path": "src/components/content/code-viewer/code-viewer.ts",
3718
3836
  "declarations": [
3719
3837
  {
3720
3838
  "kind": "class",
3721
- "description": "A read-only block of code/text built on a non-editable CodeMirror 6 view. Visually pairs with nldd-code-editor (same engine, same token palette). Whitespace is preserved; long lines scroll horizontally by default. Set `wrap` to break long lines onto the next visual line. The viewer grows with its content. Set `max-height` to show a long file in a frame of its own: the block grows up to that height and scrolls beyond it. A scroller that overflows, in either direction, is a tab stop with a role and a name, so the keyboard reaches what a pointer can scroll to. Set `language` to one of the supported grammars (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python) to highlight the content. Without `language` the content renders plain. Grammars are loaded lazily on first use, so a page that never sets `language` ships zero grammar code. Token colors are the `--semantics-code-syntax-*` custom properties (shared with the editor via the CodeMirror highlight style). Override them per-instance to swap the theme.",
3839
+ "description": "A read-only block of code/text built on a non-editable CodeMirror 6 view. Visually pairs with nldd-code-editor (same engine, same token palette). Whitespace is preserved; long lines scroll horizontally by default. Set `wrap` to break long lines onto the next visual line. The viewer grows with its content. Set `max-height` to show a long file in a frame of its own: the block grows up to that height and scrolls beyond it. A scroller that overflows, in either direction, is a tab stop with a role and a name, so the keyboard reaches what a pointer can scroll to. Set `language` to one of the supported grammars (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python) to highlight the content. Without `language` the content renders plain. Grammars are loaded lazily on first use, so a page that never sets `language` ships zero grammar code. Set `diff` when the content is a unified diff, as git and pull request tools hand it out. The viewer shows the code it changes: an added line green and a removed line red, a column with the old and one with the new line number, a column with the `+` or `−`, and the `@@` header of each hunk between them. Within a removed line that is directly followed by an added one, the words that differ are marked, unless more than half of the line changed. File headers (`diff --git`, `---`, `+++`) are left out: name the file in the page around the viewer, and give each file of a multi-file diff a viewer of its own. `language` still highlights the code. A screen reader hears a summary first (\"2 regels toegevoegd, 1 regel verwijderd\") and \"Toegevoegd\" or \"Verwijderd\" with the line number before each changed line. A selection copies the code; the copy button copies the diff. Token colors are the `--semantics-code-syntax-*` custom properties (shared with the editor via the CodeMirror highlight style). Override them per-instance to swap the theme.",
3722
3840
  "name": "NLDDCodeViewer",
3723
3841
  "members": [
3724
3842
  {
@@ -3742,6 +3860,17 @@
3742
3860
  "attribute": "language",
3743
3861
  "reflects": true
3744
3862
  },
3863
+ {
3864
+ "kind": "field",
3865
+ "name": "diff",
3866
+ "type": {
3867
+ "text": "boolean"
3868
+ },
3869
+ "default": "false",
3870
+ "description": "The content is a unified diff.",
3871
+ "attribute": "diff",
3872
+ "reflects": true
3873
+ },
3745
3874
  {
3746
3875
  "kind": "field",
3747
3876
  "name": "noCopy",
@@ -3830,6 +3959,15 @@
3830
3959
  "fieldName": "language",
3831
3960
  "description": "Grammar to highlight with. Empty disables highlighting."
3832
3961
  },
3962
+ {
3963
+ "name": "diff",
3964
+ "type": {
3965
+ "text": "boolean"
3966
+ },
3967
+ "default": "false",
3968
+ "description": "The content is a unified diff: shown with line colors, old and new line numbers, and the changed words marked.",
3969
+ "fieldName": "diff"
3970
+ },
3833
3971
  {
3834
3972
  "name": "no-copy",
3835
3973
  "type": {
@@ -4909,7 +5047,7 @@
4909
5047
  "declarations": [
4910
5048
  {
4911
5049
  "kind": "class",
4912
- "description": "A container for rich text content that automatically applies responsive typography. Uses no shadow DOM so styles apply to all nested elements. Import nldd-rich-text.css globally in your application. The rich text lays out its direct children in a grid: the vertical rhythm between headings, paragraphs and lists, and the width zones below, apply to those children only. A single wrapper `div` without `class`, `style`, `role` or `data-rich-text-width`, as a markdown renderer or a component root produces it, is passed through with `display: contents`, so its children count as direct. Any other wrapper becomes a single grid item, and the paragraphs inside it lose their spacing. The headings keep one size on every width, the one they have on a phone. A heading in running text sits in a column as wide as a line of reading, on any screen, so its relation to the text beside it does not change and it has no reason to grow. Growing, an h2 on a wide screen was more than twice the size of the text, and an article broke into blocks at every heading. Page and section titles do grow: use nldd-title for those. Children are placed in three zones. A child belongs to the text unless it is listed, so it reads at the `main` size and is never wider than a line: text (headings, paragraphs, lists, blockquote, div/section) and every component that is not named below, such as nldd-box, nldd-card, nldd-banner, nldd-list and a button, and code (pre, nldd-code-viewer), which scrolls inside its block when a line is longer. Media, tables and a step bar (img, figure, video, iframe, table, nldd-table, nldd-image, nldd-step-bar) get the `wide` accent. What needs the room gets the `full` span: hr, nldd-collection and nldd-container. A child takes the room it needs inside its zone (`justify-self: start`), so the room is available without being forced. Overridable per child with `data-rich-text-width=\"main\" | \"wide\" | \"full\"`. In the left-aligned layout, wide and full read as a bleed to the right; with `centered` they are symmetrical.",
5050
+ "description": "A container for rich text content that automatically applies responsive typography. Uses no shadow DOM so styles apply to all nested elements. Import nldd-rich-text.css globally in your application. The rich text lays out its direct children in a grid: the vertical rhythm between headings, paragraphs and lists, and the width zones below, apply to those children only. A single wrapper `div` without `class`, `style`, `role` or `data-rich-text-width`, as a markdown renderer or a component root produces it, is passed through with `display: contents`, so its children count as direct. Any other wrapper becomes a single grid item, and the paragraphs inside it lose their spacing. The headings keep one size on every width, the one they have on a phone. A heading in running text sits in a column as wide as a line of reading, on any screen, so its relation to the text beside it does not change and it has no reason to grow. Growing, an h2 on a wide screen was more than twice the size of the text, and an article broke into blocks at every heading. Page and section titles do grow: use nldd-title for those. Children are placed in three zones. A child belongs to the text unless it is listed, so it reads at the `main` size and is never wider than a line: text (headings, paragraphs, lists, blockquote, div/section) and every component that is not named below, such as nldd-box, nldd-card, nldd-banner, nldd-list and a button, and code (pre, nldd-code-viewer), which scrolls inside its block when a line is longer. Media, tables and a step bar (img, figure, video, iframe, table, nldd-table, nldd-image, nldd-step-bar) get the `wide` accent. What needs the room gets the `full` span: hr, nldd-collection and nldd-container. A child takes the room it needs inside its zone (`justify-self: start`), so the room is available without being forced. Overridable per child with `data-rich-text-width=\"main\" | \"wide\" | \"full\"`. In the left-aligned layout, wide and full read as a bleed to the right; with `centered` they are symmetrical. An element with `data-mention` reads as a mention: the name in the mention color with the @ icon in front of it. Use `<a href=\"…\" data-mention>` when the person has a page to go to: it becomes the tinted token nldd-text-editor shows, and the tint is what says you can follow it. Use `<span data-mention>` when not: it keeps the color and the icon, without the tint. Write the name without the `@`: the rich text draws it. A mention in the editor's value, `[@Name](user:id)`, comes out of a markdown renderer as a link to `user:id`, which goes nowhere, so turn it into one of these yourself.",
4913
5051
  "name": "NLDDRichText",
4914
5052
  "members": [
4915
5053
  {
@@ -8640,93 +8778,6 @@
8640
8778
  "description": "A monospace editor for code, YAML, JSON and other technical content, built on CodeMirror 6 (via NLDDCodeMirrorElement). Visually pairs with nldd-code-viewer for a matching read-only surface. Default `appearance=\"simple\"` is a bare, flush editor (no frame, no focus ring) for use inside an nldd-form-field or a consumer composition that owns its own chrome and focus treatment; the caret is rendered as a prominent accent as the focus cue. `appearance=\"input-field\"` adds the framed surface (border ring, tinted fill, inner padding, radius) and a focus ring for standalone use. The simple variant has no surrounding space of its own: let a layout container own the spacing and forward clicks with `focusFromPoint()` so clicking the padding still starts editing. Optional `language` enables lazy syntax highlighting; `line-numbers` adds a gutter (click a number to move the caret to that line).",
8641
8779
  "name": "NLDDCodeEditor",
8642
8780
  "members": [
8643
- {
8644
- "kind": "field",
8645
- "name": "shadowRootOptions",
8646
- "type": {
8647
- "text": "object"
8648
- },
8649
- "static": true,
8650
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
8651
- },
8652
- {
8653
- "kind": "field",
8654
- "name": "isFormInput",
8655
- "type": {
8656
- "text": "boolean"
8657
- },
8658
- "static": true,
8659
- "default": "true",
8660
- "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."
8661
- },
8662
- {
8663
- "kind": "field",
8664
- "name": "value",
8665
- "type": {
8666
- "text": "string"
8667
- },
8668
- "default": "''",
8669
- "attribute": "value"
8670
- },
8671
- {
8672
- "kind": "field",
8673
- "name": "inputId",
8674
- "type": {
8675
- "text": "string"
8676
- },
8677
- "default": "''",
8678
- "attribute": "input-id"
8679
- },
8680
- {
8681
- "kind": "field",
8682
- "name": "placeholder",
8683
- "type": {
8684
- "text": "string"
8685
- },
8686
- "default": "''",
8687
- "attribute": "placeholder",
8688
- "reflects": true
8689
- },
8690
- {
8691
- "kind": "field",
8692
- "name": "disabled",
8693
- "type": {
8694
- "text": "boolean"
8695
- },
8696
- "default": "false",
8697
- "attribute": "disabled",
8698
- "reflects": true
8699
- },
8700
- {
8701
- "kind": "field",
8702
- "name": "name",
8703
- "type": {
8704
- "text": "string"
8705
- },
8706
- "default": "''",
8707
- "attribute": "name",
8708
- "reflects": true
8709
- },
8710
- {
8711
- "kind": "field",
8712
- "name": "readonly",
8713
- "type": {
8714
- "text": "boolean"
8715
- },
8716
- "default": "false",
8717
- "attribute": "readonly",
8718
- "reflects": true
8719
- },
8720
- {
8721
- "kind": "field",
8722
- "name": "required",
8723
- "type": {
8724
- "text": "boolean"
8725
- },
8726
- "default": "false",
8727
- "attribute": "required",
8728
- "reflects": true
8729
- },
8730
8781
  {
8731
8782
  "kind": "field",
8732
8783
  "name": "wrap",
@@ -8737,15 +8788,6 @@
8737
8788
  "attribute": "wrap",
8738
8789
  "reflects": true
8739
8790
  },
8740
- {
8741
- "kind": "field",
8742
- "name": "rows",
8743
- "type": {
8744
- "text": "number"
8745
- },
8746
- "default": "6",
8747
- "attribute": "rows"
8748
- },
8749
8791
  {
8750
8792
  "kind": "field",
8751
8793
  "name": "resize",
@@ -8788,64 +8830,17 @@
8788
8830
  },
8789
8831
  {
8790
8832
  "kind": "field",
8791
- "name": "accessibleLabel",
8792
- "type": {
8793
- "text": "string"
8794
- },
8795
- "default": "''",
8796
- "attribute": "accessible-label"
8797
- },
8798
- {
8799
- "kind": "field",
8800
- "name": "invalid",
8833
+ "name": "describedByElements",
8801
8834
  "type": {
8802
- "text": "boolean"
8803
- },
8804
- "default": "false",
8805
- "description": "Marks the control as invalid.\n\nAnnounced and not drawn. What is wrong belongs in an\nnldd-validation-list, in words: a red ring around a single\ncheckbox or radio would say the option is wrong, while it is the question\nthat is unanswered. `aria-invalid` still goes on the control, because\nchoosing not to show something is not a reason to keep quiet about it.",
8806
- "attribute": "invalid",
8807
- "reflects": true
8808
- },
8809
- {
8810
- "kind": "method",
8811
- "name": "formValue",
8812
- "return": {
8813
- "type": {
8814
- "text": "FormValue"
8815
- }
8835
+ "text": "readonly Element[]"
8816
8836
  },
8817
- "description": "The value submitted under `name`; `null` submits nothing. Override.",
8837
+ "default": "[]",
8838
+ "description": "Set by nldd-form-field. A consumer never writes this.",
8818
8839
  "inheritedFrom": {
8819
- "name": "FormAssociated",
8820
- "module": "src/utilities/form-associated-mixin.ts"
8821
- }
8822
- },
8823
- {
8824
- "kind": "method",
8825
- "name": "formResetCallback",
8826
- "return": {
8827
- "type": {
8828
- "text": "void"
8829
- }
8840
+ "name": "DescribedBy",
8841
+ "module": "src/utilities/described-by-mixin.ts"
8830
8842
  }
8831
8843
  },
8832
- {
8833
- "kind": "method",
8834
- "name": "formStateRestoreCallback",
8835
- "return": {
8836
- "type": {
8837
- "text": "void"
8838
- }
8839
- },
8840
- "parameters": [
8841
- {
8842
- "name": "state",
8843
- "type": {
8844
- "text": "File | string | FormData | null"
8845
- }
8846
- }
8847
- ]
8848
- },
8849
8844
  {
8850
8845
  "kind": "method",
8851
8846
  "name": "describedTarget",
@@ -8854,23 +8849,10 @@
8854
8849
  "text": "Element | null"
8855
8850
  }
8856
8851
  },
8857
- "description": "CodeMirror builds the textbox; the host is only its container.",
8858
- "inheritedFrom": {
8859
- "name": "DescribedBy",
8860
- "module": "src/utilities/described-by-mixin.ts"
8861
- }
8862
- },
8863
- {
8864
- "kind": "field",
8865
- "name": "describedByElements",
8866
- "type": {
8867
- "text": "readonly Element[]"
8868
- },
8869
- "default": "[]",
8870
- "description": "Set by nldd-form-field. A consumer never writes this.",
8852
+ "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.",
8871
8853
  "inheritedFrom": {
8872
- "name": "DescribedBy",
8873
- "module": "src/utilities/described-by-mixin.ts"
8854
+ "name": "NLDDCodeMirrorInput",
8855
+ "module": "src/utilities/codemirror/codemirror-input.ts"
8874
8856
  }
8875
8857
  },
8876
8858
  {
@@ -8895,6 +8877,20 @@
8895
8877
  "module": "src/utilities/form-associated-mixin.ts"
8896
8878
  }
8897
8879
  },
8880
+ {
8881
+ "kind": "method",
8882
+ "name": "formValue",
8883
+ "return": {
8884
+ "type": {
8885
+ "text": "FormValue"
8886
+ }
8887
+ },
8888
+ "description": "The value submitted under `name`; `null` submits nothing. Override.",
8889
+ "inheritedFrom": {
8890
+ "name": "NLDDCodeMirrorInput",
8891
+ "module": "src/utilities/codemirror/codemirror-input.ts"
8892
+ }
8893
+ },
8898
8894
  {
8899
8895
  "kind": "method",
8900
8896
  "name": "formState",
@@ -9007,99 +9003,215 @@
9007
9003
  "name": "FormAssociated",
9008
9004
  "module": "src/utilities/form-associated-mixin.ts"
9009
9005
  }
9010
- }
9011
- ],
9012
- "events": [
9006
+ },
9013
9007
  {
9014
- "name": "input",
9015
- "description": "When the content changes (detail: { value })"
9008
+ "kind": "field",
9009
+ "name": "shadowRootOptions",
9010
+ "type": {
9011
+ "text": "object"
9012
+ },
9013
+ "static": true,
9014
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }",
9015
+ "inheritedFrom": {
9016
+ "name": "NLDDCodeMirrorInput",
9017
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9018
+ }
9016
9019
  },
9017
9020
  {
9018
- "name": "change",
9019
- "description": "When the content is committed on blur (detail: { value })"
9020
- }
9021
- ],
9022
- "attributes": [
9021
+ "kind": "field",
9022
+ "name": "isFormInput",
9023
+ "type": {
9024
+ "text": "boolean"
9025
+ },
9026
+ "static": true,
9027
+ "default": "true",
9028
+ "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.",
9029
+ "inheritedFrom": {
9030
+ "name": "NLDDCodeMirrorInput",
9031
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9032
+ }
9033
+ },
9023
9034
  {
9035
+ "kind": "field",
9024
9036
  "name": "value",
9025
9037
  "type": {
9026
9038
  "text": "string"
9027
9039
  },
9028
9040
  "default": "''",
9029
- "fieldName": "value",
9030
- "description": "Editor content"
9041
+ "attribute": "value",
9042
+ "inheritedFrom": {
9043
+ "name": "NLDDCodeMirrorInput",
9044
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9045
+ }
9031
9046
  },
9032
9047
  {
9033
- "name": "input-id",
9048
+ "kind": "field",
9049
+ "name": "inputId",
9034
9050
  "type": {
9035
9051
  "text": "string"
9036
9052
  },
9037
9053
  "default": "''",
9038
- "fieldName": "inputId",
9039
- "description": "Sets the id on the editable element. Set automatically by nldd-form-field."
9054
+ "attribute": "input-id",
9055
+ "inheritedFrom": {
9056
+ "name": "NLDDCodeMirrorInput",
9057
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9058
+ }
9040
9059
  },
9041
9060
  {
9061
+ "kind": "field",
9042
9062
  "name": "placeholder",
9043
9063
  "type": {
9044
9064
  "text": "string"
9045
9065
  },
9046
9066
  "default": "''",
9047
- "fieldName": "placeholder",
9048
- "description": "Placeholder text shown while empty"
9067
+ "attribute": "placeholder",
9068
+ "reflects": true,
9069
+ "inheritedFrom": {
9070
+ "name": "NLDDCodeMirrorInput",
9071
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9072
+ }
9049
9073
  },
9050
9074
  {
9075
+ "kind": "field",
9051
9076
  "name": "disabled",
9052
9077
  "type": {
9053
9078
  "text": "boolean"
9054
9079
  },
9055
9080
  "default": "false",
9056
- "fieldName": "disabled",
9057
- "description": "Disabled state"
9081
+ "attribute": "disabled",
9082
+ "reflects": true,
9083
+ "inheritedFrom": {
9084
+ "name": "NLDDCodeMirrorInput",
9085
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9086
+ }
9058
9087
  },
9059
9088
  {
9089
+ "kind": "field",
9060
9090
  "name": "name",
9061
9091
  "type": {
9062
9092
  "text": "string"
9063
9093
  },
9064
9094
  "default": "''",
9065
- "fieldName": "name",
9066
- "description": "Field name for form submission"
9095
+ "attribute": "name",
9096
+ "reflects": true,
9097
+ "inheritedFrom": {
9098
+ "name": "NLDDCodeMirrorInput",
9099
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9100
+ }
9067
9101
  },
9068
9102
  {
9103
+ "kind": "field",
9069
9104
  "name": "readonly",
9070
9105
  "type": {
9071
9106
  "text": "boolean"
9072
9107
  },
9073
9108
  "default": "false",
9074
- "fieldName": "readonly",
9075
- "description": "Readonly state (focusable and selectable, not editable)"
9109
+ "attribute": "readonly",
9110
+ "reflects": true,
9111
+ "inheritedFrom": {
9112
+ "name": "NLDDCodeMirrorInput",
9113
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9114
+ }
9076
9115
  },
9077
9116
  {
9117
+ "kind": "field",
9078
9118
  "name": "required",
9079
9119
  "type": {
9080
9120
  "text": "boolean"
9081
9121
  },
9082
9122
  "default": "false",
9083
- "fieldName": "required",
9084
- "description": "Required state"
9123
+ "attribute": "required",
9124
+ "reflects": true,
9125
+ "inheritedFrom": {
9126
+ "name": "NLDDCodeMirrorInput",
9127
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9128
+ }
9085
9129
  },
9086
9130
  {
9087
- "name": "wrap",
9131
+ "kind": "field",
9132
+ "name": "rows",
9133
+ "type": {
9134
+ "text": "number"
9135
+ },
9136
+ "default": "6",
9137
+ "attribute": "rows",
9138
+ "inheritedFrom": {
9139
+ "name": "NLDDCodeMirrorInput",
9140
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9141
+ }
9142
+ },
9143
+ {
9144
+ "kind": "field",
9145
+ "name": "accessibleLabel",
9146
+ "type": {
9147
+ "text": "string"
9148
+ },
9149
+ "default": "''",
9150
+ "attribute": "accessible-label",
9151
+ "inheritedFrom": {
9152
+ "name": "NLDDCodeMirrorInput",
9153
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9154
+ }
9155
+ },
9156
+ {
9157
+ "kind": "field",
9158
+ "name": "invalid",
9088
9159
  "type": {
9089
9160
  "text": "boolean"
9090
9161
  },
9091
9162
  "default": "false",
9092
- "fieldName": "wrap",
9093
- "description": "Wrap long lines instead of horizontal scroll"
9163
+ "description": "Marks the control as invalid.\n\nAnnounced and not drawn. What is wrong belongs in an\nnldd-validation-list, in words: a red ring around a single\ncheckbox or radio would say the option is wrong, while it is the question\nthat is unanswered. `aria-invalid` still goes on the control, because\nchoosing not to show something is not a reason to keep quiet about it.",
9164
+ "attribute": "invalid",
9165
+ "reflects": true,
9166
+ "inheritedFrom": {
9167
+ "name": "NLDDCodeMirrorInput",
9168
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9169
+ }
9094
9170
  },
9095
9171
  {
9096
- "name": "rows",
9172
+ "kind": "method",
9173
+ "name": "formResetCallback",
9174
+ "return": {
9175
+ "type": {
9176
+ "text": "void"
9177
+ }
9178
+ },
9179
+ "inheritedFrom": {
9180
+ "name": "NLDDCodeMirrorInput",
9181
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9182
+ }
9183
+ },
9184
+ {
9185
+ "kind": "method",
9186
+ "name": "formStateRestoreCallback",
9187
+ "return": {
9188
+ "type": {
9189
+ "text": "void"
9190
+ }
9191
+ },
9192
+ "parameters": [
9193
+ {
9194
+ "name": "state",
9195
+ "type": {
9196
+ "text": "File | string | FormData | null"
9197
+ }
9198
+ }
9199
+ ],
9200
+ "inheritedFrom": {
9201
+ "name": "NLDDCodeMirrorInput",
9202
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9203
+ }
9204
+ }
9205
+ ],
9206
+ "attributes": [
9207
+ {
9208
+ "name": "wrap",
9097
9209
  "type": {
9098
- "text": "number"
9210
+ "text": "boolean"
9099
9211
  },
9100
- "default": "6",
9101
- "fieldName": "rows",
9102
- "description": "Minimum visible rows (the floor in every resize mode). Default: 6."
9212
+ "default": "false",
9213
+ "fieldName": "wrap",
9214
+ "description": "Wrap long lines instead of horizontal scroll"
9103
9215
  },
9104
9216
  {
9105
9217
  "name": "resize",
@@ -9137,6 +9249,110 @@
9137
9249
  "fieldName": "lineNumbers",
9138
9250
  "description": "Show a line-number gutter"
9139
9251
  },
9252
+ {
9253
+ "name": "value",
9254
+ "type": {
9255
+ "text": "string"
9256
+ },
9257
+ "default": "''",
9258
+ "fieldName": "value",
9259
+ "inheritedFrom": {
9260
+ "name": "NLDDCodeMirrorInput",
9261
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9262
+ },
9263
+ "description": "Editor content"
9264
+ },
9265
+ {
9266
+ "name": "input-id",
9267
+ "type": {
9268
+ "text": "string"
9269
+ },
9270
+ "default": "''",
9271
+ "fieldName": "inputId",
9272
+ "inheritedFrom": {
9273
+ "name": "NLDDCodeMirrorInput",
9274
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9275
+ },
9276
+ "description": "Sets the id on the editable element. Set automatically by nldd-form-field."
9277
+ },
9278
+ {
9279
+ "name": "placeholder",
9280
+ "type": {
9281
+ "text": "string"
9282
+ },
9283
+ "default": "''",
9284
+ "fieldName": "placeholder",
9285
+ "inheritedFrom": {
9286
+ "name": "NLDDCodeMirrorInput",
9287
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9288
+ },
9289
+ "description": "Placeholder text shown while empty"
9290
+ },
9291
+ {
9292
+ "name": "disabled",
9293
+ "type": {
9294
+ "text": "boolean"
9295
+ },
9296
+ "default": "false",
9297
+ "fieldName": "disabled",
9298
+ "inheritedFrom": {
9299
+ "name": "NLDDCodeMirrorInput",
9300
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9301
+ },
9302
+ "description": "Disabled state"
9303
+ },
9304
+ {
9305
+ "name": "name",
9306
+ "type": {
9307
+ "text": "string"
9308
+ },
9309
+ "default": "''",
9310
+ "fieldName": "name",
9311
+ "inheritedFrom": {
9312
+ "name": "NLDDCodeMirrorInput",
9313
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9314
+ },
9315
+ "description": "Field name for form submission"
9316
+ },
9317
+ {
9318
+ "name": "readonly",
9319
+ "type": {
9320
+ "text": "boolean"
9321
+ },
9322
+ "default": "false",
9323
+ "fieldName": "readonly",
9324
+ "inheritedFrom": {
9325
+ "name": "NLDDCodeMirrorInput",
9326
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9327
+ },
9328
+ "description": "Readonly state (focusable and selectable, not editable)"
9329
+ },
9330
+ {
9331
+ "name": "required",
9332
+ "type": {
9333
+ "text": "boolean"
9334
+ },
9335
+ "default": "false",
9336
+ "fieldName": "required",
9337
+ "inheritedFrom": {
9338
+ "name": "NLDDCodeMirrorInput",
9339
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9340
+ },
9341
+ "description": "Required state"
9342
+ },
9343
+ {
9344
+ "name": "rows",
9345
+ "type": {
9346
+ "text": "number"
9347
+ },
9348
+ "default": "6",
9349
+ "fieldName": "rows",
9350
+ "inheritedFrom": {
9351
+ "name": "NLDDCodeMirrorInput",
9352
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9353
+ },
9354
+ "description": "Minimum visible rows (the floor in every resize mode). Default: 6."
9355
+ },
9140
9356
  {
9141
9357
  "name": "accessible-label",
9142
9358
  "type": {
@@ -9144,6 +9360,10 @@
9144
9360
  },
9145
9361
  "default": "''",
9146
9362
  "fieldName": "accessibleLabel",
9363
+ "inheritedFrom": {
9364
+ "name": "NLDDCodeMirrorInput",
9365
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9366
+ },
9147
9367
  "description": "Accessible label forwarded to the editor. Set automatically by nldd-form-field."
9148
9368
  },
9149
9369
  {
@@ -9153,25 +9373,29 @@
9153
9373
  },
9154
9374
  "default": "false",
9155
9375
  "description": "Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.",
9156
- "fieldName": "invalid"
9376
+ "fieldName": "invalid",
9377
+ "inheritedFrom": {
9378
+ "name": "NLDDCodeMirrorInput",
9379
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9380
+ }
9157
9381
  }
9158
9382
  ],
9159
- "mixins": [
9383
+ "superclass": {
9384
+ "name": "NLDDCodeMirrorInput",
9385
+ "module": "/src/utilities/codemirror/codemirror-input.js"
9386
+ },
9387
+ "tagName": "nldd-code-editor",
9388
+ "customElement": true,
9389
+ "events": [
9160
9390
  {
9161
- "name": "DescribedBy",
9162
- "module": "/src/utilities/described-by-mixin.js"
9391
+ "name": "input",
9392
+ "description": "When the content changes (detail: { value })"
9163
9393
  },
9164
9394
  {
9165
- "name": "FormAssociated",
9166
- "module": "/src/utilities/form-associated-mixin.js"
9395
+ "name": "change",
9396
+ "description": "When the content is committed on blur (detail: { value })"
9167
9397
  }
9168
- ],
9169
- "superclass": {
9170
- "name": "NLDDCodeMirrorElement",
9171
- "module": "/src/utilities/codemirror/codemirror-element.js"
9172
- },
9173
- "tagName": "nldd-code-editor",
9174
- "customElement": true
9398
+ ]
9175
9399
  }
9176
9400
  ],
9177
9401
  "exports": [
@@ -11150,13 +11374,338 @@
11150
11374
  }
11151
11375
  ]
11152
11376
  },
11377
+ {
11378
+ "kind": "javascript-module",
11379
+ "path": "src/components/inputs/file-field/file-field.drop.ts",
11380
+ "declarations": [
11381
+ {
11382
+ "kind": "function",
11383
+ "name": "acceptNames",
11384
+ "return": {
11385
+ "type": {
11386
+ "text": "AcceptName[] | null"
11387
+ }
11388
+ },
11389
+ "parameters": [
11390
+ {
11391
+ "name": "accept",
11392
+ "type": {
11393
+ "text": "string"
11394
+ }
11395
+ }
11396
+ ],
11397
+ "description": "What `accept` takes, named for a person, for the message on a drop of the\nwrong type. Null when any part has no name (an `application/vnd…` type),\nso the message does not list half of what is allowed."
11398
+ },
11399
+ {
11400
+ "kind": "function",
11401
+ "name": "fileMatches",
11402
+ "return": {
11403
+ "type": {
11404
+ "text": "boolean"
11405
+ }
11406
+ },
11407
+ "parameters": [
11408
+ {
11409
+ "name": "accept",
11410
+ "type": {
11411
+ "text": "string"
11412
+ }
11413
+ },
11414
+ {
11415
+ "name": "file",
11416
+ "type": {
11417
+ "text": "File"
11418
+ }
11419
+ }
11420
+ ],
11421
+ "description": "Whether a dropped file fits `accept`, judged on its name and its type, the\nway the file dialog filters. An empty `accept` takes everything."
11422
+ },
11423
+ {
11424
+ "kind": "function",
11425
+ "name": "typeRuledOut",
11426
+ "return": {
11427
+ "type": {
11428
+ "text": "boolean"
11429
+ }
11430
+ },
11431
+ "parameters": [
11432
+ {
11433
+ "name": "accept",
11434
+ "type": {
11435
+ "text": "string"
11436
+ }
11437
+ },
11438
+ {
11439
+ "name": "type",
11440
+ "type": {
11441
+ "text": "string"
11442
+ }
11443
+ }
11444
+ ],
11445
+ "description": "Whether a dragged file of `type` can be ruled out against `accept` before the\ndrop. Only a certain mismatch counts: an empty type or an extension this\nmodule has no type for leaves the answer to the drop."
11446
+ },
11447
+ {
11448
+ "kind": "function",
11449
+ "name": "holdsFolder",
11450
+ "return": {
11451
+ "type": {
11452
+ "text": "boolean"
11453
+ }
11454
+ },
11455
+ "parameters": [
11456
+ {
11457
+ "name": "transfer",
11458
+ "type": {
11459
+ "text": "DataTransfer"
11460
+ }
11461
+ }
11462
+ ],
11463
+ "description": "Whether a drop holds a folder. It arrives as a File without type or\nextension, which the field could not read, so it is refused."
11464
+ },
11465
+ {
11466
+ "kind": "function",
11467
+ "name": "carriesFiles",
11468
+ "return": {
11469
+ "type": {
11470
+ "text": "boolean"
11471
+ }
11472
+ },
11473
+ "parameters": [
11474
+ {
11475
+ "name": "transfer",
11476
+ "type": {
11477
+ "text": "DataTransfer | null"
11478
+ }
11479
+ }
11480
+ ],
11481
+ "description": "Whether a drag carries files, as opposed to text or a link."
11482
+ },
11483
+ {
11484
+ "kind": "function",
11485
+ "name": "watchDrags",
11486
+ "return": {
11487
+ "type": {
11488
+ "text": "void"
11489
+ }
11490
+ },
11491
+ "parameters": [
11492
+ {
11493
+ "name": "target",
11494
+ "type": {
11495
+ "text": "DropTarget"
11496
+ }
11497
+ }
11498
+ ],
11499
+ "description": "Registers a field with the shared window listeners, which exist while at\nleast one field is connected."
11500
+ },
11501
+ {
11502
+ "kind": "function",
11503
+ "name": "unwatchDrags",
11504
+ "return": {
11505
+ "type": {
11506
+ "text": "void"
11507
+ }
11508
+ },
11509
+ "parameters": [
11510
+ {
11511
+ "name": "target",
11512
+ "type": {
11513
+ "text": "DropTarget"
11514
+ }
11515
+ }
11516
+ ]
11517
+ }
11518
+ ],
11519
+ "exports": [
11520
+ {
11521
+ "kind": "js",
11522
+ "name": "acceptNames",
11523
+ "declaration": {
11524
+ "name": "acceptNames",
11525
+ "module": "src/components/inputs/file-field/file-field.drop.ts"
11526
+ }
11527
+ },
11528
+ {
11529
+ "kind": "js",
11530
+ "name": "fileMatches",
11531
+ "declaration": {
11532
+ "name": "fileMatches",
11533
+ "module": "src/components/inputs/file-field/file-field.drop.ts"
11534
+ }
11535
+ },
11536
+ {
11537
+ "kind": "js",
11538
+ "name": "typeRuledOut",
11539
+ "declaration": {
11540
+ "name": "typeRuledOut",
11541
+ "module": "src/components/inputs/file-field/file-field.drop.ts"
11542
+ }
11543
+ },
11544
+ {
11545
+ "kind": "js",
11546
+ "name": "holdsFolder",
11547
+ "declaration": {
11548
+ "name": "holdsFolder",
11549
+ "module": "src/components/inputs/file-field/file-field.drop.ts"
11550
+ }
11551
+ },
11552
+ {
11553
+ "kind": "js",
11554
+ "name": "carriesFiles",
11555
+ "declaration": {
11556
+ "name": "carriesFiles",
11557
+ "module": "src/components/inputs/file-field/file-field.drop.ts"
11558
+ }
11559
+ },
11560
+ {
11561
+ "kind": "js",
11562
+ "name": "watchDrags",
11563
+ "declaration": {
11564
+ "name": "watchDrags",
11565
+ "module": "src/components/inputs/file-field/file-field.drop.ts"
11566
+ }
11567
+ },
11568
+ {
11569
+ "kind": "js",
11570
+ "name": "unwatchDrags",
11571
+ "declaration": {
11572
+ "name": "unwatchDrags",
11573
+ "module": "src/components/inputs/file-field/file-field.drop.ts"
11574
+ }
11575
+ }
11576
+ ]
11577
+ },
11578
+ {
11579
+ "kind": "javascript-module",
11580
+ "path": "src/components/inputs/file-field/file-field.truncate.ts",
11581
+ "declarations": [
11582
+ {
11583
+ "kind": "function",
11584
+ "name": "splitName",
11585
+ "return": {
11586
+ "type": {
11587
+ "text": "[string, string]"
11588
+ }
11589
+ },
11590
+ "parameters": [
11591
+ {
11592
+ "name": "name",
11593
+ "type": {
11594
+ "text": "string"
11595
+ }
11596
+ }
11597
+ ],
11598
+ "description": "Splits a name at its last dot. A leading dot (\".env\") is no extension."
11599
+ },
11600
+ {
11601
+ "kind": "function",
11602
+ "name": "splitForTruncation",
11603
+ "return": {
11604
+ "type": {
11605
+ "text": "[string, string]"
11606
+ }
11607
+ },
11608
+ "parameters": [
11609
+ {
11610
+ "name": "name",
11611
+ "type": {
11612
+ "text": "string"
11613
+ }
11614
+ }
11615
+ ],
11616
+ "description": "The split of the first render, done by CSS: a start that is cut short when it\ndoes not fit, and an end, the last characters and the extension, that stays."
11617
+ },
11618
+ {
11619
+ "kind": "function",
11620
+ "name": "truncateMiddle",
11621
+ "return": {
11622
+ "type": {
11623
+ "text": "{ text: string; truncated: boolean }"
11624
+ }
11625
+ },
11626
+ "parameters": [
11627
+ {
11628
+ "name": "name",
11629
+ "type": {
11630
+ "text": "string"
11631
+ }
11632
+ },
11633
+ {
11634
+ "name": "width",
11635
+ "type": {
11636
+ "text": "number"
11637
+ }
11638
+ },
11639
+ {
11640
+ "name": "measure",
11641
+ "type": {
11642
+ "text": "(text: string) => number"
11643
+ }
11644
+ }
11645
+ ],
11646
+ "description": "The name as it fits `width`, measured with `measure`: whole when it fits,\notherwise as many characters as fit, half from the start and half from the\nend, around an ellipsis and before the extension."
11647
+ },
11648
+ {
11649
+ "kind": "function",
11650
+ "name": "textMeasurer",
11651
+ "return": {
11652
+ "type": {
11653
+ "text": "{ measure: (text: string) => number; done: () => void }"
11654
+ }
11655
+ },
11656
+ "parameters": [
11657
+ {
11658
+ "name": "container",
11659
+ "type": {
11660
+ "text": "Element"
11661
+ }
11662
+ }
11663
+ ],
11664
+ "description": "Measures text the way `container` renders it, with a hidden span in it.\nCanvas text metrics drift from the page by a character or two (kerning,\nfont features), which shows as a second, CSS ellipsis. Call `done` after."
11665
+ }
11666
+ ],
11667
+ "exports": [
11668
+ {
11669
+ "kind": "js",
11670
+ "name": "splitName",
11671
+ "declaration": {
11672
+ "name": "splitName",
11673
+ "module": "src/components/inputs/file-field/file-field.truncate.ts"
11674
+ }
11675
+ },
11676
+ {
11677
+ "kind": "js",
11678
+ "name": "splitForTruncation",
11679
+ "declaration": {
11680
+ "name": "splitForTruncation",
11681
+ "module": "src/components/inputs/file-field/file-field.truncate.ts"
11682
+ }
11683
+ },
11684
+ {
11685
+ "kind": "js",
11686
+ "name": "truncateMiddle",
11687
+ "declaration": {
11688
+ "name": "truncateMiddle",
11689
+ "module": "src/components/inputs/file-field/file-field.truncate.ts"
11690
+ }
11691
+ },
11692
+ {
11693
+ "kind": "js",
11694
+ "name": "textMeasurer",
11695
+ "declaration": {
11696
+ "name": "textMeasurer",
11697
+ "module": "src/components/inputs/file-field/file-field.truncate.ts"
11698
+ }
11699
+ }
11700
+ ]
11701
+ },
11153
11702
  {
11154
11703
  "kind": "javascript-module",
11155
11704
  "path": "src/components/inputs/file-field/file-field.ts",
11156
11705
  "declarations": [
11157
11706
  {
11158
11707
  "kind": "class",
11159
- "description": "A file picker that reads as one control: an nldd-button flush in the corner of a tinted surface, the chosen file next to it, and a dismiss button to clear it again. It wraps a hidden native `<input type=\"file\">`, which is what makes the picker open at all — a file dialog only opens from a user gesture on a real input. The surface deliberately does not look like an input field. A border with field semantics promises you can type into it; here you can only press a button, so it uses button and surface colors instead of `--semantics-input-fields-*`. The button keeps its own tinted background and therefore sits a shade darker in the surface, which is what marks it as the thing to press. Several files are summarized, not listed: \"3 bestanden\" with a single cross that clears all of them. Every pick replaces the whole FileList, and rebuilding it to add or drop one file means going through DataTransfer, which does not deduplicate (even the same File object twice yields two entries) — and a File has no id, so deduplicating would come down to guessing from name, size and last-modified. A list with a cross per file would promise an edit the platform does not support. A page that does want to show the files renders its own list from the `File[]` in the change event.",
11708
+ "description": "A file picker that reads as one control. Empty, the whole tinted surface is one button with one sentence centered in it, \"Bestand kiezen of sleep het hierheen\", its first part accented, so a press anywhere on it opens the file dialog. Once a file is chosen, the surface shows it with the icon of its format, its name, a button to choose another and a dismiss button to clear it again. A long name is cut in the middle, so its start and its end stay in view (\"Screenshot 20…at 13.12.21.png\"); it then shows whole in a tooltip, and a screen reader reads it whole either way. It wraps a hidden native `<input type=\"file\">`, which is what makes the picker open at all — a file dialog only opens from a user gesture on a real input. Files can be dropped on the whole field. A drop goes through the same input, so it fires the same `change` with the same detail and submits the same way as a pick. `accept` and `multiple` hold for a drop too, which the native input does not do: a drop that does not fit is refused as a whole, the previous choice stays, and the field says why for a few seconds: \"Sleep één bestand\", or what `accept` takes, named from it (\"Het bestand moet een PDF zijn\"; \"Dit bestandstype past niet\" where a type in it has no name). A dropped folder is refused as well (\"Sleep een bestand, geen map\"): it arrives as a file without a type that cannot be read, and only the drop tells it apart, not the drag. The message stays for a few seconds and then gives way to the field again. While files are dragged over the page, every field marks itself as a place to put them, and the field under the pointer says it will take them (a field with a file: that they replace it), or turns critical and refuses already when the number or the type rules them out. A file dropped next to a field no longer makes the browser open it and leave the page; a drop that another drop zone or an editable field takes is left alone. On a device without hover there is no dragging, so the field there drops the hint. The surface deliberately does not look like an input field. A border with field semantics promises you can type into it; here you can only press it or drop a file on it, so it has the border of a tinted surface instead of `--semantics-input-fields-*`. Several files are summarized, not listed: \"3 bestanden\" with a single cross that clears all of them. Every pick replaces the whole FileList, and rebuilding it to add or drop one file means going through DataTransfer, which does not deduplicate (even the same File object twice yields two entries) — and a File has no id, so deduplicating would come down to guessing from name, size and last-modified. A list with a cross per file would promise an edit the platform does not support. A page that does want to show the files renders its own list from the `File[]` in the change event.",
11160
11709
  "name": "NLDDFileField",
11161
11710
  "members": [
11162
11711
  {
@@ -17819,6 +18368,173 @@
17819
18368
  }
17820
18369
  ]
17821
18370
  },
18371
+ {
18372
+ "kind": "javascript-module",
18373
+ "path": "src/components/inputs/text-editor/text-editor.clipboard.ts",
18374
+ "declarations": [
18375
+ {
18376
+ "kind": "class",
18377
+ "description": "",
18378
+ "name": "AnnotationClipboard",
18379
+ "members": [
18380
+ {
18381
+ "kind": "field",
18382
+ "name": "cut",
18383
+ "type": {
18384
+ "text": "{ text: string; anns: CarriedAnnotation[] } | null"
18385
+ },
18386
+ "privacy": "private",
18387
+ "default": "null"
18388
+ },
18389
+ {
18390
+ "kind": "method",
18391
+ "name": "annotationsInSelection",
18392
+ "privacy": "private",
18393
+ "return": {
18394
+ "type": {
18395
+ "text": "CarriedAnnotation[]"
18396
+ }
18397
+ },
18398
+ "parameters": [
18399
+ {
18400
+ "name": "view",
18401
+ "type": {
18402
+ "text": "EditorView"
18403
+ }
18404
+ }
18405
+ ],
18406
+ "description": "The annotations lying fully inside the selection, offset from its clean start."
18407
+ },
18408
+ {
18409
+ "kind": "method",
18410
+ "name": "selectedText",
18411
+ "return": {
18412
+ "type": {
18413
+ "text": "string"
18414
+ }
18415
+ },
18416
+ "parameters": [
18417
+ {
18418
+ "name": "view",
18419
+ "type": {
18420
+ "text": "EditorView"
18421
+ }
18422
+ }
18423
+ ],
18424
+ "description": "The selection as clipboard text, without sentinels."
18425
+ },
18426
+ {
18427
+ "kind": "method",
18428
+ "name": "rememberCut",
18429
+ "return": {
18430
+ "type": {
18431
+ "text": "void"
18432
+ }
18433
+ },
18434
+ "parameters": [
18435
+ {
18436
+ "name": "view",
18437
+ "type": {
18438
+ "text": "EditorView"
18439
+ }
18440
+ }
18441
+ ],
18442
+ "description": "Remember a cut of the selection; an empty selection cuts nothing."
18443
+ },
18444
+ {
18445
+ "kind": "method",
18446
+ "name": "forget",
18447
+ "return": {
18448
+ "type": {
18449
+ "text": "void"
18450
+ }
18451
+ },
18452
+ "description": "A copy is plain text: a pending cut's annotations must not ride along."
18453
+ },
18454
+ {
18455
+ "kind": "method",
18456
+ "name": "paste",
18457
+ "return": {
18458
+ "type": {
18459
+ "text": "void"
18460
+ }
18461
+ },
18462
+ "parameters": [
18463
+ {
18464
+ "name": "view",
18465
+ "type": {
18466
+ "text": "EditorView"
18467
+ }
18468
+ },
18469
+ {
18470
+ "name": "raw",
18471
+ "type": {
18472
+ "text": "string"
18473
+ }
18474
+ }
18475
+ ],
18476
+ "description": "Put `raw` at the selection. When it is the text of the last cut, its\nannotations come along, once: a second paste would duplicate their ids."
18477
+ }
18478
+ ]
18479
+ }
18480
+ ],
18481
+ "exports": [
18482
+ {
18483
+ "kind": "js",
18484
+ "name": "AnnotationClipboard",
18485
+ "declaration": {
18486
+ "name": "AnnotationClipboard",
18487
+ "module": "src/components/inputs/text-editor/text-editor.clipboard.ts"
18488
+ }
18489
+ }
18490
+ ]
18491
+ },
18492
+ {
18493
+ "kind": "javascript-module",
18494
+ "path": "src/components/inputs/text-editor/text-editor.code-copy.ts",
18495
+ "declarations": [
18496
+ {
18497
+ "kind": "variable",
18498
+ "name": "codeCopyLabels"
18499
+ },
18500
+ {
18501
+ "kind": "function",
18502
+ "name": "codeCopy",
18503
+ "return": {
18504
+ "type": {
18505
+ "text": "Extension"
18506
+ }
18507
+ },
18508
+ "parameters": [
18509
+ {
18510
+ "name": "labels",
18511
+ "type": {
18512
+ "text": "CodeCopyLabels"
18513
+ }
18514
+ }
18515
+ ],
18516
+ "description": "A copy button on the opening line of each code block."
18517
+ }
18518
+ ],
18519
+ "exports": [
18520
+ {
18521
+ "kind": "js",
18522
+ "name": "codeCopyLabels",
18523
+ "declaration": {
18524
+ "name": "codeCopyLabels",
18525
+ "module": "src/components/inputs/text-editor/text-editor.code-copy.ts"
18526
+ }
18527
+ },
18528
+ {
18529
+ "kind": "js",
18530
+ "name": "codeCopy",
18531
+ "declaration": {
18532
+ "name": "codeCopy",
18533
+ "module": "src/components/inputs/text-editor/text-editor.code-copy.ts"
18534
+ }
18535
+ }
18536
+ ]
18537
+ },
17822
18538
  {
17823
18539
  "kind": "javascript-module",
17824
18540
  "path": "src/components/inputs/text-editor/text-editor.commands.ts",
@@ -18487,6 +19203,77 @@
18487
19203
  }
18488
19204
  ]
18489
19205
  },
19206
+ {
19207
+ "kind": "javascript-module",
19208
+ "path": "src/components/inputs/text-editor/text-editor.focus-selection.ts",
19209
+ "declarations": [
19210
+ {
19211
+ "kind": "function",
19212
+ "name": "focusSelectionGuard",
19213
+ "return": {
19214
+ "type": {
19215
+ "text": "Extension"
19216
+ }
19217
+ }
19218
+ }
19219
+ ],
19220
+ "exports": [
19221
+ {
19222
+ "kind": "js",
19223
+ "name": "focusSelectionGuard",
19224
+ "declaration": {
19225
+ "name": "focusSelectionGuard",
19226
+ "module": "src/components/inputs/text-editor/text-editor.focus-selection.ts"
19227
+ }
19228
+ }
19229
+ ]
19230
+ },
19231
+ {
19232
+ "kind": "javascript-module",
19233
+ "path": "src/components/inputs/text-editor/text-editor.hidden-syntax.ts",
19234
+ "declarations": [
19235
+ {
19236
+ "kind": "function",
19237
+ "name": "hiddenSyntax",
19238
+ "description": "The syntax=\"hidden\" extension. Highest precedence, so hiding a mark wins over\nthe dimmed styling the markdown decorations give it."
19239
+ }
19240
+ ],
19241
+ "exports": [
19242
+ {
19243
+ "kind": "js",
19244
+ "name": "hiddenSyntax",
19245
+ "declaration": {
19246
+ "name": "hiddenSyntax",
19247
+ "module": "src/components/inputs/text-editor/text-editor.hidden-syntax.ts"
19248
+ }
19249
+ }
19250
+ ]
19251
+ },
19252
+ {
19253
+ "kind": "javascript-module",
19254
+ "path": "src/components/inputs/text-editor/text-editor.keymap.ts",
19255
+ "declarations": [
19256
+ {
19257
+ "kind": "variable",
19258
+ "name": "textEditorKeymap",
19259
+ "type": {
19260
+ "text": "Extension"
19261
+ },
19262
+ "default": "[ // Prec.highest so this beats the markdown language's deleteMarkupBackward, // which would otherwise leave alignment whitespace when a non-first list // marker is backspaced. Falls through (returns false) off a list marker. Prec.highest(keymap.of([{ key: 'Backspace', run: clearListMarkerBackward }])), keymap.of([ { key: 'Mod-b', run: (view) => { toggleInlineWrap(view, '**', 'StrongEmphasis'); return true; } }, { key: 'Mod-i', run: (view) => { toggleInlineWrap(view, '*', 'Emphasis'); return true; } }, { key: 'Mod-e', run: (view) => { toggleInlineWrap(view, '`', 'InlineCode'); return true; } }, { key: 'Mod-k', run: (view) => { toggleLink(view); return true; } }, // A mention deletes in two steps: the first Backspace/Delete next to it // selects the whole token, the second removes it. { key: 'Backspace', run: (view) => selectMentionBeforeDelete(view, -1) }, { key: 'Delete', run: (view) => selectMentionBeforeDelete(view, 1) }, // Cmd/Ctrl+] and +[ nest and un-nest list items. defaultKeymap binds them // to indentMore/indentLess, whose four-space indent turns plain text into // an indented code block. Consumed here in every case: off a list item // they do nothing, which beats a code block nobody asked for. { key: 'Mod-]', run: (view) => { indentListItems(view); return true; } }, { key: 'Mod-[', run: (view) => { outdentListItems(view); return true; } }, // The browser deletes where the editor has nothing to add, so the // spelling marks on the line stay (see leaveDeletionToBrowser). { key: 'Backspace', run: (view) => !leaveDeletionToBrowser(view, 'Backspace') && deleteCharBackward(view), shift: deleteCharBackward }, { key: 'Delete', run: (view) => !leaveDeletionToBrowser(view, 'Delete') && deleteCharForward(view) }, ...defaultKeymap.filter((binding) => binding.key !== 'Backspace' && binding.key !== 'Delete'), ...historyKeymap, ]), ]",
19263
+ "description": "The editor's keys: the formatting shortcuts, the two-step mention delete, list\nnesting, and CodeMirror's defaults and history with Backspace and Delete taken\nover."
19264
+ }
19265
+ ],
19266
+ "exports": [
19267
+ {
19268
+ "kind": "js",
19269
+ "name": "textEditorKeymap",
19270
+ "declaration": {
19271
+ "name": "textEditorKeymap",
19272
+ "module": "src/components/inputs/text-editor/text-editor.keymap.ts"
19273
+ }
19274
+ }
19275
+ ]
19276
+ },
18490
19277
  {
18491
19278
  "kind": "javascript-module",
18492
19279
  "path": "src/components/inputs/text-editor/text-editor.labels.ts",
@@ -18668,8 +19455,162 @@
18668
19455
  "type": {
18669
19456
  "text": "Extension"
18670
19457
  },
18671
- "default": "[ markdown({ extensions: GFM }), markDecorationPlugin, heldEmphasis, hangingIndentField, // Prec.highest keeps the mention chip the innermost decoration, so it nests inside // a heading/bold run and inherits its font (scaling with it) instead of sitting at // the base size as an outer sibling. Prec.highest(mentionChipField), mentionAtomicRanges, ]",
19458
+ "default": "[ // A code block that names its language is highlighted in it, as in the code // viewer; the grammar loads when the first such block appears. markdown({ extensions: GFM, codeLanguages: nestedLanguages }), markDecorationPlugin, heldEmphasis, hangingIndentField, mentionTokens, ]",
18672
19459
  "description": "Markdown language (with GFM) plus the hybrid inline-styling decorations."
19460
+ }
19461
+ ],
19462
+ "exports": [
19463
+ {
19464
+ "kind": "js",
19465
+ "name": "markdownEditing",
19466
+ "declaration": {
19467
+ "name": "markdownEditing",
19468
+ "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19469
+ }
19470
+ }
19471
+ ]
19472
+ },
19473
+ {
19474
+ "kind": "javascript-module",
19475
+ "path": "src/components/inputs/text-editor/text-editor.mention.ts",
19476
+ "declarations": [
19477
+ {
19478
+ "kind": "variable",
19479
+ "name": "MENTION_HREF_PREFIX",
19480
+ "type": {
19481
+ "text": "string"
19482
+ },
19483
+ "default": "'user:'",
19484
+ "description": "Href prefix that marks a markdown link as a mention."
19485
+ },
19486
+ {
19487
+ "kind": "function",
19488
+ "name": "mentionToken",
19489
+ "return": {
19490
+ "type": {
19491
+ "text": "string"
19492
+ }
19493
+ },
19494
+ "parameters": [
19495
+ {
19496
+ "name": "candidate",
19497
+ "type": {
19498
+ "text": "TypeaheadCandidate"
19499
+ }
19500
+ }
19501
+ ],
19502
+ "description": "The markdown-compatible token stored for a mention (degrades to a plain link).\nThe label's link-text delimiters are backslash-escaped and the id is\npercent-encoded, so a crafted candidate (e.g. a display name sourced from user\ndata) can't break out of `[label](user:id)` into arbitrary markdown — a stray\n`]` or `)` would otherwise start a second, attacker-shaped link. The render\nlayer reverses both via `unescapeMentionLabel` / `decodeMentionId`."
19503
+ },
19504
+ {
19505
+ "kind": "function",
19506
+ "name": "mentionInsert",
19507
+ "return": {
19508
+ "type": {
19509
+ "text": "string"
19510
+ }
19511
+ },
19512
+ "parameters": [
19513
+ {
19514
+ "name": "candidate",
19515
+ "type": {
19516
+ "text": "TypeaheadCandidate"
19517
+ }
19518
+ }
19519
+ ],
19520
+ "description": "What the built-in mention writes: the token and a space to go on typing."
19521
+ },
19522
+ {
19523
+ "kind": "function",
19524
+ "name": "unescapeMentionLabel",
19525
+ "return": {
19526
+ "type": {
19527
+ "text": "string"
19528
+ }
19529
+ },
19530
+ "parameters": [
19531
+ {
19532
+ "name": "label",
19533
+ "type": {
19534
+ "text": "string"
19535
+ }
19536
+ }
19537
+ ],
19538
+ "description": "Reverse `mentionToken`'s label escaping for display."
19539
+ },
19540
+ {
19541
+ "kind": "function",
19542
+ "name": "decodeMentionId",
19543
+ "return": {
19544
+ "type": {
19545
+ "text": "string"
19546
+ }
19547
+ },
19548
+ "parameters": [
19549
+ {
19550
+ "name": "id",
19551
+ "type": {
19552
+ "text": "string"
19553
+ }
19554
+ }
19555
+ ],
19556
+ "description": "Reverse `mentionToken`'s id encoding. Falls back to the raw text when it isn't\nvalid percent-encoding (e.g. a token authored by hand before this encoding)."
19557
+ },
19558
+ {
19559
+ "kind": "variable",
19560
+ "name": "MENTION_TOKEN_RE",
19561
+ "default": "new RegExp(`\\\\[(@[^\\\\]]*)\\\\]\\\\(${MENTION_HREF_PREFIX}[^)]*\\\\)`, 'g')",
19562
+ "description": "A stored mention in running text, with its `@Naam` as the first group."
19563
+ },
19564
+ {
19565
+ "kind": "function",
19566
+ "name": "isMentionHref",
19567
+ "return": {
19568
+ "type": {
19569
+ "text": "boolean"
19570
+ }
19571
+ },
19572
+ "parameters": [
19573
+ {
19574
+ "name": "href",
19575
+ "type": {
19576
+ "text": "string"
19577
+ }
19578
+ }
19579
+ ],
19580
+ "description": "Whether an address is a mention's (`user:id`), not a place to go."
19581
+ },
19582
+ {
19583
+ "kind": "function",
19584
+ "name": "isMentionLink",
19585
+ "return": {
19586
+ "type": {
19587
+ "text": "boolean"
19588
+ }
19589
+ },
19590
+ "parameters": [
19591
+ {
19592
+ "name": "state",
19593
+ "type": {
19594
+ "text": "EditorState"
19595
+ }
19596
+ },
19597
+ {
19598
+ "name": "link",
19599
+ "type": {
19600
+ "text": "SyntaxNode"
19601
+ }
19602
+ }
19603
+ ],
19604
+ "description": "Whether a `Link` node is a mention."
19605
+ },
19606
+ {
19607
+ "kind": "variable",
19608
+ "name": "mentionTokens",
19609
+ "type": {
19610
+ "text": "Extension"
19611
+ },
19612
+ "default": "[Prec.highest(mentionChipField), mentionAtomicRanges]",
19613
+ "description": "The mention token: the chip that replaces the whole link, and the atomic range\nthe caret steps over. Prec.highest keeps the chip the innermost decoration, so\nit nests inside a heading or bold run and scales with its font."
18673
19614
  },
18674
19615
  {
18675
19616
  "kind": "function",
@@ -18742,15 +19683,103 @@
18742
19683
  }
18743
19684
  ],
18744
19685
  "description": "A mention token starting exactly at `pos` (cursor just before it — delete)."
19686
+ },
19687
+ {
19688
+ "kind": "function",
19689
+ "name": "selectMentionBeforeDelete",
19690
+ "return": {
19691
+ "type": {
19692
+ "text": "boolean"
19693
+ }
19694
+ },
19695
+ "parameters": [
19696
+ {
19697
+ "name": "view",
19698
+ "type": {
19699
+ "text": "EditorView"
19700
+ }
19701
+ },
19702
+ {
19703
+ "name": "dir",
19704
+ "type": {
19705
+ "text": "-1 | 1"
19706
+ }
19707
+ }
19708
+ ],
19709
+ "description": "Two-step mention delete: the first Backspace (`dir` -1) or Delete (1) next\nto a mention selects the whole token, the second removes it. False when\nthere is a selection already or no mention at the caret, so the normal\ndelete runs."
18745
19710
  }
18746
19711
  ],
18747
19712
  "exports": [
18748
19713
  {
18749
19714
  "kind": "js",
18750
- "name": "markdownEditing",
19715
+ "name": "MENTION_HREF_PREFIX",
18751
19716
  "declaration": {
18752
- "name": "markdownEditing",
18753
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19717
+ "name": "MENTION_HREF_PREFIX",
19718
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19719
+ }
19720
+ },
19721
+ {
19722
+ "kind": "js",
19723
+ "name": "mentionToken",
19724
+ "declaration": {
19725
+ "name": "mentionToken",
19726
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19727
+ }
19728
+ },
19729
+ {
19730
+ "kind": "js",
19731
+ "name": "mentionInsert",
19732
+ "declaration": {
19733
+ "name": "mentionInsert",
19734
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19735
+ }
19736
+ },
19737
+ {
19738
+ "kind": "js",
19739
+ "name": "unescapeMentionLabel",
19740
+ "declaration": {
19741
+ "name": "unescapeMentionLabel",
19742
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19743
+ }
19744
+ },
19745
+ {
19746
+ "kind": "js",
19747
+ "name": "decodeMentionId",
19748
+ "declaration": {
19749
+ "name": "decodeMentionId",
19750
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19751
+ }
19752
+ },
19753
+ {
19754
+ "kind": "js",
19755
+ "name": "MENTION_TOKEN_RE",
19756
+ "declaration": {
19757
+ "name": "MENTION_TOKEN_RE",
19758
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19759
+ }
19760
+ },
19761
+ {
19762
+ "kind": "js",
19763
+ "name": "isMentionHref",
19764
+ "declaration": {
19765
+ "name": "isMentionHref",
19766
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19767
+ }
19768
+ },
19769
+ {
19770
+ "kind": "js",
19771
+ "name": "isMentionLink",
19772
+ "declaration": {
19773
+ "name": "isMentionLink",
19774
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19775
+ }
19776
+ },
19777
+ {
19778
+ "kind": "js",
19779
+ "name": "mentionTokens",
19780
+ "declaration": {
19781
+ "name": "mentionTokens",
19782
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18754
19783
  }
18755
19784
  },
18756
19785
  {
@@ -18758,7 +19787,7 @@
18758
19787
  "name": "mentionRangeAt",
18759
19788
  "declaration": {
18760
19789
  "name": "mentionRangeAt",
18761
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19790
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18762
19791
  }
18763
19792
  },
18764
19793
  {
@@ -18766,7 +19795,7 @@
18766
19795
  "name": "mentionRangeEndingAt",
18767
19796
  "declaration": {
18768
19797
  "name": "mentionRangeEndingAt",
18769
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19798
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18770
19799
  }
18771
19800
  },
18772
19801
  {
@@ -18774,7 +19803,15 @@
18774
19803
  "name": "mentionRangeStartingAt",
18775
19804
  "declaration": {
18776
19805
  "name": "mentionRangeStartingAt",
18777
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19806
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19807
+ }
19808
+ },
19809
+ {
19810
+ "kind": "js",
19811
+ "name": "selectMentionBeforeDelete",
19812
+ "declaration": {
19813
+ "name": "selectMentionBeforeDelete",
19814
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18778
19815
  }
18779
19816
  }
18780
19817
  ]
@@ -18822,87 +19859,6 @@
18822
19859
  ],
18823
19860
  "description": "The typeahead query at `pos` for one of `triggers`, or null when the text\nbefore the caret is not one. `from` is the trigger, `query` the typed text\nwithout it. Both the completion source and the reopen-on-delete path go\nthrough this, so they cannot disagree about what counts as a query."
18824
19861
  },
18825
- {
18826
- "kind": "variable",
18827
- "name": "MENTION_HREF_PREFIX",
18828
- "type": {
18829
- "text": "string"
18830
- },
18831
- "default": "'user:'",
18832
- "description": "Href prefix that marks a markdown link as a mention."
18833
- },
18834
- {
18835
- "kind": "function",
18836
- "name": "mentionToken",
18837
- "return": {
18838
- "type": {
18839
- "text": "string"
18840
- }
18841
- },
18842
- "parameters": [
18843
- {
18844
- "name": "candidate",
18845
- "type": {
18846
- "text": "TypeaheadCandidate"
18847
- }
18848
- }
18849
- ],
18850
- "description": "The markdown-compatible token stored for a mention (degrades to a plain link).\nThe label's link-text delimiters are backslash-escaped and the id is\npercent-encoded, so a crafted candidate (e.g. a display name sourced from user\ndata) can't break out of `[label](user:id)` into arbitrary markdown — a stray\n`]` or `)` would otherwise start a second, attacker-shaped link. The render\nlayer reverses both via `unescapeMentionLabel` / `decodeMentionId`."
18851
- },
18852
- {
18853
- "kind": "function",
18854
- "name": "mentionInsert",
18855
- "return": {
18856
- "type": {
18857
- "text": "string"
18858
- }
18859
- },
18860
- "parameters": [
18861
- {
18862
- "name": "candidate",
18863
- "type": {
18864
- "text": "TypeaheadCandidate"
18865
- }
18866
- }
18867
- ],
18868
- "description": "What the built-in mention writes: the token and a space to go on typing."
18869
- },
18870
- {
18871
- "kind": "function",
18872
- "name": "unescapeMentionLabel",
18873
- "return": {
18874
- "type": {
18875
- "text": "string"
18876
- }
18877
- },
18878
- "parameters": [
18879
- {
18880
- "name": "label",
18881
- "type": {
18882
- "text": "string"
18883
- }
18884
- }
18885
- ],
18886
- "description": "Reverse `mentionToken`'s label escaping for display."
18887
- },
18888
- {
18889
- "kind": "function",
18890
- "name": "decodeMentionId",
18891
- "return": {
18892
- "type": {
18893
- "text": "string"
18894
- }
18895
- },
18896
- "parameters": [
18897
- {
18898
- "name": "id",
18899
- "type": {
18900
- "text": "string"
18901
- }
18902
- }
18903
- ],
18904
- "description": "Reverse `mentionToken`'s id encoding. Falls back to the raw text when it isn't\nvalid percent-encoding (e.g. a token authored by hand before this encoding)."
18905
- },
18906
19862
  {
18907
19863
  "kind": "function",
18908
19864
  "name": "typeaheads",
@@ -18952,46 +19908,6 @@
18952
19908
  "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18953
19909
  }
18954
19910
  },
18955
- {
18956
- "kind": "js",
18957
- "name": "MENTION_HREF_PREFIX",
18958
- "declaration": {
18959
- "name": "MENTION_HREF_PREFIX",
18960
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18961
- }
18962
- },
18963
- {
18964
- "kind": "js",
18965
- "name": "mentionToken",
18966
- "declaration": {
18967
- "name": "mentionToken",
18968
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18969
- }
18970
- },
18971
- {
18972
- "kind": "js",
18973
- "name": "mentionInsert",
18974
- "declaration": {
18975
- "name": "mentionInsert",
18976
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18977
- }
18978
- },
18979
- {
18980
- "kind": "js",
18981
- "name": "unescapeMentionLabel",
18982
- "declaration": {
18983
- "name": "unescapeMentionLabel",
18984
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18985
- }
18986
- },
18987
- {
18988
- "kind": "js",
18989
- "name": "decodeMentionId",
18990
- "declaration": {
18991
- "name": "decodeMentionId",
18992
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18993
- }
18994
- },
18995
19911
  {
18996
19912
  "kind": "js",
18997
19913
  "name": "typeaheads",
@@ -19048,6 +19964,26 @@
19048
19964
  }
19049
19965
  ]
19050
19966
  },
19967
+ {
19968
+ "kind": "javascript-module",
19969
+ "path": "src/components/inputs/text-editor/text-editor.selection.ts",
19970
+ "declarations": [
19971
+ {
19972
+ "kind": "variable",
19973
+ "name": "lineHighSelection"
19974
+ }
19975
+ ],
19976
+ "exports": [
19977
+ {
19978
+ "kind": "js",
19979
+ "name": "lineHighSelection",
19980
+ "declaration": {
19981
+ "name": "lineHighSelection",
19982
+ "module": "src/components/inputs/text-editor/text-editor.selection.ts"
19983
+ }
19984
+ }
19985
+ ]
19986
+ },
19051
19987
  {
19052
19988
  "kind": "javascript-module",
19053
19989
  "path": "src/components/inputs/text-editor/text-editor.spellcheck.ts",
@@ -19158,12 +20094,29 @@
19158
20094
  ],
19159
20095
  "description": "The innermost node at `pos` that `match` accepts, looking outward from there.\n`side` decides which node a position between two of them belongs to: -1 the\none that ends there, 1 the one that starts there. Null when none matches."
19160
20096
  },
20097
+ {
20098
+ "kind": "variable",
20099
+ "name": "CODE_BLOCK_NODES",
20100
+ "type": {
20101
+ "text": "ReadonlySet<string>"
20102
+ },
20103
+ "default": "new Set(['FencedCode', 'CodeBlock'])",
20104
+ "description": "The nodes whose text is code, quoted as it is: no list, quote or link in it."
20105
+ },
20106
+ {
20107
+ "kind": "variable",
20108
+ "name": "CODE_NODES",
20109
+ "type": {
20110
+ "text": "ReadonlySet<string>"
20111
+ },
20112
+ "default": "new Set([...CODE_BLOCK_NODES, 'InlineCode'])"
20113
+ },
19161
20114
  {
19162
20115
  "kind": "function",
19163
- "name": "enclosingNamed",
20116
+ "name": "inCodeBlock",
19164
20117
  "return": {
19165
20118
  "type": {
19166
- "text": "SyntaxNode | null"
20119
+ "text": "boolean"
19167
20120
  }
19168
20121
  },
19169
20122
  "parameters": [
@@ -19178,138 +20131,370 @@
19178
20131
  "type": {
19179
20132
  "text": "number"
19180
20133
  }
19181
- },
20134
+ }
20135
+ ],
20136
+ "description": "Whether `pos` sits in a fenced or indented code block, where a leading `-`,\n`1.` or `>` is literal code."
20137
+ },
20138
+ {
20139
+ "kind": "function",
20140
+ "name": "inCode",
20141
+ "return": {
20142
+ "type": {
20143
+ "text": "boolean"
20144
+ }
20145
+ },
20146
+ "parameters": [
19182
20147
  {
19183
- "name": "side",
20148
+ "name": "state",
19184
20149
  "type": {
19185
- "text": "-1 | 0 | 1"
20150
+ "text": "EditorState"
19186
20151
  }
19187
20152
  },
19188
20153
  {
19189
- "name": "names",
20154
+ "name": "pos",
19190
20155
  "type": {
19191
- "text": "string | ReadonlySet<string>"
20156
+ "text": "number"
19192
20157
  }
19193
20158
  }
19194
20159
  ],
19195
- "description": "`enclosingNode` for the common case: a node that goes by one of these names."
19196
- }
19197
- ],
19198
- "exports": [
19199
- {
19200
- "kind": "js",
19201
- "name": "enclosingNode",
19202
- "declaration": {
19203
- "name": "enclosingNode",
19204
- "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19205
- }
20160
+ "description": "Whether `pos` sits in any code, the backtick span included."
19206
20161
  },
19207
20162
  {
19208
- "kind": "js",
19209
- "name": "enclosingNamed",
19210
- "declaration": {
19211
- "name": "enclosingNamed",
19212
- "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19213
- }
19214
- }
19215
- ]
19216
- },
19217
- {
19218
- "kind": "javascript-module",
19219
- "path": "src/components/inputs/text-editor/text-editor.ts",
19220
- "declarations": [
19221
- {
19222
- "kind": "class",
19223
- "description": "A hybrid markdown editor built on CodeMirror 6 (via NLDDCodeMirrorElement): the document stays plain markdown text, but formatting is shown inline (bold is bold, headings are larger, links are colored) while the syntax markers stay visible, only dimmed — the iA Writer / Kirby approach. No WYSIWYG tree, so the data stays portable. Default `appearance=\"simple\"` is bare (no frame, no focus ring) for use inside a composition (e.g. a message field) that owns its chrome and focus; the caret is a prominent accent. `appearance=\"input-field\"` adds a framed surface + focus Headless: there is no built-in toolbar. A consumer drives formatting via the command methods (toggleBold/toggleItalic/toggleInlineCode/toggleStrikethrough/ toggleHeading/toggleBulletList/toggleTaskList/toggleQuote/toggleLink/runCommand to toggle, and setHeading/setList for picker-style \"set\" semantics), reads the active formats with getState(), listens to the nldd-text-editor-state event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. An @-mention typeahead (mentionSource) collapses to an atomic token, further typeahead lists on their own trigger (typeaheads) write what you tell them to, and a W3C-style annotation overlay (annotations) marks ranges with a dashed underline, light tint and a count badge without touching the underlying text.",
19224
- "name": "NLDDTextEditor",
19225
- "members": [
20163
+ "kind": "function",
20164
+ "name": "forEachLineStart",
20165
+ "return": {
20166
+ "type": {
20167
+ "text": "void"
20168
+ }
20169
+ },
20170
+ "parameters": [
19226
20171
  {
19227
- "kind": "field",
19228
- "name": "shadowRootOptions",
20172
+ "name": "state",
19229
20173
  "type": {
19230
- "text": "object"
19231
- },
19232
- "static": true,
19233
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
20174
+ "text": "EditorState"
20175
+ }
19234
20176
  },
19235
20177
  {
19236
- "kind": "field",
19237
- "name": "isFormInput",
20178
+ "name": "from",
19238
20179
  "type": {
19239
- "text": "boolean"
19240
- },
19241
- "static": true,
19242
- "default": "true",
19243
- "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."
20180
+ "text": "number"
20181
+ }
19244
20182
  },
19245
20183
  {
19246
- "kind": "field",
19247
- "name": "value",
20184
+ "name": "to",
19248
20185
  "type": {
19249
- "text": "string"
19250
- },
19251
- "default": "''",
19252
- "attribute": "value"
20186
+ "text": "number"
20187
+ }
19253
20188
  },
19254
20189
  {
19255
- "kind": "field",
19256
- "name": "inputId",
20190
+ "name": "each",
19257
20191
  "type": {
19258
- "text": "string"
19259
- },
19260
- "default": "''",
19261
- "attribute": "input-id"
20192
+ "text": "(lineFrom: number) => void"
20193
+ }
20194
+ }
20195
+ ],
20196
+ "description": "Call `each` with the start of every line from `from` to `to`."
20197
+ },
20198
+ {
20199
+ "kind": "function",
20200
+ "name": "treeAdvanced",
20201
+ "return": {
20202
+ "type": {
20203
+ "text": "boolean"
20204
+ }
20205
+ },
20206
+ "parameters": [
20207
+ {
20208
+ "name": "before",
20209
+ "type": {
20210
+ "text": "EditorState"
20211
+ }
19262
20212
  },
19263
20213
  {
19264
- "kind": "field",
19265
- "name": "placeholder",
20214
+ "name": "after",
19266
20215
  "type": {
19267
- "text": "string"
19268
- },
19269
- "default": "''",
19270
- "attribute": "placeholder",
19271
- "reflects": true
20216
+ "text": "EditorState"
20217
+ }
20218
+ }
20219
+ ],
20220
+ "description": "Whether the parse moved on between two states. The tree is parsed in the\nbackground, so a decoration built from it must be built again when it has\ncaught up, not only when the text, the viewport or the selection changes."
20221
+ },
20222
+ {
20223
+ "kind": "function",
20224
+ "name": "isRuleLine",
20225
+ "return": {
20226
+ "type": {
20227
+ "text": "boolean"
20228
+ }
20229
+ },
20230
+ "parameters": [
20231
+ {
20232
+ "name": "state",
20233
+ "type": {
20234
+ "text": "EditorState"
20235
+ }
19272
20236
  },
19273
20237
  {
19274
- "kind": "field",
19275
- "name": "disabled",
20238
+ "name": "lineFrom",
19276
20239
  "type": {
19277
- "text": "boolean"
19278
- },
19279
- "default": "false",
19280
- "attribute": "disabled",
19281
- "reflects": true
20240
+ "text": "number"
20241
+ }
20242
+ }
20243
+ ],
20244
+ "description": "Whether the line at `lineFrom` is a thematic break (`---`, `* * *`). Its\ncharacters look like a bullet to a regular expression; to the tree they are not."
20245
+ },
20246
+ {
20247
+ "kind": "function",
20248
+ "name": "enclosingNamed",
20249
+ "return": {
20250
+ "type": {
20251
+ "text": "SyntaxNode | null"
20252
+ }
20253
+ },
20254
+ "parameters": [
20255
+ {
20256
+ "name": "state",
20257
+ "type": {
20258
+ "text": "EditorState"
20259
+ }
19282
20260
  },
19283
20261
  {
19284
- "kind": "field",
19285
- "name": "name",
20262
+ "name": "pos",
19286
20263
  "type": {
19287
- "text": "string"
19288
- },
19289
- "default": "''",
19290
- "attribute": "name",
19291
- "reflects": true
20264
+ "text": "number"
20265
+ }
19292
20266
  },
19293
20267
  {
19294
- "kind": "field",
19295
- "name": "readonly",
20268
+ "name": "side",
19296
20269
  "type": {
19297
- "text": "boolean"
19298
- },
19299
- "default": "false",
19300
- "attribute": "readonly",
19301
- "reflects": true
20270
+ "text": "-1 | 0 | 1"
20271
+ }
19302
20272
  },
19303
20273
  {
19304
- "kind": "field",
19305
- "name": "required",
20274
+ "name": "names",
19306
20275
  "type": {
19307
- "text": "boolean"
19308
- },
19309
- "default": "false",
19310
- "attribute": "required",
19311
- "reflects": true
20276
+ "text": "string | ReadonlySet<string>"
20277
+ }
20278
+ }
20279
+ ],
20280
+ "description": "`enclosingNode` for the common case: a node that goes by one of these names."
20281
+ },
20282
+ {
20283
+ "kind": "function",
20284
+ "name": "linkTextRange",
20285
+ "return": {
20286
+ "type": {
20287
+ "text": "{ from: number; to: number } | null"
20288
+ }
20289
+ },
20290
+ "parameters": [
20291
+ {
20292
+ "name": "link",
20293
+ "type": {
20294
+ "text": "SyntaxNode"
20295
+ }
20296
+ }
20297
+ ],
20298
+ "description": "The text of a `[text](url)` link, between its brackets; null when it is empty."
20299
+ }
20300
+ ],
20301
+ "exports": [
20302
+ {
20303
+ "kind": "js",
20304
+ "name": "enclosingNode",
20305
+ "declaration": {
20306
+ "name": "enclosingNode",
20307
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20308
+ }
20309
+ },
20310
+ {
20311
+ "kind": "js",
20312
+ "name": "CODE_BLOCK_NODES",
20313
+ "declaration": {
20314
+ "name": "CODE_BLOCK_NODES",
20315
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20316
+ }
20317
+ },
20318
+ {
20319
+ "kind": "js",
20320
+ "name": "CODE_NODES",
20321
+ "declaration": {
20322
+ "name": "CODE_NODES",
20323
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20324
+ }
20325
+ },
20326
+ {
20327
+ "kind": "js",
20328
+ "name": "inCodeBlock",
20329
+ "declaration": {
20330
+ "name": "inCodeBlock",
20331
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20332
+ }
20333
+ },
20334
+ {
20335
+ "kind": "js",
20336
+ "name": "inCode",
20337
+ "declaration": {
20338
+ "name": "inCode",
20339
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20340
+ }
20341
+ },
20342
+ {
20343
+ "kind": "js",
20344
+ "name": "forEachLineStart",
20345
+ "declaration": {
20346
+ "name": "forEachLineStart",
20347
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20348
+ }
20349
+ },
20350
+ {
20351
+ "kind": "js",
20352
+ "name": "treeAdvanced",
20353
+ "declaration": {
20354
+ "name": "treeAdvanced",
20355
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20356
+ }
20357
+ },
20358
+ {
20359
+ "kind": "js",
20360
+ "name": "isRuleLine",
20361
+ "declaration": {
20362
+ "name": "isRuleLine",
20363
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20364
+ }
20365
+ },
20366
+ {
20367
+ "kind": "js",
20368
+ "name": "enclosingNamed",
20369
+ "declaration": {
20370
+ "name": "enclosingNamed",
20371
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20372
+ }
20373
+ },
20374
+ {
20375
+ "kind": "js",
20376
+ "name": "linkTextRange",
20377
+ "declaration": {
20378
+ "name": "linkTextRange",
20379
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20380
+ }
20381
+ }
20382
+ ]
20383
+ },
20384
+ {
20385
+ "kind": "javascript-module",
20386
+ "path": "src/components/inputs/text-editor/text-editor.tasks.ts",
20387
+ "declarations": [
20388
+ {
20389
+ "kind": "variable",
20390
+ "name": "taskLabels",
20391
+ "description": "The texts a screen reader reads in place of a box."
20392
+ },
20393
+ {
20394
+ "kind": "function",
20395
+ "name": "taskBox",
20396
+ "return": {
20397
+ "type": {
20398
+ "text": "Decoration"
20399
+ }
20400
+ },
20401
+ "parameters": [
20402
+ {
20403
+ "name": "state",
20404
+ "type": {
20405
+ "text": "EditorState"
20406
+ }
19312
20407
  },
20408
+ {
20409
+ "name": "checked",
20410
+ "type": {
20411
+ "text": "boolean"
20412
+ }
20413
+ }
20414
+ ],
20415
+ "description": "The box that replaces the `[ ]` or `[x]` of a task."
20416
+ },
20417
+ {
20418
+ "kind": "function",
20419
+ "name": "toggleTasks",
20420
+ "return": {
20421
+ "type": {
20422
+ "text": "boolean"
20423
+ }
20424
+ },
20425
+ "parameters": [
20426
+ {
20427
+ "name": "view",
20428
+ "type": {
20429
+ "text": "EditorView"
20430
+ }
20431
+ }
20432
+ ],
20433
+ "description": "Checks or unchecks the tasks on the lines of the selection. False when no\nline there is a task, so the key does what it would otherwise do."
20434
+ },
20435
+ {
20436
+ "kind": "function",
20437
+ "name": "tasks",
20438
+ "return": {
20439
+ "type": {
20440
+ "text": "Extension"
20441
+ }
20442
+ },
20443
+ "parameters": [
20444
+ {
20445
+ "name": "labels",
20446
+ "type": {
20447
+ "text": "TaskLabels"
20448
+ }
20449
+ }
20450
+ ],
20451
+ "description": "Checking a task by click and by Cmd/Ctrl+Enter, with the texts a screen\nreader reads for a box."
20452
+ }
20453
+ ],
20454
+ "exports": [
20455
+ {
20456
+ "kind": "js",
20457
+ "name": "taskLabels",
20458
+ "declaration": {
20459
+ "name": "taskLabels",
20460
+ "module": "src/components/inputs/text-editor/text-editor.tasks.ts"
20461
+ }
20462
+ },
20463
+ {
20464
+ "kind": "js",
20465
+ "name": "taskBox",
20466
+ "declaration": {
20467
+ "name": "taskBox",
20468
+ "module": "src/components/inputs/text-editor/text-editor.tasks.ts"
20469
+ }
20470
+ },
20471
+ {
20472
+ "kind": "js",
20473
+ "name": "toggleTasks",
20474
+ "declaration": {
20475
+ "name": "toggleTasks",
20476
+ "module": "src/components/inputs/text-editor/text-editor.tasks.ts"
20477
+ }
20478
+ },
20479
+ {
20480
+ "kind": "js",
20481
+ "name": "tasks",
20482
+ "declaration": {
20483
+ "name": "tasks",
20484
+ "module": "src/components/inputs/text-editor/text-editor.tasks.ts"
20485
+ }
20486
+ }
20487
+ ]
20488
+ },
20489
+ {
20490
+ "kind": "javascript-module",
20491
+ "path": "src/components/inputs/text-editor/text-editor.ts",
20492
+ "declarations": [
20493
+ {
20494
+ "kind": "class",
20495
+ "description": "A hybrid markdown editor built on CodeMirror 6 (via NLDDCodeMirrorElement): the document stays plain markdown text, but formatting is shown inline (bold is bold, headings are larger, links are colored) while the syntax markers stay visible, only dimmed — the iA Writer / Kirby approach. No WYSIWYG tree, so the data stays portable. Default `appearance=\"simple\"` is bare (no frame, no focus ring) for use inside a composition (e.g. a message field) that owns its chrome and focus; the caret is a prominent accent. `appearance=\"input-field\"` adds a framed surface + focus Headless: there is no built-in toolbar. A consumer drives formatting via the command methods (toggleBold/toggleItalic/toggleInlineCode/toggleStrikethrough/ toggleHeading/toggleBulletList/toggleTaskList/toggleQuote/toggleLink/runCommand to toggle, and setHeading/setList for picker-style \"set\" semantics), reads the active formats with getState(), listens to the nldd-text-editor-state event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. With `syntax=\"hidden\"` a task item (`- [ ]`, `- [x]`) reads as a box in the place of its bullet, and like every other mark shows its markdown on the line the caret is on. A click on the box checks or unchecks it without moving the caret. Cmd/Ctrl+Enter does the same for the tasks on the lines of the selection, in both syntax modes. The box is no tab stop: Tab leaves the editor. A screen reader reads \"Taak, open\" or \"Taak, afgerond\" in its place. A code block that names its language after the backticks is highlighted in it, as in nldd-code-viewer; the grammar loads with the first such block. Its opening line is the head of the block, with a \"Kopieer\" button at the right edge that copies the code without its fences and says \"Gekopieerd\" or \"Kopiëren mislukt\", as the code viewer does. In an editable editor the button is no tab stop (select and copy is the keyboard route); read-only or disabled it can be focused. Without a secure context there is no button. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. An @-mention typeahead (mentionSource) collapses to an atomic token, further typeahead lists on their own trigger (typeaheads) write what you tell them to, and a W3C-style annotation overlay (annotations) marks ranges with a light tint and a count badge without touching the underlying text. To show the value, render the markdown into nldd-rich-text, which uses the same type, bold and code as the editor. A mention is stored as `[@Name](user:id)`: turn it into `<a href=\"…\" data-mention>Name</a>` (or a `span` when there is no page for the person), without the `@`. A link reads as the same token there; a span keeps the color and the icon without the tint.",
20496
+ "name": "NLDDTextEditor",
20497
+ "members": [
19313
20498
  {
19314
20499
  "kind": "field",
19315
20500
  "name": "noSpellcheck",
@@ -19331,15 +20516,6 @@
19331
20516
  "attribute": "wrap",
19332
20517
  "reflects": true
19333
20518
  },
19334
- {
19335
- "kind": "field",
19336
- "name": "rows",
19337
- "type": {
19338
- "text": "number"
19339
- },
19340
- "default": "6",
19341
- "attribute": "rows"
19342
- },
19343
20519
  {
19344
20520
  "kind": "field",
19345
20521
  "name": "resize",
@@ -19362,12 +20538,13 @@
19362
20538
  },
19363
20539
  {
19364
20540
  "kind": "field",
19365
- "name": "accessibleLabel",
20541
+ "name": "syntax",
19366
20542
  "type": {
19367
- "text": "string"
20543
+ "text": "TextEditorSyntax"
19368
20544
  },
19369
- "default": "''",
19370
- "attribute": "accessible-label"
20545
+ "default": "'visible'",
20546
+ "attribute": "syntax",
20547
+ "reflects": true
19371
20548
  },
19372
20549
  {
19373
20550
  "kind": "field",
@@ -19432,17 +20609,6 @@
19432
20609
  "description": "Override translation keys for the editor's assistive-tech strings (the\nopen-in-new-tab link badge and the annotation count badge). Unset keys fall\nback to Dutch.",
19433
20610
  "attribute": "translations"
19434
20611
  },
19435
- {
19436
- "kind": "field",
19437
- "name": "invalid",
19438
- "type": {
19439
- "text": "boolean"
19440
- },
19441
- "default": "false",
19442
- "description": "Marks the control as invalid.\n\nAnnounced and not drawn. What is wrong belongs in an\nnldd-validation-list, in words: a red ring around a single\ncheckbox or radio would say the option is wrong, while it is the question\nthat is unanswered. `aria-invalid` still goes on the control, because\nchoosing not to show something is not a reason to keep quiet about it.",
19443
- "attribute": "invalid",
19444
- "reflects": true
19445
- },
19446
20612
  {
19447
20613
  "kind": "method",
19448
20614
  "name": "toggleBold",
@@ -19768,45 +20934,18 @@
19768
20934
  "description": "The annotations currently in the editor, in CLEAN coordinates, each quote\nre-sliced from the current text — so a consumer can persist positions that\nmoved with edits (read this on save, then write the anchors back)."
19769
20935
  },
19770
20936
  {
19771
- "kind": "method",
19772
- "name": "formValue",
19773
- "return": {
19774
- "type": {
19775
- "text": "FormValue"
19776
- }
20937
+ "kind": "field",
20938
+ "name": "describedByElements",
20939
+ "type": {
20940
+ "text": "readonly Element[]"
19777
20941
  },
19778
- "description": "The value submitted under `name`; `null` submits nothing. Override.",
20942
+ "default": "[]",
20943
+ "description": "Set by nldd-form-field. A consumer never writes this.",
19779
20944
  "inheritedFrom": {
19780
- "name": "FormAssociated",
19781
- "module": "src/utilities/form-associated-mixin.ts"
19782
- }
19783
- },
19784
- {
19785
- "kind": "method",
19786
- "name": "formResetCallback",
19787
- "return": {
19788
- "type": {
19789
- "text": "void"
19790
- }
20945
+ "name": "DescribedBy",
20946
+ "module": "src/utilities/described-by-mixin.ts"
19791
20947
  }
19792
20948
  },
19793
- {
19794
- "kind": "method",
19795
- "name": "formStateRestoreCallback",
19796
- "return": {
19797
- "type": {
19798
- "text": "void"
19799
- }
19800
- },
19801
- "parameters": [
19802
- {
19803
- "name": "state",
19804
- "type": {
19805
- "text": "File | string | FormData | null"
19806
- }
19807
- }
19808
- ]
19809
- },
19810
20949
  {
19811
20950
  "kind": "method",
19812
20951
  "name": "describedTarget",
@@ -19815,23 +20954,10 @@
19815
20954
  "text": "Element | null"
19816
20955
  }
19817
20956
  },
19818
- "description": "CodeMirror builds the textbox; the host is only its container.",
19819
- "inheritedFrom": {
19820
- "name": "DescribedBy",
19821
- "module": "src/utilities/described-by-mixin.ts"
19822
- }
19823
- },
19824
- {
19825
- "kind": "field",
19826
- "name": "describedByElements",
19827
- "type": {
19828
- "text": "readonly Element[]"
19829
- },
19830
- "default": "[]",
19831
- "description": "Set by nldd-form-field. A consumer never writes this.",
20957
+ "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.",
19832
20958
  "inheritedFrom": {
19833
- "name": "DescribedBy",
19834
- "module": "src/utilities/described-by-mixin.ts"
20959
+ "name": "NLDDCodeMirrorInput",
20960
+ "module": "src/utilities/codemirror/codemirror-input.ts"
19835
20961
  }
19836
20962
  },
19837
20963
  {
@@ -19856,6 +20982,20 @@
19856
20982
  "module": "src/utilities/form-associated-mixin.ts"
19857
20983
  }
19858
20984
  },
20985
+ {
20986
+ "kind": "method",
20987
+ "name": "formValue",
20988
+ "return": {
20989
+ "type": {
20990
+ "text": "FormValue"
20991
+ }
20992
+ },
20993
+ "description": "The value submitted under `name`; `null` submits nothing. Override.",
20994
+ "inheritedFrom": {
20995
+ "name": "NLDDCodeMirrorInput",
20996
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20997
+ }
20998
+ },
19859
20999
  {
19860
21000
  "kind": "method",
19861
21001
  "name": "formState",
@@ -19968,154 +21108,280 @@
19968
21108
  "name": "FormAssociated",
19969
21109
  "module": "src/utilities/form-associated-mixin.ts"
19970
21110
  }
19971
- }
19972
- ],
19973
- "events": [
19974
- {
19975
- "name": "input",
19976
- "description": "When the content changes (detail: { value })"
19977
- },
19978
- {
19979
- "name": "change",
19980
- "description": "When the content is committed on blur (detail: { value })"
19981
- },
19982
- {
19983
- "name": "nldd-text-editor-state",
19984
- "description": "When the selection or content changes (detail: TextEditorState), for toolbar toggle state"
19985
21111
  },
19986
21112
  {
19987
- "name": "nldd-text-editor-mention",
19988
- "description": "When an @-mention is inserted (detail: MentionInsertedDetail with id, text, from, to; clean offsets, like getSelection())"
21113
+ "kind": "field",
21114
+ "name": "shadowRootOptions",
21115
+ "type": {
21116
+ "text": "object"
21117
+ },
21118
+ "static": true,
21119
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }",
21120
+ "inheritedFrom": {
21121
+ "name": "NLDDCodeMirrorInput",
21122
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21123
+ }
19989
21124
  },
19990
21125
  {
19991
- "name": "nldd-text-editor-typeahead",
19992
- "description": "When a candidate from one of the `typeaheads` is chosen (detail: TypeaheadChosenDetail with trigger, candidate, from, to; clean offsets)"
21126
+ "kind": "field",
21127
+ "name": "isFormInput",
21128
+ "type": {
21129
+ "text": "boolean"
21130
+ },
21131
+ "static": true,
21132
+ "default": "true",
21133
+ "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.",
21134
+ "inheritedFrom": {
21135
+ "name": "NLDDCodeMirrorInput",
21136
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21137
+ }
19993
21138
  },
19994
21139
  {
19995
- "name": "nldd-text-editor-annotation-click",
19996
- "description": "When an annotation's count badge is clicked (detail: { ids: string[], rect: DOMRect }); rect is the badge's viewport box so a consumer can anchor its own note UI to it"
19997
- }
19998
- ],
19999
- "attributes": [
20000
- {
21140
+ "kind": "field",
20001
21141
  "name": "value",
20002
21142
  "type": {
20003
21143
  "text": "string"
20004
21144
  },
20005
21145
  "default": "''",
20006
- "fieldName": "value",
20007
- "description": "Editor content (markdown)"
21146
+ "attribute": "value",
21147
+ "inheritedFrom": {
21148
+ "name": "NLDDCodeMirrorInput",
21149
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21150
+ }
20008
21151
  },
20009
21152
  {
20010
- "name": "input-id",
21153
+ "kind": "field",
21154
+ "name": "inputId",
20011
21155
  "type": {
20012
21156
  "text": "string"
20013
21157
  },
20014
21158
  "default": "''",
20015
- "fieldName": "inputId",
20016
- "description": "Sets the id on the editable element. Set automatically by nldd-form-field."
21159
+ "attribute": "input-id",
21160
+ "inheritedFrom": {
21161
+ "name": "NLDDCodeMirrorInput",
21162
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21163
+ }
20017
21164
  },
20018
21165
  {
21166
+ "kind": "field",
20019
21167
  "name": "placeholder",
20020
21168
  "type": {
20021
21169
  "text": "string"
20022
21170
  },
20023
21171
  "default": "''",
20024
- "fieldName": "placeholder",
20025
- "description": "Placeholder text shown while empty"
21172
+ "attribute": "placeholder",
21173
+ "reflects": true,
21174
+ "inheritedFrom": {
21175
+ "name": "NLDDCodeMirrorInput",
21176
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21177
+ }
20026
21178
  },
20027
21179
  {
21180
+ "kind": "field",
20028
21181
  "name": "disabled",
20029
21182
  "type": {
20030
21183
  "text": "boolean"
20031
21184
  },
20032
21185
  "default": "false",
20033
- "fieldName": "disabled",
20034
- "description": "Disabled state"
21186
+ "attribute": "disabled",
21187
+ "reflects": true,
21188
+ "inheritedFrom": {
21189
+ "name": "NLDDCodeMirrorInput",
21190
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21191
+ }
20035
21192
  },
20036
21193
  {
21194
+ "kind": "field",
20037
21195
  "name": "name",
20038
21196
  "type": {
20039
21197
  "text": "string"
20040
21198
  },
20041
21199
  "default": "''",
20042
- "fieldName": "name",
20043
- "description": "Field name for form submission"
21200
+ "attribute": "name",
21201
+ "reflects": true,
21202
+ "inheritedFrom": {
21203
+ "name": "NLDDCodeMirrorInput",
21204
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21205
+ }
20044
21206
  },
20045
21207
  {
21208
+ "kind": "field",
20046
21209
  "name": "readonly",
20047
21210
  "type": {
20048
21211
  "text": "boolean"
20049
21212
  },
20050
21213
  "default": "false",
20051
- "fieldName": "readonly",
20052
- "description": "Readonly state (focusable and selectable, not editable)"
21214
+ "attribute": "readonly",
21215
+ "reflects": true,
21216
+ "inheritedFrom": {
21217
+ "name": "NLDDCodeMirrorInput",
21218
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21219
+ }
20053
21220
  },
20054
21221
  {
21222
+ "kind": "field",
20055
21223
  "name": "required",
20056
21224
  "type": {
20057
21225
  "text": "boolean"
20058
21226
  },
20059
21227
  "default": "false",
20060
- "fieldName": "required",
20061
- "description": "Required state"
20062
- },
20063
- {
20064
- "name": "no-spellcheck",
20065
- "type": {
20066
- "text": "boolean"
20067
- },
20068
- "default": "false",
20069
- "description": "Turns spellchecking off. It is on by default, like the other text fields, and leaves out what is not running text: inline code and code blocks, the address of a link and a bare URL (the link text is checked), and mentions. Autocorrect and autocapitalize follow the user's own settings, as in the other fields, also with `no-spellcheck`. Two limits come from the browser: text that was already there is checked once you edit near it, not when the editor opens (the editor lives in a shadow root; Firefox only checks around the caret), and markup that changes how a line is built, such as starting a list item, hides the underlines on that line until you type on.",
20070
- "fieldName": "noSpellcheck"
20071
- },
20072
- {
20073
- "name": "wrap",
20074
- "type": {
20075
- "text": "boolean"
20076
- },
20077
- "default": "true",
20078
- "fieldName": "wrap",
20079
- "description": "Wrap long lines (default true; prose wraps)"
21228
+ "attribute": "required",
21229
+ "reflects": true,
21230
+ "inheritedFrom": {
21231
+ "name": "NLDDCodeMirrorInput",
21232
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21233
+ }
20080
21234
  },
20081
21235
  {
21236
+ "kind": "field",
20082
21237
  "name": "rows",
20083
21238
  "type": {
20084
21239
  "text": "number"
20085
21240
  },
20086
21241
  "default": "6",
20087
- "fieldName": "rows",
20088
- "description": "Minimum visible rows (the floor in every resize mode). Default: 6."
20089
- },
20090
- {
20091
- "name": "resize",
20092
- "type": {
20093
- "text": "ResizeMode"
20094
- },
20095
- "default": "'auto'",
20096
- "fieldName": "resize",
20097
- "description": "'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default)"
20098
- },
20099
- {
20100
- "name": "appearance",
20101
- "type": {
20102
- "text": "TextEditorAppearance"
20103
- },
20104
- "default": "'simple'",
20105
- "fieldName": "appearance",
20106
- "description": "'simple' (default, bare) | 'input-field' (framed surface)"
21242
+ "attribute": "rows",
21243
+ "inheritedFrom": {
21244
+ "name": "NLDDCodeMirrorInput",
21245
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21246
+ }
20107
21247
  },
20108
21248
  {
20109
- "name": "accessible-label",
21249
+ "kind": "field",
21250
+ "name": "accessibleLabel",
20110
21251
  "type": {
20111
21252
  "text": "string"
20112
21253
  },
20113
21254
  "default": "''",
20114
- "fieldName": "accessibleLabel",
20115
- "description": "Accessible label forwarded to the editor. Set automatically by nldd-form-field."
21255
+ "attribute": "accessible-label",
21256
+ "inheritedFrom": {
21257
+ "name": "NLDDCodeMirrorInput",
21258
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21259
+ }
20116
21260
  },
20117
21261
  {
20118
- "name": "annotatable",
21262
+ "kind": "field",
21263
+ "name": "invalid",
21264
+ "type": {
21265
+ "text": "boolean"
21266
+ },
21267
+ "default": "false",
21268
+ "description": "Marks the control as invalid.\n\nAnnounced and not drawn. What is wrong belongs in an\nnldd-validation-list, in words: a red ring around a single\ncheckbox or radio would say the option is wrong, while it is the question\nthat is unanswered. `aria-invalid` still goes on the control, because\nchoosing not to show something is not a reason to keep quiet about it.",
21269
+ "attribute": "invalid",
21270
+ "reflects": true,
21271
+ "inheritedFrom": {
21272
+ "name": "NLDDCodeMirrorInput",
21273
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21274
+ }
21275
+ },
21276
+ {
21277
+ "kind": "method",
21278
+ "name": "formResetCallback",
21279
+ "return": {
21280
+ "type": {
21281
+ "text": "void"
21282
+ }
21283
+ },
21284
+ "inheritedFrom": {
21285
+ "name": "NLDDCodeMirrorInput",
21286
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21287
+ }
21288
+ },
21289
+ {
21290
+ "kind": "method",
21291
+ "name": "formStateRestoreCallback",
21292
+ "return": {
21293
+ "type": {
21294
+ "text": "void"
21295
+ }
21296
+ },
21297
+ "parameters": [
21298
+ {
21299
+ "name": "state",
21300
+ "type": {
21301
+ "text": "File | string | FormData | null"
21302
+ }
21303
+ }
21304
+ ],
21305
+ "inheritedFrom": {
21306
+ "name": "NLDDCodeMirrorInput",
21307
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21308
+ }
21309
+ }
21310
+ ],
21311
+ "events": [
21312
+ {
21313
+ "name": "input",
21314
+ "description": "When the content changes (detail: { value })"
21315
+ },
21316
+ {
21317
+ "name": "change",
21318
+ "description": "When the content is committed on blur (detail: { value })"
21319
+ },
21320
+ {
21321
+ "name": "nldd-text-editor-state",
21322
+ "description": "When the selection or content changes (detail: TextEditorState), for toolbar toggle state"
21323
+ },
21324
+ {
21325
+ "name": "nldd-text-editor-mention",
21326
+ "description": "When an @-mention is inserted (detail: MentionInsertedDetail with id, text, from, to; clean offsets, like getSelection())"
21327
+ },
21328
+ {
21329
+ "name": "nldd-text-editor-typeahead",
21330
+ "description": "When a candidate from one of the `typeaheads` is chosen (detail: TypeaheadChosenDetail with trigger, candidate, from, to; clean offsets)"
21331
+ },
21332
+ {
21333
+ "name": "nldd-text-editor-annotation-click",
21334
+ "description": "When an annotation's count badge is clicked (detail: { ids: string[], rect: DOMRect }); rect is the badge's viewport box so a consumer can anchor its own note UI to it"
21335
+ }
21336
+ ],
21337
+ "attributes": [
21338
+ {
21339
+ "name": "no-spellcheck",
21340
+ "type": {
21341
+ "text": "boolean"
21342
+ },
21343
+ "default": "false",
21344
+ "description": "Turns spellchecking off. It is on by default, like the other text fields, and leaves out what is not running text: inline code and code blocks, the address of a link and a bare URL (the link text is checked), and mentions. Autocorrect and autocapitalize follow the user's own settings, as in the other fields, also with `no-spellcheck`. Two limits come from the browser: text that was already there is checked once you edit near it, not when the editor opens (the editor lives in a shadow root; Firefox only checks around the caret), and markup that changes how a line is built, such as starting a list item, hides the underlines on that line until you type on.",
21345
+ "fieldName": "noSpellcheck"
21346
+ },
21347
+ {
21348
+ "name": "wrap",
21349
+ "type": {
21350
+ "text": "boolean"
21351
+ },
21352
+ "default": "true",
21353
+ "fieldName": "wrap",
21354
+ "description": "Wrap long lines (default true; prose wraps)"
21355
+ },
21356
+ {
21357
+ "name": "resize",
21358
+ "type": {
21359
+ "text": "ResizeMode"
21360
+ },
21361
+ "default": "'auto'",
21362
+ "fieldName": "resize",
21363
+ "description": "'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default)"
21364
+ },
21365
+ {
21366
+ "name": "appearance",
21367
+ "type": {
21368
+ "text": "TextEditorAppearance"
21369
+ },
21370
+ "default": "'simple'",
21371
+ "fieldName": "appearance",
21372
+ "description": "'simple' (default, bare) | 'input-field' (framed surface)"
21373
+ },
21374
+ {
21375
+ "name": "syntax",
21376
+ "type": {
21377
+ "text": "TextEditorSyntax"
21378
+ },
21379
+ "default": "'visible'",
21380
+ "fieldName": "syntax",
21381
+ "description": "'visible' (default): every formatting mark stays in view, dimmed, a bullet as the character you typed (`-`, `*` or `+`). 'hidden': the marks of bold, italic, strikethrough, inline code, links and the `#` of a heading are hidden and come back where the caret or the selection touches that construct, so the text reads closer to the result while what you edit is still the markdown. A bullet reads as a dot, and shows its character on the line the caret is on. A quote reads as a line on the left; with the caret anywhere in it, its `>` marks show instead, in the same place. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way."
21382
+ },
21383
+ {
21384
+ "name": "annotatable",
20119
21385
  "type": {
20120
21386
  "text": "boolean"
20121
21387
  },
@@ -20129,32 +21395,143 @@
20129
21395
  "text": "Partial<NLDDTextEditorTranslations>"
20130
21396
  },
20131
21397
  "default": "{}",
20132
- "description": "Override the editor's assistive-tech strings (the open-in-new-tab link badge and the annotation count badge). Unset keys fall back to Dutch.",
21398
+ "description": "Override the editor's assistive-tech strings (the open-in-new-tab link badge, the annotation count badge, the label of a task's box and the copy button of a code block). Unset keys fall back to Dutch.",
20133
21399
  "fieldName": "translations"
20134
21400
  },
20135
21401
  {
20136
- "name": "invalid",
21402
+ "name": "value",
21403
+ "type": {
21404
+ "text": "string"
21405
+ },
21406
+ "default": "''",
21407
+ "fieldName": "value",
21408
+ "inheritedFrom": {
21409
+ "name": "NLDDCodeMirrorInput",
21410
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21411
+ },
21412
+ "description": "Editor content (markdown)"
21413
+ },
21414
+ {
21415
+ "name": "input-id",
21416
+ "type": {
21417
+ "text": "string"
21418
+ },
21419
+ "default": "''",
21420
+ "fieldName": "inputId",
21421
+ "inheritedFrom": {
21422
+ "name": "NLDDCodeMirrorInput",
21423
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21424
+ },
21425
+ "description": "Sets the id on the editable element. Set automatically by nldd-form-field."
21426
+ },
21427
+ {
21428
+ "name": "placeholder",
21429
+ "type": {
21430
+ "text": "string"
21431
+ },
21432
+ "default": "''",
21433
+ "fieldName": "placeholder",
21434
+ "inheritedFrom": {
21435
+ "name": "NLDDCodeMirrorInput",
21436
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21437
+ },
21438
+ "description": "Placeholder text shown while empty"
21439
+ },
21440
+ {
21441
+ "name": "disabled",
20137
21442
  "type": {
20138
21443
  "text": "boolean"
20139
21444
  },
20140
21445
  "default": "false",
20141
- "description": "Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.",
20142
- "fieldName": "invalid"
20143
- }
20144
- ],
20145
- "mixins": [
21446
+ "fieldName": "disabled",
21447
+ "inheritedFrom": {
21448
+ "name": "NLDDCodeMirrorInput",
21449
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21450
+ },
21451
+ "description": "Disabled state"
21452
+ },
20146
21453
  {
20147
- "name": "DescribedBy",
20148
- "module": "/src/utilities/described-by-mixin.js"
21454
+ "name": "name",
21455
+ "type": {
21456
+ "text": "string"
21457
+ },
21458
+ "default": "''",
21459
+ "fieldName": "name",
21460
+ "inheritedFrom": {
21461
+ "name": "NLDDCodeMirrorInput",
21462
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21463
+ },
21464
+ "description": "Field name for form submission"
20149
21465
  },
20150
21466
  {
20151
- "name": "FormAssociated",
20152
- "module": "/src/utilities/form-associated-mixin.js"
21467
+ "name": "readonly",
21468
+ "type": {
21469
+ "text": "boolean"
21470
+ },
21471
+ "default": "false",
21472
+ "fieldName": "readonly",
21473
+ "inheritedFrom": {
21474
+ "name": "NLDDCodeMirrorInput",
21475
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21476
+ },
21477
+ "description": "Readonly state (focusable and selectable, not editable)"
21478
+ },
21479
+ {
21480
+ "name": "required",
21481
+ "type": {
21482
+ "text": "boolean"
21483
+ },
21484
+ "default": "false",
21485
+ "fieldName": "required",
21486
+ "inheritedFrom": {
21487
+ "name": "NLDDCodeMirrorInput",
21488
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21489
+ },
21490
+ "description": "Required state"
21491
+ },
21492
+ {
21493
+ "name": "rows",
21494
+ "type": {
21495
+ "text": "number"
21496
+ },
21497
+ "default": "6",
21498
+ "fieldName": "rows",
21499
+ "inheritedFrom": {
21500
+ "name": "NLDDCodeMirrorInput",
21501
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21502
+ },
21503
+ "description": "Minimum visible rows (the floor in every resize mode). Default: 6."
21504
+ },
21505
+ {
21506
+ "name": "accessible-label",
21507
+ "type": {
21508
+ "text": "string"
21509
+ },
21510
+ "default": "''",
21511
+ "fieldName": "accessibleLabel",
21512
+ "inheritedFrom": {
21513
+ "name": "NLDDCodeMirrorInput",
21514
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21515
+ },
21516
+ "description": "Accessible label forwarded to the editor. Set automatically by nldd-form-field."
21517
+ },
21518
+ {
21519
+ "name": "invalid",
21520
+ "type": {
21521
+ "text": "boolean"
21522
+ },
21523
+ "default": "false",
21524
+ "description": "Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.",
21525
+ "fieldName": "invalid",
21526
+ "inheritedFrom": {
21527
+ "name": "NLDDCodeMirrorInput",
21528
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21529
+ }
20153
21530
  }
20154
21531
  ],
20155
21532
  "superclass": {
20156
- "name": "NLDDCodeMirrorElement",
20157
- "module": "/src/utilities/codemirror/codemirror-element.js"
21533
+ "name": "NLDDCodeMirrorInput",
21534
+ "module": "/src/utilities/codemirror/codemirror-input.js"
20158
21535
  },
20159
21536
  "tagName": "nldd-text-editor",
20160
21537
  "customElement": true
@@ -26083,7 +27460,7 @@
26083
27460
  "text": "string | null"
26084
27461
  },
26085
27462
  "default": "null",
26086
- "description": "Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout=\"contained\"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width=\"full\"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width=\"full\"`",
27463
+ "description": "Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout=\"contained\"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image, with more padding along its two sides so the content keeps its distance to the curve. A panel along the same edge as the rounded corner of the image stops before the curve, at the panel's padding from it; a panel along a full side, a `main-width=\"full\"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top, and the panel stands under the image, as wide as it, instead of overlapping it. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width=\"full\"`",
26087
27464
  "fieldName": "corner"
26088
27465
  },
26089
27466
  {
@@ -29142,7 +30519,7 @@
29142
30519
  "declarations": [
29143
30520
  {
29144
30521
  "kind": "class",
29145
- "description": "A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover=\"auto\") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle: <nldd-button id=\"info-trigger\" popovertarget=\"info-popover\">Info</nldd-button> <nldd-popover id=\"info-popover\" anchor=\"info-trigger\" accessible-label=\"Info\"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus.",
30522
+ "description": "A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover=\"auto\") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle: <nldd-button id=\"info-trigger\" popovertarget=\"info-popover\">Info</nldd-button> <nldd-popover id=\"info-popover\" anchor=\"info-trigger\" accessible-label=\"Info\"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus. On sm the popover is a bottom sheet that closes with Escape or a tap outside it. Where that is not enough, give its content a title bar of its own, as in a sheet: an nldd-page with an nldd-top-title-bar and a `dismiss-text`. The popover catches the dismiss of that bar and closes. It draws no bar itself.",
29146
30523
  "name": "NLDDPopover",
29147
30524
  "members": [
29148
30525
  {
@@ -36802,7 +38179,7 @@
36802
38179
  },
36803
38180
  "default": "''",
36804
38181
  "fieldName": "icon",
36805
- "description": "Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled"
38182
+ "description": "Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled"
36806
38183
  },
36807
38184
  {
36808
38185
  "name": "text",
@@ -37533,7 +38910,7 @@
37533
38910
  "declarations": [
37534
38911
  {
37535
38912
  "kind": "class",
37536
- "description": "A short message that arrives over the interface and leaves on its own: a save that worked, a request that failed. Not a banner, which stands in the page and stays there — this one floats, stacks, and goes away. It places itself. Write it wherever it belongs in your code and it moves to one shared area: top right from md, full width across the top below that. Nothing about the position is settable, so notifications from anywhere in an application land in the same place and stack in the same order. A modal overlay is the one thing that moves it. An nldd-sheet, nldd-window or nldd-modal-dialog paints in the browser's top layer, above the whole page and out of reach of any z-index, and while one is open everything outside it is inert. So the area goes in: into the topmost overlay that is open, and back down as they close. A notification already on screen travels with it, and one raised from inside a sheet is readable and reachable where it is raised. More than one is a deck, not a list: the front one is readable and the older ones peek out below it, so a burst of messages takes the room of roughly one. The newest is in front. Behind it a notification is a bare surface, cut to the height of the one in front; dismiss the front and it slides up into the place that came free while its message fades in, because it was standing there all along. Under the front notification sits a strip as wide as the deck and as tall as the deck is when it fans out. Pointing at it fans the deck out to fill it, which is the only hint that there is more here than the message you can read; clicking it, or moving focus into the area, lays the whole deck out as a list. Clicking or tabbing away puts it back. The notification itself is not a button: a click on the message you are reading does nothing. Only the front of the deck counts down, and only while the deck is closed: open means someone is reading. The rest wait, so nothing disappears from under the one you are reading. `critical` never leaves on its own: a failure is worth reading, and the count-down would take it away while you were. That also keeps this within WCAG 2.2.1, which allows a time limit when what disappears is not essential. The clock pauses while a pointer moves over the notification and while focus is inside it, and resumes where it left off rather than starting over. A pointer that merely happens to rest where the notification appears does not count: it never moved, so nobody is reading. role follows the variant: `critical` becomes role=\"alert\", the rest role=\"status\". Focus never moves on its own. Escape dismisses the notification that focus is in. `NLDDNotification.show({ text, supportingText, variant, icon, duration, actions })` raises a notification without an element to manage: it creates one, shows it, and removes it once it is dismissed. An action is `{ text, onClick }`, at most 2, and a click on one also takes the notification away. It returns a handle with `dismiss()` and `update(options)`. An update changes the message, puts the notification in front and starts its clock over, so a status that changes often is one notification that keeps up instead of a new one sliding in each time; one that has already left arrives again. Use `show()` from a framework. Because a notification places itself, an element that a framework rendered is no longer where that framework left it: a keyed list (`v-for` with a `:key`) then fails on its next render, and a removed row leaves its notification on screen.",
38913
+ "description": "A short message that arrives over the interface and leaves on its own: a save that worked, a request that failed. Not a banner, which stands in the page and stays there — this one floats, stacks, and goes away. It places itself. Write it wherever it belongs in your code and it moves to one shared area: top right from md, where it slides in from the right, and full width across the top below that, where it drops in from the top. Nothing about the position is settable, so notifications from anywhere in an application land in the same place and stack in the same order. A modal overlay is the one thing that moves it. An nldd-sheet, nldd-window or nldd-modal-dialog paints in the browser's top layer, above the whole page and out of reach of any z-index, and while one is open everything outside it is inert. So the area goes in: into the topmost overlay that is open, and back down as they close. A notification already on screen travels with it, and one raised from inside a sheet is readable and reachable where it is raised. More than one is a deck, not a list: the front one is readable and the older ones peek out below it, so a burst of messages takes the room of roughly one. The newest is in front. Behind it a notification is a bare surface, cut to the height of the one in front; dismiss the front and it slides up into the place that came free while its message fades in, because it was standing there all along. Under the front notification sits a strip as wide as the deck and as tall as the deck is when it fans out. Pointing at it fans the deck out to fill it, which is the only hint that there is more here than the message you can read; clicking it, or moving focus into the area, lays the whole deck out as a list. Clicking or tabbing away puts it back. The notification itself is not a button: a click on the message you are reading does nothing. Only the front of the deck counts down, and only while the deck is closed: open means someone is reading. The rest wait, so nothing disappears from under the one you are reading. `critical` never leaves on its own: a failure is worth reading, and the count-down would take it away while you were. That also keeps this within WCAG 2.2.1, which allows a time limit when what disappears is not essential. The clock pauses while a pointer moves over the notification and while focus is inside it, and resumes where it left off rather than starting over. A pointer that merely happens to rest where the notification appears does not count: it never moved, so nobody is reading. role follows the variant: `critical` becomes role=\"alert\", the rest role=\"status\". Focus never moves on its own. Escape dismisses the notification that focus is in. `NLDDNotification.show({ text, supportingText, variant, icon, duration, actions })` raises a notification without an element to manage: it creates one, shows it, and removes it once it is dismissed. An action is `{ text, onClick }`, at most 2, and a click on one also takes the notification away. It returns a handle with `dismiss()` and `update(options)`. An update changes the message, puts the notification in front and starts its clock over, so a status that changes often is one notification that keeps up instead of a new one sliding in each time; one that has already left arrives again. Use `show()` from a framework. Because a notification places itself, an element that a framework rendered is no longer where that framework left it: a keyed list (`v-for` with a `:key`) then fails on its next render, and a removed row leaves its notification on screen.",
37537
38914
  "name": "NLDDNotification",
37538
38915
  "members": [
37539
38916
  {
@@ -37642,7 +39019,7 @@
37642
39019
  },
37643
39020
  "default": "''",
37644
39021
  "fieldName": "icon",
37645
- "description": "Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled"
39022
+ "description": "Icon override. Default per variant: neutral → info-circle-filled, accent → info-circle-filled, success → check-mark-circle-filled, warning → exclamation-triangle-filled, critical → exclamation-circle-filled"
37646
39023
  },
37647
39024
  {
37648
39025
  "name": "text",
@@ -39035,6 +40412,738 @@
39035
40412
  }
39036
40413
  ]
39037
40414
  },
40415
+ {
40416
+ "kind": "javascript-module",
40417
+ "path": "src/utilities/carried-context.ts",
40418
+ "declarations": [
40419
+ {
40420
+ "kind": "function",
40421
+ "name": "carryContext",
40422
+ "return": {
40423
+ "type": {
40424
+ "text": "void"
40425
+ }
40426
+ },
40427
+ "parameters": [
40428
+ {
40429
+ "name": "element",
40430
+ "type": {
40431
+ "text": "HTMLElement"
40432
+ }
40433
+ },
40434
+ {
40435
+ "name": "origin",
40436
+ "type": {
40437
+ "text": "Element | null"
40438
+ }
40439
+ }
40440
+ ],
40441
+ "description": "Gives `element` the color scheme and language of `origin`. Call it each\ntime the element shows, since the page around the origin may have changed."
40442
+ },
40443
+ {
40444
+ "kind": "function",
40445
+ "name": "releaseContext",
40446
+ "return": {
40447
+ "type": {
40448
+ "text": "void"
40449
+ }
40450
+ },
40451
+ "parameters": [
40452
+ {
40453
+ "name": "element",
40454
+ "type": {
40455
+ "text": "HTMLElement"
40456
+ }
40457
+ }
40458
+ ],
40459
+ "description": "Takes back what `carryContext` wrote, for an element returned to its place."
40460
+ }
40461
+ ],
40462
+ "exports": [
40463
+ {
40464
+ "kind": "js",
40465
+ "name": "carryContext",
40466
+ "declaration": {
40467
+ "name": "carryContext",
40468
+ "module": "src/utilities/carried-context.ts"
40469
+ }
40470
+ },
40471
+ {
40472
+ "kind": "js",
40473
+ "name": "releaseContext",
40474
+ "declaration": {
40475
+ "name": "releaseContext",
40476
+ "module": "src/utilities/carried-context.ts"
40477
+ }
40478
+ }
40479
+ ]
40480
+ },
40481
+ {
40482
+ "kind": "javascript-module",
40483
+ "path": "src/utilities/codemirror/codemirror-input.ts",
40484
+ "declarations": [
40485
+ {
40486
+ "kind": "class",
40487
+ "description": "Shared base for the CodeMirror editors that are form controls\n(nldd-code-editor, nldd-text-editor). nldd-code-viewer is not one, so this\nsits between NLDDCodeMirrorElement and the two editors.\n\nIt owns what a form control needs and both editors did the same way: the\nvalue and its `input`/`change` events, editable and read-only, the\nplaceholder, the textbox attributes (label, id, aria-readonly,\naria-required), form association and reset, a press on the padding that\nstarts editing, and the warning for a missing label. A subclass adds its own\nextensions after `inputExtensions()` and can shape three things:\n`docToValue()`, `contentAttributes()` and `beforeChangeCheck()`.",
40488
+ "name": "NLDDCodeMirrorInput",
40489
+ "members": [
40490
+ {
40491
+ "kind": "field",
40492
+ "name": "shadowRootOptions",
40493
+ "type": {
40494
+ "text": "object"
40495
+ },
40496
+ "static": true,
40497
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
40498
+ },
40499
+ {
40500
+ "kind": "field",
40501
+ "name": "isFormInput",
40502
+ "type": {
40503
+ "text": "boolean"
40504
+ },
40505
+ "static": true,
40506
+ "default": "true",
40507
+ "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."
40508
+ },
40509
+ {
40510
+ "kind": "field",
40511
+ "name": "value",
40512
+ "type": {
40513
+ "text": "string"
40514
+ },
40515
+ "default": "''",
40516
+ "attribute": "value"
40517
+ },
40518
+ {
40519
+ "kind": "field",
40520
+ "name": "inputId",
40521
+ "type": {
40522
+ "text": "string"
40523
+ },
40524
+ "default": "''",
40525
+ "attribute": "input-id"
40526
+ },
40527
+ {
40528
+ "kind": "field",
40529
+ "name": "placeholder",
40530
+ "type": {
40531
+ "text": "string"
40532
+ },
40533
+ "default": "''",
40534
+ "attribute": "placeholder",
40535
+ "reflects": true
40536
+ },
40537
+ {
40538
+ "kind": "field",
40539
+ "name": "disabled",
40540
+ "type": {
40541
+ "text": "boolean"
40542
+ },
40543
+ "default": "false",
40544
+ "attribute": "disabled",
40545
+ "reflects": true
40546
+ },
40547
+ {
40548
+ "kind": "field",
40549
+ "name": "name",
40550
+ "type": {
40551
+ "text": "string"
40552
+ },
40553
+ "default": "''",
40554
+ "attribute": "name",
40555
+ "reflects": true
40556
+ },
40557
+ {
40558
+ "kind": "field",
40559
+ "name": "readonly",
40560
+ "type": {
40561
+ "text": "boolean"
40562
+ },
40563
+ "default": "false",
40564
+ "attribute": "readonly",
40565
+ "reflects": true
40566
+ },
40567
+ {
40568
+ "kind": "field",
40569
+ "name": "required",
40570
+ "type": {
40571
+ "text": "boolean"
40572
+ },
40573
+ "default": "false",
40574
+ "attribute": "required",
40575
+ "reflects": true
40576
+ },
40577
+ {
40578
+ "kind": "field",
40579
+ "name": "rows",
40580
+ "type": {
40581
+ "text": "number"
40582
+ },
40583
+ "default": "6",
40584
+ "attribute": "rows"
40585
+ },
40586
+ {
40587
+ "kind": "field",
40588
+ "name": "accessibleLabel",
40589
+ "type": {
40590
+ "text": "string"
40591
+ },
40592
+ "default": "''",
40593
+ "attribute": "accessible-label"
40594
+ },
40595
+ {
40596
+ "kind": "field",
40597
+ "name": "invalid",
40598
+ "type": {
40599
+ "text": "boolean"
40600
+ },
40601
+ "default": "false",
40602
+ "description": "Marks the control as invalid.\n\nAnnounced and not drawn. What is wrong belongs in an\nnldd-validation-list, in words: a red ring around a single\ncheckbox or radio would say the option is wrong, while it is the question\nthat is unanswered. `aria-invalid` still goes on the control, because\nchoosing not to show something is not a reason to keep quiet about it.",
40603
+ "attribute": "invalid",
40604
+ "reflects": true
40605
+ },
40606
+ {
40607
+ "kind": "field",
40608
+ "name": "_initialValue",
40609
+ "type": {
40610
+ "text": "string"
40611
+ },
40612
+ "privacy": "private",
40613
+ "default": "''"
40614
+ },
40615
+ {
40616
+ "kind": "field",
40617
+ "name": "_valueAtFocus",
40618
+ "type": {
40619
+ "text": "string"
40620
+ },
40621
+ "privacy": "private",
40622
+ "default": "''"
40623
+ },
40624
+ {
40625
+ "kind": "field",
40626
+ "name": "_accessibleLabelWarned",
40627
+ "type": {
40628
+ "text": "boolean"
40629
+ },
40630
+ "privacy": "private",
40631
+ "default": "false"
40632
+ },
40633
+ {
40634
+ "kind": "field",
40635
+ "name": "_editableCompartment",
40636
+ "privacy": "private",
40637
+ "default": "new Compartment()"
40638
+ },
40639
+ {
40640
+ "kind": "field",
40641
+ "name": "_placeholderCompartment",
40642
+ "privacy": "private",
40643
+ "default": "new Compartment()"
40644
+ },
40645
+ {
40646
+ "kind": "field",
40647
+ "name": "_attrsCompartment",
40648
+ "privacy": "private",
40649
+ "default": "new Compartment()"
40650
+ },
40651
+ {
40652
+ "kind": "field",
40653
+ "name": "rowsProperty",
40654
+ "type": {
40655
+ "text": "string"
40656
+ },
40657
+ "privacy": "protected",
40658
+ "readonly": true,
40659
+ "description": "The custom property the visible row count goes into, named after the tag."
40660
+ },
40661
+ {
40662
+ "kind": "method",
40663
+ "name": "docToValue",
40664
+ "privacy": "protected",
40665
+ "return": {
40666
+ "type": {
40667
+ "text": "string"
40668
+ }
40669
+ },
40670
+ "parameters": [
40671
+ {
40672
+ "name": "doc",
40673
+ "type": {
40674
+ "text": "string"
40675
+ }
40676
+ }
40677
+ ],
40678
+ "description": "The value for a document. Default: the document itself."
40679
+ },
40680
+ {
40681
+ "kind": "method",
40682
+ "name": "contentAttributes",
40683
+ "privacy": "protected",
40684
+ "return": {
40685
+ "type": {
40686
+ "text": "Record<string, string>"
40687
+ }
40688
+ },
40689
+ "description": "Attributes of the content element beyond label, id, aria-readonly and\naria-required. Default: none."
40690
+ },
40691
+ {
40692
+ "kind": "method",
40693
+ "name": "beforeChangeCheck",
40694
+ "privacy": "protected",
40695
+ "return": {
40696
+ "type": {
40697
+ "text": "void"
40698
+ }
40699
+ },
40700
+ "parameters": [
40701
+ {
40702
+ "name": "_view",
40703
+ "type": {
40704
+ "text": "EditorView"
40705
+ }
40706
+ }
40707
+ ],
40708
+ "description": "Runs on blur, before the value is compared with the one at focus, so a\nsubclass can settle the document first. Default: nothing."
40709
+ },
40710
+ {
40711
+ "kind": "method",
40712
+ "name": "inputExtensions",
40713
+ "privacy": "protected",
40714
+ "return": {
40715
+ "type": {
40716
+ "text": "Extension[]"
40717
+ }
40718
+ },
40719
+ "description": "The extensions every input needs. A subclass puts these in its own\n`buildExtensions()`, next to what is its own."
40720
+ },
40721
+ {
40722
+ "kind": "method",
40723
+ "name": "_editableExtension",
40724
+ "privacy": "private",
40725
+ "return": {
40726
+ "type": {
40727
+ "text": "Extension"
40728
+ }
40729
+ }
40730
+ },
40731
+ {
40732
+ "kind": "method",
40733
+ "name": "_placeholderExtension",
40734
+ "privacy": "private",
40735
+ "return": {
40736
+ "type": {
40737
+ "text": "Extension"
40738
+ }
40739
+ }
40740
+ },
40741
+ {
40742
+ "kind": "method",
40743
+ "name": "_attrsExtension",
40744
+ "privacy": "private",
40745
+ "return": {
40746
+ "type": {
40747
+ "text": "Extension"
40748
+ }
40749
+ }
40750
+ },
40751
+ {
40752
+ "kind": "method",
40753
+ "name": "refreshContentAttributes",
40754
+ "privacy": "protected",
40755
+ "return": {
40756
+ "type": {
40757
+ "text": "void"
40758
+ }
40759
+ },
40760
+ "description": "Build the textbox attributes again, after something `contentAttributes()`\nreads has changed."
40761
+ },
40762
+ {
40763
+ "kind": "method",
40764
+ "name": "onEditorMounted",
40765
+ "privacy": "protected",
40766
+ "return": {
40767
+ "type": {
40768
+ "text": "void"
40769
+ }
40770
+ }
40771
+ },
40772
+ {
40773
+ "kind": "method",
40774
+ "name": "_onDocChanged",
40775
+ "privacy": "private",
40776
+ "return": {
40777
+ "type": {
40778
+ "text": "void"
40779
+ }
40780
+ }
40781
+ },
40782
+ {
40783
+ "kind": "method",
40784
+ "name": "_emitChange",
40785
+ "privacy": "private",
40786
+ "return": {
40787
+ "type": {
40788
+ "text": "void"
40789
+ }
40790
+ }
40791
+ },
40792
+ {
40793
+ "kind": "field",
40794
+ "name": "_onScrollerPointerDown",
40795
+ "privacy": "private"
40796
+ },
40797
+ {
40798
+ "kind": "method",
40799
+ "name": "_checkAccessibleLabel",
40800
+ "privacy": "private",
40801
+ "return": {
40802
+ "type": {
40803
+ "text": "void"
40804
+ }
40805
+ }
40806
+ },
40807
+ {
40808
+ "kind": "method",
40809
+ "name": "formValue",
40810
+ "return": {
40811
+ "type": {
40812
+ "text": "FormValue"
40813
+ }
40814
+ },
40815
+ "description": "The value submitted under `name`; `null` submits nothing. Override.",
40816
+ "inheritedFrom": {
40817
+ "name": "FormAssociated",
40818
+ "module": "src/utilities/form-associated-mixin.ts"
40819
+ }
40820
+ },
40821
+ {
40822
+ "kind": "method",
40823
+ "name": "formResetCallback",
40824
+ "return": {
40825
+ "type": {
40826
+ "text": "void"
40827
+ }
40828
+ }
40829
+ },
40830
+ {
40831
+ "kind": "method",
40832
+ "name": "formStateRestoreCallback",
40833
+ "return": {
40834
+ "type": {
40835
+ "text": "void"
40836
+ }
40837
+ },
40838
+ "parameters": [
40839
+ {
40840
+ "name": "state",
40841
+ "type": {
40842
+ "text": "File | string | FormData | null"
40843
+ }
40844
+ }
40845
+ ]
40846
+ },
40847
+ {
40848
+ "kind": "method",
40849
+ "name": "describedTarget",
40850
+ "return": {
40851
+ "type": {
40852
+ "text": "Element | null"
40853
+ }
40854
+ },
40855
+ "description": "CodeMirror builds the textbox; the host is only its container.",
40856
+ "inheritedFrom": {
40857
+ "name": "DescribedBy",
40858
+ "module": "src/utilities/described-by-mixin.ts"
40859
+ }
40860
+ },
40861
+ {
40862
+ "kind": "field",
40863
+ "name": "describedByElements",
40864
+ "type": {
40865
+ "text": "readonly Element[]"
40866
+ },
40867
+ "default": "[]",
40868
+ "description": "Set by nldd-form-field. A consumer never writes this.",
40869
+ "inheritedFrom": {
40870
+ "name": "DescribedBy",
40871
+ "module": "src/utilities/described-by-mixin.ts"
40872
+ }
40873
+ },
40874
+ {
40875
+ "kind": "field",
40876
+ "name": "formAssociated",
40877
+ "type": {
40878
+ "text": "boolean"
40879
+ },
40880
+ "static": true,
40881
+ "default": "true",
40882
+ "inheritedFrom": {
40883
+ "name": "FormAssociated",
40884
+ "module": "src/utilities/form-associated-mixin.ts"
40885
+ }
40886
+ },
40887
+ {
40888
+ "kind": "field",
40889
+ "name": "internals",
40890
+ "readonly": true,
40891
+ "inheritedFrom": {
40892
+ "name": "FormAssociated",
40893
+ "module": "src/utilities/form-associated-mixin.ts"
40894
+ }
40895
+ },
40896
+ {
40897
+ "kind": "method",
40898
+ "name": "formState",
40899
+ "return": {
40900
+ "type": {
40901
+ "text": "FormValue | undefined"
40902
+ }
40903
+ },
40904
+ "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()`.",
40905
+ "inheritedFrom": {
40906
+ "name": "FormAssociated",
40907
+ "module": "src/utilities/form-associated-mixin.ts"
40908
+ }
40909
+ },
40910
+ {
40911
+ "kind": "method",
40912
+ "name": "commitFormValue",
40913
+ "return": {
40914
+ "type": {
40915
+ "text": "void"
40916
+ }
40917
+ },
40918
+ "description": "Commit the value now, from the handler that changed it.",
40919
+ "inheritedFrom": {
40920
+ "name": "FormAssociated",
40921
+ "module": "src/utilities/form-associated-mixin.ts"
40922
+ }
40923
+ },
40924
+ {
40925
+ "kind": "method",
40926
+ "name": "validationTarget",
40927
+ "return": {
40928
+ "type": {
40929
+ "text": "HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null"
40930
+ }
40931
+ },
40932
+ "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.",
40933
+ "inheritedFrom": {
40934
+ "name": "FormAssociated",
40935
+ "module": "src/utilities/form-associated-mixin.ts"
40936
+ }
40937
+ },
40938
+ {
40939
+ "kind": "method",
40940
+ "name": "validationAnchor",
40941
+ "return": {
40942
+ "type": {
40943
+ "text": "HTMLElement | undefined"
40944
+ }
40945
+ },
40946
+ "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.",
40947
+ "inheritedFrom": {
40948
+ "name": "FormAssociated",
40949
+ "module": "src/utilities/form-associated-mixin.ts"
40950
+ }
40951
+ },
40952
+ {
40953
+ "kind": "method",
40954
+ "name": "setCustomValidity",
40955
+ "return": {
40956
+ "type": {
40957
+ "text": "void"
40958
+ }
40959
+ },
40960
+ "parameters": [
40961
+ {
40962
+ "name": "message",
40963
+ "type": {
40964
+ "text": "string"
40965
+ }
40966
+ }
40967
+ ],
40968
+ "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.",
40969
+ "inheritedFrom": {
40970
+ "name": "FormAssociated",
40971
+ "module": "src/utilities/form-associated-mixin.ts"
40972
+ }
40973
+ },
40974
+ {
40975
+ "kind": "method",
40976
+ "name": "commitValidity",
40977
+ "return": {
40978
+ "type": {
40979
+ "text": "void"
40980
+ }
40981
+ },
40982
+ "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.",
40983
+ "inheritedFrom": {
40984
+ "name": "FormAssociated",
40985
+ "module": "src/utilities/form-associated-mixin.ts"
40986
+ }
40987
+ },
40988
+ {
40989
+ "kind": "field",
40990
+ "name": "_customValidity",
40991
+ "type": {
40992
+ "text": "string"
40993
+ },
40994
+ "privacy": "private",
40995
+ "default": "''",
40996
+ "inheritedFrom": {
40997
+ "name": "FormAssociated",
40998
+ "module": "src/utilities/form-associated-mixin.ts"
40999
+ }
41000
+ },
41001
+ {
41002
+ "kind": "method",
41003
+ "name": "formDisabledCallback",
41004
+ "return": {
41005
+ "type": {
41006
+ "text": "void"
41007
+ }
41008
+ },
41009
+ "parameters": [
41010
+ {
41011
+ "name": "disabled",
41012
+ "type": {
41013
+ "text": "boolean"
41014
+ }
41015
+ }
41016
+ ],
41017
+ "inheritedFrom": {
41018
+ "name": "FormAssociated",
41019
+ "module": "src/utilities/form-associated-mixin.ts"
41020
+ }
41021
+ }
41022
+ ],
41023
+ "events": [
41024
+ {
41025
+ "name": "input",
41026
+ "type": {
41027
+ "text": "CustomEvent"
41028
+ }
41029
+ },
41030
+ {
41031
+ "name": "change",
41032
+ "type": {
41033
+ "text": "CustomEvent"
41034
+ }
41035
+ }
41036
+ ],
41037
+ "attributes": [
41038
+ {
41039
+ "name": "value",
41040
+ "type": {
41041
+ "text": "string"
41042
+ },
41043
+ "default": "''",
41044
+ "fieldName": "value"
41045
+ },
41046
+ {
41047
+ "name": "input-id",
41048
+ "type": {
41049
+ "text": "string"
41050
+ },
41051
+ "default": "''",
41052
+ "fieldName": "inputId"
41053
+ },
41054
+ {
41055
+ "name": "placeholder",
41056
+ "type": {
41057
+ "text": "string"
41058
+ },
41059
+ "default": "''",
41060
+ "fieldName": "placeholder"
41061
+ },
41062
+ {
41063
+ "name": "disabled",
41064
+ "type": {
41065
+ "text": "boolean"
41066
+ },
41067
+ "default": "false",
41068
+ "fieldName": "disabled"
41069
+ },
41070
+ {
41071
+ "name": "name",
41072
+ "type": {
41073
+ "text": "string"
41074
+ },
41075
+ "default": "''",
41076
+ "fieldName": "name"
41077
+ },
41078
+ {
41079
+ "name": "readonly",
41080
+ "type": {
41081
+ "text": "boolean"
41082
+ },
41083
+ "default": "false",
41084
+ "fieldName": "readonly"
41085
+ },
41086
+ {
41087
+ "name": "required",
41088
+ "type": {
41089
+ "text": "boolean"
41090
+ },
41091
+ "default": "false",
41092
+ "fieldName": "required"
41093
+ },
41094
+ {
41095
+ "name": "rows",
41096
+ "type": {
41097
+ "text": "number"
41098
+ },
41099
+ "default": "6",
41100
+ "fieldName": "rows"
41101
+ },
41102
+ {
41103
+ "name": "accessible-label",
41104
+ "type": {
41105
+ "text": "string"
41106
+ },
41107
+ "default": "''",
41108
+ "fieldName": "accessibleLabel"
41109
+ },
41110
+ {
41111
+ "name": "invalid",
41112
+ "type": {
41113
+ "text": "boolean"
41114
+ },
41115
+ "default": "false",
41116
+ "description": "Marks the control as invalid.\n\nAnnounced and not drawn. What is wrong belongs in an\nnldd-validation-list, in words: a red ring around a single\ncheckbox or radio would say the option is wrong, while it is the question\nthat is unanswered. `aria-invalid` still goes on the control, because\nchoosing not to show something is not a reason to keep quiet about it.",
41117
+ "fieldName": "invalid"
41118
+ }
41119
+ ],
41120
+ "mixins": [
41121
+ {
41122
+ "name": "DescribedBy",
41123
+ "module": "/src/utilities/described-by-mixin.js"
41124
+ },
41125
+ {
41126
+ "name": "FormAssociated",
41127
+ "module": "/src/utilities/form-associated-mixin.js"
41128
+ }
41129
+ ],
41130
+ "superclass": {
41131
+ "name": "NLDDCodeMirrorElement",
41132
+ "module": "/src/utilities/codemirror/codemirror-element.js"
41133
+ }
41134
+ }
41135
+ ],
41136
+ "exports": [
41137
+ {
41138
+ "kind": "js",
41139
+ "name": "NLDDCodeMirrorInput",
41140
+ "declaration": {
41141
+ "name": "NLDDCodeMirrorInput",
41142
+ "module": "src/utilities/codemirror/codemirror-input.ts"
41143
+ }
41144
+ }
41145
+ ]
41146
+ },
39038
41147
  {
39039
41148
  "kind": "javascript-module",
39040
41149
  "path": "src/utilities/color-scheme-repaint.ts",
@@ -39237,7 +41346,7 @@
39237
41346
  }
39238
41347
  }
39239
41348
  ],
39240
- "description": "True when a bubbling `dismiss` event originates from an `nldd-top-title-bar`'s\nclose button.\n\nOverlay containers (`nldd-sheet`, `nldd-window`) listen for bubbling `dismiss`\nevents to close themselves. But nested components fire their own `dismiss` for\ntheir own element — an `nldd-token`'s remove button, an `nldd-banner`, an\n`nldd-document-tab-bar` — and those must NOT close the container. Only the\ncontainer's own top-title-bar dismiss should. This shared check keeps that rule\nidentical across every overlay container.\n\nLimitation: it matches ANY nldd-top-title-bar in the composed path, not\nspecifically the container's own. That is correct for today's one-title-bar-per\n-container usage; a nested composition with more than one title bar (a sheet\ninside a sheet, each with its own) would need the inner container to\nstopPropagation on its own dismiss so it doesn't also reach the outer one."
41349
+ "description": "True when a bubbling `dismiss` event originates from an `nldd-top-title-bar`'s\nclose button.\n\nOverlay containers (`nldd-sheet`, `nldd-window`, `nldd-popover`) listen for bubbling `dismiss`\nevents to close themselves. But nested components fire their own `dismiss` for\ntheir own element — an `nldd-token`'s remove button, an `nldd-banner`, an\n`nldd-document-tab-bar` — and those must NOT close the container. Only the\ncontainer's own top-title-bar dismiss should. This shared check keeps that rule\nidentical across every overlay container.\n\nLimitation: it matches ANY nldd-top-title-bar in the composed path, not\nspecifically the container's own. That is correct for today's one-title-bar-per\n-container usage; a nested composition with more than one title bar (a sheet\ninside a sheet, each with its own) would need the inner container to\nstopPropagation on its own dismiss so it doesn't also reach the outer one."
39241
41350
  }
39242
41351
  ],
39243
41352
  "exports": [