@nldd/design-system 0.10.0 → 0.12.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 (267) hide show
  1. package/custom-elements.json +3084 -784
  2. package/dist/components/actions/button/button.d.ts +10 -0
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.js +23 -0
  5. package/dist/components/actions/button/button.js.map +1 -1
  6. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  7. package/dist/components/actions/button/button.styles.js +22 -0
  8. package/dist/components/actions/button/button.styles.js.map +1 -1
  9. package/dist/components/actions/button/button.template.d.ts +1 -0
  10. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.template.js +20 -2
  12. package/dist/components/actions/button/button.template.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +10 -0
  14. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.js +23 -0
  16. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  18. package/dist/components/actions/icon-button/icon-button.template.js +10 -3
  19. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  20. package/dist/components/actions/menu/menu.styles.js +1 -1
  21. package/dist/components/actions/split-button/split-button.d.ts +8 -0
  22. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  23. package/dist/components/actions/split-button/split-button.js +20 -0
  24. package/dist/components/actions/split-button/split-button.js.map +1 -1
  25. package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
  26. package/dist/components/actions/split-button/split-button.template.js +4 -0
  27. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  28. package/dist/components/components.js +2857 -1993
  29. package/dist/components/content/code-viewer/code-viewer.d.ts +14 -1
  30. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  31. package/dist/components/content/code-viewer/code-viewer.diff.d.ts +40 -0
  32. package/dist/components/content/code-viewer/code-viewer.diff.d.ts.map +1 -0
  33. package/dist/components/content/code-viewer/code-viewer.diff.js +261 -0
  34. package/dist/components/content/code-viewer/code-viewer.diff.js.map +1 -0
  35. package/dist/components/content/code-viewer/code-viewer.i18n.d.ts +5 -0
  36. package/dist/components/content/code-viewer/code-viewer.i18n.d.ts.map +1 -1
  37. package/dist/components/content/code-viewer/code-viewer.i18n.js +9 -0
  38. package/dist/components/content/code-viewer/code-viewer.i18n.js.map +1 -1
  39. package/dist/components/content/code-viewer/code-viewer.js +98 -6
  40. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  41. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  42. package/dist/components/content/code-viewer/code-viewer.styles.js +134 -1
  43. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  44. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  45. package/dist/components/content/code-viewer/code-viewer.template.js +5 -4
  46. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  47. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  48. package/dist/components/content/icon/icon-aliases.js +13 -4
  49. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  50. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  51. package/dist/components/content/icon/icon-gallery-status.js +9 -0
  52. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  53. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  54. package/dist/components/content/icon/icon-registry.js +9 -2
  55. package/dist/components/content/icon/icon-registry.js.map +1 -1
  56. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
  57. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  58. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +6 -21
  59. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  60. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  61. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +3 -0
  62. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  63. package/dist/components/content/rich-text/rich-text.d.ts +10 -0
  64. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  65. package/dist/components/content/rich-text/rich-text.js +10 -0
  66. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  67. package/dist/components/content/tooltip/tooltip.d.ts +14 -0
  68. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  69. package/dist/components/content/tooltip/tooltip.js +45 -6
  70. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  71. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  72. package/dist/components/content/tooltip/tooltip.styles.js +13 -0
  73. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  74. package/dist/components/content/tooltip/tooltip.template.d.ts.map +1 -1
  75. package/dist/components/content/tooltip/tooltip.template.js +18 -2
  76. package/dist/components/content/tooltip/tooltip.template.js.map +1 -1
  77. package/dist/components/{dist-Bo5Jeyfn.js → dist-B5E3q-ea.js} +2 -1
  78. package/dist/components/{dist-DbNhCpS5.js → dist-BFw_yEMS.js} +2 -1
  79. package/dist/components/{dist-DnZmcpbQ.js → dist-BNLAXAyO.js} +2 -1
  80. package/dist/components/{dist-DkqAbJH8.js → dist-BOVSVPSz.js} +1 -1
  81. package/dist/components/{dist-Ch3gNAuT.js → dist-BPB3rWnd.js} +2 -1
  82. package/dist/components/{dist-Bud_7w5g.js → dist-BWlUmyq3.js} +34 -2869
  83. package/dist/components/dist-CC8oiVtm.js +366 -0
  84. package/dist/components/dist-COKR0tYU.js +2860 -0
  85. package/dist/components/{dist-CaxHkqR2.js → dist-Co-tsc9S.js} +4 -3
  86. package/dist/components/{dist-iC2RTM0V.js → dist-D_9ZyZ5v.js} +3 -2
  87. package/dist/components/{dist-BB5mlo7D.js → dist-Dn9pjiud.js} +3 -2
  88. package/dist/components/{dist-B2QcygzG.js → dist-Dz28se9B.js} +2 -1
  89. package/dist/components/{dist-CA0yDFIt.js → dist-IPm8ilWf.js} +3 -2
  90. package/dist/components/{icon-D_ZGezHx.js → icon-DFhgRf3P.js} +19 -7
  91. package/dist/components/{icon-button-BVhiOwX9.js → icon-button-Sxkh5cVr.js} +526 -61
  92. package/dist/components/inputs/code-editor/code-editor.d.ts +4 -54
  93. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  94. package/dist/components/inputs/code-editor/code-editor.js +22 -262
  95. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  96. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  97. package/dist/components/inputs/code-editor/code-editor.styles.js +9 -1
  98. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  99. package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
  100. package/dist/components/inputs/date-picker/date-picker.styles.js +29 -5
  101. package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
  102. package/dist/components/inputs/search-field/search-field.d.ts +11 -0
  103. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  104. package/dist/components/inputs/search-field/search-field.js +30 -1
  105. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  106. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  107. package/dist/components/inputs/search-field/search-field.styles.js +18 -0
  108. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  109. package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
  110. package/dist/components/inputs/search-field/search-field.template.js +12 -0
  111. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  112. package/dist/components/inputs/segmented-control/segmented-control.d.ts +10 -0
  113. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  114. package/dist/components/inputs/segmented-control/segmented-control.js +25 -1
  115. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  116. package/dist/components/inputs/segmented-control/segmented-control.template.d.ts.map +1 -1
  117. package/dist/components/inputs/segmented-control/segmented-control.template.js +20 -3
  118. package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
  119. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts.map +1 -1
  120. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +9 -7
  121. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js.map +1 -1
  122. package/dist/components/inputs/text-editor/text-editor.annotations.js +1 -1
  123. package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
  124. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +16 -0
  125. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -0
  126. package/dist/components/inputs/text-editor/text-editor.clipboard.js +50 -0
  127. package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -0
  128. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
  129. package/dist/components/inputs/text-editor/text-editor.commands.js +31 -58
  130. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
  131. package/dist/components/inputs/text-editor/text-editor.d.ts +17 -64
  132. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  133. package/dist/components/inputs/text-editor/text-editor.drag.d.ts.map +1 -1
  134. package/dist/components/inputs/text-editor/text-editor.drag.js +2 -1
  135. package/dist/components/inputs/text-editor/text-editor.drag.js.map +1 -1
  136. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts +3 -0
  137. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts.map +1 -0
  138. package/dist/components/inputs/text-editor/text-editor.focus-selection.js +55 -0
  139. package/dist/components/inputs/text-editor/text-editor.focus-selection.js.map +1 -0
  140. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts +6 -0
  141. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -0
  142. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +257 -0
  143. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -0
  144. package/dist/components/inputs/text-editor/text-editor.js +93 -313
  145. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  146. package/dist/components/inputs/text-editor/text-editor.keymap.d.ts +6 -0
  147. package/dist/components/inputs/text-editor/text-editor.keymap.d.ts.map +1 -0
  148. package/dist/components/inputs/text-editor/text-editor.keymap.js +38 -0
  149. package/dist/components/inputs/text-editor/text-editor.keymap.js.map +1 -0
  150. package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
  151. package/dist/components/inputs/text-editor/text-editor.links.js +11 -9
  152. package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
  153. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +1 -17
  154. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  155. package/dist/components/inputs/text-editor/text-editor.markdown.js +26 -186
  156. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  157. package/dist/components/inputs/text-editor/text-editor.mention.d.ts +52 -0
  158. package/dist/components/inputs/text-editor/text-editor.mention.d.ts.map +1 -0
  159. package/dist/components/inputs/text-editor/text-editor.mention.js +186 -0
  160. package/dist/components/inputs/text-editor/text-editor.mention.js.map +1 -0
  161. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +0 -16
  162. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
  163. package/dist/components/inputs/text-editor/text-editor.mentions.js +1 -41
  164. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  165. package/dist/components/inputs/text-editor/text-editor.selection.d.ts +13 -0
  166. package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -0
  167. package/dist/components/inputs/text-editor/text-editor.selection.js +62 -0
  168. package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -0
  169. package/dist/components/inputs/text-editor/text-editor.spellcheck.d.ts.map +1 -1
  170. package/dist/components/inputs/text-editor/text-editor.spellcheck.js +4 -6
  171. package/dist/components/inputs/text-editor/text-editor.spellcheck.js.map +1 -1
  172. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  173. package/dist/components/inputs/text-editor/text-editor.styles.js +185 -64
  174. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  175. package/dist/components/inputs/text-editor/text-editor.syntax.d.ts +22 -0
  176. package/dist/components/inputs/text-editor/text-editor.syntax.d.ts.map +1 -1
  177. package/dist/components/inputs/text-editor/text-editor.syntax.js +44 -0
  178. package/dist/components/inputs/text-editor/text-editor.syntax.js.map +1 -1
  179. package/dist/components/inputs/toggle-button/toggle-button.d.ts +10 -0
  180. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  181. package/dist/components/inputs/toggle-button/toggle-button.js +25 -1
  182. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  183. package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
  184. package/dist/components/inputs/toggle-button/toggle-button.template.js +21 -7
  185. package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
  186. package/dist/components/layout/card/card.styles.js +4 -4
  187. package/dist/components/layout/container/container.d.ts +2 -0
  188. package/dist/components/layout/container/container.d.ts.map +1 -1
  189. package/dist/components/layout/container/container.js +9 -0
  190. package/dist/components/layout/container/container.js.map +1 -1
  191. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  192. package/dist/components/layout/container/container.styles.js +13 -0
  193. package/dist/components/layout/container/container.styles.js.map +1 -1
  194. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
  195. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +9 -5
  196. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
  197. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  198. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +16 -15
  199. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  200. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +2 -2
  201. package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
  202. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +16 -9
  203. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  204. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +16 -9
  205. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  206. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  207. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +23 -18
  208. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  209. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
  210. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +19 -21
  211. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -1
  212. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +1 -1
  213. package/dist/components/status-and-feedback/notification/notification.d.ts +2 -1
  214. package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
  215. package/dist/components/status-and-feedback/notification/notification.js +5 -2
  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 +19 -1
  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.styles.js +4 -4
  224. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
  225. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
  226. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
  227. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
  228. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +7 -5
  229. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  230. package/dist/css/rich-text.css +61 -1
  231. package/dist/css/themes/bruin.css +108 -64
  232. package/dist/css/themes/donkerblauw.css +108 -64
  233. package/dist/css/themes/donkerbruin.css +88 -64
  234. package/dist/css/themes/donkergeel.css +149 -94
  235. package/dist/css/themes/donkergroen.css +93 -64
  236. package/dist/css/themes/geel.css +149 -94
  237. package/dist/css/themes/groen.css +108 -64
  238. package/dist/css/themes/hemelblauw.css +108 -64
  239. package/dist/css/themes/lichtblauw.css +111 -64
  240. package/dist/css/themes/mintgroen.css +111 -64
  241. package/dist/css/themes/mosgroen.css +108 -64
  242. package/dist/css/themes/oranje.css +162 -99
  243. package/dist/css/themes/paars.css +115 -64
  244. package/dist/css/themes/robijnrood.css +159 -96
  245. package/dist/css/themes/rood.css +159 -96
  246. package/dist/css/themes/roze.css +118 -64
  247. package/dist/css/themes/violet.css +93 -64
  248. package/dist/css/themes.css +2047 -1247
  249. package/dist/css/variables.css +142 -70
  250. package/dist/nldd.min.js +1468 -998
  251. package/dist/translations/en-US.d.ts.map +1 -1
  252. package/dist/translations/en-US.js +5 -0
  253. package/dist/translations/en-US.js.map +1 -1
  254. package/dist/translations/nl.generated.d.ts +5 -0
  255. package/dist/translations/nl.generated.d.ts.map +1 -1
  256. package/dist/types/vue.d.ts +138 -32
  257. package/dist/utilities/codemirror/codemirror-input.d.ts +90 -0
  258. package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -0
  259. package/dist/utilities/codemirror/codemirror-input.js +250 -0
  260. package/dist/utilities/codemirror/codemirror-input.js.map +1 -0
  261. package/dist/utilities/codemirror/theme.js +1 -1
  262. package/dist/utilities/codemirror/theme.js.map +1 -1
  263. package/dist/utilities/shortcut.d.ts +50 -0
  264. package/dist/utilities/shortcut.d.ts.map +1 -0
  265. package/dist/utilities/shortcut.js +77 -0
  266. package/dist/utilities/shortcut.js.map +1 -0
  267. package/package.json +2 -1
@@ -463,6 +463,46 @@
463
463
  "description": "Accessible label forwarded to the inner <button> or <a>. Use when visible text alone lacks context.",
464
464
  "attribute": "accessible-label"
465
465
  },
466
+ {
467
+ "kind": "field",
468
+ "name": "shortcut",
469
+ "type": {
470
+ "text": "string"
471
+ },
472
+ "default": "''",
473
+ "attribute": "shortcut",
474
+ "reflects": true
475
+ },
476
+ {
477
+ "kind": "field",
478
+ "name": "shortcutMac",
479
+ "type": {
480
+ "text": "string"
481
+ },
482
+ "default": "''",
483
+ "attribute": "shortcut-mac",
484
+ "reflects": true
485
+ },
486
+ {
487
+ "kind": "field",
488
+ "name": "shortcutWindows",
489
+ "type": {
490
+ "text": "string"
491
+ },
492
+ "default": "''",
493
+ "attribute": "shortcut-windows",
494
+ "reflects": true
495
+ },
496
+ {
497
+ "kind": "field",
498
+ "name": "shortcutLinux",
499
+ "type": {
500
+ "text": "string"
501
+ },
502
+ "default": "''",
503
+ "attribute": "shortcut-linux",
504
+ "reflects": true
505
+ },
466
506
  {
467
507
  "kind": "field",
468
508
  "name": "href",
@@ -743,6 +783,42 @@
743
783
  "description": "Accessible label for the button, overrides text for screen readers",
744
784
  "fieldName": "accessibleLabel"
745
785
  },
