@nldd/design-system 0.26.5 → 0.27.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 (441) hide show
  1. package/custom-elements.json +428 -37
  2. package/dist/cdn/autoloader.js +141 -141
  3. package/dist/cdn/chunks/{accordion-qXirmNBj.js → accordion-DBM4AcGb.js} +4 -4
  4. package/dist/cdn/chunks/{accordion-item-BXEHwzcv.js → accordion-item-D90CmJyl.js} +4 -4
  5. package/dist/cdn/chunks/{activity-indicator-DP61AhsJ.js → activity-indicator-B6m9h0oa.js} +5 -5
  6. package/dist/cdn/chunks/{admonition-RnRSNAri.js → admonition-B-YTkCjn.js} +4 -4
  7. package/dist/cdn/chunks/after-parse-BSKUm67Q.js +9 -0
  8. package/dist/cdn/chunks/{avatar-DsexiOhH.js → avatar-CfBP9UZZ.js} +75 -41
  9. package/dist/cdn/chunks/{avatar-group-BrfrpXvd.js → avatar-group-DW_xMwb_.js} +71 -49
  10. package/dist/cdn/chunks/{badge-BiQFOq2l.js → badge-DnAuIhp1.js} +5 -5
  11. package/dist/cdn/chunks/{banner-42zIYAEN.js → banner-CRk2ARtC.js} +7 -7
  12. package/dist/cdn/chunks/{bar-split-view-CjYEp276.js → bar-split-view-DDgOYs7Z.js} +28 -21
  13. package/dist/cdn/chunks/{blockquote-qf4hJYvm.js → blockquote-DlfhBScg.js} +3 -3
  14. package/dist/cdn/chunks/{box-CWyg7sbR.js → box-DdU13yI4.js} +3 -3
  15. package/dist/cdn/chunks/{breadcrumbs-BaHjYdz8.js → breadcrumbs-CqkR_6XN.js} +5 -5
  16. package/dist/cdn/chunks/{button-bar-DeJ81759.js → button-bar-BKkap9nk.js} +3 -3
  17. package/dist/cdn/chunks/{button-group-CuRkiHR5.js → button-group-D-YTmErV.js} +2 -2
  18. package/dist/cdn/chunks/{button-CKV-jwGY.js → button-muXGJHlo.js} +8 -8
  19. package/dist/cdn/chunks/{card-DxeUNE3V.js → card-Dvqz83fC.js} +4 -4
  20. package/dist/cdn/chunks/{cell-QaG8b-Qk.js → cell-C0O8tZbX.js} +6 -6
  21. package/dist/cdn/chunks/{checkbox-V0YerUKf.js → checkbox-CNWROiHV.js} +5 -5
  22. package/dist/cdn/chunks/{checkbox-field-DeySECgv.js → checkbox-field-DCYpRJfz.js} +7 -7
  23. package/dist/cdn/chunks/{checkbox-group-DFNy1y-A.js → checkbox-group-DxWAYp_b.js} +3 -3
  24. package/dist/cdn/chunks/{class-map-CmgI2Tu-.js → class-map-D720ceWJ.js} +1 -1
  25. package/dist/cdn/chunks/{code-editor-BBMbUJ4d.js → code-editor-DlnTXkHx.js} +5 -5
  26. package/dist/cdn/chunks/{code-viewer-B8jse0-5.js → code-viewer-DyJzo36-.js} +94 -87
  27. package/dist/cdn/chunks/{codemirror-input-BEotDTtZ.js → codemirror-input-DPSOMYZ4.js} +5 -5
  28. package/dist/cdn/chunks/{collection-DRoS7Ona.js → collection-i7H8zkQ8.js} +61 -42
  29. package/dist/cdn/chunks/{combo-box-DA1ZQJJS.js → combo-box-CpNl_us0.js} +20 -14
  30. package/dist/cdn/chunks/{container-F1i2pmko.js → container-YWW7mHNa.js} +14 -10
  31. package/dist/cdn/chunks/{custom-element-DD4ffKRs.js → custom-element-D8yf5dqU.js} +1 -1
  32. package/dist/cdn/chunks/{date-field-DVgisQnm.js → date-field-DzhUp4Rk.js} +12 -12
  33. package/dist/cdn/chunks/{date-picker-BaDTota3.js → date-picker-CGvsvK3g.js} +21 -15
  34. package/dist/cdn/chunks/{decorate-CeGXihRM.js → decorate-1aEyfetK.js} +1 -1
  35. package/dist/cdn/chunks/{described-by-mixin-qFatR9dF.js → described-by-mixin-DffYoaxu.js} +2 -2
  36. package/dist/cdn/chunks/{description-cell-D45N4P1X.js → description-cell-DEw6xc2o.js} +6 -6
  37. package/dist/cdn/chunks/{dev-checks-CkCD0tPh.js → dev-checks-CTopJcdE.js} +12 -0
  38. package/dist/cdn/chunks/{directive-helpers-B9pcQxsE.js → directive-helpers-BQml5ahH.js} +1 -1
  39. package/dist/cdn/chunks/{dist-BS_pQgb6.js → dist-B5t9fS8q.js} +2 -2
  40. package/dist/cdn/chunks/{dist-DjlGttcc.js → dist-B87Ag4L-.js} +1 -1
  41. package/dist/cdn/chunks/{dist-v62GtoI6.js → dist-BKnqQxdv.js} +1 -1
  42. package/dist/cdn/chunks/{dist-Dsyc1RGG.js → dist-BYbLHkMP.js} +1 -1
  43. package/dist/cdn/chunks/{dist-Cl-rXzh7.js → dist-C8ZY_QIK.js} +1 -1
  44. package/dist/cdn/chunks/{dist-v7yvd26H.js → dist-CIX4JLW1.js} +3 -3
  45. package/dist/cdn/chunks/{dist-DJQUgOKW.js → dist-Cr8NctvS.js} +3 -3
  46. package/dist/cdn/chunks/{dist-mxb0NzAU.js → dist-D59Ae7dj.js} +1 -1
  47. package/dist/cdn/chunks/{dist-n8aCu6Kg.js → dist-DAf6EMuK.js} +2 -2
  48. package/dist/cdn/chunks/{dist-rjQNj-KZ.js → dist-DevfJ4Mu.js} +2 -2
  49. package/dist/cdn/chunks/{dist-jTL_Kil1.js → dist-qHSPGfTO.js} +1 -1
  50. package/dist/cdn/chunks/{divider-CtMx3Byp.js → divider-44rkHLYj.js} +2 -2
  51. package/dist/cdn/chunks/{document-tab-bar-SKSf69FX.js → document-tab-bar-CcSKzhEy.js} +95 -56
  52. package/dist/cdn/chunks/{dropdown-se1zjYlw.js → dropdown-CJPjI-p1.js} +5 -5
  53. package/dist/cdn/chunks/{file-field-DW_Xt5O3.js → file-field-B4HQKpkI.js} +14 -14
  54. package/dist/cdn/chunks/{form-actions-Cy5tH1nk.js → form-actions-HaBfh6vm.js} +2 -2
  55. package/dist/cdn/chunks/{form-associated-mixin-CA0F9CPx.js → form-associated-mixin-BByNH679.js} +2 -2
  56. package/dist/cdn/chunks/{form-field-BMWm8VGS.js → form-field-CwYXsuvv.js} +6 -6
  57. package/dist/cdn/chunks/{form-C9-eW3zc.js → form-obggZEpt.js} +1 -1
  58. package/dist/cdn/chunks/{form-section-DrrXc4wZ.js → form-section-B2UZx_-z.js} +1 -1
  59. package/dist/cdn/chunks/frame-pass-C0RUoFMc.js +17 -0
  60. package/dist/cdn/chunks/{full-bleed-section-6QL0av4x.js → full-bleed-section-BSnWghWY.js} +9 -10
  61. package/dist/cdn/chunks/{hero-BThWV3MR.js → hero-CzbuEAUM.js} +73 -68
  62. package/dist/cdn/chunks/{icon-CVM6X_F1.js → icon-CkCT7sPE.js} +2 -2
  63. package/dist/cdn/chunks/{icon-button-h_sEz0Ia.js → icon-button-BBGwCfYp.js} +9 -9
  64. package/dist/cdn/chunks/{icon-cell-C3Ygercd.js → icon-cell-DcHnXV-8.js} +5 -5
  65. package/dist/cdn/chunks/{identity-BR0KxjM5.js → identity-C0fujsxK.js} +6 -6
  66. package/dist/cdn/chunks/{if-defined-CvQli6P0.js → if-defined-CL4nn-Q-.js} +1 -1
  67. package/dist/cdn/chunks/{image-D8H73DIj.js → image-BgtqLXfM.js} +8 -8
  68. package/dist/cdn/chunks/{inline-dialog-Dlu3bneh.js → inline-dialog-BYRIWhkm.js} +6 -6
  69. package/dist/cdn/chunks/{just-in-time-education-DG0teV5g.js → just-in-time-education-DwH3ubhZ.js} +5 -5
  70. package/dist/cdn/chunks/{kanban-MNLyqki_.js → kanban-BIZUoBj-.js} +35 -30
  71. package/dist/cdn/chunks/{kanban-column-CGF_4Q0N.js → kanban-column-CtjCIgaR.js} +37 -25
  72. package/dist/cdn/chunks/{keyboard-shortcut-DZDtndhS.js → keyboard-shortcut-BHylGMNu.js} +3 -3
  73. package/dist/cdn/chunks/{languages-BCn4J5Ck.js → languages-DghCYmiz.js} +12 -12
  74. package/dist/cdn/chunks/layout-pass-Cq85kSHX.js +45 -0
  75. package/dist/cdn/chunks/{link-CTj3dTmJ.js → link-S53veJpD.js} +6 -6
  76. package/dist/cdn/chunks/{link-group--C486tYV.js → link-group-B2_vdANe.js} +2 -2
  77. package/dist/cdn/chunks/{list-DApLHKj-.js → list-C8hY4uGW.js} +48 -34
  78. package/dist/cdn/chunks/{list-item-BN9uuvXr.js → list-item-CK1Rli4F.js} +5 -6
  79. package/dist/cdn/chunks/{list-item-segment-CvdZT9Ni.js → list-item-segment-KyrcOFDA.js} +3 -3
  80. package/dist/cdn/chunks/{menu-bar-g-O3_TNl.js → menu-bar-BRoqy5zp.js} +62 -46
  81. package/dist/cdn/chunks/{menu-bar-item-tOFEx-lS.js → menu-bar-item-DKW198ZW.js} +6 -6
  82. package/dist/cdn/chunks/{menu-divider-Dmv0lMHV.js → menu-divider-DDPBPK-o.js} +3 -3
  83. package/dist/cdn/chunks/{menu-group-Ci9QUUwZ.js → menu-group-uZXsE-uu.js} +4 -4
  84. package/dist/cdn/chunks/{menu-item-BnIbV4yo.js → menu-item-BOvb4QLd.js} +16 -12
  85. package/dist/cdn/chunks/{menu-2-9LtMLY.js → menu-m67vk1Z4.js} +20 -19
  86. package/dist/cdn/chunks/{menu.template-sPjaMfc8.js → menu.template-v6VnRUNJ.js} +105 -76
  87. package/dist/cdn/chunks/{modal-dialog-D-jAbabe.js → modal-dialog-BNq0r-1L.js} +4 -4
  88. package/dist/cdn/chunks/{multi-line-text-field-uBZqAdr6.js → multi-line-text-field-Bfq47I3P.js} +6 -6
  89. package/dist/cdn/chunks/{navigation-split-view-DARbBPq-.js → navigation-split-view-BiPoxCLL.js} +59 -47
  90. package/dist/cdn/chunks/{notification-CntIGoYh.js → notification-DjZXBv4J.js} +6 -6
  91. package/dist/cdn/chunks/{number-field-C0MTabLP.js → number-field-tqoQLrgZ.js} +8 -8
  92. package/dist/cdn/chunks/{one-half-one-half-section-DYzf6LtU.js → one-half-one-half-section-CyIm21PD.js} +15 -16
  93. package/dist/cdn/chunks/{one-third-two-thirds-section-AAiaxCHH.js → one-third-two-thirds-section-CpnK0vzB.js} +15 -16
  94. package/dist/cdn/chunks/{one-time-code-field-CCILuCy1.js → one-time-code-field-6sMEfzoY.js} +103 -64
  95. package/dist/cdn/chunks/{overflow-menu-DFoh3xL_.js → overflow-menu-IfYEX8tm.js} +1 -1
  96. package/dist/cdn/chunks/{page-footer-BsVMZCXs.js → page-footer-ET6j1N2Z.js} +4 -4
  97. package/dist/cdn/chunks/{page-section-mixin-L0bl3wCm.js → page-section-mixin-D9JL2q9A.js} +3 -3
  98. package/dist/cdn/chunks/{page-BDXLREou.js → page-w4XAfBWD.js} +76 -54
  99. package/dist/cdn/chunks/{pagination-DLwbSZdO.js → pagination-D7QFUu8x.js} +6 -6
  100. package/dist/cdn/chunks/{password-field-DKTJgEyb.js → password-field-Ck5wx6pg.js} +8 -8
  101. package/dist/cdn/chunks/{popover-RB7uLASo.js → popover-DOmi5m85.js} +5 -5
  102. package/dist/cdn/chunks/{progress-bar-DnXWbmiw.js → progress-bar-BDNcB06i.js} +10 -7
  103. package/dist/cdn/chunks/{progress-circle-S89MUtU8.js → progress-circle-BAMztpb3.js} +10 -7
  104. package/dist/cdn/chunks/{radio-button-B31lAjlk.js → radio-button-DAps6n0Q.js} +92 -51
  105. package/dist/cdn/chunks/{radio-button-field-BF4MHiOQ.js → radio-button-field-BbPk0nM_.js} +8 -7
  106. package/dist/cdn/chunks/{radio-button-group-BQUqV8wJ.js → radio-button-group-lxzwku00.js} +3 -3
  107. package/dist/cdn/chunks/{render-marked-ChJNzktf.js → render-marked-ClMFyNu0.js} +1 -1
  108. package/dist/cdn/chunks/{reorder-handle-cell-SEERkeh7.js → reorder-handle-cell-Cap2u2zx.js} +4 -4
  109. package/dist/cdn/chunks/{reorder-handle-mixin-tWe9XTjZ.js → reorder-handle-mixin-CnRKPVqU.js} +2 -2
  110. package/dist/cdn/chunks/{repeat-CdCK17GF.js → repeat-CIyCvHHQ.js} +2 -2
  111. package/dist/cdn/chunks/{rich-text-vVWOndD2.js → rich-text-CblFmHY-.js} +3 -3
  112. package/dist/cdn/chunks/{row-header-mixin-6MoJ5Mjq.js → row-header-mixin-C8z9StDU.js} +2 -2
  113. package/dist/cdn/chunks/{scroll-fade-Cr7_IXpU.js → scroll-fade-C_L9CJrR.js} +2 -2
  114. package/dist/cdn/chunks/scroll-mode-controller-Dl5hddJo.js +52 -0
  115. package/dist/cdn/chunks/{search-field-C9urWH_J.js → search-field-JeUPcBjZ.js} +10 -10
  116. package/dist/cdn/chunks/{segmented-control-DkILAMOJ.js → segmented-control-DtycvVyp.js} +7 -7
  117. package/dist/cdn/chunks/{shadow-resets-9v6K-Fie.js → shadow-resets-DgR56wQK.js} +2 -2
  118. package/dist/cdn/chunks/{sheet-D89xI-KY.js → sheet-XtRs26hN.js} +3 -3
  119. package/dist/cdn/chunks/{shell-CFmfUD0_.js → shell-CCaEEGna.js} +4 -4
  120. package/dist/cdn/chunks/{side-by-side-split-view-ir9c0mwZ.js → side-by-side-split-view-mhXD4Lde.js} +38 -29
  121. package/dist/cdn/chunks/{sidebar-section-BhJXels3.js → sidebar-section-Cwd4LSE6.js} +70 -48
  122. package/dist/cdn/chunks/{simple-section-CMoYuLYV.js → simple-section-BuiaCGks.js} +9 -10
  123. package/dist/cdn/chunks/{skip-link-rUQq0D-l.js → skip-link-nTlmioFt.js} +4 -4
  124. package/dist/cdn/chunks/{slider-CIQqjKUo.js → slider-C0rNQEIY.js} +9 -9
  125. package/dist/cdn/chunks/{spacer-CD85egxE.js → spacer-CeSO9CP1.js} +2 -2
  126. package/dist/cdn/chunks/{spacer-cell-B33mGdru.js → spacer-cell-NhlxEdhA.js} +4 -4
  127. package/dist/cdn/chunks/{split-button-COL7r-wa.js → split-button-BR-ccA6_.js} +7 -7
  128. package/dist/cdn/chunks/{split-view-divider-DVBuBzeO.js → split-view-divider-HcIV0yli.js} +2 -2
  129. package/dist/cdn/chunks/{split-view-pane-CSvIzeBg.js → split-view-pane-BgFUL3BV.js} +4 -4
  130. package/dist/cdn/chunks/{stacked-split-view-onSk2QEi.js → stacked-split-view-j77p3uE2.js} +29 -25
  131. package/dist/cdn/chunks/{static-html-Cyhp44gp.js → static-html-CGoLwgpW.js} +1 -1
  132. package/dist/cdn/chunks/{status-bar-CjYXOQAX.js → status-bar-ByJ21hV2.js} +29 -17
  133. package/dist/cdn/chunks/{step-bar-D-To0TEw.js → step-bar-CRxF0S42.js} +5 -5
  134. package/dist/cdn/chunks/{step-cell-B7sVGixc.js → step-cell-C-gOxNA6.js} +5 -5
  135. package/dist/cdn/chunks/{stepper-h6boMOhz.js → stepper-Dmljb7Qc.js} +7 -7
  136. package/dist/cdn/chunks/{style-map-BrdTV34-.js → style-map-CK811FGv.js} +1 -1
  137. package/dist/cdn/chunks/{swatch-picker-gQ3m3y9U.js → swatch-picker-DtAgTXLo.js} +6 -6
  138. package/dist/cdn/chunks/{switch-DC-BTi9E.js → switch-Bqion92b.js} +5 -5
  139. package/dist/cdn/chunks/{switch-field-D82mLobj.js → switch-field-CWobTcEn.js} +6 -6
  140. package/dist/cdn/chunks/{tab-bar-sKiFzvfj.js → tab-bar-DPtRjP8Z.js} +85 -49
  141. package/dist/cdn/chunks/{table-CuxZfCZD.js → table-C4CFiDgr.js} +111 -54
  142. package/dist/cdn/chunks/{tag-DP_ome5l.js → tag-Bo23A60g.js} +4 -4
  143. package/dist/cdn/chunks/{term-BdiTV-Jk.js → term-DPMEWR-t.js} +12 -12
  144. package/dist/cdn/chunks/{text-C-b1ygHI.js → text-CuiMvMZQ.js} +3 -3
  145. package/dist/cdn/chunks/{text-cell-DfRh7JqZ.js → text-cell-E3yc99xw.js} +8 -8
  146. package/dist/cdn/chunks/{text-editor-DuT9Rrpv.js → text-editor-BVmHiq_b.js} +191 -191
  147. package/dist/cdn/chunks/{text-field-kAbXzkUj.js → text-field-DOv1aI_F.js} +6 -6
  148. package/dist/cdn/chunks/{time-field-DUz9ifmn.js → time-field-BhlLk6tt.js} +14 -14
  149. package/dist/cdn/chunks/{time-picker-DGOKwC9T.js → time-picker-A4-HeVas.js} +170 -99
  150. package/dist/cdn/chunks/{title-BA-SUyAq.js → title-EMt-SYKV.js} +4 -4
  151. package/dist/cdn/chunks/{title-cell-Cu5NFNUu.js → title-cell--EE-L_8a.js} +8 -8
  152. package/dist/cdn/chunks/{toggle-button-J6UapeqB.js → toggle-button-BLwpxmQs.js} +8 -8
  153. package/dist/cdn/chunks/{toggle-button-group-wrps-tL9.js → toggle-button-group-scdxolJt.js} +2 -2
  154. package/dist/cdn/chunks/{token-DJkyJz-k.js → token-DVgXuCRO.js} +5 -5
  155. package/dist/cdn/chunks/{token-field-SiBFPD8-.js → token-field-CICQXLlO.js} +12 -12
  156. package/dist/cdn/chunks/toolbar-Des2gaH2.js +441 -0
  157. package/dist/cdn/chunks/{toolbar-item-DPizdgYi.js → toolbar-item-CkwQ2UyY.js} +3 -3
  158. package/dist/cdn/chunks/{toolbar-title-CB4IJFGv.js → toolbar-title-PoOf794l.js} +4 -4
  159. package/dist/cdn/chunks/{toolbar.styles-vmMPyzS_.js → toolbar.styles-DzreUGTp.js} +3 -3
  160. package/dist/cdn/chunks/{tooltip-Bg2ovCCg.js → tooltip-CMCT2iiD.js} +4 -4
  161. package/dist/cdn/chunks/{top-navigation-bar-vA8wpJXS.js → top-navigation-bar-BfMGgTIy.js} +121 -104
  162. package/dist/cdn/chunks/{top-title-bar-BAJGmgnj.js → top-title-bar-CvvldlNt.js} +43 -30
  163. package/dist/cdn/chunks/{translations-Cjd13Xb6.js → translations-C5JpcNNC.js} +1 -1
  164. package/dist/cdn/chunks/{two-thirds-one-third-section-D1FvorKO.js → two-thirds-one-third-section-BTkeIiHm.js} +15 -16
  165. package/dist/cdn/chunks/{validation-list-D3rKnfTu.js → validation-list-BasB3ZaT.js} +3 -3
  166. package/dist/cdn/chunks/{visibility-mixin-BRMACV1l.js → visibility-mixin-BxhcJG-x.js} +2 -2
  167. package/dist/cdn/chunks/{visually-hidden-BukWRiJA.js → visually-hidden-ByHY8pKl.js} +2 -2
  168. package/dist/cdn/chunks/{window-C9njVzzK.js → window-B5blEfMR.js} +4 -4
  169. package/dist/cdn/chunks/{with-translations-BLzHPSUF.js → with-translations-QDhHJYMT.js} +3 -3
  170. package/dist/components/actions/menu/menu-item.d.ts +11 -0
  171. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  172. package/dist/components/actions/menu/menu-item.js +28 -13
  173. package/dist/components/actions/menu/menu-item.js.map +1 -1
  174. package/dist/components/actions/menu/menu.d.ts +6 -0
  175. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  176. package/dist/components/actions/menu/menu.js +14 -4
  177. package/dist/components/actions/menu/menu.js.map +1 -1
  178. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  179. package/dist/components/actions/menu/menu.styles.js +63 -3
  180. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  181. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  182. package/dist/components/actions/menu/menu.template.js +18 -47
  183. package/dist/components/actions/menu/menu.template.js.map +1 -1
  184. package/dist/components/actions/toolbar/toolbar.d.ts +56 -16
  185. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  186. package/dist/components/actions/toolbar/toolbar.js +263 -95
  187. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  188. package/dist/components/actions/toolbar/toolbar.steps.d.ts +16 -0
  189. package/dist/components/actions/toolbar/toolbar.steps.d.ts.map +1 -0
  190. package/dist/components/actions/toolbar/toolbar.steps.js +33 -0
  191. package/dist/components/actions/toolbar/toolbar.steps.js.map +1 -0
  192. package/dist/components/content/avatar/avatar.d.ts +22 -10
  193. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  194. package/dist/components/content/avatar/avatar.js +122 -29
  195. package/dist/components/content/avatar/avatar.js.map +1 -1
  196. package/dist/components/content/avatar-group/avatar-group.d.ts +25 -10
  197. package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
  198. package/dist/components/content/avatar-group/avatar-group.js +97 -26
  199. package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
  200. package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
  201. package/dist/components/content/avatar-group/avatar-group.template.js +5 -4
  202. package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
  203. package/dist/components/content/code-viewer/code-viewer.d.ts +4 -2
  204. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  205. package/dist/components/content/code-viewer/code-viewer.js +35 -32
  206. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  207. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  208. package/dist/components/forms/form-field/form-field.js +4 -0
  209. package/dist/components/forms/form-field/form-field.js.map +1 -1
  210. package/dist/components/inputs/combo-box/combo-box.d.ts +8 -0
  211. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  212. package/dist/components/inputs/combo-box/combo-box.js +28 -9
  213. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  214. package/dist/components/inputs/date-picker/date-picker.d.ts +11 -0
  215. package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
  216. package/dist/components/inputs/date-picker/date-picker.js +23 -0
  217. package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
  218. package/dist/components/inputs/date-picker/date-picker.template.d.ts.map +1 -1
  219. package/dist/components/inputs/date-picker/date-picker.template.js +4 -2
  220. package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
  221. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  222. package/dist/components/inputs/file-field/file-field.js +6 -1
  223. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  224. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +27 -5
  225. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  226. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +128 -30
  227. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  228. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  229. package/dist/components/inputs/radio-button/radio-button.js +5 -2
  230. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  231. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
  232. package/dist/components/inputs/radio-button-field/radio-button-field.js +5 -2
  233. package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
  234. package/dist/components/inputs/text-editor/text-editor.annotations.js +1 -1
  235. package/dist/components/inputs/text-editor/text-editor.annotations.js.map +1 -1
  236. package/dist/components/inputs/text-editor/text-editor.js +2 -2
  237. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  238. package/dist/components/inputs/text-editor/text-editor.selection.js +1 -1
  239. package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -1
  240. package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -1
  241. package/dist/components/inputs/text-editor/text-editor.toolbar.js +18 -12
  242. package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -1
  243. package/dist/components/inputs/time-picker/time-picker.d.ts +23 -0
  244. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  245. package/dist/components/inputs/time-picker/time-picker.js +132 -12
  246. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  247. package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
  248. package/dist/components/inputs/time-picker/time-picker.styles.js +27 -6
  249. package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
  250. package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
  251. package/dist/components/inputs/time-picker/time-picker.template.js +1 -0
  252. package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
  253. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
  254. package/dist/components/inputs/token-field/token-field.js +3 -0
  255. package/dist/components/inputs/token-field/token-field.js.map +1 -1
  256. package/dist/components/layout/collection/collection.d.ts +9 -1
  257. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  258. package/dist/components/layout/collection/collection.js +96 -38
  259. package/dist/components/layout/collection/collection.js.map +1 -1
  260. package/dist/components/layout/container/container.d.ts +1 -0
  261. package/dist/components/layout/container/container.d.ts.map +1 -1
  262. package/dist/components/layout/container/container.js +22 -16
  263. package/dist/components/layout/container/container.js.map +1 -1
  264. package/dist/components/layout/kanban/kanban-column.d.ts +7 -2
  265. package/dist/components/layout/kanban/kanban-column.d.ts.map +1 -1
  266. package/dist/components/layout/kanban/kanban-column.js +49 -17
  267. package/dist/components/layout/kanban/kanban-column.js.map +1 -1
  268. package/dist/components/layout/kanban/kanban.d.ts +4 -1
  269. package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
  270. package/dist/components/layout/kanban/kanban.js +25 -7
  271. package/dist/components/layout/kanban/kanban.js.map +1 -1
  272. package/dist/components/layout/kanban/kanban.template.js +1 -1
  273. package/dist/components/layout/kanban/kanban.template.js.map +1 -1
  274. package/dist/components/layout/page/page.d.ts +39 -12
  275. package/dist/components/layout/page/page.d.ts.map +1 -1
  276. package/dist/components/layout/page/page.js +112 -66
  277. package/dist/components/layout/page/page.js.map +1 -1
  278. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +3 -1
  279. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
  280. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -1
  281. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
  282. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
  283. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +6 -7
  284. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
  285. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
  286. package/dist/components/layout/page-sections/hero/hero-corner.js +24 -1
  287. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
  288. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +22 -22
  289. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
  290. package/dist/components/layout/page-sections/hero/hero.d.ts +2 -0
  291. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  292. package/dist/components/layout/page-sections/hero/hero.js +2 -0
  293. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  294. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  295. package/dist/components/layout/page-sections/hero/hero.styles.js +8 -11
  296. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  297. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +4 -2
  298. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
  299. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +4 -2
  300. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
  301. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
  302. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +12 -13
  303. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  304. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +4 -2
  305. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
  306. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +4 -2
  307. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
  308. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
  309. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +12 -13
  310. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  311. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +12 -9
  312. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  313. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +66 -21
  314. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  315. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
  316. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +23 -17
  317. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
  318. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -1
  319. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +5 -0
  320. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
  321. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +4 -3
  322. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
  323. package/dist/components/layout/page-sections/simple-section/simple-section.js +4 -3
  324. package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
  325. package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
  326. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +6 -7
  327. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
  328. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -2
  329. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
  330. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +4 -2
  331. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
  332. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
  333. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +12 -13
  334. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  335. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +2 -1
  336. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  337. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +30 -17
  338. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  339. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +8 -3
  340. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
  341. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +35 -20
  342. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
  343. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +1 -1
  344. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +6 -2
  345. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
  346. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +30 -15
  347. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
  348. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +1 -1
  349. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +6 -3
  350. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
  351. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +28 -16
  352. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
  353. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +1 -1
  354. package/dist/components/lists-and-tables/list/list.d.ts +19 -0
  355. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  356. package/dist/components/lists-and-tables/list/list.js +47 -15
  357. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  358. package/dist/components/lists-and-tables/list/list.roving.d.ts +2 -1
  359. package/dist/components/lists-and-tables/list/list.roving.d.ts.map +1 -1
  360. package/dist/components/lists-and-tables/list/list.roving.js +7 -3
  361. package/dist/components/lists-and-tables/list/list.roving.js.map +1 -1
  362. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  363. package/dist/components/lists-and-tables/list-item/list-item.styles.js +0 -1
  364. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  365. package/dist/components/lists-and-tables/table/table.d.ts +34 -6
  366. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  367. package/dist/components/lists-and-tables/table/table.js +143 -40
  368. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  369. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  370. package/dist/components/lists-and-tables/table/table.styles.js +13 -0
  371. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  372. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
  373. package/dist/components/lists-and-tables/table/table.template.js +6 -0
  374. package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
  375. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +33 -2
  376. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  377. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +136 -38
  378. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  379. package/dist/components/navigation/menu-bar/menu-bar.d.ts +21 -3
  380. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  381. package/dist/components/navigation/menu-bar/menu-bar.js +61 -29
  382. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  383. package/dist/components/navigation/tab-bar/tab-bar.d.ts +26 -4
  384. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  385. package/dist/components/navigation/tab-bar/tab-bar.js +99 -24
  386. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  387. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  388. package/dist/components/navigation/tab-bar/tab-bar.template.js +1 -0
  389. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  390. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +23 -14
  391. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  392. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +126 -83
  393. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  394. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +28 -28
  395. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  396. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +5 -1
  397. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  398. package/dist/components/navigation/top-title-bar/top-title-bar.js +36 -13
  399. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  400. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -0
  401. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
  402. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +6 -0
  403. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  404. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -0
  405. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
  406. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +6 -0
  407. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  408. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +0 -1
  409. package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
  410. package/dist/components/status-and-feedback/status-bar/status-bar.js +26 -6
  411. package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
  412. package/dist/nldd.min.js +880 -814
  413. package/dist/types/react.d.ts +8 -8
  414. package/dist/types/vue.d.ts +8 -8
  415. package/dist/utilities/after-parse.d.ts +30 -0
  416. package/dist/utilities/after-parse.d.ts.map +1 -0
  417. package/dist/utilities/after-parse.js +44 -0
  418. package/dist/utilities/after-parse.js.map +1 -0
  419. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  420. package/dist/utilities/dev-rules.generated.js +12 -0
  421. package/dist/utilities/dev-rules.generated.js.map +1 -1
  422. package/dist/utilities/frame-pass.d.ts +28 -0
  423. package/dist/utilities/frame-pass.d.ts.map +1 -0
  424. package/dist/utilities/frame-pass.js +41 -0
  425. package/dist/utilities/frame-pass.js.map +1 -0
  426. package/dist/utilities/layout-pass.d.ts +49 -0
  427. package/dist/utilities/layout-pass.d.ts.map +1 -0
  428. package/dist/utilities/layout-pass.js +103 -0
  429. package/dist/utilities/layout-pass.js.map +1 -0
  430. package/dist/utilities/radio-grouping.d.ts +30 -4
  431. package/dist/utilities/radio-grouping.d.ts.map +1 -1
  432. package/dist/utilities/radio-grouping.js +98 -17
  433. package/dist/utilities/radio-grouping.js.map +1 -1
  434. package/dist/utilities/scroll-mode-controller.d.ts +13 -6
  435. package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
  436. package/dist/utilities/scroll-mode-controller.js +47 -21
  437. package/dist/utilities/scroll-mode-controller.js.map +1 -1
  438. package/lint/data.generated.json +1 -1
  439. package/package.json +1 -1
  440. package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +0 -42
  441. package/dist/cdn/chunks/toolbar-be8hoSAz.js +0 -364
