@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,28 @@
|
|
|
1
|
+
import { t as e } from "./base-CfuoYRhN.js";
|
|
2
|
+
// node_modules/@lit/reactive-element/decorators/query.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
return (r, i, a) => {
|
|
5
|
+
let o = (e) => e.renderRoot?.querySelector(t) ?? null;
|
|
6
|
+
if (n) {
|
|
7
|
+
let { get: t, set: n } = typeof i == "object" ? r : a ?? (() => {
|
|
8
|
+
let e = Symbol();
|
|
9
|
+
return {
|
|
10
|
+
get() {
|
|
11
|
+
return this[e];
|
|
12
|
+
},
|
|
13
|
+
set(t) {
|
|
14
|
+
this[e] = t;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
})();
|
|
18
|
+
return e(r, i, { get() {
|
|
19
|
+
let e = t.call(this);
|
|
20
|
+
return e === void 0 && (e = o(this), (e !== null || this.hasUpdated) && n.call(this, e)), e;
|
|
21
|
+
} });
|
|
22
|
+
}
|
|
23
|
+
return e(r, i, { get() {
|
|
24
|
+
return o(this);
|
|
25
|
+
} });
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export { t };
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { r as e } from "./icon-BORlalt0.js";
|
|
2
|
+
import { i as t, n } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as r, o as i, t as a } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as c } from "./described-by-mixin-daRE7orX.js";
|
|
7
|
+
import { t as l } from "./owned-attribute-x9OCTy_4.js";
|
|
8
|
+
import { t as u } from "./form-associated-mixin--GIbl98p.js";
|
|
9
|
+
import { t as d } from "./implicit-submission-Csbcor_E.js";
|
|
10
|
+
import { t as f } from "./radio-position-CXWYAjaz.js";
|
|
11
|
+
// src/components/inputs/radio-button/radio-button.styles.ts
|
|
12
|
+
var p = t`
|
|
13
|
+
:host {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* # Host */
|
|
19
|
+
|
|
20
|
+
:host {
|
|
21
|
+
--_radio-button-border-width: var(--primitives-border-width-regular);
|
|
22
|
+
--_radio-button-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
23
|
+
--_radio-button-background-color: var(--semantics-surfaces-base-background-color);
|
|
24
|
+
--_radio-button-is-selected-inner-shape-border-width: var(--primitives-border-width-regular);
|
|
25
|
+
--_radio-button-is-selected-inner-shape-border-color: var(--semantics-controls-is-selected-mark-color);
|
|
26
|
+
--_radio-button-is-selected-border-color: var(--semantics-controls-is-selected-indicator-color);
|
|
27
|
+
--_radio-button-is-selected-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
28
|
+
--_radio-button-is-hovered-border-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-700));
|
|
29
|
+
--_radio-button-is-selected-is-hovered-border-color: var(--semantics-controls-is-selected-is-hovered-indicator-color);
|
|
30
|
+
--_radio-button-is-selected-is-hovered-background-color: var(--semantics-controls-is-selected-is-hovered-indicator-color);
|
|
31
|
+
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--semantics-controls-is-selected-mark-color);
|
|
32
|
+
--_radio-button-is-active-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-750));
|
|
33
|
+
--_radio-button-is-selected-is-active-border-color: var(--semantics-controls-is-selected-is-active-indicator-color);
|
|
34
|
+
--_radio-button-is-selected-is-active-background-color: var(--semantics-controls-is-selected-is-active-indicator-color);
|
|
35
|
+
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--semantics-controls-is-selected-mark-color);
|
|
36
|
+
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
position: relative;
|
|
39
|
+
width: var(--semantics-controls-xs-min-size);
|
|
40
|
+
height: var(--semantics-controls-xs-min-size);
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
-webkit-user-select: none;
|
|
44
|
+
user-select: none;
|
|
45
|
+
-webkit-tap-highlight-color: transparent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([hidden]) {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/* ## Colors */
|
|
54
|
+
|
|
55
|
+
:host([color="inherit"]) {
|
|
56
|
+
--_radio-button-border-color: currentColor;
|
|
57
|
+
--_radio-button-background-color: transparent;
|
|
58
|
+
--_radio-button-is-hovered-border-color: currentColor;
|
|
59
|
+
--_radio-button-is-active-border-color: currentColor;
|
|
60
|
+
--_radio-button-is-selected-border-color: currentColor;
|
|
61
|
+
--_radio-button-is-selected-background-color: currentColor;
|
|
62
|
+
--_radio-button-is-selected-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
63
|
+
--_radio-button-is-selected-is-hovered-border-color: currentColor;
|
|
64
|
+
--_radio-button-is-selected-is-hovered-background-color: currentColor;
|
|
65
|
+
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
66
|
+
--_radio-button-is-selected-is-active-border-color: currentColor;
|
|
67
|
+
--_radio-button-is-selected-is-active-background-color: currentColor;
|
|
68
|
+
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/* # Elements */
|
|
73
|
+
|
|
74
|
+
.radio-button__outer-shape {
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
position: relative;
|
|
77
|
+
border: var(--_radio-button-border-width) solid var(--_radio-button-border-color);
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
background-color: var(--_radio-button-background-color);
|
|
80
|
+
width: var(--semantics-controls-xs-min-size);
|
|
81
|
+
height: var(--semantics-controls-xs-min-size);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.radio-button__inner-shape {
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 50%;
|
|
88
|
+
left: 50%;
|
|
89
|
+
border: var(--_radio-button-is-selected-inner-shape-border-width) solid var(--_radio-button-is-selected-inner-shape-border-color);
|
|
90
|
+
border-radius: 50%;
|
|
91
|
+
width: var(--primitives-space-20);
|
|
92
|
+
height: var(--primitives-space-20);
|
|
93
|
+
transform: translate(-50%, -50%) scale(0);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([checked]) .radio-button__outer-shape {
|
|
97
|
+
border-color: var(--_radio-button-is-selected-border-color);
|
|
98
|
+
background-color: var(--_radio-button-is-selected-background-color);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([checked]) .radio-button__inner-shape {
|
|
102
|
+
transform: translate(-50%, -50%) scale(1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (hover: hover) {
|
|
106
|
+
:host(:hover:not([disabled])) .radio-button__outer-shape {
|
|
107
|
+
border-color: var(--_radio-button-is-hovered-border-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([checked]:hover:not([disabled])) .radio-button__outer-shape {
|
|
111
|
+
border-color: var(--_radio-button-is-selected-is-hovered-border-color);
|
|
112
|
+
background-color: var(--_radio-button-is-selected-is-hovered-background-color);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:host([checked]:hover:not([disabled])) .radio-button__inner-shape {
|
|
116
|
+
border-color: var(--_radio-button-is-selected-is-hovered-inner-shape-border-color);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host(:active:not([disabled])) .radio-button__outer-shape {
|
|
121
|
+
border-color: var(--_radio-button-is-active-border-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host([checked]:active:not([disabled])) .radio-button__outer-shape {
|
|
125
|
+
border-color: var(--_radio-button-is-selected-is-active-border-color);
|
|
126
|
+
background-color: var(--_radio-button-is-selected-is-active-background-color);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([checked]:active:not([disabled])) .radio-button__inner-shape {
|
|
130
|
+
border-color: var(--_radio-button-is-selected-is-active-inner-shape-border-color);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host(:focus-visible) {
|
|
134
|
+
outline: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host(:focus-visible) .radio-button__outer-shape,
|
|
138
|
+
:host([focus-ring]) .radio-button__outer-shape {
|
|
139
|
+
outline: var(--semantics-focus-ring-outline);
|
|
140
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
141
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host([disabled]) .radio-button__outer-shape {
|
|
145
|
+
opacity: var(--primitives-opacity-disabled);
|
|
146
|
+
}
|
|
147
|
+
`;
|
|
148
|
+
// src/components/inputs/radio-button/radio-button.template.ts
|
|
149
|
+
function m(e) {
|
|
150
|
+
return e.decorative ? i`
|
|
151
|
+
<div class="radio-button__outer-shape"
|
|
152
|
+
aria-hidden="true"
|
|
153
|
+
>
|
|
154
|
+
<div class="radio-button__inner-shape"></div>
|
|
155
|
+
</div>
|
|
156
|
+
` : i`
|
|
157
|
+
<input class="radio-button__validation-input"
|
|
158
|
+
type="radio"
|
|
159
|
+
name="nldd-validation"
|
|
160
|
+
hidden
|
|
161
|
+
?required=${e.required}
|
|
162
|
+
?disabled=${e.disabled}
|
|
163
|
+
.checked=${e._groupHasSelection}
|
|
164
|
+
>
|
|
165
|
+
<div class="radio-button__outer-shape"
|
|
166
|
+
aria-hidden="true"
|
|
167
|
+
>
|
|
168
|
+
<div class="radio-button__inner-shape"></div>
|
|
169
|
+
</div>
|
|
170
|
+
`;
|
|
171
|
+
}
|
|
172
|
+
// src/utilities/radio-grouping.ts
|
|
173
|
+
var h = "nldd-radio-button, nldd-radio-button-field", g = {
|
|
174
|
+
ArrowDown: 1,
|
|
175
|
+
ArrowRight: 1,
|
|
176
|
+
ArrowUp: -1,
|
|
177
|
+
ArrowLeft: -1
|
|
178
|
+
}, _ = /* @__PURE__ */ new WeakMap();
|
|
179
|
+
function v(e) {
|
|
180
|
+
return !e.decorative;
|
|
181
|
+
}
|
|
182
|
+
var y = class e {
|
|
183
|
+
constructor(e) {
|
|
184
|
+
this.host = e, this.position = null, this.answered = !1, this._groupedIn = null, _.set(e, this), e.addController(this);
|
|
185
|
+
}
|
|
186
|
+
hostConnected() {
|
|
187
|
+
queueMicrotask(() => this.regroup());
|
|
188
|
+
}
|
|
189
|
+
hostDisconnected() {
|
|
190
|
+
this.regroup();
|
|
191
|
+
}
|
|
192
|
+
regroup() {
|
|
193
|
+
let t = this._groupedIn, n = this._key();
|
|
194
|
+
this._groupedIn = n;
|
|
195
|
+
let r = !n || !t || t.root !== n.root || t.name !== n.name || t.form !== n.form;
|
|
196
|
+
t && r && e._recount(t), n ? e._recount(n) : this._apply(null, this.host.checked);
|
|
197
|
+
}
|
|
198
|
+
refresh() {
|
|
199
|
+
this._groupedIn ? e._recount(this._groupedIn) : this._apply(null, this.host.checked);
|
|
200
|
+
}
|
|
201
|
+
uncheckOthers() {
|
|
202
|
+
let t = this._key();
|
|
203
|
+
if (t) for (let n of e._radiosIn(t)) n !== this.host && n.checked && (n.checked = !1, n.commitFormValue());
|
|
204
|
+
}
|
|
205
|
+
moveWithArrow(t) {
|
|
206
|
+
let n = g[t.key], r = n ? this._key() : null;
|
|
207
|
+
if (!r || !this.position) return !1;
|
|
208
|
+
let i = e._radiosIn(r).filter((e) => !e.disabled), a = i.indexOf(this.host);
|
|
209
|
+
if (a === -1) return !1;
|
|
210
|
+
t.preventDefault();
|
|
211
|
+
let o = i[(a + n + i.length) % i.length];
|
|
212
|
+
return o.focus(), o.select(), !0;
|
|
213
|
+
}
|
|
214
|
+
_key() {
|
|
215
|
+
return !this.host.isConnected || !v(this.host) || !this.host.name ? null : {
|
|
216
|
+
root: this.host.getRootNode(),
|
|
217
|
+
name: this.host.name,
|
|
218
|
+
form: this.host.internals.form
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
_apply(e, t) {
|
|
222
|
+
(this.answered !== t || this.position?.posInSet !== e?.posInSet || this.position?.setSize !== e?.setSize || this.position?.tabbable !== e?.tabbable) && (this.position = e, this.answered = t, this.host.requestUpdate());
|
|
223
|
+
}
|
|
224
|
+
static _radiosIn({ root: e, name: t, form: n }) {
|
|
225
|
+
let r = e.querySelectorAll?.(h) ?? [];
|
|
226
|
+
return Array.from(r).filter((e) => _.has(e) && e.isConnected && e.name === t && v(e) && e.internals.form === n);
|
|
227
|
+
}
|
|
228
|
+
static _recount(t) {
|
|
229
|
+
let n = e._radiosIn(t), r = n.length > 1 ? f(n, (e) => e.checked, (e) => e.disabled) : [], i = n.some((e) => e.checked);
|
|
230
|
+
n.forEach((e, t) => {
|
|
231
|
+
_.get(e)?._apply(r[t] ?? null, i);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}, b = /* @__PURE__ */ e({ NLDDRadioButton: () => S }), x = class extends c(u(r)) {
|
|
235
|
+
constructor(...e) {
|
|
236
|
+
super(...e), this._initialChecked = !1, this.checked = !1, this.decorative = !1, this.disabled = !1, this.noTab = !1, this.required = !1, this.focusRing = !1, this.name = "", this.value = "", this.color = "", this.accessibleLabel = "", this.invalid = !1, this._grouping = new y(this), this._appliedLabel = null, this._onClick = () => {
|
|
237
|
+
this.select();
|
|
238
|
+
}, this._onKeyDown = (e) => {
|
|
239
|
+
this.disabled || this.decorative || (e.key === " " ? (e.preventDefault(), this.select()) : e.key === "Enter" ? d(this, e) : this.noTab || this._grouping.moveWithArrow(e));
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
get _groupHasSelection() {
|
|
243
|
+
return this._grouping.answered;
|
|
244
|
+
}
|
|
245
|
+
connectedCallback() {
|
|
246
|
+
super.connectedCallback(), this.addEventListener("click", this._onClick), this.addEventListener("keydown", this._onKeyDown);
|
|
247
|
+
}
|
|
248
|
+
disconnectedCallback() {
|
|
249
|
+
super.disconnectedCallback(), this.removeEventListener("click", this._onClick), this.removeEventListener("keydown", this._onKeyDown);
|
|
250
|
+
}
|
|
251
|
+
firstUpdated() {
|
|
252
|
+
this._initialChecked = this.checked;
|
|
253
|
+
}
|
|
254
|
+
willUpdate(e) {
|
|
255
|
+
e.has("checked") && this.checked && this._grouping.uncheckOthers(), e.has("name") || e.has("decorative") ? this._grouping.regroup() : (e.has("checked") || e.has("disabled")) && this._grouping.refresh();
|
|
256
|
+
}
|
|
257
|
+
updated(e) {
|
|
258
|
+
super.updated(e), this._syncHostAria();
|
|
259
|
+
}
|
|
260
|
+
_syncHostAria() {
|
|
261
|
+
if (this.decorative) {
|
|
262
|
+
for (let e of [
|
|
263
|
+
"role",
|
|
264
|
+
"aria-checked",
|
|
265
|
+
"aria-disabled",
|
|
266
|
+
"aria-posinset",
|
|
267
|
+
"aria-setsize",
|
|
268
|
+
"tabindex"
|
|
269
|
+
]) this.removeAttribute(e);
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.checked)), this._appliedLabel = l(this, "aria-label", this.accessibleLabel, this._appliedLabel), this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled");
|
|
273
|
+
let e = this._grouping.position;
|
|
274
|
+
e ? (this.setAttribute("aria-posinset", String(e.posInSet)), this.setAttribute("aria-setsize", String(e.setSize))) : (this.removeAttribute("aria-posinset"), this.removeAttribute("aria-setsize"));
|
|
275
|
+
let t = !this.disabled && !this.noTab && e?.tabbable !== !1;
|
|
276
|
+
this.setAttribute("tabindex", t ? "0" : "-1");
|
|
277
|
+
}
|
|
278
|
+
describedTarget() {
|
|
279
|
+
return this;
|
|
280
|
+
}
|
|
281
|
+
formValue() {
|
|
282
|
+
return this.checked ? this.value : null;
|
|
283
|
+
}
|
|
284
|
+
formResetCallback() {
|
|
285
|
+
this.checked = this._initialChecked;
|
|
286
|
+
}
|
|
287
|
+
formStateRestoreCallback(e) {
|
|
288
|
+
this.checked = e !== null;
|
|
289
|
+
}
|
|
290
|
+
select() {
|
|
291
|
+
this.disabled || this.decorative || this.checked || (this.checked = !0, this.commitFormValue(), this._grouping.uncheckOthers(), this.dispatchEvent(new CustomEvent("change", {
|
|
292
|
+
detail: {
|
|
293
|
+
checked: !0,
|
|
294
|
+
value: this.value,
|
|
295
|
+
name: this.name
|
|
296
|
+
},
|
|
297
|
+
bubbles: !0,
|
|
298
|
+
composed: !0
|
|
299
|
+
})));
|
|
300
|
+
}
|
|
301
|
+
render() {
|
|
302
|
+
return m(this);
|
|
303
|
+
}
|
|
304
|
+
}, S = (x.styles = p, x.isFormInput = !0, x);
|
|
305
|
+
a([n({
|
|
306
|
+
type: Boolean,
|
|
307
|
+
reflect: !0
|
|
308
|
+
})], S.prototype, "checked", void 0), a([n({
|
|
309
|
+
type: Boolean,
|
|
310
|
+
reflect: !0
|
|
311
|
+
})], S.prototype, "decorative", void 0), a([n({
|
|
312
|
+
type: Boolean,
|
|
313
|
+
reflect: !0
|
|
314
|
+
})], S.prototype, "disabled", void 0), a([n({
|
|
315
|
+
type: Boolean,
|
|
316
|
+
reflect: !0,
|
|
317
|
+
attribute: "no-tab"
|
|
318
|
+
})], S.prototype, "noTab", void 0), a([n({
|
|
319
|
+
type: Boolean,
|
|
320
|
+
reflect: !0
|
|
321
|
+
})], S.prototype, "required", void 0), a([n({
|
|
322
|
+
type: Boolean,
|
|
323
|
+
reflect: !0,
|
|
324
|
+
attribute: "focus-ring"
|
|
325
|
+
})], S.prototype, "focusRing", void 0), a([n({
|
|
326
|
+
reflect: !0,
|
|
327
|
+
converter: s("")
|
|
328
|
+
})], S.prototype, "name", void 0), a([n({ type: String })], S.prototype, "value", void 0), a([n({
|
|
329
|
+
reflect: !0,
|
|
330
|
+
converter: s("")
|
|
331
|
+
})], S.prototype, "color", void 0), a([n({
|
|
332
|
+
type: String,
|
|
333
|
+
attribute: "accessible-label"
|
|
334
|
+
})], S.prototype, "accessibleLabel", void 0), a([n({
|
|
335
|
+
type: Boolean,
|
|
336
|
+
reflect: !0
|
|
337
|
+
})], S.prototype, "invalid", void 0), S = a([o("nldd-radio-button")], S);
|
|
338
|
+
export { y as n, b as t };
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { i as e, n as t, t as 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 { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { t as l } from "./shadow-resets-6SToDsPu.js";
|
|
6
|
+
import { t as u } from "./described-by-mixin-daRE7orX.js";
|
|
7
|
+
import { t as d } from "./input-modality-XE0B7yCn.js";
|
|
8
|
+
import { t as f } from "./owned-attribute-x9OCTy_4.js";
|
|
9
|
+
import { t as p } from "./form-associated-mixin--GIbl98p.js";
|
|
10
|
+
import { t as m } from "./implicit-submission-Csbcor_E.js";
|
|
11
|
+
import { n as h } from "./radio-button-GHyO-GQB.js";
|
|
12
|
+
// src/components/inputs/radio-button-field/radio-button-field.styles.ts
|
|
13
|
+
var g = e`
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/* # Host */
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
${l}
|
|
23
|
+
display: block;
|
|
24
|
+
position: relative;
|
|
25
|
+
cursor: default;
|
|
26
|
+
-webkit-tap-highlight-color: transparent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([hidden]) {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host(:focus-visible) {
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/* # Block */
|
|
39
|
+
|
|
40
|
+
.radio-button-field {
|
|
41
|
+
display: flex;
|
|
42
|
+
min-height: var(--semantics-controls-md-min-size);
|
|
43
|
+
flex-direction: row;
|
|
44
|
+
gap: var(--primitives-space-8);
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/* ## Colors */
|
|
50
|
+
|
|
51
|
+
:host([color="inherit"]) .radio-button-field__label {
|
|
52
|
+
color: inherit;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/* # Elements */
|
|
57
|
+
|
|
58
|
+
.radio-button-field__control {
|
|
59
|
+
display: flex;
|
|
60
|
+
min-height: var(--semantics-controls-md-min-size);
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
align-items: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.radio-button-field__label {
|
|
66
|
+
display: flex;
|
|
67
|
+
cursor: default;
|
|
68
|
+
padding-top: calc((var(--semantics-controls-md-min-size) - 1em * var(--primitives-line-height-snug)) / 2);
|
|
69
|
+
flex-grow: 1;
|
|
70
|
+
color: var(--semantics-content-color);
|
|
71
|
+
font: var(--primitives-font-body-md-regular-snug);
|
|
72
|
+
text-wrap: pretty;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([disabled]) .radio-button-field__label {
|
|
76
|
+
opacity: var(--primitives-opacity-disabled);
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
// src/components/inputs/radio-button-field/radio-button-field.template.ts
|
|
80
|
+
function _(e) {
|
|
81
|
+
return i`
|
|
82
|
+
<div class="radio-button-field">
|
|
83
|
+
<input class="radio-button-field__validation-input"
|
|
84
|
+
type="radio"
|
|
85
|
+
name="nldd-validation"
|
|
86
|
+
hidden
|
|
87
|
+
?required=${e.required}
|
|
88
|
+
?disabled=${e.disabled}
|
|
89
|
+
.checked=${e._answered}
|
|
90
|
+
>
|
|
91
|
+
<div class="radio-button-field__control">
|
|
92
|
+
<nldd-radio-button
|
|
93
|
+
color=${e.color || a}
|
|
94
|
+
decorative
|
|
95
|
+
?checked=${e.checked}
|
|
96
|
+
?disabled=${e.disabled}
|
|
97
|
+
?focus-ring=${e._focusRing}
|
|
98
|
+
></nldd-radio-button>
|
|
99
|
+
</div>
|
|
100
|
+
<span class="radio-button-field__label">
|
|
101
|
+
${e.label}
|
|
102
|
+
</span>
|
|
103
|
+
</div>
|
|
104
|
+
`;
|
|
105
|
+
}
|
|
106
|
+
// src/components/inputs/radio-button-field/radio-button-field.ts
|
|
107
|
+
var v = class extends u(p(r)) {
|
|
108
|
+
constructor(...e) {
|
|
109
|
+
super(...e), this._initialChecked = !1, this.checked = !1, this.disabled = !1, this.value = "", this.name = "", this.required = !1, this.color = "", this.label = "", this.invalid = !1, this._groupPosition = null, this._groupHasSelection = !1, this._grouping = new h(this), this._appliedLabel = null, this._focusRing = !1, this._onClick = () => {
|
|
110
|
+
this.select();
|
|
111
|
+
}, this._onFocus = () => {
|
|
112
|
+
this._focusRing = d();
|
|
113
|
+
}, this._onBlur = () => {
|
|
114
|
+
this._focusRing = !1;
|
|
115
|
+
}, this._onKeyDown = (e) => {
|
|
116
|
+
this.disabled || (e.key === " " ? (e.preventDefault(), this.select()) : e.key === "Enter" ? m(this, e) : this._groupPosition || this._grouping.moveWithArrow(e));
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
get _position() {
|
|
120
|
+
return this._groupPosition ?? this._grouping.position;
|
|
121
|
+
}
|
|
122
|
+
get _answered() {
|
|
123
|
+
return this._groupHasSelection || this._grouping.answered;
|
|
124
|
+
}
|
|
125
|
+
connectedCallback() {
|
|
126
|
+
super.connectedCallback(), this.addEventListener("click", this._onClick), this.addEventListener("keydown", this._onKeyDown), this.addEventListener("focus", this._onFocus), this.addEventListener("blur", this._onBlur);
|
|
127
|
+
}
|
|
128
|
+
disconnectedCallback() {
|
|
129
|
+
super.disconnectedCallback(), this.removeEventListener("click", this._onClick), this.removeEventListener("keydown", this._onKeyDown), this.removeEventListener("focus", this._onFocus), this.removeEventListener("blur", this._onBlur);
|
|
130
|
+
}
|
|
131
|
+
firstUpdated() {
|
|
132
|
+
this._initialChecked = this.checked;
|
|
133
|
+
}
|
|
134
|
+
willUpdate(e) {
|
|
135
|
+
e.has("checked") && this.checked && this._grouping.uncheckOthers(), e.has("name") ? this._grouping.regroup() : (e.has("checked") || e.has("disabled")) && this._grouping.refresh();
|
|
136
|
+
}
|
|
137
|
+
updated(e) {
|
|
138
|
+
super.updated(e), this._syncHostAria();
|
|
139
|
+
}
|
|
140
|
+
_syncHostAria() {
|
|
141
|
+
this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.checked)), this._appliedLabel = f(this, "aria-label", this.label, this._appliedLabel), this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled");
|
|
142
|
+
let e = this._position;
|
|
143
|
+
e ? (this.setAttribute("aria-posinset", String(e.posInSet)), this.setAttribute("aria-setsize", String(e.setSize))) : (this.removeAttribute("aria-posinset"), this.removeAttribute("aria-setsize"));
|
|
144
|
+
let t = !this.disabled && e?.tabbable !== !1;
|
|
145
|
+
this.setAttribute("tabindex", t ? "0" : "-1");
|
|
146
|
+
}
|
|
147
|
+
formValue() {
|
|
148
|
+
return this.checked ? this.value : null;
|
|
149
|
+
}
|
|
150
|
+
formResetCallback() {
|
|
151
|
+
this.checked = this._initialChecked;
|
|
152
|
+
}
|
|
153
|
+
formStateRestoreCallback(e) {
|
|
154
|
+
this.checked = e !== null;
|
|
155
|
+
}
|
|
156
|
+
select() {
|
|
157
|
+
this.disabled || this.checked || (this.checked = !0, this.commitFormValue(), this._grouping.uncheckOthers(), this.dispatchEvent(new CustomEvent("change", {
|
|
158
|
+
detail: {
|
|
159
|
+
checked: !0,
|
|
160
|
+
value: this.value
|
|
161
|
+
},
|
|
162
|
+
bubbles: !0,
|
|
163
|
+
composed: !0
|
|
164
|
+
})));
|
|
165
|
+
}
|
|
166
|
+
describedTarget() {
|
|
167
|
+
return this;
|
|
168
|
+
}
|
|
169
|
+
render() {
|
|
170
|
+
return _(this);
|
|
171
|
+
}
|
|
172
|
+
}, y = (v.styles = g, v.isFormInput = !0, v);
|
|
173
|
+
o([t({
|
|
174
|
+
type: Boolean,
|
|
175
|
+
reflect: !0
|
|
176
|
+
})], y.prototype, "checked", void 0), o([t({
|
|
177
|
+
type: Boolean,
|
|
178
|
+
reflect: !0
|
|
179
|
+
})], y.prototype, "disabled", void 0), o([t({ type: String })], y.prototype, "value", void 0), o([t({
|
|
180
|
+
reflect: !0,
|
|
181
|
+
converter: c("")
|
|
182
|
+
})], y.prototype, "name", void 0), o([t({
|
|
183
|
+
type: Boolean,
|
|
184
|
+
reflect: !0
|
|
185
|
+
})], y.prototype, "required", void 0), o([t({
|
|
186
|
+
reflect: !0,
|
|
187
|
+
converter: c("")
|
|
188
|
+
})], y.prototype, "color", void 0), o([t({ type: String })], y.prototype, "label", void 0), o([t({
|
|
189
|
+
type: Boolean,
|
|
190
|
+
reflect: !0
|
|
191
|
+
})], y.prototype, "invalid", void 0), o([n()], y.prototype, "_groupPosition", void 0), o([n()], y.prototype, "_groupHasSelection", void 0), o([n()], y.prototype, "_focusRing", void 0), y = o([s("nldd-radio-button-field")], y);
|
|
192
|
+
export { y as NLDDRadioButtonField };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n, o as r, t as i } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as o } from "./shadow-resets-6SToDsPu.js";
|
|
5
|
+
import { t as s } from "./defer-focus-F73ud2D9.js";
|
|
6
|
+
import { t as c } from "./owned-attribute-x9OCTy_4.js";
|
|
7
|
+
import { t as l } from "./radio-position-CXWYAjaz.js";
|
|
8
|
+
// src/components/inputs/radio-button-group/radio-button-group.styles.ts
|
|
9
|
+
var u = e`
|
|
10
|
+
:host {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/* # Host */
|
|
16
|
+
|
|
17
|
+
:host {
|
|
18
|
+
${o}
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([hidden]) {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* # Block */
|
|
28
|
+
|
|
29
|
+
.radio-button-group {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
// src/components/inputs/radio-button-group/radio-button-group.template.ts
|
|
35
|
+
function d(e) {
|
|
36
|
+
return r`
|
|
37
|
+
<div class="radio-button-group">
|
|
38
|
+
<slot @slotchange=${e._onSlotChange}></slot>
|
|
39
|
+
</div>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
// src/components/inputs/radio-button-group/radio-button-group.ts
|
|
43
|
+
var f = class extends n {
|
|
44
|
+
constructor(...e) {
|
|
45
|
+
super(...e), this.name = "", this.disabled = !1, this.required = !1, this.accessibleLabel = "", this.accessibleLabeledBy = "", this._appliedLabel = null, this.invalid = !1, this._handleChange = (e) => {
|
|
46
|
+
let t = e.target;
|
|
47
|
+
t.checked && (this._getFields().forEach((e) => {
|
|
48
|
+
e !== t && (e.checked = !1, e.commitFormValue?.());
|
|
49
|
+
}), this._positionFields());
|
|
50
|
+
}, this._handleKeyDown = (e) => {
|
|
51
|
+
if (e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "ArrowRight" && e.key !== "ArrowLeft") return;
|
|
52
|
+
let t = this._getEnabledFields();
|
|
53
|
+
if (t.length === 0) return;
|
|
54
|
+
let n = t.find((e) => e.checked) ?? t[0], r = t.indexOf(n), i = t[e.key === "ArrowDown" || e.key === "ArrowRight" ? (r + 1) % t.length : (r - 1 + t.length) % t.length];
|
|
55
|
+
i && (e.preventDefault(), n.checked = !1, n.commitFormValue?.(), i.checked = !0, i.commitFormValue?.(), this._positionFields(), i.focus(), i.dispatchEvent(new CustomEvent("change", {
|
|
56
|
+
detail: {
|
|
57
|
+
checked: !0,
|
|
58
|
+
value: i.value
|
|
59
|
+
},
|
|
60
|
+
bubbles: !0,
|
|
61
|
+
composed: !0
|
|
62
|
+
})));
|
|
63
|
+
}, this._onSlotChange = () => {
|
|
64
|
+
this._syncFields();
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
connectedCallback() {
|
|
68
|
+
super.connectedCallback(), this.setAttribute("role", "radiogroup"), this.addEventListener("keydown", this._handleKeyDown), this.addEventListener("change", this._handleChange);
|
|
69
|
+
}
|
|
70
|
+
disconnectedCallback() {
|
|
71
|
+
super.disconnectedCallback(), this.removeEventListener("keydown", this._handleKeyDown), this.removeEventListener("change", this._handleChange);
|
|
72
|
+
}
|
|
73
|
+
updated(e) {
|
|
74
|
+
(e.has("name") || e.has("disabled") || e.has("required")) && this._syncFields(), e.has("invalid") && (this.invalid ? this.setAttribute("aria-invalid", "true") : this.removeAttribute("aria-invalid")), e.has("accessibleLabel") && (this._appliedLabel = c(this, "aria-label", this.accessibleLabel, this._appliedLabel)), e.has("accessibleLabeledBy") && (this.accessibleLabeledBy ? this.setAttribute("aria-labelledby", this.accessibleLabeledBy) : this.removeAttribute("aria-labelledby")), e.has("required") && (this.required ? this.setAttribute("aria-required", "true") : this.removeAttribute("aria-required"));
|
|
75
|
+
}
|
|
76
|
+
_getFields() {
|
|
77
|
+
return Array.from(this.querySelectorAll("nldd-radio-button-field"));
|
|
78
|
+
}
|
|
79
|
+
_getEnabledFields() {
|
|
80
|
+
return this._getFields().filter((e) => !e.disabled);
|
|
81
|
+
}
|
|
82
|
+
_syncFields() {
|
|
83
|
+
this._getFields().forEach((e) => {
|
|
84
|
+
e.name = this.name, e.required = this.required, this.disabled ? e.hasAttribute("disabled") || (e.setAttribute("group-disabled", ""), e.disabled = !0) : e.hasAttribute("group-disabled") && (e.removeAttribute("group-disabled"), e.disabled = !1);
|
|
85
|
+
}), this._positionFields();
|
|
86
|
+
}
|
|
87
|
+
_positionFields() {
|
|
88
|
+
let e = this._getFields(), t = e.some((e) => e.checked);
|
|
89
|
+
l(e, (e) => e.checked, (e) => e.disabled).forEach((n, r) => {
|
|
90
|
+
e[r]._groupPosition = n, e[r]._groupHasSelection = t;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
focus(e) {
|
|
94
|
+
if (s(this, e)) return;
|
|
95
|
+
let t = this._getEnabledFields();
|
|
96
|
+
(t.find((e) => e.checked) ?? t[0])?.focus(e);
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
return d(this);
|
|
100
|
+
}
|
|
101
|
+
}, p = (f.styles = u, f.isFormInput = !0, f);
|
|
102
|
+
i([t({ type: String })], p.prototype, "name", void 0), i([t({
|
|
103
|
+
type: Boolean,
|
|
104
|
+
reflect: !0
|
|
105
|
+
})], p.prototype, "disabled", void 0), i([t({
|
|
106
|
+
type: Boolean,
|
|
107
|
+
reflect: !0
|
|
108
|
+
})], p.prototype, "required", void 0), i([t({
|
|
109
|
+
type: String,
|
|
110
|
+
attribute: "accessible-label"
|
|
111
|
+
})], p.prototype, "accessibleLabel", void 0), i([t({
|
|
112
|
+
type: String,
|
|
113
|
+
attribute: "accessible-labeled-by"
|
|
114
|
+
})], p.prototype, "accessibleLabeledBy", void 0), i([t({
|
|
115
|
+
type: Boolean,
|
|
116
|
+
reflect: !0
|
|
117
|
+
})], p.prototype, "invalid", void 0), p = i([a("nldd-radio-button-group")], p);
|
|
118
|
+
export { p as NLDDRadioButtonGroup };
|