@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,802 @@
|
|
|
1
|
+
import { r as e } from "./icon-BORlalt0.js";
|
|
2
|
+
import { i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as l } from "./query-ChDzi9FQ.js";
|
|
6
|
+
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import { r as d } from "./element-state-B-44fVqq.js";
|
|
8
|
+
import { t as f } from "./link-rel-DvrTEfVT.js";
|
|
9
|
+
import { r as p, t as m } from "./link-hint-KFhgr5Ng.js";
|
|
10
|
+
import { t as h } from "./with-translations-XX14GKFh.js";
|
|
11
|
+
import { t as g } from "./class-map-CXSdNjt8.js";
|
|
12
|
+
import { t as _ } from "./defer-focus-F73ud2D9.js";
|
|
13
|
+
import { n as v } from "./input-modality-XE0B7yCn.js";
|
|
14
|
+
import { t as y } from "./list-item.i18n-Br6J5Ev9.js";
|
|
15
|
+
// src/components/lists-and-tables/list-item/list-item.styles.ts
|
|
16
|
+
var b = t`
|
|
17
|
+
:host {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
:host {
|
|
24
|
+
--_list-item-background-color: transparent;
|
|
25
|
+
--_list-item-content-z-index: 0;
|
|
26
|
+
--_list-item-focus-z-index: 1;
|
|
27
|
+
--_list-item-indicator-z-index: calc(var(--_list-item-content-z-index) - 1);
|
|
28
|
+
/* Set from JS by the divider-start/divider-end markers; initial keeps
|
|
29
|
+
them guaranteed-invalid so the var() fallbacks below apply. */
|
|
30
|
+
--_list-item-divider-inset-start: initial;
|
|
31
|
+
--_list-item-divider-inset-end: initial;
|
|
32
|
+
--_list-item-md-padding-block: var(--primitives-space-10);
|
|
33
|
+
--_list-item-sm-padding-block: var(--primitives-space-6);
|
|
34
|
+
|
|
35
|
+
--context-list-item-size: var(--semantics-controls-md-min-size);
|
|
36
|
+
--context-cell-padding-block: var(--_list-item-md-padding-block);
|
|
37
|
+
container-type: inline-size;
|
|
38
|
+
display: block;
|
|
39
|
+
width: 100%;
|
|
40
|
+
-webkit-tap-highlight-color: transparent;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([size="sm"]) {
|
|
44
|
+
--context-cell-padding-block: var(--_list-item-sm-padding-block);
|
|
45
|
+
--context-list-item-size: var(--semantics-controls-sm-min-size);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host(.is-interactive) {
|
|
49
|
+
/* Not the host's 100%: a width plus negative margins is over-constrained
|
|
50
|
+
in block layout, so the row would shift instead of widen. */
|
|
51
|
+
width: auto;
|
|
52
|
+
/* !important: shields the widening from consumer universal resets, which
|
|
53
|
+
beat normal :host declarations per CSS Scoping. A negative margin
|
|
54
|
+
cannot move inward — an inner element cannot reach outside the host. */
|
|
55
|
+
margin-inline: calc(-1 * var(--semantics-list-items-indicator-inline-inset)) !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host(.is-interactive) .list-item {
|
|
59
|
+
padding-inline: var(--semantics-list-items-indicator-inline-inset);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host(.is-interactive) .list-item:has(> .list-item__action) {
|
|
63
|
+
padding-inline: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* A segment at a row edge already owns the padding for that side,
|
|
67
|
+
so the row drops its own there. Mid-row it claims nothing. */
|
|
68
|
+
:host(.is-interactive.has-leading-segment) .list-item {
|
|
69
|
+
padding-inline-start: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host(.is-interactive.has-trailing-segment) .list-item {
|
|
73
|
+
padding-inline-end: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([hidden]) {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host(:focus-within) {
|
|
81
|
+
position: relative;
|
|
82
|
+
z-index: var(--_list-item-focus-z-index);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* The focus ring reaches past the row's own box, and a branch paints its
|
|
86
|
+
children group right after the row, in the same stacking context — so on a
|
|
87
|
+
branch the ring's bottom edge disappeared under the first child. Raising
|
|
88
|
+
the row settles it in both directions: with focus in a child, the rule
|
|
89
|
+
matches this row too, and the group (later in the tree) still wins. */
|
|
90
|
+
:host(:focus-within) .list-item {
|
|
91
|
+
z-index: var(--_list-item-focus-z-index);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host(.is-dragging) {
|
|
95
|
+
opacity: var(--semantics-controls-is-dragging-opacity);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:host(.is-dragging-pointer) {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host(:not([reorderable])) ::slotted([reorderable-only]) {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([reorderable]) ::slotted([reorderable-only]) {
|
|
107
|
+
cursor: grab;
|
|
108
|
+
touch-action: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host(.is-dragging) ::slotted([reorderable-only]) {
|
|
112
|
+
cursor: grabbing;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/* The row reserves the divider's line below itself, rather than the host
|
|
118
|
+
doing it: on a branch the children group follows the row inside the host,
|
|
119
|
+
so a margin on the host would land after the whole subtree — leaving the
|
|
120
|
+
divider to overlap the first child and an extra line's worth of space
|
|
121
|
+
under the last one. */
|
|
122
|
+
.list-item {
|
|
123
|
+
box-sizing: border-box;
|
|
124
|
+
display: flex;
|
|
125
|
+
position: relative;
|
|
126
|
+
margin-block-end: var(--semantics-dividers-thickness);
|
|
127
|
+
width: 100%;
|
|
128
|
+
min-height: var(--context-list-item-size);
|
|
129
|
+
flex-direction: row;
|
|
130
|
+
align-items: stretch;
|
|
131
|
+
isolation: isolate;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
.list-item__action {
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
display: flex;
|
|
139
|
+
margin: 0;
|
|
140
|
+
outline: none;
|
|
141
|
+
border: none;
|
|
142
|
+
background: none;
|
|
143
|
+
width: 100%;
|
|
144
|
+
padding: 0;
|
|
145
|
+
padding-inline: var(--semantics-list-items-indicator-inline-inset);
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
align-items: stretch;
|
|
148
|
+
text-align: start;
|
|
149
|
+
color: inherit;
|
|
150
|
+
text-decoration: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
a.list-item__action {
|
|
154
|
+
cursor: var(--semantics-controls-link-cursor);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* There is no disabled attribute for an anchor, so the row blocks the click
|
|
158
|
+
itself and aria-disabled carries the state. */
|
|
159
|
+
button.list-item__action:disabled,
|
|
160
|
+
:host([disabled]) a.list-item__action {
|
|
161
|
+
cursor: default;
|
|
162
|
+
opacity: var(--primitives-opacity-disabled);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.list-item__link-hint {
|
|
166
|
+
position: absolute;
|
|
167
|
+
margin: -1px;
|
|
168
|
+
border: 0;
|
|
169
|
+
width: 1px;
|
|
170
|
+
height: 1px;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
padding: 0;
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
clip-path: inset(50%);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/* On the control when the row is one, so hover, focus and press can drive it. */
|
|
180
|
+
.list-item:not(:has(.list-item__action))::before,
|
|
181
|
+
.list-item__action::before {
|
|
182
|
+
content: '';
|
|
183
|
+
display: block;
|
|
184
|
+
position: absolute;
|
|
185
|
+
inset-block: 0;
|
|
186
|
+
inset-inline: calc(-1 * var(--semantics-list-items-indicator-inline-inset));
|
|
187
|
+
z-index: var(--_list-item-indicator-z-index);
|
|
188
|
+
border-radius: var(--semantics-list-items-indicator-corner-radius);
|
|
189
|
+
background-color: var(--_list-item-background-color);
|
|
190
|
+
pointer-events: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host(.is-interactive) .list-item:not(:has(.list-item__action))::before,
|
|
194
|
+
.list-item__action::before {
|
|
195
|
+
inset-inline: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* data-current is set by the row itself when one of its own segments carries
|
|
199
|
+
current, so a segmented row paints without one on the host. */
|
|
200
|
+
:host(:is([selected], [checkbox][checked])),
|
|
201
|
+
:host(:is([current], [data-current])) {
|
|
202
|
+
--_list-item-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
203
|
+
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
204
|
+
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* On the row, not the host, so a ring inside matches the fill without
|
|
208
|
+
reaching the child rows. :where keeps it as light as the fill it mirrors. */
|
|
209
|
+
:host(:where([selected], [checkbox][checked], [current], [data-current])) .list-item {
|
|
210
|
+
--context-parent-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* A checked checkbox action selects the whole row, so the fill runs across
|
|
214
|
+
the disclosure action too instead of stopping at its boundary. */
|
|
215
|
+
.list-item.is-action-checked {
|
|
216
|
+
--_list-item-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
217
|
+
--context-parent-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
218
|
+
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
219
|
+
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Hover only on hover-capable devices, so a touch that turns into a scroll
|
|
223
|
+
does not flash the row under the finger.
|
|
224
|
+
|
|
225
|
+
The row hands its rung down to its segments through the two context
|
|
226
|
+
variables at the end of each block: a segmented row has no control of its
|
|
227
|
+
own, so the segment paints, and it must paint on the same scale as the
|
|
228
|
+
row it sits in. */
|
|
229
|
+
@media (hover: hover) {
|
|
230
|
+
:host(:not([disabled])) .list-item__action:hover {
|
|
231
|
+
--_list-item-background-color: var(--semantics-list-items-is-hovered-background-color);
|
|
232
|
+
--context-parent-background-color: var(--semantics-list-items-is-hovered-background-color);
|
|
233
|
+
--context-content-color: var(--semantics-list-items-is-hovered-content-color);
|
|
234
|
+
--context-content-secondary-color: var(--semantics-list-items-is-hovered-content-color);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host(:is([selected], [checkbox][checked]):not([disabled])) .list-item__action:hover,
|
|
238
|
+
:host(:is([current], [data-current]):not([disabled])) .list-item__action:hover {
|
|
239
|
+
--_list-item-background-color: var(--semantics-list-items-is-selected-is-hovered-background-color);
|
|
240
|
+
--context-parent-background-color: var(--semantics-list-items-is-selected-is-hovered-background-color);
|
|
241
|
+
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
242
|
+
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
:host(:is([selected], [checkbox][checked])) {
|
|
247
|
+
--context-list-item-hovered-background-color: var(--semantics-list-items-is-selected-is-hovered-background-color);
|
|
248
|
+
--context-list-item-hovered-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
249
|
+
--context-list-item-active-background-color: var(--semantics-list-items-is-selected-is-active-background-color);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* Pressing the row you are on lands on the accent whether or not focus got
|
|
253
|
+
there first. Safari does not focus a button on click, and a press that
|
|
254
|
+
waits for focus would go grey there while the other browsers go accent.
|
|
255
|
+
Hover still follows the focus: that is the state, not the gesture. */
|
|
256
|
+
:host(:is([current], [data-current])) {
|
|
257
|
+
--context-list-item-hovered-background-color: var(--semantics-list-items-is-selected-is-hovered-background-color);
|
|
258
|
+
--context-list-item-hovered-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
259
|
+
--context-list-item-active-background-color: var(--semantics-list-items-is-highlighted-is-active-background-color);
|
|
260
|
+
--context-list-item-active-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* focus-within on the host, not on the row-wide control: focus inside a
|
|
264
|
+
nested nldd-list-item-segment has to match, and a segmented row has no
|
|
265
|
+
control of its own to key off.
|
|
266
|
+
|
|
267
|
+
After the hover rules on purpose: a pointer that lands on the row is
|
|
268
|
+
hovering it as well, and the state it just gave focus to has to win. */
|
|
269
|
+
:host(:is([current], [data-current]):focus-within) .list-item,
|
|
270
|
+
:host(:is([current], [data-current]):focus-within) .list-item__action {
|
|
271
|
+
--context-parent-background-color: var(--semantics-list-items-is-highlighted-background-color);
|
|
272
|
+
--context-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
273
|
+
--context-content-secondary-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
:host(:is([current], [data-current]):focus-within) {
|
|
277
|
+
--context-list-item-hovered-background-color: var(--semantics-list-items-is-highlighted-is-hovered-background-color);
|
|
278
|
+
--context-list-item-hovered-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
279
|
+
--context-list-item-active-background-color: var(--semantics-list-items-is-highlighted-is-active-background-color);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:host(:is([current], [data-current]):focus-within) .list-item::before,
|
|
283
|
+
:host(:is([current], [data-current]):focus-within) .list-item__action::before {
|
|
284
|
+
background-color: var(--semantics-list-items-is-highlighted-background-color);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* Only the row-wide control, never the row itself: on a segmented row the
|
|
288
|
+
hovered segment deepens on its own, and a row that darkened as a whole
|
|
289
|
+
would hide which segment you are on. */
|
|
290
|
+
@media (hover: hover) {
|
|
291
|
+
:host(:is([current], [data-current]):focus-within:not([disabled])) .list-item__action:hover::before {
|
|
292
|
+
background-color: var(--semantics-list-items-is-highlighted-is-hovered-background-color);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* Two selectors, because pressing means hovering too and the hover rule
|
|
297
|
+
above carries a pseudo-class more: the focused one has to match its
|
|
298
|
+
weight to win, and the plain one catches Safari, where the mouse being
|
|
299
|
+
down means the row is not focused at all. */
|
|
300
|
+
:host(:is([current], [data-current]):not([disabled])) .list-item__action.is-pressed::before,
|
|
301
|
+
:host(:is([current], [data-current]):focus-within:not([disabled])) .list-item__action.is-pressed::before {
|
|
302
|
+
background-color: var(--semantics-list-items-is-highlighted-is-active-background-color);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* The content color has to travel with the fill: the neutral press rule
|
|
306
|
+
above sets it too, and black on a deep accent is unreadable. */
|
|
307
|
+
:host(:is([current], [data-current]):focus-within:not([disabled])) .list-item__action:hover {
|
|
308
|
+
--context-parent-background-color: var(--semantics-list-items-is-highlighted-is-hovered-background-color);
|
|
309
|
+
--context-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
310
|
+
--context-content-secondary-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* JS-driven rather than :active, so a touch that turns into a scroll clears
|
|
314
|
+
the press (pointercancel) instead of flashing it. */
|
|
315
|
+
:host(:not([disabled])) .list-item__action.is-pressed {
|
|
316
|
+
--_list-item-background-color: var(--semantics-list-items-is-active-background-color);
|
|
317
|
+
--context-parent-background-color: var(--semantics-list-items-is-active-background-color);
|
|
318
|
+
--context-content-color: var(--semantics-list-items-is-active-content-color);
|
|
319
|
+
--context-content-secondary-color: var(--semantics-list-items-is-active-content-color);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
:host(:is([selected], [checkbox][checked]):not([disabled])) .list-item__action.is-pressed,
|
|
323
|
+
:host(:is([current], [data-current]):not([disabled])) .list-item__action.is-pressed {
|
|
324
|
+
--_list-item-background-color: var(--semantics-list-items-is-selected-is-active-background-color);
|
|
325
|
+
--context-parent-background-color: var(--semantics-list-items-is-selected-is-active-background-color);
|
|
326
|
+
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
327
|
+
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
:host(:is([selected], [checkbox][checked])) .list-item__action {
|
|
331
|
+
--_list-item-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
332
|
+
--context-parent-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
333
|
+
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
334
|
+
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* .is-highlighted is set by the list: in a listbox the focus stays in the
|
|
338
|
+
search input, so the option cannot carry the state itself. */
|
|
339
|
+
/* After the neutral press rules above, or black lands on a deep accent. */
|
|
340
|
+
:host(:is([current], [data-current]):not([disabled])) .list-item__action.is-pressed {
|
|
341
|
+
--context-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
342
|
+
--context-content-secondary-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* The same two selectors as the fill above, so the hover rule cannot win. */
|
|
346
|
+
:host(:is([current], [data-current]):not([disabled])) .list-item__action.is-pressed,
|
|
347
|
+
:host(:is([current], [data-current]):focus-within:not([disabled])) .list-item__action.is-pressed {
|
|
348
|
+
--context-parent-background-color: var(--semantics-list-items-is-highlighted-is-active-background-color);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.list-item.is-highlighted,
|
|
352
|
+
:host(:is([selected], [checkbox][checked])) .list-item.is-highlighted .list-item__action {
|
|
353
|
+
--_list-item-background-color: var(--semantics-list-items-is-highlighted-background-color);
|
|
354
|
+
--context-parent-background-color: var(--semantics-list-items-is-highlighted-background-color);
|
|
355
|
+
--context-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
356
|
+
--context-content-secondary-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
/* The ring follows the real (widened) box: inset 0 against the row block,
|
|
362
|
+
painting outward like every other control. */
|
|
363
|
+
.list-item__action:focus-visible:not(.is-pointer-focus)::after,
|
|
364
|
+
:host(:focus-visible) .list-item::after {
|
|
365
|
+
content: '';
|
|
366
|
+
display: block;
|
|
367
|
+
position: absolute;
|
|
368
|
+
inset: 0;
|
|
369
|
+
border-radius: var(--semantics-list-items-indicator-corner-radius);
|
|
370
|
+
outline: var(--semantics-focus-ring-outline);
|
|
371
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
372
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
373
|
+
pointer-events: none;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* A tree row without a control of its own takes focus on the host, and the
|
|
377
|
+
host wraps the children group as well — so the browser's own ring would be
|
|
378
|
+
drawn around the whole open branch. Ours goes on the row. */
|
|
379
|
+
:host(:focus-visible) {
|
|
380
|
+
outline: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* The cell turns its own glyph from this, so the cell's box stays put: a
|
|
384
|
+
rotated cell reports a turned box, and that box is what the divider
|
|
385
|
+
measurement below reads. */
|
|
386
|
+
:host([expanded]) ::slotted(nldd-icon-cell[disclosure]) {
|
|
387
|
+
--context-cell-glyph-rotation: 90deg;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
/* Indentation is the consumer's. Re-inset a widened parent's strip, or each
|
|
392
|
+
nested level would bleed a further inset outward. */
|
|
393
|
+
|
|
394
|
+
.list-item__children {
|
|
395
|
+
display: block;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
:host(.is-interactive) .list-item__children {
|
|
399
|
+
padding-inline: var(--semantics-list-items-indicator-inline-inset);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.list-item__children[hidden] {
|
|
403
|
+
display: none;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
/* Content-wide by default; the divider-start/divider-end cell markers
|
|
408
|
+
override it through the measured --_list-item-divider-inset-* vars. */
|
|
409
|
+
|
|
410
|
+
/* A segment with focus paints its ring past its own box, and the
|
|
411
|
+
divider is rendered after the slot — so without this the line ran straight
|
|
412
|
+
through the ring. Lifting the focused action puts the ring on top. */
|
|
413
|
+
::slotted(nldd-list-item-segment:focus-within) {
|
|
414
|
+
z-index: var(--_list-item-focus-z-index);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.list-item__divider {
|
|
418
|
+
display: var(--context-list-divider-display, block);
|
|
419
|
+
position: absolute;
|
|
420
|
+
/* Hangs in the row's bottom margin: the boundary band belongs to the pair
|
|
421
|
+
of rows, not to either one. */
|
|
422
|
+
inset-block-end: calc(-1 * var(--semantics-dividers-thickness));
|
|
423
|
+
inset-inline: var(--_list-item-divider-inset-start, 0px) var(--_list-item-divider-inset-end, 0px);
|
|
424
|
+
background-color: var(--semantics-dividers-color);
|
|
425
|
+
height: var(--semantics-dividers-thickness);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
:host(.is-interactive) .list-item__divider {
|
|
429
|
+
inset-inline:
|
|
430
|
+
var(--_list-item-divider-inset-start, var(--semantics-list-items-indicator-inline-inset))
|
|
431
|
+
var(--_list-item-divider-inset-end, var(--semantics-list-items-indicator-inline-inset));
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
:host(.is-boxed.is-last) .list-item {
|
|
435
|
+
margin-block-end: 0;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
:host(.is-boxed.is-last) .list-item__divider,
|
|
439
|
+
:host(.is-dragging) .list-item__divider,
|
|
440
|
+
:host([data-nldd-clone]) .list-item__divider {
|
|
441
|
+
display: none;
|
|
442
|
+
}
|
|
443
|
+
`, x = a`<slot></slot>`, S = a`<div class="list-item__divider"></div>`, C = (e, t, n, r, i, s, c, l = !1, u = !1, d = !1, p = !1, m, h = !1, _ = !1, v = !1, y = "group", b = m === !0, C = "") => {
|
|
444
|
+
let w = C ? [C, s].filter(Boolean).join(", ") : o, T = m === void 0 ? o : String(m), E = h ? a`<div class="list-item__children"
|
|
445
|
+
role=${y}
|
|
446
|
+
?hidden=${!b}
|
|
447
|
+
><slot name="children"></slot></div>` : a`<slot name="children" hidden></slot>`, D = g({
|
|
448
|
+
"list-item": !0,
|
|
449
|
+
"is-highlighted": l,
|
|
450
|
+
"is-action-checked": _
|
|
451
|
+
});
|
|
452
|
+
return t ? a`<div class=${D}>
|
|
453
|
+
<a class="list-item__action"
|
|
454
|
+
href=${t}
|
|
455
|
+
target=${n ?? o}
|
|
456
|
+
rel=${f(r, n) || o}
|
|
457
|
+
download=${i ?? o}
|
|
458
|
+
aria-label=${w}
|
|
459
|
+
aria-disabled=${v ? "true" : o}
|
|
460
|
+
aria-expanded=${T}
|
|
461
|
+
tabindex=${c ?? o}
|
|
462
|
+
>${x}${s && !C ? a`<span class="list-item__link-hint">, ${s}</span>` : o}</a>
|
|
463
|
+
${S}
|
|
464
|
+
</div>${E}` : u ? a`<div class=${D}>
|
|
465
|
+
<button class="list-item__action"
|
|
466
|
+
type="button"
|
|
467
|
+
role="checkbox"
|
|
468
|
+
aria-label=${w}
|
|
469
|
+
?disabled=${v}
|
|
470
|
+
aria-checked=${String(p)}
|
|
471
|
+
aria-expanded=${T}
|
|
472
|
+
tabindex=${c ?? o}
|
|
473
|
+
>${x}</button>
|
|
474
|
+
${S}
|
|
475
|
+
</div>${E}` : d ? a`<div class=${D}>
|
|
476
|
+
<button class="list-item__action"
|
|
477
|
+
type="button"
|
|
478
|
+
role="radio"
|
|
479
|
+
aria-label=${w}
|
|
480
|
+
?disabled=${v}
|
|
481
|
+
aria-checked=${String(p)}
|
|
482
|
+
tabindex=${c ?? o}
|
|
483
|
+
>${x}</button>
|
|
484
|
+
${S}
|
|
485
|
+
</div>${E}` : e ? a`<div class=${D}>
|
|
486
|
+
<button class="list-item__action"
|
|
487
|
+
type="button"
|
|
488
|
+
aria-label=${w}
|
|
489
|
+
?disabled=${v}
|
|
490
|
+
aria-expanded=${T}
|
|
491
|
+
tabindex=${c ?? o}
|
|
492
|
+
>${x}</button>
|
|
493
|
+
${S}
|
|
494
|
+
</div>${E}` : a`<div class=${D}>
|
|
495
|
+
${x}
|
|
496
|
+
${S}
|
|
497
|
+
</div>${E}`;
|
|
498
|
+
}, w = /* @__PURE__ */ e({ NLDDListItem: () => P }), T, E, D = "a[href], button, input, select, textarea, [contenteditable]:not([contenteditable=\"false\"]), [tabindex]", O = /* @__PURE__ */ new WeakMap();
|
|
499
|
+
function k(e) {
|
|
500
|
+
let t = O.get(e);
|
|
501
|
+
return t || (t = {
|
|
502
|
+
noTab: "noTab" in e ? e.noTab : void 0,
|
|
503
|
+
tabindex: e.getAttribute("tabindex")
|
|
504
|
+
}, O.set(e, t)), t;
|
|
505
|
+
}
|
|
506
|
+
function A(e, t) {
|
|
507
|
+
t.noTab === void 0 ? t.tabindex === null ? e.removeAttribute("tabindex") : e.setAttribute("tabindex", t.tabindex) : e.noTab = t.noTab;
|
|
508
|
+
}
|
|
509
|
+
function j(e, t) {
|
|
510
|
+
let n = k(e);
|
|
511
|
+
n.noTab === void 0 ? t ? A(e, n) : e.setAttribute("tabindex", "-1") : e.noTab = n.noTab || !t;
|
|
512
|
+
}
|
|
513
|
+
function M(e) {
|
|
514
|
+
let t = O.get(e);
|
|
515
|
+
t && (A(e, t), O.delete(e));
|
|
516
|
+
}
|
|
517
|
+
var N = "nldd-list-item-segment, nldd-button, nldd-icon-button, nldd-link, nldd-checkbox, nldd-radio-button, nldd-switch, a[href], button, input, select, textarea", P = (T = class extends h(i, y) {
|
|
518
|
+
constructor(...e) {
|
|
519
|
+
super(...e), this.size = "md", this.download = void 0, this.button = !1, this.checkbox = !1, this.radio = !1, this.expandable = !1, this.accessibleLabel = "", this.reorderable = !1, this.selected = !1, this.checked = !1, this.current = !1, this.currentType = "page", this.disabled = !1, this._showChildren = !1, this._parentType = "list", this._arrowNavigation = !1, this._rovingActive = !1, this._highlighted = !1, this._isBoxed = !1, this._hasCheckedSegment = !1, this._lightDomObserver = null, this._rovingControlsCache = null, this._dividerMarkerObserver = null, this._observedMarkerTargets = [], this._ownCellSize = /* @__PURE__ */ new WeakMap(), this._onSlotChange = (e) => {
|
|
520
|
+
if (!import.meta.env?.DEV) return;
|
|
521
|
+
let t = e.target;
|
|
522
|
+
t.name || (d(this, "bare-text", t.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.TEXT_NODE && (e.textContent ?? "").trim() !== "")), this._syncNestedControl());
|
|
523
|
+
}, this._handleClick = (e) => {
|
|
524
|
+
this.disabled ? (e.preventDefault(), e.stopPropagation()) : (this._action?.focus(), this.checkbox && !this.href && e.composedPath().includes(this._action) && (this.checked = !this.checked, this.dispatchEvent(new CustomEvent("change", {
|
|
525
|
+
detail: { checked: this.checked },
|
|
526
|
+
bubbles: !0,
|
|
527
|
+
composed: !0
|
|
528
|
+
}))), this.radio && !this.checkbox && !this.href && !this.checked && e.composedPath().includes(this._action) && (this.checked = !0, this.dispatchEvent(new CustomEvent("change", {
|
|
529
|
+
detail: { checked: !0 },
|
|
530
|
+
bubbles: !0,
|
|
531
|
+
composed: !0
|
|
532
|
+
}))));
|
|
533
|
+
}, this._handleFocusIn = () => {
|
|
534
|
+
this._action?.classList.toggle("is-pointer-focus", v());
|
|
535
|
+
}, this._handleFocusOut = () => {
|
|
536
|
+
this._action?.classList.remove("is-pointer-focus");
|
|
537
|
+
}, this._onMouseDown = (e) => {
|
|
538
|
+
e.button > 0 || this.reorderable || this._isFromNestedRow(e) || this._action && e.preventDefault();
|
|
539
|
+
}, this._onPointerDown = (e) => {
|
|
540
|
+
this.disabled || e.button > 0 || this._isFromNestedRow(e) || (this._action?.classList.add("is-pressed"), window.addEventListener("pointerup", this._clearPressed), window.addEventListener("pointercancel", this._clearPressed), this._action?.focus({ preventScroll: !0 }));
|
|
541
|
+
}, this._clearPressed = () => {
|
|
542
|
+
window.removeEventListener("pointerup", this._clearPressed), window.removeEventListener("pointercancel", this._clearPressed), this._action?.classList.remove("is-pressed");
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
connectedCallback() {
|
|
546
|
+
super.connectedCallback(), this._captureAuthoredCellSizes(), !this.hasAttribute("data-nldd-clone") && (this.setAttribute("role", "listitem"), this.addEventListener("focusin", this._handleFocusIn), this.addEventListener("focusout", this._handleFocusOut), this.addEventListener("click", this._handleClick), this.addEventListener("pointerdown", this._onPointerDown), this.addEventListener("mousedown", this._onMouseDown), this._lightDomObserver = new MutationObserver(() => this._onLightDomChange()), this._lightDomObserver.observe(this, {
|
|
547
|
+
subtree: !0,
|
|
548
|
+
childList: !0,
|
|
549
|
+
attributes: !0,
|
|
550
|
+
attributeFilter: [
|
|
551
|
+
"checked",
|
|
552
|
+
"current",
|
|
553
|
+
"divider-start",
|
|
554
|
+
"divider-end"
|
|
555
|
+
]
|
|
556
|
+
}), this._onLightDomChange());
|
|
557
|
+
}
|
|
558
|
+
disconnectedCallback() {
|
|
559
|
+
super.disconnectedCallback(), this.removeEventListener("focusin", this._handleFocusIn), this.removeEventListener("focusout", this._handleFocusOut), this.removeEventListener("click", this._handleClick), this.removeEventListener("pointerdown", this._onPointerDown), this.removeEventListener("mousedown", this._onMouseDown), this._clearPressed(), this._lightDomObserver?.disconnect(), this._lightDomObserver = null, this._dividerMarkerObserver?.disconnect(), this._dividerMarkerObserver = null;
|
|
560
|
+
}
|
|
561
|
+
_onLightDomChange() {
|
|
562
|
+
this._updateCheckedSegment(), this._updateCurrentSegment(), this._updateInteractive(), this._measureDividerMarkers(), this._rovingControlsCache = null, this._arrowNavigation && (this._syncRovingTabStops(), this._parentList?._updateRoving());
|
|
563
|
+
}
|
|
564
|
+
get _parentList() {
|
|
565
|
+
return this.closest("nldd-list");
|
|
566
|
+
}
|
|
567
|
+
_rovingControls() {
|
|
568
|
+
if (this._rovingControlsCache) return this._rovingControlsCache;
|
|
569
|
+
let e = /* @__PURE__ */ new Set(), t = this._ownDescendants("*").filter((t) => {
|
|
570
|
+
let n = t.tagName.toLowerCase();
|
|
571
|
+
return n === "nldd-list-item-segment" ? !1 : n.includes("-") && !customElements.get(n) ? (e.add(n), !1) : "noTab" in t || t.matches(D);
|
|
572
|
+
});
|
|
573
|
+
return this._rovingControlsCache = t, e.forEach((e) => {
|
|
574
|
+
customElements.whenDefined(e).then(() => {
|
|
575
|
+
this._rovingControlsCache = null, this._arrowNavigation && this._syncRovingTabStops();
|
|
576
|
+
});
|
|
577
|
+
}), t;
|
|
578
|
+
}
|
|
579
|
+
get _isRovingStop() {
|
|
580
|
+
return this.disabled ? !1 : this.href || this.button || this.checkbox || this.radio || this._ownDescendants("nldd-list-item-segment:not([disabled])").length > 0 ? !0 : this._rovingControls().some((e) => !e.hasAttribute("disabled"));
|
|
581
|
+
}
|
|
582
|
+
_updateCurrentSegment() {
|
|
583
|
+
this.toggleAttribute("data-current", this._ownDescendants("nldd-list-item-segment[current]").length > 0);
|
|
584
|
+
}
|
|
585
|
+
_updateCheckedSegment() {
|
|
586
|
+
this._hasCheckedSegment = this._ownDescendants("nldd-list-item-segment[checkbox][checked]").length > 0;
|
|
587
|
+
}
|
|
588
|
+
_updateInteractive() {
|
|
589
|
+
let e = !!this.href || this.button || this.checkbox || this.radio || this._ownDescendants("nldd-list-item-segment").length > 0;
|
|
590
|
+
this.classList.toggle("is-interactive", e);
|
|
591
|
+
let t = Array.from(this.children).filter((e) => e.getAttribute("slot") !== "children"), n = (e) => e?.tagName.toLowerCase() === "nldd-list-item-segment";
|
|
592
|
+
this.classList.toggle("has-leading-segment", n(t[0])), this.classList.toggle("has-trailing-segment", n(t[t.length - 1]));
|
|
593
|
+
}
|
|
594
|
+
willUpdate(e) {
|
|
595
|
+
super.willUpdate(e), !(this.hasUpdated || this.hasAttribute("data-nldd-clone")) && this._syncWithList();
|
|
596
|
+
}
|
|
597
|
+
firstUpdated() {
|
|
598
|
+
this.hasAttribute("data-nldd-clone") || (this._observeChildrenSlot(), this.renderRoot.addEventListener("slotchange", this._onSlotChange), queueMicrotask(() => this._updateChildren()), this._relayExpanded(), this._measureDividerMarkers());
|
|
599
|
+
}
|
|
600
|
+
_ownDescendants(e) {
|
|
601
|
+
return Array.from(this.querySelectorAll(e)).filter((e) => e.closest("nldd-list-item") === this);
|
|
602
|
+
}
|
|
603
|
+
_captureAuthoredCellSizes() {
|
|
604
|
+
this._ownDescendants(E.SIZED_CELLS).forEach((e) => {
|
|
605
|
+
this._ownCellSize.has(e) || this._ownCellSize.set(e, e.getAttribute("size"));
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
_propagateSize() {
|
|
609
|
+
this._captureAuthoredCellSizes(), this._ownDescendants(E.SIZED_CELLS).forEach((e) => {
|
|
610
|
+
this._ownCellSize.get(e) ?? e.setAttribute("size", this.size);
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
updated(e) {
|
|
614
|
+
(e.has("selected") || e.has("current") || e.has("currentType") || e.has("button") || e.has("checkbox") || e.has("radio") || e.has("href") || e.has("_parentType")) && this._updateAriaState(), (e.has("button") || e.has("checkbox") || e.has("radio") || e.has("href")) && (this._updateInteractive(), this._syncNestedControl()), (e.has("expanded") || e.has("expandable")) && (this._relayExpanded(), this._syncExpandedFacts()), (e.has("accessibleLabel") || e.has("href") || e.has("button")) && this._syncLabelFacts(), (e.has("_arrowNavigation") || e.has("_rovingActive")) && this._syncRovingTabStops(), e.has("disabled") && (this._syncRovingTabStops(), this._parentList?._updateRoving()), this._propagateSize();
|
|
615
|
+
}
|
|
616
|
+
get _resolvedExpanded() {
|
|
617
|
+
if (!(this._showChildren && this._parentType === "navigation")) return this._showChildren || this.expandable ? this.expanded === !0 : this.expanded;
|
|
618
|
+
}
|
|
619
|
+
get _childrenOpen() {
|
|
620
|
+
return this._parentType === "navigation" || this.expanded === !0;
|
|
621
|
+
}
|
|
622
|
+
_relayExpanded() {
|
|
623
|
+
this._ownDescendants("nldd-list-item-segment[disclosure]").forEach((e) => {
|
|
624
|
+
e._rowExpanded = this._resolvedExpanded;
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
_syncLabelFacts() {
|
|
628
|
+
let e = this._ownDescendants("nldd-title-cell, nldd-text-cell")[0], t = (e) => e.replace(/\*\*/g, "").replace(/\s+/g, " ").trim().toLowerCase(), n = t(e?.getAttribute("text") ?? e?.textContent ?? ""), r = !!this.accessibleLabel && !!n && !t(this.accessibleLabel).startsWith(n);
|
|
629
|
+
d(this, "label-without-title", r);
|
|
630
|
+
}
|
|
631
|
+
_syncExpandedFacts() {
|
|
632
|
+
if (!import.meta.env?.DEV) return;
|
|
633
|
+
let e = this.expanded !== void 0 || this.expandable, t = e && this._showChildren && this._parentType === "navigation";
|
|
634
|
+
d(this, "expanded-in-navigation", t), d(this, "expanded-without-control", e && !t && !this.href && !this.button && !this.checkbox && this._ownDescendants("nldd-list-item-segment[disclosure]").length === 0);
|
|
635
|
+
}
|
|
636
|
+
_syncNestedControl() {
|
|
637
|
+
if (!import.meta.env?.DEV || this.hasAttribute("data-nldd-clone")) return;
|
|
638
|
+
let e = !!(this.href || this.button || this.checkbox || this.radio);
|
|
639
|
+
d(this, "nested-control", e && [...this.children].filter((e) => !e.slot).flatMap((e) => [e, ...e.querySelectorAll("*")]).some((e) => e.matches(N) && !e.matches("[decorative]") && !e.closest("[aria-hidden=\"true\"], [inert]")));
|
|
640
|
+
}
|
|
641
|
+
get _isListboxOption() {
|
|
642
|
+
return this._parentType === "listbox";
|
|
643
|
+
}
|
|
644
|
+
_syncWithList() {
|
|
645
|
+
let e = this.closest("nldd-list");
|
|
646
|
+
e && (this._applyAppearance(e.appearance), this._applyParentType(e.type));
|
|
647
|
+
}
|
|
648
|
+
_applyAppearance(e) {
|
|
649
|
+
this._isBoxed = e.startsWith("box"), this._relayToChildren((t) => t._applyAppearance(e)), this.classList.toggle("is-boxed", this._isBoxed);
|
|
650
|
+
}
|
|
651
|
+
_applyParentType(e) {
|
|
652
|
+
this._parentType = e, this._relayToChildren((t) => t._applyParentType(e)), this._ownDescendants("nldd-list-item-segment").forEach((t) => t._applyParentType?.(e));
|
|
653
|
+
}
|
|
654
|
+
get childRows() {
|
|
655
|
+
return Array.from(this.children).filter((e) => e.getAttribute("slot") === "children" && e.tagName.toLowerCase() === "nldd-list-item");
|
|
656
|
+
}
|
|
657
|
+
_relayToChildren(e) {
|
|
658
|
+
this.childRows.forEach(e);
|
|
659
|
+
}
|
|
660
|
+
_updateAriaState() {
|
|
661
|
+
this._parentType === "radiogroup" ? (this.setAttribute("role", "none"), this.removeAttribute("aria-selected")) : this._parentType === "tree" ? (this.setAttribute("role", "treeitem"), this.removeAttribute("aria-selected")) : this._isListboxOption ? (this.setAttribute("role", "option"), this.setAttribute("aria-selected", String(this.selected))) : (this.setAttribute("role", "listitem"), this.removeAttribute("aria-selected"));
|
|
662
|
+
let e = this._action;
|
|
663
|
+
this._parentType === "navigation" && (this.current || this.selected) && e ? e.setAttribute("aria-current", this.currentType) : e?.removeAttribute("aria-current");
|
|
664
|
+
}
|
|
665
|
+
_implicitDividerStart() {
|
|
666
|
+
return this._ownDescendants("nldd-text-cell, nldd-title-cell");
|
|
667
|
+
}
|
|
668
|
+
_measureDividerMarkers() {
|
|
669
|
+
if (this.hasAttribute("data-nldd-clone")) return;
|
|
670
|
+
let e = this._parentList?.getAttribute("dividers") !== "never", t = e ? this._ownDescendants("[divider-start]") : [], n = e ? t.length ? t : this._implicitDividerStart() : [], r = e ? this._ownDescendants("[divider-end]") : [], i = n.length || r.length ? [
|
|
671
|
+
this,
|
|
672
|
+
...n,
|
|
673
|
+
...r
|
|
674
|
+
] : [];
|
|
675
|
+
if (i.length === this._observedMarkerTargets.length && i.every((e, t) => e === this._observedMarkerTargets[t]) || (this._dividerMarkerObserver?.disconnect(), this._observedMarkerTargets = i, i.length ? (this._dividerMarkerObserver ?? (this._dividerMarkerObserver = new ResizeObserver(() => this._measureDividerMarkers())), i.forEach((e) => this._dividerMarkerObserver.observe(e))) : this._dividerMarkerObserver = null), i.length === 0) {
|
|
676
|
+
d(this, "degenerate-divider", !1), this.style.removeProperty("--_list-item-divider-inset-start"), this.style.removeProperty("--_list-item-divider-inset-end");
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
let a = this.shadowRoot?.querySelector(".list-item");
|
|
680
|
+
if (!a) return;
|
|
681
|
+
let o = a.getBoundingClientRect();
|
|
682
|
+
if (o.width === 0) return;
|
|
683
|
+
let s = getComputedStyle(this).direction === "rtl", c = (e) => s ? o.right - e.right : e.left - o.left, l = (e) => s ? e.left - o.left : o.right - e.right, u = (e) => e.getClientRects().length > 0, f = n.filter(u), p = r.filter(u), m = f.length ? Math.min(...f.map((e) => c(e.getBoundingClientRect()))) : null, h = p.length ? Math.min(...p.map((e) => l(e.getBoundingClientRect()))) : null, g = m !== null && h !== null && o.width - m - h <= 0;
|
|
684
|
+
d(this, "degenerate-divider", g), g ? (this.style.removeProperty("--_list-item-divider-inset-start"), this.style.removeProperty("--_list-item-divider-inset-end")) : (m === null ? this.style.removeProperty("--_list-item-divider-inset-start") : this.style.setProperty("--_list-item-divider-inset-start", `${m}px`), h === null ? this.style.removeProperty("--_list-item-divider-inset-end") : this.style.setProperty("--_list-item-divider-inset-end", `${h}px`));
|
|
685
|
+
}
|
|
686
|
+
_observeChildrenSlot() {
|
|
687
|
+
(this.shadowRoot?.querySelector("slot[name=\"children\"]"))?.addEventListener("slotchange", () => this._updateChildren());
|
|
688
|
+
}
|
|
689
|
+
_updateChildren() {
|
|
690
|
+
let e = ((this.shadowRoot?.querySelector("slot[name=\"children\"]"))?.assignedElements() ?? []).filter((e) => e.tagName.toLowerCase() === "nldd-list-item"), t = this._showChildren;
|
|
691
|
+
this._showChildren = e.length > 0, this._showChildren !== t && this._relayExpanded(), this._showChildren && e.forEach((e) => {
|
|
692
|
+
let t = e;
|
|
693
|
+
t._applyAppearance?.(this._isBoxed ? "box-tinted" : "simple"), t._applyParentType?.(this._parentType);
|
|
694
|
+
}), this._syncExpandedFacts();
|
|
695
|
+
}
|
|
696
|
+
_isFromNestedRow(e) {
|
|
697
|
+
let t = e.composedPath(), n = t.indexOf(this);
|
|
698
|
+
return t.slice(0, n === -1 ? t.length : n).some((e) => e instanceof Element && e.localName === "nldd-list-item");
|
|
699
|
+
}
|
|
700
|
+
focus(e) {
|
|
701
|
+
_(this, e) || (this._action ? this._action.focus(e) : super.focus(e));
|
|
702
|
+
}
|
|
703
|
+
_syncRovingTabStops() {
|
|
704
|
+
let e = this._ownSegments();
|
|
705
|
+
this._arrowNavigation ? (this._action || !this._rovingActive ? this.removeAttribute("tabindex") : this.setAttribute("tabindex", "0"), e.forEach((e) => {
|
|
706
|
+
e._tabbable = this._rovingActive;
|
|
707
|
+
}), this._rovingControls().forEach((e) => {
|
|
708
|
+
j(e, this._rovingActive);
|
|
709
|
+
})) : (this.removeAttribute("tabindex"), e.forEach((e) => {
|
|
710
|
+
e._tabbable = void 0;
|
|
711
|
+
}), this._rovingControls().forEach(M));
|
|
712
|
+
}
|
|
713
|
+
_slottedControlFor(e) {
|
|
714
|
+
let t = [];
|
|
715
|
+
for (let n of e) {
|
|
716
|
+
if (n === this) break;
|
|
717
|
+
n instanceof Element && this.contains(n) && t.push(n);
|
|
718
|
+
}
|
|
719
|
+
return t.length === 0 || t.length === 1 && t[0].tagName.toLowerCase() === "nldd-list-item-segment" ? null : t[0];
|
|
720
|
+
}
|
|
721
|
+
_parkControls() {
|
|
722
|
+
this._arrowNavigation && this._rovingActive && (this._ownSegments().forEach((e) => {
|
|
723
|
+
e._tabbable = !1;
|
|
724
|
+
}), this._rovingControls().forEach((e) => {
|
|
725
|
+
j(e, !1);
|
|
726
|
+
}));
|
|
727
|
+
}
|
|
728
|
+
_ownSegments() {
|
|
729
|
+
return Array.from(this.children).filter((e) => e.getAttribute("slot") !== "children" && e.tagName.toLowerCase() === "nldd-list-item-segment");
|
|
730
|
+
}
|
|
731
|
+
get _disclosureControl() {
|
|
732
|
+
let e = Array.from(this.children).find((e) => e.getAttribute("slot") !== "children" && e.tagName.toLowerCase() === "nldd-list-item-segment" && e.hasAttribute("disclosure"));
|
|
733
|
+
if (e) return e;
|
|
734
|
+
if (this.button && !this.href) return this._action;
|
|
735
|
+
}
|
|
736
|
+
_activateDisclosure() {
|
|
737
|
+
let e = this._disclosureControl;
|
|
738
|
+
if (!e) return !1;
|
|
739
|
+
let t = this.matches(":focus-within");
|
|
740
|
+
return e.click(), t && this.focus(), !0;
|
|
741
|
+
}
|
|
742
|
+
_activatePrimary() {
|
|
743
|
+
let e = [...this.querySelectorAll(":scope > nldd-list-item-segment")].find((e) => !e.hasAttribute("disclosure"));
|
|
744
|
+
if (!e) return !1;
|
|
745
|
+
let t = e.shadowRoot?.querySelector("a, button");
|
|
746
|
+
if (!t) return !1;
|
|
747
|
+
let n = this.matches(":focus-within");
|
|
748
|
+
return t.click(), n && this.focus(), !0;
|
|
749
|
+
}
|
|
750
|
+
get parentRow() {
|
|
751
|
+
let e = this.parentElement;
|
|
752
|
+
if (e && e.tagName.toLowerCase() === "nldd-list-item") return e;
|
|
753
|
+
}
|
|
754
|
+
render() {
|
|
755
|
+
let e = m(this.href, this.target, this.download);
|
|
756
|
+
this.href && p(this, this.download, this.target);
|
|
757
|
+
let t = e ? this._t(`components.list-item.${e}`) : void 0, n = this._isListboxOption ? "-1" : this._arrowNavigation ? this._rovingActive ? "0" : "-1" : void 0;
|
|
758
|
+
return C(this.button, this.href, this.target, this.rel, this.download, t, n, this._highlighted, this.checkbox, this.radio, this.checked, this._resolvedExpanded, this._showChildren, this._hasCheckedSegment, this.disabled, this._parentType === "navigation" ? "list" : "group", this._childrenOpen, this.accessibleLabel);
|
|
759
|
+
}
|
|
760
|
+
}, E = T, T.styles = [b], T.SIZED_CELLS = "nldd-text-cell, nldd-drag-handle-cell", T);
|
|
761
|
+
s([n({
|
|
762
|
+
reflect: !0,
|
|
763
|
+
converter: u("md")
|
|
764
|
+
})], P.prototype, "size", void 0), s([n({ reflect: !0 })], P.prototype, "href", void 0), s([n({ reflect: !0 })], P.prototype, "target", void 0), s([n({ type: String })], P.prototype, "download", void 0), s([n({ reflect: !0 })], P.prototype, "rel", void 0), s([n({
|
|
765
|
+
type: Boolean,
|
|
766
|
+
reflect: !0
|
|
767
|
+
})], P.prototype, "button", void 0), s([n({
|
|
768
|
+
type: Boolean,
|
|
769
|
+
reflect: !0
|
|
770
|
+
})], P.prototype, "checkbox", void 0), s([n({
|
|
771
|
+
type: Boolean,
|
|
772
|
+
reflect: !0
|
|
773
|
+
})], P.prototype, "radio", void 0), s([n({
|
|
774
|
+
type: Boolean,
|
|
775
|
+
reflect: !0
|
|
776
|
+
})], P.prototype, "expandable", void 0), s([n({
|
|
777
|
+
type: String,
|
|
778
|
+
attribute: "accessible-label"
|
|
779
|
+
})], P.prototype, "accessibleLabel", void 0), s([n({
|
|
780
|
+
type: Boolean,
|
|
781
|
+
reflect: !0
|
|
782
|
+
})], P.prototype, "reorderable", void 0), s([n({
|
|
783
|
+
type: Boolean,
|
|
784
|
+
reflect: !0
|
|
785
|
+
})], P.prototype, "selected", void 0), s([n({
|
|
786
|
+
type: Boolean,
|
|
787
|
+
reflect: !0
|
|
788
|
+
})], P.prototype, "checked", void 0), s([n({
|
|
789
|
+
type: Boolean,
|
|
790
|
+
reflect: !0
|
|
791
|
+
})], P.prototype, "expanded", void 0), s([n({
|
|
792
|
+
type: Boolean,
|
|
793
|
+
reflect: !0
|
|
794
|
+
})], P.prototype, "current", void 0), s([n({
|
|
795
|
+
reflect: !0,
|
|
796
|
+
attribute: "current-type",
|
|
797
|
+
converter: u("page")
|
|
798
|
+
})], P.prototype, "currentType", void 0), s([n({
|
|
799
|
+
type: Boolean,
|
|
800
|
+
reflect: !0
|
|
801
|
+
})], P.prototype, "disabled", void 0), s([r()], P.prototype, "_showChildren", void 0), s([r()], P.prototype, "_parentType", void 0), s([r()], P.prototype, "_arrowNavigation", void 0), s([r()], P.prototype, "_rovingActive", void 0), s([r()], P.prototype, "_highlighted", void 0), s([l(".list-item__action")], P.prototype, "_action", void 0), s([r()], P.prototype, "_hasCheckedSegment", void 0), P = E = s([c("nldd-list-item")], P);
|
|
802
|
+
export { w as t };
|