@@ -1,17 +1,18 @@
1
- import { n as e, r as t, s as n } from "./custom-element-DD4ffKRs.js";
1
+ import { n as e, r as t, s as n } from "./custom-element-D8yf5dqU.js";
2
2
  import { t as r } from "./reflect-non-default-Bu3rpCvg.js";
3
- import { B as i, F as a, M as o, Q as s, V as c, W as l, et as u, i as d, it as f, j as p, k as m, r as h, t as ee } from "./languages-BCn4J5Ck.js";
4
- import { t as te } from "./custom-element-BW8Ua4c7.js";
5
- import { o as g, r as _, t as v } from "./decorate-CeGXihRM.js";
6
- import { t as y } from "./shadow-resets-9v6K-Fie.js";
7
- import { t as b } from "./code-viewer.i18n-BHfSDRbK.js";
8
- import "./icon-button-h_sEz0Ia.js";
9
- import { n as x } from "./tooltip-Bg2ovCCg.js";
10
- import { t as S } from "./translations-Cjd13Xb6.js";
3
+ import { B as i, F as a, M as o, Q as s, V as c, W as l, et as u, i as d, it as f, j as p, k as m, r as h, t as g } from "./languages-DghCYmiz.js";
4
+ import { t as _ } from "./custom-element-BW8Ua4c7.js";
5
+ import { o as v, r as y, t as b } from "./decorate-1aEyfetK.js";
6
+ import { t as ee } from "./shadow-resets-DgR56wQK.js";
7
+ import { t as te } from "./code-viewer.i18n-BHfSDRbK.js";
8
+ import "./icon-button-BBGwCfYp.js";
9
+ import { n as x } from "./tooltip-CMCT2iiD.js";
10
+ import { t as S } from "./translations-C5JpcNNC.js";
11
11
  import { r as C } from "./element-state-B-44fVqq.js";
