@nldd/design-system 0.25.2 → 0.26.1

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 (323) hide show
  1. package/custom-elements.json +728 -32
  2. package/dist/cdn/autoloader.js +141 -141
  3. package/dist/cdn/chunks/{accordion-CE_VBJPo.js → accordion-DA4IlxS5.js} +4 -4
  4. package/dist/cdn/chunks/{accordion-item-CkIrLwn9.js → accordion-item-Ca1o93cq.js} +9 -7
  5. package/dist/cdn/chunks/{activity-indicator-DHgkMBdz.js → activity-indicator-Cj4H0Mbz.js} +5 -5
  6. package/dist/cdn/chunks/{admonition-CK1c7HiM.js → admonition-CdZSoO8O.js} +9 -7
  7. package/dist/cdn/chunks/{avatar-DwS0FqYL.js → avatar-Dhqn-Dmv.js} +6 -6
  8. package/dist/cdn/chunks/{avatar-group-BX1URuq1.js → avatar-group-B017eF-u.js} +15 -15
  9. package/dist/cdn/chunks/{badge-Dyfzch0N.js → badge-Bep5B0_g.js} +5 -5
  10. package/dist/cdn/chunks/{banner-BPUb-ZpJ.js → banner-DGpIXuE2.js} +7 -7
  11. package/dist/cdn/chunks/{bar-split-view-BitGKRYw.js → bar-split-view-CKwJxd3e.js} +5 -5
  12. package/dist/cdn/chunks/{blockquote-CAnK7XlI.js → blockquote-ChMgaOuI.js} +3 -3
  13. package/dist/cdn/chunks/{box-epVc6r3W.js → box-BRmziG-6.js} +3 -3
  14. package/dist/cdn/chunks/{breadcrumbs-CY5m5_72.js → breadcrumbs-BeVO8bkQ.js} +5 -5
  15. package/dist/cdn/chunks/{button-bar-BcmQQqns.js → button-bar-CLxOdalJ.js} +3 -3
  16. package/dist/cdn/chunks/{button-1F4MG_21.js → button-cHBkq_s7.js} +9 -9
  17. package/dist/cdn/chunks/{button-group-vez-t2RB.js → button-group-BIvKtEIX.js} +2 -2
  18. package/dist/cdn/chunks/{card-sHcZK0Sx.js → card-B5gp9Zly.js} +4 -4
  19. package/dist/cdn/chunks/{cell-_FH10LVj.js → cell-D4Nrd5Z9.js} +6 -6
  20. package/dist/cdn/chunks/{checkbox-B2EXnuni.js → checkbox-CeLTJhAc.js} +4 -4
  21. package/dist/cdn/chunks/{checkbox-field-DYBeOCXv.js → checkbox-field-C8cU8fuf.js} +6 -6
  22. package/dist/cdn/chunks/{checkbox-group-zV_EgqJ1.js → checkbox-group-CC72cq-P.js} +3 -3
  23. package/dist/cdn/chunks/{class-map-3v5_QWa6.js → class-map-xzscTu4B.js} +1 -1
  24. package/dist/cdn/chunks/{code-editor-DVHvHweL.js → code-editor-BNhlXTSl.js} +10 -10
  25. package/dist/cdn/chunks/{code-viewer-CRc5yGTZ.js → code-viewer-D_JwouYO.js} +35 -35
  26. package/dist/cdn/chunks/{codemirror-input-CgrWL_xI.js → codemirror-input-DJ0wgYrc.js} +368 -368
  27. package/dist/cdn/chunks/{collection-BobIdtqA.js → collection-BXvz_OtU.js} +8 -8
  28. package/dist/cdn/chunks/{combo-box-1h_xzaHk.js → combo-box-8kbmoStb.js} +9 -9
  29. package/dist/cdn/chunks/{container-RIa-Sff8.js → container-Dq-2uHd5.js} +2 -2
  30. package/dist/cdn/chunks/{custom-element-Dmqf9u_a.js → custom-element-DeaCQ2NP.js} +1 -1
  31. package/dist/cdn/chunks/{date-field-BN9TIiUH.js → date-field-CQg1_73u.js} +13 -13
  32. package/dist/cdn/chunks/{date-picker-BFvZvzwT.js → date-picker-CTMxGOiA.js} +10 -10
  33. package/dist/cdn/chunks/{decorate-D_xx_M26.js → decorate-CCYde2ES.js} +1 -1
  34. package/dist/cdn/chunks/{described-by-mixin-C3iCCTgg.js → described-by-mixin-BYFim7aO.js} +2 -2
  35. package/dist/cdn/chunks/{description-cell-D9oU3cOo.js → description-cell-GcVeCz2_.js} +6 -6
  36. package/dist/cdn/chunks/{dev-checks-Dcd5eLU5.js → dev-checks-CSlbfDuF.js} +19 -2
  37. package/dist/cdn/chunks/{directive-helpers-B40ApSJp.js → directive-helpers-DgaADFyY.js} +1 -1
  38. package/dist/cdn/chunks/{dist-DRizG2xD.js → dist-1OQdP4ho.js} +10 -10
  39. package/dist/cdn/chunks/{dist-BJyPLZy3.js → dist-5vPsM2aV.js} +8 -8
  40. package/dist/cdn/chunks/{dist-Cxpg90R5.js → dist-B23jHvJ5.js} +15 -15
  41. package/dist/cdn/chunks/{dist-B5Qpgwkt.js → dist-CNy2sPTt.js} +6 -6
  42. package/dist/cdn/chunks/{dist-BzfZCamJ.js → dist-CcpLhc4y.js} +7 -7
  43. package/dist/cdn/chunks/{dist-BZuHdnRq.js → dist-CyDpBAaD.js} +7 -7
  44. package/dist/cdn/chunks/{dist-De4uSuY6.js → dist-D4SViUJx.js} +21 -21
  45. package/dist/cdn/chunks/{dist-0pu3OKnY.js → dist-DBxjWahH.js} +4 -4
  46. package/dist/cdn/chunks/{dist-CPfUaZn6.js → dist-DLtwMUDc.js} +18 -18
  47. package/dist/cdn/chunks/{dist-8y5HG5So.js → dist-Da_liXcd.js} +124 -124
  48. package/dist/cdn/chunks/{dist-BVrnRVfm.js → dist-VCymi0hs.js} +250 -250
  49. package/dist/cdn/chunks/{divider-DhmeevvA.js → divider-8XD3xTbl.js} +2 -2
  50. package/dist/cdn/chunks/{document-tab-bar-BxgIq1Lc.js → document-tab-bar-RBAmckHS.js} +9 -9
  51. package/dist/cdn/chunks/{dropdown-BTnHERYI.js → dropdown-DVlxPcjr.js} +5 -5
  52. package/dist/cdn/chunks/field-button-controller-yvICuXoE.js +26 -0
  53. package/dist/cdn/chunks/{file-field-BoQCuthe.js → file-field-BrHnFplX.js} +12 -12
  54. package/dist/cdn/chunks/{form-D6w4G6Qv.js → form-DGHeGEIr.js} +1 -1
  55. package/dist/cdn/chunks/{form-actions-ifb8kolV.js → form-actions-CHwWKfMM.js} +2 -2
  56. package/dist/cdn/chunks/{form-field-RhzuOcS5.js → form-field-CdTSI-8h.js} +21 -16
  57. package/dist/cdn/chunks/{form-section-0df1Ao8U.js → form-section-CjECOIiZ.js} +1 -1
  58. package/dist/cdn/chunks/{full-bleed-section-BhcgrH9L.js → full-bleed-section-CQgq4iGQ.js} +3 -3
  59. package/dist/cdn/chunks/{hero-BpLUglsB.js → hero-DhdcYt2N.js} +4 -4
  60. package/dist/cdn/chunks/{icon-button-BzCEK4gH.js → icon-button-DT_Bi4Ac.js} +9 -9
  61. package/dist/cdn/chunks/{icon-cell-fu4ggTII.js → icon-cell-C-qrZAlN.js} +5 -5
  62. package/dist/cdn/chunks/{icon-C1HTyyIr.js → icon-qpmEfU9B.js} +2 -2
  63. package/dist/cdn/chunks/{identity-CM-fW-xb.js → identity-DFmvuPkl.js} +6 -6
  64. package/dist/cdn/chunks/{if-defined-CSVfrDre.js → if-defined-BINBE69I.js} +1 -1
  65. package/dist/cdn/chunks/{image-CjcWKYny.js → image-B4M3h1xJ.js} +8 -8
  66. package/dist/cdn/chunks/{inline-dialog-QHDEfqso.js → inline-dialog-L-NvjANF.js} +6 -6
  67. package/dist/cdn/chunks/{just-in-time-education-BuDwdo2R.js → just-in-time-education-CWplH4r9.js} +5 -5
  68. package/dist/cdn/chunks/{kanban-BaRiCfTn.js → kanban-B6Wa-2aM.js} +5 -5
  69. package/dist/cdn/chunks/{kanban-column-BuYmxxwP.js → kanban-column-D2-Xq79_.js} +4 -4
  70. package/dist/cdn/chunks/{keyboard-shortcut-DYMD3B5a.js → keyboard-shortcut-Ci95olxF.js} +118 -47
  71. package/dist/cdn/chunks/{languages-BFRgyhqj.js → languages-C9AGuuSS.js} +43 -32
  72. package/dist/cdn/chunks/{link-Cb7bYQmD.js → link-BJB2a_fG.js} +6 -6
  73. package/dist/cdn/chunks/{link-group-CCxIltG-.js → link-group-aNoedLZo.js} +2 -2
  74. package/dist/cdn/chunks/{list-B7VgeqfW.js → list-CZWX62tH.js} +8 -8
  75. package/dist/cdn/chunks/{list-item-Ccmi9h7_.js → list-item-DHzsbK_S.js} +5 -5
  76. package/dist/cdn/chunks/{list-item-segment-C5APtc9o.js → list-item-segment-CHLlU9Gg.js} +3 -3
  77. package/dist/cdn/chunks/{menu-B03m20cI.js → menu-NGpB1SKq.js} +21 -17
  78. package/dist/cdn/chunks/{menu-bar-BTwITnAx.js → menu-bar-CJazkmY7.js} +6 -6
  79. package/dist/cdn/chunks/{menu-bar-item-By1lj2Ra.js → menu-bar-item-CSqXWNKE.js} +6 -6
  80. package/dist/cdn/chunks/{menu-divider-Cj7PfUGr.js → menu-divider-Cn1hTpcM.js} +3 -3
  81. package/dist/cdn/chunks/{menu-group-DyFNOAV9.js → menu-group-C71K1Vmv.js} +4 -4
  82. package/dist/cdn/chunks/{menu-item-D-9U16AZ.js → menu-item-TqBlQfI2.js} +4 -4
  83. package/dist/cdn/chunks/{menu.template-DmK-gq-8.js → menu.template-DthELYky.js} +20 -15
  84. package/dist/cdn/chunks/{modal-dialog-f_Ftzcrk.js → modal-dialog-0V2HsrJC.js} +4 -4
  85. package/dist/cdn/chunks/{multi-line-text-field-CwTomQkh.js → multi-line-text-field-BV4uUDoK.js} +60 -34
  86. package/dist/cdn/chunks/{navigation-split-view-CMy_B-Gr.js → navigation-split-view-tPhkxEVD.js} +4 -4
  87. package/dist/cdn/chunks/{notification-DiXBAbmu.js → notification-CZccv6qx.js} +6 -6
  88. package/dist/cdn/chunks/{number-field-CPCuSebL.js → number-field-4R2blHda.js} +8 -8
  89. package/dist/cdn/chunks/{one-half-one-half-section-lsJ_QAgo.js → one-half-one-half-section-h2fLPQfP.js} +3 -3
  90. package/dist/cdn/chunks/{one-third-two-thirds-section-LS-XD6DL.js → one-third-two-thirds-section-mqUAH5lK.js} +3 -3
  91. package/dist/cdn/chunks/{one-time-code-field-DT4VRbkL.js → one-time-code-field-Bf_qymKd.js} +7 -7
  92. package/dist/cdn/chunks/{page-BWCcVj4L.js → page-Kipfvmi6.js} +4 -4
  93. package/dist/cdn/chunks/{page-footer-QCQIeoP7.js → page-footer-DxE966Oe.js} +4 -4
  94. package/dist/cdn/chunks/{page-section-mixin-BSRwTzVh.js → page-section-mixin-DpF9JDpd.js} +3 -3
  95. package/dist/cdn/chunks/{pagination-CfR0D1Z7.js → pagination-DUFFhaU8.js} +6 -6
  96. package/dist/cdn/chunks/{password-field-37i3lAaO.js → password-field-DdYAVmF3.js} +8 -8
  97. package/dist/cdn/chunks/{popover-BpX7ZwI_.js → popover-CRHxyhGx.js} +6 -6
  98. package/dist/cdn/chunks/{progress-bar-oT3i4-Ib.js → progress-bar-BuYsjmSo.js} +7 -7
  99. package/dist/cdn/chunks/{progress-circle-CskWYN6V.js → progress-circle-Cvu1bfNG.js} +7 -7
  100. package/dist/cdn/chunks/{radio-button-sFiWCWEp.js → radio-button-B_4AxWDx.js} +3 -3
  101. package/dist/cdn/chunks/{radio-button-field-yXg-i59N.js → radio-button-field-D7jIg6Oi.js} +5 -5
  102. package/dist/cdn/chunks/{radio-button-group-Bp4nILvI.js → radio-button-group-D_OezDhB.js} +3 -3
  103. package/dist/cdn/chunks/{render-marked-B_e-wQFe.js → render-marked-CIuiSS_8.js} +1 -1
  104. package/dist/cdn/chunks/{reorder-handle-cell-BFyWv6Xk.js → reorder-handle-cell-DNPaZjSC.js} +4 -4
  105. package/dist/cdn/chunks/{reorder-handle-mixin-CwNDaVUE.js → reorder-handle-mixin-CgvWq4fF.js} +2 -2
  106. package/dist/cdn/chunks/{repeat-Dx2PqcyL.js → repeat-DfVuWl6o.js} +2 -2
  107. package/dist/cdn/chunks/{return-focus-BzZWhXhc.js → return-focus-D0fF2hjd.js} +1 -1
  108. package/dist/cdn/chunks/{rich-text-CaVHkCB8.js → rich-text-CVHlMQY6.js} +3 -3
  109. package/dist/cdn/chunks/{row-header-mixin-BX0qSYSK.js → row-header-mixin-B25JK2B3.js} +2 -2
  110. package/dist/cdn/chunks/{scroll-fade-CXu7Eorw.js → scroll-fade-Dv57rTww.js} +2 -2
  111. package/dist/cdn/chunks/{search-field-DkbneceA.js → search-field-hmD_DXbG.js} +10 -10
  112. package/dist/cdn/chunks/{segmented-control-Ctl4SnV1.js → segmented-control-e8e-jYSw.js} +6 -6
  113. package/dist/cdn/chunks/{shadow-resets-oeO4NF40.js → shadow-resets-CRdvf-Ei.js} +2 -2
  114. package/dist/cdn/chunks/{sheet-XGOn3SXX.js → sheet-D09y3J45.js} +4 -4
  115. package/dist/cdn/chunks/{shell-B7-afKWD.js → shell-CV3gooGg.js} +3 -3
  116. package/dist/cdn/chunks/{side-by-side-split-view-CZC844ER.js → side-by-side-split-view-Ckz1C9zk.js} +4 -4
  117. package/dist/cdn/chunks/{sidebar-section-_eTWxCEU.js → sidebar-section-CdyD-x4t.js} +7 -7
  118. package/dist/cdn/chunks/{simple-section-CvBDK1kv.js → simple-section-CEf38rBZ.js} +3 -3
  119. package/dist/cdn/chunks/{skip-link-CHAlS7T_.js → skip-link-DMRhATWw.js} +4 -4
  120. package/dist/cdn/chunks/{slider-CidyL0xj.js → slider-Db3FPiP6.js} +8 -8
  121. package/dist/cdn/chunks/{spacer-DukX-lmv.js → spacer-BPFIYueo.js} +2 -2
  122. package/dist/cdn/chunks/{spacer-cell-etr1xFgM.js → spacer-cell-kITa3CDV.js} +4 -4
  123. package/dist/cdn/chunks/{split-button-DD0NWy1h.js → split-button-CJs9-Nha.js} +7 -7
  124. package/dist/cdn/chunks/{split-view-divider-x1x3K9m0.js → split-view-divider-lHlM1Ss8.js} +2 -2
  125. package/dist/cdn/chunks/{split-view-pane-BnCIygrY.js → split-view-pane-DlsbZtyo.js} +3 -3
  126. package/dist/cdn/chunks/{stacked-split-view-B70JJ94w.js → stacked-split-view-uRSVhrMd.js} +4 -4
  127. package/dist/cdn/chunks/{static-html-Bqazhm1K.js → static-html-BahSPV_4.js} +1 -1
  128. package/dist/cdn/chunks/{status-bar-CNLiFQUC.js → status-bar-DCJLVpsW.js} +4 -4
  129. package/dist/cdn/chunks/{step-bar-BOvuQRux.js → step-bar-CRR2jiyo.js} +6 -6
  130. package/dist/cdn/chunks/{step-cell-CM1Ju6Qz.js → step-cell-CbtKxJNJ.js} +5 -5
  131. package/dist/cdn/chunks/{stepper-CKM-lSpD.js → stepper-Con1_CnB.js} +6 -6
  132. package/dist/cdn/chunks/{style-map-BK47EPzs.js → style-map-uOwLerwV.js} +1 -1
  133. package/dist/cdn/chunks/{swatch-picker-CFRNmV9x.js → swatch-picker-Bqn0eaC9.js} +5 -5
  134. package/dist/cdn/chunks/{switch-BBy9Xo1E.js → switch-CMQcLEBJ.js} +4 -4
  135. package/dist/cdn/chunks/{switch-field-zh-K7d2q.js → switch-field-D9kWq4Kw.js} +5 -5
  136. package/dist/cdn/chunks/{tab-bar-C8qWE51t.js → tab-bar-DXzyZI3V.js} +8 -8
  137. package/dist/cdn/chunks/{table-av_EyIn7.js → table-CWACLpHx.js} +5 -5
  138. package/dist/cdn/chunks/{tag-DFv9vv3i.js → tag-Bo4yJbtF.js} +4 -4
  139. package/dist/cdn/chunks/{term-DeQiGH6k.js → term-CQ379ZbN.js} +12 -12
  140. package/dist/cdn/chunks/{text-mfKi65T1.js → text-D-dFoj6N.js} +3 -3
  141. package/dist/cdn/chunks/{text-cell-BcT9b0bK.js → text-cell-Be1hStxp.js} +8 -8
  142. package/dist/cdn/chunks/{text-editor-BwJE_vvo.js → text-editor-BjzQEBWm.js} +1372 -904
  143. package/dist/cdn/chunks/{text-field-B78KPNqa.js → text-field-DA8nirp6.js} +46 -63
  144. package/dist/cdn/chunks/{time-field-O2OSrTyM.js → time-field-Dd_TxJuf.js} +15 -15
  145. package/dist/cdn/chunks/{time-picker-Ce5tW_jo.js → time-picker-B0-rv1qp.js} +5 -5
  146. package/dist/cdn/chunks/{title-Bdx3NCUA.js → title-DOoPdG_i.js} +4 -4
  147. package/dist/cdn/chunks/{title-cell-BwHqLbue.js → title-cell-BzCNOMGr.js} +8 -8
  148. package/dist/cdn/chunks/{toggle-button-CjjJRwpP.js → toggle-button-9PbDHviQ.js} +10 -8
  149. package/dist/cdn/chunks/{toggle-button-group-CuRM8-nF.js → toggle-button-group-C-H-xp0M.js} +2 -2
  150. package/dist/cdn/chunks/{token-AiSihnjQ.js → token-CMKFC3gz.js} +5 -5
  151. package/dist/cdn/chunks/{token-field-GETUgMlc.js → token-field-D4-XHfnG.js} +11 -11
  152. package/dist/cdn/chunks/{toolbar-item-DR1Z8Hc3.js → toolbar-item-ZYoyKOyy.js} +3 -3
  153. package/dist/cdn/chunks/{toolbar-title-CDTF6HLo.js → toolbar-title-FKtQ8ZC4.js} +4 -4
  154. package/dist/cdn/chunks/{toolbar-Cwq028PV.js → toolbar-z9OhEE5l.js} +8 -8
  155. package/dist/cdn/chunks/{toolbar.styles-JjSZv4fw.js → toolbar.styles-DDjpdCHV.js} +3 -3
  156. package/dist/cdn/chunks/{tooltip-c-bLjIjT.js → tooltip-BvRNYRo3.js} +5 -5
  157. package/dist/cdn/chunks/{top-navigation-bar-DzmvxwVc.js → top-navigation-bar-BHPQntER.js} +17 -17
  158. package/dist/cdn/chunks/{top-title-bar-Bk6dadA-.js → top-title-bar-BVjegLlh.js} +6 -6
  159. package/dist/cdn/chunks/{translations-BDYe8_q9.js → translations-cJjO6nQV.js} +1 -1
  160. package/dist/cdn/chunks/{two-thirds-one-third-section-Co5_3oOP.js → two-thirds-one-third-section-BdBHQuXc.js} +3 -3
  161. package/dist/cdn/chunks/{validation-list-MEykkKGr.js → validation-list-5E3-3_95.js} +3 -3
  162. package/dist/cdn/chunks/{visibility-mixin-UdX7clEI.js → visibility-mixin-DvRe3O8t.js} +2 -2
  163. package/dist/cdn/chunks/{visually-hidden-BKnf0dXp.js → visually-hidden-F85D_HcR.js} +2 -2
  164. package/dist/cdn/chunks/{window-DNoLmVa1.js → window-CabW35M1.js} +5 -5
  165. package/dist/cdn/chunks/{with-translations-DlZHUMbZ.js → with-translations-BHDG37HJ.js} +3 -3
  166. package/dist/components/actions/button/button.template.js +1 -1
  167. package/dist/components/actions/menu/menu.pointer.d.ts +6 -2
  168. package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
  169. package/dist/components/actions/menu/menu.pointer.js +15 -5
  170. package/dist/components/actions/menu/menu.pointer.js.map +1 -1
  171. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  172. package/dist/components/actions/menu/menu.styles.js +15 -10
  173. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  174. package/dist/components/actions/menu/menu.template.js +1 -1
  175. package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
  176. package/dist/components/content/accordion/accordion-item.styles.js +5 -3
  177. package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
  178. package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
  179. package/dist/components/content/admonition/admonition.styles.js +5 -3
  180. package/dist/components/content/admonition/admonition.styles.js.map +1 -1
  181. package/dist/components/content/icon/icon.d.ts +1 -1
  182. package/dist/components/content/icon/icon.js +1 -1
  183. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +16 -9
  184. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  185. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +18 -12
  186. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  187. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  188. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +26 -12
  189. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  190. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.d.ts.map +1 -1
  191. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js +12 -3
  192. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js.map +1 -1
  193. package/dist/components/content/tooltip/tooltip.template.js +1 -1
  194. package/dist/components/forms/form-field/form-field.d.ts +3 -1
  195. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  196. package/dist/components/forms/form-field/form-field.js +14 -3
  197. package/dist/components/forms/form-field/form-field.js.map +1 -1
  198. package/dist/components/inputs/combo-box/combo-box.d.ts +3 -0
  199. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  200. package/dist/components/inputs/combo-box/combo-box.js +3 -0
  201. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  202. package/dist/components/inputs/date-field/date-field.d.ts +3 -0
  203. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  204. package/dist/components/inputs/date-field/date-field.js +3 -0
  205. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  206. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +8 -0
  207. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  208. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +8 -0
  209. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  210. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  211. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +24 -2
  212. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  213. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
  214. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +3 -0
  215. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
  216. package/dist/components/inputs/number-field/number-field.d.ts +3 -0
  217. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  218. package/dist/components/inputs/number-field/number-field.js +3 -0
  219. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  220. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -0
  221. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  222. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +3 -0
  223. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  224. package/dist/components/inputs/password-field/password-field.d.ts +3 -0
  225. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  226. package/dist/components/inputs/password-field/password-field.js +3 -0
  227. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  228. package/dist/components/inputs/search-field/search-field.d.ts +3 -0
  229. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  230. package/dist/components/inputs/search-field/search-field.js +3 -0
  231. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  232. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +5 -2
  233. package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -1
  234. package/dist/components/inputs/text-editor/text-editor.clipboard.js +23 -4
  235. package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -1
  236. package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -1
  237. package/dist/components/inputs/text-editor/text-editor.code-copy.js +38 -18
  238. package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
  239. package/dist/components/inputs/text-editor/text-editor.commands.d.ts +8 -6
  240. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
  241. package/dist/components/inputs/text-editor/text-editor.commands.js +23 -9
  242. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
  243. package/dist/components/inputs/text-editor/text-editor.d.ts +26 -0
  244. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  245. package/dist/components/inputs/text-editor/text-editor.js +165 -15
  246. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  247. package/dist/components/inputs/text-editor/text-editor.list-input.d.ts +17 -0
  248. package/dist/components/inputs/text-editor/text-editor.list-input.d.ts.map +1 -0
  249. package/dist/components/inputs/text-editor/text-editor.list-input.js +133 -0
  250. package/dist/components/inputs/text-editor/text-editor.list-input.js.map +1 -0
  251. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  252. package/dist/components/inputs/text-editor/text-editor.markdown.js +28 -1
  253. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  254. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +4 -2
  255. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
  256. package/dist/components/inputs/text-editor/text-editor.mentions.js +9 -5
  257. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  258. package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -1
  259. package/dist/components/inputs/text-editor/text-editor.ordered-list.js +89 -18
  260. package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -1
  261. package/dist/components/inputs/text-editor/text-editor.paste.d.ts +10 -0
  262. package/dist/components/inputs/text-editor/text-editor.paste.d.ts.map +1 -0
  263. package/dist/components/inputs/text-editor/text-editor.paste.js +116 -0
  264. package/dist/components/inputs/text-editor/text-editor.paste.js.map +1 -0
  265. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  266. package/dist/components/inputs/text-editor/text-editor.styles.js +49 -2
  267. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  268. package/dist/components/inputs/text-editor/text-editor.template.d.ts +1 -1
  269. package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -1
  270. package/dist/components/inputs/text-editor/text-editor.template.js +4 -3
  271. package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -1
  272. package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts +53 -0
  273. package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -0
  274. package/dist/components/inputs/text-editor/text-editor.toolbar.js +302 -0
  275. package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -0
  276. package/dist/components/inputs/text-field/text-field.d.ts +7 -13
  277. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  278. package/dist/components/inputs/text-field/text-field.js +8 -50
  279. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  280. package/dist/components/inputs/text-field/text-field.template.js +2 -2
  281. package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
  282. package/dist/components/inputs/time-field/time-field.d.ts +3 -0
  283. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  284. package/dist/components/inputs/time-field/time-field.js +3 -0
  285. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  286. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  287. package/dist/components/inputs/toggle-button/toggle-button.styles.js +3 -1
  288. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  289. package/dist/components/inputs/token-field/token-field.d.ts +3 -0
  290. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
  291. package/dist/components/inputs/token-field/token-field.js +3 -0
  292. package/dist/components/inputs/token-field/token-field.js.map +1 -1
  293. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +1 -1
  294. package/dist/css/rich-text.css +8 -2
  295. package/dist/css/variables.css +2 -1
  296. package/dist/nldd.min.js +973 -870
  297. package/dist/types/react.d.ts +12 -8
  298. package/dist/types/vue.d.ts +17 -11
  299. package/dist/utilities/codemirror/codemirror-element.d.ts +12 -1
  300. package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
  301. package/dist/utilities/codemirror/codemirror-element.js +23 -4
  302. package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
  303. package/dist/utilities/codemirror/codemirror-input.d.ts +3 -0
  304. package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -1
  305. package/dist/utilities/codemirror/codemirror-input.js +14 -3
  306. package/dist/utilities/codemirror/codemirror-input.js.map +1 -1
  307. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  308. package/dist/utilities/dev-rules.generated.js +22 -2
  309. package/dist/utilities/dev-rules.generated.js.map +1 -1
  310. package/dist/utilities/field-button-controller.d.ts +28 -0
  311. package/dist/utilities/field-button-controller.d.ts.map +1 -0
  312. package/dist/utilities/field-button-controller.js +56 -0
  313. package/dist/utilities/field-button-controller.js.map +1 -0
  314. package/dist/utilities/return-focus.d.ts.map +1 -1
  315. package/dist/utilities/return-focus.js +3 -0
  316. package/dist/utilities/return-focus.js.map +1 -1
  317. package/dist/utilities/shortcut.d.ts +14 -0
  318. package/dist/utilities/shortcut.d.ts.map +1 -1
  319. package/dist/utilities/shortcut.js +37 -1
  320. package/dist/utilities/shortcut.js.map +1 -1
  321. package/lint/data.generated.json +1 -1
  322. package/lint/linter.js +4 -1
  323. package/package.json +3 -4
