@nldd/design-system 0.20.0 → 0.21.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 (330) hide show
  1. package/custom-elements.json +204 -8
  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-rknt4FBO.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-DyBQSaQl.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-Clti_wKN.js +654 -0
  44. package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
  45. package/dist/cdn/chunks/date-picker-2TCQLd5D.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-CUc4WWY3.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-Bff6_1pp.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-Cg1l0HhB.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-BOu_pD1Q.js +719 -0
  118. package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
  119. package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.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-C-CVVtfl.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-Xmagtk6r.js +52 -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-BdVCqm2H.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-DP4jnS7g.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-BeXnOUTt.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-DmslEoPD.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-Cj5WojfO.js +597 -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-hvDB3l6O.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-iNd1VmuG.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-D1hjWIF3.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-t5iFkMLY.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/inputs/dropdown/dropdown.d.ts +22 -2
  260. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  261. package/dist/components/inputs/dropdown/dropdown.js +67 -11
  262. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  263. package/dist/components/layout/container/container.d.ts +15 -2
  264. package/dist/components/layout/container/container.d.ts.map +1 -1
  265. package/dist/components/layout/container/container.js +38 -3
  266. package/dist/components/layout/container/container.js.map +1 -1
  267. package/dist/components/layout/container/container.styles.js +1 -1
  268. package/dist/components/layout/container/container.template.js +1 -1
  269. package/dist/components/layout/container/container.template.js.map +1 -1
  270. package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
  271. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  272. package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
  273. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  274. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
  275. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  276. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
  277. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  278. package/dist/nldd.min.js +298 -298
  279. package/dist/types/react.d.ts +3323 -0
  280. package/dist/types/vue.d.ts +11 -3
  281. package/dist/utilities/autoloader.d.ts +33 -0
  282. package/dist/utilities/autoloader.d.ts.map +1 -0
  283. package/dist/utilities/autoloader.generated.d.ts +3 -0
  284. package/dist/utilities/autoloader.generated.d.ts.map +1 -0
  285. package/dist/utilities/autoloader.generated.js +141 -0
  286. package/dist/utilities/autoloader.generated.js.map +1 -0
  287. package/dist/utilities/autoloader.js +94 -0
  288. package/dist/utilities/autoloader.js.map +1 -0
  289. package/dist/utilities/dev-checks.d.ts +9 -0
  290. package/dist/utilities/dev-checks.d.ts.map +1 -1
  291. package/dist/utilities/dev-checks.js +45 -3
  292. package/dist/utilities/dev-checks.js.map +1 -1
  293. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  294. package/dist/utilities/dev-rules.generated.js +12 -2
  295. package/dist/utilities/dev-rules.generated.js.map +1 -1
  296. package/dist/utilities/loading-tags.d.ts +7 -0
  297. package/dist/utilities/loading-tags.d.ts.map +1 -0
  298. package/dist/utilities/loading-tags.js +7 -0
  299. package/dist/utilities/loading-tags.js.map +1 -0
  300. package/dist/utilities/owner-form.d.ts +3 -3
  301. package/dist/utilities/owner-form.d.ts.map +1 -1
  302. package/dist/utilities/owner-form.js +6 -3
  303. package/dist/utilities/owner-form.js.map +1 -1
  304. package/lint/data.generated.json +1 -1
  305. package/package.json +50 -11
  306. package/dist/components/breakpoints-DtL62nLI.js +0 -45
  307. package/dist/components/components.js +0 -68243
  308. package/dist/components/decorate-DD7uUxHb.js +0 -51
  309. package/dist/components/defer-focus-dzorHsCQ.js +0 -176
  310. package/dist/components/dev-checks-CLB9G43h.js +0 -2711
  311. package/dist/components/dist-245LaK9m.js +0 -1479
  312. package/dist/components/dist-BFZM0YsR.js +0 -15772
  313. package/dist/components/dist-BNkeFjc3.js +0 -1180
  314. package/dist/components/dist-CSC1dG3L.js +0 -365
  315. package/dist/components/dist-CeMOOqgP.js +0 -1509
  316. package/dist/components/dist-DFjwTlJV.js +0 -624
  317. package/dist/components/dist-DHhnz3Gv.js +0 -381
  318. package/dist/components/dist-PeUX4vPq.js +0 -2857
  319. package/dist/components/dist-m70B83qb.js +0 -463
  320. package/dist/components/element-state-BnarBv0M.js +0 -42
  321. package/dist/components/gherkin-DzYbEwDO.js +0 -107
  322. package/dist/components/icon-button-8gvQCwCW.js +0 -2305
  323. package/dist/components/input-modality-D_CY185R.js +0 -48
  324. package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
  325. package/dist/components/nl.generated-DzZkOgnP.js +0 -64
  326. package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
  327. package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
  328. package/dist/components/shell-Dh5IwHd-.js +0 -222
  329. package/dist/components/toml-D0Pix_8Q.js +0 -58
  330. package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
