@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.
- package/custom-elements.json +361 -10
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-GinEMPm9.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-OywRKaWj.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-vmZLo80s.js +662 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-CXDzSBoL.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-A2DFWrP9.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-DQ52qq5L.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-BLXecYsZ.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BtxzRedh.js +719 -0
- package/dist/cdn/chunks/menu-bar-BU3Hjk1b.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-C7LQ0NI_.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-CGbeEv_-.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-BzZWhXhc.js +57 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-CqN7ViYV.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-CFPBdETU.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-DH19p8So.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-CA8K1XjU.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field--5K0YTcr.js +607 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-BpyxOGmU.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-C24LqAzK.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-C_kLPVKD.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-CxV6ELE9.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +1 -0
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +1 -0
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +1 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -0
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +1 -0
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +1 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +1 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +1 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +1 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +1 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +9 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +20 -7
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -0
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +68 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +4 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +17 -2
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -0
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +4 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/nldd.min.js +729 -727
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +14 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +26 -8
- package/dist/utilities/return-focus.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +53 -1
- package/lint/format.js +6 -5
- package/lint/frontends.js +224 -16
- package/lint/linter.js +5 -3
- package/lint/main.js +36 -9
- package/lint/project.js +73 -4
- package/lint/rule-data.js +17 -2
- package/lint/tree.js +3 -0
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/utilities/focus-target.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
try {
|
|
4
|
+
let t = new URL(e, document.baseURI);
|
|
5
|
+
return t.origin === location.origin && t.pathname === location.pathname && t.search === location.search ? t.hash : "";
|
|
6
|
+
} catch {
|
|
7
|
+
return "";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function t(e, t) {
|
|
11
|
+
let n = e.slice(1);
|
|
12
|
+
if (!n) return null;
|
|
13
|
+
try {
|
|
14
|
+
n = decodeURIComponent(n);
|
|
15
|
+
} catch {}
|
|
16
|
+
return t.getRootNode().getElementById?.(n) ?? document.getElementById(n);
|
|
17
|
+
}
|
|
18
|
+
function n(e, t) {
|
|
19
|
+
let n = e.getAttribute("tabindex"), r = !1, i = () => {
|
|
20
|
+
r || (r = !0, e.removeEventListener("blur", i), n === null ? e.removeAttribute("tabindex") : e.setAttribute("tabindex", n));
|
|
21
|
+
};
|
|
22
|
+
return e.setAttribute("tabindex", "0"), e.addEventListener("blur", i), e.focus(t), e.getRootNode().activeElement === e ? i : (i(), null);
|
|
23
|
+
}
|
|
24
|
+
export { t as n, e as r, n as t };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { a as e, i as t, n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as r, o as i, t as a } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { n as s } from "./breakpoints-Cwor8TRP.js";
|
|
5
|
+
// src/components/forms/form-actions/form-actions.styles.ts
|
|
6
|
+
var c = e(s.mdMin), l = t`
|
|
7
|
+
:host {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/* # Host */
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
display: block;
|
|
16
|
+
width: 100%;
|
|
17
|
+
container-type: inline-size;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([hidden]) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/* # Block */
|
|
26
|
+
|
|
27
|
+
.form-actions {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([label-alignment="left"]) .form-actions,
|
|
33
|
+
:host([label-alignment="right"]) .form-actions,
|
|
34
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-actions,
|
|
35
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-actions {
|
|
36
|
+
@container (min-width: ${c}) {
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
gap: var(--semantics-forms-columns-gap);
|
|
39
|
+
align-items: start;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([label-alignment="left"]) .form-actions::before,
|
|
44
|
+
:host([label-alignment="right"]) .form-actions::before,
|
|
45
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-actions::before,
|
|
46
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-actions::before {
|
|
47
|
+
@container (min-width: ${c}) {
|
|
48
|
+
content: '';
|
|
49
|
+
width: var(--semantics-forms-label-column-width);
|
|
50
|
+
flex-grow: 0;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* # Elements */
|
|
57
|
+
|
|
58
|
+
.form-actions__main {
|
|
59
|
+
display: flex;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
flex-grow: 1;
|
|
62
|
+
flex-shrink: 1;
|
|
63
|
+
flex-basis: 0;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
// src/components/forms/form-actions/form-actions.template.ts
|
|
67
|
+
function u() {
|
|
68
|
+
return i`
|
|
69
|
+
<div class="form-actions">
|
|
70
|
+
<div class="form-actions__main">
|
|
71
|
+
<slot></slot>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
// src/components/forms/form-actions/form-actions.ts
|
|
77
|
+
var d = class extends r {
|
|
78
|
+
constructor(...e) {
|
|
79
|
+
super(...e), this.labelAlignment = void 0;
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
return u();
|
|
83
|
+
}
|
|
84
|
+
}, f = (d.styles = l, d);
|
|
85
|
+
a([n({
|
|
86
|
+
type: String,
|
|
87
|
+
reflect: !0,
|
|
88
|
+
attribute: "label-alignment"
|
|
89
|
+
})], f.prototype, "labelAlignment", void 0), f = a([o("nldd-form-actions")], f);
|
|
90
|
+
export { f as NLDDFormActions };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { n as e } from "./element-state-B-44fVqq.js";
|
|
2
|
+
// src/utilities/form-associated-mixin.ts
|
|
3
|
+
var t = [
|
|
4
|
+
"badInput",
|
|
5
|
+
"customError",
|
|
6
|
+
"patternMismatch",
|
|
7
|
+
"rangeOverflow",
|
|
8
|
+
"rangeUnderflow",
|
|
9
|
+
"stepMismatch",
|
|
10
|
+
"tooLong",
|
|
11
|
+
"tooShort",
|
|
12
|
+
"typeMismatch",
|
|
13
|
+
"valueMissing"
|
|
14
|
+
];
|
|
15
|
+
function n(n) {
|
|
16
|
+
var r;
|
|
17
|
+
class i extends n {
|
|
18
|
+
constructor(...t) {
|
|
19
|
+
super(...t), this.internals = e(this), this._customValidity = "", this.addController({ hostUpdated: () => this.commitFormValue() });
|
|
20
|
+
}
|
|
21
|
+
formValue() {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
formState() {}
|
|
25
|
+
commitFormValue() {
|
|
26
|
+
this.internals.setFormValue(this.formValue(), this.formState()), this.commitValidity();
|
|
27
|
+
}
|
|
28
|
+
validationTarget() {
|
|
29
|
+
return this.shadowRoot?.querySelector("input, textarea, select") ?? null;
|
|
30
|
+
}
|
|
31
|
+
validationAnchor() {
|
|
32
|
+
let e = this.validationTarget();
|
|
33
|
+
return e && !e.hidden ? e : void 0;
|
|
34
|
+
}
|
|
35
|
+
ownValidity() {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
setCustomValidity(e) {
|
|
39
|
+
this._customValidity = e, this.commitValidity();
|
|
40
|
+
}
|
|
41
|
+
commitValidity() {
|
|
42
|
+
let e = this.validationTarget(), n = this._customValidity, r = this.ownValidity();
|
|
43
|
+
if (!e && !n && !r) {
|
|
44
|
+
this.internals.setValidity({});
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
let i = {}, a = "";
|
|
48
|
+
if (e && e.willValidate && !e.validity.valid) {
|
|
49
|
+
for (let n of t) e.validity[n] && (i[n] = !0);
|
|
50
|
+
a = e.validationMessage;
|
|
51
|
+
}
|
|
52
|
+
r && (Object.assign(i, r.flags), a = r.message), n && (i.customError = !0, a = n);
|
|
53
|
+
let o = this.validationAnchor();
|
|
54
|
+
Object.keys(i).length === 0 ? this.internals.setValidity({}) : this.internals.setValidity(i, a, o);
|
|
55
|
+
}
|
|
56
|
+
formDisabledCallback(e) {
|
|
57
|
+
this.disabled = e;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return r = i, r.formAssociated = !0, i;
|
|
61
|
+
}
|
|
62
|
+
export { n as t };
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
import { a as e, i as t, n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { r as c } from "./element-state-B-44fVqq.js";
|
|
5
|
+
import { n as l, t as u } from "./shadow-resets-6SToDsPu.js";
|
|
6
|
+
import { n as d } from "./described-by-mixin-daRE7orX.js";
|
|
7
|
+
import { n as f } from "./breakpoints-Cwor8TRP.js";
|
|
8
|
+
import { r as p, t as m } from "./render-marked-DX_5ISZE.js";
|
|
9
|
+
import { t as h } from "./owned-attribute-x9OCTy_4.js";
|
|
10
|
+
// src/components/forms/form-field/form-field.styles.ts
|
|
11
|
+
var g = e(f.mdMin), _ = t`
|
|
12
|
+
:host {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/* # Host */
|
|
18
|
+
|
|
19
|
+
:host {
|
|
20
|
+
--_form-field-gap: var(--primitives-space-4);
|
|
21
|
+
--_form-field-description-gap: var(--primitives-space-4);
|
|
22
|
+
|
|
23
|
+
${u}
|
|
24
|
+
display: block;
|
|
25
|
+
width: 100%;
|
|
26
|
+
container-type: inline-size;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([hidden]) {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/* # Block */
|
|
35
|
+
|
|
36
|
+
.form-field {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: var(--_form-field-gap);
|
|
40
|
+
isolation: isolate;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([label-alignment="left"]) .form-field,
|
|
44
|
+
:host([label-alignment="right"]) .form-field,
|
|
45
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field,
|
|
46
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field {
|
|
47
|
+
@container (min-width: ${g}) {
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
gap: var(--semantics-forms-columns-gap);
|
|
50
|
+
align-items: start;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/* # Header */
|
|
56
|
+
|
|
57
|
+
.form-field__header {
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
display: flex;
|
|
60
|
+
/* Paints above .form-field__main so a label descender stays readable where it
|
|
61
|
+
overlaps the input focus ring — this is what lets the top-aligned --_form-field-gap stay
|
|
62
|
+
tight. Reset to auto in the side-by-side layout below (no vertical overlap there). */
|
|
63
|
+
z-index: 1;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([label-alignment="left"]) .form-field__header,
|
|
68
|
+
:host([label-alignment="right"]) .form-field__header,
|
|
69
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__header,
|
|
70
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__header {
|
|
71
|
+
@container (min-width: ${g}) {
|
|
72
|
+
z-index: auto;
|
|
73
|
+
width: var(--semantics-forms-label-column-width);
|
|
74
|
+
min-height: var(--semantics-controls-md-min-size);
|
|
75
|
+
flex-grow: 0;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([label-alignment="right"]) .form-field__header,
|
|
82
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__header {
|
|
83
|
+
@container (min-width: ${g}) {
|
|
84
|
+
align-items: end;
|
|
85
|
+
text-align: right;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host([label-alignment="left"]) .form-field__header,
|
|
90
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__header {
|
|
91
|
+
@container (min-width: ${g}) {
|
|
92
|
+
align-items: start;
|
|
93
|
+
text-align: left;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.form-field__header.is-empty {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([label-alignment="left"]) .form-field__header.is-empty,
|
|
102
|
+
:host([label-alignment="right"]) .form-field__header.is-empty,
|
|
103
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__header.is-empty,
|
|
104
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__header.is-empty {
|
|
105
|
+
@container (min-width: ${g}) {
|
|
106
|
+
display: flex;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/* # Label */
|
|
112
|
+
|
|
113
|
+
.form-field__label {
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
gap: var(--primitives-space-4);
|
|
116
|
+
align-items: baseline;
|
|
117
|
+
color: var(--semantics-content-color);
|
|
118
|
+
font: var(--primitives-font-body-md-regular-flat);
|
|
119
|
+
text-wrap: pretty;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([label-alignment="left"]) .form-field__label,
|
|
123
|
+
:host([label-alignment="right"]) .form-field__label,
|
|
124
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__label,
|
|
125
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__label {
|
|
126
|
+
@container (min-width: ${g}) {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
gap: var(--primitives-space-0);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host([label-alignment="right"]) .form-field__label,
|
|
134
|
+
:host(:not([label-alignment])[form-label-alignment="right"]) .form-field__label {
|
|
135
|
+
@container (min-width: ${g}) {
|
|
136
|
+
align-items: end;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host([label-alignment="left"]) .form-field__label,
|
|
141
|
+
:host(:not([label-alignment])[form-label-alignment="left"]) .form-field__label {
|
|
142
|
+
@container (min-width: ${g}) {
|
|
143
|
+
align-items: start;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/* # Optional indicator */
|
|
149
|
+
|
|
150
|
+
.form-field__optional {
|
|
151
|
+
color: var(--semantics-content-secondary-color);
|
|
152
|
+
font: var(--primitives-font-body-xs-regular-tight);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
/* # Supporting label */
|
|
157
|
+
|
|
158
|
+
.form-field__supporting-label {
|
|
159
|
+
color: var(--semantics-content-secondary-color);
|
|
160
|
+
font: var(--primitives-font-body-xs-regular-tight);
|
|
161
|
+
text-wrap: pretty;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
/* # Main */
|
|
166
|
+
|
|
167
|
+
.form-field__main {
|
|
168
|
+
display: flex;
|
|
169
|
+
min-width: 0;
|
|
170
|
+
flex-direction: column;
|
|
171
|
+
flex-grow: 1;
|
|
172
|
+
flex-shrink: 1;
|
|
173
|
+
flex-basis: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
::slotted(nldd-validation-list) {
|
|
177
|
+
margin-block-start: var(--_form-field-description-gap);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
`, v = t`
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/* # Host */
|
|
185
|
+
|
|
186
|
+
:host {
|
|
187
|
+
${u}
|
|
188
|
+
display: contents;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* display: contents outranks the UA [hidden] rule, so restate it here or
|
|
192
|
+
consumers cannot hide the help text (e.g. behind a period toggle). */
|
|
193
|
+
:host([hidden]) {
|
|
194
|
+
display: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
/* # Help text */
|
|
199
|
+
|
|
200
|
+
.form-field__help-text {
|
|
201
|
+
margin: var(--primitives-space-4) 0 0;
|
|
202
|
+
color: var(--semantics-content-color);
|
|
203
|
+
font: var(--primitives-font-body-sm-regular-tight);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
/* # Links */
|
|
208
|
+
|
|
209
|
+
::slotted(a) {
|
|
210
|
+
${l}
|
|
211
|
+
${u}
|
|
212
|
+
border-radius: var(--primitives-corner-radius-xxs) !important;
|
|
213
|
+
color: var(--semantics-links-color) !important;
|
|
214
|
+
text-decoration: underline !important;
|
|
215
|
+
text-underline-offset: var(--primitives-space-2) !important;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@media (hover: hover) {
|
|
219
|
+
::slotted(a:hover) {
|
|
220
|
+
color: var(--semantics-links-is-hovered-color) !important;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
::slotted(a:active) {
|
|
225
|
+
color: var(--semantics-links-is-active-color) !important;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
::slotted(a:focus-visible) {
|
|
229
|
+
outline: var(--semantics-focus-ring-outline) !important;
|
|
230
|
+
outline-offset: var(--semantics-focus-ring-outline-offset) !important;
|
|
231
|
+
box-shadow: var(--semantics-focus-ring-box-shadow) !important;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
::slotted(a:focus:not(:focus-visible)) {
|
|
235
|
+
outline: none !important;
|
|
236
|
+
}
|
|
237
|
+
`;
|
|
238
|
+
// src/components/forms/form-field/form-field.template.ts
|
|
239
|
+
function y(e) {
|
|
240
|
+
return i`<span class="form-field__optional">${e}</span>`;
|
|
241
|
+
}
|
|
242
|
+
function b(e) {
|
|
243
|
+
let t = !!e.label, n = !!e.supportingLabel, r = i`
|
|
244
|
+
<div class="form-field__header ${!t && !n ? "is-empty" : ""}">
|
|
245
|
+
${t ? i`
|
|
246
|
+
<label class="form-field__label"
|
|
247
|
+
@click=${(t) => e._focusInput(t)}
|
|
248
|
+
>
|
|
249
|
+
<span>${m(e.label)}</span>
|
|
250
|
+
${e.optional ? y(e.optionalLabel) : a}
|
|
251
|
+
</label>
|
|
252
|
+
` : a}
|
|
253
|
+
${n ? i`
|
|
254
|
+
<span class="form-field__supporting-label">${m(e.supportingLabel)}</span>
|
|
255
|
+
` : a}
|
|
256
|
+
</div>
|
|
257
|
+
`;
|
|
258
|
+
return i`
|
|
259
|
+
<div class="form-field">
|
|
260
|
+
${r}
|
|
261
|
+
<div class="form-field__main">
|
|
262
|
+
<slot></slot>
|
|
263
|
+
<slot name="help"></slot>
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
266
|
+
`;
|
|
267
|
+
}
|
|
268
|
+
function x(e) {
|
|
269
|
+
return i`
|
|
270
|
+
<p class="form-field__help-text">
|
|
271
|
+
<slot></slot>
|
|
272
|
+
</p>
|
|
273
|
+
`;
|
|
274
|
+
}
|
|
275
|
+
// src/components/forms/form-field/form-field.ts
|
|
276
|
+
var S, C, w = ["nldd-form-field-help-text"];
|
|
277
|
+
function T(e) {
|
|
278
|
+
return e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e.constructor.isFormInput === !0;
|
|
279
|
+
}
|
|
280
|
+
function E() {
|
|
281
|
+
return `nldd-field-input-${crypto.randomUUID?.() ?? Math.random().toString(36).slice(2)}`;
|
|
282
|
+
}
|
|
283
|
+
var D = (S = class extends r {
|
|
284
|
+
constructor(...e) {
|
|
285
|
+
super(...e), this.labelAlignment = void 0, this.label = "", this.supportingLabel = "", this.optional = !1, this.optionalLabel = "Optioneel", this._childObserver = null, this._listObserver = null, this._appliedLabel = null;
|
|
286
|
+
}
|
|
287
|
+
render() {
|
|
288
|
+
return b(this);
|
|
289
|
+
}
|
|
290
|
+
updated(e) {
|
|
291
|
+
e.has("label") && this._onSlotChange();
|
|
292
|
+
}
|
|
293
|
+
connectedCallback() {
|
|
294
|
+
super.connectedCallback(), this._childObserver = new MutationObserver(() => this._onSlotChange()), this._childObserver.observe(this, { childList: !0 });
|
|
295
|
+
}
|
|
296
|
+
firstUpdated() {
|
|
297
|
+
this._onSlotChange();
|
|
298
|
+
}
|
|
299
|
+
disconnectedCallback() {
|
|
300
|
+
super.disconnectedCallback(), this._childObserver?.disconnect(), this._listObserver?.disconnect();
|
|
301
|
+
}
|
|
302
|
+
_focusInput(e) {
|
|
303
|
+
let t = this._findInput();
|
|
304
|
+
t && (e.preventDefault(), t.focus());
|
|
305
|
+
}
|
|
306
|
+
_onSlotChange() {
|
|
307
|
+
let e = this._findInput();
|
|
308
|
+
c(this, "has-input", !!e), e && ("inputId" in e ? e.inputId = e.inputId || E() : e.id || (e.id = E()), this._applyAccessibleLabel(e), this._adoptValidationLists(e), this._syncDescription());
|
|
309
|
+
}
|
|
310
|
+
_applyAccessibleLabel(e) {
|
|
311
|
+
let t = "accessibleLabel" in e ? "accessible-label" : e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement ? "aria-label" : null;
|
|
312
|
+
t && (this._appliedLabel = h(e, t, p(this.label), this._appliedLabel));
|
|
313
|
+
}
|
|
314
|
+
_adoptValidationLists(e) {
|
|
315
|
+
let t = Array.from(this.children).filter((e) => e.tagName.toLowerCase() === "nldd-validation-list");
|
|
316
|
+
for (let n of t) n.getAttribute("for") || (n.control = e);
|
|
317
|
+
if (!import.meta.env?.DEV) return;
|
|
318
|
+
let n = t.some((e) => !e.getAttribute("for") && Array.from(e.children).some((e) => e.hasAttribute("match") || e.hasAttribute("minlength") || e.hasAttribute("maxlength"))), r = Array.from(this.children).filter((e) => !w.includes(e.tagName.toLowerCase()) && T(e));
|
|
319
|
+
c(this, "list-reads-first-control", n && r.length > 1);
|
|
320
|
+
}
|
|
321
|
+
_findInput() {
|
|
322
|
+
let e = Array.from(this.children).filter((e) => !w.includes(e.tagName.toLowerCase()));
|
|
323
|
+
for (let t of e) {
|
|
324
|
+
if (T(t)) return t;
|
|
325
|
+
let e = Array.from(t.querySelectorAll("*")).find(T);
|
|
326
|
+
if (e) return e;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
_syncDescription() {
|
|
330
|
+
let e = this._findInput();
|
|
331
|
+
if (!e) return;
|
|
332
|
+
let t = Array.from(this.children), n = (e) => e.tagName.toLowerCase(), r = t.filter((e) => n(e) === "nldd-validation-list");
|
|
333
|
+
this._listObserver ?? (this._listObserver = new MutationObserver(() => this._syncDescription())), this._listObserver.disconnect();
|
|
334
|
+
for (let e of r) this._listObserver.observe(e, {
|
|
335
|
+
childList: !0,
|
|
336
|
+
subtree: !0,
|
|
337
|
+
attributes: !0,
|
|
338
|
+
attributeFilter: ["visible"]
|
|
339
|
+
});
|
|
340
|
+
let i = [...r.flatMap((e) => Array.from(e.children).filter((e) => n(e) === "nldd-validation-item" && e.hasAttribute("visible"))), ...t.filter((e) => n(e) === "nldd-form-field-help-text")];
|
|
341
|
+
"describedByElements" in e ? e.describedByElements = i : d(e, i);
|
|
342
|
+
}
|
|
343
|
+
}, S.styles = _, S);
|
|
344
|
+
o([n({
|
|
345
|
+
type: String,
|
|
346
|
+
attribute: "label-alignment",
|
|
347
|
+
reflect: !0
|
|
348
|
+
})], D.prototype, "labelAlignment", void 0), o([n({ type: String })], D.prototype, "label", void 0), o([n({
|
|
349
|
+
type: String,
|
|
350
|
+
attribute: "supporting-label"
|
|
351
|
+
})], D.prototype, "supportingLabel", void 0), o([n({ type: Boolean })], D.prototype, "optional", void 0), o([n({
|
|
352
|
+
type: String,
|
|
353
|
+
attribute: "optional-label"
|
|
354
|
+
})], D.prototype, "optionalLabel", void 0), D = o([s("nldd-form-field")], D);
|
|
355
|
+
var O = (C = class extends r {
|
|
356
|
+
connectedCallback() {
|
|
357
|
+
super.connectedCallback(), this.slot = "help";
|
|
358
|
+
}
|
|
359
|
+
render() {
|
|
360
|
+
return x(this);
|
|
361
|
+
}
|
|
362
|
+
}, C.styles = v, C);
|
|
363
|
+
O = o([s("nldd-form-field-help-text")], O);
|
|
364
|
+
export { D as NLDDFormField, O as NLDDFormFieldHelpText };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import "./custom-element-q6NzoL5b.js";
|
|
2
|
+
// src/components/forms/form/form.ts
|
|
3
|
+
var e = [
|
|
4
|
+
"name",
|
|
5
|
+
"action",
|
|
6
|
+
"method",
|
|
7
|
+
"novalidate",
|
|
8
|
+
"enctype",
|
|
9
|
+
"target",
|
|
10
|
+
"autocomplete"
|
|
11
|
+
], t = "nldd-form-field, nldd-form-actions", n = class extends HTMLElement {
|
|
12
|
+
constructor(...e) {
|
|
13
|
+
super(...e), this._form = null, this._observer = null, this._handleInvalid = (e) => {
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
let t = e.target;
|
|
16
|
+
if (t) {
|
|
17
|
+
for (let e of this._form?.elements ?? []) this._judged.add(e);
|
|
18
|
+
this._judged.add(t), t.toggleAttribute("invalid", !0), !this._focusTarget && (this._focusTarget = t, queueMicrotask(() => {
|
|
19
|
+
this._focusTarget?.focus?.(), this._focusTarget = null;
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
}, this._focusTarget = null, this._handleReset = () => {
|
|
23
|
+
queueMicrotask(() => {
|
|
24
|
+
this._judged = /* @__PURE__ */ new WeakSet();
|
|
25
|
+
for (let e of this._form?.elements ?? []) e.removeAttribute("invalid");
|
|
26
|
+
for (let e of this.querySelectorAll("nldd-validation-list")) e.removeAttribute("judging");
|
|
27
|
+
});
|
|
28
|
+
}, this._handleInput = (e) => {
|
|
29
|
+
let t = e.target;
|
|
30
|
+
if (!t || !this._judged.has(t)) return;
|
|
31
|
+
let n = t.internals?.validity ?? t.validity;
|
|
32
|
+
n && t.toggleAttribute("invalid", !n.valid);
|
|
33
|
+
}, this._judged = /* @__PURE__ */ new WeakSet(), this._userProvidedForm = !1;
|
|
34
|
+
}
|
|
35
|
+
static get observedAttributes() {
|
|
36
|
+
return [...e, "label-alignment"];
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
if (!this._form) {
|
|
40
|
+
let e = this.querySelector(":scope > form");
|
|
41
|
+
if (e) this._form = e, this._userProvidedForm = !0, this._mirrorAttributes();
|
|
42
|
+
else {
|
|
43
|
+
let e = document.createElement("form");
|
|
44
|
+
this._form = e, this._mirrorAttributes();
|
|
45
|
+
let t = Array.from(this.childNodes);
|
|
46
|
+
for (let n of t) e.appendChild(n);
|
|
47
|
+
this.appendChild(e);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (!this._observer) {
|
|
51
|
+
let e = this._form, t = this._userProvidedForm;
|
|
52
|
+
this._observer = new MutationObserver((n) => {
|
|
53
|
+
for (let r of n) r.target === this && (t || r.addedNodes.forEach((t) => {
|
|
54
|
+
t !== e && e.appendChild(t);
|
|
55
|
+
}));
|
|
56
|
+
this._propagateLabelAlignment(this.getAttribute("label-alignment"));
|
|
57
|
+
}), this._observer.observe(this, {
|
|
58
|
+
childList: !0,
|
|
59
|
+
subtree: !0
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
this.addEventListener("invalid", this._handleInvalid, !0), this.addEventListener("input", this._handleInput), this.addEventListener("reset", this._handleReset), this._propagateLabelAlignment(this.getAttribute("label-alignment"));
|
|
63
|
+
}
|
|
64
|
+
disconnectedCallback() {
|
|
65
|
+
this._observer?.disconnect(), this._observer = null, this.removeEventListener("invalid", this._handleInvalid, !0), this.removeEventListener("input", this._handleInput), this.removeEventListener("reset", this._handleReset);
|
|
66
|
+
}
|
|
67
|
+
attributeChangedCallback(e, t, n) {
|
|
68
|
+
e === "label-alignment" ? this._propagateLabelAlignment(n) : this._form && (n === null ? this._form.removeAttribute(e) : this._form.setAttribute(e, n));
|
|
69
|
+
}
|
|
70
|
+
_propagateLabelAlignment(e) {
|
|
71
|
+
this.querySelectorAll(t).forEach((t) => t.setAttribute("form-label-alignment", e ?? "top"));
|
|
72
|
+
}
|
|
73
|
+
_mirrorAttributes() {
|
|
74
|
+
if (this._form) for (let t of e) {
|
|
75
|
+
let e = this.getAttribute(t);
|
|
76
|
+
e !== null && this._form.setAttribute(t, e);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
get form() {
|
|
80
|
+
return this._form;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
customElements.get("nldd-form") || customElements.define("nldd-form", n);
|
|
84
|
+
export { n as NLDDForm };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import "./custom-element-q6NzoL5b.js";
|
|
2
|
+
// src/components/forms/form-section/form-section.ts
|
|
3
|
+
var e = "form-section", t = "form-section__header", n = "form-section__title", r = "form-section__supporting-text", i = "form-section__main", a = class extends HTMLElement {
|
|
4
|
+
constructor(...e) {
|
|
5
|
+
super(...e), this._fieldset = null, this._legend = null, this._main = null, this._observer = null;
|
|
6
|
+
}
|
|
7
|
+
static get observedAttributes() {
|
|
8
|
+
return ["text", "supporting-text"];
|
|
9
|
+
}
|
|
10
|
+
get text() {
|
|
11
|
+
return this.getAttribute("text") ?? "";
|
|
12
|
+
}
|
|
13
|
+
set text(e) {
|
|
14
|
+
e ? this.setAttribute("text", e) : this.removeAttribute("text");
|
|
15
|
+
}
|
|
16
|
+
get supportingText() {
|
|
17
|
+
return this.getAttribute("supporting-text") ?? "";
|
|
18
|
+
}
|
|
19
|
+
set supportingText(e) {
|
|
20
|
+
e ? this.setAttribute("supporting-text", e) : this.removeAttribute("supporting-text");
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
if (this._fieldset || this._buildStructure(), this._renderLegend(), !this._observer) {
|
|
24
|
+
let e = this._main;
|
|
25
|
+
this._observer = new MutationObserver((t) => {
|
|
26
|
+
for (let n of t) n.target === this && n.addedNodes.forEach((t) => {
|
|
27
|
+
t !== this._fieldset && e?.appendChild(t);
|
|
28
|
+
});
|
|
29
|
+
}), this._observer.observe(this, { childList: !0 });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
disconnectedCallback() {
|
|
33
|
+
this._observer?.disconnect(), this._observer = null;
|
|
34
|
+
}
|
|
35
|
+
attributeChangedCallback(e) {
|
|
36
|
+
(e === "text" || e === "supporting-text") && this._legend && this._renderLegend();
|
|
37
|
+
}
|
|
38
|
+
_buildStructure() {
|
|
39
|
+
let n = Array.from(this.childNodes), r = document.createElement("fieldset");
|
|
40
|
+
r.className = e;
|
|
41
|
+
let a = document.createElement("legend");
|
|
42
|
+
a.className = t;
|
|
43
|
+
let o = document.createElement("div");
|
|
44
|
+
o.className = i, r.append(a, o);
|
|
45
|
+
for (let e of n) o.appendChild(e);
|
|
46
|
+
this.appendChild(r), this._fieldset = r, this._legend = a, this._main = o;
|
|
47
|
+
}
|
|
48
|
+
_renderLegend() {
|
|
49
|
+
let e = this._legend;
|
|
50
|
+
if (!e) return;
|
|
51
|
+
let t = this.text, i = this.supportingText, a = !!t || !!i;
|
|
52
|
+
if (e.textContent = "", t) {
|
|
53
|
+
let r = document.createElement("span");
|
|
54
|
+
r.className = n, r.textContent = t, e.appendChild(r);
|
|
55
|
+
}
|
|
56
|
+
if (i) {
|
|
57
|
+
let t = document.createElement("span");
|
|
58
|
+
t.className = r, t.textContent = i, e.appendChild(t);
|
|
59
|
+
}
|
|
60
|
+
e.hidden = !a;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
customElements.get("nldd-form-section") || customElements.define("nldd-form-section", a);
|
|
64
|
+
export { a as NLDDFormSection };
|