@nldd/design-system 0.20.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/custom-elements.json +361 -10
  2. package/dist/cdn/autoloader.js +181 -0
  3. package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
  4. package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
  5. package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
  6. package/dist/cdn/chunks/avatar-group-GinEMPm9.js +338 -0
  7. package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
  8. package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
  9. package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
  10. package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
  11. package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
  12. package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
  13. package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
  14. package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
  15. package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
  16. package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
  17. package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
  18. package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
  19. package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
  20. package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
  21. package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
  22. package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
  23. package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
  24. package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
  25. package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
  26. package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
  27. package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
  28. package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
  29. package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
  30. package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
  31. package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
  32. package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
  33. package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
  34. package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
  35. package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
  36. package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
  37. package/dist/cdn/chunks/combo-box-OywRKaWj.js +512 -0
  38. package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
  39. package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
  40. package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
  41. package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
  42. package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
  43. package/dist/cdn/chunks/date-field-vmZLo80s.js +662 -0
  44. package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
  45. package/dist/cdn/chunks/date-picker-CXDzSBoL.js +993 -0
  46. package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
  47. package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
  48. package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
  49. package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
  50. package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
  51. package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
  52. package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
  53. package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
  54. package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
  55. package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
  56. package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
  57. package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
  58. package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
  59. package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
  60. package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
  61. package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
  62. package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
  63. package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
  64. package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
  65. package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
  66. package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
  67. package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
  68. package/dist/cdn/chunks/document-tab-bar-A2DFWrP9.js +973 -0
  69. package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
  70. package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
  71. package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
  72. package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
  73. package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
  74. package/dist/cdn/chunks/file-field-DQ52qq5L.js +1484 -0
  75. package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
  76. package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
  77. package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
  78. package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
  79. package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
  80. package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
  81. package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
  82. package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
  83. package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
  84. package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
  85. package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
  86. package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
  87. package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
  88. package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
  89. package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
  90. package/dist/cdn/chunks/identity-BLXecYsZ.js +187 -0
  91. package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
  92. package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
  93. package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
  94. package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
  95. package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
  96. package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
  97. package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
  98. package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
  99. package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
  100. package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
  101. package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
  102. package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
  103. package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
  104. package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
  105. package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
  106. package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
  107. package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
  108. package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
  109. package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
  110. package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
  111. package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
  112. package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
  113. package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
  114. package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
  115. package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
  116. package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
  117. package/dist/cdn/chunks/menu-BtxzRedh.js +719 -0
  118. package/dist/cdn/chunks/menu-bar-BU3Hjk1b.js +253 -0
  119. package/dist/cdn/chunks/menu-bar-item-C7LQ0NI_.js +365 -0
  120. package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
  121. package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
  122. package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
  123. package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
  124. package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
  125. package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
  126. package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
  127. package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
  128. package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
  129. package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
  130. package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
  131. package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
  132. package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
  133. package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
  134. package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
  135. package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
  136. package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
  137. package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
  138. package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
  139. package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
  140. package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
  141. package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
  142. package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
  143. package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
  144. package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
  145. package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
  146. package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
  147. package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
  148. package/dist/cdn/chunks/popover-CGbeEv_-.js +334 -0
  149. package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
  150. package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
  151. package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
  152. package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
  153. package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
  154. package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
  155. package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
  156. package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
  157. package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
  158. package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
  159. package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
  160. package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
  161. package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
  162. package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
  163. package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
  164. package/dist/cdn/chunks/return-focus-BzZWhXhc.js +57 -0
  165. package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
  166. package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
  167. package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
  168. package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
  169. package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
  170. package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
  171. package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
  172. package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
  173. package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
  174. package/dist/cdn/chunks/sheet-CqN7ViYV.js +340 -0
  175. package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
  176. package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
  177. package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
  178. package/dist/cdn/chunks/sidebar-section-CFPBdETU.js +353 -0
  179. package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
  180. package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
  181. package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
  182. package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
  183. package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
  184. package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
  185. package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
  186. package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
  187. package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
  188. package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
  189. package/dist/cdn/chunks/split-button-DH19p8So.js +268 -0
  190. package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
  191. package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
  192. package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
  193. package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
  194. package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
  195. package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
  196. package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
  197. package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
  198. package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
  199. package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
  200. package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
  201. package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
  202. package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
  203. package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
  204. package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
  205. package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
  206. package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
  207. package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
  208. package/dist/cdn/chunks/tab-bar-CA8K1XjU.js +697 -0
  209. package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
  210. package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
  211. package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
  212. package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
  213. package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
  214. package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
  215. package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
  216. package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
  217. package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
  218. package/dist/cdn/chunks/time-field--5K0YTcr.js +607 -0
  219. package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
  220. package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
  221. package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
  222. package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
  223. package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
  224. package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
  225. package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
  226. package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
  227. package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
  228. package/dist/cdn/chunks/token-field-BpyxOGmU.js +664 -0
  229. package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
  230. package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
  231. package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
  232. package/dist/cdn/chunks/toolbar-C24LqAzK.js +408 -0
  233. package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
  234. package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
  235. package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
  236. package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
  237. package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
  238. package/dist/cdn/chunks/top-navigation-bar-C_kLPVKD.js +925 -0
  239. package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
  240. package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
  241. package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
  242. package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
  243. package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
  244. package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
  245. package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
  246. package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
  247. package/dist/cdn/chunks/window-CxV6ELE9.js +227 -0
  248. package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
  249. package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
  250. package/dist/components/actions/menu/menu-item.d.ts +6 -2
  251. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  252. package/dist/components/actions/menu/menu-item.js +12 -1
  253. package/dist/components/actions/menu/menu-item.js.map +1 -1
  254. package/dist/components/actions/menu/menu.js +1 -1
  255. package/dist/components/actions/menu/menu.js.map +1 -1
  256. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  257. package/dist/components/actions/menu/menu.template.js +2 -1
  258. package/dist/components/actions/menu/menu.template.js.map +1 -1
  259. package/dist/components/content/blockquote/blockquote.d.ts +1 -0
  260. package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
  261. package/dist/components/content/blockquote/blockquote.js +1 -0
  262. package/dist/components/content/blockquote/blockquote.js.map +1 -1
  263. package/dist/components/content/identity/identity.d.ts +1 -0
  264. package/dist/components/content/identity/identity.d.ts.map +1 -1
  265. package/dist/components/content/identity/identity.js +1 -0
  266. package/dist/components/content/identity/identity.js.map +1 -1
  267. package/dist/components/content/image/image.d.ts +1 -0
  268. package/dist/components/content/image/image.d.ts.map +1 -1
  269. package/dist/components/content/image/image.js +1 -0
  270. package/dist/components/content/image/image.js.map +1 -1
  271. package/dist/components/content/rich-text/rich-text.d.ts +1 -0
  272. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  273. package/dist/components/content/rich-text/rich-text.js +1 -0
  274. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  275. package/dist/components/content/text/text.d.ts +1 -0
  276. package/dist/components/content/text/text.d.ts.map +1 -1
  277. package/dist/components/content/text/text.js +1 -0
  278. package/dist/components/content/text/text.js.map +1 -1
  279. package/dist/components/content/title/title.d.ts +1 -0
  280. package/dist/components/content/title/title.d.ts.map +1 -1
  281. package/dist/components/content/title/title.js +1 -0
  282. package/dist/components/content/title/title.js.map +1 -1
  283. package/dist/components/forms/form/form.d.ts.map +1 -1
  284. package/dist/components/forms/form/form.js +1 -0
  285. package/dist/components/forms/form/form.js.map +1 -1
  286. package/dist/components/forms/form-field/form-field.d.ts +1 -0
  287. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  288. package/dist/components/forms/form-field/form-field.js +1 -0
  289. package/dist/components/forms/form-field/form-field.js.map +1 -1
  290. package/dist/components/inputs/date-field/date-field.d.ts +9 -4
  291. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  292. package/dist/components/inputs/date-field/date-field.js +20 -7
  293. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  294. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  295. package/dist/components/inputs/date-field/date-field.template.js +1 -0
  296. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  297. package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
  298. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  299. package/dist/components/inputs/dropdown/dropdown.js +68 -11
  300. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  301. package/dist/components/inputs/time-field/time-field.d.ts +4 -0
  302. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  303. package/dist/components/inputs/time-field/time-field.js +17 -2
  304. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  305. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  306. package/dist/components/inputs/time-field/time-field.template.js +1 -0
  307. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  308. package/dist/components/layout/container/container.d.ts +15 -2
  309. package/dist/components/layout/container/container.d.ts.map +1 -1
  310. package/dist/components/layout/container/container.js +38 -3
  311. package/dist/components/layout/container/container.js.map +1 -1
  312. package/dist/components/layout/container/container.styles.js +1 -1
  313. package/dist/components/layout/container/container.template.js +1 -1
  314. package/dist/components/layout/container/container.template.js.map +1 -1
  315. package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
  316. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  317. package/dist/components/layout/page-sections/hero/hero.js +1 -0
  318. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  319. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  320. package/dist/components/layout/popover/popover.js +4 -2
  321. package/dist/components/layout/popover/popover.js.map +1 -1
  322. package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
  323. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  324. package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
  325. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  326. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
  327. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  328. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
  329. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  330. package/dist/nldd.min.js +729 -727
  331. package/dist/types/react.d.ts +3323 -0
  332. package/dist/types/vue.d.ts +11 -3
  333. package/dist/utilities/autoloader.d.ts +33 -0
  334. package/dist/utilities/autoloader.d.ts.map +1 -0
  335. package/dist/utilities/autoloader.generated.d.ts +3 -0
  336. package/dist/utilities/autoloader.generated.d.ts.map +1 -0
  337. package/dist/utilities/autoloader.generated.js +141 -0
  338. package/dist/utilities/autoloader.generated.js.map +1 -0
  339. package/dist/utilities/autoloader.js +94 -0
  340. package/dist/utilities/autoloader.js.map +1 -0
  341. package/dist/utilities/dev-checks.d.ts +9 -0
  342. package/dist/utilities/dev-checks.d.ts.map +1 -1
  343. package/dist/utilities/dev-checks.js +45 -3
  344. package/dist/utilities/dev-checks.js.map +1 -1
  345. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  346. package/dist/utilities/dev-rules.generated.js +12 -2
  347. package/dist/utilities/dev-rules.generated.js.map +1 -1
  348. package/dist/utilities/loading-tags.d.ts +7 -0
  349. package/dist/utilities/loading-tags.d.ts.map +1 -0
  350. package/dist/utilities/loading-tags.js +7 -0
  351. package/dist/utilities/loading-tags.js.map +1 -0
  352. package/dist/utilities/owner-form.d.ts +3 -3
  353. package/dist/utilities/owner-form.d.ts.map +1 -1
  354. package/dist/utilities/owner-form.js +6 -3
  355. package/dist/utilities/owner-form.js.map +1 -1
  356. package/dist/utilities/return-focus.d.ts +14 -0
  357. package/dist/utilities/return-focus.d.ts.map +1 -1
  358. package/dist/utilities/return-focus.js +26 -8
  359. package/dist/utilities/return-focus.js.map +1 -1
  360. package/lint/data.generated.json +1 -1
  361. package/lint/engine.js +53 -1
  362. package/lint/format.js +6 -5
  363. package/lint/frontends.js +224 -16
  364. package/lint/linter.js +5 -3
  365. package/lint/main.js +36 -9
  366. package/lint/project.js +73 -4
  367. package/lint/rule-data.js +17 -2
  368. package/lint/tree.js +3 -0
  369. package/package.json +50 -11
  370. package/dist/components/breakpoints-DtL62nLI.js +0 -45
  371. package/dist/components/components.js +0 -68243
  372. package/dist/components/decorate-DD7uUxHb.js +0 -51
  373. package/dist/components/defer-focus-dzorHsCQ.js +0 -176
  374. package/dist/components/dev-checks-CLB9G43h.js +0 -2711
  375. package/dist/components/dist-245LaK9m.js +0 -1479
  376. package/dist/components/dist-BFZM0YsR.js +0 -15772
  377. package/dist/components/dist-BNkeFjc3.js +0 -1180
  378. package/dist/components/dist-CSC1dG3L.js +0 -365
  379. package/dist/components/dist-CeMOOqgP.js +0 -1509
  380. package/dist/components/dist-DFjwTlJV.js +0 -624
  381. package/dist/components/dist-DHhnz3Gv.js +0 -381
  382. package/dist/components/dist-PeUX4vPq.js +0 -2857
  383. package/dist/components/dist-m70B83qb.js +0 -463
  384. package/dist/components/element-state-BnarBv0M.js +0 -42
  385. package/dist/components/gherkin-DzYbEwDO.js +0 -107
  386. package/dist/components/icon-button-8gvQCwCW.js +0 -2305
  387. package/dist/components/input-modality-D_CY185R.js +0 -48
  388. package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
  389. package/dist/components/nl.generated-DzZkOgnP.js +0 -64
  390. package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
  391. package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
  392. package/dist/components/shell-Dh5IwHd-.js +0 -222
  393. package/dist/components/toml-D0Pix_8Q.js +0 -58
  394. package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