12
12
  import { t as w } from "./defer-focus-F73ud2D9.js";
13
+ import { n as T, t as E } from "./layout-pass-Cq85kSHX.js";
13
14
  // src/components/content/code-viewer/code-viewer.styles.ts
14
- var T = n`
15
+ var D = n`
15
16
  :host {
16
17
  box-sizing: border-box;
17
18
  }
@@ -53,7 +54,7 @@ var T = n`
53
54
  --_code-viewer-gutter-border-width: var(--semantics-dividers-thickness);
54
55
  --_code-viewer-gutter-border-color: var(--semantics-dividers-color);
55
56
 
56
- ${y}
57
+ ${ee}
57
58
  display: flex;
58
59
  max-width: 100%;
59
60
  position: relative;
@@ -373,9 +374,9 @@ var T = n`
373
374
  }
374
375
  `;
375
376
  // src/components/content/code-viewer/code-viewer.template.ts
376
- function E(e) {
377
+ function ne(e) {
377
378
  let t = e._copyState, n = t === "success" ? e._t("components.code-viewer.copy-success-text") : t === "failure" ? e._t("components.code-viewer.copy-failure-text") : e._t("components.code-viewer.copy-action"), r = n, i = t === "success" ? e._t("components.code-viewer.copy-success-text") : t === "failure" ? e._t("components.code-viewer.copy-failure-text") : "", a = e._diffSummary;
378
- return g`<div class="code-viewer">${a ? g`<div class="code-viewer__diff-summary">${a}</div>` : _}<div class="code-viewer__codemirror"></div><slot @slotchange=${e._onSlotChange}></slot>${e._canCopy ? g`
379
+ return v`<div class="code-viewer">${a ? v`<div class="code-viewer__diff-summary">${a}</div>` : y}<div class="code-viewer__codemirror"></div><slot @slotchange=${e._onSlotChange}></slot>${e._canCopy ? v`
379
380
  <div class="code-viewer__actions">
380
381
  <div class="code-viewer__copy-button">
381
382
  <nldd-tooltip
@@ -403,26 +404,26 @@ function E(e) {
403
404
  aria-live="polite"
404
405
  >${i}</div>
405
406
  </div>
406
- ` : _}</div>`;
407
+ ` : y}</div>`;
407
408
  }
408
409
  // src/components/content/code-viewer/code-viewer.diff.ts
409
- var D = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/, O = /^(diff |index |--- |\+\+\+ |new file|deleted file|similarity |rename |old mode|new mode)/;
410
- function k(e) {
410
+ var O = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/, k = /^(diff |index |--- |\+\+\+ |new file|deleted file|similarity |rename |old mode|new mode)/;
411
+ function re(e) {
411
412
  let t = 0;
412
- for (; t < e.length && O.test(e[t]);) t++;
413
+ for (; t < e.length && k.test(e[t]);) t++;
413
414
  let n = e.slice(0, t);
414
415
  return n.some((e, t) => e.startsWith("--- ") && n[t + 1]?.startsWith("+++ ")) ? e.slice(t) : e;
415
416
  }
416
- function A(e) {
417
- let t = e.replace(/\r\n?/g, "\n").replace(/\n$/, "").split("\n"), n = t.some((e) => D.test(e)), r = n ? t : k(t), i = [], a = 1, o = 1, s = n ? 0 : Infinity, c = n ? 0 : Infinity, l = null, u = 0, d = 0, f = !1, p = 0;
417
+ function ie(e) {
418
+ let t = e.replace(/\r\n?/g, "\n").replace(/\n$/, "").split("\n"), n = t.some((e) => O.test(e)), r = n ? t : re(t), i = [], a = 1, o = 1, s = n ? 0 : Infinity, c = n ? 0 : Infinity, l = null, u = 0, d = 0, f = !1, p = 0;
418
419
  for (let e of r) {
419
- let t = D.exec(e);
420
+ let t = O.exec(e);
420
421
  if (t) {
421
422
  a = Number(t[1]), s = t[2] === void 0 ? 1 : Number(t[2]), o = Number(t[3]), c = t[4] === void 0 ? 1 : Number(t[4]), l = e, f = !0;
422
423
  continue;
423
424
  }
424
425
  if (s <= 0 && c <= 0) {
425
- f && e !== "" && !e.startsWith("\\") && !O.test(e) && p++;
426
+ f && e !== "" && !e.startsWith("\\") && !k.test(e) && p++;
426
427
  continue;
427
428
  }
428
429
  if (e.startsWith("\\")) continue;
@@ -455,7 +456,7 @@ function A(e) {
455
456
  dropped: p
456
457
  };
457
458
  }
458
- function j(e) {
459
+ function A(e) {
459
460
  let t = [], n = 0;
460
461
  for (; n < e.length;) {
461
462
  if (e[n].kind !== "removed") {
@@ -470,7 +471,7 @@ function j(e) {
470
471
  }
471
472
  return t;
472
473
  }
473
- var M = class extends o {
474
+ var j = class extends o {
474
475
  constructor(e) {
475
476
  super(), this.text = e;
476
477
  }
@@ -480,14 +481,14 @@ var M = class extends o {
480
481
  toDOM() {
481
482
  return document.createTextNode(this.text);
482
483
  }
483
- }, N = class extends o {
484
+ }, M = class extends o {
484
485
  constructor(e) {
485
486
  super(), this.className = e, this.elementClass = e;
486
487
  }
487
488
  eq(e) {
488
489
  return e.className === this.className;
489
490
  }
490
- }, P = class extends a {
491
+ }, N = class extends a {
491
492
  constructor(e) {
492
493
  super(), this.text = e;
493
494
  }
@@ -498,7 +499,7 @@ var M = class extends o {
498
499
  let e = document.createElement("span");
499
500
  return e.className = "cm-diff-line-label", e.textContent = `${this.text}: `, e;
500
501
  }
501
- }, F = class extends a {
502
+ }, P = class extends a {
502
503
  constructor(e) {
503
504
  super(), this.header = e;
504
505
  }
@@ -509,45 +510,45 @@ var M = class extends o {
509
510
  let e = document.createElement("div");
510
511
  return e.className = "cm-diff-hunk", e.setAttribute("aria-hidden", "true"), e.textContent = this.header, e;
511
512
  }
512
- }, I = {
513
+ }, F = {
513
514
  added: "cm-diff-added",
514
515
  removed: "cm-diff-removed",
515
516
  context: "cm-diff-context"
516
- }, L = {
517
+ }, I = {
517
518
  added: "+",
518
519
  removed: "−",
519
520
  context: ""
520
521
  };
521
- function R(e) {
522
+ function L(e) {
522
523
  let t = [], n = 0;
523
524
  for (let r of e) t.push(n), n += r.text.length + 1;
524
525
  return t;
525
526
  }
526
- function z(e, t) {
527
+ function R(e, t) {
527
528
  let { lines: n } = e;
528
529
  if (n.length === 0) return [];
529
- let r = R(n), a = [], o = [];
530
+ let r = L(n), a = [], o = [];
530
531
  n.forEach((e, n) => {
531
532
  let i = r[n];
532
533
  e.hunk && a.push(m.widget({
533
- widget: new F(e.hunk),
534
+ widget: new P(e.hunk),
534
535
  block: !0,
535
536
  side: -1
536
- }).range(i)), a.push(m.line({ class: I[e.kind] }).range(i)), e.kind === "added" && a.push(m.widget({
537
- widget: new P(t.addedLine(e.newNumber)),
537
+ }).range(i)), a.push(m.line({ class: F[e.kind] }).range(i)), e.kind === "added" && a.push(m.widget({
538
+ widget: new N(t.addedLine(e.newNumber)),
538
539
  side: -1
539
540
  }).range(i)), e.kind === "removed" && a.push(m.widget({
540
- widget: new P(t.removedLine(e.oldNumber)),
541
+ widget: new N(t.removedLine(e.oldNumber)),
541
542
  side: -1
542
- }).range(i)), o.push(new N(I[e.kind]).range(i));
543
+ }).range(i)), o.push(new M(F[e.kind]).range(i));
543
544
  });
544
545
  let s = (e, t) => n[e.state.doc.lineAt(t.from).number - 1], l = (e) => String(n.reduce((t, n) => Math.max(t, e(n) ?? 0), 0)), u = (e, t) => i({
545
546
  class: `cm-diff-gutter cm-diff-${e}-gutter`,
546
547
  lineMarker: (e, n) => {
547
548
  let r = s(e, n), i = r ? t(r) : null;
548
- return i === null ? null : new M(String(i));
549
+ return i === null ? null : new j(String(i));
549
550
  },
550
- initialSpacer: () => new M(l(t))
551
+ initialSpacer: () => new j(l(t))
551
552
  });
552
553
  return [
553
554
  p.decorations.of(m.set(a, !0)),
@@ -558,51 +559,56 @@ function z(e, t) {
558
559
  class: "cm-diff-gutter cm-diff-sign-gutter",
559
560
  lineMarker: (e, t) => {
560
561
  let n = s(e, t);
561
- return n && n.kind !== "context" ? new M(L[n.kind]) : null;
562
+ return n && n.kind !== "context" ? new j(I[n.kind]) : null;
562
563
  },
563
- initialSpacer: () => new M("+")
564
+ initialSpacer: () => new j("+")
564
565
  })
565
566
  ];
566
567
  }
567
- var B = .5, V = m.mark({ class: "cm-diff-removed-word" }), H = m.mark({ class: "cm-diff-added-word" });
568
- async function U(e) {
569
- let t = j(e.lines);
568
+ var z = .5, B = m.mark({ class: "cm-diff-removed-word" }), V = m.mark({ class: "cm-diff-added-word" });
569
+ async function H(e) {
570
+ let t = A(e.lines);
570
571
  if (t.length === 0) return [];
571
- let { presentableDiff: n } = await import("./dist-BTUxFM2V.js"), r = R(e.lines), i = [];
572
+ let { presentableDiff: n } = await import("./dist-BTUxFM2V.js"), r = L(e.lines), i = [];
572
573
  for (let [a, o] of t) {
573
574
  let t = e.lines[a].text, s = e.lines[o].text, c = n(t, s);
574
- if (c.length !== 0 && !(c.reduce((e, t) => e + t.toA - t.fromA, 0) + c.reduce((e, t) => e + t.toB - t.fromB, 0) > (t.length + s.length) * B)) for (let e of c) e.toA > e.fromA && i.push(V.range(r[a] + e.fromA, r[a] + e.toA)), e.toB > e.fromB && i.push(H.range(r[o] + e.fromB, r[o] + e.toB));
575
+ if (c.length !== 0 && !(c.reduce((e, t) => e + t.toA - t.fromA, 0) + c.reduce((e, t) => e + t.toB - t.fromB, 0) > (t.length + s.length) * z)) for (let e of c) e.toA > e.fromA && i.push(B.range(r[a] + e.fromA, r[a] + e.toA)), e.toB > e.fromB && i.push(V.range(r[o] + e.fromB, r[o] + e.toB));
575
576
  }
576
577
  return i.length ? p.decorations.of(m.set(i, !0)) : [];
577
578
  }
578
579
  // src/utilities/color-scheme-repaint.ts
579
- var W = /* @__PURE__ */ new Set(), G = null;
580
- function K() {
581
- G || (G = new MutationObserver((e) => {
580
+ var U = /* @__PURE__ */ new Set(), W = null;
581
+ function G() {
582
+ W || (W = new MutationObserver((e) => {
582
583
  for (let t of e) if (t.attributeName === "data-scheme") {
583
- for (let e of W) e();
584
+ for (let e of U) e();
584
585
  return;
585
586
  }
586
- }), G.observe(document.documentElement, {
587
+ }), W.observe(document.documentElement, {
587
588
  attributes: !0,
588
589
  attributeFilter: ["data-scheme"]
589
590
  }));
590
591
  }
591
- function q(e) {
592
- return K(), W.add(e), () => {
593
- W.delete(e), W.size === 0 && (G?.disconnect(), G = null);
592
+ function K(e) {
593
+ return G(), U.add(e), () => {
594
+ U.delete(e), U.size === 0 && (W?.disconnect(), W = null);
594
595
  };
595
596
  }
596
- function J(e) {
597
+ function q(e) {
597
598
  let t = e.scrollLeft, n = e.scrollTop, r = e.style.display;
598
599
  e.style.display = "none", e.offsetHeight, e.style.display = r, e.scrollLeft = t, e.scrollTop = n;
599
600
  }
600
601
  // src/components/content/code-viewer/code-viewer.ts
601
- var Y, X = 300, Z = 2e3;
602
+ var J;
603
+ function Y(e) {
604
+ let t = e.filter((e) => e.isConnected), n = t.map((e) => e._measureScrollable());
605
+ t.forEach((e, t) => e._applyScrollable(n[t]));
606
+ }
607
+ var X = new E(Y), Z = T(Y), ae = 300, oe = 2e3;
602
608
  function Q() {
603
609
  return typeof window < "u" && window.isSecureContext === !0 && typeof navigator < "u" && typeof navigator.clipboard?.writeText == "function";
604
610
  }
605
- var $ = (Y = class extends d {
611
+ var $ = (J = class extends d {
606
612
  constructor(...e) {
607
613
  super(...e), this.appearance = "box-tinted", this.language = "", this.diff = !1, this.lineNumbers = !1, this.noCopy = !1, this.wrap = !1, this.maxHeight = "", this._copyUnavailable = !1, this.translations = {}, this._isScrollable = !1, this._copyState = "idle", this._languageCompartment = new s(), this._wrapCompartment = new s(), this._diffCompartment = new s(), this._wordCompartment = new s(), this._lineNumbersCompartment = new s(), this._languagePending = Promise.resolve(), this._wordsPending = Promise.resolve(), this._parsedDiff = null, this._copyPointerType = "", this._onCopyScroll = () => {
608
614
  clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0, this._copyState = "idle";
@@ -632,7 +638,7 @@ var $ = (Y = class extends d {
632
638
  ];
633
639
  }
634
640
  render() {
635
- return E(this);
641
+ return ne(this);
636
642
  }
637
643
  focus(e) {
638
644
  if (w(this, e)) return;
@@ -643,13 +649,13 @@ var $ = (Y = class extends d {
643
649
  return this._parseDiff(this._getRawText()), this._parsedDiff?.doc ?? this._getRawText();
644
650
  }
645
651
  _parseDiff(e) {
646
- this._parsedDiff = this.diff ? A(e) : null, C(this, "diff-lines-dropped", (this._parsedDiff?.dropped ?? 0) > 0);
652
+ this._parsedDiff = this.diff ? ie(e) : null, C(this, "diff-lines-dropped", (this._parsedDiff?.dropped ?? 0) > 0);
647
653
  }
648
654
  connectedCallback() {
649
- super.connectedCallback(), this._unsubscribeScheme = q(() => this._repaint());
655
+ super.connectedCallback(), this._unsubscribeScheme = K(() => this._repaint());
650
656
  }
651
657
  disconnectedCallback() {
652
- super.disconnectedCallback(), this._unsubscribeScheme?.(), this._unsubscribeScheme = void 0, this._resizeObserver?.disconnect(), this._resizeObserver = void 0, this._mutationObserver?.disconnect(), this._mutationObserver = void 0, this._scrollableRaf !== void 0 && (cancelAnimationFrame(this._scrollableRaf), this._scrollableRaf = void 0), clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0, this._stopCopyScroll?.(), this._stopCopyScroll = void 0;
658
+ super.disconnectedCallback(), this._unsubscribeScheme?.(), this._unsubscribeScheme = void 0, Z.unobserveAll(this), X.cancel(this), this._mutationObserver?.disconnect(), this._mutationObserver = void 0, clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0, this._stopCopyScroll?.(), this._stopCopyScroll = void 0;
653
659
  }
654
660
  firstUpdated() {
655
661
  this._copyUnavailable = !this.noCopy && !Q(), this._parseDiff(this._getRawText()), this.mountEditor(this._parsedDiff?.doc ?? this._getRawText()), this.onEditorMounted();
@@ -663,9 +669,7 @@ var $ = (Y = class extends d {
663
669
  }
664
670
  onEditorMounted() {
665
671
  let e = this.view?.scrollDOM;
666
- e && (this._resizeObserver?.disconnect(), this._resizeObserver = new ResizeObserver((e) => {
667
- e.every((e) => e.contentRect.width === 0) || this._scheduleUpdateScrollable();
668
- }), this._resizeObserver.observe(e)), this._observeSlotText(), this.language && this._applyLanguage(), this._applyWords(), this._updateScrollable();
672
+ e && (Z.unobserveAll(this), Z.observe(e, this)), this._observeSlotText(), this.language && this._applyLanguage(), this._applyWords(), this._scheduleUpdateScrollable();
669
673
  }
670
674
  updated(e) {
671
675
  e.has("_copyState") && (this._stopCopyScroll?.(), this._stopCopyScroll = this._copyState === "idle" ? void 0 : x(this, this._onCopyScroll)), e.has("noCopy") && (this._copyUnavailable = !this.noCopy && !Q()), e.has("maxHeight") && (this.maxHeight && CSS.supports("max-height", this.maxHeight) ? this.style.setProperty("--_code-viewer-max-height", this.maxHeight) : this.style.removeProperty("--_code-viewer-max-height"), C(this, "invalid-max-height", !!this.maxHeight && !CSS.supports("max-height", this.maxHeight))), this.view && (this._isScrollable && this.view.scrollDOM.setAttribute("aria-label", this._t("components.code-viewer.region-label")), e.has("language") && this._applyLanguage(), e.has("diff") && e.get("diff") !== void 0 && this._applyContent(), (e.has("lineNumbers") && e.get("lineNumbers") !== void 0 || e.has("diff") && e.get("diff") !== void 0) && this.reconfigure(this._lineNumbersCompartment, this._lineNumbersExtension()), e.has("translations") && e.get("translations") !== void 0 && this._parsedDiff && this.reconfigure(this._diffCompartment, this._diffExtension(this._parsedDiff)), e.has("wrap") && (this.reconfigure(this._wrapCompartment, this.wrap ? p.lineWrapping : []), this._updateScrollable()), (e.has("appearance") || e.has("maxHeight") || e.has("noCopy") || e.has("_copyUnavailable")) && this._updateScrollable());
@@ -686,20 +690,20 @@ var $ = (Y = class extends d {
686
690
  insert: n
687
691
  },
688
692
  effects: [this._diffCompartment.reconfigure(this._parsedDiff ? this._diffExtension(this._parsedDiff) : []), this._wordCompartment.reconfigure([])]
689
- }), this._applyWords(), this._updateScrollable(), this.requestUpdate();
693
+ }), this._applyWords(), this._scheduleUpdateScrollable(), this.requestUpdate();
690
694
  }
691
695
  _lineNumbersExtension() {
692
696
  return this.lineNumbers && !this.diff ? l() : [];
693
697
  }
694
698
  _diffExtension(e) {
695
- return z(e, {
699
+ return R(e, {
696
700
  addedLine: (e) => this._t("components.code-viewer.added-line-label", { number: e }),
697
701
  removedLine: (e) => this._t("components.code-viewer.removed-line-label", { number: e })
698
702
  });
699
703
  }
700
704
  _applyWords() {
701
705
  let e = this._parsedDiff;
702
- e && (this._wordsPending = U(e).then((t) => {
706
+ e && (this._wordsPending = H(e).then((t) => {
703
707
  this._parsedDiff === e && this.reconfigure(this._wordCompartment, t), C(this, "no-diff-words", !1);
704
708
  }, () => C(this, "no-diff-words", !0)));
705
709
  }
@@ -715,7 +719,7 @@ var $ = (Y = class extends d {
715
719
  });
716
720
  }
717
721
  _t(e, t) {
718
- return S(this.translations, b, e, t);
722
+ return S(this.translations, te, e, t);
719
723
  }
720
724
  async getUpdateComplete() {
721
725
  let e = await super.getUpdateComplete();
@@ -730,7 +734,7 @@ var $ = (Y = class extends d {
730
734
  this.reconfigure(this._languageCompartment, []);
731
735
  return;
732
736
  }
733
- let t = ee(e);
737
+ let t = g(e);
734
738
  if (!t) this.reconfigure(this._languageCompartment, []);
735
739
  else try {
736
740
  let n = await t;
@@ -740,15 +744,18 @@ var $ = (Y = class extends d {
740
744
  }
741
745
  }
742
746
  _scheduleUpdateScrollable() {
743
- this._scrollableRaf === void 0 && (this._scrollableRaf = requestAnimationFrame(() => {
744
- this._scrollableRaf = void 0, this._updateScrollable();
745
- }));
747
+ X.schedule(this, this.ownerDocument);
746
748
  }
747
749
  _updateScrollable() {
750
+ this._applyScrollable(this._measureScrollable());
751
+ }
752
+ _measureScrollable() {
748
753
  let e = this.view?.scrollDOM;
749
- if (!e || e.clientWidth === 0) return;
750
- let t = e.scrollHeight > e.clientHeight || !this.wrap && e.scrollWidth > e.clientWidth;
751
- this._isScrollable = t, t ? (e.setAttribute("tabindex", "0"), e.setAttribute("role", "region"), e.setAttribute("aria-label", this._t("components.code-viewer.region-label"))) : (e.removeAttribute("tabindex"), e.removeAttribute("role"), e.removeAttribute("aria-label"));
754
+ return !e || e.clientWidth === 0 ? null : e.scrollHeight > e.clientHeight || !this.wrap && e.scrollWidth > e.clientWidth;
755
+ }
756
+ _applyScrollable(e) {
757
+ let t = this.view?.scrollDOM;
758
+ t && e !== null && (this._isScrollable = e, e ? (t.setAttribute("tabindex", "0"), t.setAttribute("role", "region"), t.setAttribute("aria-label", this._t("components.code-viewer.region-label"))) : (t.removeAttribute("tabindex"), t.removeAttribute("role"), t.removeAttribute("aria-label")));
752
759
  }
753
760
  _getRawText() {
754
761
  let e = this.shadowRoot?.querySelector("slot");
@@ -764,7 +771,7 @@ var $ = (Y = class extends d {
764
771
  }
765
772
  clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0, this._copyPointerType && this._copyPointerType !== "mouse" && (this._copyResetTimer = setTimeout(() => {
766
773
  this._copyResetTimer = void 0, this._copyState = "idle";
767
- }, Z));
774
+ }, oe));
768
775
  }
769
776
  _onCopyPointerDown(e) {
770
777
  this._copyPointerType = e.pointerType;
@@ -778,7 +785,7 @@ var $ = (Y = class extends d {
778
785
  _onCopyPointerLeave() {
779
786
  this._copyState !== "idle" && (this.shadowRoot?.querySelector("nldd-icon-button")?.matches(":focus-within") || (clearTimeout(this._copyResetTimer), this._copyResetTimer = setTimeout(() => {
780
787
  this._copyResetTimer = void 0, this._copyState = "idle";
781
- }, X)));
788
+ }, ae)));
782
789
  }
783
790
  _onCopyPointerEnter() {
784
791
  clearTimeout(this._copyResetTimer), this._copyResetTimer = void 0;
@@ -788,36 +795,36 @@ var $ = (Y = class extends d {
788
795
  }
789
796
  _repaint() {
790
797
  let e = this.view?.scrollDOM;
791
- e && J(e);
798
+ e && q(e);
792
799
  }
793
- }, Y.styles = T, Y);
794
- v([t({
800
+ }, J.styles = D, J);
801
+ b([t({
795
802
  reflect: !0,
796
803
  converter: r("box-tinted")
797
- })], $.prototype, "appearance", void 0), v([t({
804
+ })], $.prototype, "appearance", void 0), b([t({
798
805
  reflect: !0,
799
806
  converter: r("")
800
- })], $.prototype, "language", void 0), v([t({
807
+ })], $.prototype, "language", void 0), b([t({
801
808
  type: Boolean,
802
809
  reflect: !0
803
- })], $.prototype, "diff", void 0), v([t({
810
+ })], $.prototype, "diff", void 0), b([t({
804
811
  type: Boolean,
805
812
  reflect: !0,
806
813
  attribute: "line-numbers"
807
- })], $.prototype, "lineNumbers", void 0), v([t({
814
+ })], $.prototype, "lineNumbers", void 0), b([t({
808
815
  type: Boolean,
809
816
  reflect: !0,
810
817
  attribute: "no-copy"
811
- })], $.prototype, "noCopy", void 0), v([t({
818
+ })], $.prototype, "noCopy", void 0), b([t({
812
819
  type: Boolean,
813
820
  reflect: !0
814
- })], $.prototype, "wrap", void 0), v([t({
821
+ })], $.prototype, "wrap", void 0), b([t({
815
822
  reflect: !0,
816
823
  attribute: "max-height",
817
824
  converter: r("")
818
- })], $.prototype, "maxHeight", void 0), v([t({
825
+ })], $.prototype, "maxHeight", void 0), b([t({
819
826
  type: Boolean,
820
827
  reflect: !0,
821
828
  attribute: "copy-unavailable"
822
- })], $.prototype, "_copyUnavailable", void 0), v([t({ type: Object })], $.prototype, "translations", void 0), v([e()], $.prototype, "_isScrollable", void 0), v([e()], $.prototype, "_copyState", void 0), $ = v([te("nldd-code-viewer")], $);
829
+ })], $.prototype, "_copyUnavailable", void 0), b([t({ type: Object })], $.prototype, "translations", void 0), b([e()], $.prototype, "_isScrollable", void 0), b([e()], $.prototype, "_copyState", void 0), $ = b([_("nldd-code-viewer")], $);
823
830
  export { $ as NLDDCodeViewer };
@@ -1,10 +1,10 @@
1
1
  import { l as e } from "./style-mod-DGMhzWuk.js";
2
- import { $ as t, A as n, C as r, E as i, K as a, O as o, Q as s, X as c, Y as l, Z as u, b as d, ct as f, et as p, ht as m, i as ee, j as h, lt as te, mt as g, o as ne, pt as re, st as ie, tt as ae, ut as _, w as oe, x as se } from "./languages-BCn4J5Ck.js";
3
- import { r as v } from "./custom-element-DD4ffKRs.js";
4
- import { n as ce, t as y } from "./decorate-CeGXihRM.js";
2
+ import { $ as t, A as n, C as r, E as i, K as a, O as o, Q as s, X as c, Y as l, Z as u, b as d, ct as f, et as p, ht as m, i as ee, j as h, lt as te, mt as g, o as ne, pt as re, st as ie, tt as ae, ut as _, w as oe, x as se } from "./languages-DghCYmiz.js";
3
+ import { r as v } from "./custom-element-D8yf5dqU.js";
4
+ import { n as ce, t as y } from "./decorate-1aEyfetK.js";
5
5
  import { t as le } from "./reflect-non-default-Bu3rpCvg.js";
6
- import { t as ue } from "./described-by-mixin-qFatR9dF.js";
7
- import { t as de } from "./form-associated-mixin-CA0F9CPx.js";
6
+ import { t as ue } from "./described-by-mixin-DffYoaxu.js";
7
+ import { t as de } from "./form-associated-mixin-BByNH679.js";
8
8
  // node_modules/@codemirror/commands/dist/index.js
9
9
  var fe = (e) => {
10
10
  let { state: t } = e, n = t.doc.lineAt(t.selection.main.from), r = x(e.state, n.from);
@@ -1,20 +1,22 @@
1
- import { n as e, o as t, r as n, t as r } from "./decorate-CeGXihRM.js";
2
- import { c as i, n as a, r as o, s } from "./custom-element-DD4ffKRs.js";
1
+ import { n as e, o as t, r as n, t as r } from "./decorate-1aEyfetK.js";
2
+ import { c as i, n as a, r as o, s } from "./custom-element-D8yf5dqU.js";
3
3
  import { t as c } from "./custom-element-BW8Ua4c7.js";
4
4
  import { t as l } from "./query-ChDzi9FQ.js";
5
5
  import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
6
6
  import { n as d } from "./breakpoints-Cwor8TRP.js";
7
- import { t as f } from "./if-defined-CvQli6P0.js";
7
+ import { t as f } from "./if-defined-CL4nn-Q-.js";
8
8
  import { t as p } from "./collection.i18n-DqWPGnZO.js";
9
- import "./button-CKV-jwGY.js";
10
- import "./button-bar-DeJ81759.js";
11
- import "./icon-button-h_sEz0Ia.js";
12
- import "./icon-CVM6X_F1.js";
9
+ import "./button-muXGJHlo.js";
10
+ import "./button-bar-BKkap9nk.js";
11
+ import "./icon-button-BBGwCfYp.js";
12
+ import "./icon-CkCT7sPE.js";
13
13
  import { t as m } from "./spacing-scale-SufIjHeN.js";
14
- import { t as h } from "./translations-Cjd13Xb6.js";
14
+ import { t as h } from "./translations-C5JpcNNC.js";
15
15
  import { t as g } from "./list-items-Du0RCWsY.js";
16
+ import { t as _ } from "./after-parse-BSKUm67Q.js";
17
+ import { n as v, t as y } from "./layout-pass-Cq85kSHX.js";
16
18
  // src/components/layout/collection/collection.styles.ts
17
- var _ = i(d.smMax), v = i(d.mdMin), y = i(d.mdMax), b = i(d.lgMin), x = s`
19
+ var b = i(d.smMax), x = i(d.mdMin), S = i(d.mdMax), C = i(d.lgMin), w = s`
18
20
  :host {
19
21
  box-sizing: border-box;
20
22
  }
@@ -35,13 +37,13 @@ var _ = i(d.smMax), v = i(d.mdMin), y = i(d.mdMax), b = i(d.lgMin), x = s`
35
37
  --_collection-lg-gap: var(--primitives-space-24);
