@nldd/design-system 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +204 -8
- 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-rknt4FBO.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-DyBQSaQl.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-Clti_wKN.js +654 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-2TCQLd5D.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-CUc4WWY3.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-Bff6_1pp.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-Cg1l0HhB.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-BOu_pD1Q.js +719 -0
- package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.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-C-CVVtfl.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-Xmagtk6r.js +52 -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-BdVCqm2H.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-DP4jnS7g.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-BeXnOUTt.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-DmslEoPD.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-Cj5WojfO.js +597 -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-hvDB3l6O.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-iNd1VmuG.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-D1hjWIF3.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-t5iFkMLY.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/inputs/dropdown/dropdown.d.ts +22 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +67 -11
- package/dist/components/inputs/dropdown/dropdown.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/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 +298 -298
- 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/lint/data.generated.json +1 -1
- 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,430 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { i as e, n as t, t as n } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as l } from "./with-translations-XX14GKFh.js";
|
|
7
|
+
import { t as u } from "./defer-focus-F73ud2D9.js";
|
|
8
|
+
import "./tooltip-BsAHJjci.js";
|
|
9
|
+
import { t as d } from "./owned-attribute-x9OCTy_4.js";
|
|
10
|
+
import { t as f } from "./form-associated-mixin--GIbl98p.js";
|
|
11
|
+
import { t as p } from "./implicit-submission-Csbcor_E.js";
|
|
12
|
+
import { t as m } from "./radio-position-CXWYAjaz.js";
|
|
13
|
+
import { t as h } from "./swatch-picker.i18n-_G0nmnGe.js";
|
|
14
|
+
// src/components/inputs/swatch-picker/swatch-picker.styles.ts
|
|
15
|
+
var g = e`
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* # Host */
|
|
19
|
+
|
|
20
|
+
:host {
|
|
21
|
+
--_swatch-picker-gap: var(--primitives-space-8);
|
|
22
|
+
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([size="xs"]),
|
|
28
|
+
:host([size="sm"]) {
|
|
29
|
+
--_swatch-picker-gap: var(--primitives-space-6);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([hidden]) {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/* # Block */
|
|
38
|
+
|
|
39
|
+
.swatch-picker {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
gap: var(--_swatch-picker-gap);
|
|
43
|
+
}
|
|
44
|
+
`, _ = e`
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/* # Host */
|
|
48
|
+
|
|
49
|
+
:host {
|
|
50
|
+
--_swatch-picker-item-size: var(--semantics-controls-md-min-size);
|
|
51
|
+
--_swatch-picker-item-custom-color: transparent;
|
|
52
|
+
--_swatch-picker-item-background-color: var(--_swatch-picker-item-custom-color);
|
|
53
|
+
--_swatch-picker-item-highlight-border-width: var(--primitives-border-width-thin);
|
|
54
|
+
--_swatch-picker-item-highlight-border-color: light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.20));
|
|
55
|
+
--_swatch-picker-item-indicator-size: 60%;
|
|
56
|
+
--_swatch-picker-item-indicator-background-color: light-dark(rgba(255, 255, 255, 0.90), rgba(0, 0, 0, 0.60));
|
|
57
|
+
--_swatch-picker-item-indicator-icon-size: 88%;
|
|
58
|
+
--_swatch-picker-item-indicator-content-color: var(--primitives-color-neutral-1000);
|
|
59
|
+
--context-tooltip-fingertip-size: var(--semantics-fingertip-size);
|
|
60
|
+
/* The name sits over the swatch above it, and the swatches are what you
|
|
61
|
+
click: a click on the name lands on that swatch, not on this one. */
|
|
62
|
+
--context-tooltip-pointer-events: none;
|
|
63
|
+
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
border-radius: 50%;
|
|
67
|
+
outline: none;
|
|
68
|
+
-webkit-tap-highlight-color: transparent;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([size="xs"]) {
|
|
72
|
+
--_swatch-picker-item-size: var(--semantics-controls-xs-min-size);
|
|
73
|
+
--_swatch-picker-item-indicator-icon-size: 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([size="sm"]) {
|
|
77
|
+
--_swatch-picker-item-size: var(--semantics-controls-sm-min-size);
|
|
78
|
+
--_swatch-picker-item-indicator-icon-size: 94%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([color="lintblauw"]) { --_swatch-picker-item-background-color: var(--semantics-categories-lintblauw-filled-background-color); }
|
|
82
|
+
:host([color="donkerblauw"]) { --_swatch-picker-item-background-color: var(--semantics-categories-donkerblauw-filled-background-color); }
|
|
83
|
+
:host([color="hemelblauw"]) { --_swatch-picker-item-background-color: var(--semantics-categories-hemelblauw-filled-background-color); }
|
|
84
|
+
:host([color="lichtblauw"]) { --_swatch-picker-item-background-color: var(--semantics-categories-lichtblauw-filled-background-color); }
|
|
85
|
+
:host([color="paars"]) { --_swatch-picker-item-background-color: var(--semantics-categories-paars-filled-background-color); }
|
|
86
|
+
:host([color="violet"]) { --_swatch-picker-item-background-color: var(--semantics-categories-violet-filled-background-color); }
|
|
87
|
+
:host([color="robijnrood"]) { --_swatch-picker-item-background-color: var(--semantics-categories-robijnrood-filled-background-color); }
|
|
88
|
+
:host([color="roze"]) { --_swatch-picker-item-background-color: var(--semantics-categories-roze-filled-background-color); }
|
|
89
|
+
:host([color="rood"]) { --_swatch-picker-item-background-color: var(--semantics-categories-rood-filled-background-color); }
|
|
90
|
+
:host([color="oranje"]) { --_swatch-picker-item-background-color: var(--semantics-categories-oranje-filled-background-color); }
|
|
91
|
+
:host([color="donkergeel"]) { --_swatch-picker-item-background-color: var(--semantics-categories-donkergeel-filled-background-color); }
|
|
92
|
+
:host([color="geel"]) { --_swatch-picker-item-background-color: var(--semantics-categories-geel-filled-background-color); }
|
|
93
|
+
:host([color="donkerbruin"]) { --_swatch-picker-item-background-color: var(--semantics-categories-donkerbruin-filled-background-color); }
|
|
94
|
+
:host([color="bruin"]) { --_swatch-picker-item-background-color: var(--semantics-categories-bruin-filled-background-color); }
|
|
95
|
+
:host([color="donkergroen"]) { --_swatch-picker-item-background-color: var(--semantics-categories-donkergroen-filled-background-color); }
|
|
96
|
+
:host([color="groen"]) { --_swatch-picker-item-background-color: var(--semantics-categories-groen-filled-background-color); }
|
|
97
|
+
:host([color="mosgroen"]) { --_swatch-picker-item-background-color: var(--semantics-categories-mosgroen-filled-background-color); }
|
|
98
|
+
:host([color="mintgroen"]) { --_swatch-picker-item-background-color: var(--semantics-categories-mintgroen-filled-background-color); }
|
|
99
|
+
|
|
100
|
+
:host([hidden]) {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host([disabled]) {
|
|
105
|
+
opacity: var(--primitives-opacity-disabled);
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/* # Block */
|
|
111
|
+
|
|
112
|
+
.swatch-picker__item {
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
display: block;
|
|
115
|
+
position: relative;
|
|
116
|
+
border-radius: 50%;
|
|
117
|
+
background-color: var(--_swatch-picker-item-background-color);
|
|
118
|
+
width: var(--_swatch-picker-item-size);
|
|
119
|
+
height: var(--_swatch-picker-item-size);
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
forced-color-adjust: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.swatch-picker__item::after {
|
|
125
|
+
content: '';
|
|
126
|
+
position: absolute;
|
|
127
|
+
inset: 0;
|
|
128
|
+
border-radius: inherit;
|
|
129
|
+
box-shadow: inset 0 0 0 var(--_swatch-picker-item-highlight-border-width) var(--_swatch-picker-item-highlight-border-color);
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host(:focus-visible) .swatch-picker__item {
|
|
134
|
+
outline: var(--semantics-focus-ring-outline);
|
|
135
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
136
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@media (forced-colors: active) {
|
|
140
|
+
:host(:focus-visible) .swatch-picker__item {
|
|
141
|
+
outline: 2px solid Highlight;
|
|
142
|
+
outline-offset: 2px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
/* # Image */
|
|
148
|
+
|
|
149
|
+
.swatch-picker__item-image {
|
|
150
|
+
display: block;
|
|
151
|
+
position: absolute;
|
|
152
|
+
inset: 0;
|
|
153
|
+
border-radius: inherit;
|
|
154
|
+
width: 100%;
|
|
155
|
+
height: 100%;
|
|
156
|
+
object-fit: cover;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/* # Indicator */
|
|
161
|
+
|
|
162
|
+
.swatch-picker__item-indicator {
|
|
163
|
+
display: flex;
|
|
164
|
+
position: absolute;
|
|
165
|
+
top: 50%;
|
|
166
|
+
left: 50%;
|
|
167
|
+
visibility: hidden;
|
|
168
|
+
z-index: 1;
|
|
169
|
+
border-radius: 50%;
|
|
170
|
+
box-shadow: 0 0 0 var(--_swatch-picker-item-highlight-border-width) var(--_swatch-picker-item-highlight-border-color);
|
|
171
|
+
background-color: var(--_swatch-picker-item-indicator-background-color);
|
|
172
|
+
width: var(--_swatch-picker-item-indicator-size);
|
|
173
|
+
height: var(--_swatch-picker-item-indicator-size);
|
|
174
|
+
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
color: var(--_swatch-picker-item-indicator-content-color);
|
|
177
|
+
transform: translate(-50%, -50%);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host([selected]) .swatch-picker__item-indicator {
|
|
181
|
+
visibility: visible;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.swatch-picker__item-indicator-icon {
|
|
185
|
+
display: flex;
|
|
186
|
+
width: var(--_swatch-picker-item-indicator-icon-size);
|
|
187
|
+
height: var(--_swatch-picker-item-indicator-icon-size);
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
190
|
+
// src/components/inputs/swatch-picker/swatch-picker.template.ts
|
|
191
|
+
function v(e) {
|
|
192
|
+
return i`
|
|
193
|
+
<input class="swatch-picker__validation-input"
|
|
194
|
+
type="radio"
|
|
195
|
+
name="nldd-validation"
|
|
196
|
+
hidden
|
|
197
|
+
?required=${e.required}
|
|
198
|
+
?disabled=${e.disabled}
|
|
199
|
+
.checked=${!!e.value}
|
|
200
|
+
>
|
|
201
|
+
<div class="swatch-picker">
|
|
202
|
+
<slot @slotchange=${e._onSlotChange}></slot>
|
|
203
|
+
</div>
|
|
204
|
+
`;
|
|
205
|
+
}
|
|
206
|
+
function y(e) {
|
|
207
|
+
return i`
|
|
208
|
+
<nldd-tooltip
|
|
209
|
+
text=${e._name || a}
|
|
210
|
+
placement="top"
|
|
211
|
+
timing="instant"
|
|
212
|
+
>
|
|
213
|
+
<span class="swatch-picker__item">
|
|
214
|
+
${e.image ? i`<img class="swatch-picker__item-image" src=${e.image} srcset=${e.imageSrcset || a} alt="">` : a}
|
|
215
|
+
<span class="swatch-picker__item-indicator"
|
|
216
|
+
aria-hidden="true"
|
|
217
|
+
>
|
|
218
|
+
<span class="swatch-picker__item-indicator-icon">
|
|
219
|
+
<nldd-icon icon="check-mark-small"></nldd-icon>
|
|
220
|
+
</span>
|
|
221
|
+
</span>
|
|
222
|
+
</span>
|
|
223
|
+
</nldd-tooltip>
|
|
224
|
+
`;
|
|
225
|
+
}
|
|
226
|
+
// src/components/inputs/swatch-picker/swatch-picker.ts
|
|
227
|
+
var b, x, S = 1500, C = (b = class extends l(r, h) {
|
|
228
|
+
constructor(...e) {
|
|
229
|
+
super(...e), this.color = "", this.customColor = "", this.image = "", this.imageSrcset = "", this.text = "", this.selected = !1, this.disabled = !1, this.value = "", this.size = "md", this._groupPosition = null, this._appliedLabel = null, this._nameTimer = 0, this._pointerType = "", this._onFocus = () => {
|
|
230
|
+
this._tooltip?._handleFocusIn();
|
|
231
|
+
}, this._onBlur = () => {
|
|
232
|
+
this._tooltip?._handleTriggerLeave();
|
|
233
|
+
}, this._onClick = () => {
|
|
234
|
+
this._select(), this._showName();
|
|
235
|
+
}, this._onPointerDown = (e) => {
|
|
236
|
+
this._pointerType = e.pointerType, e.pointerType !== "touch" && this._showName();
|
|
237
|
+
}, this._onPointerLeave = (e) => {
|
|
238
|
+
e.pointerType !== "touch" && this._hideName();
|
|
239
|
+
}, this._onScroll = () => {
|
|
240
|
+
this._hideName();
|
|
241
|
+
}, this._onKeyDown = (e) => {
|
|
242
|
+
this.disabled || e.key === " " && (e.preventDefault(), this._select());
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
get _name() {
|
|
246
|
+
return this.text ? this.text : this.color ? this._t(`components.swatch-picker-item.${this.color}-text`) : "";
|
|
247
|
+
}
|
|
248
|
+
connectedCallback() {
|
|
249
|
+
super.connectedCallback(), this.addEventListener("pointerdown", this._onPointerDown), this.addEventListener("pointerleave", this._onPointerLeave), this.addEventListener("click", this._onClick), this.addEventListener("keydown", this._onKeyDown), this.addEventListener("focus", this._onFocus), this.addEventListener("blur", this._onBlur);
|
|
250
|
+
}
|
|
251
|
+
disconnectedCallback() {
|
|
252
|
+
super.disconnectedCallback(), this.removeEventListener("pointerdown", this._onPointerDown), this.removeEventListener("pointerleave", this._onPointerLeave), this.removeEventListener("click", this._onClick), this.removeEventListener("keydown", this._onKeyDown), this.removeEventListener("focus", this._onFocus), this.removeEventListener("blur", this._onBlur), this._hideName();
|
|
253
|
+
}
|
|
254
|
+
updated(e) {
|
|
255
|
+
e.has("customColor") && (this.customColor && CSS.supports("color", this.customColor) ? this.style.setProperty("--_swatch-picker-item-custom-color", this.customColor) : this.style.removeProperty("--_swatch-picker-item-custom-color")), this._syncAria();
|
|
256
|
+
}
|
|
257
|
+
_syncAria() {
|
|
258
|
+
this.setAttribute("role", "radio"), this.setAttribute("aria-checked", String(this.selected)), this._appliedLabel = d(this, "aria-label", this._name, this._appliedLabel), this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled");
|
|
259
|
+
let e = this._groupPosition;
|
|
260
|
+
e ? (this.setAttribute("aria-posinset", String(e.posInSet)), this.setAttribute("aria-setsize", String(e.setSize))) : (this.removeAttribute("aria-posinset"), this.removeAttribute("aria-setsize"));
|
|
261
|
+
let t = !this.disabled && e?.tabbable !== !1;
|
|
262
|
+
this.setAttribute("tabindex", t ? "0" : "-1");
|
|
263
|
+
}
|
|
264
|
+
get _tooltip() {
|
|
265
|
+
return this.shadowRoot?.querySelector("nldd-tooltip") ?? null;
|
|
266
|
+
}
|
|
267
|
+
_select() {
|
|
268
|
+
this.disabled || this.selected || this.dispatchEvent(new CustomEvent("item-change", {
|
|
269
|
+
detail: { value: this.value },
|
|
270
|
+
bubbles: !0,
|
|
271
|
+
composed: !0
|
|
272
|
+
}));
|
|
273
|
+
}
|
|
274
|
+
_showName() {
|
|
275
|
+
let e = this._tooltip;
|
|
276
|
+
e && this._name && (this.closest("nldd-swatch-picker")?.querySelectorAll("nldd-swatch-picker-item").forEach((e) => {
|
|
277
|
+
e !== this && e._hideName();
|
|
278
|
+
}), e.open = !0, clearTimeout(this._nameTimer), this._nameTimer = this._pointerType === "touch" ? window.setTimeout(() => this._hideName(), S) : 0, document.addEventListener("scroll", this._onScroll, {
|
|
279
|
+
capture: !0,
|
|
280
|
+
passive: !0
|
|
281
|
+
}));
|
|
282
|
+
}
|
|
283
|
+
_hideName() {
|
|
284
|
+
document.removeEventListener("scroll", this._onScroll, { capture: !0 }), clearTimeout(this._nameTimer), this._nameTimer = 0;
|
|
285
|
+
let e = this._tooltip;
|
|
286
|
+
e && (e.open = !1);
|
|
287
|
+
}
|
|
288
|
+
focus(e) {
|
|
289
|
+
u(this, e) || super.focus(e);
|
|
290
|
+
}
|
|
291
|
+
render() {
|
|
292
|
+
return y(this);
|
|
293
|
+
}
|
|
294
|
+
}, b.styles = _, b);
|
|
295
|
+
o([t({
|
|
296
|
+
reflect: !0,
|
|
297
|
+
converter: c("")
|
|
298
|
+
})], C.prototype, "color", void 0), o([t({
|
|
299
|
+
reflect: !0,
|
|
300
|
+
attribute: "custom-color",
|
|
301
|
+
converter: c("")
|
|
302
|
+
})], C.prototype, "customColor", void 0), o([t({ type: String })], C.prototype, "image", void 0), o([t({
|
|
303
|
+
type: String,
|
|
304
|
+
attribute: "image-srcset"
|
|
305
|
+
})], C.prototype, "imageSrcset", void 0), o([t({
|
|
306
|
+
reflect: !0,
|
|
307
|
+
converter: c("")
|
|
308
|
+
})], C.prototype, "text", void 0), o([t({
|
|
309
|
+
type: Boolean,
|
|
310
|
+
reflect: !0
|
|
311
|
+
})], C.prototype, "selected", void 0), o([t({
|
|
312
|
+
type: Boolean,
|
|
313
|
+
reflect: !0
|
|
314
|
+
})], C.prototype, "disabled", void 0), o([t({ type: String })], C.prototype, "value", void 0), o([t({
|
|
315
|
+
reflect: !0,
|
|
316
|
+
converter: c("md")
|
|
317
|
+
})], C.prototype, "size", void 0), o([n()], C.prototype, "_groupPosition", void 0), C = o([s("nldd-swatch-picker-item")], C);
|
|
318
|
+
var w = (x = class extends f(r) {
|
|
319
|
+
constructor(...e) {
|
|
320
|
+
super(...e), this.size = "md", this.accessibleLabel = "", this.accessibleLabeledBy = "", this.invalid = !1, this.disabled = !1, this.name = "", this.value = "", this.required = !1, this._initialValue = "", this._appliedLabel = null, this._handleItemChange = (e) => {
|
|
321
|
+
e.stopPropagation(), !(this.disabled || e.detail.value === this.value) && (this.value = e.detail.value, this._syncItems(), this.commitFormValue(), this.dispatchEvent(new CustomEvent("change", {
|
|
322
|
+
detail: { value: this.value },
|
|
323
|
+
bubbles: !0,
|
|
324
|
+
composed: !0
|
|
325
|
+
})));
|
|
326
|
+
}, this._handleKeydown = (e) => {
|
|
327
|
+
if (this.disabled) return;
|
|
328
|
+
if (e.key === "Enter") {
|
|
329
|
+
p(this, e);
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
let t = this._getItems().filter((e) => !e.disabled);
|
|
333
|
+
if (t.length === 0) return;
|
|
334
|
+
let n = t.findIndex((e) => e.selected), r;
|
|
335
|
+
switch (e.key) {
|
|
336
|
+
case "ArrowLeft":
|
|
337
|
+
case "ArrowUp":
|
|
338
|
+
r = n <= 0 ? t.length - 1 : n - 1;
|
|
339
|
+
break;
|
|
340
|
+
case "ArrowRight":
|
|
341
|
+
case "ArrowDown":
|
|
342
|
+
r = n >= t.length - 1 ? 0 : n + 1;
|
|
343
|
+
break;
|
|
344
|
+
case "Home":
|
|
345
|
+
r = 0;
|
|
346
|
+
break;
|
|
347
|
+
case "End":
|
|
348
|
+
r = t.length - 1;
|
|
349
|
+
break;
|
|
350
|
+
default: return;
|
|
351
|
+
}
|
|
352
|
+
e.preventDefault(), r !== n && t[r] && (t[r].focus(), t[r]._select());
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
connectedCallback() {
|
|
356
|
+
super.connectedCallback(), this.setAttribute("role", "radiogroup"), this.addEventListener("item-change", this._handleItemChange), this.addEventListener("keydown", this._handleKeydown);
|
|
357
|
+
}
|
|
358
|
+
disconnectedCallback() {
|
|
359
|
+
super.disconnectedCallback(), this.removeEventListener("item-change", this._handleItemChange), this.removeEventListener("keydown", this._handleKeydown);
|
|
360
|
+
}
|
|
361
|
+
firstUpdated() {
|
|
362
|
+
this._syncItems(), this._initialValue = this.value;
|
|
363
|
+
}
|
|
364
|
+
formValue() {
|
|
365
|
+
return this.value || null;
|
|
366
|
+
}
|
|
367
|
+
formResetCallback() {
|
|
368
|
+
this.value = this._initialValue;
|
|
369
|
+
}
|
|
370
|
+
formStateRestoreCallback(e) {
|
|
371
|
+
typeof e == "string" && (this.value = e);
|
|
372
|
+
}
|
|
373
|
+
validationAnchor() {
|
|
374
|
+
let e = this._getItems().filter((e) => !e.disabled);
|
|
375
|
+
return e.find((e) => e.selected) ?? e[0];
|
|
376
|
+
}
|
|
377
|
+
updated(e) {
|
|
378
|
+
(e.has("value") || e.has("size") || e.has("disabled") || e.has("required") || e.has("invalid")) && this._syncItems(), e.has("value") && this.commitFormValue(), e.has("accessibleLabel") && (this._appliedLabel = d(this, "aria-label", this.accessibleLabel, this._appliedLabel)), e.has("accessibleLabeledBy") && (this.accessibleLabeledBy ? this.setAttribute("aria-labelledby", this.accessibleLabeledBy) : this.removeAttribute("aria-labelledby"));
|
|
379
|
+
}
|
|
380
|
+
_getItems() {
|
|
381
|
+
let e = this.shadowRoot?.querySelector("slot");
|
|
382
|
+
return e ? e.assignedElements().filter((e) => e.localName === "nldd-swatch-picker-item") : [];
|
|
383
|
+
}
|
|
384
|
+
_syncItems() {
|
|
385
|
+
let e = this._getItems();
|
|
386
|
+
this.toggleAttribute("aria-required", this.required), this.invalid ? this.setAttribute("aria-invalid", "true") : this.removeAttribute("aria-invalid");
|
|
387
|
+
for (let t of e) this.disabled && !t.hasAttribute("disabled") ? (t.setAttribute("group-disabled", ""), t.disabled = !0) : !this.disabled && t.hasAttribute("group-disabled") && (t.removeAttribute("group-disabled"), t.disabled = !1), t.size = this.size, t.selected = !!this.value && t.value === this.value;
|
|
388
|
+
let t = m(e, (e) => e.selected, (e) => e.disabled);
|
|
389
|
+
e.forEach((e, n) => {
|
|
390
|
+
e._groupPosition = t[n] ?? null;
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
_onSlotChange() {
|
|
394
|
+
this._syncItems();
|
|
395
|
+
}
|
|
396
|
+
focus(e) {
|
|
397
|
+
if (u(this, e)) return;
|
|
398
|
+
let t = this._getItems().filter((e) => !e.disabled);
|
|
399
|
+
(t.find((e) => e.selected) ?? t[0])?.focus(e);
|
|
400
|
+
}
|
|
401
|
+
render() {
|
|
402
|
+
return v(this);
|
|
403
|
+
}
|
|
404
|
+
}, x.styles = g, x.isFormInput = !0, x);
|
|
405
|
+
o([t({
|
|
406
|
+
reflect: !0,
|
|
407
|
+
converter: c("md")
|
|
408
|
+
})], w.prototype, "size", void 0), o([t({
|
|
409
|
+
type: String,
|
|
410
|
+
attribute: "accessible-label"
|
|
411
|
+
})], w.prototype, "accessibleLabel", void 0), o([t({
|
|
412
|
+
type: String,
|
|
413
|
+
attribute: "accessible-labeled-by"
|
|
414
|
+
})], w.prototype, "accessibleLabeledBy", void 0), o([t({
|
|
415
|
+
type: Boolean,
|
|
416
|
+
reflect: !0
|
|
417
|
+
})], w.prototype, "invalid", void 0), o([t({
|
|
418
|
+
type: Boolean,
|
|
419
|
+
reflect: !0
|
|
420
|
+
})], w.prototype, "disabled", void 0), o([t({
|
|
421
|
+
reflect: !0,
|
|
422
|
+
converter: c("")
|
|
423
|
+
})], w.prototype, "name", void 0), o([t({
|
|
424
|
+
reflect: !0,
|
|
425
|
+
converter: c("")
|
|
426
|
+
})], w.prototype, "value", void 0), o([t({
|
|
427
|
+
type: Boolean,
|
|
428
|
+
reflect: !0
|
|
429
|
+
})], w.prototype, "required", void 0), w = o([s("nldd-swatch-picker")], w);
|
|
430
|
+
export { w as NLDDSwatchPicker, C as NLDDSwatchPickerItem };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/components/inputs/swatch-picker/swatch-picker.i18n.ts
|
|
2
|
+
var e = {
|
|
3
|
+
"components.swatch-picker-item.lintblauw-text": "Lintblauw",
|
|
4
|
+
"components.swatch-picker-item.donkerblauw-text": "Donkerblauw",
|
|
5
|
+
"components.swatch-picker-item.hemelblauw-text": "Hemelblauw",
|
|
6
|
+
"components.swatch-picker-item.lichtblauw-text": "Lichtblauw",
|
|
7
|
+
"components.swatch-picker-item.paars-text": "Paars",
|
|
8
|
+
"components.swatch-picker-item.violet-text": "Violet",
|
|
9
|
+
"components.swatch-picker-item.robijnrood-text": "Robijnrood",
|
|
10
|
+
"components.swatch-picker-item.roze-text": "Roze",
|
|
11
|
+
"components.swatch-picker-item.rood-text": "Rood",
|
|
12
|
+
"components.swatch-picker-item.oranje-text": "Oranje",
|
|
13
|
+
"components.swatch-picker-item.donkergeel-text": "Donkergeel",
|
|
14
|
+
"components.swatch-picker-item.geel-text": "Geel",
|
|
15
|
+
"components.swatch-picker-item.donkerbruin-text": "Donkerbruin",
|
|
16
|
+
"components.swatch-picker-item.bruin-text": "Bruin",
|
|
17
|
+
"components.swatch-picker-item.donkergroen-text": "Donkergroen",
|
|
18
|
+
"components.swatch-picker-item.groen-text": "Groen",
|
|
19
|
+
"components.swatch-picker-item.mosgroen-text": "Mosgroen",
|
|
20
|
+
"components.swatch-picker-item.mintgroen-text": "Mintgroen"
|
|
21
|
+
};
|
|
22
|
+
export { e as t };
|