@nldd/design-system 0.19.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 +521 -57
- 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-CrBk3W-t.js → cdn/chunks/icon-BORlalt0.js} +298 -309
- 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/button/button.d.ts +5 -5
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +6 -6
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +6 -8
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +15 -4
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.js +7 -1
- package/dist/components/actions/button-group/button-group.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +2 -2
- package/dist/components/actions/icon-button/icon-button.d.ts +3 -3
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +4 -4
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +2 -4
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu-item.d.ts +12 -3
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +27 -6
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +31 -8
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +108 -32
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +7 -0
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.pointer.js +17 -0
- package/dist/components/actions/menu/menu.pointer.js.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.d.ts +6 -5
- package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.safe-triangle.js +3 -3
- package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +6 -0
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +17 -9
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-title.js +2 -2
- package/dist/components/actions/toolbar/toolbar-title.js.map +1 -1
- package/dist/components/content/avatar/avatar.js +1 -1
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.js +2 -1
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
- package/dist/components/content/image/image.js +1 -1
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +3 -3
- package/dist/components/content/tag/tag.js +3 -3
- package/dist/components/content/tag/tag.template.js +3 -3
- package/dist/components/content/tag/tag.template.js.map +1 -1
- package/dist/components/content/title/title.js +1 -1
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/token/token.d.ts +6 -4
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +6 -4
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/token/token.template.js +1 -1
- package/dist/components/content/token/token.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/inputs/file-field/file-field.js +1 -1
- package/dist/components/inputs/file-field/file-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +4 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js +2 -2
- package/dist/components/inputs/one-time-code-field/one-time-code-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.js +4 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
- package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.js +1 -1
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +2 -2
- package/dist/components/inputs/toggle-button/toggle-button.js +3 -3
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +7 -10
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +3 -3
- package/dist/components/layout/card/card.js +1 -1
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +3 -1
- package/dist/components/layout/card/card.styles.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/kanban/kanban.d.ts.map +1 -1
- package/dist/components/layout/kanban/kanban.js +2 -1
- package/dist/components/layout/kanban/kanban.js.map +1 -1
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +3 -2
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +3 -2
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +5 -2
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +5 -2
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.template.js +2 -4
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +2 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +2 -2
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +2 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +2 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +4 -4
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +2 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +2 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +1 -2
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +10 -12
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +1 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +6 -1
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/spacer/spacer.js +1 -1
- package/dist/components/layout/spacer/spacer.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +2 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +3 -2
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -0
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +7 -1
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +5 -2
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -4
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +3 -3
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +2 -2
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +2 -2
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +4 -1
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +19 -9
- 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 +30 -14
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +20 -0
- package/dist/components/lists-and-tables/list-item/list-item.styles.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/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +6 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +5 -5
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +5 -2
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +2 -4
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +7 -4
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.js +7 -4
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.template.js +5 -5
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +3 -2
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +18 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +51 -3
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +5 -3
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +4 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +26 -2
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.js +1 -1
- package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +2 -2
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +4 -4
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +5 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +6 -3
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
- package/dist/css/variables.css +6 -0
- package/dist/nldd.min.js +784 -728
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +26 -14
- 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 +17 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/input-modality.d.ts.map +1 -1
- package/dist/utilities/input-modality.js +4 -2
- package/dist/utilities/input-modality.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/page-section-mixin.d.ts +10 -4
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +29 -23
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +44 -0
- package/dist/utilities/return-focus.d.ts.map +1 -0
- package/dist/utilities/return-focus.js +99 -0
- package/dist/utilities/return-focus.js.map +1 -0
- package/dist/utilities/slot-content.d.ts +30 -0
- package/dist/utilities/slot-content.d.ts.map +1 -0
- package/dist/utilities/slot-content.js +38 -0
- package/dist/utilities/slot-content.js.map +1 -0
- 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 -67895
- package/dist/components/decorate-C7khEuc7.js +0 -16
- package/dist/components/defer-focus-BQ3c4mzj.js +0 -176
- package/dist/components/dev-checks-lQ-gHUjV.js +0 -2706
- 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-CfpnGzYQ.js +0 -2308
- package/dist/components/input-modality-CiPLYYMN.js +0 -42
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/reflect-non-default-B9wQcnne.js +0 -36
- 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-BMtETgjk.js +0 -153
|
@@ -0,0 +1,772 @@
|
|
|
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 "./base-CfuoYRhN.js";
|
|
6
|
+
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import { t as u } from "./shadow-resets-6SToDsPu.js";
|
|
8
|
+
import { t as d } from "./translations-wxBSz213.js";
|
|
9
|
+
import { t as f } from "./class-map-CXSdNjt8.js";
|
|
10
|
+
import { t as p } from "./described-by-mixin-daRE7orX.js";
|
|
11
|
+
import { t as m } from "./defer-focus-F73ud2D9.js";
|
|
12
|
+
import { n as h } from "./carried-context-DlMSujiJ.js";
|
|
13
|
+
import { t as g } from "./style-map-DsIw6lkq.js";
|
|
14
|
+
import { t as _ } from "./form-associated-mixin--GIbl98p.js";
|
|
15
|
+
import { t as v } from "./slider.i18n-DVw0c8AG.js";
|
|
16
|
+
// node_modules/@lit/reactive-element/decorators/query-all.js
|
|
17
|
+
var y;
|
|
18
|
+
function b(e) {
|
|
19
|
+
return (t, n) => c(t, n, { get() {
|
|
20
|
+
return (this.renderRoot ?? y ?? (y = document.createDocumentFragment())).querySelectorAll(e);
|
|
21
|
+
} });
|
|
22
|
+
}
|
|
23
|
+
// src/components/inputs/slider/slider.styles.ts
|
|
24
|
+
var x = e`
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* # Host */
|
|
28
|
+
|
|
29
|
+
:host {
|
|
30
|
+
--_slider-gap: var(--primitives-space-8);
|
|
31
|
+
--_slider-icon-size: var(--primitives-space-28);
|
|
32
|
+
--_slider-icon-color: var(--semantics-content-color);
|
|
33
|
+
--_slider-control-height: var(--semantics-controls-md-min-size);
|
|
34
|
+
--_slider-start: 0;
|
|
35
|
+
--_slider-end: 0;
|
|
36
|
+
--_slider-track-height: var(--primitives-space-8);
|
|
37
|
+
--_slider-track-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
|
|
38
|
+
--_slider-track-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
39
|
+
--_slider-track-border-width: var(--primitives-border-width-thin);
|
|
40
|
+
--_slider-fill-color: var(--semantics-controls-is-selected-indicator-color);
|
|
41
|
+
--_slider-fill-highlight-border-color: var(--semantics-controls-is-selected-indicator-highlight-border-color);
|
|
42
|
+
--_slider-thumb-size: var(--primitives-space-28);
|
|
43
|
+
--_slider-thumb-hit-size: var(--_slider-control-height);
|
|
44
|
+
--_slider-thumb-inset: calc((var(--_slider-thumb-hit-size) - var(--_slider-thumb-size)) / 2);
|
|
45
|
+
--_slider-thumb-background-color: var(--semantics-surfaces-base-background-color);
|
|
46
|
+
--_slider-thumb-border-width: var(--primitives-border-width-regular);
|
|
47
|
+
--_slider-thumb-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
48
|
+
--_slider-thumb-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
49
|
+
--_slider-thumb-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
50
|
+
--_slider-thumb-ring-extent: calc(var(--_slider-thumb-size) / 2);
|
|
51
|
+
--_slider-thumb-is-hovered-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-750));
|
|
52
|
+
--_slider-thumb-is-active-border-color: light-dark(var(--primitives-color-neutral-750), var(--primitives-color-neutral-850));
|
|
53
|
+
--_slider-histogram-height: var(--primitives-space-48);
|
|
54
|
+
--_slider-histogram-track-gap: var(--primitives-space-2);
|
|
55
|
+
--_slider-histogram-gap: var(--primitives-space-1);
|
|
56
|
+
--_slider-histogram-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-300));
|
|
57
|
+
--_slider-histogram-selected-color: var(--_slider-fill-color);
|
|
58
|
+
--_slider-histogram-bar-corner-radius: var(--primitives-space-2);
|
|
59
|
+
--_slider-histogram-bar-height: 0;
|
|
60
|
+
--_slider-tooltip-offset: var(--primitives-space-8);
|
|
61
|
+
--_slider-histogram-tooltip-offset: var(--primitives-space-4);
|
|
62
|
+
--_slider-tooltip-touch-offset: calc(var(--semantics-fingertip-size) / 2);
|
|
63
|
+
--_slider-tooltip-shift: 0px;
|
|
64
|
+
--_slider-tooltip-background-color: var(--semantics-tooltips-background-color);
|
|
65
|
+
--_slider-tooltip-content-color: var(--semantics-tooltips-content-color);
|
|
66
|
+
--_slider-tooltip-box-shadow: var(--semantics-tooltips-box-shadow);
|
|
67
|
+
--_slider-tooltip-corner-radius: var(--semantics-tooltips-corner-radius);
|
|
68
|
+
--_slider-tooltip-padding-block: var(--semantics-tooltips-padding-block);
|
|
69
|
+
--_slider-tooltip-padding-inline: var(--semantics-tooltips-padding-inline);
|
|
70
|
+
--_slider-tooltip-font: var(--semantics-tooltips-font);
|
|
71
|
+
--_slider-tooltip-transition-duration: var(--primitives-transition-duration-fast);
|
|
72
|
+
|
|
73
|
+
${u}
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
display: block;
|
|
76
|
+
width: 100%;
|
|
77
|
+
-webkit-tap-highlight-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([size="sm"]) {
|
|
81
|
+
--_slider-icon-size: var(--primitives-space-24);
|
|
82
|
+
--_slider-control-height: var(--semantics-controls-sm-min-size);
|
|
83
|
+
--_slider-track-height: var(--primitives-space-6);
|
|
84
|
+
--_slider-thumb-size: var(--primitives-space-24);
|
|
85
|
+
--_slider-histogram-height: var(--primitives-space-32);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([size="xs"]) {
|
|
89
|
+
--_slider-gap: var(--primitives-space-4);
|
|
90
|
+
--_slider-icon-size: var(--primitives-space-20);
|
|
91
|
+
--_slider-control-height: var(--semantics-controls-xs-min-size);
|
|
92
|
+
--_slider-track-height: var(--primitives-space-4);
|
|
93
|
+
--_slider-thumb-size: var(--primitives-space-20);
|
|
94
|
+
--_slider-histogram-height: var(--primitives-space-24);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([hidden]) {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([disabled]) {
|
|
102
|
+
opacity: var(--primitives-opacity-disabled);
|
|
103
|
+
pointer-events: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/* # Block */
|
|
108
|
+
|
|
109
|
+
.slider {
|
|
110
|
+
display: flex;
|
|
111
|
+
width: 100%;
|
|
112
|
+
gap: var(--_slider-gap);
|
|
113
|
+
align-items: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.slider__start-icon,
|
|
117
|
+
.slider__end-icon {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
width: var(--_slider-icon-size);
|
|
121
|
+
height: var(--_slider-icon-size);
|
|
122
|
+
color: var(--_slider-icon-color);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/* # Control */
|
|
127
|
+
|
|
128
|
+
.slider__control {
|
|
129
|
+
position: relative;
|
|
130
|
+
min-width: 0;
|
|
131
|
+
height: var(--_slider-control-height);
|
|
132
|
+
flex-grow: 1;
|
|
133
|
+
touch-action: pan-y;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.slider__track,
|
|
137
|
+
.slider__fill {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 50%;
|
|
140
|
+
border-radius: var(--_slider-track-height);
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
height: var(--_slider-track-height);
|
|
143
|
+
transform: translateY(-50%);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.slider__track {
|
|
147
|
+
inset-inline: 0;
|
|
148
|
+
box-shadow: inset 0 0 0 var(--_slider-track-border-width) var(--_slider-track-border-color);
|
|
149
|
+
background-color: var(--_slider-track-color);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.slider__fill {
|
|
153
|
+
inset-inline-start: 0;
|
|
154
|
+
box-shadow: inset 0 0 0 var(--_slider-track-border-width) var(--_slider-fill-highlight-border-color);
|
|
155
|
+
background-color: var(--_slider-fill-color);
|
|
156
|
+
width: calc(var(--_slider-thumb-size) / 2 + (100% - var(--_slider-thumb-size)) * var(--_slider-end));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:host([range]) .slider__fill {
|
|
160
|
+
inset-inline-start: calc(var(--_slider-thumb-size) / 2 + (100% - var(--_slider-thumb-size)) * var(--_slider-start));
|
|
161
|
+
width: calc((100% - var(--_slider-thumb-size)) * (var(--_slider-end) - var(--_slider-start)));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
/* # Histogram */
|
|
166
|
+
|
|
167
|
+
.slider__control.has-histogram {
|
|
168
|
+
margin-top: calc(var(--_slider-histogram-height) + var(--_slider-histogram-track-gap) - (var(--_slider-control-height) - var(--_slider-track-height)) / 2);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.slider__histogram {
|
|
172
|
+
display: flex;
|
|
173
|
+
position: absolute;
|
|
174
|
+
bottom: calc(50% + var(--_slider-track-height) / 2 + var(--_slider-histogram-track-gap));
|
|
175
|
+
inset-inline: calc(var(--_slider-thumb-size) / 2);
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
height: var(--_slider-histogram-height);
|
|
178
|
+
gap: var(--_slider-histogram-gap);
|
|
179
|
+
align-items: flex-end;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.slider__histogram-bar {
|
|
183
|
+
border-start-start-radius: var(--_slider-histogram-bar-corner-radius);
|
|
184
|
+
border-start-end-radius: var(--_slider-histogram-bar-corner-radius);
|
|
185
|
+
background-color: var(--_slider-histogram-color);
|
|
186
|
+
height: calc(var(--_slider-histogram-bar-height) * var(--_slider-histogram-height));
|
|
187
|
+
flex-grow: 1;
|
|
188
|
+
flex-shrink: 1;
|
|
189
|
+
flex-basis: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.slider__histogram-bar.is-selected {
|
|
193
|
+
background-color: var(--_slider-histogram-selected-color);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/* # Input and thumb */
|
|
198
|
+
|
|
199
|
+
/* The thumb is pressed on the full control height and drawn smaller inside a
|
|
200
|
+
transparent ring, so the input runs past the edges by that ring. */
|
|
201
|
+
.slider__input {
|
|
202
|
+
position: absolute;
|
|
203
|
+
inset-block: 0;
|
|
204
|
+
inset-inline-start: calc(var(--_slider-thumb-inset) * -1);
|
|
205
|
+
margin: 0;
|
|
206
|
+
outline: none;
|
|
207
|
+
background: transparent;
|
|
208
|
+
cursor: default;
|
|
209
|
+
width: calc(100% + var(--_slider-thumb-inset) * 2);
|
|
210
|
+
height: 100%;
|
|
211
|
+
padding: 0;
|
|
212
|
+
appearance: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* In a range only the thumbs take a press; the track goes to the control,
|
|
216
|
+
which moves the nearer thumb. */
|
|
217
|
+
:host([range]) .slider__input {
|
|
218
|
+
pointer-events: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.slider__input--end {
|
|
222
|
+
z-index: 1;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.slider__control.is-start-on-top .slider__input--start {
|
|
226
|
+
z-index: 2;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.slider__input:focus {
|
|
230
|
+
z-index: 3;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.slider__control.is-holding-start .slider__input--start,
|
|
234
|
+
.slider__control.is-holding-end .slider__input--end {
|
|
235
|
+
z-index: 4;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.slider__control.is-stacked .slider__input::-webkit-slider-thumb {
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.slider__control.is-stacked .slider__input::-moz-range-thumb {
|
|
243
|
+
pointer-events: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.slider__input::-webkit-slider-runnable-track {
|
|
247
|
+
border: none;
|
|
248
|
+
background: transparent;
|
|
249
|
+
height: 100%;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.slider__input::-moz-range-track {
|
|
253
|
+
border: none;
|
|
254
|
+
background: transparent;
|
|
255
|
+
height: 100%;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* The ring is a gradient in the transparent border, not a second inset
|
|
259
|
+
shadow: two with one outer edge let the lower bleed through the edge. */
|
|
260
|
+
.slider__input::-webkit-slider-thumb {
|
|
261
|
+
box-sizing: border-box;
|
|
262
|
+
margin-top: calc((var(--_slider-control-height) - var(--_slider-thumb-hit-size)) / 2);
|
|
263
|
+
border: calc(var(--_slider-thumb-inset) + var(--_slider-thumb-ring-thickness)) solid transparent;
|
|
264
|
+
border-radius: 50%;
|
|
265
|
+
box-shadow: inset 0 0 0 var(--_slider-thumb-border-width) var(--_slider-thumb-border-color);
|
|
266
|
+
background:
|
|
267
|
+
linear-gradient(var(--_slider-thumb-background-color), var(--_slider-thumb-background-color)) padding-box,
|
|
268
|
+
radial-gradient(circle closest-side, var(--_slider-thumb-ring-color) calc(var(--_slider-thumb-ring-extent) - 0.25px), transparent calc(var(--_slider-thumb-ring-extent) + 0.25px)) border-box;
|
|
269
|
+
pointer-events: auto;
|
|
270
|
+
width: var(--_slider-thumb-hit-size);
|
|
271
|
+
height: var(--_slider-thumb-hit-size);
|
|
272
|
+
appearance: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.slider__input::-moz-range-thumb {
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
border: calc(var(--_slider-thumb-inset) + var(--_slider-thumb-ring-thickness)) solid transparent;
|
|
278
|
+
border-radius: 50%;
|
|
279
|
+
box-shadow: inset 0 0 0 var(--_slider-thumb-border-width) var(--_slider-thumb-border-color);
|
|
280
|
+
background:
|
|
281
|
+
linear-gradient(var(--_slider-thumb-background-color), var(--_slider-thumb-background-color)) padding-box,
|
|
282
|
+
radial-gradient(circle closest-side, var(--_slider-thumb-ring-color) calc(var(--_slider-thumb-ring-extent) - 0.25px), transparent calc(var(--_slider-thumb-ring-extent) + 0.25px)) border-box;
|
|
283
|
+
pointer-events: auto;
|
|
284
|
+
width: var(--_slider-thumb-hit-size);
|
|
285
|
+
height: var(--_slider-thumb-hit-size);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* While a thumb is held, the native :hover and :active stay on the input a
|
|
289
|
+
drag began on, also once it has passed the other thumb and drags that. */
|
|
290
|
+
@media (hover: hover) {
|
|
291
|
+
.slider__control:not(.is-holding) .slider__input::-webkit-slider-thumb:hover {
|
|
292
|
+
--_slider-thumb-border-color: var(--_slider-thumb-is-hovered-border-color);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.slider__control:not(.is-holding) .slider__input::-moz-range-thumb:hover {
|
|
296
|
+
--_slider-thumb-border-color: var(--_slider-thumb-is-hovered-border-color);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.slider__control.is-holding-value .slider__input--value::-webkit-slider-thumb,
|
|
301
|
+
.slider__control.is-holding-start .slider__input--start::-webkit-slider-thumb,
|
|
302
|
+
.slider__control.is-holding-end .slider__input--end::-webkit-slider-thumb {
|
|
303
|
+
--_slider-thumb-border-color: var(--_slider-thumb-is-active-border-color);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.slider__control.is-holding-value .slider__input--value::-moz-range-thumb,
|
|
307
|
+
.slider__control.is-holding-start .slider__input--start::-moz-range-thumb,
|
|
308
|
+
.slider__control.is-holding-end .slider__input--end::-moz-range-thumb {
|
|
309
|
+
--_slider-thumb-border-color: var(--_slider-thumb-is-active-border-color);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.slider__input:focus-visible::-webkit-slider-thumb {
|
|
313
|
+
--_slider-thumb-ring-extent: calc(var(--_slider-thumb-size) / 2 + var(--primitives-border-width-regular) + var(--_slider-thumb-ring-thickness));
|
|
314
|
+
outline: var(--semantics-focus-ring-outline);
|
|
315
|
+
outline-offset: calc(var(--_slider-thumb-inset) * -1);
|
|
316
|
+
box-shadow:
|
|
317
|
+
inset 0 0 0 var(--_slider-thumb-border-width) var(--_slider-thumb-border-color),
|
|
318
|
+
0 0 0 max(0px, calc(var(--_slider-thumb-ring-extent) - var(--_slider-thumb-hit-size) / 2)) var(--_slider-thumb-ring-color);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.slider__input:focus-visible::-moz-range-thumb {
|
|
322
|
+
--_slider-thumb-ring-extent: calc(var(--_slider-thumb-size) / 2 + var(--primitives-border-width-regular) + var(--_slider-thumb-ring-thickness));
|
|
323
|
+
outline: var(--semantics-focus-ring-outline);
|
|
324
|
+
outline-offset: calc(var(--_slider-thumb-inset) * -1);
|
|
325
|
+
box-shadow:
|
|
326
|
+
inset 0 0 0 var(--_slider-thumb-border-width) var(--_slider-thumb-border-color),
|
|
327
|
+
0 0 0 max(0px, calc(var(--_slider-thumb-ring-extent) - var(--_slider-thumb-hit-size) / 2)) var(--_slider-thumb-ring-color);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
/* # Tooltip */
|
|
332
|
+
|
|
333
|
+
.slider__tooltip {
|
|
334
|
+
box-sizing: border-box;
|
|
335
|
+
position: absolute;
|
|
336
|
+
z-index: 3;
|
|
337
|
+
inset-inline-start: calc(var(--_slider-thumb-size) / 2 + (100% - var(--_slider-thumb-size)) * var(--_slider-end));
|
|
338
|
+
visibility: hidden;
|
|
339
|
+
opacity: 0;
|
|
340
|
+
border-radius: var(--_slider-tooltip-corner-radius);
|
|
341
|
+
box-shadow: var(--_slider-tooltip-box-shadow);
|
|
342
|
+
background-color: var(--_slider-tooltip-background-color);
|
|
343
|
+
pointer-events: none;
|
|
344
|
+
width: max-content;
|
|
345
|
+
padding-block: var(--_slider-tooltip-padding-block);
|
|
346
|
+
padding-inline: var(--_slider-tooltip-padding-inline);
|
|
347
|
+
color: var(--_slider-tooltip-content-color);
|
|
348
|
+
font: var(--_slider-tooltip-font);
|
|
349
|
+
white-space: nowrap;
|
|
350
|
+
transition: opacity var(--_slider-tooltip-transition-duration), visibility var(--_slider-tooltip-transition-duration);
|
|
351
|
+
transform: translateX(calc(-50% + var(--_slider-tooltip-shift)));
|
|
352
|
+
|
|
353
|
+
@media not (pointer: coarse) {
|
|
354
|
+
bottom: calc(50% + var(--_slider-thumb-size) / 2 + var(--_slider-tooltip-offset));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@media (pointer: coarse) {
|
|
358
|
+
bottom: calc(50% + var(--_slider-tooltip-touch-offset));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
:host(:dir(rtl)) .slider__tooltip {
|
|
363
|
+
transform: translateX(calc(50% + var(--_slider-tooltip-shift)));
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.slider__control.has-histogram .slider__tooltip {
|
|
367
|
+
bottom: calc(50% + var(--_slider-track-height) / 2 + var(--_slider-histogram-track-gap) + var(--_slider-histogram-height) + var(--_slider-histogram-tooltip-offset));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.slider__tooltip--start {
|
|
371
|
+
inset-inline-start: calc(var(--_slider-thumb-size) / 2 + (100% - var(--_slider-thumb-size)) * var(--_slider-start));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.slider__tooltip--both {
|
|
375
|
+
inset-inline-start: calc(var(--_slider-thumb-size) / 2 + (100% - var(--_slider-thumb-size)) * (var(--_slider-start) + var(--_slider-end)) / 2);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* Shown while the pointer is over the slider or its icons, a thumb has
|
|
379
|
+
keyboard focus or is pressed: each thumb its own, or the two of a range as
|
|
380
|
+
one where they would overlap. */
|
|
381
|
+
.slider:not(.is-merged):is(:hover, :has(.slider__control.is-active, .slider__input:focus-visible)) :is(.slider__tooltip--value, .slider__tooltip--start, .slider__tooltip--end),
|
|
382
|
+
.slider.is-merged:is(:hover, :has(.slider__control.is-active, .slider__input:focus-visible)) .slider__tooltip--both {
|
|
383
|
+
visibility: visible;
|
|
384
|
+
opacity: 1;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
@media (prefers-reduced-motion: reduce) {
|
|
388
|
+
.slider__tooltip {
|
|
389
|
+
transition: none;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
/* # High contrast */
|
|
395
|
+
|
|
396
|
+
@media (forced-colors: active) {
|
|
397
|
+
.slider__track {
|
|
398
|
+
background-color: GrayText;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.slider__fill {
|
|
402
|
+
background-color: Highlight;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
`;
|
|
406
|
+
// src/components/inputs/slider/slider.template.ts
|
|
407
|
+
function S(e, t, n) {
|
|
408
|
+
return i`
|
|
409
|
+
<input class="slider__input slider__input--${t}"
|
|
410
|
+
type="range"
|
|
411
|
+
min=${e.min}
|
|
412
|
+
max=${e.max}
|
|
413
|
+
step=${e.step}
|
|
414
|
+
.value=${String(n)}
|
|
415
|
+
aria-label=${e._label(t) ?? a}
|
|
416
|
+
aria-valuetext=${e._format(n)}
|
|
417
|
+
aria-invalid=${e.invalid ? "true" : a}
|
|
418
|
+
?disabled=${e.disabled}
|
|
419
|
+
@input=${(n) => e._handleInput(n, t)}
|
|
420
|
+
@keydown=${(n) => e._handleKeyDown(n, t)}
|
|
421
|
+
@change=${e._handleChange}
|
|
422
|
+
>
|
|
423
|
+
`;
|
|
424
|
+
}
|
|
425
|
+
function C(e, t) {
|
|
426
|
+
return i`
|
|
427
|
+
<span class="slider__tooltip slider__tooltip--${e}"
|
|
428
|
+
aria-hidden="true"
|
|
429
|
+
>
|
|
430
|
+
${t}
|
|
431
|
+
</span>
|
|
432
|
+
`;
|
|
433
|
+
}
|
|
434
|
+
function w(e, t, n) {
|
|
435
|
+
let r = e.histogram, a = Math.max(...r, 1), o = e._fraction(t), s = e._fraction(n);
|
|
436
|
+
return i`
|
|
437
|
+
<span class="slider__histogram"
|
|
438
|
+
aria-hidden="true"
|
|
439
|
+
>
|
|
440
|
+
${r.map((e, t) => {
|
|
441
|
+
let n = (t + .5) / r.length;
|
|
442
|
+
return i`
|
|
443
|
+
<span class=${f({
|
|
444
|
+
"slider__histogram-bar": !0,
|
|
445
|
+
"is-selected": n >= o - 1e-9 && n <= s + 1e-9
|
|
446
|
+
})}
|
|
447
|
+
style=${g({ "--_slider-histogram-bar-height": String(e / a) })}
|
|
448
|
+
></span>
|
|
449
|
+
`;
|
|
450
|
+
})}
|
|
451
|
+
</span>
|
|
452
|
+
`;
|
|
453
|
+
}
|
|
454
|
+
function T(e) {
|
|
455
|
+
let t = e.range, n = t ? e._start : e.min, r = t ? e._end : e._value, o = t && n === r && n > (e.min + e.max) / 2, s = e.tooltipTiming !== "never";
|
|
456
|
+
return i`
|
|
457
|
+
<div class="slider"
|
|
458
|
+
@pointerdown=${e._handlePointerDown}
|
|
459
|
+
>
|
|
460
|
+
${e.startIcon ? i`
|
|
461
|
+
<span class="slider__start-icon"
|
|
462
|
+
@click=${t ? a : () => e._handleIconClick(-1)}
|
|
463
|
+
>
|
|
464
|
+
<nldd-icon icon=${e.startIcon}></nldd-icon>
|
|
465
|
+
</span>
|
|
466
|
+
` : a}
|
|
467
|
+
<div class=${f({
|
|
468
|
+
slider__control: !0,
|
|
469
|
+
"has-histogram": e.histogram.length > 0,
|
|
470
|
+
"is-active": e._active,
|
|
471
|
+
"is-holding": !!e._held,
|
|
472
|
+
"is-holding-value": e._held === "value",
|
|
473
|
+
"is-holding-start": e._held === "start",
|
|
474
|
+
"is-holding-end": e._held === "end",
|
|
475
|
+
"is-start-on-top": o,
|
|
476
|
+
"is-stacked": t && n === r
|
|
477
|
+
})}
|
|
478
|
+
style=${g({
|
|
479
|
+
"--_slider-start": String(e._fraction(n)),
|
|
480
|
+
"--_slider-end": String(e._fraction(r))
|
|
481
|
+
})}
|
|
482
|
+
>
|
|
483
|
+
${e.histogram.length ? w(e, n, r) : a}
|
|
484
|
+
<span class="slider__track"></span>
|
|
485
|
+
<span class="slider__fill"></span>
|
|
486
|
+
${t ? i`
|
|
487
|
+
${S(e, "start", n)}
|
|
488
|
+
${S(e, "end", r)}
|
|
489
|
+
${s ? i`
|
|
490
|
+
${C("start", e._format(n))}
|
|
491
|
+
${C("end", e._format(r))}
|
|
492
|
+
${C("both", `${e._format(n)} – ${e._format(r)}`)}
|
|
493
|
+
` : a}
|
|
494
|
+
` : i`
|
|
495
|
+
${S(e, "value", r)}
|
|
496
|
+
${s ? C("value", e._format(r)) : a}
|
|
497
|
+
`}
|
|
498
|
+
</div>
|
|
499
|
+
${e.endIcon ? i`
|
|
500
|
+
<span class="slider__end-icon"
|
|
501
|
+
@click=${t ? a : () => e._handleIconClick(1)}
|
|
502
|
+
>
|
|
503
|
+
<nldd-icon icon=${e.endIcon}></nldd-icon>
|
|
504
|
+
</span>
|
|
505
|
+
` : a}
|
|
506
|
+
</div>
|
|
507
|
+
`;
|
|
508
|
+
}
|
|
509
|
+
// src/components/inputs/slider/slider.ts
|
|
510
|
+
var E, D = /* @__PURE__ */ new Map();
|
|
511
|
+
function O(e) {
|
|
512
|
+
let t = D.get(e);
|
|
513
|
+
if (!t) {
|
|
514
|
+
try {
|
|
515
|
+
t = new Intl.NumberFormat(e, { maximumFractionDigits: 6 });
|
|
516
|
+
} catch {
|
|
517
|
+
t = new Intl.NumberFormat("nl-NL", { maximumFractionDigits: 6 });
|
|
518
|
+
}
|
|
519
|
+
D.set(e, t);
|
|
520
|
+
}
|
|
521
|
+
return t;
|
|
522
|
+
}
|
|
523
|
+
function k(e) {
|
|
524
|
+
let [t, n] = String(e).split("e");
|
|
525
|
+
return Math.max(0, (t.split(".")[1] ?? "").length - Number(n ?? 0));
|
|
526
|
+
}
|
|
527
|
+
var A = (E = class extends p(_(r)) {
|
|
528
|
+
constructor(...e) {
|
|
529
|
+
super(...e), this.size = "md", this.range = !1, this.histogram = [], this.startIcon = "", this.endIcon = "", this.accessibleLabel = "", this.tooltipTiming = "instant", this.invalid = !1, this.disabled = !1, this.name = "", this.value = void 0, this.startValue = void 0, this.endValue = void 0, this.min = 0, this.max = 100, this.step = 1, this.translations = {}, this.formatValue = null, this._active = !1, this._held = null, this._initial = {}, this._resizeObserver = null, this._trackThumb = null, this._stackedPress = null, this._dragInput = null, this._dragThumb = null, this._arrowKey = !1, this._handlePointerDown = (e) => {
|
|
530
|
+
if (this.disabled || e.button !== 0) return;
|
|
531
|
+
this._active = !0, window.addEventListener("pointerup", this._handlePointerUp, { once: !0 }), window.addEventListener("pointercancel", this._handlePointerUp, { once: !0 });
|
|
532
|
+
let t = e.target;
|
|
533
|
+
if (this._arrowKey = !1, t.matches(".slider__input") && (this._held = t.matches(".slider__input--start") ? "start" : t.matches(".slider__input--end") ? "end" : "value"), this.range && t.matches(".slider__input") && (this._dragInput = t, this._dragThumb = this._held), !this.range || !t.closest(".slider__control") || t.matches(".slider__input")) return;
|
|
534
|
+
if (window.addEventListener("pointermove", this._handleTrackMove), e.preventDefault(), this._start === this._end && this._onThumb(e.clientX)) {
|
|
535
|
+
this._stackedPress = e.clientX;
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
let n = this._valueAt(e.clientX), r = Math.abs(n - this._start) < Math.abs(n - this._end) || n < this._start ? "start" : "end";
|
|
539
|
+
this._grab(r), this._set(r, n), this._emit("input");
|
|
540
|
+
}, this._handleTrackMove = (e) => {
|
|
541
|
+
if (!this.isConnected) return;
|
|
542
|
+
if (this._stackedPress !== null) {
|
|
543
|
+
let t = e.clientX - this._stackedPress;
|
|
544
|
+
if (t === 0) return;
|
|
545
|
+
let n = getComputedStyle(this).direction === "rtl";
|
|
546
|
+
this._grab(t < 0 === n ? "end" : "start"), this._stackedPress = null;
|
|
547
|
+
}
|
|
548
|
+
if (!this._trackThumb) return;
|
|
549
|
+
let t = this._set(this._trackThumb, this._valueAt(e.clientX), void 0, !0);
|
|
550
|
+
t !== this._trackThumb && t !== "value" && this._grab(t), this._emit("input");
|
|
551
|
+
}, this._handlePointerUp = () => {
|
|
552
|
+
this._active = !1;
|
|
553
|
+
let e = this._trackThumb;
|
|
554
|
+
this._stopPress(), e && this._emit("change");
|
|
555
|
+
}, this._layoutTooltips = () => {
|
|
556
|
+
let e = this.shadowRoot, t = e?.querySelector(".slider");
|
|
557
|
+
if (!e || !t || this.tooltipTiming === "never") return;
|
|
558
|
+
let n = Array.from(e.querySelectorAll(".slider__tooltip"));
|
|
559
|
+
for (let e of n) e.style.removeProperty("--_slider-tooltip-shift");
|
|
560
|
+
if (this.range && n.length) {
|
|
561
|
+
let [n, r] = e.querySelectorAll(".slider__tooltip--start, .slider__tooltip--end"), i = n.getBoundingClientRect(), a = r.getBoundingClientRect(), o = i.right > a.left - 4 && a.right > i.left - 4;
|
|
562
|
+
t.classList.toggle("is-merged", o);
|
|
563
|
+
}
|
|
564
|
+
for (let e of n) {
|
|
565
|
+
let t = e.getBoundingClientRect();
|
|
566
|
+
if (!t.width) continue;
|
|
567
|
+
let n = t.left < 8 ? 8 - t.left : t.right > window.innerWidth - 8 ? window.innerWidth - 8 - t.right : 0;
|
|
568
|
+
n && e.style.setProperty("--_slider-tooltip-shift", `${n}px`);
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
_t(e) {
|
|
573
|
+
return d(this.translations, v, e);
|
|
574
|
+
}
|
|
575
|
+
get _value() {
|
|
576
|
+
return this._snap(this.value ?? (this.min + this.max) / 2);
|
|
577
|
+
}
|
|
578
|
+
get _start() {
|
|
579
|
+
return Math.min(this._snap(this.startValue ?? this.min), this._end);
|
|
580
|
+
}
|
|
581
|
+
get _end() {
|
|
582
|
+
return this._snap(this.endValue ?? this.max);
|
|
583
|
+
}
|
|
584
|
+
_fraction(e) {
|
|
585
|
+
return this.max > this.min ? (e - this.min) / (this.max - this.min) : 0;
|
|
586
|
+
}
|
|
587
|
+
_format(e) {
|
|
588
|
+
return this.formatValue ? this.formatValue(e) : O(h(this) ?? "nl-NL").format(e);
|
|
589
|
+
}
|
|
590
|
+
_label(e) {
|
|
591
|
+
if (e === "value") return this.accessibleLabel || void 0;
|
|
592
|
+
let t = this._t(e === "start" ? "components.slider.start-value-label" : "components.slider.end-value-label");
|
|
593
|
+
return this.accessibleLabel ? `${this.accessibleLabel}, ${t.toLowerCase()}` : t;
|
|
594
|
+
}
|
|
595
|
+
_snap(e) {
|
|
596
|
+
let t = this.step > 0 ? this.step : 1, n = this.min + Math.round((e - this.min) / t) * t, r = Math.max(k(t), k(this.min));
|
|
597
|
+
return Math.max(this.min, Math.min(this.max, Number(n.toFixed(r))));
|
|
598
|
+
}
|
|
599
|
+
connectedCallback() {
|
|
600
|
+
super.connectedCallback(), this.hasUpdated || (this._initial = {
|
|
601
|
+
value: this.value,
|
|
602
|
+
startValue: this.startValue,
|
|
603
|
+
endValue: this.endValue
|
|
604
|
+
}), this._resizeObserver = new ResizeObserver(this._layoutTooltips), this._resizeObserver.observe(this), window.addEventListener("resize", this._layoutTooltips);
|
|
605
|
+
}
|
|
606
|
+
disconnectedCallback() {
|
|
607
|
+
super.disconnectedCallback(), this._resizeObserver?.disconnect(), this._resizeObserver = null, window.removeEventListener("resize", this._layoutTooltips), this._stopPress(), this._active = !1;
|
|
608
|
+
}
|
|
609
|
+
formValue() {
|
|
610
|
+
if (!this.range) return String(this._value);
|
|
611
|
+
if (!this.name) return null;
|
|
612
|
+
let e = new FormData();
|
|
613
|
+
return e.append(this.name, String(this._start)), e.append(this.name, String(this._end)), e;
|
|
614
|
+
}
|
|
615
|
+
formResetCallback() {
|
|
616
|
+
let e = (e) => {
|
|
617
|
+
let t = parseFloat(this.getAttribute(e) ?? "");
|
|
618
|
+
return Number.isFinite(t) ? t : void 0;
|
|
619
|
+
};
|
|
620
|
+
this.value = e("value") ?? this._initial.value, this.startValue = e("start-value") ?? this._initial.startValue, this.endValue = e("end-value") ?? this._initial.endValue;
|
|
621
|
+
}
|
|
622
|
+
formStateRestoreCallback(e) {
|
|
623
|
+
let t = (e) => {
|
|
624
|
+
let t = parseFloat(String(e));
|
|
625
|
+
return Number.isFinite(t) ? t : void 0;
|
|
626
|
+
};
|
|
627
|
+
if (typeof e == "string" && (this.value = t(e) ?? this.value), e instanceof FormData && this.name) {
|
|
628
|
+
let [n, r] = e.getAll(this.name).map(t);
|
|
629
|
+
this.startValue = n ?? this.startValue, this.endValue = r ?? this.endValue;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
updated(e) {
|
|
633
|
+
super.updated?.(e), this._layoutTooltips();
|
|
634
|
+
}
|
|
635
|
+
focus(e) {
|
|
636
|
+
m(this, e) || this._inputs?.[0]?.focus(e);
|
|
637
|
+
}
|
|
638
|
+
describedTarget() {
|
|
639
|
+
return this.shadowRoot?.querySelector(".slider__input") ?? null;
|
|
640
|
+
}
|
|
641
|
+
_handleInput(e, t) {
|
|
642
|
+
e.stopPropagation();
|
|
643
|
+
let n = e.target, r = n === this._dragInput && this._dragThumb, i = r || t, a = this._set(i, parseFloat(n.value), n, !!r || this._arrowKey);
|
|
644
|
+
a !== i && a !== "value" && (r && (this._dragThumb = a, this._held = a), this._focusThumb(a, !!r)), this._emit("input");
|
|
645
|
+
}
|
|
646
|
+
_handleChange(e) {
|
|
647
|
+
e.stopPropagation(), this._emit("change");
|
|
648
|
+
}
|
|
649
|
+
_handleIconClick(e) {
|
|
650
|
+
this.disabled || this._page("value", e);
|
|
651
|
+
}
|
|
652
|
+
_handleKeyDown(e, t) {
|
|
653
|
+
let n = [
|
|
654
|
+
"ArrowUp",
|
|
655
|
+
"ArrowDown",
|
|
656
|
+
"ArrowLeft",
|
|
657
|
+
"ArrowRight"
|
|
658
|
+
].includes(e.key);
|
|
659
|
+
if (this._arrowKey = n && !e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey, !e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) return;
|
|
660
|
+
let r = getComputedStyle(this).direction === "rtl", i = {
|
|
661
|
+
ArrowUp: 1,
|
|
662
|
+
ArrowDown: -1,
|
|
663
|
+
ArrowRight: r ? -1 : 1,
|
|
664
|
+
ArrowLeft: r ? 1 : -1
|
|
665
|
+
}[e.key];
|
|
666
|
+
i && (e.preventDefault(), this._page(t, i, !0));
|
|
667
|
+
}
|
|
668
|
+
_page(e, t, n = !1) {
|
|
669
|
+
let r = Math.max(this.step > 0 ? this.step : 1, (this.max - this.min) / 10), i = () => e === "value" ? this._value : [this._start, this._end].join(), a = i(), o = this.shadowRoot?.querySelector(`.slider__input--${e}`) ?? void 0, s = e === "value" ? this._value : e === "start" ? this._start : this._end, c = this._set(e, s + t * r, o, n);
|
|
670
|
+
c !== e && c !== "value" && this._focusThumb(c), i() !== a && (this._emit("input"), this._emit("change"));
|
|
671
|
+
}
|
|
672
|
+
_grab(e) {
|
|
673
|
+
this._trackThumb = e, this._held = e, this._focusThumb(e, !0);
|
|
674
|
+
}
|
|
675
|
+
_focusThumb(e, t = !1) {
|
|
676
|
+
(this.shadowRoot?.querySelector(`.slider__input--${e}`))?.focus(t ? { focusVisible: !1 } : void 0);
|
|
677
|
+
}
|
|
678
|
+
_stopPress() {
|
|
679
|
+
window.removeEventListener("pointermove", this._handleTrackMove), window.removeEventListener("pointerup", this._handlePointerUp), window.removeEventListener("pointercancel", this._handlePointerUp), this._trackThumb = null, this._stackedPress = null, this._dragInput = null, this._dragThumb = null, this._held = null;
|
|
680
|
+
}
|
|
681
|
+
_thumbPath() {
|
|
682
|
+
let e = this.shadowRoot.querySelector(".slider__control"), t = e.getBoundingClientRect(), n = getComputedStyle(e), r = parseFloat(n.getPropertyValue("--_slider-thumb-size")) || 0, i = parseFloat(n.getPropertyValue("--_slider-thumb-hit-size")) || r;
|
|
683
|
+
return {
|
|
684
|
+
start: t.left + r / 2,
|
|
685
|
+
length: Math.max(1, t.width - r),
|
|
686
|
+
rtl: getComputedStyle(this).direction === "rtl",
|
|
687
|
+
hit: i
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
_valueAt(e) {
|
|
691
|
+
let { start: t, length: n, rtl: r } = this._thumbPath(), i = Math.max(0, Math.min(1, (e - t) / n));
|
|
692
|
+
return this._snap(this.min + (r ? 1 - i : i) * (this.max - this.min));
|
|
693
|
+
}
|
|
694
|
+
_onThumb(e) {
|
|
695
|
+
let { start: t, length: n, rtl: r, hit: i } = this._thumbPath(), a = this._fraction(this._start);
|
|
696
|
+
return Math.abs(e - (t + n * (r ? 1 - a : a))) <= i / 2;
|
|
697
|
+
}
|
|
698
|
+
_set(e, t, n, r = !1) {
|
|
699
|
+
let i = this._snap(t), a = e;
|
|
700
|
+
if (e === "value") this.value = i, n && parseFloat(n.value) !== i && (n.value = String(i));
|
|
701
|
+
else {
|
|
702
|
+
let t = this._start, n = this._end;
|
|
703
|
+
e === "start" && i > n && r ? [this.startValue, this.endValue, a] = [
|
|
704
|
+
n,
|
|
705
|
+
i,
|
|
706
|
+
"end"
|
|
707
|
+
] : e === "end" && i < t && r ? [this.startValue, this.endValue, a] = [
|
|
708
|
+
i,
|
|
709
|
+
t,
|
|
710
|
+
"start"
|
|
711
|
+
] : e === "start" ? this.startValue = Math.min(i, n) : this.endValue = Math.max(i, t);
|
|
712
|
+
for (let e of this._inputs ?? []) {
|
|
713
|
+
let t = e.classList.contains("slider__input--start") ? this._start : this._end;
|
|
714
|
+
parseFloat(e.value) !== t && (e.value = String(t));
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
return this.commitFormValue(), a;
|
|
718
|
+
}
|
|
719
|
+
_emit(e) {
|
|
720
|
+
let t = this.range ? {
|
|
721
|
+
startValue: this._start,
|
|
722
|
+
endValue: this._end
|
|
723
|
+
} : { value: this._value };
|
|
724
|
+
this.dispatchEvent(new CustomEvent(e, {
|
|
725
|
+
detail: t,
|
|
726
|
+
bubbles: !0,
|
|
727
|
+
composed: !0
|
|
728
|
+
}));
|
|
729
|
+
}
|
|
730
|
+
render() {
|
|
731
|
+
return T(this);
|
|
732
|
+
}
|
|
733
|
+
}, E.styles = x, E.isFormInput = !0, E);
|
|
734
|
+
o([t({
|
|
735
|
+
reflect: !0,
|
|
736
|
+
converter: l("md")
|
|
737
|
+
})], A.prototype, "size", void 0), o([t({
|
|
738
|
+
type: Boolean,
|
|
739
|
+
reflect: !0
|
|
740
|
+
})], A.prototype, "range", void 0), o([t({ converter: {
|
|
741
|
+
fromAttribute: (e) => (e ?? "").split(/[\s,]+/).filter(Boolean).map(Number).filter((e) => Number.isFinite(e)),
|
|
742
|
+
toAttribute: (e) => e.join(",")
|
|
743
|
+
} })], A.prototype, "histogram", void 0), o([t({
|
|
744
|
+
type: String,
|
|
745
|
+
attribute: "start-icon"
|
|
746
|
+
})], A.prototype, "startIcon", void 0), o([t({
|
|
747
|
+
type: String,
|
|
748
|
+
attribute: "end-icon"
|
|
749
|
+
})], A.prototype, "endIcon", void 0), o([t({
|
|
750
|
+
type: String,
|
|
751
|
+
attribute: "accessible-label"
|
|
752
|
+
})], A.prototype, "accessibleLabel", void 0), o([t({
|
|
753
|
+
reflect: !0,
|
|
754
|
+
attribute: "tooltip-timing",
|
|
755
|
+
converter: l("instant")
|
|
756
|
+
})], A.prototype, "tooltipTiming", void 0), o([t({
|
|
757
|
+
type: Boolean,
|
|
758
|
+
reflect: !0
|
|
759
|
+
})], A.prototype, "invalid", void 0), o([t({
|
|
760
|
+
type: Boolean,
|
|
761
|
+
reflect: !0
|
|
762
|
+
})], A.prototype, "disabled", void 0), o([t({
|
|
763
|
+
reflect: !0,
|
|
764
|
+
converter: l("")
|
|
765
|
+
})], A.prototype, "name", void 0), o([t({ type: Number })], A.prototype, "value", void 0), o([t({
|
|
766
|
+
type: Number,
|
|
767
|
+
attribute: "start-value"
|
|
768
|
+
})], A.prototype, "startValue", void 0), o([t({
|
|
769
|
+
type: Number,
|
|
770
|
+
attribute: "end-value"
|
|
771
|
+
})], A.prototype, "endValue", void 0), o([t({ type: Number })], A.prototype, "min", void 0), o([t({ type: Number })], A.prototype, "max", void 0), o([t({ type: Number })], A.prototype, "step", void 0), o([t({ type: Object })], A.prototype, "translations", void 0), o([t({ attribute: !1 })], A.prototype, "formatValue", void 0), o([n()], A.prototype, "_active", void 0), o([n()], A.prototype, "_held", void 0), o([b(".slider__input")], A.prototype, "_inputs", void 0), A = o([s("nldd-slider")], A);
|
|
772
|
+
export { A as NLDDSlider };
|