36
38
  --_collection-gap: var(--_collection-sm-gap);
37
39
 
38
- @media (max-width: ${_}) { --_collection-gap: var(--_collection-sm-gap); }
39
- @media (min-width: ${v}) and (max-width: ${y}) { --_collection-gap: var(--_collection-md-gap); }
40
- @media (min-width: ${b}) { --_collection-gap: var(--_collection-lg-gap); }
40
+ @media (max-width: ${b}) { --_collection-gap: var(--_collection-sm-gap); }
41
+ @media (min-width: ${x}) and (max-width: ${S}) { --_collection-gap: var(--_collection-md-gap); }
42
+ @media (min-width: ${C}) { --_collection-gap: var(--_collection-lg-gap); }
41
43
 
42
- @container layout-container (max-width: ${_}) { --_collection-gap: var(--_collection-sm-gap); }
43
- @container layout-container (min-width: ${v}) and (max-width: ${y}) { --_collection-gap: var(--_collection-md-gap); }
44
- @container layout-container (min-width: ${b}) { --_collection-gap: var(--_collection-lg-gap); }
44
+ @container layout-container (max-width: ${b}) { --_collection-gap: var(--_collection-sm-gap); }
45
+ @container layout-container (min-width: ${x}) and (max-width: ${S}) { --_collection-gap: var(--_collection-md-gap); }
46
+ @container layout-container (min-width: ${C}) { --_collection-gap: var(--_collection-lg-gap); }
45
47
 
