@nldd/design-system 0.20.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +361 -10
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-GinEMPm9.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-OywRKaWj.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-vmZLo80s.js +662 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-CXDzSBoL.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-A2DFWrP9.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-DQ52qq5L.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-BLXecYsZ.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BtxzRedh.js +719 -0
- package/dist/cdn/chunks/menu-bar-BU3Hjk1b.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-C7LQ0NI_.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-CGbeEv_-.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-BzZWhXhc.js +57 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-CqN7ViYV.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-CFPBdETU.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-DH19p8So.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-CA8K1XjU.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field--5K0YTcr.js +607 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-BpyxOGmU.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-C24LqAzK.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-C_kLPVKD.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-CxV6ELE9.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.d.ts +1 -0
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +1 -0
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +1 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +1 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -0
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +1 -0
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +1 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +1 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -0
- package/dist/components/content/text/text.d.ts.map +1 -1
- package/dist/components/content/text/text.js +1 -0
- package/dist/components/content/text/text.js.map +1 -1
- package/dist/components/content/title/title.d.ts +1 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +1 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/forms/form/form.d.ts.map +1 -1
- package/dist/components/forms/form/form.js +1 -0
- package/dist/components/forms/form/form.js.map +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +1 -0
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +1 -0
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +9 -4
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +20 -7
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +1 -0
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +23 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +68 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +4 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +17 -2
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -0
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +1 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +4 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/nldd.min.js +729 -727
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/dist/utilities/return-focus.d.ts +14 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +26 -8
- package/dist/utilities/return-focus.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/engine.js +53 -1
- package/lint/format.js +6 -5
- package/lint/frontends.js +224 -16
- package/lint/linter.js +5 -3
- package/lint/main.js +36 -9
- package/lint/project.js +73 -4
- package/lint/rule-data.js +17 -2
- package/lint/tree.js +3 -0
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { r as e } from "./icon-BORlalt0.js";
|
|
2
|
+
import { a as t, i as n, n as r } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as i, o as a, t as o } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { r as l } from "./element-state-B-44fVqq.js";
|
|
7
|
+
import { t as u } from "./translations-wxBSz213.js";
|
|
8
|
+
import { a as d, n as f, o as p, r as m, t as h } from "./floating-ui.dom-B8J1rV2c.js";
|
|
9
|
+
import { n as g } from "./input-modality-XE0B7yCn.js";
|
|
10
|
+
import { n as _ } from "./breakpoints-Cwor8TRP.js";
|
|
11
|
+
import { n as v, t as y } from "./return-focus-BzZWhXhc.js";
|
|
12
|
+
import { t as b } from "./popover.i18n-DmFBHUvB.js";
|
|
13
|
+
import { t as x } from "./dismiss-from-title-bar-C6mP7sWP.js";
|
|
14
|
+
// src/components/layout/popover/popover.styles.ts
|
|
15
|
+
var S = t(_.smMax), C = t(_.mdMin), w = n`
|
|
16
|
+
:host {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/* # Host */
|
|
22
|
+
|
|
23
|
+
:host {
|
|
24
|
+
--_popover-background-color: var(--semantics-surfaces-base-background-color);
|
|
25
|
+
--_popover-max-height: calc(100vh - var(--semantics-overlays-inset) * 2);
|
|
26
|
+
--_popover-default-width: var(--primitives-area-320);
|
|
27
|
+
--context-parent-background-color: var(--_popover-background-color);
|
|
28
|
+
|
|
29
|
+
margin: 0;
|
|
30
|
+
outline: none;
|
|
31
|
+
border: none;
|
|
32
|
+
box-shadow: var(--semantics-overlays-box-shadow);
|
|
33
|
+
background-color: var(--_popover-background-color);
|
|
34
|
+
overflow: auto;
|
|
35
|
+
padding: 0;
|
|
36
|
+
isolation: isolate;
|
|
37
|
+
/* Selectable again under a trigger that switches selection off for itself
|
|
38
|
+
and everything in it, as nldd-button and nldd-menu-bar-item do. */
|
|
39
|
+
-webkit-user-select: text;
|
|
40
|
+
user-select: text;
|
|
41
|
+
|
|
42
|
+
@media (max-width: ${S}) {
|
|
43
|
+
position: fixed;
|
|
44
|
+
inset: auto 0 0 0;
|
|
45
|
+
border-radius: var(--semantics-overlays-corner-radius) var(--semantics-overlays-corner-radius) 0 0;
|
|
46
|
+
width: 100%;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
max-height: calc(100dvh - var(--semantics-sheets-bottom-top-inset));
|
|
49
|
+
transform: translateY(100%);
|
|
50
|
+
transition:
|
|
51
|
+
transform var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default),
|
|
52
|
+
display var(--semantics-sheets-bottom-animation-duration) allow-discrete,
|
|
53
|
+
overlay var(--semantics-sheets-bottom-animation-duration) allow-discrete;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: ${C}) {
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset: unset;
|
|
59
|
+
border-radius: var(--semantics-overlays-corner-radius);
|
|
60
|
+
width: var(--_popover-default-width);
|
|
61
|
+
max-width: calc(100vw - var(--semantics-overlays-inset) * 2);
|
|
62
|
+
max-height: var(--_popover-max-height);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* A column, as in nldd-sheet, so a page inside shrinks to the height limit
|
|
67
|
+
and scrolls itself, keeping a sticky header in view. Only while open:
|
|
68
|
+
closed, the popover API hides it with display. */
|
|
69
|
+
:host(:popover-open) {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([hidden]) {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
::slotted(nldd-page) {
|
|
79
|
+
min-height: 0;
|
|
80
|
+
flex-shrink: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host(:not(:popover-open)) {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Desktop only: hide the popover between opening and being placed by Floating UI,
|
|
88
|
+
so it never flashes at the popover's default position. visibility (not display)
|
|
89
|
+
keeps it laid out so its size can be measured. The sm bottom-sheet is CSS-animated
|
|
90
|
+
and positioned, so it is excluded. The positioned attribute is set once
|
|
91
|
+
reposition() finishes and cleared on every re-open. */
|
|
92
|
+
@media (min-width: ${C}) {
|
|
93
|
+
:host(:popover-open:not([positioned])) {
|
|
94
|
+
visibility: hidden;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:host(:focus-visible:not(.is-pointer-focus)) {
|
|
99
|
+
outline: var(--semantics-focus-ring-outline);
|
|
100
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
101
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), var(--semantics-overlays-box-shadow);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host(:popover-open) {
|
|
105
|
+
@media (max-width: ${S}) {
|
|
106
|
+
transform: translateY(0);
|
|
107
|
+
|
|
108
|
+
@starting-style {
|
|
109
|
+
transform: translateY(100%);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host::backdrop {
|
|
115
|
+
@media (max-width: ${S}) {
|
|
116
|
+
background-color: var(--semantics-overlays-backdrop-color);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([sm-full-height]) {
|
|
121
|
+
@media (max-width: ${S}) {
|
|
122
|
+
height: calc(100dvh - var(--semantics-sheets-bottom-top-inset));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Top-level safety net: transitions currently only exist in the sm
|
|
127
|
+
bottom-sheet rule, but this guard also disables any future
|
|
128
|
+
desktop-viewport animation for prefers-reduced-motion users. */
|
|
129
|
+
@media (prefers-reduced-motion: reduce) {
|
|
130
|
+
:host {
|
|
131
|
+
transition: none;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
// src/components/layout/popover/popover.template.ts
|
|
136
|
+
function T() {
|
|
137
|
+
return a`<slot></slot>`;
|
|
138
|
+
}
|
|
139
|
+
// src/components/layout/popover/popover.ts
|
|
140
|
+
var E = /* @__PURE__ */ e({ NLDDPopover: () => k }), D = class extends i {
|
|
141
|
+
constructor(...e) {
|
|
142
|
+
super(...e), this.smFullHeight = !1, this.anchor = "", this.anchorElement = null, this.placement = "bottom-start", this.top = void 0, this.right = void 0, this.bottom = void 0, this.left = void 0, this.centered = !1, this.accessibleLabel = "", this.translations = {}, this.open = !1, this._isOpen = !1, this._focusReturn = new y(), this._pointerdownOnAnchorWhileOpen = !1, this._cleanupAutoUpdate = null, this._smQuery = null, this._wasOnSm = !1, this._previousAnchorEl = null, this._handleDismiss = (e) => {
|
|
143
|
+
x(e) && (e.stopPropagation(), this.hide());
|
|
144
|
+
}, this._handleViewportChange = () => {
|
|
145
|
+
this._isOpen ? this.reposition() : this._wasOnSm = this._smQuery?.matches ?? !1;
|
|
146
|
+
}, this._swallowNextClick = !1, this._handleDocumentPointerdown = (e) => {
|
|
147
|
+
if (this._swallowNextClick = !1, !this._isOpen) return;
|
|
148
|
+
let t = this._getAnchorEl();
|
|
149
|
+
this._shouldAbsorbTap(e, t) ? (e.preventDefault(), e.stopPropagation(), this._swallowNextClick = !0, this.hidePopover()) : t && e.composedPath().includes(t) && (this._pointerdownOnAnchorWhileOpen = !0);
|
|
150
|
+
}, this._handlePointerCancel = () => {
|
|
151
|
+
this._swallowNextClick = !1;
|
|
152
|
+
}, this._handleDocumentClickCapture = (e) => {
|
|
153
|
+
this._swallowNextClick && (this._swallowNextClick = !1, e.preventDefault(), e.stopPropagation());
|
|
154
|
+
}, this._handleDocumentClick = (e) => {
|
|
155
|
+
if (this.anchorElement) return;
|
|
156
|
+
let t = this._getAnchorEl();
|
|
157
|
+
if (!t || !e.composedPath().includes(t)) return;
|
|
158
|
+
let n = t.getAttribute("popovertarget") ?? t.popovertarget;
|
|
159
|
+
n && this.id && n === this.id || t.popoverTargetElement !== this && (this._pointerdownOnAnchorWhileOpen ? this._pointerdownOnAnchorWhileOpen = !1 : this._isOpen ? this.hidePopover() : this.showPopover());
|
|
160
|
+
}, this._handleBeforeToggle = (e) => {
|
|
161
|
+
e.newState === "open" && (this.removeAttribute("positioned"), this._focusReturn.remember(this._getAnchorEl()));
|
|
162
|
+
}, this._handleToggle = async (e) => {
|
|
163
|
+
let t = e;
|
|
164
|
+
if (this._isOpen = t.newState === "open", this.open = this._isOpen, this._updateAnchorAria(this._isOpen), t.newState !== "open") {
|
|
165
|
+
this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = null, this._focusReturn.restore(this), this.dispatchEvent(new CustomEvent("close", {
|
|
166
|
+
bubbles: !1,
|
|
167
|
+
composed: !0
|
|
168
|
+
}));
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
await this.reposition(), this.setAttribute("positioned", "");
|
|
172
|
+
let n = this._getAnchorEl();
|
|
173
|
+
n && (this._cleanupAutoUpdate = h(n, this, () => this.reposition())), await this.updateComplete, this._manageFocus(), this.dispatchEvent(new CustomEvent("open", {
|
|
174
|
+
bubbles: !0,
|
|
175
|
+
composed: !0
|
|
176
|
+
}));
|
|
177
|
+
}, this._handleKeydown = (e) => {
|
|
178
|
+
if (e.key === "Escape") {
|
|
179
|
+
if (!this.matches(":popover-open")) return;
|
|
180
|
+
e.preventDefault(), e.stopPropagation(), this.hide();
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (e.key !== "Tab") return;
|
|
184
|
+
let t = this._getFocusables(), n = e.composedPath()[0] ?? document.activeElement, r = n ? t.indexOf(n) : -1, i = e.shiftKey && r <= 0, a = !e.shiftKey && r === t.length - 1;
|
|
185
|
+
t.length === 0 || i || a ? (e.preventDefault(), this.hide()) : r === -1 && (e.preventDefault(), t[0]?.focus({ focusVisible: !0 }));
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
connectedCallback() {
|
|
189
|
+
super.connectedCallback(), this.style.containerType = "inline-size", this.style.containerName = "layout-container", this.hasAttribute("popover") || this.setAttribute("popover", ""), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1"), this.hasAttribute("role") || this.setAttribute("role", "dialog"), this.addEventListener("beforetoggle", this._handleBeforeToggle), this.addEventListener("toggle", this._handleToggle), this.addEventListener("keydown", this._handleKeydown), this.addEventListener("dismiss", this._handleDismiss), document.addEventListener("pointerdown", this._handleDocumentPointerdown, !0), document.addEventListener("pointercancel", this._handlePointerCancel, !0), document.addEventListener("click", this._handleDocumentClickCapture, !0), document.addEventListener("click", this._handleDocumentClick), this._smQuery = window.matchMedia(`(max-width: ${_.smMax})`), this._wasOnSm = this._smQuery.matches, this._smQuery.addEventListener("change", this._handleViewportChange), Promise.resolve().then(() => {
|
|
190
|
+
this._updateAnchorAria(!1);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
disconnectedCallback() {
|
|
194
|
+
super.disconnectedCallback(), this.removeEventListener("beforetoggle", this._handleBeforeToggle), this.removeEventListener("toggle", this._handleToggle), this.removeEventListener("keydown", this._handleKeydown), this.removeEventListener("dismiss", this._handleDismiss), document.removeEventListener("pointerdown", this._handleDocumentPointerdown, !0), document.removeEventListener("pointercancel", this._handlePointerCancel, !0), document.removeEventListener("click", this._handleDocumentClickCapture, !0), document.removeEventListener("click", this._handleDocumentClick), this._smQuery?.removeEventListener("change", this._handleViewportChange), this._smQuery = null, this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = null;
|
|
195
|
+
let e = this._getAnchorEl();
|
|
196
|
+
if (e) {
|
|
197
|
+
let t = e;
|
|
198
|
+
"expanded" in t && (t.expanded = !1), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-haspopup"), this.id && e.getAttribute("aria-controls") === this.id && e.removeAttribute("aria-controls");
|
|
199
|
+
}
|
|
200
|
+
this._previousAnchorEl = null;
|
|
201
|
+
}
|
|
202
|
+
updated(e) {
|
|
203
|
+
if (e.has("open")) {
|
|
204
|
+
let e = this.matches(":popover-open");
|
|
205
|
+
this.open && !e && !this._isOpen ? (this.show(), this.matches(":popover-open") || (this.open = !1)) : !this.open && e && this.hidePopover();
|
|
206
|
+
}
|
|
207
|
+
e.has("width") && (this.width && !O.CONTENT_WIDTHS.test(this.width.trim()) ? this.style.setProperty("--_popover-default-width", this.width) : this.style.removeProperty("--_popover-default-width")), (e.has("accessibleLabel") || e.has("translations")) && this.setAttribute("aria-label", this._resolvedAccessibleLabel), (e.has("anchor") || e.has("anchorElement")) && this._updateAnchorAria(this._isOpen), (e.has("top") || e.has("left") || e.has("right") || e.has("bottom") || e.has("centered")) && (!this.top && !this.centered && this.style.removeProperty("top"), !this.left && !this.centered && this.style.removeProperty("left"), this.right || this.style.removeProperty("right"), this.bottom || this.style.removeProperty("bottom"), this._isOpen && this.reposition());
|
|
208
|
+
}
|
|
209
|
+
_t(e) {
|
|
210
|
+
return u(this.translations, b, e);
|
|
211
|
+
}
|
|
212
|
+
get _resolvedAccessibleLabel() {
|
|
213
|
+
return this.accessibleLabel || this._t("components.popover.accessible-label");
|
|
214
|
+
}
|
|
215
|
+
show() {
|
|
216
|
+
this._getAnchorEl() ? this.showPopover() : l(this, "no-anchor", !0);
|
|
217
|
+
}
|
|
218
|
+
hide() {
|
|
219
|
+
this._isOpen && this.hidePopover();
|
|
220
|
+
}
|
|
221
|
+
toggle() {
|
|
222
|
+
this._isOpen ? this.hide() : this.show();
|
|
223
|
+
}
|
|
224
|
+
_restoreTransition() {
|
|
225
|
+
this.offsetHeight, this.style.transition = "";
|
|
226
|
+
}
|
|
227
|
+
async reposition() {
|
|
228
|
+
if (!this._isOpen) return;
|
|
229
|
+
let e = this._smQuery?.matches ?? !1, t = e !== this._wasOnSm;
|
|
230
|
+
if (this._wasOnSm = e, t && (this.style.transition = "none"), e) {
|
|
231
|
+
this.style.removeProperty("top"), this.style.removeProperty("left"), this.style.removeProperty("right"), this.style.removeProperty("bottom"), this.style.removeProperty("transform"), this.style.removeProperty("--_popover-max-height"), t && this._restoreTransition();
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
if (this.top || this.left || this.right || this.bottom || this.centered) {
|
|
235
|
+
let e = this.centered && !this.top && !this.bottom, n = this.centered && !this.left && !this.right;
|
|
236
|
+
this.top ? this.style.setProperty("top", this.top) : e && this.style.setProperty("top", "50%"), this.bottom && this.style.setProperty("bottom", this.bottom), this.left ? this.style.setProperty("left", this.left) : n && this.style.setProperty("left", "50%"), this.right && this.style.setProperty("right", this.right), n || e ? this.style.setProperty("transform", `translate(${n ? "-50%" : "0"}, ${e ? "-50%" : "0"})`) : this.style.removeProperty("transform"), t && this._restoreTransition();
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
this.style.removeProperty("transform");
|
|
240
|
+
let n = this._getAnchorEl();
|
|
241
|
+
if (!n) return;
|
|
242
|
+
let r = parseFloat(getComputedStyle(this).getPropertyValue("--semantics-overlays-inset")), { x: i, y: a } = await f(n, this, {
|
|
243
|
+
placement: this.placement,
|
|
244
|
+
middleware: [
|
|
245
|
+
m({ padding: r }),
|
|
246
|
+
d({ padding: r }),
|
|
247
|
+
p({
|
|
248
|
+
padding: r,
|
|
249
|
+
apply: ({ availableHeight: e }) => {
|
|
250
|
+
this.style.setProperty("--_popover-max-height", `${e}px`);
|
|
251
|
+
}
|
|
252
|
+
})
|
|
253
|
+
]
|
|
254
|
+
});
|
|
255
|
+
Object.assign(this.style, {
|
|
256
|
+
left: `${i}px`,
|
|
257
|
+
top: `${a}px`
|
|
258
|
+
}), t && this._restoreTransition();
|
|
259
|
+
}
|
|
260
|
+
_getAnchorEl() {
|
|
261
|
+
return this.anchorElement ? this.anchorElement : this.anchor ? document.getElementById(this.anchor) : null;
|
|
262
|
+
}
|
|
263
|
+
_updateAnchorAria(e) {
|
|
264
|
+
let t = this._getAnchorEl();
|
|
265
|
+
if (this._previousAnchorEl && this._previousAnchorEl !== t && (this._previousAnchorEl.removeAttribute("aria-expanded"), this._previousAnchorEl.getAttribute("aria-controls") === this.id && this._previousAnchorEl.removeAttribute("aria-controls")), !t) {
|
|
266
|
+
this._previousAnchorEl = null;
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
let n = t;
|
|
270
|
+
"expanded" in n ? n.expanded = e : t.setAttribute("aria-expanded", e ? "true" : "false"), "popupType" in n ? n.popupType || (n.popupType = "dialog") : t.hasAttribute("aria-haspopup") || t.setAttribute("aria-haspopup", "dialog"), this.id && !t.hasAttribute("aria-controls") && t.setAttribute("aria-controls", this.id), this._previousAnchorEl = t;
|
|
271
|
+
}
|
|
272
|
+
_shouldAbsorbTap(e, t) {
|
|
273
|
+
if (!this._isOpen || !(this._smQuery?.matches ?? !1)) return !1;
|
|
274
|
+
let n = e.composedPath();
|
|
275
|
+
return !(n.includes(this) || t && n.includes(t));
|
|
276
|
+
}
|
|
277
|
+
_manageFocus() {
|
|
278
|
+
this.classList.toggle("is-pointer-focus", g());
|
|
279
|
+
let e = this.querySelector("[autofocus]");
|
|
280
|
+
e ? v(e) : this.focus();
|
|
281
|
+
}
|
|
282
|
+
_getFocusables() {
|
|
283
|
+
let e = [], t = (n) => {
|
|
284
|
+
for (let r of Array.from(n.children)) {
|
|
285
|
+
let n = r;
|
|
286
|
+
n.matches?.("a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex=\"-1\"]),[contenteditable=\"\"],[contenteditable=\"true\"],details > summary:first-of-type") && !n.hasAttribute("disabled") && n.tabIndex >= 0 && n.getClientRects().length > 0 && e.push(n), n.shadowRoot && t(n.shadowRoot), t(n);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
return t(this), e.map((e, t) => ({
|
|
290
|
+
el: e,
|
|
291
|
+
i: t,
|
|
292
|
+
order: e.tabIndex > 0 ? e.tabIndex : Infinity
|
|
293
|
+
})).sort((e, t) => e.order - t.order || e.i - t.i).map((e) => e.el);
|
|
294
|
+
}
|
|
295
|
+
render() {
|
|
296
|
+
return T();
|
|
297
|
+
}
|
|
298
|
+
}, O = D, k = (D.styles = w, D.CONTENT_WIDTHS = /^(auto|fit-content|min-content|max-content)\b/, D);
|
|
299
|
+
o([r({
|
|
300
|
+
type: String,
|
|
301
|
+
reflect: !0
|
|
302
|
+
})], k.prototype, "width", void 0), o([r({
|
|
303
|
+
type: Boolean,
|
|
304
|
+
reflect: !0,
|
|
305
|
+
attribute: "sm-full-height"
|
|
306
|
+
})], k.prototype, "smFullHeight", void 0), o([r({
|
|
307
|
+
reflect: !0,
|
|
308
|
+
converter: c("")
|
|
309
|
+
})], k.prototype, "anchor", void 0), o([r({ attribute: !1 })], k.prototype, "anchorElement", void 0), o([r({
|
|
310
|
+
reflect: !0,
|
|
311
|
+
converter: c("bottom-start")
|
|
312
|
+
})], k.prototype, "placement", void 0), o([r({
|
|
313
|
+
type: String,
|
|
314
|
+
reflect: !0
|
|
315
|
+
})], k.prototype, "top", void 0), o([r({
|
|
316
|
+
type: String,
|
|
317
|
+
reflect: !0
|
|
318
|
+
})], k.prototype, "right", void 0), o([r({
|
|
319
|
+
type: String,
|
|
320
|
+
reflect: !0
|
|
321
|
+
})], k.prototype, "bottom", void 0), o([r({
|
|
322
|
+
type: String,
|
|
323
|
+
reflect: !0
|
|
324
|
+
})], k.prototype, "left", void 0), o([r({
|
|
325
|
+
type: Boolean,
|
|
326
|
+
reflect: !0
|
|
327
|
+
})], k.prototype, "centered", void 0), o([r({
|
|
328
|
+
type: String,
|
|
329
|
+
attribute: "accessible-label"
|
|
330
|
+
})], k.prototype, "accessibleLabel", void 0), o([r({ type: Object })], k.prototype, "translations", void 0), o([r({
|
|
331
|
+
type: Boolean,
|
|
332
|
+
reflect: !0
|
|
333
|
+
})], k.prototype, "open", void 0), k = O = o([s("nldd-popover")], k);
|
|
334
|
+
export { E as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// src/utilities/popover-target.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
return n || (t ? e.getRootNode().getElementById?.(t) ?? null : null);
|
|
4
|
+
}
|
|
5
|
+
var t = /* @__PURE__ */ new WeakMap();
|
|
6
|
+
function n(e, n) {
|
|
7
|
+
let r = t.get(e), i = n?.matches("nldd-menu, nldd-popover") && !n.getAttribute("anchor") ? n : null;
|
|
8
|
+
r && r !== i && r.anchorElement === e && (r.anchorElement = null), i && (i.anchorElement === null || i.anchorElement === e) ? (i.anchorElement = e, t.set(e, i)) : t.delete(e);
|
|
9
|
+
}
|
|
10
|
+
export { e as n, n as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/utilities/popup-anchor-controller.ts
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor(e, t = {}) {
|
|
4
|
+
this._overlay = null, this._wasOpenOnPointerdown = !1, this.handleSlotChange = (e) => {
|
|
5
|
+
let t = e.target.assignedElements({ flatten: !0 }).find((e) => e.matches("nldd-menu, nldd-popover")) ?? null;
|
|
6
|
+
this.setOverlay(t);
|
|
7
|
+
}, this.handlePointerdown = () => {
|
|
8
|
+
let e = this._overlay;
|
|
9
|
+
this._wasOpenOnPointerdown = e ? "_shownForInvoker" in e ? e._shownForInvoker() : e.matches(":popover-open") : !1;
|
|
10
|
+
}, this._anchorFor = t.anchorFor ?? (() => e), this._onChange = t.onChange;
|
|
11
|
+
}
|
|
12
|
+
get overlay() {
|
|
13
|
+
return this._overlay;
|
|
14
|
+
}
|
|
15
|
+
setOverlay(e) {
|
|
16
|
+
if (e === this._overlay) return;
|
|
17
|
+
let t = this._overlay;
|
|
18
|
+
t && (t.anchorElement = null), this._overlay = e, this.anchor(), this._onChange?.(e, t);
|
|
19
|
+
}
|
|
20
|
+
anchor() {
|
|
21
|
+
let e = this._anchorFor();
|
|
22
|
+
this._overlay && e && (this._overlay.anchorElement = e);
|
|
23
|
+
}
|
|
24
|
+
handleClick(e) {
|
|
25
|
+
if (!this._overlay) return !1;
|
|
26
|
+
let t = e.detail > 0 && this._wasOpenOnPointerdown;
|
|
27
|
+
return this._wasOpenOnPointerdown = !1, "_endInvokerGesture" in this._overlay && this._overlay._endInvokerGesture(), !t && !this._overlay.matches(":popover-open") && this._overlay.showPopover(), !0;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export { e as t };
|