@nldd/design-system 0.25.2 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1 -2
@@ -14,9 +14,16 @@ export const textEditorStyles = css `
14
14
  --_text-editor-caret-ring-color: var(--semantics-surfaces-base-background-color);
15
15
  --_text-editor-corner-radius: var(--primitives-corner-radius-lg);
16
16
  --_text-editor-background-color: var(--semantics-input-fields-background-color);
17
+ --_text-editor-toolbar-background-color: var(--_text-editor-background-color);
18
+ --_text-editor-toolbar-divider: var(--semantics-dividers-thickness) solid var(--semantics-dividers-color);
19
+ --_text-editor-toolbar-padding: var(--primitives-space-8);
20
+ --_text-editor-toolbar-gap: var(--primitives-space-8);
21
+ --_text-editor-toolbar-text-gap: var(--primitives-space-12);
22
+ --_text-editor-stuck-gap: 0px;
17
23
  --_text-editor-input-field-border-color: var(--semantics-input-fields-border-color);
18
24
  --_text-editor-input-field-border-shadow: inset 0 0 0 var(--semantics-input-fields-border-width) var(--_text-editor-input-field-border-color);
19
- --_text-editor-input-field-border-z-index: 1;
25
+ --_text-editor-toolbar-z-index: 1;
26
+ --_text-editor-input-field-border-z-index: 2;
20
27
  --_text-editor-padding-block: var(--semantics-controls-md-inline-padding);
21
28
  --_text-editor-padding-inline: var(--semantics-controls-md-inline-padding);
22
29
  --_text-editor-content-color: var(--semantics-content-color);
@@ -54,7 +61,7 @@ export const textEditorStyles = css `
54
61
  --_text-editor-bullet-color: var(--semantics-content-color);
55
62
  --_text-editor-rule-thickness: var(--semantics-dividers-thickness);
56
63
  --_text-editor-quote-border-width: var(--primitives-border-width-regular);
57
- --_text-editor-quote-border-color: var(--semantics-content-color);
64
+ --_text-editor-quote-border-color: var(--semantics-blockquotes-border-color);
58
65
  --_text-editor-quote-rule: linear-gradient(var(--_text-editor-quote-border-color), var(--_text-editor-quote-border-color));
59
66
  --_text-editor-rule-color: var(--semantics-dividers-color);
60
67
  --_text-editor-heading-marker-scale: 75%;
@@ -164,6 +171,9 @@ export const textEditorStyles = css `
164
171
  --_text-editor-background-color: transparent;
165
172
  --_text-editor-input-field-border-color: transparent;
166
173
  --_text-editor-input-field-border-shadow: none;
174
+ --_text-editor-toolbar-background-color: var(--context-background-color);
175
+ --_text-editor-toolbar-padding: 0px;
176
+ --_text-editor-stuck-gap: var(--_text-editor-toolbar-gap);
167
177
  --_text-editor-padding-block: 0px;
168
178
  /* Room for the caret's own ink at the first and last position of a line:
169
179
  its width plus its ring. Without it the edge carets are clipped. */
@@ -205,6 +215,43 @@ export const textEditorStyles = css `
205
215
  isolation: isolate;
206
216
  }
207
217
 