786
+ {
787
+ "name": "shortcut",
788
+ "type": {
789
+ "text": "string"
790
+ },
791
+ "default": "''",
792
+ "fieldName": "shortcut",
793
+ "description": "Keyboard shortcut hint shown right after the text, e.g. 'Cmd+S'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name, as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. Keep it for the few main actions of a screen (save, search); a hint on every button is noise."
794
+ },
795
+ {
796
+ "name": "shortcut-mac",
797
+ "type": {
798
+ "text": "string"
799
+ },
800
+ "default": "''",
801
+ "fieldName": "shortcutMac",
802
+ "description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
803
+ },
804
+ {
805
+ "name": "shortcut-windows",
806
+ "type": {
807
+ "text": "string"
808
+ },
809
+ "default": "''",
810
+ "fieldName": "shortcutWindows",
811
+ "description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
812
+ },
813
+ {
814
+ "name": "shortcut-linux",
815
+ "type": {
816
+ "text": "string"
817
+ },
818
+ "default": "''",
819
+ "fieldName": "shortcutLinux",
820
+ "description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
821
+ },
746
822
  {
747
823
  "name": "href",
748
824
  "type": {
@@ -1067,6 +1143,46 @@
1067
1143
  "attribute": "tooltip-timing",
1068
1144
  "reflects": true
1069
1145
  },
1146
+ {
1147
+ "kind": "field",
1148
+ "name": "shortcut",
1149
+ "type": {
1150
+ "text": "string"
1151
+ },
1152
+ "default": "''",
1153
+ "attribute": "shortcut",
1154
+ "reflects": true
1155
+ },
1156
+ {
1157
+ "kind": "field",
1158
+ "name": "shortcutMac",
1159
+ "type": {
1160
+ "text": "string"
1161
+ },
1162
+ "default": "''",
1163
+ "attribute": "shortcut-mac",
1164
+ "reflects": true
1165
+ },
1166
+ {
1167
+ "kind": "field",
1168
+ "name": "shortcutWindows",
1169
+ "type": {
1170
+ "text": "string"
1171
+ },
1172
+ "default": "''",
1173
+ "attribute": "shortcut-windows",
1174
+ "reflects": true
1175
+ },
1176
+ {
1177
+ "kind": "field",
1178
+ "name": "shortcutLinux",
1179
+ "type": {
1180
+ "text": "string"
1181
+ },
1182
+ "default": "''",
1183
+ "attribute": "shortcut-linux",
1184
+ "reflects": true
1185
+ },
1070
1186
  {
1071
1187
  "kind": "field",
1072
1188
  "name": "href",
@@ -1293,6 +1409,42 @@
1293
1409
  "description": "Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button).",
1294
1410
  "fieldName": "tooltipTiming"
1295
1411
  },
1412
+ {
1413
+ "name": "shortcut",
1414
+ "type": {
1415
+ "text": "string"
1416
+ },
1417
+ "default": "''",
1418
+ "fieldName": "shortcut",
1419
+ "description": "Keyboard shortcut hint shown in the tooltip after the text, e.g. 'Alt+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name (\"Presentatiemodus Alt P\"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable."
1420
+ },
1421
+ {
1422
+ "name": "shortcut-mac",
1423
+ "type": {
1424
+ "text": "string"
1425
+ },
1426
+ "default": "''",
1427
+ "fieldName": "shortcutMac",
1428
+ "description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
1429
+ },
1430
+ {
1431
+ "name": "shortcut-windows",
1432
+ "type": {
1433
+ "text": "string"
1434
+ },
1435
+ "default": "''",
1436
+ "fieldName": "shortcutWindows",
1437
+ "description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
1438
+ },
1439
+ {
1440
+ "name": "shortcut-linux",
1441
+ "type": {
1442
+ "text": "string"
1443
+ },
1444
+ "default": "''",
1445
+ "fieldName": "shortcutLinux",
1446
+ "description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
1447
+ },
1296
1448
  {
1297
1449
  "name": "href",
1298
1450
  "type": {
@@ -2261,6 +2413,46 @@
2261
2413
  "attribute": "text",
2262
2414
  "reflects": true
2263
2415
  },
2416
+ {
2417
+ "kind": "field",
2418
+ "name": "shortcut",
2419
+ "type": {
2420
+ "text": "string"
2421
+ },
2422
+ "default": "''",
2423
+ "attribute": "shortcut",
2424
+ "reflects": true
2425
+ },
2426
+ {
2427
+ "kind": "field",
2428
+ "name": "shortcutMac",
2429
+ "type": {
2430
+ "text": "string"
2431
+ },
2432
+ "default": "''",
2433
+ "attribute": "shortcut-mac",
2434
+ "reflects": true
2435
+ },
2436
+ {
2437
+ "kind": "field",
2438
+ "name": "shortcutWindows",
2439
+ "type": {
2440
+ "text": "string"
2441
+ },
2442
+ "default": "''",
2443
+ "attribute": "shortcut-windows",
2444
+ "reflects": true
2445
+ },
2446
+ {
2447
+ "kind": "field",
2448
+ "name": "shortcutLinux",
2449
+ "type": {
2450
+ "text": "string"
2451
+ },
2452
+ "default": "''",
2453
+ "attribute": "shortcut-linux",
2454
+ "reflects": true
2455
+ },
2264
2456
  {
2265
2457
  "kind": "field",
2266
2458
  "name": "icon",
@@ -2337,6 +2529,42 @@
2337
2529
  "description": "Button text for the primary action",
2338
2530
  "fieldName": "text"
2339
2531
  },
2532
+ {
2533
+ "name": "shortcut",
2534
+ "type": {
2535
+ "text": "string"
2536
+ },
2537
+ "default": "''",
2538
+ "fieldName": "shortcut",
2539
+ "description": "Keyboard shortcut hint for the primary action, shown right after its text, e.g. 'Cmd+S'. Forwarded to the inner nldd-button; display only, wire up the handling in your app."
2540
+ },
2541
+ {
2542
+ "name": "shortcut-mac",
2543
+ "type": {
2544
+ "text": "string"
2545
+ },
2546
+ "default": "''",
2547
+ "fieldName": "shortcutMac",
2548
+ "description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
2549
+ },
2550
+ {
2551
+ "name": "shortcut-windows",
2552
+ "type": {
2553
+ "text": "string"
2554
+ },
2555
+ "default": "''",
2556
+ "fieldName": "shortcutWindows",
2557
+ "description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
2558
+ },
2559
+ {
2560
+ "name": "shortcut-linux",
2561
+ "type": {
2562
+ "text": "string"
2563
+ },
2564
+ "default": "''",
2565
+ "fieldName": "shortcutLinux",
2566
+ "description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
2567
+ },
2340
2568
  {
2341
2569
  "name": "icon",
2342
2570
  "type": {
@@ -3484,13 +3712,131 @@
3484
3712
  }
3485
3713
  ]
3486
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
+ },
3487
3833
  {
3488
3834
  "kind": "javascript-module",
3489
3835
  "path": "src/components/content/code-viewer/code-viewer.ts",
3490
3836
  "declarations": [
3491
3837
  {
3492
3838
  "kind": "class",
3493
- "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.",
3494
3840
  "name": "NLDDCodeViewer",
3495
3841
  "members": [
3496
3842
  {
@@ -3514,6 +3860,17 @@
3514
3860
  "attribute": "language",
3515
3861
  "reflects": true
3516
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
+ },
3517
3874
  {
3518
3875
  "kind": "field",
3519
3876
  "name": "noCopy",
@@ -3602,6 +3959,15 @@
3602
3959
  "fieldName": "language",
3603
3960
  "description": "Grammar to highlight with. Empty disables highlighting."
3604
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
+ },
3605
3971
  {
3606
3972
  "name": "no-copy",
3607
3973
  "type": {
@@ -4576,7 +4942,7 @@
4576
4942
  },
4577
4943
  "default": "''",
4578
4944
  "fieldName": "keys",
4579
- "description": "Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P'). Use '+++' for a literal '+' key: 'Ctrl+++' becomes 'Ctrl' + '+'. For more complex cases (a combo with several '+' keys, for instance) use the default slot with your own <kbd> elements instead of the keys attribute."
4945
+ "description": "Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P'). End with '++' for a literal '+' key: 'Ctrl++' becomes 'Ctrl' + '+' ('Ctrl+++' works too). For more complex cases, such as a combo with several '+' keys, use the default slot with your own <kbd> elements instead of the keys attribute."
4580
4946
  },
4581
4947
  {
4582
4948
  "name": "mac-keys",
@@ -4681,7 +5047,7 @@
4681
5047
  "declarations": [
4682
5048
  {
4683
5049
  "kind": "class",
4684
- "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.",
4685
5051
  "name": "NLDDRichText",
4686
5052
  "members": [
4687
5053
  {
@@ -5580,6 +5946,46 @@
5580
5946
  "attribute": "text",
5581
5947
  "reflects": true
5582
5948
  },
5949
+ {
5950
+ "kind": "field",
5951
+ "name": "shortcut",
5952
+ "type": {
5953
+ "text": "string"
5954
+ },
5955
+ "default": "''",
5956
+ "attribute": "shortcut",
5957
+ "reflects": true
5958
+ },
5959
+ {
5960
+ "kind": "field",
5961
+ "name": "shortcutMac",
5962
+ "type": {
5963
+ "text": "string"
5964
+ },
5965
+ "default": "''",
5966
+ "attribute": "shortcut-mac",
5967
+ "reflects": true
5968
+ },
5969
+ {
5970
+ "kind": "field",
5971
+ "name": "shortcutWindows",
5972
+ "type": {
5973
+ "text": "string"
5974
+ },
5975
+ "default": "''",
5976
+ "attribute": "shortcut-windows",
5977
+ "reflects": true
5978
+ },
5979
+ {
5980
+ "kind": "field",
5981
+ "name": "shortcutLinux",
5982
+ "type": {
5983
+ "text": "string"
5984
+ },
5985
+ "default": "''",
5986
+ "attribute": "shortcut-linux",
5987
+ "reflects": true
5988
+ },
5583
5989
  {
5584
5990
  "kind": "field",
5585
5991
  "name": "open",
@@ -5622,6 +6028,42 @@
5622
6028
  "fieldName": "text",
5623
6029
  "description": "Tooltip text"
5624
6030
  },
6031
+ {
6032
+ "name": "shortcut",
6033
+ "type": {
6034
+ "text": "string"
6035
+ },
6036
+ "default": "''",
6037
+ "fieldName": "shortcut",
6038
+ "description": "Keyboard shortcut hint shown after the text, e.g. 'Cmd+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key. Joins the description of a light-DOM trigger. Hidden on touch-only devices, where it isn't invokable."
6039
+ },
6040
+ {
6041
+ "name": "shortcut-mac",
6042
+ "type": {
6043
+ "text": "string"
6044
+ },
6045
+ "default": "''",
6046
+ "fieldName": "shortcutMac",
6047
+ "description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
6048
+ },
6049
+ {
6050
+ "name": "shortcut-windows",
6051
+ "type": {
6052
+ "text": "string"
6053
+ },
6054
+ "default": "''",
6055
+ "fieldName": "shortcutWindows",
6056
+ "description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
6057
+ },
6058
+ {
6059
+ "name": "shortcut-linux",
6060
+ "type": {
6061
+ "text": "string"
6062
+ },
6063
+ "default": "''",
6064
+ "fieldName": "shortcutLinux",
6065
+ "description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
6066
+ },
5625
6067
  {
5626
6068
  "name": "open",
5627
6069
  "type": {
@@ -8336,93 +8778,6 @@
8336
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).",
8337
8779
  "name": "NLDDCodeEditor",
8338
8780
  "members": [
8339
- {
8340
- "kind": "field",
8341
- "name": "shadowRootOptions",
8342
- "type": {
8343
- "text": "object"
8344
- },
8345
- "static": true,
8346
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
8347
- },
8348
- {
8349
- "kind": "field",
8350
- "name": "isFormInput",
8351
- "type": {
8352
- "text": "boolean"
8353
- },
8354
- "static": true,
8355
- "default": "true",
8356
- "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."
8357
- },
8358
- {
8359
- "kind": "field",
8360
- "name": "value",
8361
- "type": {
8362
- "text": "string"
8363
- },
8364
- "default": "''",
8365
- "attribute": "value"
8366
- },
8367
- {
8368
- "kind": "field",
8369
- "name": "inputId",
8370
- "type": {
8371
- "text": "string"
8372
- },
8373
- "default": "''",
8374
- "attribute": "input-id"
8375
- },
8376
- {
8377
- "kind": "field",
8378
- "name": "placeholder",
8379
- "type": {
8380
- "text": "string"
8381
- },
8382
- "default": "''",
8383
- "attribute": "placeholder",
8384
- "reflects": true
8385
- },
8386
- {
8387
- "kind": "field",
8388
- "name": "disabled",
8389
- "type": {
8390
- "text": "boolean"
8391
- },
8392
- "default": "false",
8393
- "attribute": "disabled",
8394
- "reflects": true
8395
- },
8396
- {
8397
- "kind": "field",
8398
- "name": "name",
8399
- "type": {
8400
- "text": "string"
8401
- },
8402
- "default": "''",
8403
- "attribute": "name",
8404
- "reflects": true
8405
- },
8406
- {
8407
- "kind": "field",
8408
- "name": "readonly",
8409
- "type": {
8410
- "text": "boolean"
8411
- },
8412
- "default": "false",
8413
- "attribute": "readonly",
8414
- "reflects": true
8415
- },
8416
- {
8417
- "kind": "field",
8418
- "name": "required",
8419
- "type": {
8420
- "text": "boolean"
8421
- },
8422
- "default": "false",
8423
- "attribute": "required",
8424
- "reflects": true
8425
- },
8426
8781
  {
8427
8782
  "kind": "field",
8428
8783
  "name": "wrap",
@@ -8433,15 +8788,6 @@
8433
8788
  "attribute": "wrap",
8434
8789
  "reflects": true
8435
8790
  },
8436
- {
8437
- "kind": "field",
8438
- "name": "rows",
8439
- "type": {
8440
- "text": "number"
8441
- },
8442
- "default": "6",
8443
- "attribute": "rows"
8444
- },
8445
8791
  {
8446
8792
  "kind": "field",
8447
8793
  "name": "resize",
@@ -8484,64 +8830,17 @@
8484
8830
  },
8485
8831
  {
8486
8832
  "kind": "field",
8487
- "name": "accessibleLabel",
8488
- "type": {
8489
- "text": "string"
8490
- },
8491
- "default": "''",
8492
- "attribute": "accessible-label"
8493
- },
8494
- {
8495
- "kind": "field",
8496
- "name": "invalid",
8833
+ "name": "describedByElements",
8497
8834
  "type": {
8498
- "text": "boolean"
8499
- },
8500
- "default": "false",
8501
- "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.",
8502
- "attribute": "invalid",
8503
- "reflects": true
8504
- },
8505
- {
8506
- "kind": "method",
8507
- "name": "formValue",
8508
- "return": {
8509
- "type": {
8510
- "text": "FormValue"
8511
- }
8835
+ "text": "readonly Element[]"
8512
8836
  },
8513
- "description": "The value submitted under `name`; `null` submits nothing. Override.",
8837
+ "default": "[]",
8838
+ "description": "Set by nldd-form-field. A consumer never writes this.",
8514
8839
  "inheritedFrom": {
8515
- "name": "FormAssociated",
8516
- "module": "src/utilities/form-associated-mixin.ts"
8517
- }
8518
- },
8519
- {
8520
- "kind": "method",
8521
- "name": "formResetCallback",
8522
- "return": {
8523
- "type": {
8524
- "text": "void"
8525
- }
8840
+ "name": "DescribedBy",
8841
+ "module": "src/utilities/described-by-mixin.ts"
8526
8842
  }
8527
8843
  },
8528
- {
8529
- "kind": "method",
8530
- "name": "formStateRestoreCallback",
8531
- "return": {
8532
- "type": {
8533
- "text": "void"
8534
- }
8535
- },
8536
- "parameters": [
8537
- {
8538
- "name": "state",
8539
- "type": {
8540
- "text": "File | string | FormData | null"
8541
- }
8542
- }
8543
- ]
8544
- },
8545
8844
  {
8546
8845
  "kind": "method",
8547
8846
  "name": "describedTarget",
@@ -8550,23 +8849,10 @@
8550
8849
  "text": "Element | null"
8551
8850
  }
8552
8851
  },
8553
- "description": "CodeMirror builds the textbox; the host is only its container.",
8554
- "inheritedFrom": {
8555
- "name": "DescribedBy",
8556
- "module": "src/utilities/described-by-mixin.ts"
8557
- }
8558
- },
8559
- {
8560
- "kind": "field",
8561
- "name": "describedByElements",
8562
- "type": {
8563
- "text": "readonly Element[]"
8564
- },
8565
- "default": "[]",
8566
- "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.",
8567
8853
  "inheritedFrom": {
8568
- "name": "DescribedBy",
8569
- "module": "src/utilities/described-by-mixin.ts"
8854
+ "name": "NLDDCodeMirrorInput",
8855
+ "module": "src/utilities/codemirror/codemirror-input.ts"
8570
8856
  }
8571
8857
  },
8572
8858
  {
@@ -8591,6 +8877,20 @@
8591
8877
  "module": "src/utilities/form-associated-mixin.ts"
8592
8878
  }
8593
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
+ },
8594
8894
  {
8595
8895
  "kind": "method",
8596
8896
  "name": "formState",
@@ -8703,99 +9003,215 @@
8703
9003
  "name": "FormAssociated",
8704
9004
  "module": "src/utilities/form-associated-mixin.ts"
8705
9005
  }
8706
- }
8707
- ],
8708
- "events": [
9006
+ },
8709
9007
  {
8710
- "name": "input",
8711
- "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
+ }
8712
9019
  },
8713
9020
  {
8714
- "name": "change",
8715
- "description": "When the content is committed on blur (detail: { value })"
8716
- }
8717
- ],
8718
- "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
+ },
8719
9034
  {
9035
+ "kind": "field",
8720
9036
  "name": "value",
8721
9037
  "type": {
8722
9038
  "text": "string"
8723
9039
  },
8724
9040
  "default": "''",
8725
- "fieldName": "value",
8726
- "description": "Editor content"
9041
+ "attribute": "value",
9042
+ "inheritedFrom": {
9043
+ "name": "NLDDCodeMirrorInput",
9044
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9045
+ }
8727
9046
  },
8728
9047
  {
8729
- "name": "input-id",
9048
+ "kind": "field",
9049
+ "name": "inputId",
8730
9050
  "type": {
8731
9051
  "text": "string"
8732
9052
  },
8733
9053
  "default": "''",
8734
- "fieldName": "inputId",
8735
- "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
+ }
8736
9059
  },
8737
9060
  {
9061
+ "kind": "field",
8738
9062
  "name": "placeholder",
8739
9063
  "type": {
8740
9064
  "text": "string"
8741
9065
  },
8742
9066
  "default": "''",
8743
- "fieldName": "placeholder",
8744
- "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
+ }
8745
9073
  },
8746
9074
  {
9075
+ "kind": "field",
8747
9076
  "name": "disabled",
8748
9077
  "type": {
8749
9078
  "text": "boolean"
8750
9079
  },
8751
9080
  "default": "false",
8752
- "fieldName": "disabled",
8753
- "description": "Disabled state"
9081
+ "attribute": "disabled",
9082
+ "reflects": true,
9083
+ "inheritedFrom": {
9084
+ "name": "NLDDCodeMirrorInput",
9085
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9086
+ }
8754
9087
  },
8755
9088
  {
9089
+ "kind": "field",
8756
9090
  "name": "name",
8757
9091
  "type": {
8758
9092
  "text": "string"
8759
9093
  },
8760
9094
  "default": "''",
8761
- "fieldName": "name",
8762
- "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
+ }
8763
9101
  },
8764
9102
  {
9103
+ "kind": "field",
8765
9104
  "name": "readonly",
8766
9105
  "type": {
8767
9106
  "text": "boolean"
8768
9107
  },
8769
9108
  "default": "false",
8770
- "fieldName": "readonly",
8771
- "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
+ }
8772
9115
  },
8773
9116
  {
9117
+ "kind": "field",
8774
9118
  "name": "required",
8775
9119
  "type": {
8776
9120
  "text": "boolean"
8777
9121
  },
8778
9122
  "default": "false",
8779
- "fieldName": "required",
8780
- "description": "Required state"
9123
+ "attribute": "required",
9124
+ "reflects": true,
9125
+ "inheritedFrom": {
9126
+ "name": "NLDDCodeMirrorInput",
9127
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9128
+ }
8781
9129
  },
8782
9130
  {
8783
- "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",
8784
9159
  "type": {
8785
9160
  "text": "boolean"
8786
9161
  },
8787
9162
  "default": "false",
8788
- "fieldName": "wrap",
8789
- "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
+ }
8790
9170
  },
8791
9171
  {
8792
- "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",
8793
9209
  "type": {
8794
- "text": "number"
9210
+ "text": "boolean"
8795
9211
  },
8796
- "default": "6",
8797
- "fieldName": "rows",
8798
- "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"
8799
9215
  },
8800
9216
  {
8801
9217
  "name": "resize",
@@ -8833,6 +9249,110 @@
8833
9249
  "fieldName": "lineNumbers",
8834
9250
  "description": "Show a line-number gutter"
8835
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
+ },
8836
9356
  {
8837
9357
  "name": "accessible-label",
8838
9358
  "type": {
@@ -8840,6 +9360,10 @@
8840
9360
  },
8841
9361
  "default": "''",
8842
9362
  "fieldName": "accessibleLabel",
9363
+ "inheritedFrom": {
9364
+ "name": "NLDDCodeMirrorInput",
9365
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9366
+ },
8843
9367
  "description": "Accessible label forwarded to the editor. Set automatically by nldd-form-field."
8844
9368
  },