@@ -0,0 +1,662 @@
1
+ import "./icon-BORlalt0.js";
2
+ import { a as e, i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
3
+ import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
4
+ import { t as c } from "./custom-element-BW8Ua4c7.js";
5
+ import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
6
+ import { t as u } from "./shadow-resets-6SToDsPu.js";
7
+ import { t as d } from "./translations-wxBSz213.js";
8
+ import { t as f } from "./described-by-mixin-daRE7orX.js";
9
+ import "./icon-button-rKiIHs7A.js";
10
+ import { n as p } from "./input-modality-XE0B7yCn.js";
11
+ import { n as m } from "./breakpoints-Cwor8TRP.js";
12
+ import { n as h, r as g } from "./return-focus-BzZWhXhc.js";
13
+ import "./popover-CGbeEv_-.js";
14
+ import "./container-rrbwk0z4.js";
15
+ import "./top-title-bar-iNFB2zQL.js";
16
+ import { t as _ } from "./form-associated-mixin--GIbl98p.js";
17
+ import { t as v } from "./implicit-submission-Csbcor_E.js";
18
+ import { n as y, r as b } from "./date-picker-CXDzSBoL.js";
19
+ import { t as x } from "./date-field.i18n-BTzc0E9a.js";
20
+ // src/components/inputs/date-field/date-field.styles.ts
21
+ var S = e(m.mdMin), C = t`
22
+ :host {
23
+ box-sizing: border-box;
24
+ }
25
+
26
+
27
+ /* # Host */
28
+
29
+ :host {
30
+ /* Roomier than the text measures. Not to prevent clipping (the digits are
31
+ tabular, so every date measures the same), but as air around the date and
32
+ as a grip to select and drag by. */
33
+ --_date-field-text-width: 10.5ch;
34
+ /* Room reserved for the separator. The character itself gets its own width,
35
+ because it is translatable and would clip in a fixed box. Whatever that
36
+ reservation gets wrong is absorbed by the end date field. */
37
+ --_date-field-separator-width: 3.5ch;
38
+ --_date-field-separator-padding-right: var(--primitives-space-6);
39
+ /* Left side of the field: it is a border-box, and padding-left already
40
+ subtracts one border, so both borders together add up to one extra. */
41
+ --_date-field-edge-width: calc(var(--_date-field-inline-padding) + var(--semantics-input-fields-border-width));
42
+ /* Everything that cannot shrink. Only the last date field stretches, so this
43
+ doubles as the lower bound: below it the calendar button would run out of
44
+ the field. */
45
+ --_date-field-fixed-width: calc(var(--_date-field-edge-width) + var(--_date-field-trailing-width));
46
+ --_date-field-width: calc(var(--_date-field-fixed-width) + var(--_date-field-text-width));
47
+ --_date-field-corner-radius: var(--semantics-controls-md-corner-radius);
48
+ --_date-field-background-color: var(--semantics-input-fields-background-color);
49
+ --_date-field-min-size: var(--semantics-controls-md-min-size);
50
+ --_date-field-inline-padding: var(--semantics-controls-md-inline-padding);
51
+ --_date-field-text-font: var(--semantics-input-fields-md-text-font);
52
+ --_date-field-validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
53
+ /* As much air to the right of the button as above and below it, so derived
54
+ from the height difference between field and button instead of a fixed
55
+ value. */
56
+ --_date-field-end-padding-right: calc((var(--_date-field-min-size) - var(--_date-field-picker-button-size)) / 2 - var(--semantics-input-fields-border-width));
57
+ --_date-field-picker-button-size: var(--semantics-controls-sm-min-size);
58
+ --_date-field-validation-icon-area-width: calc(var(--_date-field-min-size) - var(--semantics-input-fields-border-width) * 2);
59
+ --_date-field-trailing-width: calc(var(--_date-field-validation-icon-area-width) + var(--_date-field-picker-button-size) + var(--_date-field-end-padding-right));
60
+
61
+ ${u}
62
+ display: block;
63
+ width: var(--_date-field-width);
64
+ min-width: var(--_date-field-fixed-width);
65
+ max-width: 100%;
66
+ font: var(--_date-field-text-font);
67
+ -webkit-tap-highlight-color: transparent;
68
+ }
69
+
70
+ :host([hidden]) {
71
+ display: none;
72
+ }
73
+
74
+ /* The default width reserves a slot for both the picker button and the
75
+ validation icon, so the field never resizes when a validation state appears.
76
+ Without the button one slot is enough. */
77
+ /* 'fit-content' is not the CSS keyword here but this system's width word:
78
+ as wide as what is in it. Room held for a validation icon that is not
79
+ there is not in it, so what is left is the air the field needs between its
80
+ text and the picker button. The full slot comes back the moment a validation
81
+ state does, and the field grows at its trailing edge — after the picker
82
+ button, leaving the date, and a range's separator and end date, where it was. Opt-in, because only the consumer
83
+ knows whether this field is ever validated. */
84
+ :host([width="fit-content"]:not([valid]):not([invalid])) {
85
+ --_date-field-validation-icon-area-width: var(--primitives-space-8);
86
+ }
87
+
88
+ :host([no-picker]) {
89
+ --_date-field-fixed-width: calc(var(--_date-field-edge-width) + var(--_date-field-inline-padding) + var(--_date-field-validation-icon-area-width));
90
+ }
91
+
92
+ :host([range]) {
93
+ --_date-field-fixed-width: calc(var(--_date-field-edge-width) + var(--_date-field-text-width) + var(--_date-field-separator-width) + var(--_date-field-trailing-width));
94
+ }
95
+
96
+ :host([range][no-picker]) {
97
+ --_date-field-fixed-width: calc(var(--_date-field-edge-width) + var(--_date-field-inline-padding) + var(--_date-field-text-width) + var(--_date-field-separator-width) + var(--_date-field-validation-icon-area-width));
98
+ }
99
+
100
+ :host([size="sm"]) {
101
+ --_date-field-corner-radius: var(--semantics-controls-sm-corner-radius);
102
+ --_date-field-min-size: var(--semantics-controls-sm-min-size);
103
+ --_date-field-inline-padding: var(--semantics-controls-sm-inline-padding);
104
+ --_date-field-text-font: var(--semantics-input-fields-sm-text-font);
105
+ --_date-field-validation-icon-size: var(--semantics-input-fields-sm-validation-icon-size);
106
+ --_date-field-picker-button-size: var(--semantics-controls-xs-min-size);
107
+ }
108
+
109
+
110
+ /* # Block */
111
+
112
+ .date-field {
113
+ box-sizing: border-box;
114
+ display: flex;
115
+ border: var(--semantics-input-fields-border);
116
+ border-radius: var(--_date-field-corner-radius);
117
+ background-color: var(--_date-field-background-color);
118
+ min-height: var(--_date-field-min-size);
119
+ padding-left: calc(var(--_date-field-inline-padding) - var(--semantics-input-fields-border-width));
120
+ flex-direction: row;
121
+ align-items: center;
122
+ }
123
+
124
+ :host([valid]) .date-field {
125
+ border-color: var(--semantics-input-fields-is-valid-border-color);
126
+ }
127
+
128
+ :host([invalid]) .date-field {
129
+ border-color: var(--semantics-input-fields-is-invalid-border-color);
130
+ }
131
+
132
+ :host([readonly]) .date-field {
133
+ --_date-field-background-color: var(--semantics-input-fields-is-read-only-background-color);
134
+ border-color: var(--semantics-input-fields-is-read-only-border-color);
135
+ }
136
+
137
+ :host([disabled]) .date-field {
138
+ opacity: var(--primitives-opacity-disabled);
139
+ }
140
+
141
+ .date-field:has(input:-webkit-autofill),
142
+ .date-field:has(input:autofill) {
143
+ --_date-field-background-color: var(--semantics-input-fields-is-autofill-background-color);
144
+ }
145
+
146
+ /* Keyed on the text input, not :focus-within: the calendar button and the
147
+ popover live inside this box too, so focus-within would draw a second ring
148
+ around the whole field while the button already has its own. */
149
+ .date-field:has(.date-field__input:focus) {
150
+ outline: var(--semantics-focus-ring-outline);
151
+ outline-offset: var(--semantics-focus-ring-outline-offset);
152
+ box-shadow: var(--semantics-focus-ring-box-shadow);
153
+ }
154
+
155
+
156
+ /* # Elements */
157
+
158
+ .date-field__input {
159
+ border-radius: calc(var(--_date-field-corner-radius) - var(--semantics-input-fields-border-width));
160
+ box-sizing: border-box;
161
+ margin: 0;
162
+ outline: none;
163
+ border: none;
164
+ background: transparent;
165
+ min-width: 0;
166
+ min-height: calc(var(--_date-field-min-size) - var(--semantics-input-fields-border-width) * 2);
167
+ overflow: hidden;
168
+ padding: 0;
169
+ flex-grow: 1;
170
+ color: var(--semantics-content-color);
171
+ font: var(--_date-field-text-font);
172
+ appearance: none;
173
+ }
174
+
175
+ :host([disabled]) .date-field__input {
176
+ pointer-events: none;
177
+ }
178
+
179
+ .date-field__input::placeholder {
180
+ color: var(--semantics-input-fields-placeholder-color);
181
+ }
182
+
183
+ .date-field__input:-webkit-autofill,
184
+ .date-field__input:autofill,
185
+ .date-field__input:-webkit-autofill:disabled,
186
+ .date-field__input:autofill:disabled {
187
+ box-shadow: 0 0 0 999px var(--_date-field-background-color) inset;
188
+ -webkit-text-fill-color: var(--semantics-input-fields-is-autofill-content-color);
189
+ }
190
+
191
+ /* Fixed size: if the start field grew and shrank along, the separator and the
192
+ end date would jump the moment the validation icon claims its room or the
193
+ field is set narrower. */
194
+ :host([range]) .date-field__input {
195
+ width: var(--_date-field-text-width);
196
+ flex-grow: 0;
197
+ flex-shrink: 0;
198
+ }
199
+
200
+ /* The end date does stretch and shrink, just as in a plain date field: it
201
+ comes after the separator, so nothing before it shifts. */
202
+ :host([range]) .date-field__input:last-of-type {
203
+ flex-grow: 1;
204
+ flex-shrink: 1;
205
+ }
206
+
207
+ /* Room after it only: the start field is a little roomier than its text, and
208
+ that slack already supplies the room before it. Padding on both sides makes
209
+ it look lopsided on screen. */
210
+ .date-field__separator {
211
+ flex-shrink: 0;
212
+ padding-right: var(--_date-field-separator-padding-right);
213
+ color: var(--semantics-content-secondary-color);
214
+ }
215
+
216
+ .date-field__input-fade {
217
+ position: relative;
218
+ width: 0;
219
+ flex-shrink: 0;
220
+ align-self: stretch;
221
+ }
222
+
223
+ .date-field__input-fade::after {
224
+ content: '';
225
+ position: absolute;
226
+ top: 0;
227
+ right: 0;
228
+ bottom: 0;
229
+ border-radius: var(--_date-field-corner-radius);
230
+ background: linear-gradient(90deg, color-mix(in oklch, var(--_date-field-background-color) 0%, transparent) 0%, var(--_date-field-background-color) 100%);
231
+ pointer-events: none;
232
+ width: var(--primitives-space-8);
233
+ }
234
+
235
+ .date-field__validation-icon-area {
236
+ display: flex;
237
+ width: var(--_date-field-validation-icon-area-width);
238
+ height: 100%;
239
+ flex-shrink: 0;
240
+ align-items: center;
241
+ justify-content: center;
242
+ }
243
+
244
+ :host([valid]) .date-field__validation-icon-area {
245
+ color: var(--semantics-input-fields-is-valid-icon-color);
246
+ }
247
+
248
+ :host([invalid]) .date-field__validation-icon-area {
249
+ color: var(--semantics-input-fields-is-invalid-icon-color);
250
+ }
251
+
252
+ .date-field__validation-icon {
253
+ display: flex;
254
+ width: var(--_date-field-validation-icon-size);
255
+ height: var(--_date-field-validation-icon-size);
256
+ }
257
+
258
+ .date-field__picker-button {
259
+ position: relative;
260
+ flex-shrink: 0;
261
+ padding-right: var(--_date-field-end-padding-right);
262
+ display: flex;
263
+ align-items: center;
264
+ }
265
+
266
+
267
+ /* The sheet's title bar only makes sense on a small screen, where the popover
268
+ becomes a bottom sheet. It shows by default and is hidden from md up. */
269
+ @media (min-width: ${S}) {
270
+ .date-field__picker-button nldd-top-title-bar {
271
+ display: none;
272
+ }
273
+ }
274
+ `, w = "calc(var(--semantics-controls-md-min-size) * 7 + var(--primitives-space-16) * 2)";
275
+ function T(e) {
276
+ let t = e.invalid ? "invalid" : e.valid ? "valid" : "";
277
+ return t ? a`
278
+ <div class="date-field__validation-icon-area">
279
+ <span class="date-field__validation-icon">
280
+ <nldd-icon
281
+ icon=${t}
282
+ aria-hidden="true"
283
+ ></nldd-icon>
284
+ </span>
285
+ </div>
286
+ ` : o;
287
+ }
288
+ function E(e) {
289
+ if (e.noPicker || e.readonly) return o;
290
+ let t = e.size === "sm" ? "xs" : "sm";
291
+ return a`
292
+ <div class="date-field__picker-button">
293
+ <nldd-icon-button
294
+ appearance="neutral-tinted"
295
+ size=${t}
296
+ icon="calendar"
297
+ text=${e._t("components.date-field.to-pick-date-action")}
298
+ tooltip-timing="never"
299
+ ?disabled=${e.disabled}
300
+ @mousedown=${e._handlePickerPress}
301
+ @click=${e._handlePickerClick}
302
+ ></nldd-icon-button>
303
+ <nldd-popover
304
+ accessible-label=${e._pickerLabel}
305
+ placement="bottom-end"
306
+ width=${e._pickerPopoverWidth}
307
+ @toggle=${e._handlePopoverToggle}
308
+ >
309
+ <nldd-top-title-bar
310
+ text=${e._pickerLabel}
311
+ dismiss-text=${e._t("components.date-field.cancel-action")}
312
+ @dismiss=${e._handlePickerDismiss}
313
+ ></nldd-top-title-bar>
314
+ <nldd-container
315
+ padding="16"
316
+ @change=${e._handlePickerChange}
317
+ >
318
+ <slot
319
+ name="picker"
320
+ @slotchange=${e._handlePickerSlotChange}
321
+ ></slot>
322
+ ${e._hasSlottedPicker ? o : a`
323
+ <nldd-date-picker
324
+ autofocus
325
+ ?range=${e.range}
326
+ value=${e.range ? o : e.value || o}
327
+ start=${e.range && e._startValue || o}
328
+ end=${e.range && e._endValue || o}
329
+ min=${e.min || o}
330
+ max=${e.max || o}
331
+ ></nldd-date-picker>
332
+ `}
333
+ </nldd-container>
334
+ </nldd-popover>
335
+ </div>
336
+ `;
337
+ }
338
+ function D(e, t, n) {
339
+ let r = e.range ? [e._fieldLabel, e._t(n > 0 ? "components.date-field.range-to-lowercase-label" : "components.date-field.range-from-lowercase-label")].join(", ") : e._fieldLabel;
340
+ return a`
341
+ <input class="date-field__input"
342
+ id=${n === 0 && e.inputId || o}
343
+ type="text"
344
+ inputmode="numeric"
345
+ .value=${t}
346
+ placeholder=${e.placeholder || o}
347
+ ?disabled=${e.disabled}
348
+ ?readonly=${e.readonly}
349
+ ?required=${e.required}
350
+ autocomplete=${n === 0 && e.autocomplete || o}
351
+ aria-label=${r || o}
352
+ aria-invalid=${e.invalid ? "true" : o}
353
+ @keydown=${(t) => e._handleInputKeydown(t, n)}
354
+ @input=${(t) => e._handleInput(t, n)}
355
+ @change=${(t) => e._handleChange(t, n)}
356
+ >
357
+ `;
358
+ }
359
+ function O(e) {
360
+ return a`
361
+ <span class="date-field__separator"
362
+ aria-hidden="true"
363
+ >
364
+ ${e._t("components.date-field.range-to-short-lowercase-label")}
365
+ </span>
366
+ `;
367
+ }
368
+ function k(e) {
369
+ return a`
370
+ <div class="date-field"
371
+ role=${e.range ? "group" : o}
372
+ aria-label=${e.range ? e._fieldLabel : o}
373
+ @focusout=${e._handleFieldBlur}
374
+ >
375
+ ${e._texts.map((t, n) => a`
376
+ ${n > 0 ? O(e) : o}
377
+ ${D(e, t, n)}
378
+ `)}
379
+ <div class="date-field__input-fade"></div>
380
+ ${T(e)}
381
+ ${E(e)}
382
+ </div>
383
+ `;
384
+ }
385
+ function A(e) {
386
+ let t = e.trim();
387
+ if (t === "") return null;
388
+ let n = /^(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})$/.exec(t);
389
+ if (n) return b(Number(n[1]), Number(n[2]), Number(n[3]));
390
+ let r = /^(\d{1,2})[-/.](\d{1,2})[-/.](\d{4})$/.exec(t);
391
+ if (r) return b(Number(r[3]), Number(r[2]), Number(r[1]));
392
+ let i = /^(\d{2})(?:\s*[./-]\s*|\s+)?(\d{2})(?:\s*[./-]\s*|\s+)?(\d{4})$/.exec(t);
393
+ return i ? b(Number(i[3]), Number(i[2]), Number(i[1])) : null;
394
+ }
395
+ function j(e) {
396
+ let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
397
+ return t ? `${t[3]}-${t[2]}-${t[1]}` : "";
398
+ }
399
+ function M(e, t) {
400
+ let n = e ? e.split("/") : [];
401
+ return Array.from({ length: t }, (e, t) => n[t] ?? "");
402
+ }
403
+ function N(e) {
404
+ return e.every((e) => e === "") ? "" : e.join("/");
405
+ }
406
+ function P(e, t) {
407
+ return {
408
+ min: e ? y(e) : "",
409
+ max: t ? y(t) : ""
410
+ };
411
+ }
412
+ function F(e, t) {
413
+ let n = A(e);
414
+ return !n || t.min && n < t.min || t.max && n > t.max ? "" : n;
415
+ }
416
+ function I(e) {
417
+ let [t, n] = e;
418
+ return e.length !== 2 || !t || !n || t <= n ? null : [n, t];
419
+ }
420
+ function L(e, t, n) {
421
+ for (let n of e) {
422
+ if (!n.trim()) continue;
423
+ let e = A(n);
424
+ if (!e) return { flag: "badInput" };
425
+ if (t.min && e < t.min) return {
426
+ flag: "rangeUnderflow",
427
+ bound: t.min
428
+ };
429
+ if (t.max && e > t.max) return {
430
+ flag: "rangeOverflow",
431
+ bound: t.max
432
+ };
433
+ }
434
+ let [r, ...i] = e;
435
+ return n && r?.trim() && i.some((e) => !e.trim()) ? { flag: "valueMissing" } : null;
436
+ }
437
+ // src/components/inputs/date-field/date-field.ts
438
+ var R = class extends f(_(i)) {
439
+ constructor(...e) {
440
+ super(...e), this._initialValue = "", this.size = "md", this.value = "", this.range = !1, this.min = "", this.max = "", this.noPicker = !1, this.inputId = "", this.placeholder = "", this.invalid = !1, this.valid = !1, this.disabled = !1, this.readonly = !1, this.required = !1, this.name = "", this.autocomplete = "", this.accessibleLabel = "", this.width = "", this.translations = {}, this._texts = [""], this._hasSlottedPicker = !1, this._pickerOpen = !1, this._focusOnClose = null, this._pickerPopoverWidth = w;
441
+ }
442
+ get _endCount() {
443
+ return this.range ? 2 : 1;
444
+ }
445
+ get _ends() {
446
+ return M(this.value, this._endCount);
447
+ }
448
+ get _startValue() {
449
+ return this._ends[0] ?? "";
450
+ }
451
+ get _endValue() {
452
+ return this.range ? this._ends[1] ?? "" : "";
453
+ }
454
+ _setEnd(e, t) {
455
+ let n = this._ends;
456
+ n[e] = t, this.value = N(n);
457
+ }
458
+ _sortRange() {
459
+ let e = I(this._ends);
460
+ return e ? (this.value = N(e), !0) : !1;
461
+ }
462
+ _handleFieldBlur(e) {
463
+ let t = e.relatedTarget;
464
+ t && this.shadowRoot?.contains(t) || this._sortRange() && this._emit("change");
465
+ }
466
+ _commit(e) {
467
+ return F(e, P(this.min, this.max));
468
+ }
469
+ get _slottedPicker() {
470
+ return (this.shadowRoot?.querySelector("slot[name=\"picker\"]"))?.assignedElements({ flatten: !0 }).find((e) => e.localName === "nldd-date-picker") ?? null;
471
+ }
472
+ _handlePickerSlotChange() {
473
+ this._hasSlottedPicker = this._slottedPicker !== null;
474
+ }
475
+ _syncSlottedPicker() {
476
+ let e = this._slottedPicker;
477
+ e && (e.range = this.range, e.min = this.min, e.max = this.max, this.range ? (e.start = this._startValue, e.end = this._endValue) : e.value = this.value, e.toggleAttribute("autofocus", !0));
478
+ }
479
+ firstUpdated() {
480
+ this._initialValue = this.value, this._handlePickerSlotChange();
481
+ }
482
+ willUpdate(e) {
483
+ if (!e.has("value") && !e.has("range")) return;
484
+ e.has("range") && (this.value = N(this._ends));
485
+ let t = this._ends;
486
+ this._texts = t.map((e, t) => {
487
+ let n = this._texts[t] ?? "";
488
+ return this._commit(n) === e ? n : j(e);
489
+ });
490
+ }
491
+ updated(e) {
492
+ if (e.has("width")) {
493
+ let e = this.width;
494
+ e === "full" ? this.style.setProperty("--_date-field-width", "100%") : e === "fit-content" ? this.style.removeProperty("--_date-field-width") : e && CSS.supports("width", e) ? this.style.setProperty("--_date-field-width", e) : this.style.removeProperty("--_date-field-width");
495
+ }
496
+ let t = this._popover, n = this._pickerTrigger;
497
+ t && n && t.anchorElement !== n && (t.anchorElement = n), this._syncSlottedPicker();
498
+ }
499
+ formResetCallback() {
500
+ this._texts = M(this._initialValue, this._endCount).map(j), this.value = this._initialValue;
501
+ }
502
+ formStateRestoreCallback(e) {
503
+ typeof e == "string" && (this.value = e);
504
+ }
505
+ _t(e) {
506
+ return d(this.translations, x, e);
507
+ }
508
+ get _fieldLabel() {
509
+ return this.accessibleLabel || this._t(this.range ? "components.date-field.default-range-label" : "components.date-field.default-label");
510
+ }
511
+ get _pickerTrigger() {
512
+ return this.shadowRoot?.querySelector(".date-field__picker-button nldd-icon-button") ?? null;
513
+ }
514
+ get _popover() {
515
+ return this.shadowRoot?.querySelector("nldd-popover") ?? null;
516
+ }
517
+ get _pickerLabel() {
518
+ return this.accessibleLabel || this._t("components.date-field.to-pick-date-action");
519
+ }
520
+ _handlePickerPress(e) {
521
+ e.preventDefault();
522
+ }
523
+ _handlePickerClick() {
524
+ this._pickerOpen ? this._popover?.hide() : this._popover?.show();
525
+ }
526
+ _applyCloseFocus() {
527
+ let e = this._focusOnClose ?? (g(this) ? "trigger" : null);
528
+ if (this._focusOnClose = null, e === "trigger") {
529
+ let e = this._pickerTrigger;
530
+ e && h(e);
531
+ } else if (e === "last-input") {
532
+ let e = this._inputs;
533
+ this._focusAtEnd(e[e.length - 1]);
534
+ }
535
+ }
536
+ _handlePickerDismiss(e) {
537
+ e.stopPropagation(), this._focusOnClose = "trigger", this._popover?.hide();
538
+ }
539
+ _handlePopoverToggle(e) {
540
+ this._pickerOpen = e.newState === "open", this._pickerOpen ? (this._sortRange() && this._emit("change"), this._fitPopoverToSlottedPicker()) : queueMicrotask(() => this._applyCloseFocus());
541
+ }
542
+ _fitPopoverToSlottedPicker() {
543
+ let e = this._slottedPicker;
544
+ if (!e) {
545
+ this._pickerPopoverWidth = w;
546
+ return;
547
+ }
548
+ let t = e.getBoundingClientRect().width;
549
+ t > 0 && (this._pickerPopoverWidth = `calc(${Math.ceil(t)}px + var(--primitives-space-16) * 2)`);
550
+ }
551
+ _handlePickerChange(e) {
552
+ e.stopPropagation();
553
+ let t = e.detail;
554
+ if (this.range) {
555
+ if (typeof t?.start != "string" || typeof t?.end != "string") return;
556
+ this.value = N([t.start, t.end]), this._focusOnClose = p() ? "trigger" : "last-input";
557
+ } else {
558
+ if (typeof t?.value != "string") return;
559
+ this.value = t.value, this._focusOnClose = "trigger";
560
+ }
561
+ this._popover?.hide(), this._emit("change");
562
+ }
563
+ get _inputs() {
564
+ return [...this.shadowRoot?.querySelectorAll(".date-field__input") ?? []];
565
+ }
566
+ _focusAtEnd(e) {
567
+ if (!e) return;
568
+ e.focus();
569
+ let t = e.value.length;
570
+ e.setSelectionRange(t, t);
571
+ }
572
+ _handleInputKeydown(e, t) {
573
+ v(this, e) || t !== 0 && e.key === "Backspace" && e.target.value === "" && (e.preventDefault(), this._focusAtEnd(this._inputs[t - 1]));
574
+ }
575
+ _setText(e, t) {
576
+ let n = [...this._texts];
577
+ n[e] = t, this._texts = n;
578
+ }
579
+ _handleInput(e, t = 0) {
580
+ e.stopPropagation();
581
+ let n = e.target.value;
582
+ this._setText(t, n), this._setEnd(t, this._commit(n)), this._emit("input");
583
+ }
584
+ _handleChange(e, t = 0) {
585
+ e.stopPropagation();
586
+ let n = e.target.value, r = this._commit(n);
587
+ this._setText(t, r ? j(r) : n), this._setEnd(t, r), this._emit("change");
588
+ }
589
+ formValue() {
590
+ return this.value;
591
+ }
592
+ ownValidity() {
593
+ let e = L(this._texts, P(this.min, this.max), this.required);
594
+ return e ? {
595
+ flags: { [e.flag]: !0 },
596
+ message: this._problemMessage(e)
597
+ } : null;
598
+ }
599
+ _problemMessage(e) {
600
+ switch (e.flag) {
601
+ case "badInput": return this._t("components.date-field.bad-input-error-text");
602
+ case "rangeUnderflow": return this._t("components.date-field.range-underflow-error-text").replace("{date}", j(e.bound));
603
+ case "rangeOverflow": return this._t("components.date-field.range-overflow-error-text").replace("{date}", j(e.bound));
604
+ case "valueMissing": return this._t("components.date-field.range-incomplete-error-text");
605
+ }
606
+ }
607
+ _emit(e) {
608
+ this.commitFormValue(), this.dispatchEvent(new CustomEvent(e, {
609
+ detail: { value: this.value },
610
+ bubbles: !0,
611
+ composed: !0
612
+ }));
613
+ }
614
+ render() {
615
+ return k(this);
616
+ }
617
+ }, z = (R.shadowRootOptions = {
618
+ ...i.shadowRootOptions,
619
+ delegatesFocus: !0
620
+ }, R.styles = C, R.isFormInput = !0, R.blocksImplicitSubmission = !0, R);
621
+ s([n({
622
+ reflect: !0,
623
+ converter: l("md")
624
+ })], z.prototype, "size", void 0), s([n({ type: String })], z.prototype, "value", void 0), s([n({
625
+ type: Boolean,
626
+ reflect: !0
627
+ })], z.prototype, "range", void 0), s([n({ type: String })], z.prototype, "min", void 0), s([n({ type: String })], z.prototype, "max", void 0), s([n({
628
+ type: Boolean,
629
+ reflect: !0,
630
+ attribute: "no-picker"
631
+ })], z.prototype, "noPicker", void 0), s([n({
632
+ type: String,
633
+ attribute: "input-id"
634
+ })], z.prototype, "inputId", void 0), s([n({
635
+ reflect: !0,
636
+ converter: l("")
637
+ })], z.prototype, "placeholder", void 0), s([n({
638
+ type: Boolean,
639
+ reflect: !0
640
+ })], z.prototype, "invalid", void 0), s([n({
641
+ type: Boolean,
642
+ reflect: !0
643
+ })], z.prototype, "valid", void 0), s([n({
644
+ type: Boolean,
645
+ reflect: !0
646
+ })], z.prototype, "disabled", void 0), s([n({
647
+ type: Boolean,
648
+ reflect: !0
649
+ })], z.prototype, "readonly", void 0), s([n({
650
+ type: Boolean,
651
+ reflect: !0
652
+ })], z.prototype, "required", void 0), s([n({
653
+ reflect: !0,
654
+ converter: l("")
655
+ })], z.prototype, "name", void 0), s([n({ type: String })], z.prototype, "autocomplete", void 0), s([n({
656
+ type: String,
657
+ attribute: "accessible-label"
658
+ })], z.prototype, "accessibleLabel", void 0), s([n({
659
+ reflect: !0,
660
+ converter: l("")
661
+ })], z.prototype, "width", void 0), s([n({ type: Object })], z.prototype, "translations", void 0), s([r()], z.prototype, "_texts", void 0), s([r()], z.prototype, "_hasSlottedPicker", void 0), s([r()], z.prototype, "_pickerOpen", void 0), s([r()], z.prototype, "_pickerPopoverWidth", void 0), z = s([c("nldd-date-field")], z);
662
+ export { z as NLDDDateField };
@@ -0,0 +1,15 @@
1
+ // src/components/inputs/date-field/date-field.i18n.ts
2
+ var e = {
3
+ "components.date-field.to-pick-date-action": "Datum kiezen",
4
+ "components.date-field.default-label": "Datum",
5
+ "components.date-field.default-range-label": "Periode",
6
+ "components.date-field.cancel-action": "Annuleer",
7
+ "components.date-field.range-from-lowercase-label": "van",
8
+ "components.date-field.range-to-lowercase-label": "tot en met",
9
+ "components.date-field.range-to-short-lowercase-label": "t/m",
10
+ "components.date-field.bad-input-error-text": "Een datum als dd-mm-jjjj",
11
+ "components.date-field.range-underflow-error-text": "Een datum vanaf {date}",
12
+ "components.date-field.range-overflow-error-text": "Een datum tot en met {date}",
13
+ "components.date-field.range-incomplete-error-text": "De einddatum ontbreekt"
14
+ };
15
+ export { e as t };