46
48
  display: flex;
47
49
  width: 100%;
@@ -194,7 +196,7 @@ var _ = i(d.smMax), v = i(d.mdMin), y = i(d.mdMax), b = i(d.lgMin), x = s`
194
196
  }
195
197
  `;
196
198
  // src/components/layout/collection/collection.template.ts
197
- function S(e) {
199
+ function T(e) {
198
200
  let r = e.layout === "horizontal-scroll", i = !r && e.showLoadMore && e._hasMore, a = r && e._isScrollable, o = a || i || e._hasFooterSlot;
199
201
  return t`
200
202
  <div class="collection__scroll-area">
@@ -245,19 +247,24 @@ function S(e) {
245
247
  `;
246
248
  }
247
249
  // src/components/layout/collection/collection.ts
248
- var C = class extends e {
250
+ var E, D = new y((e) => {
251
+ for (let t of e) t._measureOverflow();
252
+ }), O = v((e) => {
253
+ for (let t of e) t._measureOverflow();
254
+ }), k = (E = class extends e {
249
255
  constructor(...e) {
250
256
  super(...e), this.layout = "grid", this.maxItems = 24, this.translations = {}, this.showLoadMore = !1, this.lazyLoad = !1, this._visibleCount = 0, this._totalCount = 0, this._atStart = !0, this._atEnd = !1, this._isScrollable = !1, this._hasFooterSlot = !1, this._onFooterSlotChange = (e) => {
251
257
  let t = e.target;
252
258
  queueMicrotask(() => {
253
259
  this._hasFooterSlot = t.assignedElements().length > 0;
254
260
  });
255
- }, this._scrollListener = () => {
256
- let e = this._itemsEl;
257
- if (!e) return;
258
- let t = this._atStart, n = this._atEnd;
259
- this._atStart = e.scrollLeft < 1, this._atEnd = e.scrollLeft + e.clientWidth >= e.scrollWidth - 1, this._isScrollable = e.scrollWidth > e.clientWidth, !t && this._atStart && this._handOffControlFocus("previous"), !n && this._atEnd && this._handOffControlFocus("next");
260
- }, this._scrollListenerAttached = !1, this._onFocusIn = (e) => {
261
+ }, this._scrollListener = () => this._measureOverflow(), this._scrollListenerAttached = !1, this._itemsSlot = null, this._itemsPending = !1, this._parsedChildren = null, this._parsedItems = 0, this._refreshItems = () => {
262
+ this._itemsPending = !1;
263
+ let e = this._itemsSlot?.assignedElements() ?? [];
264
+ this.ownerDocument.readyState === "loading" ? (this._parsedChildren = new WeakSet(this.children), this._parsedItems = e.length) : this._parsedChildren = null, g(e), queueMicrotask(() => {
265
+ this._totalCount = e.length;
266
+ }), this.layout === "horizontal-scroll" ? D.schedule(this, this.ownerDocument) : this._applyVisibility(e);
267
+ }, this._onFocusIn = (e) => {
261
268
  let t = this._itemsEl;
262
269
  if (this.layout !== "horizontal-scroll" || !t) return;
263
270
  let n = e.target, r = this._itemStarts(), i = r.find(({ item: e }) => e === n || e.contains(n));
@@ -272,6 +279,12 @@ var C = class extends e {
272
279
  _t(e) {
273
280
  return h(this.translations, p, e);
274
281
  }
282
+ _measureOverflow() {
283
+ let e = this._itemsEl;
284
+ if (!e || !this._scrollListenerAttached) return;
285
+ let t = this._atStart, n = this._atEnd;
286
+ this._atStart = e.scrollLeft < 1, this._atEnd = e.scrollLeft + e.clientWidth >= e.scrollWidth - 1, this._isScrollable = e.scrollWidth > e.clientWidth, !t && this._atStart && this._handOffControlFocus("previous"), !n && this._atEnd && this._handOffControlFocus("next");
287
+ }
275
288
  _handOffControlFocus(e) {
276
289
  let t = this.shadowRoot?.querySelectorAll("nldd-icon-button");
277
290
  if (!t || t.length < 2) return;
@@ -301,16 +314,22 @@ var C = class extends e {
301
314
  }, { threshold: .1 }), this._intersectionObserver.observe(this._loadMoreBtn)) : this._loadMoreBtn || (this._intersectionObserver?.disconnect(), this._intersectionObserver = void 0), this.toggleAttribute("scrollable", this.layout === "horizontal-scroll" && this._isScrollable);
302
315
  }
303
316
  _setupScrollListeners() {
304
- this._teardownScrollListeners(), this.layout === "horizontal-scroll" && this._itemsEl && (this._itemsEl.addEventListener("scroll", this._scrollListener, { passive: !0 }), this._resizeObserver = new ResizeObserver(() => this._scrollListener()), this._resizeObserver.observe(this._itemsEl), this._scrollListenerAttached = !0, this._scrollListener());
317
+ this._teardownScrollListeners(), this.layout === "horizontal-scroll" && this._itemsEl && (this._itemsEl.addEventListener("scroll", this._scrollListener, { passive: !0 }), O.observe(this._itemsEl, this), this._scrollListenerAttached = !0, D.schedule(this, this.ownerDocument));
305
318
  }
306
319
  _teardownScrollListeners() {
307
- this._itemsEl?.removeEventListener("scroll", this._scrollListener), this._resizeObserver?.disconnect(), this._resizeObserver = void 0, this._scrollListenerAttached = !1, this._isScrollable = !1;
320
+ this._itemsEl?.removeEventListener("scroll", this._scrollListener), O.unobserveAll(this), D.cancel(this), this._scrollListenerAttached = !1, this._isScrollable = !1;
308
321
  }
309
322
  _onSlotChange(e) {
310
- let t = e.target.assignedElements();
311
- g(t), queueMicrotask(() => {
312
- this._totalCount = t.length;
313
- }), this.layout === "horizontal-scroll" ? this._scrollListener() : this._applyVisibility(t);
323
+ this._itemsSlot = e.target, this._itemsPending ? this._hideParsedItems() : (this._itemsPending = !0, _(this._refreshItems, this.ownerDocument) ? this._hideParsedItems() : this._refreshItems());
324
+ }
325
+ _hideParsedItems() {
326
+ if (this.layout === "horizontal-scroll") return;
327
+ let e = this._parsedChildren ?? (this._parsedChildren = /* @__PURE__ */ new WeakSet()), t = [];
328
+ for (let n = this.lastElementChild; n && !e.has(n); n = n.previousElementSibling) t.push(n);
329
+ for (let n = t.length - 1; n >= 0; n--) {
330
+ let r = t[n];
331
+ e.add(r), r.slot || this._parsedItems++ >= this._visibleCount && (r.hidden = !0);
332
+ }
314
333
  }
315
334
  _applyVisibility(e) {
316
335
  let t = this._itemsEl?.querySelector("slot");
@@ -352,45 +371,45 @@ var C = class extends e {
352
371
  });
353
372
  }
354
373
  render() {
355
- return S(this);
374
+ return T(this);
356
375
  }
357
- }, w = (C.styles = x, C);
376
+ }, E.styles = w, E);
358
377
  r([o({
359
378
  reflect: !0,
360
379
  converter: u("grid")
361
- })], w.prototype, "layout", void 0), r([o({
380
+ })], k.prototype, "layout", void 0), r([o({
362
381
  type: String,
363
382
  reflect: !0,
364
383
  attribute: "item-min-width"
365
- })], w.prototype, "itemMinWidth", void 0), r([o({
384
+ })], k.prototype, "itemMinWidth", void 0), r([o({
366
385
  type: String,
367
386
  reflect: !0,
368
387
  attribute: "item-max-width"
369
- })], w.prototype, "itemMaxWidth", void 0), r([o({
388
+ })], k.prototype, "itemMaxWidth", void 0), r([o({
370
389
  type: String,
371
390
  reflect: !0
372
- })], w.prototype, "gap", void 0), r([o({
391
+ })], k.prototype, "gap", void 0), r([o({
373
392
  type: String,
374
393
  reflect: !0,
375
394
  attribute: "sm-gap"
376
- })], w.prototype, "smGap", void 0), r([o({
395
+ })], k.prototype, "smGap", void 0), r([o({
377
396
  type: String,
378
397
  reflect: !0,
379
398
  attribute: "md-gap"
380
- })], w.prototype, "mdGap", void 0), r([o({
399
+ })], k.prototype, "mdGap", void 0), r([o({
381
400
  type: String,
382
401
  reflect: !0,
383
402
  attribute: "lg-gap"
384
- })], w.prototype, "lgGap", void 0), r([o({
403
+ })], k.prototype, "lgGap", void 0), r([o({
385
404
  type: Number,
386
405
  attribute: "max-items"
387
- })], w.prototype, "maxItems", void 0), r([o({ type: Object })], w.prototype, "translations", void 0), r([o({
406
+ })], k.prototype, "maxItems", void 0), r([o({ type: Object })], k.prototype, "translations", void 0), r([o({
388
407
  type: Boolean,
389
408
  reflect: !0,
390
409
  attribute: "show-load-more"
391
- })], w.prototype, "showLoadMore", void 0), r([o({
410
+ })], k.prototype, "showLoadMore", void 0), r([o({
392
411
  type: Boolean,
393
412
  reflect: !0,
394
413
  attribute: "lazy-load"
395
- })], w.prototype, "lazyLoad", void 0), r([a()], w.prototype, "_visibleCount", void 0), r([a()], w.prototype, "_totalCount", void 0), r([a()], w.prototype, "_atStart", void 0), r([a()], w.prototype, "_atEnd", void 0), r([a()], w.prototype, "_isScrollable", void 0), r([a()], w.prototype, "_hasFooterSlot", void 0), r([l(".collection__items")], w.prototype, "_itemsEl", void 0), r([l("nldd-button.load-more")], w.prototype, "_loadMoreBtn", void 0), w = r([c("nldd-collection")], w);
396
- export { w as NLDDCollection };
414
+ })], k.prototype, "lazyLoad", void 0), r([a()], k.prototype, "_visibleCount", void 0), r([a()], k.prototype, "_totalCount", void 0), r([a()], k.prototype, "_atStart", void 0), r([a()], k.prototype, "_atEnd", void 0), r([a()], k.prototype, "_isScrollable", void 0), r([a()], k.prototype, "_hasFooterSlot", void 0), r([l(".collection__items")], k.prototype, "_itemsEl", void 0), r([l("nldd-button.load-more")], k.prototype, "_loadMoreBtn", void 0), k = r([c("nldd-collection")], k);
415
+ export { k as NLDDCollection };