8845
9369
  {
@@ -8849,25 +9373,29 @@
8849
9373
  },
8850
9374
  "default": "false",
8851
9375
  "description": "Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.",
8852
- "fieldName": "invalid"
9376
+ "fieldName": "invalid",
9377
+ "inheritedFrom": {
9378
+ "name": "NLDDCodeMirrorInput",
9379
+ "module": "src/utilities/codemirror/codemirror-input.ts"
9380
+ }
8853
9381
  }
8854
9382
  ],
8855
- "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": [
8856
9390
  {
8857
- "name": "DescribedBy",
8858
- "module": "/src/utilities/described-by-mixin.js"
9391
+ "name": "input",
9392
+ "description": "When the content changes (detail: { value })"
8859
9393
  },
8860
9394
  {
8861
- "name": "FormAssociated",
8862
- "module": "/src/utilities/form-associated-mixin.js"
9395
+ "name": "change",
9396
+ "description": "When the content is committed on blur (detail: { value })"
8863
9397
  }
8864
- ],
8865
- "superclass": {
8866
- "name": "NLDDCodeMirrorElement",
8867
- "module": "/src/utilities/codemirror/codemirror-element.js"
8868
- },
8869
- "tagName": "nldd-code-editor",
8870
- "customElement": true
9398
+ ]
8871
9399
  }
8872
9400
  ],
8873
9401
  "exports": [
@@ -14417,6 +14945,46 @@
14417
14945
  "attribute": "show-search-button",
14418
14946
  "reflects": true
14419
14947
  },
14948
+ {
14949
+ "kind": "field",
14950
+ "name": "shortcut",
14951
+ "type": {
14952
+ "text": "string"
14953
+ },
14954
+ "default": "''",
14955
+ "attribute": "shortcut",
14956
+ "reflects": true
14957
+ },
14958
+ {
14959
+ "kind": "field",
14960
+ "name": "shortcutMac",
14961
+ "type": {
14962
+ "text": "string"
14963
+ },
14964
+ "default": "''",
14965
+ "attribute": "shortcut-mac",
14966
+ "reflects": true
14967
+ },
14968
+ {
14969
+ "kind": "field",
14970
+ "name": "shortcutWindows",
14971
+ "type": {
14972
+ "text": "string"
14973
+ },
14974
+ "default": "''",
14975
+ "attribute": "shortcut-windows",
14976
+ "reflects": true
14977
+ },
14978
+ {
14979
+ "kind": "field",
14980
+ "name": "shortcutLinux",
14981
+ "type": {
14982
+ "text": "string"
14983
+ },
14984
+ "default": "''",
14985
+ "attribute": "shortcut-linux",
14986
+ "reflects": true
14987
+ },
14420
14988
  {
14421
14989
  "kind": "field",
14422
14990
  "name": "translations",
@@ -14800,6 +15368,42 @@
14800
15368
  "fieldName": "showSearchButton",
14801
15369
  "description": "When set, shows a search button on the right"
14802
15370
  },
15371
+ {
15372
+ "name": "shortcut",
15373
+ "type": {
15374
+ "text": "string"
15375
+ },
15376
+ "default": "''",
15377
+ "fieldName": "shortcut",
15378
+ "description": "Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers."
15379
+ },
15380
+ {
15381
+ "name": "shortcut-mac",
15382
+ "type": {
15383
+ "text": "string"
15384
+ },
15385
+ "default": "''",
15386
+ "fieldName": "shortcutMac",
15387
+ "description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
15388
+ },
15389
+ {
15390
+ "name": "shortcut-windows",
15391
+ "type": {
15392
+ "text": "string"
15393
+ },
15394
+ "default": "''",
15395
+ "fieldName": "shortcutWindows",
15396
+ "description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
15397
+ },
15398
+ {
15399
+ "name": "shortcut-linux",
15400
+ "type": {
15401
+ "text": "string"
15402
+ },
15403
+ "default": "''",
15404
+ "fieldName": "shortcutLinux",
15405
+ "description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
15406
+ },
14803
15407
  {
14804
15408
  "name": "translations",
14805
15409
  "type": {
@@ -15049,6 +15653,46 @@
15049
15653
  "description": "Icon name for nldd-icon. When not set, the icon slot is used; the icon and\nicon-and-text variants show a placeholder icon when neither is provided.",
15050
15654
  "attribute": "icon"
15051
15655
  },
15656
+ {
15657
+ "kind": "field",
15658
+ "name": "shortcut",
15659
+ "type": {
15660
+ "text": "string"
15661
+ },
15662
+ "default": "''",
15663
+ "attribute": "shortcut",
15664
+ "reflects": true
15665
+ },
15666
+ {
15667
+ "kind": "field",
15668
+ "name": "shortcutMac",
15669
+ "type": {
15670
+ "text": "string"
15671
+ },
15672
+ "default": "''",
15673
+ "attribute": "shortcut-mac",
15674
+ "reflects": true
15675
+ },
15676
+ {
15677
+ "kind": "field",
15678
+ "name": "shortcutWindows",
15679
+ "type": {
15680
+ "text": "string"
15681
+ },
15682
+ "default": "''",
15683
+ "attribute": "shortcut-windows",
15684
+ "reflects": true
15685
+ },
15686
+ {
15687
+ "kind": "field",
15688
+ "name": "shortcutLinux",
15689
+ "type": {
15690
+ "text": "string"
15691
+ },
15692
+ "default": "''",
15693
+ "attribute": "shortcut-linux",
15694
+ "reflects": true
15695
+ },
15052
15696
  {
15053
15697
  "kind": "method",
15054
15698
  "name": "focus",
@@ -15174,6 +15818,42 @@
15174
15818
  "default": "''",
15175
15819
  "description": "Icon name for nldd-icon",
15176
15820
  "fieldName": "icon"
15821
+ },
15822
+ {
15823
+ "name": "shortcut",
15824
+ "type": {
15825
+ "text": "string"
15826
+ },
15827
+ "default": "''",
15828
+ "fieldName": "shortcut",
15829
+ "description": "Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name (\"Vet Cmd B\"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable."
15830
+ },
15831
+ {
15832
+ "name": "shortcut-mac",
15833
+ "type": {
15834
+ "text": "string"
15835
+ },
15836
+ "default": "''",
15837
+ "fieldName": "shortcutMac",
15838
+ "description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
15839
+ },
15840
+ {
15841
+ "name": "shortcut-windows",
15842
+ "type": {
15843
+ "text": "string"
15844
+ },
15845
+ "default": "''",
15846
+ "fieldName": "shortcutWindows",
15847
+ "description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
15848
+ },
15849
+ {
15850
+ "name": "shortcut-linux",
15851
+ "type": {
15852
+ "text": "string"
15853
+ },
15854
+ "default": "''",
15855
+ "fieldName": "shortcutLinux",
15856
+ "description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
15177
15857
  }
15178
15858
  ],
15179
15859
  "superclass": {
@@ -17363,6 +18043,127 @@
17363
18043
  }
17364
18044
  ]
17365
18045
  },
18046
+ {
18047
+ "kind": "javascript-module",
18048
+ "path": "src/components/inputs/text-editor/text-editor.clipboard.ts",
18049
+ "declarations": [
18050
+ {
18051
+ "kind": "class",
18052
+ "description": "",
18053
+ "name": "AnnotationClipboard",
18054
+ "members": [
18055
+ {
18056
+ "kind": "field",
18057
+ "name": "cut",
18058
+ "type": {
18059
+ "text": "{ text: string; anns: CarriedAnnotation[] } | null"
18060
+ },
18061
+ "privacy": "private",
18062
+ "default": "null"
18063
+ },
18064
+ {
18065
+ "kind": "method",
18066
+ "name": "annotationsInSelection",
18067
+ "privacy": "private",
18068
+ "return": {
18069
+ "type": {
18070
+ "text": "CarriedAnnotation[]"
18071
+ }
18072
+ },
18073
+ "parameters": [
18074
+ {
18075
+ "name": "view",
18076
+ "type": {
18077
+ "text": "EditorView"
18078
+ }
18079
+ }
18080
+ ],
18081
+ "description": "The annotations lying fully inside the selection, offset from its clean start."
18082
+ },
18083
+ {
18084
+ "kind": "method",
18085
+ "name": "selectedText",
18086
+ "return": {
18087
+ "type": {
18088
+ "text": "string"
18089
+ }
18090
+ },
18091
+ "parameters": [
18092
+ {
18093
+ "name": "view",
18094
+ "type": {
18095
+ "text": "EditorView"
18096
+ }
18097
+ }
18098
+ ],
18099
+ "description": "The selection as clipboard text, without sentinels."
18100
+ },
18101
+ {
18102
+ "kind": "method",
18103
+ "name": "rememberCut",
18104
+ "return": {
18105
+ "type": {
18106
+ "text": "void"
18107
+ }
18108
+ },
18109
+ "parameters": [
18110
+ {
18111
+ "name": "view",
18112
+ "type": {
18113
+ "text": "EditorView"
18114
+ }
18115
+ }
18116
+ ],
18117
+ "description": "Remember a cut of the selection; an empty selection cuts nothing."
18118
+ },
18119
+ {
18120
+ "kind": "method",
18121
+ "name": "forget",
18122
+ "return": {
18123
+ "type": {
18124
+ "text": "void"
18125
+ }
18126
+ },
18127
+ "description": "A copy is plain text: a pending cut's annotations must not ride along."
18128
+ },
18129
+ {
18130
+ "kind": "method",
18131
+ "name": "paste",
18132
+ "return": {
18133
+ "type": {
18134
+ "text": "void"
18135
+ }
18136
+ },
18137
+ "parameters": [
18138
+ {
18139
+ "name": "view",
18140
+ "type": {
18141
+ "text": "EditorView"
18142
+ }
18143
+ },
18144
+ {
18145
+ "name": "raw",
18146
+ "type": {
18147
+ "text": "string"
18148
+ }
18149
+ }
18150
+ ],
18151
+ "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."
18152
+ }
18153
+ ]
18154
+ }
18155
+ ],
18156
+ "exports": [
18157
+ {
18158
+ "kind": "js",
18159
+ "name": "AnnotationClipboard",
18160
+ "declaration": {
18161
+ "name": "AnnotationClipboard",
18162
+ "module": "src/components/inputs/text-editor/text-editor.clipboard.ts"
18163
+ }
18164
+ }
18165
+ ]
18166
+ },
17366
18167
  {
17367
18168
  "kind": "javascript-module",
17368
18169
  "path": "src/components/inputs/text-editor/text-editor.commands.ts",
@@ -18031,6 +18832,77 @@
18031
18832
  }
18032
18833
  ]
18033
18834
  },
18835
+ {
18836
+ "kind": "javascript-module",
18837
+ "path": "src/components/inputs/text-editor/text-editor.focus-selection.ts",
18838
+ "declarations": [
18839
+ {
18840
+ "kind": "function",
18841
+ "name": "focusSelectionGuard",
18842
+ "return": {
18843
+ "type": {
18844
+ "text": "Extension"
18845
+ }
18846
+ }
18847
+ }
18848
+ ],
18849
+ "exports": [
18850
+ {
18851
+ "kind": "js",
18852
+ "name": "focusSelectionGuard",
18853
+ "declaration": {
18854
+ "name": "focusSelectionGuard",
18855
+ "module": "src/components/inputs/text-editor/text-editor.focus-selection.ts"
18856
+ }
18857
+ }
18858
+ ]
18859
+ },
18860
+ {
18861
+ "kind": "javascript-module",
18862
+ "path": "src/components/inputs/text-editor/text-editor.hidden-syntax.ts",
18863
+ "declarations": [
18864
+ {
18865
+ "kind": "function",
18866
+ "name": "hiddenSyntax",
18867
+ "description": "The syntax=\"hidden\" extension. Highest precedence, so hiding a mark wins over\nthe dimmed styling the markdown decorations give it."
18868
+ }
18869
+ ],
18870
+ "exports": [
18871
+ {
18872
+ "kind": "js",
18873
+ "name": "hiddenSyntax",
18874
+ "declaration": {
18875
+ "name": "hiddenSyntax",
18876
+ "module": "src/components/inputs/text-editor/text-editor.hidden-syntax.ts"
18877
+ }
18878
+ }
18879
+ ]
18880
+ },
18881
+ {
18882
+ "kind": "javascript-module",
18883
+ "path": "src/components/inputs/text-editor/text-editor.keymap.ts",
18884
+ "declarations": [
18885
+ {
18886
+ "kind": "variable",
18887
+ "name": "textEditorKeymap",
18888
+ "type": {
18889
+ "text": "Extension"
18890
+ },
18891
+ "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, ]), ]",
18892
+ "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."
18893
+ }
18894
+ ],
18895
+ "exports": [
18896
+ {
18897
+ "kind": "js",
18898
+ "name": "textEditorKeymap",
18899
+ "declaration": {
18900
+ "name": "textEditorKeymap",
18901
+ "module": "src/components/inputs/text-editor/text-editor.keymap.ts"
18902
+ }
18903
+ }
18904
+ ]
18905
+ },
18034
18906
  {
18035
18907
  "kind": "javascript-module",
18036
18908
  "path": "src/components/inputs/text-editor/text-editor.labels.ts",
@@ -18212,8 +19084,162 @@
18212
19084
  "type": {
18213
19085
  "text": "Extension"
18214
19086
  },
18215
- "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, ]",
19087
+ "default": "[ markdown({ extensions: GFM }), markDecorationPlugin, heldEmphasis, hangingIndentField, mentionTokens, ]",
18216
19088
  "description": "Markdown language (with GFM) plus the hybrid inline-styling decorations."
19089
+ }
19090
+ ],
19091
+ "exports": [
19092
+ {
19093
+ "kind": "js",
19094
+ "name": "markdownEditing",
19095
+ "declaration": {
19096
+ "name": "markdownEditing",
19097
+ "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19098
+ }
19099
+ }
19100
+ ]
19101
+ },
19102
+ {
19103
+ "kind": "javascript-module",
19104
+ "path": "src/components/inputs/text-editor/text-editor.mention.ts",
19105
+ "declarations": [
19106
+ {
19107
+ "kind": "variable",
19108
+ "name": "MENTION_HREF_PREFIX",
19109
+ "type": {
19110
+ "text": "string"
19111
+ },
19112
+ "default": "'user:'",
19113
+ "description": "Href prefix that marks a markdown link as a mention."
19114
+ },
19115
+ {
19116
+ "kind": "function",
19117
+ "name": "mentionToken",
19118
+ "return": {
19119
+ "type": {
19120
+ "text": "string"
19121
+ }
19122
+ },
19123
+ "parameters": [
19124
+ {
19125
+ "name": "candidate",
19126
+ "type": {
19127
+ "text": "TypeaheadCandidate"
19128
+ }
19129
+ }
19130
+ ],
19131
+ "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`."
19132
+ },
19133
+ {
19134
+ "kind": "function",
19135
+ "name": "mentionInsert",
19136
+ "return": {
19137
+ "type": {
19138
+ "text": "string"
19139
+ }
19140
+ },
19141
+ "parameters": [
19142
+ {
19143
+ "name": "candidate",
19144
+ "type": {
19145
+ "text": "TypeaheadCandidate"
19146
+ }
19147
+ }
19148
+ ],
19149
+ "description": "What the built-in mention writes: the token and a space to go on typing."
19150
+ },
19151
+ {
19152
+ "kind": "function",
19153
+ "name": "unescapeMentionLabel",
19154
+ "return": {
19155
+ "type": {
19156
+ "text": "string"
19157
+ }
19158
+ },
19159
+ "parameters": [
19160
+ {
19161
+ "name": "label",
19162
+ "type": {
19163
+ "text": "string"
19164
+ }
19165
+ }
19166
+ ],
19167
+ "description": "Reverse `mentionToken`'s label escaping for display."
19168
+ },
19169
+ {
19170
+ "kind": "function",
19171
+ "name": "decodeMentionId",
19172
+ "return": {
19173
+ "type": {
19174
+ "text": "string"
19175
+ }
19176
+ },
19177
+ "parameters": [
19178
+ {
19179
+ "name": "id",
19180
+ "type": {
19181
+ "text": "string"
19182
+ }
19183
+ }
19184
+ ],
19185
+ "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)."
19186
+ },
19187
+ {
19188
+ "kind": "variable",
19189
+ "name": "MENTION_TOKEN_RE",
19190
+ "default": "new RegExp(`\\\\[(@[^\\\\]]*)\\\\]\\\\(${MENTION_HREF_PREFIX}[^)]*\\\\)`, 'g')",
19191
+ "description": "A stored mention in running text, with its `@Naam` as the first group."
19192
+ },
19193
+ {
19194
+ "kind": "function",
19195
+ "name": "isMentionHref",
19196
+ "return": {
19197
+ "type": {
19198
+ "text": "boolean"
19199
+ }
19200
+ },
19201
+ "parameters": [
19202
+ {
19203
+ "name": "href",
19204
+ "type": {
19205
+ "text": "string"
19206
+ }
19207
+ }
19208
+ ],
19209
+ "description": "Whether an address is a mention's (`user:id`), not a place to go."
19210
+ },
19211
+ {
19212
+ "kind": "function",
19213
+ "name": "isMentionLink",
19214
+ "return": {
19215
+ "type": {
19216
+ "text": "boolean"
19217
+ }
19218
+ },
19219
+ "parameters": [
19220
+ {
19221
+ "name": "state",
19222
+ "type": {
19223
+ "text": "EditorState"
19224
+ }
19225
+ },
19226
+ {
19227
+ "name": "link",
19228
+ "type": {
19229
+ "text": "SyntaxNode"
19230
+ }
19231
+ }
19232
+ ],
19233
+ "description": "Whether a `Link` node is a mention."
19234
+ },
19235
+ {
19236
+ "kind": "variable",
19237
+ "name": "mentionTokens",
19238
+ "type": {
19239
+ "text": "Extension"
19240
+ },
19241
+ "default": "[Prec.highest(mentionChipField), mentionAtomicRanges]",
19242
+ "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."
18217
19243
  },
18218
19244
  {
18219
19245
  "kind": "function",
@@ -18286,15 +19312,103 @@
18286
19312
  }
18287
19313
  ],
18288
19314
  "description": "A mention token starting exactly at `pos` (cursor just before it — delete)."
19315
+ },
19316
+ {
19317
+ "kind": "function",
19318
+ "name": "selectMentionBeforeDelete",
19319
+ "return": {
19320
+ "type": {
19321
+ "text": "boolean"
19322
+ }
19323
+ },
19324
+ "parameters": [
19325
+ {
19326
+ "name": "view",
19327
+ "type": {
19328
+ "text": "EditorView"
19329
+ }
19330
+ },
19331
+ {
19332
+ "name": "dir",
19333
+ "type": {
19334
+ "text": "-1 | 1"
19335
+ }
19336
+ }
19337
+ ],
19338
+ "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."
18289
19339
  }