218
+
219
+ /* # Toolbar */
220
+
221
+ slot[name="toolbar"] {
222
+ display: block;
223
+ order: -1;
224
+ position: sticky;
225
+ top: var(--context-inset-top, 0px);
226
+ z-index: var(--_text-editor-toolbar-z-index);
227
+ border-radius: inherit;
228
+ background-color: var(--_text-editor-toolbar-background-color);
229
+ padding: var(--_text-editor-toolbar-padding);
230
+ border-end-start-radius: 0;
231
+ border-end-end-radius: 0;
232
+ border-block-end: var(--_text-editor-toolbar-divider);
233
+ }
234
+
235
+ slot[name="toolbar"][hidden] {
236
+ display: none;
237
+ }
238
+
239
+ :host([embedded]) slot[name="toolbar"] {
240
+ padding-block-end: var(--_text-editor-toolbar-gap);
241
+ }
242
+
243
+ /* Stuck, the bar keeps a gap to the edge it sticks to, filled with its own
244
+ background so the text scrolls under it. Offset and shadow, not padding:
245
+ the text does not move when it starts to stick. */
246
+ slot[name="toolbar"].is-stuck {
247
+ top: calc(var(--context-inset-top, 0px) + var(--_text-editor-stuck-gap));
248
+ box-shadow: 0 calc(-1 * var(--_text-editor-stuck-gap)) 0 0 var(--_text-editor-toolbar-background-color);
249
+ }
250
+
251
+ :host([embedded]) .text-editor:has(> slot[name="toolbar"]:not([hidden])) .cm-content {
252
+ padding-block-start: var(--_text-editor-toolbar-text-gap);
253
+ }
254
+
208
255
  :host([disabled]) .text-editor {
209
256
  opacity: var(--primitives-opacity-disabled);
210
257
  pointer-events: none;
@@ -1 +1 @@
1
- {"version":3,"file":"text-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwI/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA88BrB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TemplateResult } from 'lit';
2
2
  import type { NLDDTextEditor } from './text-editor.js';
3
- export declare function textEditorTemplate(_component: NLDDTextEditor): TemplateResult;
3
+ export declare function textEditorTemplate(component: NLDDTextEditor): TemplateResult;
4
4
  //# sourceMappingURL=text-editor.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-editor.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,cAAc,GAAG,cAAc,CAI7E"}
1
+ {"version":3,"file":"text-editor.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,cAAc,GAAG,cAAc,CAK5E"}
@@ -1,7 +1,8 @@
1
1
  import { html } from 'lit';
2
- export function textEditorTemplate(_component) {
2
+ export function textEditorTemplate(component) {
3
3
  // CodeMirror mounts into and owns .text-editor; keep this element free of
4
- // Lit expressions so re-renders never touch the editor's own DOM.
5
- return html `<div class="text-editor"></div>`;
4
+ // Lit expressions so re-renders never touch the editor's own DOM. Its view
5
+ // goes in after the slot; CSS puts the toolbar above it.
6
+ return html `<div class="text-editor"><slot name="toolbar" ?hidden=${!component._hasSlottedToolbar}></slot></div>`;
6
7
  }
7
8
  //# sourceMappingURL=text-editor.template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-editor.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAG3C,MAAM,UAAU,kBAAkB,CAAC,UAA0B;IAC5D,0EAA0E;IAC1E,kEAAkE;IAClE,OAAO,IAAI,CAAA,iCAAiC,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"text-editor.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAG3C,MAAM,UAAU,kBAAkB,CAAC,SAAyB;IAC3D,0EAA0E;IAC1E,2EAA2E;IAC3E,yDAAyD;IACzD,OAAO,IAAI,CAAA,yDAAyD,CAAC,SAAS,CAAC,kBAAkB,gBAAgB,CAAC;AACnH,CAAC"}
@@ -0,0 +1,53 @@
1
+ import type { TextEditorState } from './text-editor.commands.js';
2
+ /** What the binding needs of the editor. */
3
+ export interface CommandTarget extends HTMLElement {
4
+ disabled: boolean;
5
+ readonly: boolean;
6
+ getState(): TextEditorState;
7
+ runCommand(name: string, payload?: unknown): void;
8
+ }
9
+ /** `setHeading:2` → `['setHeading', 2]`; a number stays a number. */
10
+ export declare function parseCommand(value: string): [string, unknown];
11
+ export declare class ToolbarBinding {
12
+ readonly target: CommandTarget;
13
+ private readonly focusText;
14
+ /** The list before the press: a second click on the list that is on turns
15
+ * it off. A radio does not change on that click, and a click on another item
16
+ * has already switched the list by the time the click arrives. */
17
+ private _listBeforePress;
18
+ constructor(target: CommandTarget, focusText: () => void);
19
+ connect(): void;
20
+ disconnect(): void;
21
+ /** Every control of this editor, in its slot and in the containers naming it. */
22
+ controls(): Element[];
23
+ private _run;
24
+ /** Called by the document listeners for a control this editor owns. */
25
+ handle(type: string, event: Event, control: Element): void;
26
+ /** Sets `selected`, the value of a segmented control and `disabled` on every
27
+ * control from the editor's state. */
28
+ reflect(state?: TextEditorState): void;
29
+ }
30
+ /** Marks the toolbar slot `is-stuck` while it sticks to the top of its scroll
31
+ * container, so it can take room from that edge without moving the text.
32
+ *
33
+ * Measured, not observed: a slot that sticks has left its place at the edge of
34
+ * the frame, whichever element scrolls. The check runs on any scroll (a capture
35
+ * listener sees every scroll container) and when the editor changes size, once
36
+ * per frame, and only in an embedded editor with a filled slot. */
37
+ export declare class StuckToolbar {
38
+ private readonly host;
39
+ private readonly container;
40
+ private _frame;
41
+ private _resize?;
42
+ private _listening;
43
+ private _gap;
44
+ constructor(host: HTMLElement, container: () => HTMLElement | null);
45
+ private _slot;
46
+ /** Starts or stops watching, after the slot or `embedded` changed. Only an
47
+ * embedded editor keeps a gap while stuck; elsewhere there is nothing to do. */
48
+ update(): void;
49
+ stop(): void;
50
+ private _schedule;
51
+ check(): void;
52
+ }
53
+ //# sourceMappingURL=text-editor.toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAejE,4CAA4C;AAC5C,MAAM,WAAW,aAAc,SAAQ,WAAW;IACjD,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,IAAI,eAAe,CAAC;IAC5B,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAClD;AAID,qEAAqE;AACrE,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAK7D;AAuGD,qBAAa,cAAc;IAMd,QAAQ,CAAC,MAAM,EAAE,aAAa;IAAE,OAAO,CAAC,QAAQ,CAAC,SAAS;IALtE;;uEAEmE;IACnE,OAAO,CAAC,gBAAgB,CAA0B;gBAE7B,MAAM,EAAE,aAAa,EAAmB,SAAS,EAAE,MAAM,IAAI;IAElF,OAAO,IAAI,IAAI;IAOf,UAAU,IAAI,IAAI;IAOlB,iFAAiF;IACjF,QAAQ,IAAI,OAAO,EAAE;IAYrB,OAAO,CAAC,IAAI;IAWZ,uEAAuE;IACvE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IA2C1D;2CACuC;IACvC,OAAO,CAAC,KAAK,GAAE,eAAwC,GAAG,IAAI;CAc9D;AAED;;;;;;oEAMoE;AACpE,qBAAa,YAAY;IAMZ,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAe,OAAO,CAAC,QAAQ,CAAC,SAAS;IAL1E,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,OAAO,CAAC,CAAiB;IACjC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,IAAI,CAAK;gBAEY,IAAI,EAAE,WAAW,EAAmB,SAAS,EAAE,MAAM,WAAW,GAAG,IAAI;IAEpG,OAAO,CAAC,KAAK;IAIb;qFACiF;IACjF,MAAM,IAAI,IAAI;IAgBd,IAAI,IAAI,IAAI;IAQZ,OAAO,CAAC,SAAS,CAMf;IAEF,KAAK,IAAI,IAAI;CAQb"}
@@ -0,0 +1,302 @@
1
+ /* Controls that drive an editor from their markup: `text-editor-command` on a
2
+ * button, a toggle, a menu item or a segmented control, inside the editor (its
3
+ * `toolbar` slot) or inside an element with `text-editor-for` set
4
+ * to the editor's id, anywhere on the page.
5
+ *
6
+ * One listener on the document runs the commands, so a toolbar rendered later
7
+ * needs no wiring. After every change of state the editor looks its controls up
8
+ * again and sets `selected` and `disabled` on them: on the originals in the light
9
+ * DOM, which nldd-toolbar copies into its overflow menu. */
10
+ const COMMAND_ATTR = 'text-editor-command';
11
+ const FOR_ATTR = 'text-editor-for';
12
+ /** `setHeading:2` → `['setHeading', 2]`; a number stays a number. */
13
+ export function parseCommand(value) {
14
+ const at = value.indexOf(':');
15
+ if (at < 0)
16
+ return [value.trim(), undefined];
17
+ const arg = value.slice(at + 1).trim();
18
+ return [value.slice(0, at).trim(), /^\d+$/.test(arg) ? Number(arg) : arg];
19
+ }
20
+ function currentList(state) {
21
+ const { active } = state;
22
+ return active.taskList ? 'task' : active.orderedList ? 'ordered' : active.bulletList ? 'bullet' : 'none';
23
+ }
24
+ const TOGGLES = new Set(['bold', 'italic', 'inlineCode', 'strikethrough', 'link', 'quote', 'codeBlock', 'taskList']);
25
+ /** Whether the command is on at the caret, for a toggle or a menu item. */
26
+ function isActive(name, arg, state) {
27
+ const { active } = state;
28
+ if (TOGGLES.has(name))
29
+ return Boolean(active[name]);
30
+ if (name === 'bulletList')
31
+ return active.bulletList && !active.taskList;
32
+ if (name === 'heading')
33
+ return active.heading === (typeof arg === 'number' ? arg : 1);
34
+ if (name === 'setHeading')
35
+ return !active.codeBlock && active.heading === (typeof arg === 'number' ? arg : 0);
36
+ if (name === 'setList')
37
+ return !active.codeBlock && currentList(state) === (arg ?? 'none');
38
+ return false;
39
+ }
40
+ // Formatting inside code is literal text: the inline formats are off in any
41
+ // code, the block formats in a code block. A text style stays, as the way out.
42
+ const INLINE = new Set(['bold', 'italic', 'strikethrough', 'link']);
43
+ const BLOCK = new Set(['inlineCode', 'quote', 'bulletList', 'taskList', 'setList', 'heading']);
44
+ /** Whether the command can run now. */
45
+ function canRun(name, target, state) {
46
+ if (target.disabled)
47
+ return false;
48
+ if (target.readonly)
49
+ return name === 'copy';
50
+ const { active } = state;
51
+ if (INLINE.has(name))
52
+ return !active.inlineCode && !active.codeBlock;
53
+ if (BLOCK.has(name))
54
+ return !active.codeBlock;
55
+ switch (name) {
56
+ case 'undo': return state.canUndo;
57
+ case 'redo': return state.canRedo;
58
+ case 'indent': return state.canIndent;
59
+ case 'outdent': return state.canOutdent;
60
+ case 'copy':
61
+ case 'cut': return !state.empty;
62
+ default: return true;
63
+ }
64
+ }
65
+ const tag = (el) => el.tagName.toLowerCase();
66
+ /** The element itself, then its ancestors, across shadow boundaries. */
67
+ function* ancestry(el) {
68
+ let node = el;
69
+ while (node) {
70
+ if (node instanceof Element)
71
+ yield node;
72
+ node = node.parentNode ?? (node instanceof ShadowRoot ? node.host : null);
73
+ }
74
+ }
75
+ /** A copy nldd-toolbar made for its overflow menu: the toolbar sends its
76
+ * `select` on to the original, so the copy itself is not a control. */
77
+ function isOverflowCopy(el) {
78
+ const root = el.getRootNode();
79
+ return root instanceof ShadowRoot && tag(root.host) === 'nldd-toolbar';
80
+ }
81
+ /* One set of listeners on the document for every editor: an event finds its
82
+ * control once, and only the editor that owns it answers. */
83
+ const bindings = new Set();
84
+ /** The nearest element with a command along the event's path. An editor on the
85
+ * way ends the search: what is inside it is not a control of an editor above. */
86
+ function controlOf(event) {
87
+ for (const node of event.composedPath()) {
88
+ if (!(node instanceof Element))
89
+ continue;
90
+ if (tag(node) === 'nldd-text-editor')
91
+ return null;
92
+ if (node.hasAttribute(COMMAND_ATTR))
93
+ return isOverflowCopy(node) ? null : node;
94
+ }
95
+ return null;
96
+ }
97
+ /** The binding of the editor `el` belongs to: the one a container names, or,
98
+ * in none, the editor it sits in. */
99
+ function ownerOf(el) {
100
+ for (const node of ancestry(el)) {
101
+ const id = node.getAttribute(FOR_ATTR);
102
+ if (id !== null) {
103
+ if (id === '')
104
+ return undefined;
105
+ for (const binding of bindings)
106
+ if (binding.target.id === id)
107
+ return binding;
108
+ return undefined;
109
+ }
110
+ for (const binding of bindings)
111
+ if (binding.target === node)
112
+ return binding;
113
+ }
114
+ return undefined;
115
+ }
116
+ function listen(type) {
117
+ return (event) => {
118
+ const control = controlOf(event);
119
+ const owner = control && ownerOf(control);
120
+ owner?.handle(type, event, control);
121
+ };
122
+ }
123
+ const LISTENERS = ['click', 'change', 'select', 'pointerdown', 'keydown'].map((type) => [type, listen(type)]);
124
+ // Capture for the moment before a control answers: a click switches the list first.
125
+ const CAPTURE = new Set(['pointerdown', 'keydown']);
126
+ export class ToolbarBinding {
127
+ constructor(target, focusText) {
128
+ this.target = target;
129
+ this.focusText = focusText;
130
+ /** The list before the press: a second click on the list that is on turns
131
+ * it off. A radio does not change on that click, and a click on another item
132
+ * has already switched the list by the time the click arrives. */
133
+ this._listBeforePress = null;
134
+ }
135
+ connect() {
136
+ if (bindings.size === 0) {
137
+ for (const [type, listener] of LISTENERS)
138
+ document.addEventListener(type, listener, CAPTURE.has(type));
139
+ }
140
+ bindings.add(this);
141
+ }
142
+ disconnect() {
143
+ bindings.delete(this);
144
+ if (bindings.size === 0) {
145
+ for (const [type, listener] of LISTENERS)
146
+ document.removeEventListener(type, listener, CAPTURE.has(type));
147
+ }
148
+ }
149
+ /** Every control of this editor, in its slot and in the containers naming it. */
150
+ controls() {
151
+ const own = [...this.target.querySelectorAll(`[${COMMAND_ATTR}]`)];
152
+ const id = this.target.id;
153
+ const elsewhere = id
154
+ ? [...document.querySelectorAll(`[${FOR_ATTR}="${CSS.escape(id)}"]`)].flatMap((box) => [
155
+ ...(box.hasAttribute(COMMAND_ATTR) ? [box] : []),
156
+ ...box.querySelectorAll(`[${COMMAND_ATTR}]`),
157
+ ])
158
+ : [];
159
+ return [...own, ...elsewhere].filter((el) => ownerOf(el) === this);
160
+ }
161
+ _run(value) {
162
+ const [name, arg] = parseCommand(value);
163
+ // A code block is its own block type: a text style steps out of it first,
164
+ // which makes "Paragraaf" the way out of a code block.
165
+ if (name === 'setHeading' && this.target.getState().active.codeBlock)
166
+ this.target.runCommand('codeBlock');
167
+ // The state-change that follows sets the controls.
168
+ this.target.runCommand(name, arg);
169
+ // After a menu has given focus back to its button.
170
+ queueMicrotask(this.focusText);
171
+ }
172
+ /** Called by the document listeners for a control this editor owns. */
173
+ handle(type, event, control) {
174
+ const kind = tag(control);
175
+ const [name] = parseCommand(control.getAttribute(COMMAND_ATTR));
176
+ switch (type) {
177
+ case 'pointerdown':
178
+ case 'keydown': {
179
+ // A press by pointer, or by Enter or Space on the keyboard.
180
+ if (type === 'keydown' && !['Enter', ' '].includes(event.key))
181
+ return;
182
+ this._listBeforePress = kind === 'nldd-segmented-control' ? currentList(this.target.getState()) : null;
183
+ return;
184
+ }
185
+ case 'click': {
186
+ // A menu item answers with `select`.
187
+ if (kind === 'nldd-menu-item')
188
+ return;
189
+ if (kind === 'nldd-segmented-control') {
190
+ // A segmented control answers with `change`, except a second press on
191
+ // the list that is on, which turns it off.
192
+ const item = event.target.closest?.('nldd-segmented-control-item');
193
+ if (name === 'setList' && item?.value && item.value !== 'none' && item.value === this._listBeforePress)
194
+ this._run('setList:none');
195
+ this._listBeforePress = null;
196
+ return;
197
+ }
198
+ this._run(control.getAttribute(COMMAND_ATTR));
199
+ return;
200
+ }
201
+ case 'change': {
202
+ if (kind !== 'nldd-segmented-control')
203
+ return;
204
+ const value = control.value;
205
+ if (value)
206
+ this._run(`${name}:${value}`);
207
+ return;
208
+ }
209
+ case 'select': {
210
+ if (kind !== 'nldd-menu-item')
211
+ return;
212
+ const value = control.getAttribute(COMMAND_ATTR);
213
+ // Choosing the radio that is on changes nothing, as in any radio group:
214
+ // "Codeblok" in a code block keeps it.
215
+ const [, arg] = parseCommand(value);
216
+ if (control.getAttribute('type') === 'radio' && isActive(name, arg, this.target.getState()))
217
+ return;
218
+ this._run(value);
219
+ }
220
+ }
221
+ }
222
+ /** Sets `selected`, the value of a segmented control and `disabled` on every
223
+ * control from the editor's state. */
224
+ reflect(state = this.target.getState()) {
225
+ for (const el of this.controls()) {
226
+ const [name, arg] = parseCommand(el.getAttribute(COMMAND_ATTR));
227
+ const kind = tag(el);
228
+ el.toggleAttribute('disabled', !canRun(name, this.target, state));
229
+ if (kind === 'nldd-segmented-control') {
230
+ if (name === 'setList')
231
+ el.value = currentList(state);
232
+ continue;
233
+ }
234
+ if (kind === 'nldd-toggle-button' || kind === 'nldd-menu-item' || kind === 'nldd-segmented-control-item') {
235
+ el.toggleAttribute('selected', isActive(name, arg, state));
236
+ }
237
+ }
238
+ }
239
+ }
240
+ /** Marks the toolbar slot `is-stuck` while it sticks to the top of its scroll
241
+ * container, so it can take room from that edge without moving the text.
242
+ *
243
+ * Measured, not observed: a slot that sticks has left its place at the edge of
244
+ * the frame, whichever element scrolls. The check runs on any scroll (a capture
245
+ * listener sees every scroll container) and when the editor changes size, once
246
+ * per frame, and only in an embedded editor with a filled slot. */
247
+ export class StuckToolbar {
248
+ constructor(host, container) {
249
+ this.host = host;
250
+ this.container = container;
251
+ this._frame = 0;
252
+ this._listening = false;
253
+ this._gap = 0;
254
+ this._schedule = () => {
255
+ if (this._frame)
256
+ return;
257
+ this._frame = requestAnimationFrame(() => {
258
+ this._frame = 0;
259
+ this.check();
260
+ });
261
+ };
262
+ }
263
+ _slot() {
264
+ return this.container()?.querySelector('slot[name="toolbar"]') ?? null;
265
+ }
266
+ /** Starts or stops watching, after the slot or `embedded` changed. Only an
267
+ * embedded editor keeps a gap while stuck; elsewhere there is nothing to do. */
268
+ update() {
269
+ const slot = this._slot();
270
+ const watch = Boolean(slot && !slot.hidden) && this.host.hasAttribute('embedded');
271
+ if (!watch)
272
+ slot?.classList.remove('is-stuck');
273
+ if (watch && !this._listening) {
274
+ this._gap = parseFloat(getComputedStyle(slot).getPropertyValue('--_text-editor-stuck-gap')) || 0;
275
+ document.addEventListener('scroll', this._schedule, { capture: true, passive: true });
276
+ this._resize = new ResizeObserver(this._schedule);
277
+ this._resize.observe(this.host);
278
+ this._listening = true;
279
+ }
280
+ else if (!watch && this._listening) {
281
+ this.stop();
282
+ }
283
+ this._schedule();
284
+ }
285
+ stop() {
286
+ document.removeEventListener('scroll', this._schedule, { capture: true });
287
+ this._resize?.disconnect();
288
+ cancelAnimationFrame(this._frame);
289
+ this._frame = 0;
290
+ this._listening = false;
291
+ }
292
+ check() {
293
+ const slot = this._slot();
294
+ if (!slot || !this._listening)
295
+ return;
296
+ const moved = slot.getBoundingClientRect().top - this.container().getBoundingClientRect().top;
297
+ // Stuck, the bar sits a gap further from the edge: that alone is no reason to stay stuck.
298
+ const gap = slot.classList.contains('is-stuck') ? this._gap : 0;
299
+ slot.classList.toggle('is-stuck', moved > gap + 0.5);
300
+ }
301
+ }
302
+ //# sourceMappingURL=text-editor.toolbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-editor.toolbar.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.toolbar.ts"],"names":[],"mappings":"AAEA;;;;;;;;4DAQ4D;AAE5D,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAC3C,MAAM,QAAQ,GAAG,iBAAiB,CAAC;AAYnC,qEAAqE;AACrE,MAAM,UAAU,YAAY,CAAC,KAAa;IACzC,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,EAAE,GAAG,CAAC;QAAE,OAAO,CAAC,KAA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AC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAChE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;IACtD,CAAC;CACD"}
@@ -24,13 +24,14 @@
24
24
  * @attr {number} minlength - Fewest characters the value may have.
25
25
  * @attr {number} maxlength - Most characters the value may have.
26
26
  *
27
- * @slot button - One `nldd-button` or `nldd-icon-button` at the end of the field, for the one action of a form that is only this field: sign up with an email address, redeem a code. The field sets its `size`, `sm` in a field of `md` and `xs` in one of `sm`, so it sits inside the border; a `size` of your own is overwritten. A disabled field disables the button too. Give it `type="submit"` in a form, and its own `text`. A form with more fields keeps its buttons in `nldd-form-actions`.
27
+ * @slot button - One `nldd-button`, `nldd-icon-button` or `nldd-toggle-button` at the end of the field: the one action of a form that is only this field (sign up with an email address, redeem a code), or an aid for filling in the field, such as an `nldd-toggle-button` that starts and stops dictation. The field passes on its corner, so the button's corners follow the field's. The field sets its `size`, `sm` in a field of `md` and `xs` in one of `sm`, so it sits inside the border; a `size` of your own is overwritten. A disabled field disables the button too. Give it `type="submit"` in a form, and its own `text`. A form with more fields keeps its buttons in `nldd-form-actions`.
28
28
  *
29
29
  * @fires input - When input value changes
30
30
  * @fires change - When input value is committed
31
31
  */
32
32
  import { LitElement, type PropertyValues } from 'lit';
33
33
  import { type FormValue } from '../../../utilities/form-associated-mixin.js';
34
+ import { FieldButtonController } from '../../../utilities/field-button-controller.js';
34
35
  export type InputType = 'text' | 'email' | 'tel' | 'url';
35
36
  /** The tokens `inputmode` and `enterkeyhint` accept. Arrays, so one list types
36
37
  * the property and answers at runtime: a value outside it is dropped by the
@@ -53,6 +54,9 @@ export declare class NLDDTextField extends NLDDTextField_base {
53
54
  /** Says this is the control an nldd-form-field is about, so the field can
54
55
  * find it, name it and move focus into it. See nldd-form-field. */
55
56
  static isFormInput: boolean;
57
+ /** Says you type in this control, so focus moved into it by script keeps
58
+ * its ring after a click too, as a text field does. See focusAsLastInput. */
59
+ static isTextEntry: boolean;
56
60
  /** Counts for the implicit-submission rule: a single-line field where Enter
57
61
  * would submit the form. See utilities/implicit-submission.ts. */
58
62
  static blocksImplicitSubmission: boolean;
@@ -79,8 +83,8 @@ export declare class NLDDTextField extends NLDDTextField_base {
79
83
  /** Optional fixed width (any CSS length). When unset, the field stretches to fill its container. */
80
84
  width: string;
81
85
  private _input;
82
- /** Whether the `button` slot holds anything, so an empty one reserves no space. */
83
- _hasButton: boolean;
86
+ /** @internal The `button` slot: its size, its disabled state, and whether it is filled. */
87
+ _button: FieldButtonController;
84
88
  /** Regular expression the value has to match, as the native `pattern`. */
85
89
  pattern: string;
86
90
  /** Fewest characters the value may have, as the native `minlength`. */
@@ -93,16 +97,6 @@ export declare class NLDDTextField extends NLDDTextField_base {
93
97
  * with a different one gives a field that says "email" and shows digits,
94
98
  * which is never what was meant. */
95
99
  private _syncKeyboardConflict;
96
- /** The size a slotted button gets: one step below the field, so it fits inside the border. */
97
- get buttonSize(): 'sm' | 'xs';
98
- private _buttons;
99
- /** Buttons whose size the field has set, so a size of their own can be told apart. */
100
- private _sized;
101
- private _sizeButton;
102
- /** Buttons this field disabled, so it only enables what it disabled itself. */
103
- private _disabledButtons;
104
- private _disableButton;
105
- _handleButtonSlotChange(): void;
106
100
  formValue(): FormValue;
107
101
  formResetCallback(): void;
108
102
  formStateRestoreCallback(state: File | string | FormData | null): void;
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/text-field/text-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAS7F,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GA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