@nldd/design-system 0.8.64 → 0.8.65

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 (459) hide show
  1. package/dist/components/actions/button/button.d.ts.map +1 -1
  2. package/dist/components/actions/button/button.js +7 -6
  3. package/dist/components/actions/button/button.js.map +1 -1
  4. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  5. package/dist/components/actions/button/button.styles.js +9 -5
  6. package/dist/components/actions/button/button.styles.js.map +1 -1
  7. package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
  8. package/dist/components/actions/button-bar/button-bar.js +3 -2
  9. package/dist/components/actions/button-bar/button-bar.js.map +1 -1
  10. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  11. package/dist/components/actions/button-group/button-group.js +3 -2
  12. package/dist/components/actions/button-group/button-group.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +4 -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 +13 -5
  16. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  18. package/dist/components/actions/icon-button/icon-button.styles.js +15 -10
  19. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  20. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.template.js +2 -0
  22. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  23. package/dist/components/actions/menu/menu.d.ts +1 -0
  24. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  25. package/dist/components/actions/menu/menu.js +33 -15
  26. package/dist/components/actions/menu/menu.js.map +1 -1
  27. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  28. package/dist/components/actions/menu/menu.styles.js +8 -0
  29. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  30. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  31. package/dist/components/actions/split-button/split-button.js +5 -4
  32. package/dist/components/actions/split-button/split-button.js.map +1 -1
  33. package/dist/components/actions/toolbar/toolbar.d.ts +11 -0
  34. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  35. package/dist/components/actions/toolbar/toolbar.js +112 -40
  36. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  37. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  38. package/dist/components/actions/toolbar/toolbar.styles.js +3 -12
  39. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  40. package/dist/components/components.js +104 -102
  41. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  42. package/dist/components/content/blockquote/blockquote.styles.js +0 -3
  43. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  44. package/dist/components/content/byline/byline.d.ts.map +1 -1
  45. package/dist/components/content/byline/byline.js +3 -2
  46. package/dist/components/content/byline/byline.js.map +1 -1
  47. package/dist/components/content/code-viewer/code-viewer.d.ts +24 -64
  48. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  49. package/dist/components/content/code-viewer/code-viewer.js +239 -156
  50. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  51. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  52. package/dist/components/content/code-viewer/code-viewer.styles.js +33 -92
  53. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  54. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  55. package/dist/components/content/code-viewer/code-viewer.template.js +10 -29
  56. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  57. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  58. package/dist/components/content/icon/icon-aliases.js +22 -1
  59. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  60. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  61. package/dist/components/content/icon/icon-registry.js +18 -0
  62. package/dist/components/content/icon/icon-registry.js.map +1 -1
  63. package/dist/components/content/icon/icon.d.ts.map +1 -1
  64. package/dist/components/content/icon/icon.js +3 -2
  65. package/dist/components/content/icon/icon.js.map +1 -1
  66. package/dist/components/content/image/image.d.ts.map +1 -1
  67. package/dist/components/content/image/image.js +7 -6
  68. package/dist/components/content/image/image.js.map +1 -1
  69. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  70. package/dist/components/content/image/image.styles.js +2 -6
  71. package/dist/components/content/image/image.styles.js.map +1 -1
  72. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  73. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +8 -7
  74. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  75. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  76. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +5 -1
  77. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  78. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  79. package/dist/components/content/rich-text/rich-text.js +3 -2
  80. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  81. package/dist/components/content/tag/tag.d.ts.map +1 -1
  82. package/dist/components/content/tag/tag.js +5 -4
  83. package/dist/components/content/tag/tag.js.map +1 -1
  84. package/dist/components/content/title/title.d.ts.map +1 -1
  85. package/dist/components/content/title/title.js +2 -1
  86. package/dist/components/content/title/title.js.map +1 -1
  87. package/dist/components/content/token/token.d.ts +70 -0
  88. package/dist/components/content/token/token.d.ts.map +1 -0
  89. package/dist/components/content/token/token.js +170 -0
  90. package/dist/components/content/token/token.js.map +1 -0
  91. package/dist/components/content/token/token.styles.d.ts.map +1 -0
  92. package/dist/components/content/token/token.styles.js +122 -0
  93. package/dist/components/content/token/token.styles.js.map +1 -0
  94. package/dist/components/content/token/token.template.d.ts +6 -0
  95. package/dist/components/content/token/token.template.d.ts.map +1 -0
  96. package/dist/components/content/token/token.template.js +47 -0
  97. package/dist/components/content/token/token.template.js.map +1 -0
  98. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  99. package/dist/components/content/tooltip/tooltip.js +14 -5
  100. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  101. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  102. package/dist/components/content/tooltip/tooltip.styles.js +11 -0
  103. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  104. package/dist/components/gherkin-DhZlEZiy.js +115 -0
  105. package/dist/components/index-BI4lrehT.js +66595 -0
  106. package/dist/components/index-BcdqzZql.js +703 -0
  107. package/dist/components/index-BlMqctke.js +81 -0
  108. package/dist/components/index-BseMFLNF.js +688 -0
  109. package/dist/components/index-ChjtFo6I.js +177 -0
  110. package/dist/components/index-D3NSlPL5.js +405 -0
  111. package/dist/components/index-D7B3n3QJ.js +384 -0
  112. package/dist/components/index.d.ts +20 -18
  113. package/dist/components/index.d.ts.map +1 -1
  114. package/dist/components/index.js +20 -18
  115. package/dist/components/index.js.map +1 -1
  116. package/dist/components/inputs/code-editor/code-editor.d.ts +58 -29
  117. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  118. package/dist/components/inputs/code-editor/code-editor.js +241 -52
  119. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  120. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  121. package/dist/components/inputs/code-editor/code-editor.styles.js +58 -46
  122. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  123. package/dist/components/inputs/code-editor/code-editor.template.d.ts +1 -1
  124. package/dist/components/inputs/code-editor/code-editor.template.d.ts.map +1 -1
  125. package/dist/components/inputs/code-editor/code-editor.template.js +5 -22
  126. package/dist/components/inputs/code-editor/code-editor.template.js.map +1 -1
  127. package/dist/components/inputs/combo-box/combo-box.d.ts +15 -4
  128. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  129. package/dist/components/inputs/combo-box/combo-box.js +53 -9
  130. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  131. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  132. package/dist/components/inputs/dropdown/dropdown.js +2 -1
  133. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  134. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +1 -1
  135. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  136. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +6 -5
  137. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  138. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  139. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +8 -11
  140. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  141. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  142. package/dist/components/inputs/number-field/number-field.js +2 -1
  143. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  144. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  145. package/dist/components/inputs/password-field/password-field.js +3 -2
  146. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  147. package/dist/components/inputs/radio-button-group/radio-button-group.js +1 -1
  148. package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
  149. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  150. package/dist/components/inputs/search-field/search-field.js +2 -1
  151. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  152. package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -1
  153. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  154. package/dist/components/inputs/segmented-control/segmented-control.js +10 -9
  155. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  156. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  157. package/dist/components/inputs/segmented-control/segmented-control.styles.js +70 -36
  158. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  159. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  160. package/dist/components/inputs/stepper/stepper.js +2 -1
  161. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  162. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  163. package/dist/components/inputs/switch/switch.js +2 -1
  164. package/dist/components/inputs/switch/switch.js.map +1 -1
  165. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts +51 -0
  166. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.d.ts.map +1 -0
  167. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js +148 -0
  168. package/dist/components/inputs/text-editor/text-editor.annotation-sentinels.js.map +1 -0
  169. package/dist/components/inputs/text-editor/text-editor.annotations.d.ts +47 -0
  170. package/dist/components/inputs/text-editor/text-editor.annotations.d.ts.map +1 -0
  171. package/dist/components/inputs/text-editor/text-editor.annotations.js +327 -0
  172. package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -0
  173. package/dist/components/inputs/text-editor/text-editor.caret.d.ts +13 -0
  174. package/dist/components/inputs/text-editor/text-editor.caret.d.ts.map +1 -0
  175. package/dist/components/inputs/text-editor/text-editor.caret.js +27 -0
  176. package/dist/components/inputs/text-editor/text-editor.caret.js.map +1 -0
  177. package/dist/components/inputs/text-editor/text-editor.commands.d.ts +61 -0
  178. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -0
  179. package/dist/components/inputs/text-editor/text-editor.commands.js +376 -0
  180. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -0
  181. package/dist/components/inputs/text-editor/text-editor.d.ts +241 -0
  182. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -0
  183. package/dist/components/inputs/text-editor/text-editor.drag.d.ts +30 -0
  184. package/dist/components/inputs/text-editor/text-editor.drag.d.ts.map +1 -0
  185. package/dist/components/inputs/text-editor/text-editor.drag.js +231 -0
  186. package/dist/components/inputs/text-editor/text-editor.drag.js.map +1 -0
  187. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +8 -0
  188. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -0
  189. package/dist/components/inputs/text-editor/text-editor.i18n.js +13 -0
  190. package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -0
  191. package/dist/components/inputs/text-editor/text-editor.js +782 -0
  192. package/dist/components/inputs/text-editor/text-editor.js.map +1 -0
  193. package/dist/components/inputs/text-editor/text-editor.links.d.ts +18 -0
  194. package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -0
  195. package/dist/components/inputs/text-editor/text-editor.links.js +147 -0
  196. package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -0
  197. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +20 -0
  198. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -0
  199. package/dist/components/inputs/text-editor/text-editor.markdown.js +372 -0
  200. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -0
  201. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +32 -0
  202. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -0
  203. package/dist/components/inputs/text-editor/text-editor.mentions.js +153 -0
  204. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -0
  205. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts +12 -0
  206. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -0
  207. package/dist/components/inputs/text-editor/text-editor.ordered-list.js +85 -0
  208. package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -0
  209. package/dist/components/inputs/text-editor/text-editor.styles.d.ts +2 -0
  210. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -0
  211. package/dist/components/inputs/text-editor/text-editor.styles.js +592 -0
  212. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -0
  213. package/dist/components/inputs/text-editor/text-editor.template.d.ts +4 -0
  214. package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -0
  215. package/dist/components/inputs/text-editor/text-editor.template.js +7 -0
  216. package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -0
  217. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  218. package/dist/components/inputs/text-field/text-field.js +3 -2
  219. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  220. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  221. package/dist/components/inputs/toggle-button/toggle-button.js +4 -3
  222. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  223. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  224. package/dist/components/inputs/toggle-button/toggle-button.styles.js +14 -10
  225. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  226. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +1 -1
  227. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
  228. package/dist/components/inputs/toggle-button-group/toggle-button-group.js +5 -4
  229. package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
  230. package/dist/components/inputs/token-field/token-field.d.ts +257 -0
  231. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -0
  232. package/dist/components/inputs/token-field/token-field.i18n.d.ts +9 -0
  233. package/dist/components/inputs/token-field/token-field.i18n.d.ts.map +1 -0
  234. package/dist/components/inputs/token-field/token-field.i18n.js +8 -0
  235. package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -0
  236. package/dist/components/inputs/token-field/token-field.js +877 -0
  237. package/dist/components/inputs/token-field/token-field.js.map +1 -0
  238. package/dist/components/inputs/token-field/token-field.styles.d.ts +2 -0
  239. package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -0
  240. package/dist/components/inputs/token-field/token-field.styles.js +194 -0
  241. package/dist/components/inputs/token-field/token-field.styles.js.map +1 -0
  242. package/dist/components/inputs/token-field/token-field.template.d.ts +8 -0
  243. package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -0
  244. package/dist/components/inputs/token-field/token-field.template.js +136 -0
  245. package/dist/components/inputs/token-field/token-field.template.js.map +1 -0
  246. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  247. package/dist/components/layout/app-view/app-view.js +2 -1
  248. package/dist/components/layout/app-view/app-view.js.map +1 -1
  249. package/dist/components/layout/box/box.d.ts.map +1 -1
  250. package/dist/components/layout/box/box.js +2 -1
  251. package/dist/components/layout/box/box.js.map +1 -1
  252. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  253. package/dist/components/layout/box/box.styles.js +1 -6
  254. package/dist/components/layout/box/box.styles.js.map +1 -1
  255. package/dist/components/layout/collection/collection.d.ts +5 -0
  256. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  257. package/dist/components/layout/collection/collection.js +17 -1
  258. package/dist/components/layout/collection/collection.js.map +1 -1
  259. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  260. package/dist/components/layout/collection/collection.styles.js +18 -17
  261. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  262. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  263. package/dist/components/layout/page-footer/page-footer.js +2 -1
  264. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  265. package/dist/components/layout/page-sections/hero/hero.d.ts +7 -23
  266. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  267. package/dist/components/layout/page-sections/hero/hero.js +12 -73
  268. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  269. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  270. package/dist/components/layout/page-sections/hero/hero.styles.js +13 -159
  271. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  272. package/dist/components/layout/popover/popover.d.ts +1 -0
  273. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  274. package/dist/components/layout/popover/popover.js +14 -1
  275. package/dist/components/layout/popover/popover.js.map +1 -1
  276. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  277. package/dist/components/layout/popover/popover.styles.js +11 -0
  278. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  279. package/dist/components/layout/sheet/sheet.d.ts +1 -1
  280. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  281. package/dist/components/layout/sheet/sheet.js +16 -6
  282. package/dist/components/layout/sheet/sheet.js.map +1 -1
  283. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  284. package/dist/components/layout/sheet/sheet.styles.js +60 -83
  285. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  286. package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
  287. package/dist/components/layout/spacer/spacer.js +2 -1
  288. package/dist/components/layout/spacer/spacer.js.map +1 -1
  289. package/dist/components/layout/spacer/spacer.styles.d.ts.map +1 -1
  290. package/dist/components/layout/spacer/spacer.styles.js +0 -1
  291. package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
  292. package/dist/components/layout/split-views/split-view-divider/split-view-divider.d.ts.map +1 -1
  293. package/dist/components/layout/split-views/split-view-divider/split-view-divider.js +2 -1
  294. package/dist/components/layout/split-views/split-view-divider/split-view-divider.js.map +1 -1
  295. package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +10 -10
  296. package/dist/components/layout/window/window.d.ts.map +1 -1
  297. package/dist/components/layout/window/window.js +11 -2
  298. package/dist/components/layout/window/window.js.map +1 -1
  299. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  300. package/dist/components/lists-and-tables/cells/cell/cell.js +4 -3
  301. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  302. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  303. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +3 -2
  304. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  305. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +1 -1
  306. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js +2 -1
  307. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +1 -1
  308. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  309. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +3 -2
  310. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  311. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  312. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +10 -9
  313. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  314. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
  315. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +3 -2
  316. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
  317. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  318. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +9 -8
  319. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  320. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  321. package/dist/components/lists-and-tables/list/list.js +5 -4
  322. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  323. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  324. package/dist/components/lists-and-tables/list/list.styles.js +3 -2
  325. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  326. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  327. package/dist/components/lists-and-tables/list-item/list-item.js +2 -1
  328. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  329. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  330. package/dist/components/lists-and-tables/table/table.js +4 -3
  331. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  332. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  333. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +2 -1
  334. package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
  335. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  336. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +5 -4
  337. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  338. package/dist/components/navigation/link/link.d.ts.map +1 -1
  339. package/dist/components/navigation/link/link.js +2 -1
  340. package/dist/components/navigation/link/link.js.map +1 -1
  341. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  342. package/dist/components/navigation/menu-bar/menu-bar.js +2 -1
  343. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  344. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  345. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +4 -3
  346. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  347. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  348. package/dist/components/navigation/skip-link/skip-link.js +2 -1
  349. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  350. package/dist/components/navigation/tab-bar/tab-bar.d.ts +7 -0
  351. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  352. package/dist/components/navigation/tab-bar/tab-bar.js +31 -5
  353. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  354. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  355. package/dist/components/navigation/tab-bar/tab-bar.styles.js +74 -78
  356. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  357. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  358. package/dist/components/navigation/tab-bar/tab-bar.template.js +8 -1
  359. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  360. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  361. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +7 -6
  362. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  363. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  364. package/dist/components/navigation/top-title-bar/top-title-bar.js +5 -4
  365. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  366. package/dist/components/shell-BlsXDxCn.js +222 -0
  367. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  368. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -3
  369. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  370. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  371. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +0 -1
  372. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  373. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  374. package/dist/components/status-and-feedback/badge/badge.js +4 -3
  375. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  376. package/dist/components/status-and-feedback/banner/banner.d.ts +0 -1
  377. package/dist/components/status-and-feedback/banner/banner.d.ts.map +1 -1
  378. package/dist/components/status-and-feedback/banner/banner.js +13 -13
  379. package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
  380. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
  381. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -4
  382. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
  383. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +1 -0
  384. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
  385. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +35 -4
  386. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  387. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
  388. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +11 -0
  389. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
  390. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  391. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +4 -3
  392. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  393. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
  394. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +9 -8
  395. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  396. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  397. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +0 -6
  398. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  399. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
  400. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +8 -7
  401. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  402. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
  403. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +0 -2
  404. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
  405. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  406. package/dist/components/status-and-feedback/status-bar/status-bar.js +3 -2
  407. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  408. package/dist/components/toml-BOuWGMcf.js +76 -0
  409. package/dist/css/fouc.css +30 -0
  410. package/dist/css/global.css +1 -0
  411. package/dist/css/rich-text.css +0 -5
  412. package/dist/css/settings.css +25 -10
  413. package/dist/utilities/codemirror/codemirror-element.d.ts +66 -0
  414. package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -0
  415. package/dist/utilities/codemirror/codemirror-element.js +121 -0
  416. package/dist/utilities/codemirror/codemirror-element.js.map +1 -0
  417. package/dist/utilities/codemirror/languages.d.ts +4 -0
  418. package/dist/utilities/codemirror/languages.d.ts.map +1 -0
  419. package/dist/utilities/codemirror/languages.js +39 -0
  420. package/dist/utilities/codemirror/languages.js.map +1 -0
  421. package/dist/utilities/codemirror/theme.d.ts +4 -0
  422. package/dist/utilities/codemirror/theme.d.ts.map +1 -0
  423. package/dist/utilities/codemirror/theme.js +84 -0
  424. package/dist/utilities/codemirror/theme.js.map +1 -0
  425. package/dist/utilities/dismiss-from-title-bar.d.ts +19 -0
  426. package/dist/utilities/dismiss-from-title-bar.d.ts.map +1 -0
  427. package/dist/utilities/dismiss-from-title-bar.js +21 -0
  428. package/dist/utilities/dismiss-from-title-bar.js.map +1 -0
  429. package/dist/utilities/reflect-non-default.d.ts +30 -0
  430. package/dist/utilities/reflect-non-default.d.ts.map +1 -0
  431. package/dist/utilities/reflect-non-default.js +34 -0
  432. package/dist/utilities/reflect-non-default.js.map +1 -0
  433. package/package.json +92 -68
  434. package/dist/components/index-BNhqNvDd.js +0 -36784
  435. package/dist/components/inputs/token/token.d.ts +0 -42
  436. package/dist/components/inputs/token/token.d.ts.map +0 -1
  437. package/dist/components/inputs/token/token.js +0 -86
  438. package/dist/components/inputs/token/token.js.map +0 -1
  439. package/dist/components/inputs/token/token.styles.d.ts.map +0 -1
  440. package/dist/components/inputs/token/token.styles.js +0 -142
  441. package/dist/components/inputs/token/token.styles.js.map +0 -1
  442. package/dist/components/inputs/token/token.template.d.ts +0 -4
  443. package/dist/components/inputs/token/token.template.d.ts.map +0 -1
  444. package/dist/components/inputs/token/token.template.js +0 -41
  445. package/dist/components/inputs/token/token.template.js.map +0 -1
  446. package/dist/components/prism-bash-vbqaw3JR.js +0 -226
  447. package/dist/components/prism-css-B93tXdOU.js +0 -59
  448. package/dist/components/prism-gherkin-CMPYyXOQ.js +0 -82
  449. package/dist/components/prism-javascript-DeC_17Pw.js +0 -140
  450. package/dist/components/prism-json-DIMpow89.js +0 -25
  451. package/dist/components/prism-markdown-D-uFBkiz.js +0 -339
  452. package/dist/components/prism-markup-DfJYPYHA.js +0 -177
  453. package/dist/components/prism-python--N285k7w.js +0 -99
  454. package/dist/components/prism-rust-Cnm1tSdo.js +0 -157
  455. package/dist/components/prism-sql-BGqCBMyJ.js +0 -33
  456. package/dist/components/prism-toml-Ubdq-a5x.js +0 -45
  457. package/dist/components/prism-typescript-BPJAiB1s.js +0 -87
  458. package/dist/components/prism-yaml-DO0f9pf6.js +0 -71
  459. /package/dist/components/{inputs → content}/token/token.styles.d.ts +0 -0