18290
19340
  ],
18291
19341
  "exports": [
18292
19342
  {
18293
19343
  "kind": "js",
18294
- "name": "markdownEditing",
19344
+ "name": "MENTION_HREF_PREFIX",
18295
19345
  "declaration": {
18296
- "name": "markdownEditing",
18297
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19346
+ "name": "MENTION_HREF_PREFIX",
19347
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19348
+ }
19349
+ },
19350
+ {
19351
+ "kind": "js",
19352
+ "name": "mentionToken",
19353
+ "declaration": {
19354
+ "name": "mentionToken",
19355
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19356
+ }
19357
+ },
19358
+ {
19359
+ "kind": "js",
19360
+ "name": "mentionInsert",
19361
+ "declaration": {
19362
+ "name": "mentionInsert",
19363
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19364
+ }
19365
+ },
19366
+ {
19367
+ "kind": "js",
19368
+ "name": "unescapeMentionLabel",
19369
+ "declaration": {
19370
+ "name": "unescapeMentionLabel",
19371
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19372
+ }
19373
+ },
19374
+ {
19375
+ "kind": "js",
19376
+ "name": "decodeMentionId",
19377
+ "declaration": {
19378
+ "name": "decodeMentionId",
19379
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19380
+ }
19381
+ },
19382
+ {
19383
+ "kind": "js",
19384
+ "name": "MENTION_TOKEN_RE",
19385
+ "declaration": {
19386
+ "name": "MENTION_TOKEN_RE",
19387
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19388
+ }
19389
+ },
19390
+ {
19391
+ "kind": "js",
19392
+ "name": "isMentionHref",
19393
+ "declaration": {
19394
+ "name": "isMentionHref",
19395
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19396
+ }
19397
+ },
19398
+ {
19399
+ "kind": "js",
19400
+ "name": "isMentionLink",
19401
+ "declaration": {
19402
+ "name": "isMentionLink",
19403
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19404
+ }
19405
+ },
19406
+ {
19407
+ "kind": "js",
19408
+ "name": "mentionTokens",
19409
+ "declaration": {
19410
+ "name": "mentionTokens",
19411
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18298
19412
  }
18299
19413
  },
18300
19414
  {
@@ -18302,7 +19416,7 @@
18302
19416
  "name": "mentionRangeAt",
18303
19417
  "declaration": {
18304
19418
  "name": "mentionRangeAt",
18305
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19419
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18306
19420
  }
18307
19421
  },
18308
19422
  {
@@ -18310,7 +19424,7 @@
18310
19424
  "name": "mentionRangeEndingAt",
18311
19425
  "declaration": {
18312
19426
  "name": "mentionRangeEndingAt",
18313
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19427
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18314
19428
  }
18315
19429
  },
18316
19430
  {
@@ -18318,7 +19432,15 @@
18318
19432
  "name": "mentionRangeStartingAt",
18319
19433
  "declaration": {
18320
19434
  "name": "mentionRangeStartingAt",
18321
- "module": "src/components/inputs/text-editor/text-editor.markdown.ts"
19435
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
19436
+ }
19437
+ },
19438
+ {
19439
+ "kind": "js",
19440
+ "name": "selectMentionBeforeDelete",
19441
+ "declaration": {
19442
+ "name": "selectMentionBeforeDelete",
19443
+ "module": "src/components/inputs/text-editor/text-editor.mention.ts"
18322
19444
  }
18323
19445
  }
18324
19446
  ]
@@ -18366,87 +19488,6 @@
18366
19488
  ],
18367
19489
  "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."
18368
19490
  },
18369
- {
18370
- "kind": "variable",
18371
- "name": "MENTION_HREF_PREFIX",
18372
- "type": {
18373
- "text": "string"
18374
- },
18375
- "default": "'user:'",
18376
- "description": "Href prefix that marks a markdown link as a mention."
18377
- },
18378
- {
18379
- "kind": "function",
18380
- "name": "mentionToken",
18381
- "return": {
18382
- "type": {
18383
- "text": "string"
18384
- }
18385
- },
18386
- "parameters": [
18387
- {
18388
- "name": "candidate",
18389
- "type": {
18390
- "text": "TypeaheadCandidate"
18391
- }
18392
- }
18393
- ],
18394
- "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`."
18395
- },
18396
- {
18397
- "kind": "function",
18398
- "name": "mentionInsert",
18399
- "return": {
18400
- "type": {
18401
- "text": "string"
18402
- }
18403
- },
18404
- "parameters": [
18405
- {
18406
- "name": "candidate",
18407
- "type": {
18408
- "text": "TypeaheadCandidate"
18409
- }
18410
- }
18411
- ],
18412
- "description": "What the built-in mention writes: the token and a space to go on typing."
18413
- },
18414
- {
18415
- "kind": "function",
18416
- "name": "unescapeMentionLabel",
18417
- "return": {
18418
- "type": {
18419
- "text": "string"
18420
- }
18421
- },
18422
- "parameters": [
18423
- {
18424
- "name": "label",
18425
- "type": {
18426
- "text": "string"
18427
- }
18428
- }
18429
- ],
18430
- "description": "Reverse `mentionToken`'s label escaping for display."
18431
- },
18432
- {
18433
- "kind": "function",
18434
- "name": "decodeMentionId",
18435
- "return": {
18436
- "type": {
18437
- "text": "string"
18438
- }
18439
- },
18440
- "parameters": [
18441
- {
18442
- "name": "id",
18443
- "type": {
18444
- "text": "string"
18445
- }
18446
- }
18447
- ],
18448
- "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)."
18449
- },
18450
19491
  {
18451
19492
  "kind": "function",
18452
19493
  "name": "typeaheads",
@@ -18496,46 +19537,6 @@
18496
19537
  "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18497
19538
  }
18498
19539
  },
18499
- {
18500
- "kind": "js",
18501
- "name": "MENTION_HREF_PREFIX",
18502
- "declaration": {
18503
- "name": "MENTION_HREF_PREFIX",
18504
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18505
- }
18506
- },
18507
- {
18508
- "kind": "js",
18509
- "name": "mentionToken",
18510
- "declaration": {
18511
- "name": "mentionToken",
18512
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18513
- }
18514
- },
18515
- {
18516
- "kind": "js",
18517
- "name": "mentionInsert",
18518
- "declaration": {
18519
- "name": "mentionInsert",
18520
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18521
- }
18522
- },
18523
- {
18524
- "kind": "js",
18525
- "name": "unescapeMentionLabel",
18526
- "declaration": {
18527
- "name": "unescapeMentionLabel",
18528
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18529
- }
18530
- },
18531
- {
18532
- "kind": "js",
18533
- "name": "decodeMentionId",
18534
- "declaration": {
18535
- "name": "decodeMentionId",
18536
- "module": "src/components/inputs/text-editor/text-editor.mentions.ts"
18537
- }
18538
- },
18539
19540
  {
18540
19541
  "kind": "js",
18541
19542
  "name": "typeaheads",
@@ -18592,6 +19593,26 @@
18592
19593
  }
18593
19594
  ]
18594
19595
  },
19596
+ {
19597
+ "kind": "javascript-module",
19598
+ "path": "src/components/inputs/text-editor/text-editor.selection.ts",
19599
+ "declarations": [
19600
+ {
19601
+ "kind": "variable",
19602
+ "name": "lineHighSelection"
19603
+ }
19604
+ ],
19605
+ "exports": [
19606
+ {
19607
+ "kind": "js",
19608
+ "name": "lineHighSelection",
19609
+ "declaration": {
19610
+ "name": "lineHighSelection",
19611
+ "module": "src/components/inputs/text-editor/text-editor.selection.ts"
19612
+ }
19613
+ }
19614
+ ]
19615
+ },
18595
19616
  {
18596
19617
  "kind": "javascript-module",
18597
19618
  "path": "src/components/inputs/text-editor/text-editor.spellcheck.ts",
@@ -18702,6 +19723,155 @@
18702
19723
  ],
18703
19724
  "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."
18704
19725
  },
19726
+ {
19727
+ "kind": "variable",
19728
+ "name": "CODE_BLOCK_NODES",
19729
+ "type": {
19730
+ "text": "ReadonlySet<string>"
19731
+ },
19732
+ "default": "new Set(['FencedCode', 'CodeBlock'])",
19733
+ "description": "The nodes whose text is code, quoted as it is: no list, quote or link in it."
19734
+ },
19735
+ {
19736
+ "kind": "variable",
19737
+ "name": "CODE_NODES",
19738
+ "type": {
19739
+ "text": "ReadonlySet<string>"
19740
+ },
19741
+ "default": "new Set([...CODE_BLOCK_NODES, 'InlineCode'])"
19742
+ },
19743
+ {
19744
+ "kind": "function",
19745
+ "name": "inCodeBlock",
19746
+ "return": {
19747
+ "type": {
19748
+ "text": "boolean"
19749
+ }
19750
+ },
19751
+ "parameters": [
19752
+ {
19753
+ "name": "state",
19754
+ "type": {
19755
+ "text": "EditorState"
19756
+ }
19757
+ },
19758
+ {
19759
+ "name": "pos",
19760
+ "type": {
19761
+ "text": "number"
19762
+ }
19763
+ }
19764
+ ],
19765
+ "description": "Whether `pos` sits in a fenced or indented code block, where a leading `-`,\n`1.` or `>` is literal code."
19766
+ },
19767
+ {
19768
+ "kind": "function",
19769
+ "name": "inCode",
19770
+ "return": {
19771
+ "type": {
19772
+ "text": "boolean"
19773
+ }
19774
+ },
19775
+ "parameters": [
19776
+ {
19777
+ "name": "state",
19778
+ "type": {
19779
+ "text": "EditorState"
19780
+ }
19781
+ },
19782
+ {
19783
+ "name": "pos",
19784
+ "type": {
19785
+ "text": "number"
19786
+ }
19787
+ }
19788
+ ],
19789
+ "description": "Whether `pos` sits in any code, the backtick span included."
19790
+ },
19791
+ {
19792
+ "kind": "function",
19793
+ "name": "forEachLineStart",
19794
+ "return": {
19795
+ "type": {
19796
+ "text": "void"
19797
+ }
19798
+ },
19799
+ "parameters": [
19800
+ {
19801
+ "name": "state",
19802
+ "type": {
19803
+ "text": "EditorState"
19804
+ }
19805
+ },
19806
+ {
19807
+ "name": "from",
19808
+ "type": {
19809
+ "text": "number"
19810
+ }
19811
+ },
19812
+ {
19813
+ "name": "to",
19814
+ "type": {
19815
+ "text": "number"
19816
+ }
19817
+ },
19818
+ {
19819
+ "name": "each",
19820
+ "type": {
19821
+ "text": "(lineFrom: number) => void"
19822
+ }
19823
+ }
19824
+ ],
19825
+ "description": "Call `each` with the start of every line from `from` to `to`."
19826
+ },
19827
+ {
19828
+ "kind": "function",
19829
+ "name": "treeAdvanced",
19830
+ "return": {
19831
+ "type": {
19832
+ "text": "boolean"
19833
+ }
19834
+ },
19835
+ "parameters": [
19836
+ {
19837
+ "name": "before",
19838
+ "type": {
19839
+ "text": "EditorState"
19840
+ }
19841
+ },
19842
+ {
19843
+ "name": "after",
19844
+ "type": {
19845
+ "text": "EditorState"
19846
+ }
19847
+ }
19848
+ ],
19849
+ "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."
19850
+ },
19851
+ {
19852
+ "kind": "function",
19853
+ "name": "isRuleLine",
19854
+ "return": {
19855
+ "type": {
19856
+ "text": "boolean"
19857
+ }
19858
+ },
19859
+ "parameters": [
19860
+ {
19861
+ "name": "state",
19862
+ "type": {
19863
+ "text": "EditorState"
19864
+ }
19865
+ },
19866
+ {
19867
+ "name": "lineFrom",
19868
+ "type": {
19869
+ "text": "number"
19870
+ }
19871
+ }
19872
+ ],
19873
+ "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."
19874
+ },
18705
19875
  {
18706
19876
  "kind": "function",
18707
19877
  "name": "enclosingNamed",
@@ -18737,6 +19907,24 @@
18737
19907
  }
18738
19908
  ],
18739
19909
  "description": "`enclosingNode` for the common case: a node that goes by one of these names."
19910
+ },
19911
+ {
19912
+ "kind": "function",
19913
+ "name": "linkTextRange",
19914
+ "return": {
19915
+ "type": {
19916
+ "text": "{ from: number; to: number } | null"
19917
+ }
19918
+ },
19919
+ "parameters": [
19920
+ {
19921
+ "name": "link",
19922
+ "type": {
19923
+ "text": "SyntaxNode"
19924
+ }
19925
+ }
19926
+ ],
19927
+ "description": "The text of a `[text](url)` link, between its brackets; null when it is empty."
18740
19928
  }
18741
19929
  ],
18742
19930
  "exports": [
@@ -18750,110 +19938,87 @@
18750
19938
  },