@@ -1074,7 +1074,7 @@ type NlddHeroProps = {
1074
1074
  };
1075
1075
 
1076
1076
  type NlddIconProps = {
1077
- /** The name of the icon to display. The same attribute every other component that renders an icon takes. */
1077
+ /** The name of the icon to display. The same attribute every other component that renders an icon takes. Prefer an alias that names what the icon means here (`microphone-off`, `info`, `new-account`) over the name of the drawing; both show the same icon. */
1078
1078
  'icon'?: NLDDIcon['icon'];
1079
1079
  /** `full` (the default) fills the container. `inherit` sizes the icon to the surrounding text (1em) and drops it onto that text's own line, for an icon set in a line of running text. Or a fixed spacer-aligned size in px (16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96). */
1080
1080
  'size'?: NLDDIcon['size'];
@@ -1283,9 +1283,9 @@ type NlddKeyboardShortcutProps = {
1283
1283
  'windows-keys'?: NLDDKeyboardShortcut['windowsKeys'];
1284
1284
  /** Optional override for Linux/ChromeOS. */
1285
1285
  'linux-keys'?: NLDDKeyboardShortcut['linuxKeys'];
1286
- /** Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the font-size from the container; in the box variant the keycaps then scale along in em. */
1286
+ /** Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the font-size from the container; with keycaps they then scale along in em. */
1287
1287
  'size'?: NLDDKeyboardShortcut['size'];
1288
- /** 'box' (default) shows each key as a keycap with a fill and a highlight edge. 'simple' shows the keys as plain text with separators: lighter, for inline use such as in a menu item. */
1288
+ /** 'keycap' (default) shows each key as a keycap with a fill and a highlight edge, side by side without a '+'. 'text' shows the keys as plain text: lighter, for inline use such as in a menu item. As text the keys are joined by '+' (Ctrl+K), except on macOS. */
1289
1289
  'appearance'?: NLDDKeyboardShortcut['appearance'];
1290
1290
  /** 'neutral' (default) uses the component colors of its own. 'content' lets the keys and separators follow the content color of the context, with a translucent contrast fill and highlight edge. Useful on a filled surface color or a highlighted row. */
1291
1291
  'color'?: NLDDKeyboardShortcut['color'];
@@ -2711,7 +2711,7 @@ type NlddTextEditorProps = {
2711
2711
  'resize'?: NLDDTextEditor['resize'];
2712
2712
  /** Drops the frame, fill, padding and focus ring, for an editor inside a composition that provides them */
2713
2713
  'embedded'?: true;
2714
- /** '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 per level, at the level the result gives each line, as in nldd-rich-text, with the spaces after a `>` beyond the first hidden and a missing one made room for, so every level is the same step; with the caret anywhere in it, its `>` marks and spaces show instead. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way. */
2714
+ /** 'hidden' (default) or 'visible'. 'visible': every formatting mark stays in view, dimmed, a bullet as the character you typed (`-`, `*` or `+`), for people who write markdown. '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 per level, at the level the result gives each line, as in nldd-rich-text, with the spaces after a `>` beyond the first hidden and a missing one made room for, so every level is the same step; with the caret anywhere in it, its `>` marks and spaces show instead. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way. */
2715
2715
  'syntax'?: NLDDTextEditor['syntax'];
2716
2716
  /** Enable the annotation overlay (off by default). Annotations only render when this is set. */
2717
2717
  'annotatable'?: true;
@@ -2721,7 +2721,7 @@ type NlddTextEditorProps = {
2721
2721
  'accessible-description'?: NLDDTextEditor['accessibleDescription'];
2722
2722
  /** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
2723
2723
  'accessible-described-by'?: NLDDTextEditor['accessibleDescribedBy'];
2724
- /** Editor content (markdown) */
2724
+ /** Editor content (markdown). A value the app sets is kept as it is: the editor keeps the numbers of a numbered list in sequence while the user edits that list, not when the value is set. Only the part that differs changes, so the caret and the selection stay with their text, and the change stays out of the undo history. */
2725
2725
  'value'?: NLDDTextEditor['value'];
2726
2726
  /** Sets the id on the editable element. Set automatically by nldd-form-field. */
2727
2727
  'input-id'?: NLDDTextEditor['inputId'];
@@ -2741,6 +2741,10 @@ type NlddTextEditorProps = {
2741
2741
  'accessible-label'?: NLDDTextEditor['accessibleLabel'];
2742
2742
  /** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
2743
2743
  'invalid'?: true;
2744
+ /** The command a control runs on its editor: a name from `runCommand()`, with an argument after a colon (`setHeading:2`, `setList:task`). On an nldd-toggle-button, nldd-button, nldd-icon-button, `<button>` or nldd-menu-item, also in a toolbar's overflow menu. On an nldd-segmented-control the command takes the value of the chosen item: `text-editor-command="setList"` with items `none`, `bullet`, `ordered` and `task`, where a second click on the list that is on turns it off. Works inside the editor (its `toolbar` slot) or inside an element with `text-editor-for`. The editor sets `selected` and `disabled` on it, so do not set those yourself. Disabled: undo and redo without history, indent and outdent where the list item cannot move, copy and cut without a selection, the inline formats in code and the block formats in a code block, and everything but copy in a read-only editor. `setHeading` steps out of a code block first, so "Paragraaf" is the way out. */
2745
+ 'text-editor-command'?: NLDDTextEditor['textEditorCommand'];
2746
+ /** Set on any element that holds controls for an editor elsewhere on the page, such as an nldd-toolbar in a bar of the page: the editor's id. Its controls with `text-editor-command` drive that editor. The id is looked up in the document, not in a shadow root. */
2747
+ 'text-editor-for'?: NLDDTextEditor['textEditorFor'];
2744
2748
  };
2745
2749
 
2746
2750
  type NlddTextFieldProps = {
@@ -3322,7 +3326,7 @@ declare module 'react' {
3322
3326
  'nldd-form': NlddElement<NLDDForm, NlddFormProps>;
3323
3327
  /** A layout wrapper for the action buttons at the bottom of a form (typically a submit button or a button group). Follows the same responsive layout as `nldd-form-field`: with `label-alignment="right"` or `"left"` the content gets the same indent as the fields above it, thanks to a `::before` pseudo-element that acts as the spacer column where the label would sit. Inherits `label-alignment` automatically from a wrapping `<nldd-form>`: the form propagates its own `label-alignment` as `form-label-alignment` to descendant `nldd-form-actions` (and `nldd-form-field`) through a MutationObserver. An explicit `label-alignment` on the form-actions itself wins through the CSS cascade, and the form code never touches the `label-alignment` attribute of the descendant. <nldd-form label-alignment="right"> <nldd-form-field>...</nldd-form-field> <nldd-form-actions> <nldd-button-group> <nldd-button appearance="primary" type="submit" text="Bewaar"></nldd-button> </nldd-button-group> </nldd-form-actions> </nldd-form> */
3324
3328
  'nldd-form-actions': NlddElement<NLDDFormActions, NlddFormActionsProps>;
3325
- /** A field around one input: its label, supporting label, optional badge, validation and help text. It finds the input among its children, hands it the label as its accessible name and gives it an id, so you write no `for` or `id` yourself. Mark the optional fields with `optional`, not the required ones; the design guidelines say why. Put the requirements on a value in an nldd-validation-list inside the same field. What only your server knows, such as a password found in a breach, the app names in `unmet` on the input itself: see nldd-validation-list. */
3329
+ /** A field around one input: its label, supporting label, optional badge, validation and help text. It finds the input among its children, hands it the label as its accessible name and gives it an id, so you write no `for` or `id` yourself. The input is the first one it finds, leaving out what sits in an nldd-toolbar inside the field: a toolbar works on the field, such as the formatting bar above an nldd-text-editor, and is never the field itself. Mark the optional fields with `optional`, not the required ones; the design guidelines say why. Put the requirements on a value in an nldd-validation-list inside the same field. What only your server knows, such as a password found in a breach, the app names in `unmet` on the input itself: see nldd-validation-list. */
3326
3330
  'nldd-form-field': NlddElement<NLDDFormField, NlddFormFieldProps>;
3327
3331
  'nldd-form-field-help-text': NlddElement<NLDDFormFieldHelpText, NlddFormFieldHelpTextProps>;
3328
3332
  /** Nederlandse Digitale Dienst Form Section Component Plain custom element (extends HTMLElement, no Lit). The light-DOM render works around an NVDA + Firefox a11y bug where a shadow-DOM <fieldset> + <legend> is not reliably announced as the group label for slotted controls. A native fieldset/legend in the light DOM works correctly across all AT/browser combinations. **Differs from shadow components:** - No shadowRoot: all children live in the light DOM (inside the rendered <fieldset>). - No Lit: a plain HTMLElement with manual DOM mutation. - **Requires a global stylesheet import**: `dist/css/form-section.css` (or `global.css`). Form-section has no shadow stylesheet. Renders to: <nldd-form-section> <fieldset class="form-section"> <legend class="form-section__header"> <span class="form-section__title">Title</span> <span class="form-section__supporting-text">Supporting text</span> </legend> <div class="form-section__main"> [user's children] </div> </fieldset> </nldd-form-section> **Accessibility note**: the title renders as a `<legend>`. Semantically that is a **group label**, not a heading. Screen readers announce it when the user enters the fieldset, but users jumping through headings with the H key skip it. Visually it looks like a heading, so use this component for *form grouping*, not as page structure. For real page headings, use a separate heading element above the form. **Supporting-text length**: the supporting text sits as a `<span>` inside the `<legend>` so a screen reader reads it along as the group label. Side effect: on every field entry within the section, the whole legend (title + supporting text) is spoken again. Keep `supporting-text` short (roughly 80 characters or less) and use it to introduce the group ("Vul je adresgegevens in"), not for detailed instructions. For a longer explanation on one specific field, use `nldd-form-field-help-text` on that field. <nldd-form> <nldd-form-section text="Persoonsgegevens" supporting-text="Vul je gegevens in."> <nldd-form-field label="Voornaam">...</nldd-form-field> <nldd-form-field label="Achternaam">...</nldd-form-field> </nldd-form-section> <nldd-form-section text="Adres"> <nldd-form-field label="Straat">...</nldd-form-field> </nldd-form-section> <nldd-form-actions>...</nldd-form-actions> </nldd-form> */
@@ -3348,7 +3352,7 @@ declare module 'react' {
3348
3352
  'nldd-kanban': NlddElement<NLDDKanban, NlddKanbanProps>;
3349
3353
  /** One column of an `nldd-kanban`: a header and the items under it. The items are whatever you put in the column, usually an `nldd-card` each; the board moves them between columns. Without a `header` slot the column shows its `text` and the number of items. With one, the header is yours: an `nldd-title`, a button to add an item, a badge. `text` stays the column's name either way: it is what a screen reader hears when an item moves here ("Verplaatst naar In behandeling"), so set it, or `accessible-label`, also when the header comes from the slot. The column scrolls on its own once its items do not fit the height of the board, and fades at the top or the bottom while there is more to scroll to. */
3350
3354
  'nldd-kanban-column': NlddElement<NLDDKanbanColumn, NlddKanbanColumnProps>;
3351
- /** Shows a key combination (such as Cmd+K or Ctrl+Shift+P) in one combined container with a semantic <kbd> element per key. On touch-only devices (no hover-capable input) the shortcut is hidden by default, because it cannot be invoked there. Use the `always-visible` attribute when the shortcut is purely informative and should stay visible. For cross-platform shortcuts you can set `mac-keys`, `windows-keys` and `linux-keys`. The component picks the right one from the detected OS, with `keys` as the fallback for unknown platforms. */
3355
+ /** Shows a key combination (such as Cmd+K or Ctrl+Shift+P) in one combined container with a semantic <kbd> element per key. On touch-only devices (no hover-capable input) the shortcut is hidden by default, because it cannot be invoked there. Use the `always-visible` attribute when the shortcut is purely informative and should stay visible. For cross-platform shortcuts you can set `mac-keys`, `windows-keys` and `linux-keys`. The component picks the right one from the detected OS, with `keys` as the fallback for unknown platforms. On macOS the modifiers show as their symbols, in the order of a macOS menu: `Cmd+Shift+Z` becomes ⇧⌘Z. Write them as Cmd (or Command, Meta), Option (or Alt, Opt), Shift and Ctrl (or Control), or as the symbols. A screen reader reads the name (Command), not the symbol. */
3352
3356
  'nldd-keyboard-shortcut': NlddElement<NLDDKeyboardShortcut, NlddKeyboardShortcutProps>;
3353
3357
  /** Hyperlink component with two modes: 1. **Standalone (sized)**: set `size="xs"|"sm"|"md"|"lg"` for menus, action areas or overviews. Fixed text size, `display: inline-flex` with `gap` for icon spacing. 2. **Inline (inherit)**: leave `size` out or set `size="inherit"` explicitly. The link inherits `font-size`, `line-height` and `font-family` from its surroundings. Text wraps naturally across lines (`display: inline`). Icons work here too; the natural whitespace between icon and text provides the spacing. For links in CMS or markdown output, where the `<a>` arrives as HTML, `<nldd-rich-text>` with a raw `<a>` remains the route to take. Put an `<a>` in the default slot and the component draws no link of its own: it gives yours its look instead. A page then has the link in its HTML before any script runs, for a search engine that does not render the page, a link preview or reader mode, and a router gets the click: put the `<Link>` of React Router or Next in it, which renders an `<a>` and navigates itself. Without that, every click on a link in a shadow root loads the whole page. <nldd-link size="md"><a href="/patronen">Patronen</a></nldd-link> Everything about the link goes on the `<a>`: `href`, `target`, `rel`, `download`, and its text. Those attributes, `text`, `start-icon` and `end-icon` do nothing on `nldd-link` then. An icon goes in the `<a>` as an nldd-icon, so it is part of what you click and inside the focus ring. `size`, `accessible-label`, `accessible-description`, `accessible-described-by`, `interestfor`, `no-tab` and `disabled` keep working: the component sets `aria-label`, the description, `tabindex` and `aria-disabled` on your `<a>`, and leaves an attribute you set yourself alone. With `target="_blank"` it adds `noopener noreferrer` to the `rel` of the `<a>`, as it does to its own. A disabled link ignores a click before your router sees it. The hint about another website, a new tab or a download goes on it as `aria-description`, so a screen reader reads it after the name, after the text of `accessible-description`. `accessible-described-by` points the `<a>` at the elements it names. Not as hidden text in the `<a>`: a framework that renders the `<a>` owns its children, and an extra one breaks hydration. One `<a>` per link. The look of the `<a>` comes from the global stylesheet, `dist/css/link.css` or `global.css`, which includes it, so the link looks right before the component loads, and without script. */
3354
3358
  'nldd-link': NlddElement<NLDDLink, NlddLinkProps>;
@@ -3479,7 +3483,7 @@ declare module 'react' {
3479
3483
  'nldd-text': NlddElement<NLDDText, NlddTextProps>;
3480
3484
  /** A cell component for displaying text content in lists with configurable alignment, size and color. This is the most fundamental list cell component. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. Each text region (overline, main text, supporting text) takes plain text in its attribute, which the cell draws as a `<p>`, or a `<p>` of your own in its slot. Use the slot when you need components mixed with text, such as `<nldd-link>`, `<nldd-tag>` or `<nldd-icon>`, and put them in that `<p>`: the paragraph is then in the HTML before any script runs. The slot wins over the attribute. Each region chooses for itself, so an attribute and a slot stand side by side: plain text in `overline`, a `<p>` with a tag in the default slot. The cell does not style plain HTML: for bold, write `**bold**` in the attribute, and for code put an `<nldd-text>` in the `<p>`, with the `<code>` in a `<span>` of its own. The element in a slot takes the text style of the cell: a font, margin or other style the page sets on it does not apply. Note that `query` highlighting and `**bold**` parsing only apply to the attribute path; slotted content is rendered as-is. */
3481
3485
  'nldd-text-cell': NlddElement<NLDDTextCell, NlddTextCellProps>;
3482
- /** 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. Framed like the other input fields by default. `embedded` drops the frame, fill, padding and focus ring, for an editor inside a composition (e.g. a message field) that owns its chrome and focus; the caret is then a prominent accent. 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 state-change event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. With `syntax="hidden"` a task item (`- [ ]`, `- [x]`) reads as a box in the place of its bullet, and like every other mark shows its markdown on the line the caret is on. A click on the box checks or unchecks it without moving the caret. Cmd/Ctrl+Enter does the same for the tasks on the lines of the selection, in both syntax modes. The box is no tab stop: Tab leaves the editor. A screen reader reads "Taak, open" or "Taak, afgerond" in its place. A code block that names its language after the backticks is highlighted in it, as in nldd-code-viewer; the grammar loads with the first such block. Its opening line is the head of the block, with a "Kopieer" button at the right edge that copies the code without its fences and says "Gekopieerd" or "Kopiëren mislukt", as the code viewer does. In an editable editor the button is no tab stop (select and copy is the keyboard route); read-only or disabled it can be focused. Without a secure context there is no button. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. An @-mention typeahead (mentionSource) collapses to an atomic token, further typeahead lists on their own trigger (typeaheads) write what you tell them to, and a W3C-style annotation overlay (annotations) marks ranges with a light tint and a count badge without touching the underlying text. To show the value, render the markdown into nldd-rich-text, which uses the same type, bold and code as the editor. A mention is stored as `[@Name](user:id)`: turn it into `<a href="…" data-mention>Name</a>` (or a `span` when there is no page for the person), without the `@`. A link reads as the same token there; a span keeps the color and the icon without the tint. A line indented four spaces stays text, unlike CommonMark, where it starts a code block: in a field for prose that is pasted or indented text, and code takes a fence. Turn indented code off in the renderer too, so the page shows what the editor showed: `md.disable('code')` in markdown-it and markdown-it-py, for example. */
3486
+ /** 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. Framed like the other input fields by default. `embedded` drops the frame, fill, padding and focus ring, for an editor inside a composition (e.g. a message field) that owns its chrome and focus; the caret is then a prominent accent. A toolbar is markup: put an nldd-toolbar in the `toolbar` slot, or anywhere on the page inside an element with `text-editor-for` set to the editor's id, and give each control a `text-editor-command`. The editor runs the command, gives focus back to the text and keeps the control's state: `selected` on a toggle, a menu item or a segmented-control item, the list type on a segmented control, and `disabled` where the command cannot run. Controls without the attribute, such as a send button, are left alone. There is no built-in toolbar: which controls, in what order, is the app's. A consumer can also drive formatting itself 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 state-change event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. Enter in a list or a quote puts the next marker down, and Enter on an empty item ends the list, or steps one level out of a nested one. A marker typed where the editor already put one does not stack: `- ` on a fresh `- `, or right after the bullet of an item with text, stays one bullet, `2. ` on `2. ` stays `2. `, `> ` on `> ` one quote. `1. ` on a later number starts a numbered list under the item above, and a marker of the other kind takes the place of the editor's: `1. ` on `- ` makes a numbered list at that level. Spaces typed before a marker nest it one level under the item above, at the indent markdown needs (2 spaces under `- `, 3 under `1. `); Cmd/Ctrl+] does the same. Backspace right after a marker is the way back: a nested item steps one level out, an item on the first level leaves the list. Cmd/Ctrl+Z brings back what was typed. Pasted text and a value the app sets stay as they are. With the marks hidden (the default) a task item (`- [ ]`, `- [x]`) reads as a box in the place of its bullet, and like every other mark shows its markdown on the line the caret is on. A click on the box checks or unchecks it without moving the caret. Cmd/Ctrl+Enter does the same for the tasks on the lines of the selection, in both syntax modes. The box is no tab stop: Tab leaves the editor. A screen reader reads "Taak, open" or "Taak, afgerond" in its place. A code block that names its language after the backticks is highlighted in it, as in nldd-code-viewer; the grammar loads with the first such block. Its opening line is the head of the block, with a "Kopieer" button at the right edge that copies the code without its fences and says "Gekopieerd" or "Kopiëren mislukt", as the code viewer does: the outcome stays while the pointer or the focus is on the button, and goes when you leave it, press Escape or go on in the editor. In an editable editor the button is no tab stop (select and copy is the keyboard route); read-only or disabled it can be focused. Without a secure context there is no button. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. applyChanges(changes) takes text from outside, such as what a collaborator types, without moving the caret or entering the user's undo history. 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. A line indented four spaces stays text, unlike CommonMark, where it starts a code block: in a field for prose that is pasted or indented text, and code takes a fence. That holds whatever the line starts with, so ` - punt` is no list and ` # kop` no heading; in a list the four spaces count from the text of the item. Turn indented code off in the renderer too, so the page shows what the editor showed: `md.disable('code')` in markdown-it and markdown-it-py, for example. Text pasted at the start of a line becomes the markdown it looks like: the indent all its lines share goes, a bullet from Word or Outlook (`•` and a tab) becomes `- `, and a pasted list nests the way typing does (with indent of its own one level under the item above, without it at the level of the empty item it lands on). A list of several lines pasted at the end of a line with text starts on the next line. Cmd/Ctrl+Z brings back the text as pasted, and Cmd/Ctrl+Shift+V pastes it as it is. Nothing changes in a code block. */
3483
3487
  'nldd-text-editor': NlddElement<NLDDTextEditor, NlddTextEditorProps>;
3484
3488
  'nldd-text-field': NlddElement<NLDDTextField, NlddTextFieldProps>;
3485
3489
  /** A text field for a time. The value is always 24-hour `HH:mm`, which is how Dutch shows it too, so unlike nldd-date-field there is nothing to convert. Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. `value` holds a valid time or nothing, so an empty field and one with text that is no time both read as ''. `validity` tells them apart: `badInput` for text that is no time, `rangeUnderflow` / `rangeOverflow` for a time outside `min` / `max`. A form does not submit then, and nldd-form marks the field invalid. Without a submit, as in a filter that applies at once, the moment is yours: `field.invalid = !field.validity.valid` on `change`, with a message of your own in the nldd-form-field. What you do in the picker is a preview until you leave it. The field shows the time right away but commits it on close. "Klaar" and Enter keep the choice, and so does a click outside once you have picked something. Escape puts the old time back. On sm, where the picker is a bottom sheet, "Klaar" sits in its title bar and the sheet offers no cancel: as with a native wheel, you turn back to change your mind. The built-in wheels show 7 rows, and fewer, down to 3, when the picker would otherwise run off the window; they grow back when the window does. On an empty field the wheels open at `min`, or otherwise at the current time rounded to `step`, which does not fill in the field yet. */
@@ -1518,7 +1518,7 @@ declare module 'vue' {
1518
1518
  };
1519
1519
 
1520
1520
  type NLDDIconProps = {
1521
- /** The name of the icon to display. The same attribute every other component that renders an icon takes. */
1521
+ /** The name of the icon to display. The same attribute every other component that renders an icon takes. Prefer an alias that names what the icon means here (`microphone-off`, `info`, `new-account`) over the name of the drawing; both show the same icon. */
1522
1522
  'icon'?: NLDDIcon['icon'];
1523
1523
  /** `full` (the default) fills the container. `inherit` sizes the icon to the surrounding text (1em) and drops it onto that text's own line, for an icon set in a line of running text. Or a fixed spacer-aligned size in px (16, 20, 24, 28, 32, 40, 44, 48, 56, 64, 80, 96). */
1524
1524
  'size'?: NLDDIcon['size'];
@@ -1818,9 +1818,9 @@ declare module 'vue' {
1818
1818
  'linux-keys'?: NLDDKeyboardShortcut['linuxKeys'];
1819
1819
  /** Optional override for Linux/ChromeOS. */
1820
1820
  'linuxKeys'?: NLDDKeyboardShortcut['linuxKeys'];
1821
- /** Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the font-size from the container; in the box variant the keycaps then scale along in em. */
1821
+ /** Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the font-size from the container; with keycaps they then scale along in em. */
1822
1822
  'size'?: NLDDKeyboardShortcut['size'];
1823
- /** 'box' (default) shows each key as a keycap with a fill and a highlight edge. 'simple' shows the keys as plain text with separators: lighter, for inline use such as in a menu item. */
1823
+ /** 'keycap' (default) shows each key as a keycap with a fill and a highlight edge, side by side without a '+'. 'text' shows the keys as plain text: lighter, for inline use such as in a menu item. As text the keys are joined by '+' (Ctrl+K), except on macOS. */
1824
1824
  'appearance'?: NLDDKeyboardShortcut['appearance'];
1825
1825
  /** 'neutral' (default) uses the component colors of its own. 'content' lets the keys and separators follow the content color of the context, with a translucent contrast fill and highlight edge. Useful on a filled surface color or a highlighted row. */
1826
1826
  'color'?: NLDDKeyboardShortcut['color'];
@@ -3816,7 +3816,7 @@ declare module 'vue' {
3816
3816
  'resize'?: NLDDTextEditor['resize'];
3817
3817
  /** Drops the frame, fill, padding and focus ring, for an editor inside a composition that provides them */
3818
3818
  'embedded'?: NLDDTextEditor['embedded'];
3819
- /** '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 per level, at the level the result gives each line, as in nldd-rich-text, with the spaces after a `>` beyond the first hidden and a missing one made room for, so every level is the same step; with the caret anywhere in it, its `>` marks and spaces show instead. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way. */
3819
+ /** 'hidden' (default) or 'visible'. 'visible': every formatting mark stays in view, dimmed, a bullet as the character you typed (`-`, `*` or `+`), for people who write markdown. '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 per level, at the level the result gives each line, as in nldd-rich-text, with the spaces after a `>` beyond the first hidden and a missing one made room for, so every level is the same step; with the caret anywhere in it, its `>` marks and spaces show instead. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way. */
3820
3820
  'syntax'?: NLDDTextEditor['syntax'];
3821
3821
  /** Enable the annotation overlay (off by default). Annotations only render when this is set. */
3822
3822
  'annotatable'?: NLDDTextEditor['annotatable'];
@@ -3830,7 +3830,7 @@ declare module 'vue' {
3830
3830
  'accessible-described-by'?: NLDDTextEditor['accessibleDescribedBy'];
3831
3831
  /** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
3832
3832
  'accessibleDescribedBy'?: NLDDTextEditor['accessibleDescribedBy'];
3833
- /** Editor content (markdown) */
3833
+ /** Editor content (markdown). A value the app sets is kept as it is: the editor keeps the numbers of a numbered list in sequence while the user edits that list, not when the value is set. Only the part that differs changes, so the caret and the selection stay with their text, and the change stays out of the undo history. */
3834
3834
  'value'?: NLDDTextEditor['value'];
3835
3835
  /** Sets the id on the editable element. Set automatically by nldd-form-field. */
3836
3836
  'input-id'?: NLDDTextEditor['inputId'];
@@ -3854,6 +3854,14 @@ declare module 'vue' {
3854
3854
  'accessibleLabel'?: NLDDTextEditor['accessibleLabel'];
3855
3855
  /** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
3856
3856
  'invalid'?: NLDDTextEditor['invalid'];
3857
+ /** The command a control runs on its editor: a name from `runCommand()`, with an argument after a colon (`setHeading:2`, `setList:task`). On an nldd-toggle-button, nldd-button, nldd-icon-button, `<button>` or nldd-menu-item, also in a toolbar's overflow menu. On an nldd-segmented-control the command takes the value of the chosen item: `text-editor-command="setList"` with items `none`, `bullet`, `ordered` and `task`, where a second click on the list that is on turns it off. Works inside the editor (its `toolbar` slot) or inside an element with `text-editor-for`. The editor sets `selected` and `disabled` on it, so do not set those yourself. Disabled: undo and redo without history, indent and outdent where the list item cannot move, copy and cut without a selection, the inline formats in code and the block formats in a code block, and everything but copy in a read-only editor. `setHeading` steps out of a code block first, so "Paragraaf" is the way out. */
3858
+ 'text-editor-command'?: NLDDTextEditor['textEditorCommand'];
3859
+ /** The command a control runs on its editor: a name from `runCommand()`, with an argument after a colon (`setHeading:2`, `setList:task`). On an nldd-toggle-button, nldd-button, nldd-icon-button, `<button>` or nldd-menu-item, also in a toolbar's overflow menu. On an nldd-segmented-control the command takes the value of the chosen item: `text-editor-command="setList"` with items `none`, `bullet`, `ordered` and `task`, where a second click on the list that is on turns it off. Works inside the editor (its `toolbar` slot) or inside an element with `text-editor-for`. The editor sets `selected` and `disabled` on it, so do not set those yourself. Disabled: undo and redo without history, indent and outdent where the list item cannot move, copy and cut without a selection, the inline formats in code and the block formats in a code block, and everything but copy in a read-only editor. `setHeading` steps out of a code block first, so "Paragraaf" is the way out. */
3860
+ 'textEditorCommand'?: NLDDTextEditor['textEditorCommand'];
3861
+ /** Set on any element that holds controls for an editor elsewhere on the page, such as an nldd-toolbar in a bar of the page: the editor's id. Its controls with `text-editor-command` drive that editor. The id is looked up in the document, not in a shadow root. */
3862
+ 'text-editor-for'?: NLDDTextEditor['textEditorFor'];
3863
+ /** Set on any element that holds controls for an editor elsewhere on the page, such as an nldd-toolbar in a bar of the page: the editor's id. Its controls with `text-editor-command` drive that editor. The id is looked up in the document, not in a shadow root. */
3864
+ 'textEditorFor'?: NLDDTextEditor['textEditorFor'];
3857
3865
  /** Consumer-supplied */
3858
3866
  'mentionSource'?: NLDDTextEditor['mentionSource'];
3859
3867
  /** What may follow the `@` of a mention, as a regular expression without anchors or capturing groups. Property only. Without it: letters with any accent, digits, `_`, `.`, `+` and `-`. Allow one space to search on a full name: `'[\\p{L}\\p{M}\\p{N}_.+-]*(?: [\\p{L}\\p{M}\\p{N}_.+-]+)?'`. */
@@ -3867,7 +3875,7 @@ declare module 'vue' {
3867
3875
  /** Set by nldd-form-field. A consumer never writes this: the app has `accessible-described-by` and `accessible-description`. */
3868
3876
  'describedByElements'?: NLDDTextEditor['describedByElements'];
3869
3877
  'internals'?: NLDDTextEditor['internals'];
3870
- /** When the content changes (detail: { value }) */
3878
+ /** When the user changes the content (detail: { value }). Setting `value` or calling `applyChanges()` does not fire it. */
3871
3879
  'onInput'?: (event: CustomEvent) => void;
3872
3880
  /** When the content is committed on blur (detail: { value }) */
3873
3881
  'onChange'?: (event: CustomEvent) => void;
@@ -3938,8 +3946,6 @@ declare module 'vue' {
3938
3946
  'accessible-described-by'?: NLDDTextField['accessibleDescribedBy'];
3939
3947
  /** IDs of elements whose text describes this control, separated by spaces, as `aria-describedby` takes them. Looked up in the tree of this element and handed to the control inside, where an `aria-describedby` on the host would not reach. Read after the name, role and state, after the help and error text of an nldd-form-field. Looked up again on each render and when focus comes in, so an element added later counts from then on. */
3940
3948
  'accessibleDescribedBy'?: NLDDTextField['accessibleDescribedBy'];
3941
- /** The size a slotted button gets: one step below the field, so it fits inside the border. */
3942
- 'buttonSize'?: NLDDTextField['buttonSize'];
3943
3949
  /** Set by nldd-form-field. A consumer never writes this: the app has `accessible-described-by` and `accessible-description`. */
3944
3950
  'describedByElements'?: NLDDTextField['describedByElements'];
3945
3951
  'internals'?: NLDDTextField['internals'];
@@ -4688,7 +4694,7 @@ declare module 'vue' {
4688
4694
  'nldd-form': DefineComponent<NLDDFormProps>;
4689
4695
  /** A layout wrapper for the action buttons at the bottom of a form (typically a submit button or a button group). Follows the same responsive layout as `nldd-form-field`: with `label-alignment="right"` or `"left"` the content gets the same indent as the fields above it, thanks to a `::before` pseudo-element that acts as the spacer column where the label would sit. Inherits `label-alignment` automatically from a wrapping `<nldd-form>`: the form propagates its own `label-alignment` as `form-label-alignment` to descendant `nldd-form-actions` (and `nldd-form-field`) through a MutationObserver. An explicit `label-alignment` on the form-actions itself wins through the CSS cascade, and the form code never touches the `label-alignment` attribute of the descendant. <nldd-form label-alignment="right"> <nldd-form-field>...</nldd-form-field> <nldd-form-actions> <nldd-button-group> <nldd-button appearance="primary" type="submit" text="Bewaar"></nldd-button> </nldd-button-group> </nldd-form-actions> </nldd-form> */
4690
4696
  'nldd-form-actions': DefineComponent<NLDDFormActionsProps>;
4691
- /** A field around one input: its label, supporting label, optional badge, validation and help text. It finds the input among its children, hands it the label as its accessible name and gives it an id, so you write no `for` or `id` yourself. Mark the optional fields with `optional`, not the required ones; the design guidelines say why. Put the requirements on a value in an nldd-validation-list inside the same field. What only your server knows, such as a password found in a breach, the app names in `unmet` on the input itself: see nldd-validation-list. */
4697
+ /** A field around one input: its label, supporting label, optional badge, validation and help text. It finds the input among its children, hands it the label as its accessible name and gives it an id, so you write no `for` or `id` yourself. The input is the first one it finds, leaving out what sits in an nldd-toolbar inside the field: a toolbar works on the field, such as the formatting bar above an nldd-text-editor, and is never the field itself. Mark the optional fields with `optional`, not the required ones; the design guidelines say why. Put the requirements on a value in an nldd-validation-list inside the same field. What only your server knows, such as a password found in a breach, the app names in `unmet` on the input itself: see nldd-validation-list. */
4692
4698
  'nldd-form-field': DefineComponent<NLDDFormFieldProps>;
4693
4699
  'nldd-form-field-help-text': DefineComponent<NLDDFormFieldHelpTextProps>;
4694
4700
  /** Nederlandse Digitale Dienst Form Section Component Plain custom element (extends HTMLElement, no Lit). The light-DOM render works around an NVDA + Firefox a11y bug where a shadow-DOM <fieldset> + <legend> is not reliably announced as the group label for slotted controls. A native fieldset/legend in the light DOM works correctly across all AT/browser combinations. **Differs from shadow components:** - No shadowRoot: all children live in the light DOM (inside the rendered <fieldset>). - No Lit: a plain HTMLElement with manual DOM mutation. - **Requires a global stylesheet import**: `dist/css/form-section.css` (or `global.css`). Form-section has no shadow stylesheet. Renders to: <nldd-form-section> <fieldset class="form-section"> <legend class="form-section__header"> <span class="form-section__title">Title</span> <span class="form-section__supporting-text">Supporting text</span> </legend> <div class="form-section__main"> [user's children] </div> </fieldset> </nldd-form-section> **Accessibility note**: the title renders as a `<legend>`. Semantically that is a **group label**, not a heading. Screen readers announce it when the user enters the fieldset, but users jumping through headings with the H key skip it. Visually it looks like a heading, so use this component for *form grouping*, not as page structure. For real page headings, use a separate heading element above the form. **Supporting-text length**: the supporting text sits as a `<span>` inside the `<legend>` so a screen reader reads it along as the group label. Side effect: on every field entry within the section, the whole legend (title + supporting text) is spoken again. Keep `supporting-text` short (roughly 80 characters or less) and use it to introduce the group ("Vul je adresgegevens in"), not for detailed instructions. For a longer explanation on one specific field, use `nldd-form-field-help-text` on that field. <nldd-form> <nldd-form-section text="Persoonsgegevens" supporting-text="Vul je gegevens in."> <nldd-form-field label="Voornaam">...</nldd-form-field> <nldd-form-field label="Achternaam">...</nldd-form-field> </nldd-form-section> <nldd-form-section text="Adres"> <nldd-form-field label="Straat">...</nldd-form-field> </nldd-form-section> <nldd-form-actions>...</nldd-form-actions> </nldd-form> */
@@ -4714,7 +4720,7 @@ declare module 'vue' {
4714
4720
  'nldd-kanban': DefineComponent<NLDDKanbanProps>;
4715
4721
  /** One column of an `nldd-kanban`: a header and the items under it. The items are whatever you put in the column, usually an `nldd-card` each; the board moves them between columns. Without a `header` slot the column shows its `text` and the number of items. With one, the header is yours: an `nldd-title`, a button to add an item, a badge. `text` stays the column's name either way: it is what a screen reader hears when an item moves here ("Verplaatst naar In behandeling"), so set it, or `accessible-label`, also when the header comes from the slot. The column scrolls on its own once its items do not fit the height of the board, and fades at the top or the bottom while there is more to scroll to. */
4716
4722
  'nldd-kanban-column': DefineComponent<NLDDKanbanColumnProps>;
4717
- /** Shows a key combination (such as Cmd+K or Ctrl+Shift+P) in one combined container with a semantic <kbd> element per key. On touch-only devices (no hover-capable input) the shortcut is hidden by default, because it cannot be invoked there. Use the `always-visible` attribute when the shortcut is purely informative and should stay visible. For cross-platform shortcuts you can set `mac-keys`, `windows-keys` and `linux-keys`. The component picks the right one from the detected OS, with `keys` as the fallback for unknown platforms. */
4723
+ /** Shows a key combination (such as Cmd+K or Ctrl+Shift+P) in one combined container with a semantic <kbd> element per key. On touch-only devices (no hover-capable input) the shortcut is hidden by default, because it cannot be invoked there. Use the `always-visible` attribute when the shortcut is purely informative and should stay visible. For cross-platform shortcuts you can set `mac-keys`, `windows-keys` and `linux-keys`. The component picks the right one from the detected OS, with `keys` as the fallback for unknown platforms. On macOS the modifiers show as their symbols, in the order of a macOS menu: `Cmd+Shift+Z` becomes ⇧⌘Z. Write them as Cmd (or Command, Meta), Option (or Alt, Opt), Shift and Ctrl (or Control), or as the symbols. A screen reader reads the name (Command), not the symbol. */
4718
4724
  'nldd-keyboard-shortcut': DefineComponent<NLDDKeyboardShortcutProps>;
4719
4725
  /** Hyperlink component with two modes: 1. **Standalone (sized)**: set `size="xs"|"sm"|"md"|"lg"` for menus, action areas or overviews. Fixed text size, `display: inline-flex` with `gap` for icon spacing. 2. **Inline (inherit)**: leave `size` out or set `size="inherit"` explicitly. The link inherits `font-size`, `line-height` and `font-family` from its surroundings. Text wraps naturally across lines (`display: inline`). Icons work here too; the natural whitespace between icon and text provides the spacing. For links in CMS or markdown output, where the `<a>` arrives as HTML, `<nldd-rich-text>` with a raw `<a>` remains the route to take. Put an `<a>` in the default slot and the component draws no link of its own: it gives yours its look instead. A page then has the link in its HTML before any script runs, for a search engine that does not render the page, a link preview or reader mode, and a router gets the click: put the `<Link>` of React Router or Next in it, which renders an `<a>` and navigates itself. Without that, every click on a link in a shadow root loads the whole page. <nldd-link size="md"><a href="/patronen">Patronen</a></nldd-link> Everything about the link goes on the `<a>`: `href`, `target`, `rel`, `download`, and its text. Those attributes, `text`, `start-icon` and `end-icon` do nothing on `nldd-link` then. An icon goes in the `<a>` as an nldd-icon, so it is part of what you click and inside the focus ring. `size`, `accessible-label`, `accessible-description`, `accessible-described-by`, `interestfor`, `no-tab` and `disabled` keep working: the component sets `aria-label`, the description, `tabindex` and `aria-disabled` on your `<a>`, and leaves an attribute you set yourself alone. With `target="_blank"` it adds `noopener noreferrer` to the `rel` of the `<a>`, as it does to its own. A disabled link ignores a click before your router sees it. The hint about another website, a new tab or a download goes on it as `aria-description`, so a screen reader reads it after the name, after the text of `accessible-description`. `accessible-described-by` points the `<a>` at the elements it names. Not as hidden text in the `<a>`: a framework that renders the `<a>` owns its children, and an extra one breaks hydration. One `<a>` per link. The look of the `<a>` comes from the global stylesheet, `dist/css/link.css` or `global.css`, which includes it, so the link looks right before the component loads, and without script. */
4720
4726
  'nldd-link': DefineComponent<NLDDLinkProps>;
@@ -4845,7 +4851,7 @@ declare module 'vue' {
4845
4851
  'nldd-text': DefineComponent<NLDDTextProps>;
4846
4852
  /** A cell component for displaying text content in lists with configurable alignment, size and color. This is the most fundamental list cell component. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. Each text region (overline, main text, supporting text) takes plain text in its attribute, which the cell draws as a `<p>`, or a `<p>` of your own in its slot. Use the slot when you need components mixed with text, such as `<nldd-link>`, `<nldd-tag>` or `<nldd-icon>`, and put them in that `<p>`: the paragraph is then in the HTML before any script runs. The slot wins over the attribute. Each region chooses for itself, so an attribute and a slot stand side by side: plain text in `overline`, a `<p>` with a tag in the default slot. The cell does not style plain HTML: for bold, write `**bold**` in the attribute, and for code put an `<nldd-text>` in the `<p>`, with the `<code>` in a `<span>` of its own. The element in a slot takes the text style of the cell: a font, margin or other style the page sets on it does not apply. Note that `query` highlighting and `**bold**` parsing only apply to the attribute path; slotted content is rendered as-is. */
4847
4853
  'nldd-text-cell': DefineComponent<NLDDTextCellProps>;
4848
- /** 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. Framed like the other input fields by default. `embedded` drops the frame, fill, padding and focus ring, for an editor inside a composition (e.g. a message field) that owns its chrome and focus; the caret is then a prominent accent. 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 state-change event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. With `syntax="hidden"` a task item (`- [ ]`, `- [x]`) reads as a box in the place of its bullet, and like every other mark shows its markdown on the line the caret is on. A click on the box checks or unchecks it without moving the caret. Cmd/Ctrl+Enter does the same for the tasks on the lines of the selection, in both syntax modes. The box is no tab stop: Tab leaves the editor. A screen reader reads "Taak, open" or "Taak, afgerond" in its place. A code block that names its language after the backticks is highlighted in it, as in nldd-code-viewer; the grammar loads with the first such block. Its opening line is the head of the block, with a "Kopieer" button at the right edge that copies the code without its fences and says "Gekopieerd" or "Kopiëren mislukt", as the code viewer does. In an editable editor the button is no tab stop (select and copy is the keyboard route); read-only or disabled it can be focused. Without a secure context there is no button. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. An @-mention typeahead (mentionSource) collapses to an atomic token, further typeahead lists on their own trigger (typeaheads) write what you tell them to, and a W3C-style annotation overlay (annotations) marks ranges with a light tint and a count badge without touching the underlying text. To show the value, render the markdown into nldd-rich-text, which uses the same type, bold and code as the editor. A mention is stored as `[@Name](user:id)`: turn it into `<a href="…" data-mention>Name</a>` (or a `span` when there is no page for the person), without the `@`. A link reads as the same token there; a span keeps the color and the icon without the tint. A line indented four spaces stays text, unlike CommonMark, where it starts a code block: in a field for prose that is pasted or indented text, and code takes a fence. Turn indented code off in the renderer too, so the page shows what the editor showed: `md.disable('code')` in markdown-it and markdown-it-py, for example. */
4854
+ /** 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. Framed like the other input fields by default. `embedded` drops the frame, fill, padding and focus ring, for an editor inside a composition (e.g. a message field) that owns its chrome and focus; the caret is then a prominent accent. A toolbar is markup: put an nldd-toolbar in the `toolbar` slot, or anywhere on the page inside an element with `text-editor-for` set to the editor's id, and give each control a `text-editor-command`. The editor runs the command, gives focus back to the text and keeps the control's state: `selected` on a toggle, a menu item or a segmented-control item, the list type on a segmented control, and `disabled` where the command cannot run. Controls without the attribute, such as a send button, are left alone. There is no built-in toolbar: which controls, in what order, is the app's. A consumer can also drive formatting itself 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 state-change event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. Enter in a list or a quote puts the next marker down, and Enter on an empty item ends the list, or steps one level out of a nested one. A marker typed where the editor already put one does not stack: `- ` on a fresh `- `, or right after the bullet of an item with text, stays one bullet, `2. ` on `2. ` stays `2. `, `> ` on `> ` one quote. `1. ` on a later number starts a numbered list under the item above, and a marker of the other kind takes the place of the editor's: `1. ` on `- ` makes a numbered list at that level. Spaces typed before a marker nest it one level under the item above, at the indent markdown needs (2 spaces under `- `, 3 under `1. `); Cmd/Ctrl+] does the same. Backspace right after a marker is the way back: a nested item steps one level out, an item on the first level leaves the list. Cmd/Ctrl+Z brings back what was typed. Pasted text and a value the app sets stay as they are. With the marks hidden (the default) a task item (`- [ ]`, `- [x]`) reads as a box in the place of its bullet, and like every other mark shows its markdown on the line the caret is on. A click on the box checks or unchecks it without moving the caret. Cmd/Ctrl+Enter does the same for the tasks on the lines of the selection, in both syntax modes. The box is no tab stop: Tab leaves the editor. A screen reader reads "Taak, open" or "Taak, afgerond" in its place. A code block that names its language after the backticks is highlighted in it, as in nldd-code-viewer; the grammar loads with the first such block. Its opening line is the head of the block, with a "Kopieer" button at the right edge that copies the code without its fences and says "Gekopieerd" or "Kopiëren mislukt", as the code viewer does: the outcome stays while the pointer or the focus is on the button, and goes when you leave it, press Escape or go on in the editor. In an editable editor the button is no tab stop (select and copy is the keyboard route); read-only or disabled it can be focused. Without a secure context there is no button. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. applyChanges(changes) takes text from outside, such as what a collaborator types, without moving the caret or entering the user's undo history. 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. A line indented four spaces stays text, unlike CommonMark, where it starts a code block: in a field for prose that is pasted or indented text, and code takes a fence. That holds whatever the line starts with, so ` - punt` is no list and ` # kop` no heading; in a list the four spaces count from the text of the item. Turn indented code off in the renderer too, so the page shows what the editor showed: `md.disable('code')` in markdown-it and markdown-it-py, for example. Text pasted at the start of a line becomes the markdown it looks like: the indent all its lines share goes, a bullet from Word or Outlook (`•` and a tab) becomes `- `, and a pasted list nests the way typing does (with indent of its own one level under the item above, without it at the level of the empty item it lands on). A list of several lines pasted at the end of a line with text starts on the next line. Cmd/Ctrl+Z brings back the text as pasted, and Cmd/Ctrl+Shift+V pastes it as it is. Nothing changes in a code block. */
4849
4855
  'nldd-text-editor': DefineComponent<NLDDTextEditorProps>;
4850
4856
  'nldd-text-field': DefineComponent<NLDDTextFieldProps>;
4851
4857
  /** A text field for a time. The value is always 24-hour `HH:mm`, which is how Dutch shows it too, so unlike nldd-date-field there is nothing to convert. Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. `value` holds a valid time or nothing, so an empty field and one with text that is no time both read as ''. `validity` tells them apart: `badInput` for text that is no time, `rangeUnderflow` / `rangeOverflow` for a time outside `min` / `max`. A form does not submit then, and nldd-form marks the field invalid. Without a submit, as in a filter that applies at once, the moment is yours: `field.invalid = !field.validity.valid` on `change`, with a message of your own in the nldd-form-field. What you do in the picker is a preview until you leave it. The field shows the time right away but commits it on close. "Klaar" and Enter keep the choice, and so does a click outside once you have picked something. Escape puts the old time back. On sm, where the picker is a bottom sheet, "Klaar" sits in its title bar and the sheet offers no cancel: as with a native wheel, you turn back to change your mind. The built-in wheels show 7 rows, and fewer, down to 3, when the picker would otherwise run off the window; they grow back when the window does. On an empty field the wheels open at `min`, or otherwise at the current time rounded to `step`, which does not fill in the field yet. */
@@ -11,6 +11,13 @@ import { type Compartment, type Extension } from '@codemirror/state';
11
11
  * provide the parent element and the extension set; everything component
12
12
  * specific (form association, public attributes, events) lives there.
13
13
  */
14
+ /** The one range that differs between two texts: what `before` loses from
15
+ * `from` to `to`, and what takes its place. Null when they are the same. */
16
+ export declare function minimalChange(before: string, after: string): {
17
+ from: number;
18
+ to: number;
19
+ insert: string;
20
+ } | null;
14
21
  export declare abstract class NLDDCodeMirrorElement extends LitElement {
15
22
  protected view?: EditorView;
16
23
  /** True once the view has been mounted at least once — drives re-mount on reconnect. */
@@ -41,7 +48,11 @@ export declare abstract class NLDDCodeMirrorElement extends LitElement {
41
48
  */
42
49
  protected getRemountDoc(): string;
43
50
  protected destroyEditor(): void;
44
- /** Replace the whole document (used by the `value` property setter). */
51
+ /** Bring the document to `text` (used by the `value` property setter). Only the
52
+ * range that differs changes, so the selection maps through, and the change
53
+ * stays out of the undo history: it is not the user's to undo. Marked as
54
+ * remote, so nothing treats it as an edit to answer (the list renumbering in
55
+ * nldd-text-editor). */
45
56
  protected setDoc(text: string): void;
46
57
  /** Swap a single compartment at runtime (language, readonly, wrap, …). */
47
58
  protected reconfigure(compartment: Compartment, extension: Extension): void;
@@ -1 +1 @@
1
- {"version":3,"file":"codemirror-element.d.ts","sourceRoot":"","sources":["../../../src/utilities/codemirror/codemirror-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAe,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAElF;;;;;;;;;GASG;AACH,8BAAsB,qBAAsB,SAAQ,UAAU;IAC7D,SAAS,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAE5B,wFAAwF;IACxF,OAAO,CAAC,WAAW,CAAS;IAE5B,+EAA+E;IAC/E,OAAO,CAAC,aAAa,CAAC,CAAS;IAE/B,yDAAyD;IACzD,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,WAAW,GAAG,IAAI,GAAG,SAAS;IAEpE,0DAA0D;IAC1D,SAAS,CAAC,QAAQ,CAAC,eAAe,IAAI,SAAS,EAAE;IAEjD,2DAA2D;IAC3D,SAAS,KAAK,GAAG,IAAI,MAAM,CAE1B;IAED,SAAS,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAmB/C;;;;;;OAMG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,aAAa,IAAI,MAAM;IAIjC,SAAS,CAAC,aAAa,IAAI,IAAI;IAK/B,wEAAwE;IACxE,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,G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AAU,EAAE,MAAM,GAAG,IAAI;IAmB/C;;;;;;OAMG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,aAAa,IAAI,MAAM;IAIjC,SAAS,CAAC,aAAa,IAAI,IAAI;IAK/B;;;;6BAIyB;IACzB,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAOpC,0EAA0E;IAC1E,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAI3E;;;;;OAKG;IACM,KAAK,IAAI,IAAI;IAItB;;;;;;OAMG;IACH,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAajC,iBAAiB,IAAI,IAAI;IAYzB,oBAAoB,IAAI,IAAI;CAOrC"}
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
  import { EditorView } from '@codemirror/view';
3
- import { EditorState } from '@codemirror/state';
3
+ import { EditorState, Transaction } from '@codemirror/state';
4
4
  /**
5
5
  * Shared base for design-system editors built on CodeMirror 6
6
6
  * (nldd-code-editor, nldd-code-viewer, nldd-text-editor).
@@ -11,6 +11,20 @@ import { EditorState } from '@codemirror/state';
11
11
  * provide the parent element and the extension set; everything component
12
12
  * specific (form association, public attributes, events) lives there.
13
13
  */
14
+ /** The one range that differs between two texts: what `before` loses from
15
+ * `from` to `to`, and what takes its place. Null when they are the same. */
16
+ export function minimalChange(before, after) {
17
+ if (before === after)
18
+ return null;
19
+ const max = Math.min(before.length, after.length);
20
+ let start = 0;
21
+ while (start < max && before.charCodeAt(start) === after.charCodeAt(start))
22
+ start++;
23
+ let end = 0;
24
+ while (end < max - start && before.charCodeAt(before.length - 1 - end) === after.charCodeAt(after.length - 1 - end))
25
+ end++;
26
+ return { from: start, to: before.length - end, insert: after.slice(start, after.length - end) };
27
+ }
14
28
  export class NLDDCodeMirrorElement extends LitElement {
15
29
  constructor() {
16
30
  super(...arguments);
@@ -61,12 +75,17 @@ export class NLDDCodeMirrorElement extends LitElement {
61
75
  this.view?.destroy();
62
76
  this.view = undefined;
63
77
  }
64
- /** Replace the whole document (used by the `value` property setter). */
78
+ /** Bring the document to `text` (used by the `value` property setter). Only the
79
+ * range that differs changes, so the selection maps through, and the change
80
+ * stays out of the undo history: it is not the user's to undo. Marked as
81
+ * remote, so nothing treats it as an edit to answer (the list renumbering in
82
+ * nldd-text-editor). */
65
83
  setDoc(text) {
66
84
  const view = this.view;
67
- if (!view || view.state.doc.toString() === text)
85
+ const change = view && minimalChange(view.state.doc.toString(), text);
86
+ if (!view || !change)
68
87
  return;
69
- view.dispatch({ changes: { from: 0, to: view.state.doc.length, insert: text } });
88
+ view.dispatch({ changes: change, annotations: [Transaction.remote.of(true), Transaction.addToHistory.of(false)] });
70
89
  }
71
90
  /** Swap a single compartment at runtime (language, readonly, wrap, …). */
72
91
  reconfigure(compartment, extension) {
@@ -1 +1 @@
1
- {"version":3,"file":"codemirror-element.js","sourceRoot":"","sources":["../../../src/utilities/codemirror/codemirror-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAoC,MAAM,mBAAmB,CAAC;AAElF;;;;;;;;;GASG;AACH,MAAM,OAAgB,qBAAsB,SAAQ,UAAU;IAA9D;;QAGC,wFAAwF;QAChF,gBAAW,GAAG,KAAK,CAAC;IAyH7B,CAAC;IA9GA,2DAA2D;IAC3D,IAAc,GAAG;QAChB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACxD,CAAC;IAES,WAAW,CAAC,UAAkB;QACvC,MAAM,MAAM,GAAG,IAAI,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AAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACpC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;YACvC,IAAI,IAAI,CAAC,IAAI;gBAAE,IAAI,CAAC,eAAe,EAAE,CAAC;QACvC,CAAC;IACF,CAAC;IAEQ,oBAAoB;QAC5B,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,oEAAoE;QACpE,wEAAwE;QACxE,IAAI,IAAI,CAAC,IAAI;YAAE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC;QAC7C,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;CACD"}
@@ -29,6 +29,9 @@ export declare abstract class NLDDCodeMirrorInput extends NLDDCodeMirrorInput_ba
29
29
  /** Says this is the control an nldd-form-field is about, so the field can
30
30
  * find it, name it and move focus into it. See nldd-form-field. */
31
31
  static isFormInput: boolean;
32
+ /** Says you type in this control, so focus moved into it by script keeps
33
+ * its ring after a click too, as a text field does. See focusAsLastInput. */
34
+ static isTextEntry: boolean;
32
35
  value: string;
33
36
  inputId: string;
34
37
  placeholder: string;
@@ -1 +1 @@
1
- {"version":3,"file":"codemirror-input.d.ts","sourceRoot":"","sources":["../../../src/utilities/codemirror/codemirror-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAgC,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAG7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;AAEhE;;;;;;;;;;;;GAYG;AACH,8BAAsB,mBAAoB,SAAQ,wBAAkD;IACnG,OAAgB,iBAAiB;;;;;;;MAG/B;IAEF;wEACoE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,MAAM,EAAE,MAAM,CAAC;IAIrD;oEACgE;IAChE,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAEpD;wDACoD;IACpD,SAAS,CAAC,eAAe,IAAI,SAAS,EAAE;IAoBxC,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,eAAe;IAUvB;6BACyB;IACzB,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAIjC,YAAY,IAAI,IAAI;cAUV,eAAe,IAAI,IAAI;IAOjC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IA+B/C,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,sBAAsB,CAK5B;IAEO,SAAS,IAAI,SAAS;IAI/B,iBAAiB,IAAI,IAAI;IAIzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAItE,qEAAqE;IAC5D,eAAe,IAAI,OAAO,GAAG,IAAI;CAG1C"}
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { LitElement } from 'lit';
8
8
  import { property } from 'lit/decorators.js';
9
9
  import { EditorView, placeholder as cmPlaceholder } from '@codemirror/view';
10
- import { Compartment, EditorState } from '@codemirror/state';
10
+ import { Compartment, EditorState, Transaction } from '@codemirror/state';
11
11
  import { FormAssociated } from '../form-associated-mixin.js';
12
12
  import { reflectNonDefault } from '../reflect-non-default.js';
13
13
  import { DescribedBy } from '../described-by-mixin.js';
@@ -81,7 +81,7 @@ export class NLDDCodeMirrorInput extends DescribedBy(FormAssociated(NLDDCodeMirr
81
81
  this._attrsCompartment.of(this._attrsExtension()),
82
82
  EditorView.updateListener.of((u) => {
83
83
  if (u.docChanged)
84
- this._onDocChanged();
84
+ this._onDocChanged(u.transactions.every((tr) => !tr.docChanged || tr.annotation(Transaction.remote)));
85
85
  }),
86
86
  EditorView.domEventHandlers({
87
87
  focus: () => {
@@ -161,12 +161,20 @@ export class NLDDCodeMirrorInput extends DescribedBy(FormAssociated(NLDDCodeMirr
161
161
  }
162
162
  }
163
163
  }
164
- _onDocChanged() {
164
+ /* A change marked remote came from outside (a value the app set, a
165
+ * collaborator's edit): the value follows, but it is not the user's input.
166
+ * Without an edit of the user's own since focus, it is no change on blur
167
+ * either. */
168
+ _onDocChanged(remote) {
165
169
  const text = this.docToValue(this.doc);
166
170
  if (text === this.value)
167
171
  return;
172
+ if (remote && this.value === this._valueAtFocus)
173
+ this._valueAtFocus = text;
168
174
  this.value = text;
169
175
  this.commitFormValue();
176
+ if (remote)
177
+ return;
170
178
  this.dispatchEvent(new CustomEvent('input', {
171
179
  detail: { value: text },
172
180
  bubbles: true,
@@ -203,6 +211,9 @@ NLDDCodeMirrorInput.shadowRootOptions = {
203
211
  /** Says this is the control an nldd-form-field is about, so the field can
204
212
  * find it, name it and move focus into it. See nldd-form-field. */
205
213
  NLDDCodeMirrorInput.isFormInput = true;
214
+ /** Says you type in this control, so focus moved into it by script keeps
215
+ * its ring after a click too, as a text field does. See focusAsLastInput. */
216
+ NLDDCodeMirrorInput.isTextEntry = true;
206
217
  __decorate([
207
218
  property({ type: String })
208
219
  ], NLDDCodeMirrorInput.prototype, "value", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"codemirror-input.js","sourceRoot":"","sources":["../../../src/utilities/codemirror/codemirror-input.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAkB,MAAM,6BAA6B,CAAC;AAC7E,O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AAGT;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;4DACrC;AAYrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EAq2F7B,CAAC"}
1
+ {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EAy3F7B,CAAC"}
@@ -407,6 +407,11 @@ export const devRules = [
407
407
  "message": "This board is now `nldd-kanban`. Rename the tag, its import and its class, here and on every page.",
408
408
  "context": "nldd-task-board, nldd-column-board"
409
409
  },
410
+ {
411
+ "id": "keyboard-shortcut-appearance-renamed",
412
+ "message": "`appearance=\"box\"` and `appearance=\"simple\"` are now `keycap` and `text`, and the old values do nothing. Rename them here and on every other nldd-keyboard-shortcut.",
413
+ "context": "nldd-keyboard-shortcut:is([appearance=\"box\"], [appearance=\"simple\"])"
414
+ },
410
415
  {
411
416
  "id": "keyboard-shortcut-color-renamed",
412
417
  "message": "`color=\"inherit\"` is now `color=\"content\"`, and the old value does nothing. Rename it here and on every other nldd-keyboard-shortcut.",
@@ -627,6 +632,11 @@ export const devRules = [
627
632
  "min": 2
628
633
  }
629
634
  },
635
+ {
636
+ "id": "multi-line-text-field-button-size-no-effect",
637
+ "message": "The button in the `button` slot has a size of its own, but the field sets it: `sm` in a field of `md`, `xs` in one of `sm`. Leave the size off the button.",
638
+ "context": "nldd-multi-line-text-field:state(own-button-size-overwritten)"
639
+ },
630
640
  {
631
641
  "id": "multi-line-text-field-needs-name",
632
642
  "message": "nldd-multi-line-text-field needs `accessible-label`, `input-id` or a labeled nldd-form-field around it, or it has no accessible name.",
@@ -1069,6 +1079,16 @@ export const devRules = [
1069
1079
  "message": "This custom size is smaller than `display-1` at this breakpoint and shows as `display-1`. Use `size` for text up to `display-1`.",
1070
1080
  "context": "nldd-text:state(custom-size-below-floor)"
1071
1081
  },
1082
+ {
1083
+ "id": "text-editor-command-needs-editor",
1084
+ "message": "A control with `text-editor-command` needs to be inside nldd-text-editor or inside an element with `text-editor-for`, or it drives no editor.",
1085
+ "context": "[text-editor-command]:not([text-editor-command=\"\"])",
1086
+ "assert": "nldd-text-editor [text-editor-command]:not([text-editor-command=\"\"]), [text-editor-for]:not([text-editor-for=\"\"]) [text-editor-command]:not([text-editor-command=\"\"]), [text-editor-for]:not([text-editor-for=\"\"])[text-editor-command]:not([text-editor-command=\"\"])",
1087
+ "properties": [
1088
+ "textEditorCommand",
1089
+ "textEditorFor"
1090
+ ]
1091
+ },
1072
1092
  {
1073
1093
  "id": "text-editor-command-not-found",
1074
1094
  "message": "runCommand() got a name that is not a command.",
@@ -1432,8 +1452,8 @@ export const devRules = [
1432
1452
  },
1433
1453
  {
1434
1454
  "id": "invalid-value-keyboard-shortcut-appearance",
1435
- "message": "`appearance` on nldd-keyboard-shortcut takes: box, simple.",
1436
- "context": "nldd-keyboard-shortcut[appearance]:not([appearance=\"box\"], [appearance=\"simple\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
1455
+ "message": "`appearance` on nldd-keyboard-shortcut takes: keycap, text.",
1456
+ "context": "nldd-keyboard-shortcut[appearance]:not([appearance=\"keycap\"], [appearance=\"text\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
1437
1457
  },
1438
1458
  {
1439
1459
  "id": "invalid-value-keyboard-shortcut-color",