@@ -1,39 +1,49 @@
1
1
  /**
2
2
  * Nederlandse Digitale Dienst Code Editor Component (Lit + TypeScript)
3
3
  *
4
- * A monospace text editor for code, YAML, JSON, and other technical
5
- * content. Visually pairs with `nldd-code` (same tinted background,
6
- * same monospace font, same rounded corners) so a read-only view and
7
- * the editable counterpart look like the same surface.
4
+ * A monospace editor for code, YAML, JSON and other technical content, built
5
+ * on CodeMirror 6 (via NLDDCodeMirrorElement). Visually pairs with
6
+ * nldd-code-viewer for a matching read-only surface.
8
7
  *
9
- * Built on a native `<textarea>` no syntax highlighting, no line
10
- * numbers. Reach for a real editor library (CodeMirror, Monaco) when
11
- * those features are required.
8
+ * Default `variant="simple"` is a bare, flush editor (no frame, no focus ring)
9
+ * for use inside an nldd-form-field or a consumer composition that owns its own
10
+ * chrome and focus treatment; the caret is rendered as a prominent accent as
11
+ * the focus cue. `variant="input-field"` adds the framed surface (border ring, tinted
12
+ * fill, inner padding, radius) and a focus ring for standalone use.
12
13
  *
13
- * Spellcheck and autocorrect are disabled by default since they don't
14
- * help on code; long lines scroll horizontally unless `wrap` is set.
14
+ * The simple variant has no surrounding space of its own: let a layout
15
+ * container own the spacing and forward clicks with `focusFromPoint()` so
16
+ * clicking the padding still starts editing.
17
+ *
18
+ * Optional `language` enables lazy syntax highlighting; `line-numbers` adds a
19
+ * gutter (click a number to move the caret to that line).
15
20
  *
16
21
  * @element nldd-code-editor
17
22
  *
18
- * @attr {string} value - The textarea value
19
- * @attr {string} placeholder - Placeholder text
20
- * @attr {string} input-id - Sets the id on the native textarea. Set automatically by nldd-form-field.
21
- * @attr {boolean} disabled - Disabled state
22
- * @attr {string} name - Textarea name for form submission
23
- * @attr {boolean} readonly - Readonly state
24
- * @attr {boolean} required - Required state
25
- * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
26
- * @attr {number} rows - Initial visible rows (minimum height). Default: 6.
27
- * @attr {string} resize - 'none' | 'vertical' (default) | 'auto'.
28
- * 'auto' grows with content (native field-sizing).
29
- * @attr {string} accessible-label - Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field.
23
+ * @attr {string} value - Editor content
24
+ * @attr {string} placeholder - Placeholder text shown while empty
25
+ * @attr {string} input-id - Sets the id on the editable element. Set automatically by nldd-form-field.
26
+ * @attr {boolean} disabled - Disabled state
27
+ * @attr {string} name - Field name for form submission
28
+ * @attr {boolean} readonly - Readonly state (focusable and selectable, not editable)
29
+ * @attr {boolean} required - Required state
30
+ * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
31
+ * @attr {number} rows - Minimum visible rows (the floor in every resize mode). Default: 6.
32
+ * @attr {string} resize - 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default)
33
+ * @attr {string} variant - 'simple' (default, bare) | 'input-field' (framed surface)
34
+ * @attr {string} language - Highlight grammar (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting.
35
+ * @attr {boolean} line-numbers - Show a line-number gutter
36
+ * @attr {string} accessible-label - Accessible label forwarded to the editor. Set automatically by nldd-form-field.
30
37
  *
31
- * @fires input - When value changes
32
- * @fires change - When value is committed (blur)
38
+ * @fires input - When the content changes (detail: { value })
39
+ * @fires change - When the content is committed on blur (detail: { value })
33
40
  */