18751
19939
  {
18752
19940
  "kind": "js",
18753
- "name": "enclosingNamed",
19941
+ "name": "CODE_BLOCK_NODES",
18754
19942
  "declaration": {
18755
- "name": "enclosingNamed",
19943
+ "name": "CODE_BLOCK_NODES",
18756
19944
  "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
18757
19945
  }
18758
- }
18759
- ]
18760
- },
18761
- {
18762
- "kind": "javascript-module",
18763
- "path": "src/components/inputs/text-editor/text-editor.ts",
18764
- "declarations": [
19946
+ },
18765
19947
  {
18766
- "kind": "class",
18767
- "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.",
18768
- "name": "NLDDTextEditor",
19948
+ "kind": "js",
19949
+ "name": "CODE_NODES",
19950
+ "declaration": {
19951
+ "name": "CODE_NODES",
19952
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19953
+ }
19954
+ },
19955
+ {
19956
+ "kind": "js",
19957
+ "name": "inCodeBlock",
19958
+ "declaration": {
19959
+ "name": "inCodeBlock",
19960
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19961
+ }
19962
+ },
19963
+ {
19964
+ "kind": "js",
19965
+ "name": "inCode",
19966
+ "declaration": {
19967
+ "name": "inCode",
19968
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19969
+ }
19970
+ },
19971
+ {
19972
+ "kind": "js",
19973
+ "name": "forEachLineStart",
19974
+ "declaration": {
19975
+ "name": "forEachLineStart",
19976
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19977
+ }
19978
+ },
19979
+ {
19980
+ "kind": "js",
19981
+ "name": "treeAdvanced",
19982
+ "declaration": {
19983
+ "name": "treeAdvanced",
19984
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19985
+ }
19986
+ },
19987
+ {
19988
+ "kind": "js",
19989
+ "name": "isRuleLine",
19990
+ "declaration": {
19991
+ "name": "isRuleLine",
19992
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
19993
+ }
19994
+ },
19995
+ {
19996
+ "kind": "js",
19997
+ "name": "enclosingNamed",
19998
+ "declaration": {
19999
+ "name": "enclosingNamed",
20000
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20001
+ }
20002
+ },
20003
+ {
20004
+ "kind": "js",
20005
+ "name": "linkTextRange",
20006
+ "declaration": {
20007
+ "name": "linkTextRange",
20008
+ "module": "src/components/inputs/text-editor/text-editor.syntax.ts"
20009
+ }
20010
+ }
20011
+ ]
20012
+ },
20013
+ {
20014
+ "kind": "javascript-module",
20015
+ "path": "src/components/inputs/text-editor/text-editor.ts",
20016
+ "declarations": [
20017
+ {
20018
+ "kind": "class",
20019
+ "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 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.",
20020
+ "name": "NLDDTextEditor",
18769
20021
  "members": [
18770
- {
18771
- "kind": "field",
18772
- "name": "shadowRootOptions",
18773
- "type": {
18774
- "text": "object"
18775
- },
18776
- "static": true,
18777
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
18778
- },
18779
- {
18780
- "kind": "field",
18781
- "name": "isFormInput",
18782
- "type": {
18783
- "text": "boolean"
18784
- },
18785
- "static": true,
18786
- "default": "true",
18787
- "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."
18788
- },
18789
- {
18790
- "kind": "field",
18791
- "name": "value",
18792
- "type": {
18793
- "text": "string"
18794
- },
18795
- "default": "''",
18796
- "attribute": "value"
18797
- },
18798
- {
18799
- "kind": "field",
18800
- "name": "inputId",
18801
- "type": {
18802
- "text": "string"
18803
- },
18804
- "default": "''",
18805
- "attribute": "input-id"
18806
- },
18807
- {
18808
- "kind": "field",
18809
- "name": "placeholder",
18810
- "type": {
18811
- "text": "string"
18812
- },
18813
- "default": "''",
18814
- "attribute": "placeholder",
18815
- "reflects": true
18816
- },
18817
- {
18818
- "kind": "field",
18819
- "name": "disabled",
18820
- "type": {
18821
- "text": "boolean"
18822
- },
18823
- "default": "false",
18824
- "attribute": "disabled",
18825
- "reflects": true
18826
- },
18827
- {
18828
- "kind": "field",
18829
- "name": "name",
18830
- "type": {
18831
- "text": "string"
18832
- },
18833
- "default": "''",
18834
- "attribute": "name",
18835
- "reflects": true
18836
- },
18837
- {
18838
- "kind": "field",
18839
- "name": "readonly",
18840
- "type": {
18841
- "text": "boolean"
18842
- },
18843
- "default": "false",
18844
- "attribute": "readonly",
18845
- "reflects": true
18846
- },
18847
- {
18848
- "kind": "field",
18849
- "name": "required",
18850
- "type": {
18851
- "text": "boolean"
18852
- },
18853
- "default": "false",
18854
- "attribute": "required",
18855
- "reflects": true
18856
- },
18857
20022
  {
18858
20023
  "kind": "field",
18859
20024
  "name": "noSpellcheck",
@@ -18875,15 +20040,6 @@
18875
20040
  "attribute": "wrap",
18876
20041
  "reflects": true
18877
20042
  },
18878
- {
18879
- "kind": "field",
18880
- "name": "rows",
18881
- "type": {
18882
- "text": "number"
18883
- },
18884
- "default": "6",
18885
- "attribute": "rows"
18886
- },
18887
20043
  {
18888
20044
  "kind": "field",
18889
20045
  "name": "resize",
@@ -18906,12 +20062,13 @@
18906
20062
  },
18907
20063
  {
18908
20064
  "kind": "field",
18909
- "name": "accessibleLabel",
20065
+ "name": "syntax",
18910
20066
  "type": {
18911
- "text": "string"
20067
+ "text": "TextEditorSyntax"
18912
20068
  },
18913
- "default": "''",
18914
- "attribute": "accessible-label"
20069
+ "default": "'visible'",
20070
+ "attribute": "syntax",
20071
+ "reflects": true
18915
20072
  },
18916
20073
  {
18917
20074
  "kind": "field",
@@ -18976,17 +20133,6 @@
18976
20133
  "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.",
18977
20134
  "attribute": "translations"
18978
20135
  },
18979
- {
18980
- "kind": "field",
18981
- "name": "invalid",
18982
- "type": {
18983
- "text": "boolean"
18984
- },
18985
- "default": "false",
18986
- "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.",
18987
- "attribute": "invalid",
18988
- "reflects": true
18989
- },
18990
20136
  {
18991
20137
  "kind": "method",
18992
20138
  "name": "toggleBold",
@@ -19312,45 +20458,18 @@
19312
20458
  "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)."
19313
20459
  },
19314
20460
  {
19315
- "kind": "method",
19316
- "name": "formValue",
19317
- "return": {
19318
- "type": {
19319
- "text": "FormValue"
19320
- }
20461
+ "kind": "field",
20462
+ "name": "describedByElements",
20463
+ "type": {
20464
+ "text": "readonly Element[]"
19321
20465
  },
19322
- "description": "The value submitted under `name`; `null` submits nothing. Override.",
20466
+ "default": "[]",
20467
+ "description": "Set by nldd-form-field. A consumer never writes this.",
19323
20468
  "inheritedFrom": {
19324
- "name": "FormAssociated",
19325
- "module": "src/utilities/form-associated-mixin.ts"
19326
- }
19327
- },
19328
- {
19329
- "kind": "method",
19330
- "name": "formResetCallback",
19331
- "return": {
19332
- "type": {
19333
- "text": "void"
19334
- }
20469
+ "name": "DescribedBy",
20470
+ "module": "src/utilities/described-by-mixin.ts"
19335
20471
  }
19336
20472
  },
19337
- {
19338
- "kind": "method",
19339
- "name": "formStateRestoreCallback",
19340
- "return": {
19341
- "type": {
19342
- "text": "void"
19343
- }
19344
- },
19345
- "parameters": [
19346
- {
19347
- "name": "state",
19348
- "type": {
19349
- "text": "File | string | FormData | null"
19350
- }
19351
- }
19352
- ]
19353
- },
19354
20473
  {
19355
20474
  "kind": "method",
19356
20475
  "name": "describedTarget",
@@ -19359,23 +20478,10 @@
19359
20478
  "text": "Element | null"
19360
20479
  }
19361
20480
  },
19362
- "description": "CodeMirror builds the textbox; the host is only its container.",
19363
- "inheritedFrom": {
19364
- "name": "DescribedBy",
19365
- "module": "src/utilities/described-by-mixin.ts"
19366
- }
19367
- },
19368
- {
19369
- "kind": "field",
19370
- "name": "describedByElements",
19371
- "type": {
19372
- "text": "readonly Element[]"
19373
- },
19374
- "default": "[]",
19375
- "description": "Set by nldd-form-field. A consumer never writes this.",
20481
+ "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.",
19376
20482
  "inheritedFrom": {
19377
- "name": "DescribedBy",
19378
- "module": "src/utilities/described-by-mixin.ts"
20483
+ "name": "NLDDCodeMirrorInput",
20484
+ "module": "src/utilities/codemirror/codemirror-input.ts"
19379
20485
  }
19380
20486
  },
19381
20487
  {
@@ -19400,6 +20506,20 @@
19400
20506
  "module": "src/utilities/form-associated-mixin.ts"
19401
20507
  }
19402
20508
  },
20509
+ {
20510
+ "kind": "method",
20511
+ "name": "formValue",
20512
+ "return": {
20513
+ "type": {
20514
+ "text": "FormValue"
20515
+ }
20516
+ },
20517
+ "description": "The value submitted under `name`; `null` submits nothing. Override.",
20518
+ "inheritedFrom": {
20519
+ "name": "NLDDCodeMirrorInput",
20520
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20521
+ }
20522
+ },
19403
20523
  {
19404
20524
  "kind": "method",
19405
20525
  "name": "formState",
@@ -19512,98 +20632,233 @@
19512
20632
  "name": "FormAssociated",
19513
20633
  "module": "src/utilities/form-associated-mixin.ts"
19514
20634
  }
19515
- }
19516
- ],
19517
- "events": [
19518
- {
19519
- "name": "input",
19520
- "description": "When the content changes (detail: { value })"
19521
- },
19522
- {
19523
- "name": "change",
19524
- "description": "When the content is committed on blur (detail: { value })"
19525
- },
19526
- {
19527
- "name": "nldd-text-editor-state",
19528
- "description": "When the selection or content changes (detail: TextEditorState), for toolbar toggle state"
19529
20635
  },
19530
20636
  {
19531
- "name": "nldd-text-editor-mention",
19532
- "description": "When an @-mention is inserted (detail: MentionInsertedDetail with id, text, from, to; clean offsets, like getSelection())"
20637
+ "kind": "field",
20638
+ "name": "shadowRootOptions",
20639
+ "type": {
20640
+ "text": "object"
20641
+ },
20642
+ "static": true,
20643
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }",
20644
+ "inheritedFrom": {
20645
+ "name": "NLDDCodeMirrorInput",
20646
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20647
+ }
19533
20648
  },
19534
20649
  {
19535
- "name": "nldd-text-editor-typeahead",
19536
- "description": "When a candidate from one of the `typeaheads` is chosen (detail: TypeaheadChosenDetail with trigger, candidate, from, to; clean offsets)"
20650
+ "kind": "field",
20651
+ "name": "isFormInput",
20652
+ "type": {
20653
+ "text": "boolean"
20654
+ },
20655
+ "static": true,
20656
+ "default": "true",
20657
+ "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.",
20658
+ "inheritedFrom": {
20659
+ "name": "NLDDCodeMirrorInput",
20660
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20661
+ }
19537
20662
  },
19538
20663
  {
19539
- "name": "nldd-text-editor-annotation-click",
19540
- "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"
19541
- }
19542
- ],
19543
- "attributes": [
19544
- {
20664
+ "kind": "field",
19545
20665
  "name": "value",
19546
20666
  "type": {
19547
20667
  "text": "string"
19548
20668
  },
19549
20669
  "default": "''",
19550
- "fieldName": "value",
19551
- "description": "Editor content (markdown)"
20670
+ "attribute": "value",
20671
+ "inheritedFrom": {
20672
+ "name": "NLDDCodeMirrorInput",
20673
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20674
+ }
19552
20675
  },
19553
20676
  {
19554
- "name": "input-id",
20677
+ "kind": "field",
20678
+ "name": "inputId",
19555
20679
  "type": {
19556
20680
  "text": "string"
19557
20681
  },
19558
20682
  "default": "''",
19559
- "fieldName": "inputId",
19560
- "description": "Sets the id on the editable element. Set automatically by nldd-form-field."
20683
+ "attribute": "input-id",
20684
+ "inheritedFrom": {
20685
+ "name": "NLDDCodeMirrorInput",
20686
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20687
+ }
19561
20688
  },
19562
20689
  {
20690
+ "kind": "field",
19563
20691
  "name": "placeholder",
19564
20692
  "type": {
19565
20693
  "text": "string"
19566
20694
  },
19567
20695
  "default": "''",
19568
- "fieldName": "placeholder",
19569
- "description": "Placeholder text shown while empty"
20696
+ "attribute": "placeholder",
20697
+ "reflects": true,
20698
+ "inheritedFrom": {
20699
+ "name": "NLDDCodeMirrorInput",
20700
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20701
+ }
19570
20702
  },
19571
20703
  {
20704
+ "kind": "field",
19572
20705
  "name": "disabled",
19573
20706
  "type": {
19574
20707
  "text": "boolean"
19575
20708
  },
19576
20709
  "default": "false",
19577
- "fieldName": "disabled",
19578
- "description": "Disabled state"
20710
+ "attribute": "disabled",
20711
+ "reflects": true,
20712
+ "inheritedFrom": {
20713
+ "name": "NLDDCodeMirrorInput",
20714
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20715
+ }
19579
20716
  },
19580
20717
  {
20718
+ "kind": "field",
19581
20719
  "name": "name",
19582
20720
  "type": {
19583
20721
  "text": "string"
19584
20722
  },
19585
20723
  "default": "''",
19586
- "fieldName": "name",
19587
- "description": "Field name for form submission"
20724
+ "attribute": "name",
20725
+ "reflects": true,
20726
+ "inheritedFrom": {
20727
+ "name": "NLDDCodeMirrorInput",
20728
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20729
+ }
19588
20730
  },
19589
20731
  {
20732
+ "kind": "field",
19590
20733
  "name": "readonly",
19591
20734
  "type": {
19592
20735
  "text": "boolean"
19593
20736
  },
19594
20737
  "default": "false",
19595
- "fieldName": "readonly",
19596
- "description": "Readonly state (focusable and selectable, not editable)"
20738
+ "attribute": "readonly",
20739
+ "reflects": true,
20740
+ "inheritedFrom": {
20741
+ "name": "NLDDCodeMirrorInput",
20742
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20743
+ }
19597
20744
  },
19598
20745
  {
20746
+ "kind": "field",
19599
20747
  "name": "required",
19600
20748
  "type": {
19601
20749
  "text": "boolean"
19602
20750
  },
19603
20751
  "default": "false",
19604
- "fieldName": "required",
19605
- "description": "Required state"
20752
+ "attribute": "required",
20753
+ "reflects": true,
20754
+ "inheritedFrom": {
20755
+ "name": "NLDDCodeMirrorInput",
20756
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20757
+ }
20758
+ },
20759
+ {
20760
+ "kind": "field",
20761
+ "name": "rows",
20762
+ "type": {
20763
+ "text": "number"
20764
+ },
20765
+ "default": "6",
20766
+ "attribute": "rows",
20767
+ "inheritedFrom": {
20768
+ "name": "NLDDCodeMirrorInput",
20769
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20770
+ }
20771
+ },
20772
+ {
20773
+ "kind": "field",
20774
+ "name": "accessibleLabel",
20775
+ "type": {
20776
+ "text": "string"
20777
+ },
20778
+ "default": "''",
20779
+ "attribute": "accessible-label",
20780
+ "inheritedFrom": {
20781
+ "name": "NLDDCodeMirrorInput",
20782
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20783
+ }
20784
+ },
20785
+ {
20786
+ "kind": "field",
20787
+ "name": "invalid",
20788
+ "type": {
20789
+ "text": "boolean"
20790
+ },
20791
+ "default": "false",
20792
+ "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.",
20793
+ "attribute": "invalid",
20794
+ "reflects": true,
20795
+ "inheritedFrom": {
20796
+ "name": "NLDDCodeMirrorInput",
20797
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20798
+ }
20799
+ },
20800
+ {
20801
+ "kind": "method",
20802
+ "name": "formResetCallback",
20803
+ "return": {
20804
+ "type": {
20805
+ "text": "void"
20806
+ }
20807
+ },
20808
+ "inheritedFrom": {
20809
+ "name": "NLDDCodeMirrorInput",
20810
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20811
+ }
20812
+ },
20813
+ {
20814
+ "kind": "method",
20815
+ "name": "formStateRestoreCallback",
20816
+ "return": {
20817
+ "type": {
20818
+ "text": "void"
20819
+ }
20820
+ },
20821
+ "parameters": [
20822
+ {
20823
+ "name": "state",
20824
+ "type": {
20825
+ "text": "File | string | FormData | null"
20826
+ }
20827
+ }
20828
+ ],
20829
+ "inheritedFrom": {
20830
+ "name": "NLDDCodeMirrorInput",
20831
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20832
+ }
20833
+ }
20834
+ ],
20835
+ "events": [
20836
+ {
20837
+ "name": "input",
20838
+ "description": "When the content changes (detail: { value })"
20839
+ },
20840
+ {
20841
+ "name": "change",
20842
+ "description": "When the content is committed on blur (detail: { value })"
20843
+ },
20844
+ {
20845
+ "name": "nldd-text-editor-state",
20846
+ "description": "When the selection or content changes (detail: TextEditorState), for toolbar toggle state"
20847
+ },
20848
+ {
20849
+ "name": "nldd-text-editor-mention",
20850
+ "description": "When an @-mention is inserted (detail: MentionInsertedDetail with id, text, from, to; clean offsets, like getSelection())"
20851
+ },
20852
+ {
20853
+ "name": "nldd-text-editor-typeahead",
20854
+ "description": "When a candidate from one of the `typeaheads` is chosen (detail: TypeaheadChosenDetail with trigger, candidate, from, to; clean offsets)"
19606
20855
  },
20856
+ {
20857
+ "name": "nldd-text-editor-annotation-click",
20858
+ "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"
20859
+ }
20860
+ ],
20861
+ "attributes": [
19607
20862
  {
19608
20863
  "name": "no-spellcheck",
19609
20864
  "type": {
@@ -19622,15 +20877,6 @@
19622
20877
  "fieldName": "wrap",
19623
20878
  "description": "Wrap long lines (default true; prose wraps)"
19624
20879
  },
19625
- {
19626
- "name": "rows",
19627
- "type": {
19628
- "text": "number"
19629
- },
19630
- "default": "6",
19631
- "fieldName": "rows",
19632
- "description": "Minimum visible rows (the floor in every resize mode). Default: 6."
19633
- },
19634
20880
  {
19635
20881
  "name": "resize",
19636
20882
  "type": {
@@ -19650,13 +20896,13 @@
19650
20896
  "description": "'simple' (default, bare) | 'input-field' (framed surface)"
19651
20897
  },
19652
20898
  {
19653
- "name": "accessible-label",
20899
+ "name": "syntax",
19654
20900
  "type": {
19655
- "text": "string"
20901
+ "text": "TextEditorSyntax"
19656
20902
  },
19657
- "default": "''",
19658
- "fieldName": "accessibleLabel",
19659
- "description": "Accessible label forwarded to the editor. Set automatically by nldd-form-field."
20903
+ "default": "'visible'",
20904
+ "fieldName": "syntax",
20905
+ "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 ``` fence lines until the caret is in it, since its own tint and edge already say what it is. The numbers of a numbered list stay: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way."
19660
20906
  },
19661
20907
  {
19662
20908
  "name": "annotatable",
@@ -19677,39 +20923,150 @@
19677
20923
  "fieldName": "translations"
19678
20924
  },
19679
20925
  {
19680
- "name": "invalid",
20926
+ "name": "value",
20927
+ "type": {
20928
+ "text": "string"
20929
+ },
20930
+ "default": "''",
20931
+ "fieldName": "value",
20932
+ "inheritedFrom": {
20933
+ "name": "NLDDCodeMirrorInput",
20934
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20935
+ },
20936
+ "description": "Editor content (markdown)"
20937
+ },
20938
+ {
20939
+ "name": "input-id",
20940
+ "type": {
20941
+ "text": "string"
20942
+ },
20943
+ "default": "''",
20944
+ "fieldName": "inputId",
20945
+ "inheritedFrom": {
20946
+ "name": "NLDDCodeMirrorInput",
20947
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20948
+ },
20949
+ "description": "Sets the id on the editable element. Set automatically by nldd-form-field."
20950
+ },
20951
+ {
20952
+ "name": "placeholder",
20953
+ "type": {
20954
+ "text": "string"
20955
+ },
20956
+ "default": "''",
20957
+ "fieldName": "placeholder",
20958
+ "inheritedFrom": {
20959
+ "name": "NLDDCodeMirrorInput",
20960
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20961
+ },
20962
+ "description": "Placeholder text shown while empty"
20963
+ },
20964
+ {
20965
+ "name": "disabled",
19681
20966
  "type": {
19682
20967
  "text": "boolean"
19683
20968
  },
19684
20969
  "default": "false",
19685
- "description": "Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.",
19686
- "fieldName": "invalid"
19687
- }
19688
- ],
19689
- "mixins": [
20970
+ "fieldName": "disabled",
20971
+ "inheritedFrom": {
20972
+ "name": "NLDDCodeMirrorInput",
20973
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20974
+ },
20975
+ "description": "Disabled state"
20976
+ },
19690
20977
  {
19691
- "name": "DescribedBy",
19692
- "module": "/src/utilities/described-by-mixin.js"
20978
+ "name": "name",
20979
+ "type": {
20980
+ "text": "string"
20981
+ },
20982
+ "default": "''",
20983
+ "fieldName": "name",
20984
+ "inheritedFrom": {
20985
+ "name": "NLDDCodeMirrorInput",
20986
+ "module": "src/utilities/codemirror/codemirror-input.ts"
20987
+ },
20988
+ "description": "Field name for form submission"
19693
20989
  },
19694
20990
  {
19695
- "name": "FormAssociated",
19696
- "module": "/src/utilities/form-associated-mixin.js"
19697
- }
19698
- ],
19699
- "superclass": {
19700
- "name": "NLDDCodeMirrorElement",
19701
- "module": "/src/utilities/codemirror/codemirror-element.js"
19702
- },
19703
- "tagName": "nldd-text-editor",
19704
- "customElement": true
19705
- }
19706
- ],
19707
- "exports": [
19708
- {
19709
- "kind": "js",
19710
- "name": "HeadingLevel",
19711
- "declaration": {
19712
- "name": "HeadingLevel",
20991
+ "name": "readonly",
20992
+ "type": {
20993
+ "text": "boolean"
20994
+ },
20995
+ "default": "false",
20996
+ "fieldName": "readonly",
20997
+ "inheritedFrom": {
20998
+ "name": "NLDDCodeMirrorInput",
20999
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21000
+ },
21001
+ "description": "Readonly state (focusable and selectable, not editable)"
21002
+ },
21003
+ {
21004
+ "name": "required",
21005
+ "type": {
21006
+ "text": "boolean"
21007
+ },
21008
+ "default": "false",
21009
+ "fieldName": "required",
21010
+ "inheritedFrom": {
21011
+ "name": "NLDDCodeMirrorInput",
21012
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21013
+ },
21014
+ "description": "Required state"
21015
+ },
21016
+ {
21017
+ "name": "rows",
21018
+ "type": {
21019
+ "text": "number"
21020
+ },
21021
+ "default": "6",
21022
+ "fieldName": "rows",
21023
+ "inheritedFrom": {
21024
+ "name": "NLDDCodeMirrorInput",
21025
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21026
+ },
21027
+ "description": "Minimum visible rows (the floor in every resize mode). Default: 6."
21028
+ },
21029
+ {
21030
+ "name": "accessible-label",
21031
+ "type": {
21032
+ "text": "string"
21033
+ },
21034
+ "default": "''",
21035
+ "fieldName": "accessibleLabel",
21036
+ "inheritedFrom": {
21037
+ "name": "NLDDCodeMirrorInput",
21038
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21039
+ },
21040
+ "description": "Accessible label forwarded to the editor. Set automatically by nldd-form-field."
21041
+ },
21042
+ {
21043
+ "name": "invalid",
21044
+ "type": {
21045
+ "text": "boolean"
21046
+ },
21047
+ "default": "false",
21048
+ "description": "Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.",
21049
+ "fieldName": "invalid",
21050
+ "inheritedFrom": {
21051
+ "name": "NLDDCodeMirrorInput",
21052
+ "module": "src/utilities/codemirror/codemirror-input.ts"
21053
+ }
21054
+ }
21055
+ ],
21056
+ "superclass": {
21057
+ "name": "NLDDCodeMirrorInput",
21058
+ "module": "/src/utilities/codemirror/codemirror-input.js"
21059
+ },
21060
+ "tagName": "nldd-text-editor",
21061
+ "customElement": true
21062
+ }
21063
+ ],
21064
+ "exports": [
21065
+ {
21066
+ "kind": "js",
21067
+ "name": "HeadingLevel",
21068
+ "declaration": {
21069
+ "name": "HeadingLevel",
19713
21070
  "module": "./text-editor.commands.js"
19714
21071
  }
19715
21072
  },
@@ -22006,6 +23363,46 @@
22006
23363
  "default": "''",
22007
23364
  "attribute": "accessible-label"
22008
23365
  },