@@ -0,0 +1,654 @@
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 "./breakpoints-Cwor8TRP.js";
11
+ import "./popover-C-CVVtfl.js";
12
+ import "./container-rrbwk0z4.js";
13
+ import "./top-title-bar-iNFB2zQL.js";
14
+ import { t as m } from "./form-associated-mixin--GIbl98p.js";
15
+ import { t as h } from "./implicit-submission-Csbcor_E.js";
16
+ import { n as g, r as _ } from "./date-picker-2TCQLd5D.js";
17
+ import { t as v } from "./date-field.i18n-BTzc0E9a.js";
18
+ // src/components/inputs/date-field/date-field.styles.ts
19
+ var y = e(p.mdMin), b = t`
20
+ :host {
21
+ box-sizing: border-box;
22
+ }
23
+
24
+
25
+ /* # Host */
26
+
27
+ :host {
28
+ /* Roomier than the text measures. Not to prevent clipping (the digits are
29
+ tabular, so every date measures the same), but as air around the date and
30
+ as a grip to select and drag by. */
31
+ --_date-field-text-width: 10.5ch;
32
+ /* Room reserved for the separator. The character itself gets its own width,
33
+ because it is translatable and would clip in a fixed box. Whatever that
34
+ reservation gets wrong is absorbed by the end date field. */
35
+ --_date-field-separator-width: 3.5ch;
36
+ --_date-field-separator-padding-right: var(--primitives-space-6);
37
+ /* Left side of the field: it is a border-box, and padding-left already
38
+ subtracts one border, so both borders together add up to one extra. */
39
+ --_date-field-edge-width: calc(var(--_date-field-inline-padding) + var(--semantics-input-fields-border-width));
40
+ /* Everything that cannot shrink. Only the last date field stretches, so this
41
+ doubles as the lower bound: below it the calendar button would run out of
42
+ the field. */
43
+ --_date-field-fixed-width: calc(var(--_date-field-edge-width) + var(--_date-field-trailing-width));
44
+ --_date-field-width: calc(var(--_date-field-fixed-width) + var(--_date-field-text-width));
45
+ --_date-field-corner-radius: var(--semantics-controls-md-corner-radius);
46
+ --_date-field-background-color: var(--semantics-input-fields-background-color);
47
+ --_date-field-min-size: var(--semantics-controls-md-min-size);
48
+ --_date-field-inline-padding: var(--semantics-controls-md-inline-padding);
49
+ --_date-field-text-font: var(--semantics-input-fields-md-text-font);
50
+ --_date-field-validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
51
+ /* As much air to the right of the button as above and below it, so derived
52
+ from the height difference between field and button instead of a fixed
53
+ value. */
54
+ --_date-field-end-padding-right: calc((var(--_date-field-min-size) - var(--_date-field-picker-button-size)) / 2 - var(--semantics-input-fields-border-width));
55
+ --_date-field-picker-button-size: var(--semantics-controls-sm-min-size);
56
+ --_date-field-validation-icon-area-width: calc(var(--_date-field-min-size) - var(--semantics-input-fields-border-width) * 2);
57
+ --_date-field-trailing-width: calc(var(--_date-field-validation-icon-area-width) + var(--_date-field-picker-button-size) + var(--_date-field-end-padding-right));
58
+
59
+ ${u}
60
+ display: block;
61
+ width: var(--_date-field-width);
62
+ min-width: var(--_date-field-fixed-width);
63
+ max-width: 100%;
64
+ font: var(--_date-field-text-font);
65
+ -webkit-tap-highlight-color: transparent;
66
+ }
67
+
68
+ :host([hidden]) {
69
+ display: none;
70
+ }
71
+
72
+ /* The default width reserves a slot for both the picker button and the
73
+ validation icon, so the field never resizes when a validation state appears.
74
+ Without the button one slot is enough. */
75
+ /* 'fit-content' is not the CSS keyword here but this system's width word:
76
+ as wide as what is in it. Room held for a validation icon that is not
77
+ there is not in it, so what is left is the air the field needs between its
78
+ text and the picker button. The full slot comes back the moment a validation
79
+ state does, and the field grows at its trailing edge — after the picker
80
+ button, leaving the date, and a range's separator and end date, where it was. Opt-in, because only the consumer
81
+ knows whether this field is ever validated. */
82
+ :host([width="fit-content"]:not([valid]):not([invalid])) {
83
+ --_date-field-validation-icon-area-width: var(--primitives-space-8);
84
+ }
85
+
86
+ :host([no-picker]) {
87
+ --_date-field-fixed-width: calc(var(--_date-field-edge-width) + var(--_date-field-inline-padding) + var(--_date-field-validation-icon-area-width));
88
+ }
89
+
90
+ :host([range]) {
91
+ --_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));
92
+ }
93
+
94
+ :host([range][no-picker]) {
95
+ --_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));
96
+ }
97
+
98
+ :host([size="sm"]) {
99
+ --_date-field-corner-radius: var(--semantics-controls-sm-corner-radius);
100
+ --_date-field-min-size: var(--semantics-controls-sm-min-size);
101
+ --_date-field-inline-padding: var(--semantics-controls-sm-inline-padding);
102
+ --_date-field-text-font: var(--semantics-input-fields-sm-text-font);
103
+ --_date-field-validation-icon-size: var(--semantics-input-fields-sm-validation-icon-size);
104
+ --_date-field-picker-button-size: var(--semantics-controls-xs-min-size);
105
+ }
106
+
107
+
108
+ /* # Block */
109
+
110
+ .date-field {
111
+ box-sizing: border-box;
112
+ display: flex;
113
+ border: var(--semantics-input-fields-border);
114
+ border-radius: var(--_date-field-corner-radius);
115
+ background-color: var(--_date-field-background-color);
116
+ min-height: var(--_date-field-min-size);
117
+ padding-left: calc(var(--_date-field-inline-padding) - var(--semantics-input-fields-border-width));
118
+ flex-direction: row;
119
+ align-items: center;
120
+ }
121
+
122
+ :host([valid]) .date-field {
123
+ border-color: var(--semantics-input-fields-is-valid-border-color);
124
+ }
125
+
126
+ :host([invalid]) .date-field {
127
+ border-color: var(--semantics-input-fields-is-invalid-border-color);
128
+ }
129
+
130
+ :host([readonly]) .date-field {
131
+ --_date-field-background-color: var(--semantics-input-fields-is-read-only-background-color);
132
+ border-color: var(--semantics-input-fields-is-read-only-border-color);
133
+ }
134
+
135
+ :host([disabled]) .date-field {
136
+ opacity: var(--primitives-opacity-disabled);
137
+ }
138
+
139
+ .date-field:has(input:-webkit-autofill),
140
+ .date-field:has(input:autofill) {
141
+ --_date-field-background-color: var(--semantics-input-fields-is-autofill-background-color);
142
+ }
143
+
144
+ /* Keyed on the text input, not :focus-within: the calendar button and the
145
+ popover live inside this box too, so focus-within would draw a second ring
146
+ around the whole field while the button already has its own. */
147
+ .date-field:has(.date-field__input:focus) {
148
+ outline: var(--semantics-focus-ring-outline);
149
+ outline-offset: var(--semantics-focus-ring-outline-offset);
150
+ box-shadow: var(--semantics-focus-ring-box-shadow);
151
+ }
152
+
153
+
154
+ /* # Elements */
155
+
156
+ .date-field__input {
157
+ border-radius: calc(var(--_date-field-corner-radius) - var(--semantics-input-fields-border-width));
158
+ box-sizing: border-box;
159
+ margin: 0;
160
+ outline: none;
161
+ border: none;
162
+ background: transparent;
163
+ min-width: 0;
164
+ min-height: calc(var(--_date-field-min-size) - var(--semantics-input-fields-border-width) * 2);
165
+ overflow: hidden;
166
+ padding: 0;
167
+ flex-grow: 1;
168
+ color: var(--semantics-content-color);
169
+ font: var(--_date-field-text-font);
170
+ appearance: none;
171
+ }
172
+
173
+ :host([disabled]) .date-field__input {
174
+ pointer-events: none;
175
+ }
176
+
177
+ .date-field__input::placeholder {
178
+ color: var(--semantics-input-fields-placeholder-color);
179
+ }
180
+
181
+ .date-field__input:-webkit-autofill,
182
+ .date-field__input:autofill,
183
+ .date-field__input:-webkit-autofill:disabled,
184
+ .date-field__input:autofill:disabled {
185
+ box-shadow: 0 0 0 999px var(--_date-field-background-color) inset;
186
+ -webkit-text-fill-color: var(--semantics-input-fields-is-autofill-content-color);
187
+ }
188
+
189
+ /* Fixed size: if the start field grew and shrank along, the separator and the
190
+ end date would jump the moment the validation icon claims its room or the
191
+ field is set narrower. */
192
+ :host([range]) .date-field__input {
193
+ width: var(--_date-field-text-width);
194
+ flex-grow: 0;
195
+ flex-shrink: 0;
196
+ }
197
+
198
+ /* The end date does stretch and shrink, just as in a plain date field: it
199
+ comes after the separator, so nothing before it shifts. */
200
+ :host([range]) .date-field__input:last-of-type {
201
+ flex-grow: 1;
202
+ flex-shrink: 1;
203
+ }
204
+
205
+ /* Room after it only: the start field is a little roomier than its text, and
206
+ that slack already supplies the room before it. Padding on both sides makes
207
+ it look lopsided on screen. */
208
+ .date-field__separator {
209
+ flex-shrink: 0;
210
+ padding-right: var(--_date-field-separator-padding-right);
211
+ color: var(--semantics-content-secondary-color);
212
+ }
213
+
214
+ .date-field__input-fade {
215
+ position: relative;
216
+ width: 0;
217
+ flex-shrink: 0;
218
+ align-self: stretch;
219
+ }
220
+
221
+ .date-field__input-fade::after {
222
+ content: '';
223
+ position: absolute;
224
+ top: 0;
225
+ right: 0;
226
+ bottom: 0;
227
+ border-radius: var(--_date-field-corner-radius);
228
+ background: linear-gradient(90deg, color-mix(in oklch, var(--_date-field-background-color) 0%, transparent) 0%, var(--_date-field-background-color) 100%);
229
+ pointer-events: none;
230
+ width: var(--primitives-space-8);
231
+ }
232
+
233
+ .date-field__validation-icon-area {
234
+ display: flex;
235
+ width: var(--_date-field-validation-icon-area-width);
236
+ height: 100%;
237
+ flex-shrink: 0;
238
+ align-items: center;
239
+ justify-content: center;
240
+ }
241
+
242
+ :host([valid]) .date-field__validation-icon-area {
243
+ color: var(--semantics-input-fields-is-valid-icon-color);
244
+ }
245
+
246
+ :host([invalid]) .date-field__validation-icon-area {
247
+ color: var(--semantics-input-fields-is-invalid-icon-color);
248
+ }
249
+
250
+ .date-field__validation-icon {
251
+ display: flex;
252
+ width: var(--_date-field-validation-icon-size);
253
+ height: var(--_date-field-validation-icon-size);
254
+ }
255
+
256
+ .date-field__picker-button {
257
+ position: relative;
258
+ flex-shrink: 0;
259
+ padding-right: var(--_date-field-end-padding-right);
260
+ display: flex;
261
+ align-items: center;
262
+ }
263
+
264
+
265
+ /* The sheet's title bar only makes sense on a small screen, where the popover
266
+ becomes a bottom sheet. It shows by default and is hidden from md up. */
267
+ @media (min-width: ${y}) {
268
+ .date-field__picker-button nldd-top-title-bar {
269
+ display: none;
270
+ }
271
+ }
272
+ `, x = "calc(var(--semantics-controls-md-min-size) * 7 + var(--primitives-space-16) * 2)";
273
+ function S(e) {
274
+ let t = e.invalid ? "invalid" : e.valid ? "valid" : "";
275
+ return t ? a`
276
+ <div class="date-field__validation-icon-area">
277
+ <span class="date-field__validation-icon">
278
+ <nldd-icon
279
+ icon=${t}
280
+ aria-hidden="true"
281
+ ></nldd-icon>
282
+ </span>
283
+ </div>
284
+ ` : o;
285
+ }
286
+ function C(e) {
287
+ if (e.noPicker || e.readonly) return o;
288
+ let t = e.size === "sm" ? "xs" : "sm";
289
+ return a`
290
+ <div class="date-field__picker-button">
291
+ <nldd-icon-button
292
+ appearance="neutral-tinted"
293
+ size=${t}
294
+ icon="calendar"
295
+ text=${e._t("components.date-field.to-pick-date-action")}
296
+ tooltip-timing="never"
297
+ ?disabled=${e.disabled}
298
+ @click=${e._handlePickerClick}
299
+ ></nldd-icon-button>
300
+ <nldd-popover
301
+ accessible-label=${e._pickerLabel}
302
+ placement="bottom-end"
303
+ width=${e._pickerPopoverWidth}
304
+ @toggle=${e._handlePopoverToggle}
305
+ >
306
+ <nldd-top-title-bar
307
+ text=${e._pickerLabel}
308
+ dismiss-text=${e._t("components.date-field.cancel-action")}
309
+ @dismiss=${e._handlePickerDismiss}
310
+ ></nldd-top-title-bar>
311
+ <nldd-container
312
+ padding="16"
313
+ @change=${e._handlePickerChange}
314
+ >
315
+ <slot
316
+ name="picker"
317
+ @slotchange=${e._handlePickerSlotChange}
318
+ ></slot>
319
+ ${e._hasSlottedPicker ? o : a`
320
+ <nldd-date-picker
321
+ autofocus
322
+ ?range=${e.range}
323
+ value=${e.range ? o : e.value || o}
324
+ start=${e.range && e._startValue || o}
325
+ end=${e.range && e._endValue || o}
326
+ min=${e.min || o}
327
+ max=${e.max || o}
328
+ ></nldd-date-picker>
329
+ `}
330
+ </nldd-container>
331
+ </nldd-popover>
332
+ </div>
333
+ `;
334
+ }
335
+ function w(e, t, n) {
336
+ 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;
337
+ return a`
338
+ <input class="date-field__input"
339
+ id=${n === 0 && e.inputId || o}
340
+ type="text"
341
+ inputmode="numeric"
342
+ .value=${t}
343
+ placeholder=${e.placeholder || o}
344
+ ?disabled=${e.disabled}
345
+ ?readonly=${e.readonly}
346
+ ?required=${e.required}
347
+ autocomplete=${n === 0 && e.autocomplete || o}
348
+ aria-label=${r || o}
349
+ aria-invalid=${e.invalid ? "true" : o}
350
+ @keydown=${(t) => e._handleInputKeydown(t, n)}
351
+ @input=${(t) => e._handleInput(t, n)}
352
+ @change=${(t) => e._handleChange(t, n)}
353
+ >
354
+ `;
355
+ }
356
+ function T(e) {
357
+ return a`
358
+ <span class="date-field__separator"
359
+ aria-hidden="true"
360
+ >
361
+ ${e._t("components.date-field.range-to-short-lowercase-label")}
362
+ </span>
363
+ `;
364
+ }
365
+ function E(e) {
366
+ return a`
367
+ <div class="date-field"
368
+ role=${e.range ? "group" : o}
369
+ aria-label=${e.range ? e._fieldLabel : o}
370
+ @focusout=${e._handleFieldBlur}
371
+ >
372
+ ${e._texts.map((t, n) => a`
373
+ ${n > 0 ? T(e) : o}
374
+ ${w(e, t, n)}
375
+ `)}
376
+ <div class="date-field__input-fade"></div>
377
+ ${S(e)}
378
+ ${C(e)}
379
+ </div>
380
+ `;
381
+ }
382
+ function D(e) {
383
+ let t = e.trim();
384
+ if (t === "") return null;
385
+ let n = /^(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})$/.exec(t);
386
+ if (n) return _(Number(n[1]), Number(n[2]), Number(n[3]));
387
+ let r = /^(\d{1,2})[-/.](\d{1,2})[-/.](\d{4})$/.exec(t);
388
+ if (r) return _(Number(r[3]), Number(r[2]), Number(r[1]));
389
+ let i = /^(\d{2})(?:\s*[./-]\s*|\s+)?(\d{2})(?:\s*[./-]\s*|\s+)?(\d{4})$/.exec(t);
390
+ return i ? _(Number(i[3]), Number(i[2]), Number(i[1])) : null;
391
+ }
392
+ function O(e) {
393
+ let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
394
+ return t ? `${t[3]}-${t[2]}-${t[1]}` : "";
395
+ }
396
+ function k(e, t) {
397
+ let n = e ? e.split("/") : [];
398
+ return Array.from({ length: t }, (e, t) => n[t] ?? "");
399
+ }
400
+ function A(e) {
401
+ return e.every((e) => e === "") ? "" : e.join("/");
402
+ }
403
+ function j(e, t) {
404
+ return {
405
+ min: e ? g(e) : "",
406
+ max: t ? g(t) : ""
407
+ };
408
+ }
409
+ function M(e, t) {
410
+ let n = D(e);
411
+ return !n || t.min && n < t.min || t.max && n > t.max ? "" : n;
412
+ }
413
+ function N(e) {
414
+ let [t, n] = e;
415
+ return e.length !== 2 || !t || !n || t <= n ? null : [n, t];
416
+ }
417
+ function P(e, t, n) {
418
+ for (let n of e) {
419
+ if (!n.trim()) continue;
420
+ let e = D(n);
421
+ if (!e) return { flag: "badInput" };
422
+ if (t.min && e < t.min) return {
423
+ flag: "rangeUnderflow",
424
+ bound: t.min
425
+ };
426
+ if (t.max && e > t.max) return {
427
+ flag: "rangeOverflow",
428
+ bound: t.max
429
+ };
430
+ }
431
+ let [r, ...i] = e;
432
+ return n && r?.trim() && i.some((e) => !e.trim()) ? { flag: "valueMissing" } : null;
433
+ }
434
+ // src/components/inputs/date-field/date-field.ts
435
+ var F = class extends f(m(i)) {
436
+ constructor(...e) {
437
+ 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 = x;
438
+ }
439
+ get _endCount() {
440
+ return this.range ? 2 : 1;
441
+ }
442
+ get _ends() {
443
+ return k(this.value, this._endCount);
444
+ }
445
+ get _startValue() {
446
+ return this._ends[0] ?? "";
447
+ }
448
+ get _endValue() {
449
+ return this.range ? this._ends[1] ?? "" : "";
450
+ }
451
+ _setEnd(e, t) {
452
+ let n = this._ends;
453
+ n[e] = t, this.value = A(n);
454
+ }
455
+ _sortRange() {
456
+ let e = N(this._ends);
457
+ return e ? (this.value = A(e), !0) : !1;
458
+ }
459
+ _handleFieldBlur(e) {
460
+ let t = e.relatedTarget;
461
+ t && this.shadowRoot?.contains(t) || this._sortRange() && this._emit("change");
462
+ }
463
+ _commit(e) {
464
+ return M(e, j(this.min, this.max));
465
+ }
466
+ get _slottedPicker() {
467
+ return (this.shadowRoot?.querySelector("slot[name=\"picker\"]"))?.assignedElements({ flatten: !0 }).find((e) => e.localName === "nldd-date-picker") ?? null;
468
+ }
469
+ _handlePickerSlotChange() {
470
+ this._hasSlottedPicker = this._slottedPicker !== null;
471
+ }
472
+ _syncSlottedPicker() {
473
+ let e = this._slottedPicker;
474
+ 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));
475
+ }
476
+ firstUpdated() {
477
+ this._initialValue = this.value, this._handlePickerSlotChange();
478
+ }
479
+ willUpdate(e) {
480
+ if (!e.has("value") && !e.has("range")) return;
481
+ e.has("range") && (this.value = A(this._ends));
482
+ let t = this._ends;
483
+ this._texts = t.map((e, t) => {
484
+ let n = this._texts[t] ?? "";
485
+ return this._commit(n) === e ? n : O(e);
486
+ });
487
+ }
488
+ updated(e) {
489
+ if (e.has("width")) {
490
+ let e = this.width;
491
+ 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");
492
+ }
493
+ let t = this._popover, n = this._pickerTrigger;
494
+ t && n && t.anchorElement !== n && (t.anchorElement = n), this._syncSlottedPicker();
495
+ }
496
+ formResetCallback() {
497
+ this._texts = k(this._initialValue, this._endCount).map(O), this.value = this._initialValue;
498
+ }
499
+ formStateRestoreCallback(e) {
500
+ typeof e == "string" && (this.value = e);
501
+ }
502
+ _t(e) {
503
+ return d(this.translations, v, e);
504
+ }
505
+ get _fieldLabel() {
506
+ return this.accessibleLabel || this._t(this.range ? "components.date-field.default-range-label" : "components.date-field.default-label");
507
+ }
508
+ get _pickerTrigger() {
509
+ return this.shadowRoot?.querySelector(".date-field__picker-button nldd-icon-button") ?? null;
510
+ }
511
+ get _popover() {
512
+ return this.shadowRoot?.querySelector("nldd-popover") ?? null;
513
+ }
514
+ get _pickerLabel() {
515
+ return this.accessibleLabel || this._t("components.date-field.to-pick-date-action");
516
+ }
517
+ _handlePickerClick() {
518
+ this._pickerOpen ? this._popover?.hide() : this._popover?.show();
519
+ }
520
+ _applyCloseFocus() {
521
+ let e = this._focusOnClose;
522
+ if (this._focusOnClose = null, e === "trigger") this._pickerTrigger?.focus();
523
+ else if (e === "last-input") {
524
+ let e = this._inputs;
525
+ this._focusAtEnd(e[e.length - 1]);
526
+ }
527
+ }
528
+ _handlePickerDismiss(e) {
529
+ e.stopPropagation(), this._focusOnClose = "trigger", this._popover?.hide();
530
+ }
531
+ _handlePopoverToggle(e) {
532
+ this._pickerOpen = e.newState === "open", this._pickerOpen ? (this._sortRange() && this._emit("change"), this._fitPopoverToSlottedPicker()) : queueMicrotask(() => this._applyCloseFocus());
533
+ }
534
+ _fitPopoverToSlottedPicker() {
535
+ let e = this._slottedPicker;
536
+ if (!e) {
537
+ this._pickerPopoverWidth = x;
538
+ return;
539
+ }
540
+ let t = e.getBoundingClientRect().width;
541
+ t > 0 && (this._pickerPopoverWidth = `calc(${Math.ceil(t)}px + var(--primitives-space-16) * 2)`);
542
+ }
543
+ _handlePickerChange(e) {
544
+ e.stopPropagation();
545
+ let t = e.detail;
546
+ if (this.range) {
547
+ if (typeof t?.start != "string" || typeof t?.end != "string") return;
548
+ this.value = A([t.start, t.end]), this._focusOnClose = "last-input";
549
+ } else {
550
+ if (typeof t?.value != "string") return;
551
+ this.value = t.value, this._focusOnClose = "trigger";
552
+ }
553
+ this._popover?.hide(), this._emit("change");
554
+ }
555
+ get _inputs() {
556
+ return [...this.shadowRoot?.querySelectorAll(".date-field__input") ?? []];
557
+ }
558
+ _focusAtEnd(e) {
559
+ if (!e) return;
560
+ e.focus();
561
+ let t = e.value.length;
562
+ e.setSelectionRange(t, t);
563
+ }
564
+ _handleInputKeydown(e, t) {
565
+ h(this, e) || t !== 0 && e.key === "Backspace" && e.target.value === "" && (e.preventDefault(), this._focusAtEnd(this._inputs[t - 1]));
566
+ }
567
+ _setText(e, t) {
568
+ let n = [...this._texts];
569
+ n[e] = t, this._texts = n;
570
+ }
571
+ _handleInput(e, t = 0) {
572
+ e.stopPropagation();
573
+ let n = e.target.value;
574
+ this._setText(t, n), this._setEnd(t, this._commit(n)), this._emit("input");
575
+ }
576
+ _handleChange(e, t = 0) {
577
+ e.stopPropagation();
578
+ let n = e.target.value, r = this._commit(n);
579
+ this._setText(t, r ? O(r) : n), this._setEnd(t, r), this._emit("change");
580
+ }
581
+ formValue() {
582
+ return this.value;
583
+ }
584
+ ownValidity() {
585
+ let e = P(this._texts, j(this.min, this.max), this.required);
586
+ return e ? {
587
+ flags: { [e.flag]: !0 },
588
+ message: this._problemMessage(e)
589
+ } : null;
590
+ }
591
+ _problemMessage(e) {
592
+ switch (e.flag) {
593
+ case "badInput": return this._t("components.date-field.bad-input-error-text");
594
+ case "rangeUnderflow": return this._t("components.date-field.range-underflow-error-text").replace("{date}", O(e.bound));
595
+ case "rangeOverflow": return this._t("components.date-field.range-overflow-error-text").replace("{date}", O(e.bound));
596
+ case "valueMissing": return this._t("components.date-field.range-incomplete-error-text");
597
+ }
598
+ }
599
+ _emit(e) {
600
+ this.commitFormValue(), this.dispatchEvent(new CustomEvent(e, {
601
+ detail: { value: this.value },
602
+ bubbles: !0,
603
+ composed: !0
604
+ }));
605
+ }
606
+ render() {
607
+ return E(this);
608
+ }
609
+ }, I = (F.shadowRootOptions = {
610
+ ...i.shadowRootOptions,
611
+ delegatesFocus: !0
612
+ }, F.styles = b, F.isFormInput = !0, F.blocksImplicitSubmission = !0, F);
613
+ s([n({
614
+ reflect: !0,
615
+ converter: l("md")
616
+ })], I.prototype, "size", void 0), s([n({ type: String })], I.prototype, "value", void 0), s([n({
617
+ type: Boolean,
618
+ reflect: !0
619
+ })], I.prototype, "range", void 0), s([n({ type: String })], I.prototype, "min", void 0), s([n({ type: String })], I.prototype, "max", void 0), s([n({
620
+ type: Boolean,
621
+ reflect: !0,
622
+ attribute: "no-picker"
623
+ })], I.prototype, "noPicker", void 0), s([n({
624
+ type: String,
625
+ attribute: "input-id"
626
+ })], I.prototype, "inputId", void 0), s([n({
627
+ reflect: !0,
628
+ converter: l("")
629
+ })], I.prototype, "placeholder", void 0), s([n({
630
+ type: Boolean,
631
+ reflect: !0
632
+ })], I.prototype, "invalid", void 0), s([n({
633
+ type: Boolean,
634
+ reflect: !0
635
+ })], I.prototype, "valid", void 0), s([n({
636
+ type: Boolean,
637
+ reflect: !0
638
+ })], I.prototype, "disabled", void 0), s([n({
639
+ type: Boolean,
640
+ reflect: !0
641
+ })], I.prototype, "readonly", void 0), s([n({
642
+ type: Boolean,
643
+ reflect: !0
644
+ })], I.prototype, "required", void 0), s([n({
645
+ reflect: !0,
646
+ converter: l("")
647
+ })], I.prototype, "name", void 0), s([n({ type: String })], I.prototype, "autocomplete", void 0), s([n({
648
+ type: String,
649
+ attribute: "accessible-label"
650
+ })], I.prototype, "accessibleLabel", void 0), s([n({
651
+ reflect: !0,
652
+ converter: l("")
653
+ })], I.prototype, "width", void 0), s([n({ type: Object })], I.prototype, "translations", void 0), s([r()], I.prototype, "_texts", void 0), s([r()], I.prototype, "_hasSlottedPicker", void 0), s([r()], I.prototype, "_pickerOpen", void 0), s([r()], I.prototype, "_pickerPopoverWidth", void 0), I = s([c("nldd-date-field")], I);
654
+ export { I 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 };