34
- import { LitElement, type PropertyValues } from 'lit';
41
+ import { type PropertyValues } from 'lit';
42
+ import { type Extension } from '@codemirror/state';
43
+ import { NLDDCodeMirrorElement } from '../../../utilities/codemirror/codemirror-element.js';
35
44
  export type ResizeMode = 'none' | 'vertical' | 'auto';
36
- export declare class NLDDCodeEditor extends LitElement {
45
+ export type CodeEditorVariant = 'input-field' | 'simple';
46
+ export declare class NLDDCodeEditor extends NLDDCodeMirrorElement {
37
47
  static formAssociated: boolean;
38
48
  static shadowRootOptions: {
39
49
  delegatesFocus: boolean;
@@ -46,6 +56,8 @@ export declare class NLDDCodeEditor extends LitElement {
46
56
  static styles: import("lit").CSSResult;
47
57
  private _internals;
48
58
  private _initialValue;
59
+ private _valueAtFocus;
60
+ private _accessibleLabelWarned;
49
61
  value: string;
50
62
  inputId: string;
51
63
  placeholder: string;
@@ -56,17 +68,34 @@ export declare class NLDDCodeEditor extends LitElement {
56
68
  wrap: boolean;
57
69
  rows: number;
58
70
  resize: ResizeMode;
71
+ variant: CodeEditorVariant;
72
+ language: string;
73
+ lineNumbers: boolean;
59
74
  accessibleLabel: string;
60
- private _textarea;
61
- private _accessibleLabelWarned;
75
+ private _container;
76
+ private _editableCompartment;
77
+ private _wrapCompartment;
78
+ private _lineNumbersCompartment;
79
+ private _placeholderCompartment;
80
+ private _attrsCompartment;
81
+ private _languageCompartment;
82
+ protected getEditorParent(): HTMLElement | null | undefined;
83
+ protected buildExtensions(): Extension[];
84
+ private _editableExtension;
85
+ private _placeholderExtension;
86
+ private _lineNumbersExtension;
87
+ private _attrsExtension;
62
88
  firstUpdated(): void;
89
+ protected onEditorMounted(): void;
63
90
  updated(changed: PropertyValues): void;
91
+ private _applyLanguage;
92
+ private _onDocChanged;
93
+ private _emitChange;
94
+ private _onScrollerPointerDown;
64
95
  private _checkAccessibleLabel;
65
96
  formResetCallback(): void;
66
97
  formDisabledCallback(disabled: boolean): void;
67
98
  formStateRestoreCallback(state: File | string | FormData | null): void;
68
- _handleInput(e: Event): void;
69
- _handleChange(e: Event): void;
70
99
  render(): import("lit-html").TemplateResult;
71
100
  }
72
101
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"code-editor.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKtD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;AAEtD,qBACa,cAAe,SAAQ,UAAU;IAC7C,MAAM,CAAC,cAAc,UAAQ;IAE7B,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF,OAAgB,MAAM,0BAAoB;IAE1C,OAAO,CAAC,UAAU,CAA0B;IAE5C,OAAO,CAAC,aAAa,CAAM;IAG3B,KAAK,SAAM;IAGX,OAAO,SAAM;IAGb,WAAW,SAAM;IAGjB,QAAQ,UAAS;IAGjB,IAAI,SAAM;IAGV,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,IAAI,UAAS;IAGb,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAc;IAGhC,eAAe,SAAM;IAGrB,OAAO,CAAC,SAAS,CAAuB;IAExC,OAAO,CAAC,sBAAsB,CAAS;IAE9B,YAAY,IAAI,IAAI;IAIpB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAW/C,OAAO,CAAC,qBAAqB;IAO7B,iBAAiB,IAAI,IAAI;IAIzB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAI7C,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAI/D,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAW5B,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAW3B,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,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C,iBAAiB,CAAqB;IAC9C,OAAO,CAAC,oBAAoB,CAAqB;IAEjD,SAAS,CAAC,eAAe,IAAI,WAAW,GAAG,IAAI,GAAG,SAAS;IAI3D,SAAS,CAAC,eAAe,IAAI,SAAS,EAAE;IA0BxC,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,qBAAqB;IAc7B,OAAO,CAAC,eAAe;IAkBd,YAAY,IAAI,IAAI;cAUV,eAAe,IAAI,IAAI;IAWjC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;YA0CjC,cAAc;IAoB5B,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,sBAAsB,CAM5B;IAMF,OAAO,CAAC,qBAAqB;IAO7B,iBAAiB,IAAI,IAAI;IAIzB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAI7C,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAI7D,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
@@ -7,45 +7,61 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  /**
8
8
  * Nederlandse Digitale Dienst Code Editor Component (Lit + TypeScript)
9
9
  *
10
- * A monospace text editor for code, YAML, JSON, and other technical
11
- * content. Visually pairs with `nldd-code` (same tinted background,
12
- * same monospace font, same rounded corners) so a read-only view and
13
- * the editable counterpart look like the same surface.
10
+ * A monospace editor for code, YAML, JSON and other technical content, built
11
+ * on CodeMirror 6 (via NLDDCodeMirrorElement). Visually pairs with
12
+ * nldd-code-viewer for a matching read-only surface.
14
13
  *
15
- * Built on a native `<textarea>` no syntax highlighting, no line
16
- * numbers. Reach for a real editor library (CodeMirror, Monaco) when
17
- * those features are required.
14
+ * Default `variant="simple"` is a bare, flush editor (no frame, no focus ring)
15
+ * for use inside an nldd-form-field or a consumer composition that owns its own
16
+ * chrome and focus treatment; the caret is rendered as a prominent accent as
17
+ * the focus cue. `variant="input-field"` adds the framed surface (border ring, tinted
18
+ * fill, inner padding, radius) and a focus ring for standalone use.
18
19
  *
19
- * Spellcheck and autocorrect are disabled by default since they don't
20
- * help on code; long lines scroll horizontally unless `wrap` is set.
20
+ * The simple variant has no surrounding space of its own: let a layout
21
+ * container own the spacing and forward clicks with `focusFromPoint()` so
22
+ * clicking the padding still starts editing.
23
+ *
24
+ * Optional `language` enables lazy syntax highlighting; `line-numbers` adds a
25
+ * gutter (click a number to move the caret to that line).
21
26
  *
22
27
  * @element nldd-code-editor
23
28
  *
24
- * @attr {string} value - The textarea value
25
- * @attr {string} placeholder - Placeholder text
26
- * @attr {string} input-id - Sets the id on the native textarea. Set automatically by nldd-form-field.
27
- * @attr {boolean} disabled - Disabled state
28
- * @attr {string} name - Textarea name for form submission
29
- * @attr {boolean} readonly - Readonly state
30
- * @attr {boolean} required - Required state
31
- * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
32
- * @attr {number} rows - Initial visible rows (minimum height). Default: 6.
33
- * @attr {string} resize - 'none' | 'vertical' (default) | 'auto'.
34
- * 'auto' grows with content (native field-sizing).
35
- * @attr {string} accessible-label - Accessible label forwarded to the inner textarea. Set automatically by nldd-form-field.
29
+ * @attr {string} value - Editor content
30
+ * @attr {string} placeholder - Placeholder text shown while empty
31
+ * @attr {string} input-id - Sets the id on the editable element. Set automatically by nldd-form-field.
32
+ * @attr {boolean} disabled - Disabled state
33
+ * @attr {string} name - Field name for form submission
34
+ * @attr {boolean} readonly - Readonly state (focusable and selectable, not editable)
35
+ * @attr {boolean} required - Required state
36
+ * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
37
+ * @attr {number} rows - Minimum visible rows (the floor in every resize mode). Default: 6.
38
+ * @attr {string} resize - 'none' (fixed) | 'vertical' (drag) | 'auto' (grow, default)
39
+ * @attr {string} variant - 'simple' (default, bare) | 'input-field' (framed surface)
40
+ * @attr {string} language - Highlight grammar (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python). Empty disables highlighting.
41
+ * @attr {boolean} line-numbers - Show a line-number gutter
42
+ * @attr {string} accessible-label - Accessible label forwarded to the editor. Set automatically by nldd-form-field.
36
43
  *
37
- * @fires input - When value changes
38
- * @fires change - When value is committed (blur)
44
+ * @fires input - When the content changes (detail: { value })
45
+ * @fires change - When the content is committed on blur (detail: { value })
39
46
  */
40
47
  import { LitElement } from 'lit';
41
48
  import { customElement, property, query } from 'lit/decorators.js';
49
+ import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
50
+ import { EditorView, keymap, drawSelection, lineNumbers as cmLineNumbers, placeholder as cmPlaceholder, } from '@codemirror/view';
51
+ import { Compartment, EditorState } from '@codemirror/state';
52
+ import { defaultKeymap, history, historyKeymap } from '@codemirror/commands';
53
+ import { NLDDCodeMirrorElement } from '../../../utilities/codemirror/codemirror-element.js';
54
+ import { nlddCodeMirrorTheme } from '../../../utilities/codemirror/theme.js';
55
+ import { loadLanguage } from '../../../utilities/codemirror/languages.js';
42
56
  import { codeEditorStyles } from './code-editor.styles.js';
43
57
  import { codeEditorTemplate } from './code-editor.template.js';
44
- let NLDDCodeEditor = class NLDDCodeEditor extends LitElement {
58
+ let NLDDCodeEditor = class NLDDCodeEditor extends NLDDCodeMirrorElement {
45
59
  constructor() {
46
60
  super(...arguments);
47
61
  this._internals = this.attachInternals();
48
62
  this._initialValue = '';
63
+ this._valueAtFocus = '';
64
+ this._accessibleLabelWarned = false;
49
65
  this.value = '';
50
66
  this.inputId = '';
51
67
  this.placeholder = '';
@@ -55,19 +71,203 @@ let NLDDCodeEditor = class NLDDCodeEditor extends LitElement {
55
71
  this.required = false;
56
72
  this.wrap = false;
57
73
  this.rows = 6;
58
- this.resize = 'vertical';
74
+ this.resize = 'auto';
75
+ this.variant = 'simple';
76
+ this.language = '';
77
+ this.lineNumbers = false;
59
78
  this.accessibleLabel = '';
60
- this._accessibleLabelWarned = false;
79
+ // Compartments let us reconfigure single concerns without rebuilding state.
80
+ this._editableCompartment = new Compartment();
81
+ this._wrapCompartment = new Compartment();
82
+ this._lineNumbersCompartment = new Compartment();
83
+ this._placeholderCompartment = new Compartment();
84
+ this._attrsCompartment = new Compartment();
85
+ this._languageCompartment = new Compartment();
86
+ this._onScrollerPointerDown = (event) => {
87
+ // Only the scroller's own padding — not the content/gutter inside it.
88
+ // pointerdown covers mouse, touch and pen in one event.
89
+ if (event.target !== this.view?.scrollDOM)
90
+ return;
91
+ this.focusFromPoint(event.clientX, event.clientY);
92
+ event.preventDefault();
93
+ };
94
+ }
95
+ getEditorParent() {
96
+ return this._container;
97
+ }
98
+ buildExtensions() {
99
+ return [
100
+ nlddCodeMirrorTheme,
101
+ history(),
102
+ drawSelection(),
103
+ keymap.of([...defaultKeymap, ...historyKeymap]),
104
+ this._placeholderCompartment.of(this._placeholderExtension()),
105
+ this._wrapCompartment.of(this.wrap ? EditorView.lineWrapping : []),
106
+ this._lineNumbersCompartment.of(this._lineNumbersExtension()),
107
+ this._editableCompartment.of(this._editableExtension()),
108
+ this._attrsCompartment.of(this._attrsExtension()),
109
+ this._languageCompartment.of([]),
110
+ EditorView.updateListener.of((u) => {
111
+ if (u.docChanged)
112
+ this._onDocChanged();
113
+ }),
114
+ EditorView.domEventHandlers({
115
+ focus: () => {
116
+ this._valueAtFocus = this.value;
117
+ },
118
+ blur: () => {
119
+ if (this.value !== this._valueAtFocus)
120
+ this._emitChange();
121
+ },
122
+ }),
123
+ ];
124
+ }
125
+ _editableExtension() {
126
+ // Readonly stays focusable/selectable (read + copy); disabled is inert.
127
+ const editable = !this.disabled;
128
+ const readOnly = this.disabled || this.readonly;
129
+ return [EditorView.editable.of(editable), EditorState.readOnly.of(readOnly)];
130
+ }
131
+ _placeholderExtension() {
132
+ return this.placeholder ? cmPlaceholder(this.placeholder) : [];
133
+ }
134
+ _lineNumbersExtension() {
135
+ if (!this.lineNumbers)
136
+ return [];
137
+ // Clicking a line number moves the caret to the start of that line.
138
+ return cmLineNumbers({
139
+ domEventHandlers: {
140
+ mousedown: (view, line) => {
141
+ view.dispatch({ selection: { anchor: line.from } });
142
+ view.focus();
143
+ return true;
144
+ },
145
+ },
146
+ });
147
+ }
148
+ _attrsExtension() {
149
+ // CodeMirror's content is a bare contenteditable; give it the textbox
150
+ // semantics a native <textarea> had — role, multiline, and the readonly/
151
+ // required state — so screen readers announce it correctly (WCAG 4.1.2).
152
+ const attrs = {
153
+ 'role': 'textbox',
154
+ 'aria-multiline': 'true',
155
+ };
156
+ if (this.accessibleLabel)
157
+ attrs['aria-label'] = this.accessibleLabel;
158
+ if (this.inputId)
159
+ attrs['id'] = this.inputId;
160
+ // disabled makes the field inert (contenteditable=false); readonly keeps it
161
+ // focusable but non-editable. Either way it's not editable, so reflect
162
+ // aria-readonly. aria-required mirrors the required constraint.
163
+ if (this.readonly || this.disabled)
164
+ attrs['aria-readonly'] = 'true';
165
+ if (this.required)
166
+ attrs['aria-required'] = 'true';
167
+ return EditorView.contentAttributes.of(attrs);
61
168
  }
62
169
  firstUpdated() {
63
170
  this._initialValue = this.value;
171
+ this.style.setProperty('--_rows', String(this.rows));
172
+ this.mountEditor(this.value);
173
+ this.onEditorMounted();
174
+ }
175
+ /* Runs on the initial mount and on every re-mount after a detach/reattach
176
+ * (e.g. Vue <KeepAlive>): the view — and its scrollDOM — is rebuilt, so the
177
+ * padding-click forwarder and language must be (re)applied here. */
178
+ onEditorMounted() {
179
+ // A press on the scroller's own padding (outside .cm-content) doesn't
180
+ // place a caret; forward it to the nearest line so the padding is
181
+ // clickable too. CM attaches its own handlers to the content, not the
182
+ // scroller, so this is a plain listener on the scroller element.
183
+ this.view?.scrollDOM.addEventListener('pointerdown', this._onScrollerPointerDown);
184
+ this._internals.setFormValue(this.doc);
185
+ if (this.language)
186
+ void this._applyLanguage();
187
+ this._checkAccessibleLabel();
64
188
  }
65
189
  updated(changed) {
66
- if (changed.has('value')) {
67
- this._internals.setFormValue(this.value);
190
+ if (changed.has('rows')) {
191
+ this.style.setProperty('--_rows', String(this.rows));
192
+ }
193
+ if (this.view) {
194
+ if (changed.has('value')) {
195
+ const docWas = this.doc;
196
+ this.setDoc(this.value);
197
+ this._internals.setFormValue(this.value);
198
+ // A programmatic value change while focused must not look like a user edit
199
+ // on the next blur: if setDoc actually moved the doc (i.e. this wasn't the
200
+ // echo of the user's own typing, where the doc already equals value),
201
+ // advance the focus-time baseline too.
202
+ if (docWas !== this.value)
203
+ this._valueAtFocus = this.value;
204
+ }
205
+ if (changed.has('disabled') || changed.has('readonly')) {
206
+ this.reconfigure(this._editableCompartment, this._editableExtension());
207
+ }
208
+ // readonly/required/disabled also drive the content's aria-readonly/
209
+ // aria-required, so refresh the attrs compartment when they change.
210
+ if (changed.has('disabled') || changed.has('readonly') || changed.has('required')) {
211
+ this.reconfigure(this._attrsCompartment, this._attrsExtension());
212
+ }
213
+ if (changed.has('wrap')) {
214
+ this.reconfigure(this._wrapCompartment, this.wrap ? EditorView.lineWrapping : []);
215
+ }
216
+ if (changed.has('lineNumbers')) {
217
+ this.reconfigure(this._lineNumbersCompartment, this._lineNumbersExtension());
218
+ }
219
+ if (changed.has('placeholder')) {
220
+ this.reconfigure(this._placeholderCompartment, this._placeholderExtension());
221
+ }
222
+ if (changed.has('accessibleLabel') || changed.has('inputId')) {
223
+ this.reconfigure(this._attrsCompartment, this._attrsExtension());
224
+ }
225
+ if (changed.has('language')) {
226
+ void this._applyLanguage();
227
+ }
68
228
  }
69
229
  this._checkAccessibleLabel();
70
230
  }
231
+ async _applyLanguage() {
232
+ const lang = this.language;
233
+ if (!lang) {
234
+ this.reconfigure(this._languageCompartment, []);
235
+ return;
236
+ }
237
+ const pending = loadLanguage(lang);
238
+ if (!pending) {
239
+ this.reconfigure(this._languageCompartment, []);
240
+ return;
241
+ }
242
+ try {
243
+ const support = await pending;
244
+ // The attribute may have changed while the grammar was loading.
245
+ if (this.language === lang)
246
+ this.reconfigure(this._languageCompartment, support);
247
+ }
248
+ catch {
249
+ this.reconfigure(this._languageCompartment, []);
250
+ }
251
+ }
252
+ _onDocChanged() {
253
+ const text = this.doc;
254
+ if (text === this.value)
255
+ return;
256
+ this.value = text;
257
+ this._internals.setFormValue(text);
258
+ this.dispatchEvent(new CustomEvent('input', {
259
+ detail: { value: text },
260
+ bubbles: true,
261
+ composed: true,
262
+ }));
263
+ }
264
+ _emitChange() {
265
+ this.dispatchEvent(new CustomEvent('change', {
266
+ detail: { value: this.value },
267
+ bubbles: true,
268
+ composed: true,
269
+ }));
270
+ }
71
271
  /* Ran from updated(), not firstUpdated(): a parent nldd-form-field sets
72
272
  * input-id slightly after our first render, so checking earlier triggers
73
273
  * a spurious warning for the standard form-field usage. We re-check on
@@ -90,26 +290,6 @@ let NLDDCodeEditor = class NLDDCodeEditor extends LitElement {
90
290
  if (typeof state === 'string')
91
291
  this.value = state;
92
292
  }
93
- _handleInput(e) {
94
- e.stopPropagation();
95
- const textarea = e.target;
96
- this.value = textarea.value;
97
- this.dispatchEvent(new CustomEvent('input', {
98
- detail: { value: this.value },
99
- bubbles: true,
100
- composed: true,
101
- }));
102
- }
103
- _handleChange(e) {
104
- e.stopPropagation();
105
- const textarea = e.target;
106
- this.value = textarea.value;
107
- this.dispatchEvent(new CustomEvent('change', {
108
- detail: { value: this.value },
109
- bubbles: true,
110
- composed: true,
111
- }));
112
- }
113
293
  render() {
114
294
  return codeEditorTemplate(this);
115
295
  }
@@ -127,7 +307,7 @@ __decorate([
127
307
  property({ type: String, attribute: 'input-id' })
128
308
  ], NLDDCodeEditor.prototype, "inputId", void 0);
129
309
  __decorate([
130
- property({ type: String })
310
+ property({ reflect: true, converter: reflectNonDefault('') })
131
311
  ], NLDDCodeEditor.prototype, "placeholder", void 0);
132
312
  __decorate([
133
313
  property({ type: Boolean, reflect: true })
@@ -148,14 +328,23 @@ __decorate([
148
328
  property({ type: Number })
149
329
  ], NLDDCodeEditor.prototype, "rows", void 0);
150
330
  __decorate([
151
- property({ type: String, reflect: true })
331
+ property({ reflect: true, converter: reflectNonDefault('auto') })
152
332
  ], NLDDCodeEditor.prototype, "resize", void 0);
333
+ __decorate([
334
+ property({ reflect: true, converter: reflectNonDefault('simple') })
335
+ ], NLDDCodeEditor.prototype, "variant", void 0);
336
+ __decorate([
337
+ property({ reflect: true, converter: reflectNonDefault('') })
338
+ ], NLDDCodeEditor.prototype, "language", void 0);
339
+ __decorate([
340
+ property({ type: Boolean, reflect: true, attribute: 'line-numbers' })
341
+ ], NLDDCodeEditor.prototype, "lineNumbers", void 0);
153
342
  __decorate([
154
343
  property({ type: String, attribute: 'accessible-label' })
155
344
  ], NLDDCodeEditor.prototype, "accessibleLabel", void 0);
156
345
  __decorate([
157
- query('.code-editor__input')
158
- ], NLDDCodeEditor.prototype, "_textarea", void 0);
346
+ query('.code-editor')
347
+ ], NLDDCodeEditor.prototype, "_container", void 0);
159
348
  NLDDCodeEditor = __decorate([
160
349
  customElement('nldd-code-editor')
161
350
  ], NLDDCodeEditor);
@@ -1 +1 @@
1
- {"version":3,"file":"code-editor.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAKxD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QAUE,eAAU,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAEpC,kBAAa,GAAG,EAAE,CAAC;QAG3B,UAAK,GAAG,E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;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC9B;AAGb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAClB;AAGT;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAa,MAAM,CAAC,EAAE,CAAC;8CAClD;AAG5B;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAoB,QAAQ,CAAC,EAAE,CAAC;+CACjD;AAGtC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;gDACxD;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;mDAClD;AAGpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;uDACrC;AAGb;IADP,KAAK,CAAC,cAAc,CAAC;kDACW;AA1DrB,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAsR1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBAoH5B,CAAC"}
1
+ {"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBAgI5B,CAAC"}