23366
+ {
23367
+ "kind": "field",
23368
+ "name": "shortcut",
23369
+ "type": {
23370
+ "text": "string"
23371
+ },
23372
+ "default": "''",
23373
+ "attribute": "shortcut",
23374
+ "reflects": true
23375
+ },
23376
+ {
23377
+ "kind": "field",
23378
+ "name": "shortcutMac",
23379
+ "type": {
23380
+ "text": "string"
23381
+ },
23382
+ "default": "''",
23383
+ "attribute": "shortcut-mac",
23384
+ "reflects": true
23385
+ },
23386
+ {
23387
+ "kind": "field",
23388
+ "name": "shortcutWindows",
23389
+ "type": {
23390
+ "text": "string"
23391
+ },
23392
+ "default": "''",
23393
+ "attribute": "shortcut-windows",
23394
+ "reflects": true
23395
+ },
23396
+ {
23397
+ "kind": "field",
23398
+ "name": "shortcutLinux",
23399
+ "type": {
23400
+ "text": "string"
23401
+ },
23402
+ "default": "''",
23403
+ "attribute": "shortcut-linux",
23404
+ "reflects": true
23405
+ },
22009
23406
  {
22010
23407
  "kind": "field",
22011
23408
  "name": "invalid",
@@ -22382,6 +23779,42 @@
22382
23779
  "fieldName": "accessibleLabel",
22383
23780
  "description": "Accessible label; required for icon-only usage"
22384
23781
  },
23782
+ {
23783
+ "name": "shortcut",
23784
+ "type": {
23785
+ "text": "string"
23786
+ },
23787
+ "default": "''",
23788
+ "fieldName": "shortcut",
23789
+ "description": "Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name (\"Vet Cmd B\"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable."
23790
+ },
23791
+ {
23792
+ "name": "shortcut-mac",
23793
+ "type": {
23794
+ "text": "string"
23795
+ },
23796
+ "default": "''",
23797
+ "fieldName": "shortcutMac",
23798
+ "description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
23799
+ },
23800
+ {
23801
+ "name": "shortcut-windows",
23802
+ "type": {
23803
+ "text": "string"
23804
+ },
23805
+ "default": "''",
23806
+ "fieldName": "shortcutWindows",
23807
+ "description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
23808
+ },
23809
+ {
23810
+ "name": "shortcut-linux",
23811
+ "type": {
23812
+ "text": "string"
23813
+ },
23814
+ "default": "''",
23815
+ "fieldName": "shortcutLinux",
23816
+ "description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
23817
+ },
22385
23818
  {
22386
23819
  "name": "invalid",
22387
23820
  "type": {
@@ -23630,6 +25063,16 @@
23630
25063
  "attribute": "max-width",
23631
25064
  "reflects": true
23632
25065
  },
25066
+ {
25067
+ "kind": "field",
25068
+ "name": "minHeight",
25069
+ "type": {
25070
+ "text": "string"
25071
+ },
25072
+ "default": "''",
25073
+ "attribute": "min-height",
25074
+ "reflects": true
25075
+ },
23633
25076
  {
23634
25077
  "kind": "field",
23635
25078
  "name": "gap",
@@ -24039,6 +25482,15 @@
24039
25482
  "fieldName": "maxWidth",
24040
25483
  "description": "Maximum width as a CSS length (e.g. '480px')"
24041
25484
  },
25485
+ {
25486
+ "name": "min-height",
25487
+ "type": {
25488
+ "text": "string"
25489
+ },
25490
+ "default": "''",
25491
+ "fieldName": "minHeight",
25492
+ "description": "Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it."
25493
+ },
24042
25494
  {
24043
25495
  "name": "gap",
24044
25496
  "type": {
@@ -35695,7 +37147,7 @@
35695
37147
  "declarations": [
35696
37148
  {
35697
37149
  "kind": "class",
35698
- "description": "Layout placeholder that fills its parent and centers an indeterminate activity indicator. By default the indicator is held back for 1000ms so brief loading states don't flash; once the delay passes it fades in. Set `timing=\"instant\"` to skip the delay (the fade-in still plays) — this is what embedding components such as `nldd-button` use for their loading state. The default indicator is a simple icon-sized circle that follows the shared `--context-content-color` channel (set by list-item / table / menu on their content), falling back to `currentColor` wherever that channel is unset (buttons, rich-text, standalone) — so a spinner inside a cell tracks the row's state-aware content color, while embedders relying on currentColor are unaffected. An optional label sits below (hidden unless `show-text` is set). Drop a `<nldd-progress-circle>`, `<nldd-progress-bar>` or any element in the `indicator` slot to override it. Icon alignment: the visible ring already sits at 5/6 of its box (the SVG's r=9 plus a 2-unit stroke in a 24 view-box, the same optical inset a filled icon glyph has), so a standalone spinner lines up with an icon or an `icon-aligned` `nldd-avatar` on the same grid — no extra option needed (unlike `nldd-avatar`, which fills edge-to-edge and opts in via `icon-aligned`). Overlay mode: put content in the default slot and the indicator wraps it — it becomes a `position: relative` container, renders the spinner over a dimming backdrop (opt out with `no-backdrop`), and makes the content `inert` so its controls can't be focused or clicked. Toggle loading with `complete` (`?complete=${!isLoading}`). With no slotted content it stays the standalone placeholder described above. Reconnect behavior: every `connectedCallback` resets the timer and hides the indicator again. If a consumer toggles the element via a conditional render (remove + re-insert) the indicator disappears and re-fades after another delay. Keep the element mounted and toggle visibility / `hidden` instead if you want the timer to run only once. Accessibility: while connected and not `complete` the host is a polite live region (`role=\"status\"`). The label (`text`, or the translated \"Laden\" fallback) always renders as the region's content — visually hidden when `show-text` is off (the default) — so assistive tech announces the loading state when the indicator appears. Set `complete` (or unmount) to clear it.",
37150
+ "description": "Layout placeholder that fills its parent and centers an indeterminate activity indicator. By default the indicator is held back for 1000ms so brief loading states don't flash; once the delay passes it fades in. Set `timing=\"instant\"` to skip the delay (the fade-in still plays) — this is what embedding components such as `nldd-button` use for their loading state. Sizing: fills its parent where the parent lets it (a flex column such as `nldd-container`, a grid, or a fixed height) and centers itself there. Where the parent has no height of its own, give it one: a `min-height` matching the content you expect, such as `<nldd-container min-height=\"240px\">`. As a safety net the host already takes the indicator's size (circle, plus the label with `show-text`) during the delay, so nothing shifts when it fades in; once `complete` is set it gives that space up. Label size follows `size`, not the surrounding text, so the circle and its label keep the same proportion everywhere: body-xs at 16 and 20, body-sm at 24 and 28, body-md from 32. Keep the label short; a longer explanation belongs in the area as regular text. The default indicator is a simple icon-sized circle that follows the shared `--context-content-color` channel (set by list-item / table / menu on their content), falling back to `currentColor` wherever that channel is unset (buttons, rich-text, standalone) — so a spinner inside a cell tracks the row's state-aware content color, while embedders relying on currentColor are unaffected. An optional label sits below (hidden unless `show-text` is set). The indicator is always indeterminate; when you know the progress, show `nldd-progress-bar` or `nldd-progress-circle` instead. Icon alignment: the visible ring already sits at 5/6 of its box (the SVG's r=9 plus a 2-unit stroke in a 24 view-box, the same optical inset a filled icon glyph has), so a standalone spinner lines up with an icon or an `icon-aligned` `nldd-avatar` on the same grid — no extra option needed (unlike `nldd-avatar`, which fills edge-to-edge and opts in via `icon-aligned`). Overlay mode: put content in the default slot and the indicator wraps it — it becomes a `position: relative` container, renders the spinner over a dimming backdrop (opt out with `no-backdrop`), and makes the content `inert` so its controls can't be focused or clicked. Toggle loading with `complete` (`?complete=${!isLoading}`). With no slotted content it stays the standalone placeholder described above. Reconnect behavior: every `connectedCallback` resets the timer and hides the indicator again. If a consumer toggles the element via a conditional render (remove + re-insert) the indicator disappears and re-fades after another delay. Keep the element mounted and toggle visibility / `hidden` instead if you want the timer to run only once. Accessibility: while connected and not `complete` the host is a polite live region (`role=\"status\"`). The label (`text`, or the translated \"Laden\" fallback) always renders as the region's content — visually hidden when `show-text` is off (the default) — so assistive tech announces the loading state when the indicator appears. Set `complete` (or unmount) to clear it.",
35699
37151
  "name": "NLDDActivityIndicator",
35700
37152
  "members": [
35701
37153
  {
@@ -35847,10 +37299,6 @@
35847
37299
  {
35848
37300
  "name": "",
35849
37301
  "description": "Content to wrap (overlay mode); made inert while loading. Leave empty for the standalone placeholder."
35850
- },
35851
- {
35852
- "name": "indicator",
35853
- "description": "Optional custom indicator; overrides the default circle (and its visually-hidden label). Consumers replacing it supply their own indicator semantics; the host's role=\"status\" still marks the loading region."
35854
37302
  }
35855
37303
  ]
35856
37304
  }
@@ -36986,7 +38434,7 @@
36986
38434
  "declarations": [
36987
38435
  {
36988
38436
  "kind": "class",
36989
- "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.",
38437
+ "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.",
36990
38438
  "name": "NLDDNotification",
36991
38439
  "members": [
36992
38440
  {
@@ -38209,172 +39657,905 @@
38209
39657
  "members": [
38210
39658
  {
38211
39659
  "kind": "field",
38212
- "name": "status",
39660
+ "name": "status",
39661
+ "type": {
39662
+ "text": "StepBarStatus | undefined"
39663
+ },
39664
+ "attribute": "status",
39665
+ "reflects": true
39666
+ },
39667
+ {
39668
+ "kind": "field",
39669
+ "name": "text",
39670
+ "type": {
39671
+ "text": "string"
39672
+ },
39673
+ "default": "''",
39674
+ "attribute": "text",
39675
+ "reflects": true
39676
+ },
39677
+ {
39678
+ "kind": "field",
39679
+ "name": "icon",
39680
+ "type": {
39681
+ "text": "string"
39682
+ },
39683
+ "default": "''",
39684
+ "attribute": "icon"
39685
+ },
39686
+ {
39687
+ "kind": "field",
39688
+ "name": "href",
39689
+ "type": {
39690
+ "text": "string"
39691
+ },
39692
+ "default": "''",
39693
+ "attribute": "href",
39694
+ "reflects": true
39695
+ },
39696
+ {
39697
+ "kind": "field",
39698
+ "name": "button",
39699
+ "type": {
39700
+ "text": "boolean"
39701
+ },
39702
+ "default": "false",
39703
+ "description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
39704
+ "attribute": "button",
39705
+ "reflects": true
39706
+ },
39707
+ {
39708
+ "kind": "field",
39709
+ "name": "resolvedStatus",
39710
+ "type": {
39711
+ "text": "StepBarStatus"
39712
+ },
39713
+ "description": "The status that counts. An own `past` or `future` wins over the derived\none. An own `current` is what the parent derives from, so the derived\nstatus already says it, and on a step that lost to a later one it does not\nhold.",
39714
+ "readonly": true
39715
+ }
39716
+ ],
39717
+ "attributes": [
39718
+ {
39719
+ "type": {
39720
+ "text": "StepBarStatus | undefined"
39721
+ },
39722
+ "description": "How far along this step is. `current` marks the step you are on (`aria-current=\"step\"`) and the parent derives the others from it: with none marked step 1 is current, with more than one the last wins. `past` and `future` override what is derived for this step only",
39723
+ "name": "status",
39724
+ "fieldName": "status"
39725
+ },
39726
+ {
39727
+ "type": {
39728
+ "text": "string"
39729
+ },
39730
+ "description": "Label under the disc",
39731
+ "name": "text",
39732
+ "default": "''",
39733
+ "fieldName": "text"
39734
+ },
39735
+ {
39736
+ "type": {
39737
+ "text": "string"
39738
+ },
39739
+ "description": "Icon in the disc instead of the number or the check mark",
39740
+ "name": "icon",
39741
+ "default": "''",
39742
+ "fieldName": "icon"
39743
+ },
39744
+ {
39745
+ "type": {
39746
+ "text": "string"
39747
+ },
39748
+ "description": "Makes the step a link (back to a completed step, for instance)",
39749
+ "name": "href",
39750
+ "default": "''",
39751
+ "fieldName": "href"
39752
+ },
39753
+ {
39754
+ "type": {
39755
+ "text": "boolean"
39756
+ },
39757
+ "description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
39758
+ "name": "button",
39759
+ "default": "false",
39760
+ "fieldName": "button"
39761
+ }
39762
+ ],
39763
+ "superclass": {
39764
+ "name": "LitElement",
39765
+ "package": "lit"
39766
+ },
39767
+ "tagName": "nldd-step-bar-item",
39768
+ "customElement": true
39769
+ },
39770
+ {
39771
+ "kind": "class",
39772
+ "description": "Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status=\"current\"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step 1 is current. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status=\"past\"` or `status=\"future\"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-step-cell`, so a flow reads in one vocabulary whether it runs across or down. Horizontal only. For steps under each other, build an `nldd-list` with an `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. Below the sm breakpoint (a container query, so measured on the component itself rather than on the viewport) it folds into one line of text plus a segmented bar. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. Accessibility: a `nav` with a label, holding a `role=\"list\"` with a `role=\"listitem\"` per step. The current step gets `aria-current=\"step\"`, the only notion WAI-ARIA has for this. \"Done\" and \"still to do\" do not exist as ARIA tokens and travel along as visually hidden text instead.",
39773
+ "name": "NLDDStepBar",
39774
+ "members": [
39775
+ {
39776
+ "kind": "field",
39777
+ "name": "accessibleLabel",
39778
+ "type": {
39779
+ "text": "string"
39780
+ },
39781
+ "default": "''",
39782
+ "attribute": "accessible-label"
39783
+ },
39784
+ {
39785
+ "kind": "field",
39786
+ "name": "total",
39787
+ "type": {
39788
+ "text": "number"
39789
+ },
39790
+ "readonly": true
39791
+ },
39792
+ {
39793
+ "kind": "field",
39794
+ "name": "resolvedCurrent",
39795
+ "type": {
39796
+ "text": "number"
39797
+ },
39798
+ "description": "1-based position of the last item with `status=\"current\"`, or 1 when none has it.",
39799
+ "readonly": true
39800
+ },
39801
+ {
39802
+ "kind": "field",
39803
+ "name": "currentItem",
39804
+ "type": {
39805
+ "text": "NLDDStepBarItem | undefined"
39806
+ },
39807
+ "readonly": true
39808
+ },
39809
+ {
39810
+ "kind": "field",
39811
+ "name": "translations",
39812
+ "type": {
39813
+ "text": "Partial<T>"
39814
+ },
39815
+ "default": "{}",
39816
+ "attribute": "translations",
39817
+ "inheritedFrom": {
39818
+ "name": "withTranslations",
39819
+ "module": "src/utilities/with-translations.ts"
39820
+ }
39821
+ }
39822
+ ],
39823
+ "attributes": [
39824
+ {
39825
+ "name": "current"
39826
+ },
39827
+ {
39828
+ "name": "accessible-label",
39829
+ "type": {
39830
+ "text": "string"
39831
+ },
39832
+ "default": "''",
39833
+ "fieldName": "accessibleLabel",
39834
+ "description": "Name of the nav; defaults to the i18n value (\"Voortgang\")"
39835
+ },
39836
+ {
39837
+ "name": "translations",
39838
+ "type": {
39839
+ "text": "Partial<T>"
39840
+ },
39841
+ "default": "{}",
39842
+ "fieldName": "translations",
39843
+ "inheritedFrom": {
39844
+ "name": "withTranslations",
39845
+ "module": "src/utilities/with-translations.ts"
39846
+ },
39847
+ "description": "Override translation keys; unset keys fall back to Dutch"
39848
+ }
39849
+ ],
39850
+ "mixins": [
39851
+ {
39852
+ "name": "withTranslations",
39853
+ "module": "/src/utilities/with-translations.js"
39854
+ }
39855
+ ],
39856
+ "superclass": {
39857
+ "name": "LitElement",
39858
+ "package": "lit"
39859
+ },
39860
+ "tagName": "nldd-step-bar",
39861
+ "customElement": true,
39862
+ "slots": [
39863
+ {
39864
+ "name": "",
39865
+ "description": "`nldd-step-bar-item` children"
39866
+ }
39867
+ ]
39868
+ }
39869
+ ],
39870
+ "exports": [
39871
+ {
39872
+ "kind": "js",
39873
+ "name": "NLDDStepBarItem",
39874
+ "declaration": {
39875
+ "name": "NLDDStepBarItem",
39876
+ "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
39877
+ }
39878
+ },
39879
+ {
39880
+ "kind": "custom-element-definition",
39881
+ "name": "nldd-step-bar-item",
39882
+ "declaration": {
39883
+ "name": "NLDDStepBarItem",
39884
+ "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
39885
+ }
39886
+ },
39887
+ {
39888
+ "kind": "js",
39889
+ "name": "NLDDStepBar",
39890
+ "declaration": {
39891
+ "name": "NLDDStepBar",
39892
+ "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
39893
+ }
39894
+ },
39895
+ {
39896
+ "kind": "custom-element-definition",
39897
+ "name": "nldd-step-bar",
39898
+ "declaration": {
39899
+ "name": "NLDDStepBar",
39900
+ "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
39901
+ }
39902
+ }
39903
+ ]
39904
+ },
39905
+ {
39906
+ "kind": "javascript-module",
39907
+ "path": "src/utilities/autofocus.ts",
39908
+ "declarations": [
39909
+ {
39910
+ "kind": "function",
39911
+ "name": "focusAutofocusTarget",
39912
+ "return": {
39913
+ "type": {
39914
+ "text": ""
39915
+ }
39916
+ },
39917
+ "parameters": [
39918
+ {
39919
+ "name": "host",
39920
+ "type": {
39921
+ "text": "Element"
39922
+ }
39923
+ }
39924
+ ],
39925
+ "description": "Focus the `[autofocus]` element inside an overlay, if there is one.\n\nThe browser's own autofocus only reaches natively focusable elements. A\ndesign-system field is a custom element whose input sits in its shadow root,\nso `<nldd-text-field autofocus>` would be skipped entirely and the overlay\nwould open with focus on the dialog. Calling `focus()` on the host covers\nboth: our components forward it inward, and for a native element the browser\nhas already done it, which makes the second call a no-op.\n\nCustom elements may not have rendered yet when an overlay opens right after\nan htmx swap, so a component that exposes `updateComplete` gets a second\nattempt once it has."
39926
+ }
39927
+ ],
39928
+ "exports": [
39929
+ {
39930
+ "kind": "js",
39931
+ "name": "focusAutofocusTarget",
39932
+ "declaration": {
39933
+ "name": "focusAutofocusTarget",
39934
+ "module": "src/utilities/autofocus.ts"
39935
+ }
39936
+ }
39937
+ ]
39938
+ },
39939
+ {
39940
+ "kind": "javascript-module",
39941
+ "path": "src/utilities/codemirror/codemirror-input.ts",
39942
+ "declarations": [
39943
+ {
39944
+ "kind": "class",
39945
+ "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()`.",
39946
+ "name": "NLDDCodeMirrorInput",
39947
+ "members": [
39948
+ {
39949
+ "kind": "field",
39950
+ "name": "shadowRootOptions",
39951
+ "type": {
39952
+ "text": "object"
39953
+ },
39954
+ "static": true,
39955
+ "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
39956
+ },
39957
+ {
39958
+ "kind": "field",
39959
+ "name": "isFormInput",
39960
+ "type": {
39961
+ "text": "boolean"
39962
+ },
39963
+ "static": true,
39964
+ "default": "true",
39965
+ "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."
39966
+ },
39967
+ {
39968
+ "kind": "field",
39969
+ "name": "value",
39970
+ "type": {
39971
+ "text": "string"
39972
+ },
39973
+ "default": "''",
39974
+ "attribute": "value"
39975
+ },
39976
+ {
39977
+ "kind": "field",
39978
+ "name": "inputId",
39979
+ "type": {
39980
+ "text": "string"
39981
+ },
39982
+ "default": "''",
39983
+ "attribute": "input-id"
39984
+ },
39985
+ {
39986
+ "kind": "field",
39987
+ "name": "placeholder",
39988
+ "type": {
39989
+ "text": "string"
39990
+ },
39991
+ "default": "''",
39992
+ "attribute": "placeholder",
39993
+ "reflects": true
39994
+ },
39995
+ {
39996
+ "kind": "field",
39997
+ "name": "disabled",
39998
+ "type": {
39999
+ "text": "boolean"
40000
+ },
40001
+ "default": "false",
40002
+ "attribute": "disabled",
40003
+ "reflects": true
40004
+ },
40005
+ {
40006
+ "kind": "field",
40007
+ "name": "name",
40008
+ "type": {
40009
+ "text": "string"
40010
+ },
40011
+ "default": "''",
40012
+ "attribute": "name",
40013
+ "reflects": true
40014
+ },
40015
+ {
40016
+ "kind": "field",
40017
+ "name": "readonly",
40018
+ "type": {
40019
+ "text": "boolean"
40020
+ },
40021
+ "default": "false",
40022
+ "attribute": "readonly",
40023
+ "reflects": true
40024
+ },
40025
+ {
40026
+ "kind": "field",
40027
+ "name": "required",
40028
+ "type": {
40029
+ "text": "boolean"
40030
+ },
40031
+ "default": "false",
40032
+ "attribute": "required",
40033
+ "reflects": true
40034
+ },
40035
+ {
40036
+ "kind": "field",
40037
+ "name": "rows",
40038
+ "type": {
40039
+ "text": "number"
40040
+ },
40041
+ "default": "6",
40042
+ "attribute": "rows"
40043
+ },
40044
+ {
40045
+ "kind": "field",
40046
+ "name": "accessibleLabel",
40047
+ "type": {
40048
+ "text": "string"
40049
+ },
40050
+ "default": "''",
40051
+ "attribute": "accessible-label"
40052
+ },
40053
+ {
40054
+ "kind": "field",
40055
+ "name": "invalid",
40056
+ "type": {
40057
+ "text": "boolean"
40058
+ },
40059
+ "default": "false",
40060
+ "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.",
40061
+ "attribute": "invalid",
40062
+ "reflects": true
40063
+ },
40064
+ {
40065
+ "kind": "field",
40066
+ "name": "_initialValue",
40067
+ "type": {
40068
+ "text": "string"
40069
+ },
40070
+ "privacy": "private",
40071
+ "default": "''"
40072
+ },
40073
+ {
40074
+ "kind": "field",
40075
+ "name": "_valueAtFocus",
40076
+ "type": {
40077
+ "text": "string"
40078
+ },
40079
+ "privacy": "private",
40080
+ "default": "''"
40081
+ },
40082
+ {
40083
+ "kind": "field",
40084
+ "name": "_accessibleLabelWarned",
40085
+ "type": {
40086
+ "text": "boolean"
40087
+ },
40088
+ "privacy": "private",
40089
+ "default": "false"
40090
+ },
40091
+ {
40092
+ "kind": "field",
40093
+ "name": "_editableCompartment",
40094
+ "privacy": "private",
40095
+ "default": "new Compartment()"
40096
+ },
40097
+ {
40098
+ "kind": "field",
40099
+ "name": "_placeholderCompartment",
40100
+ "privacy": "private",
40101
+ "default": "new Compartment()"
40102
+ },
40103
+ {
40104
+ "kind": "field",
40105
+ "name": "_attrsCompartment",
40106
+ "privacy": "private",
40107
+ "default": "new Compartment()"
40108
+ },
40109
+ {
40110
+ "kind": "field",
40111
+ "name": "rowsProperty",
40112
+ "type": {
40113
+ "text": "string"
40114
+ },
40115
+ "privacy": "protected",
40116
+ "readonly": true,
40117
+ "description": "The custom property the visible row count goes into, named after the tag."
40118
+ },
40119
+ {
40120
+ "kind": "method",
40121
+ "name": "docToValue",
40122
+ "privacy": "protected",
40123
+ "return": {
40124
+ "type": {
40125
+ "text": "string"
40126
+ }
40127
+ },
40128
+ "parameters": [
40129
+ {
40130
+ "name": "doc",
40131
+ "type": {
40132
+ "text": "string"
40133
+ }
40134
+ }
40135
+ ],
40136
+ "description": "The value for a document. Default: the document itself."
40137
+ },
40138
+ {
40139
+ "kind": "method",
40140
+ "name": "contentAttributes",
40141
+ "privacy": "protected",
40142
+ "return": {
40143
+ "type": {
40144
+ "text": "Record<string, string>"
40145
+ }
40146
+ },
40147
+ "description": "Attributes of the content element beyond label, id, aria-readonly and\naria-required. Default: none."
40148
+ },
40149
+ {
40150
+ "kind": "method",
40151
+ "name": "beforeChangeCheck",
40152
+ "privacy": "protected",
40153
+ "return": {
40154
+ "type": {
40155
+ "text": "void"
40156
+ }
40157
+ },
40158
+ "parameters": [
40159
+ {
40160
+ "name": "_view",
40161
+ "type": {
40162
+ "text": "EditorView"
40163
+ }
40164
+ }
40165
+ ],
40166
+ "description": "Runs on blur, before the value is compared with the one at focus, so a\nsubclass can settle the document first. Default: nothing."
40167
+ },
40168
+ {
40169
+ "kind": "method",
40170
+ "name": "inputExtensions",
40171
+ "privacy": "protected",
40172
+ "return": {
40173
+ "type": {
40174
+ "text": "Extension[]"
40175
+ }
40176
+ },
40177
+ "description": "The extensions every input needs. A subclass puts these in its own\n`buildExtensions()`, next to what is its own."
40178
+ },
40179
+ {
40180
+ "kind": "method",
40181
+ "name": "_editableExtension",
40182
+ "privacy": "private",
40183
+ "return": {
40184
+ "type": {
40185
+ "text": "Extension"
40186
+ }
40187
+ }
40188
+ },
40189
+ {
40190
+ "kind": "method",
40191
+ "name": "_placeholderExtension",
40192
+ "privacy": "private",
40193
+ "return": {
40194
+ "type": {
40195
+ "text": "Extension"
40196
+ }
40197
+ }
40198
+ },
40199
+ {
40200
+ "kind": "method",
40201
+ "name": "_attrsExtension",
40202
+ "privacy": "private",
40203
+ "return": {
40204
+ "type": {
40205
+ "text": "Extension"
40206
+ }
40207
+ }
40208
+ },
40209
+ {
40210
+ "kind": "method",
40211
+ "name": "refreshContentAttributes",
40212
+ "privacy": "protected",
40213
+ "return": {
40214
+ "type": {
40215
+ "text": "void"
40216
+ }
40217
+ },
40218
+ "description": "Build the textbox attributes again, after something `contentAttributes()`\nreads has changed."
40219
+ },
40220
+ {
40221
+ "kind": "method",
40222
+ "name": "onEditorMounted",
40223
+ "privacy": "protected",
40224
+ "return": {
40225
+ "type": {
40226
+ "text": "void"
40227
+ }
40228
+ }
40229
+ },
40230
+ {
40231
+ "kind": "method",
40232
+ "name": "_onDocChanged",
40233
+ "privacy": "private",
40234
+ "return": {
40235
+ "type": {
40236
+ "text": "void"
40237
+ }
40238
+ }
40239
+ },
40240
+ {
40241
+ "kind": "method",
40242
+ "name": "_emitChange",
40243
+ "privacy": "private",
40244
+ "return": {
40245
+ "type": {
40246
+ "text": "void"
40247
+ }
40248
+ }
40249
+ },
40250
+ {
40251
+ "kind": "field",
40252
+ "name": "_onScrollerPointerDown",
40253
+ "privacy": "private"
40254
+ },
40255
+ {
40256
+ "kind": "method",
40257
+ "name": "_checkAccessibleLabel",
40258
+ "privacy": "private",
40259
+ "return": {
40260
+ "type": {
40261
+ "text": "void"
40262
+ }
40263
+ }
40264
+ },
40265
+ {
40266
+ "kind": "method",
40267
+ "name": "formValue",
40268
+ "return": {
40269
+ "type": {
40270
+ "text": "FormValue"
40271
+ }
40272
+ },
40273
+ "description": "The value submitted under `name`; `null` submits nothing. Override.",
40274
+ "inheritedFrom": {
40275
+ "name": "FormAssociated",
40276
+ "module": "src/utilities/form-associated-mixin.ts"
40277
+ }
40278
+ },
40279
+ {
40280
+ "kind": "method",
40281
+ "name": "formResetCallback",
40282
+ "return": {
40283
+ "type": {
40284
+ "text": "void"
40285
+ }
40286
+ }
40287
+ },
40288
+ {
40289
+ "kind": "method",
40290
+ "name": "formStateRestoreCallback",
40291
+ "return": {
40292
+ "type": {
40293
+ "text": "void"
40294
+ }
40295
+ },
40296
+ "parameters": [
40297
+ {
40298
+ "name": "state",
40299
+ "type": {
40300
+ "text": "File | string | FormData | null"
40301
+ }
40302
+ }
40303
+ ]
40304
+ },
40305
+ {
40306
+ "kind": "method",
40307
+ "name": "describedTarget",
40308
+ "return": {
40309
+ "type": {
40310
+ "text": "Element | null"
40311
+ }
40312
+ },
40313
+ "description": "CodeMirror builds the textbox; the host is only its container.",
40314
+ "inheritedFrom": {
40315
+ "name": "DescribedBy",
40316
+ "module": "src/utilities/described-by-mixin.ts"
40317
+ }
40318
+ },
40319
+ {
40320
+ "kind": "field",
40321
+ "name": "describedByElements",
38213
40322
  "type": {
38214
- "text": "StepBarStatus | undefined"
40323
+ "text": "readonly Element[]"
38215
40324
  },
38216
- "attribute": "status",
38217
- "reflects": true
40325
+ "default": "[]",
40326
+ "description": "Set by nldd-form-field. A consumer never writes this.",
40327
+ "inheritedFrom": {
40328
+ "name": "DescribedBy",
40329
+ "module": "src/utilities/described-by-mixin.ts"
40330
+ }
38218
40331
  },
38219
40332
  {
38220
40333
  "kind": "field",
38221
- "name": "text",
40334
+ "name": "formAssociated",
38222
40335
  "type": {
38223
- "text": "string"
40336
+ "text": "boolean"
38224
40337
  },
38225
- "default": "''",
38226
- "attribute": "text",
38227
- "reflects": true
40338
+ "static": true,
40339
+ "default": "true",
40340
+ "inheritedFrom": {
40341
+ "name": "FormAssociated",
40342
+ "module": "src/utilities/form-associated-mixin.ts"
40343
+ }
38228
40344
  },
38229
40345
  {
38230
40346
  "kind": "field",
38231
- "name": "icon",
38232
- "type": {
38233
- "text": "string"
40347
+ "name": "internals",
40348
+ "readonly": true,
40349
+ "inheritedFrom": {
40350
+ "name": "FormAssociated",
40351
+ "module": "src/utilities/form-associated-mixin.ts"
40352
+ }
40353
+ },
40354
+ {
40355
+ "kind": "method",
40356
+ "name": "formState",
40357
+ "return": {
40358
+ "type": {
40359
+ "text": "FormValue | undefined"
40360
+ }
38234
40361
  },
38235
- "default": "''",
38236
- "attribute": "icon"
40362
+ "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()`.",
40363
+ "inheritedFrom": {
40364
+ "name": "FormAssociated",
40365
+ "module": "src/utilities/form-associated-mixin.ts"
40366
+ }
38237
40367
  },
38238
40368
  {
38239
- "kind": "field",
38240
- "name": "href",
38241
- "type": {
38242
- "text": "string"
40369
+ "kind": "method",
40370
+ "name": "commitFormValue",
40371
+ "return": {
40372
+ "type": {
40373
+ "text": "void"
40374
+ }
38243
40375
  },
38244
- "default": "''",
38245
- "attribute": "href",
38246
- "reflects": true
40376
+ "description": "Commit the value now, from the handler that changed it.",
40377
+ "inheritedFrom": {
40378
+ "name": "FormAssociated",
40379
+ "module": "src/utilities/form-associated-mixin.ts"
40380
+ }
38247
40381
  },
38248
40382
  {
38249
- "kind": "field",
38250
- "name": "button",
38251
- "type": {
38252
- "text": "boolean"
40383
+ "kind": "method",
40384
+ "name": "validationTarget",
40385
+ "return": {
40386
+ "type": {
40387
+ "text": "HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null"
40388
+ }
38253
40389
  },
38254
- "default": "false",
38255
- "description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
38256
- "attribute": "button",
38257
- "reflects": true
40390
+ "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.",
40391
+ "inheritedFrom": {
40392
+ "name": "FormAssociated",
40393
+ "module": "src/utilities/form-associated-mixin.ts"
40394
+ }
40395
+ },
40396
+ {
40397
+ "kind": "method",
40398
+ "name": "validationAnchor",
40399
+ "return": {
40400
+ "type": {
40401
+ "text": "HTMLElement | undefined"
40402
+ }
40403
+ },
40404
+ "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.",
40405
+ "inheritedFrom": {
40406
+ "name": "FormAssociated",
40407
+ "module": "src/utilities/form-associated-mixin.ts"
40408
+ }
40409
+ },
40410
+ {
40411
+ "kind": "method",
40412
+ "name": "setCustomValidity",
40413
+ "return": {
40414
+ "type": {
40415
+ "text": "void"
40416
+ }
40417
+ },
40418
+ "parameters": [
40419
+ {
40420
+ "name": "message",
40421
+ "type": {
40422
+ "text": "string"
40423
+ }
40424
+ }
40425
+ ],
40426
+ "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.",
40427
+ "inheritedFrom": {
40428
+ "name": "FormAssociated",
40429
+ "module": "src/utilities/form-associated-mixin.ts"
40430
+ }
40431
+ },
40432
+ {
40433
+ "kind": "method",
40434
+ "name": "commitValidity",
40435
+ "return": {
40436
+ "type": {
40437
+ "text": "void"
40438
+ }
40439
+ },
40440
+ "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.",
40441
+ "inheritedFrom": {
40442
+ "name": "FormAssociated",
40443
+ "module": "src/utilities/form-associated-mixin.ts"
40444
+ }
38258
40445
  },
38259
40446
  {
38260
40447
  "kind": "field",
38261
- "name": "resolvedStatus",
40448
+ "name": "_customValidity",
38262
40449
  "type": {
38263
- "text": "StepBarStatus"
40450
+ "text": "string"
38264
40451
  },
38265
- "description": "The status that counts. An own `past` or `future` wins over the derived\none. An own `current` is what the parent derives from, so the derived\nstatus already says it, and on a step that lost to a later one it does not\nhold.",
38266
- "readonly": true
40452
+ "privacy": "private",
40453
+ "default": "''",
40454
+ "inheritedFrom": {
40455
+ "name": "FormAssociated",
40456
+ "module": "src/utilities/form-associated-mixin.ts"
40457
+ }
40458
+ },
40459
+ {
40460
+ "kind": "method",
40461
+ "name": "formDisabledCallback",
40462
+ "return": {
40463
+ "type": {
40464
+ "text": "void"
40465
+ }
40466
+ },
40467
+ "parameters": [
40468
+ {
40469
+ "name": "disabled",
40470
+ "type": {
40471
+ "text": "boolean"
40472
+ }
40473
+ }
40474
+ ],
40475
+ "inheritedFrom": {
40476
+ "name": "FormAssociated",
40477
+ "module": "src/utilities/form-associated-mixin.ts"
40478
+ }
38267
40479
  }
38268
40480
  ],
38269
- "attributes": [
40481
+ "events": [
38270
40482
  {
40483
+ "name": "input",
38271
40484
  "type": {
38272
- "text": "StepBarStatus | undefined"
38273
- },
38274
- "description": "How far along this step is. `current` marks the step you are on (`aria-current=\"step\"`) and the parent derives the others from it: with none marked step 1 is current, with more than one the last wins. `past` and `future` override what is derived for this step only",
38275
- "name": "status",
38276
- "fieldName": "status"
40485
+ "text": "CustomEvent"
40486
+ }
38277
40487
  },
38278
40488
  {
40489
+ "name": "change",
40490
+ "type": {
40491
+ "text": "CustomEvent"
40492
+ }
40493
+ }
40494
+ ],
40495
+ "attributes": [
40496
+ {
40497
+ "name": "value",
38279
40498
  "type": {
38280
40499
  "text": "string"
38281
40500
  },
38282
- "description": "Label under the disc",
38283
- "name": "text",
38284
40501
  "default": "''",
38285
- "fieldName": "text"
40502
+ "fieldName": "value"
38286
40503
  },
38287
40504
  {
40505
+ "name": "input-id",
38288
40506
  "type": {
38289
40507
  "text": "string"
38290
40508
  },
38291
- "description": "Icon in the disc instead of the number or the check mark",
38292
- "name": "icon",
38293
40509
  "default": "''",
38294
- "fieldName": "icon"
40510
+ "fieldName": "inputId"
38295
40511
  },
38296
40512
  {
40513
+ "name": "placeholder",
38297
40514
  "type": {
38298
40515
  "text": "string"
38299
40516
  },
38300
- "description": "Makes the step a link (back to a completed step, for instance)",
38301
- "name": "href",
38302
40517
  "default": "''",
38303
- "fieldName": "href"
40518
+ "fieldName": "placeholder"
38304
40519
  },
38305
40520
  {
40521
+ "name": "disabled",
38306
40522
  "type": {
38307
40523
  "text": "boolean"
38308
40524
  },
38309
- "description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
38310
- "name": "button",
38311
40525
  "default": "false",
38312
- "fieldName": "button"
38313
- }
38314
- ],
38315
- "superclass": {
38316
- "name": "LitElement",
38317
- "package": "lit"
38318
- },
38319
- "tagName": "nldd-step-bar-item",
38320
- "customElement": true
38321
- },
38322
- {
38323
- "kind": "class",
38324
- "description": "Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status=\"current\"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step 1 is current. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status=\"past\"` or `status=\"future\"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-step-cell`, so a flow reads in one vocabulary whether it runs across or down. Horizontal only. For steps under each other, build an `nldd-list` with an `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. Below the sm breakpoint (a container query, so measured on the component itself rather than on the viewport) it folds into one line of text plus a segmented bar. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. Accessibility: a `nav` with a label, holding a `role=\"list\"` with a `role=\"listitem\"` per step. The current step gets `aria-current=\"step\"`, the only notion WAI-ARIA has for this. \"Done\" and \"still to do\" do not exist as ARIA tokens and travel along as visually hidden text instead.",
38325
- "name": "NLDDStepBar",
38326
- "members": [
40526
+ "fieldName": "disabled"
40527
+ },
38327
40528
  {
38328
- "kind": "field",
38329
- "name": "accessibleLabel",
40529
+ "name": "name",
38330
40530
  "type": {
38331
40531
  "text": "string"
38332
40532
  },
38333
40533
  "default": "''",
38334
- "attribute": "accessible-label"
38335
- },
38336
- {
38337
- "kind": "field",
38338
- "name": "total",
38339
- "type": {
38340
- "text": "number"
38341
- },
38342
- "readonly": true
40534
+ "fieldName": "name"
38343
40535
  },
38344
40536
  {
38345
- "kind": "field",
38346
- "name": "resolvedCurrent",
40537
+ "name": "readonly",
38347
40538
  "type": {
38348
- "text": "number"
40539
+ "text": "boolean"
38349
40540
  },
38350
- "description": "1-based position of the last item with `status=\"current\"`, or 1 when none has it.",
38351
- "readonly": true
40541
+ "default": "false",
40542
+ "fieldName": "readonly"
38352
40543
  },
38353
40544
  {
38354
- "kind": "field",
38355
- "name": "currentItem",
40545
+ "name": "required",
38356
40546
  "type": {
38357
- "text": "NLDDStepBarItem | undefined"
40547
+ "text": "boolean"
38358
40548
  },
38359
- "readonly": true
40549
+ "default": "false",
40550
+ "fieldName": "required"
38360
40551
  },
38361
40552
  {
38362
- "kind": "field",
38363
- "name": "translations",
40553
+ "name": "rows",
38364
40554
  "type": {
38365
- "text": "Partial<T>"
40555
+ "text": "number"
38366
40556
  },
38367
- "default": "{}",
38368
- "attribute": "translations",
38369
- "inheritedFrom": {
38370
- "name": "withTranslations",
38371
- "module": "src/utilities/with-translations.ts"
38372
- }
38373
- }
38374
- ],
38375
- "attributes": [
38376
- {
38377
- "name": "current"
40557
+ "default": "6",
40558
+ "fieldName": "rows"
38378
40559
  },
38379
40560
  {
38380
40561
  "name": "accessible-label",
@@ -38382,108 +40563,41 @@
38382
40563
  "text": "string"
38383
40564
  },
38384
40565
  "default": "''",
38385
- "fieldName": "accessibleLabel",
38386
- "description": "Name of the nav; defaults to the i18n value (\"Voortgang\")"
40566
+ "fieldName": "accessibleLabel"
38387
40567
  },
38388
40568
  {
38389
- "name": "translations",
40569
+ "name": "invalid",
38390
40570
  "type": {
38391
- "text": "Partial<T>"
38392
- },
38393
- "default": "{}",
38394
- "fieldName": "translations",
38395
- "inheritedFrom": {
38396
- "name": "withTranslations",
38397
- "module": "src/utilities/with-translations.ts"
40571
+ "text": "boolean"
38398
40572
  },
38399
- "description": "Override translation keys; unset keys fall back to Dutch"
40573
+ "default": "false",
40574
+ "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.",
40575
+ "fieldName": "invalid"
38400
40576
  }
38401
40577
  ],
38402
40578
  "mixins": [
38403
40579
  {
38404
- "name": "withTranslations",
38405
- "module": "/src/utilities/with-translations.js"
40580
+ "name": "DescribedBy",
40581
+ "module": "/src/utilities/described-by-mixin.js"
40582
+ },
40583
+ {
40584
+ "name": "FormAssociated",
40585
+ "module": "/src/utilities/form-associated-mixin.js"
38406
40586
  }
38407
40587
  ],
38408
40588
  "superclass": {
38409
- "name": "LitElement",
38410
- "package": "lit"
38411
- },
38412
- "tagName": "nldd-step-bar",
38413
- "customElement": true,
38414
- "slots": [
38415
- {
38416
- "name": "",
38417
- "description": "`nldd-step-bar-item` children"
38418
- }
38419
- ]
38420
- }
38421
- ],
38422
- "exports": [
38423
- {
38424
- "kind": "js",
38425
- "name": "NLDDStepBarItem",
38426
- "declaration": {
38427
- "name": "NLDDStepBarItem",
38428
- "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
38429
- }
38430
- },
38431
- {
38432
- "kind": "custom-element-definition",
38433
- "name": "nldd-step-bar-item",
38434
- "declaration": {
38435
- "name": "NLDDStepBarItem",
38436
- "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
38437
- }
38438
- },
38439
- {
38440
- "kind": "js",
38441
- "name": "NLDDStepBar",
38442
- "declaration": {
38443
- "name": "NLDDStepBar",
38444
- "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
38445
- }
38446
- },
38447
- {
38448
- "kind": "custom-element-definition",
38449
- "name": "nldd-step-bar",
38450
- "declaration": {
38451
- "name": "NLDDStepBar",
38452
- "module": "src/components/status-and-feedback/step-bar/step-bar.ts"
40589
+ "name": "NLDDCodeMirrorElement",
40590
+ "module": "/src/utilities/codemirror/codemirror-element.js"
38453
40591
  }
38454
40592
  }
38455
- ]
38456
- },
38457
- {
38458
- "kind": "javascript-module",
38459
- "path": "src/utilities/autofocus.ts",
38460
- "declarations": [
38461
- {
38462
- "kind": "function",
38463
- "name": "focusAutofocusTarget",
38464
- "return": {
38465
- "type": {
38466
- "text": ""
38467
- }
38468
- },
38469
- "parameters": [
38470
- {
38471
- "name": "host",
38472
- "type": {
38473
- "text": "Element"
38474
- }
38475
- }
38476
- ],
38477
- "description": "Focus the `[autofocus]` element inside an overlay, if there is one.\n\nThe browser's own autofocus only reaches natively focusable elements. A\ndesign-system field is a custom element whose input sits in its shadow root,\nso `<nldd-text-field autofocus>` would be skipped entirely and the overlay\nwould open with focus on the dialog. Calling `focus()` on the host covers\nboth: our components forward it inward, and for a native element the browser\nhas already done it, which makes the second call a no-op.\n\nCustom elements may not have rendered yet when an overlay opens right after\nan htmx swap, so a component that exposes `updateComplete` gets a second\nattempt once it has."
38478
- }
38479
40593
  ],
38480
40594
  "exports": [
38481
40595
  {
38482
40596
  "kind": "js",
38483
- "name": "focusAutofocusTarget",
40597
+ "name": "NLDDCodeMirrorInput",
38484
40598
  "declaration": {
38485
- "name": "focusAutofocusTarget",
38486
- "module": "src/utilities/autofocus.ts"
40599
+ "name": "NLDDCodeMirrorInput",
40600
+ "module": "src/utilities/codemirror/codemirror-input.ts"
38487
40601
  }
38488
40602
  }
38489
40603
  ]
@@ -40560,6 +42674,192 @@
40560
42674
  }
40561
42675
  ]
40562
42676
  },
42677
+ {
42678
+ "kind": "javascript-module",
42679
+ "path": "src/utilities/shortcut.ts",
42680
+ "declarations": [
42681
+ {
42682
+ "kind": "function",
42683
+ "name": "hasShortcut",
42684
+ "return": {
42685
+ "type": {
42686
+ "text": "boolean"
42687
+ }
42688
+ },
42689
+ "parameters": [
42690
+ {
42691
+ "name": "hint",
42692
+ "type": {
42693
+ "text": "ShortcutHint"
42694
+ }
42695
+ }
42696
+ ]
42697
+ },
42698
+ {
42699
+ "kind": "function",
42700
+ "name": "resolveKeys",
42701
+ "return": {
42702
+ "type": {
42703
+ "text": "string"
42704
+ }
42705
+ },
42706
+ "parameters": [
42707
+ {
42708
+ "name": "spec",
42709
+ "type": {
42710
+ "text": "KeysPerOS"
42711
+ }
42712
+ },
42713
+ {
42714
+ "name": "os",
42715
+ "type": {
42716
+ "text": "OS"
42717
+ }
42718
+ }
42719
+ ],
42720
+ "description": "The key spec for this OS, with `keys` as the fallback."
42721
+ },
42722
+ {
42723
+ "kind": "function",
42724
+ "name": "parseKeys",
42725
+ "return": {
42726
+ "type": {
42727
+ "text": "string[]"
42728
+ }
42729
+ },
42730
+ "parameters": [
42731
+ {
42732
+ "name": "spec",
42733
+ "type": {
42734
+ "text": "string"
42735
+ }
42736
+ }
42737
+ ],
42738
+ "description": "Splits 'Ctrl+Shift+P' into keys; a trailing '++' ('Ctrl++') or '+++' is a literal '+' key."
42739
+ },
42740
+ {
42741
+ "kind": "function",
42742
+ "name": "shortcutsAvailable",
42743
+ "return": {
42744
+ "type": {
42745
+ "text": "boolean"
42746
+ }
42747
+ },
42748
+ "description": "Whether a keyboard shortcut can be used on this device, so a hint for it is worth showing."
42749
+ },
42750
+ {
42751
+ "kind": "class",
42752
+ "description": "Renders the host again when shortcuts become available or unavailable, such\nas when a pointer is attached or removed, so a shortcut in its accessible\nname follows the visible hint. Pass `onChange` for work that a render does\nnot redo.",
42753
+ "name": "ShortcutAvailabilityController",
42754
+ "members": [
42755
+ {
42756
+ "kind": "field",
42757
+ "name": "_query",
42758
+ "privacy": "private"
42759
+ },
42760
+ {
42761
+ "kind": "field",
42762
+ "name": "_onChange",
42763
+ "type": {
42764
+ "text": "() => void"
42765
+ },
42766
+ "privacy": "private"
42767
+ },
42768
+ {
42769
+ "kind": "field",
42770
+ "name": "_handleChange",
42771
+ "privacy": "private"
42772
+ },
42773
+ {
42774
+ "kind": "method",
42775
+ "name": "hostConnected",
42776
+ "return": {
42777
+ "type": {
42778
+ "text": "void"
42779
+ }
42780
+ }
42781
+ },
42782
+ {
42783
+ "kind": "method",
42784
+ "name": "hostDisconnected",
42785
+ "return": {
42786
+ "type": {
42787
+ "text": "void"
42788
+ }
42789
+ }
42790
+ }
42791
+ ]
42792
+ },
42793
+ {
42794
+ "kind": "function",
42795
+ "name": "shortcutLabel",
42796
+ "return": {
42797
+ "type": {
42798
+ "text": "string"
42799
+ }
42800
+ },
42801
+ "parameters": [
42802
+ {
42803
+ "name": "hint",
42804
+ "type": {
42805
+ "text": "ShortcutHint"
42806
+ }
42807
+ }
42808
+ ],
42809
+ "description": "The shortcut as words for an accessible name (\"Ctrl Z\"), matching how\nnldd-menu-item is announced. Empty without a shortcut, and where\nshortcutsAvailable() says the key cannot be pressed, as the hint is hidden\nthere too. Read when the component renders; ShortcutAvailabilityController\nrenders it again when that changes."
42810
+ }
42811
+ ],
42812
+ "exports": [
42813
+ {
42814
+ "kind": "js",
42815
+ "name": "hasShortcut",
42816
+ "declaration": {
42817
+ "name": "hasShortcut",
42818
+ "module": "src/utilities/shortcut.ts"
42819
+ }
42820
+ },
42821
+ {
42822
+ "kind": "js",
42823
+ "name": "resolveKeys",
42824
+ "declaration": {
42825
+ "name": "resolveKeys",
42826
+ "module": "src/utilities/shortcut.ts"
42827
+ }
42828
+ },
42829
+ {
42830
+ "kind": "js",
42831
+ "name": "parseKeys",
42832
+ "declaration": {
42833
+ "name": "parseKeys",
42834
+ "module": "src/utilities/shortcut.ts"
42835
+ }
42836
+ },
42837
+ {
42838
+ "kind": "js",
42839
+ "name": "shortcutsAvailable",
42840
+ "declaration": {
42841
+ "name": "shortcutsAvailable",
42842
+ "module": "src/utilities/shortcut.ts"
42843
+ }
42844
+ },
42845
+ {
42846
+ "kind": "js",
42847
+ "name": "ShortcutAvailabilityController",
42848
+ "declaration": {
42849
+ "name": "ShortcutAvailabilityController",
42850
+ "module": "src/utilities/shortcut.ts"
42851
+ }
42852
+ },
42853
+ {
42854
+ "kind": "js",
42855
+ "name": "shortcutLabel",
42856
+ "declaration": {
42857
+ "name": "shortcutLabel",
42858
+ "module": "src/utilities/shortcut.ts"
42859
+ }
42860
+ }
42861
+ ]
42862
+ },
40563
42863
  {
40564
42864
  "kind": "javascript-module",
40565
42865
  "path": "src/utilities/spacing-scale.ts",