@nldd/design-system 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +204 -8
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-rknt4FBO.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-DyBQSaQl.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-Clti_wKN.js +654 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-2TCQLd5D.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-CUc4WWY3.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-Bff6_1pp.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-Cg1l0HhB.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BOu_pD1Q.js +719 -0
- package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-C-CVVtfl.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-Xmagtk6r.js +52 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-BdVCqm2H.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-DP4jnS7g.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-BeXnOUTt.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-DmslEoPD.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field-Cj5WojfO.js +597 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-hvDB3l6O.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-iNd1VmuG.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-D1hjWIF3.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-t5iFkMLY.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +67 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/nldd.min.js +298 -298
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { r as e } from "./element-state-B-44fVqq.js";
|
|
2
|
+
// src/utilities/owner-form.ts
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
let r = t.getAttribute("form"), i = t.getRootNode(), a = r && "getElementById" in i ? i.getElementById(r) : null, o = a?.form, s = null;
|
|
5
|
+
return a instanceof HTMLFormElement ? s = a : o instanceof HTMLFormElement && (s = o), e(t, "no-form-target", !!r && !a), e(t, "form-target-not-a-form", !!a && !s), r ? s : n ? n.form : t.closest("form");
|
|
6
|
+
}
|
|
7
|
+
export { t };
|
|
@@ -0,0 +1,431 @@
|
|
|
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, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { r as l } from "./element-state-B-44fVqq.js";
|
|
7
|
+
import { i as u, r as d } from "./scroll-mode-controller-COUD1-3P.js";
|
|
8
|
+
import { r as f, t as p } from "./static-html-Cf4ccUIg.js";
|
|
9
|
+
// src/components/layout/page/page.styles.ts
|
|
10
|
+
var m = t`
|
|
11
|
+
:host {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/* # Host */
|
|
17
|
+
|
|
18
|
+
:host {
|
|
19
|
+
--_page-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
20
|
+
/* The insets this page arrived with, parked before it adds its own:
|
|
21
|
+
republishing --context-inset-top on the element it reads from would be
|
|
22
|
+
a cycle. */
|
|
23
|
+
--_page-outer-inset-top: var(--context-inset-top, 0px);
|
|
24
|
+
--_page-outer-inset-bottom: var(--context-inset-bottom, 0px);
|
|
25
|
+
--_page-header-height: 0px;
|
|
26
|
+
--_page-footer-height: 0px;
|
|
27
|
+
--_page-fade-size: var(--primitives-space-24);
|
|
28
|
+
--_page-scroll-padding-top: 0px;
|
|
29
|
+
--_page-scroll-padding-bottom: 0px;
|
|
30
|
+
--_page-header-full-height: 0px;
|
|
31
|
+
/* Set from JS while the page owns the scroller. initial, not a length, so
|
|
32
|
+
the fallback stands when the document scrolls instead. */
|
|
33
|
+
--_page-scroll-height: initial;
|
|
34
|
+
|
|
35
|
+
display: flex;
|
|
36
|
+
background-color: var(--_page-background-color);
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
overflow-x: hidden;
|
|
41
|
+
overscroll-behavior: contain;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
/* New stacking context so descendant z-index (e.g. list-item
|
|
44
|
+
* sticky/elevated layers) can't paint over the page's scrollbar. */
|
|
45
|
+
isolation: isolate;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([hidden]) {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([background="base"]) {
|
|
53
|
+
--context-parent-background-color: var(--semantics-surfaces-base-background-color);
|
|
54
|
+
--_page-background-color: var(--context-parent-background-color);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([background="tinted"]) {
|
|
58
|
+
--context-parent-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
59
|
+
--_page-background-color: var(--context-parent-background-color);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Overflow hidden prevents content from escaping the scroll wrapper.
|
|
63
|
+
Overlays inside slotted content should use popover, dialog, or
|
|
64
|
+
position: fixed to render in the top layer. */
|
|
65
|
+
:host([sticky-header]) {
|
|
66
|
+
position: relative;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Root-scroll mode: the DOCUMENT scrolls (see nldd-shell), not the page.
|
|
71
|
+
The page stops owning an inner scroll container and its sticky-header/footer
|
|
72
|
+
stick against the document, offset by the insets above and below
|
|
73
|
+
(--context-inset-top/bottom, published by any bars outside the page). The mode is derived upstream and
|
|
74
|
+
delivered as --context-scroll-mode; nldd-page reflects it to [data-scroll]
|
|
75
|
+
so these (higher-specificity, later) rules win over the nested ones. */
|
|
76
|
+
:host([data-scroll="root"]) {
|
|
77
|
+
height: auto;
|
|
78
|
+
overflow: visible;
|
|
79
|
+
overscroll-behavior: auto;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Undo the nested-mode clip — the document is the scroller now. */
|
|
83
|
+
:host([data-scroll="root"][sticky-header]) {
|
|
84
|
+
overflow: visible;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/* # Block */
|
|
89
|
+
|
|
90
|
+
.page {
|
|
91
|
+
display: flex;
|
|
92
|
+
min-height: 0;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
flex-grow: 1;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Root-scroll mode: no inner scroller; content-sized (flex-shrink:0) so the
|
|
98
|
+
sticky header/footer's containing block spans the whole document rather
|
|
99
|
+
than being squeezed to a definite ancestor height.
|
|
100
|
+
|
|
101
|
+
Content-sized costs the page its floor, though: nested mode inherits one
|
|
102
|
+
from the pane it stretches inside, and here there is nothing to stretch in.
|
|
103
|
+
A short page would end where its content ends and leave anything after it
|
|
104
|
+
(an nldd-page-footer, say) stranded mid-viewport. The minimum restores that
|
|
105
|
+
floor without pinning: longer content still pushes past it. */
|
|
106
|
+
:host([data-scroll="root"]) .page {
|
|
107
|
+
overflow: visible;
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
min-height: calc(100dvh - var(--context-inset-top, 0px) - var(--context-inset-bottom, 0px));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/* # Elements */
|
|
114
|
+
|
|
115
|
+
.page__header {
|
|
116
|
+
position: relative;
|
|
117
|
+
flex-shrink: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([sticky-header]) .page__header {
|
|
121
|
+
position: absolute;
|
|
122
|
+
top: 0;
|
|
123
|
+
left: 0;
|
|
124
|
+
right: 0;
|
|
125
|
+
z-index: 1;
|
|
126
|
+
background-color: color-mix(in srgb, var(--_page-background-color) 95%, transparent);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:host([sticky-header]) .page__header::after {
|
|
130
|
+
content: '';
|
|
131
|
+
position: absolute;
|
|
132
|
+
/* Behind the header's own content, not over it: the header has z-index 1
|
|
133
|
+
and so its own stacking context, which keeps this inside it — above the
|
|
134
|
+
header's background, below whatever is slotted in. Without it the fade
|
|
135
|
+
paints last and covers anything that reaches past the header's bottom
|
|
136
|
+
edge, such as the focus ring of a field sitting flush against it. */
|
|
137
|
+
z-index: -1;
|
|
138
|
+
top: 100%;
|
|
139
|
+
left: 0;
|
|
140
|
+
right: 0;
|
|
141
|
+
opacity: 0;
|
|
142
|
+
background: linear-gradient(to bottom, color-mix(in srgb, var(--_page-background-color) 95%, transparent), transparent);
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
height: var(--_page-fade-size);
|
|
145
|
+
transition: opacity var(--primitives-transition-duration-medium) var(--primitives-transition-easing-default);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host([sticky-header]) .page__header.is-scrolled::after {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Root-scroll mode: sticky against the document instead of absolute-over-a-
|
|
153
|
+
nested-scroller. Being in normal flow it reserves its own space, so no
|
|
154
|
+
ResizeObserver padding is needed. left/right revert to auto: those insets
|
|
155
|
+
only mattered for the absolute overlay. */
|
|
156
|
+
:host([data-scroll="root"][sticky-header]) .page__header {
|
|
157
|
+
position: sticky;
|
|
158
|
+
top: var(--context-inset-top, 0px);
|
|
159
|
+
left: auto;
|
|
160
|
+
right: auto;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* The page adds its own bars to the insets it inherited, so sticky content
|
|
164
|
+
inside clears them without knowing a number. The header sits outside this
|
|
165
|
+
element and keeps the value without itself in it. */
|
|
166
|
+
.page__scroll {
|
|
167
|
+
--context-inset-top: calc(var(--_page-outer-inset-top) + var(--_page-header-height));
|
|
168
|
+
--context-inset-bottom: calc(var(--_page-outer-inset-bottom) + var(--_page-footer-height));
|
|
169
|
+
/* The height sticky content can cap itself on. Unset while the document
|
|
170
|
+
scrolls, where the viewport is the whole story. */
|
|
171
|
+
--context-scroller-height: var(--_page-scroll-height, 100dvh);
|
|
172
|
+
|
|
173
|
+
display: flex;
|
|
174
|
+
min-height: 0;
|
|
175
|
+
flex-direction: column;
|
|
176
|
+
flex-grow: 1;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Nested scrolling: a sticky child is measured against this element, so the
|
|
180
|
+
bars above the page fall outside it and only its own header counts. */
|
|
181
|
+
:host([sticky-header]) {
|
|
182
|
+
--_page-scroll-padding-top: calc(var(--_page-header-height) + var(--_page-fade-size));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:host([sticky-footer]) {
|
|
186
|
+
--_page-scroll-padding-bottom: calc(var(--_page-footer-height) + var(--_page-fade-size));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Focus scrolled into view clears the sticky bars and their fades (WCAG 2.4.11). */
|
|
190
|
+
:host(:not([data-scroll="root"])),
|
|
191
|
+
:host(:not([data-scroll="root"])) .page__scroll {
|
|
192
|
+
scroll-padding-top: var(--_page-scroll-padding-top);
|
|
193
|
+
scroll-padding-bottom: var(--_page-scroll-padding-bottom);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:host(:not([data-scroll="root"])) .page__scroll {
|
|
197
|
+
--context-inset-top: var(--_page-header-height);
|
|
198
|
+
--context-inset-bottom: var(--_page-footer-height);
|
|
199
|
+
padding-top: var(--_page-header-full-height);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host([sticky-header]) .page__scroll {
|
|
203
|
+
overflow-y: auto;
|
|
204
|
+
overflow-x: hidden;
|
|
205
|
+
overscroll-behavior: contain;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* Root-scroll mode: content-sized, no inner scroller (see the .page rule). */
|
|
209
|
+
:host([data-scroll="root"]) .page__scroll {
|
|
210
|
+
overflow: visible;
|
|
211
|
+
flex-shrink: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.page__main {
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: column;
|
|
217
|
+
flex-grow: 1;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.page__footer {
|
|
221
|
+
position: relative;
|
|
222
|
+
flex-shrink: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:host([sticky-footer]) .page__footer {
|
|
226
|
+
position: sticky;
|
|
227
|
+
bottom: 0;
|
|
228
|
+
z-index: 1;
|
|
229
|
+
background-color: color-mix(in srgb, var(--_page-background-color) 95%, transparent);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host([sticky-footer]) .page__footer::before {
|
|
233
|
+
content: '';
|
|
234
|
+
position: absolute;
|
|
235
|
+
bottom: 100%;
|
|
236
|
+
left: 0;
|
|
237
|
+
right: 0;
|
|
238
|
+
background: linear-gradient(to top, color-mix(in srgb, var(--_page-background-color) 95%, transparent), transparent);
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
height: var(--_page-fade-size);
|
|
241
|
+
transition: opacity var(--primitives-transition-duration-medium) var(--primitives-transition-easing-default);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:host([sticky-footer]) .page__footer.is-at-end::before {
|
|
245
|
+
opacity: 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Root-scroll mode: the footer sits inside .page__scroll, where the inset
|
|
249
|
+
already holds its own height. */
|
|
250
|
+
:host([data-scroll="root"][sticky-footer]) .page__footer {
|
|
251
|
+
bottom: var(--_page-outer-inset-bottom);
|
|
252
|
+
}
|
|
253
|
+
`;
|
|
254
|
+
// src/components/layout/page/page.template.ts
|
|
255
|
+
function h(e) {
|
|
256
|
+
let t = e._isRegion, n = t ? p`section` : p`div`, r = t ? p`div` : p`main`, i = e.accessibleLabel.trim() || a;
|
|
257
|
+
return f`
|
|
258
|
+
<${n} class="page"
|
|
259
|
+
aria-label=${t ? i : a}
|
|
260
|
+
>
|
|
261
|
+
<header class="page__header ${e._scrolled ? "is-scrolled" : ""}">
|
|
262
|
+
<slot name="header"></slot>
|
|
263
|
+
</header>
|
|
264
|
+
<div class="page__scroll">
|
|
265
|
+
<${r} class="page__main"
|
|
266
|
+
aria-label=${t ? a : i}
|
|
267
|
+
>
|
|
268
|
+
<slot></slot>
|
|
269
|
+
</${r}>
|
|
270
|
+
<footer class="page__footer ${e._atEnd ? "is-at-end" : ""}">
|
|
271
|
+
<slot name="footer"></slot>
|
|
272
|
+
</footer>
|
|
273
|
+
</div>
|
|
274
|
+
</${n}>
|
|
275
|
+
`;
|
|
276
|
+
}
|
|
277
|
+
// src/components/layout/page/page.ts
|
|
278
|
+
var g = /* @__PURE__ */ e({ NLDDPage: () => x }), _, v = [
|
|
279
|
+
"nldd-sheet",
|
|
280
|
+
"nldd-modal-dialog",
|
|
281
|
+
"nldd-window",
|
|
282
|
+
"nldd-popover"
|
|
283
|
+
], y = [
|
|
284
|
+
"nldd-navigation-split-view",
|
|
285
|
+
"nldd-side-by-side-split-view",
|
|
286
|
+
"nldd-stacked-split-view"
|
|
287
|
+
], b = /* @__PURE__ */ new Set(), x = (_ = class extends i {
|
|
288
|
+
constructor(...e) {
|
|
289
|
+
super(...e), this.background = "inherit", this.accessibleLabel = "", this.stickyHeader = !1, this.stickyFooter = !1, this.landmarks = "auto", this._scrolled = !1, this._atEnd = !0, this._derived = "page", this._scrollMode = "nested", this._scrollTarget = null, this._scrollProvider = null, this._insetObserver = null, this._headerFullHeight = 0, this._mainSlot = null, this._mainAttrObserver = null, this._resizeRaf = 0, this._adoptScrollProvider = (e) => {
|
|
290
|
+
this._scrollProvider || (window.removeEventListener("resize", this._onResize), this._scrollProvider = e, e.registerScrollConsumer(this), this.hasUpdated && this._configureScroll());
|
|
291
|
+
}, this._onResize = () => {
|
|
292
|
+
this._resizeRaf || (this._resizeRaf = requestAnimationFrame(() => {
|
|
293
|
+
this._resizeRaf = 0, this._readScrollMode() && this._configureScroll();
|
|
294
|
+
}));
|
|
295
|
+
}, this._onScroll = () => {
|
|
296
|
+
if (this._isRoot) {
|
|
297
|
+
let e = document.documentElement;
|
|
298
|
+
this._scrolled = window.scrollY > 0, this._atEnd = window.scrollY + window.innerHeight >= e.scrollHeight - 1;
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
let e = this.stickyHeader ? this._scrollEl : this;
|
|
302
|
+
this._scrolled = (e?.scrollTop ?? 0) > 0, this._atEnd = !e || e.scrollTop + e.clientHeight >= e.scrollHeight - 1;
|
|
303
|
+
}, this._updateMainItems = () => {
|
|
304
|
+
let e = this._mainSlot;
|
|
305
|
+
if (!e) return;
|
|
306
|
+
let t = e.assignedElements(), n = t.filter((e) => !e.hasAttribute("hidden")), r = n.filter((e) => e.hasAttribute("grow")), i = r.length > 0 ? r : n.slice(-1);
|
|
307
|
+
t.forEach((e) => e.toggleAttribute("data-growing", i.includes(e)));
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
get _isRegion() {
|
|
311
|
+
return this.landmarks === "auto" ? this._derived === "region" : this.landmarks === "region";
|
|
312
|
+
}
|
|
313
|
+
_deriveLandmarks() {
|
|
314
|
+
for (let e = this.parentElement; e; e = e.parentElement) {
|
|
315
|
+
let t = e.localName;
|
|
316
|
+
if (v.includes(t) || y.includes(t)) {
|
|
317
|
+
this._derived = "region";
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
this._derived = "page";
|
|
322
|
+
}
|
|
323
|
+
_syncSecondMain() {
|
|
324
|
+
if (!import.meta.env?.DEV) return;
|
|
325
|
+
let [, ...e] = [...b].filter((e) => !e._isRegion);
|
|
326
|
+
l(this, "second-main", e.includes(this));
|
|
327
|
+
}
|
|
328
|
+
get _isRoot() {
|
|
329
|
+
return this._scrollMode === "root";
|
|
330
|
+
}
|
|
331
|
+
get scrollTarget() {
|
|
332
|
+
return this._isRoot ? document.scrollingElement ?? document.documentElement : this.stickyHeader ? this._scrollEl ?? this : this;
|
|
333
|
+
}
|
|
334
|
+
get scrollEventTarget() {
|
|
335
|
+
return this._isRoot ? window : this.stickyHeader ? this._scrollEl ?? this : this;
|
|
336
|
+
}
|
|
337
|
+
get _headerEl() {
|
|
338
|
+
return this.shadowRoot?.querySelector(".page__header") ?? null;
|
|
339
|
+
}
|
|
340
|
+
get _scrollEl() {
|
|
341
|
+
return this.shadowRoot?.querySelector(".page__scroll") ?? null;
|
|
342
|
+
}
|
|
343
|
+
get _footerEl() {
|
|
344
|
+
return this.shadowRoot?.querySelector(".page__footer") ?? null;
|
|
345
|
+
}
|
|
346
|
+
connectedCallback() {
|
|
347
|
+
super.connectedCallback(), this._deriveLandmarks(), b.add(this), this.style.containerType = "inline-size", this.style.containerName = "layout-container", this._scrollProvider = d(this), this._scrollProvider ? (this._scrollProvider.registerScrollConsumer(this), this.hasUpdated && this._configureScroll()) : (window.addEventListener("resize", this._onResize, { passive: !0 }), this.hasUpdated && (this._readScrollMode(), this._configureScroll()), u(this, this._adoptScrollProvider));
|
|
348
|
+
}
|
|
349
|
+
disconnectedCallback() {
|
|
350
|
+
super.disconnectedCallback(), b.delete(this), window.removeEventListener("resize", this._onResize), this._scrollProvider?.unregisterScrollConsumer(this), this._scrollProvider = null, this._resizeRaf && cancelAnimationFrame(this._resizeRaf), this._teardownScrollListener(), this._teardownInsetObserver(), this._teardownMainSlotListener();
|
|
351
|
+
}
|
|
352
|
+
firstUpdated() {
|
|
353
|
+
this._scrollProvider || this._readScrollMode(), this._configureScroll(), this._setupMainSlotListener();
|
|
354
|
+
}
|
|
355
|
+
updated(e) {
|
|
356
|
+
e.has("stickyHeader") && this._configureScroll(), this._syncSecondMain();
|
|
357
|
+
}
|
|
358
|
+
readScrollMode(e) {
|
|
359
|
+
this._readScrollMode(e) && this._configureScroll();
|
|
360
|
+
}
|
|
361
|
+
_readScrollMode(e) {
|
|
362
|
+
let t = e ?? (getComputedStyle(this).getPropertyValue("--context-scroll-mode").trim() === "root" ? "root" : "nested");
|
|
363
|
+
return t !== this._scrollMode && (this._scrollMode = t, this.dataset.scroll = t, !0);
|
|
364
|
+
}
|
|
365
|
+
_configureScroll() {
|
|
366
|
+
this._teardownScrollListener(), this._setupScrollListener(), this._headerFullHeight = 0, this._setupInsetObserver(), this._onScroll();
|
|
367
|
+
}
|
|
368
|
+
_setupInsetObserver() {
|
|
369
|
+
this._teardownInsetObserver();
|
|
370
|
+
let e = this._headerEl, t = this._footerEl;
|
|
371
|
+
if (!e || !t) return;
|
|
372
|
+
let n = () => {
|
|
373
|
+
this._publish("--_page-header-height", `${this.stickyHeader ? e.offsetHeight : 0}px`), this._publish("--_page-footer-height", `${this.stickyFooter ? t.offsetHeight : 0}px`), this._publish("--_page-header-full-height", `${this._measureHeaderFullHeight(e)}px`), this._isRoot ? this.style.removeProperty("--_page-scroll-height") : this._publish("--_page-scroll-height", `${this._scrollEl?.clientHeight ?? 0}px`), this._onScroll();
|
|
374
|
+
};
|
|
375
|
+
n(), this._insetObserver = new ResizeObserver(n), this._insetObserver.observe(e), this._insetObserver.observe(t), this._scrollEl && this._insetObserver.observe(this._scrollEl);
|
|
376
|
+
let r = this.shadowRoot?.querySelector(".page__main");
|
|
377
|
+
r && this._insetObserver.observe(r);
|
|
378
|
+
}
|
|
379
|
+
_teardownInsetObserver() {
|
|
380
|
+
this._insetObserver && (this._insetObserver.disconnect(), this._insetObserver = null);
|
|
381
|
+
}
|
|
382
|
+
_publish(e, t) {
|
|
383
|
+
this.style.getPropertyValue(e) !== t && this.style.setProperty(e, t);
|
|
384
|
+
}
|
|
385
|
+
_measureHeaderFullHeight(e) {
|
|
386
|
+
return this.stickyHeader ? (this.scrollTarget.scrollTop === 0 && (this._headerFullHeight = e.offsetHeight), this._headerFullHeight) : 0;
|
|
387
|
+
}
|
|
388
|
+
_setupScrollListener() {
|
|
389
|
+
let e = this.scrollEventTarget;
|
|
390
|
+
e.addEventListener("scroll", this._onScroll, { passive: !0 }), this._scrollTarget = e;
|
|
391
|
+
}
|
|
392
|
+
_teardownScrollListener() {
|
|
393
|
+
this._scrollTarget && (this._scrollTarget.removeEventListener("scroll", this._onScroll), this._scrollTarget = null);
|
|
394
|
+
}
|
|
395
|
+
_setupMainSlotListener() {
|
|
396
|
+
this._teardownMainSlotListener();
|
|
397
|
+
let e = this.shadowRoot?.querySelector("slot:not([name])") ?? null;
|
|
398
|
+
this._mainSlot = e, e && (e.addEventListener("slotchange", this._updateMainItems), this._mainAttrObserver = new MutationObserver((e) => {
|
|
399
|
+
e.some((e) => e.target.parentElement === this) && this._updateMainItems();
|
|
400
|
+
}), this._mainAttrObserver.observe(this, {
|
|
401
|
+
attributes: !0,
|
|
402
|
+
attributeFilter: ["grow", "hidden"],
|
|
403
|
+
subtree: !0
|
|
404
|
+
}), this._updateMainItems());
|
|
405
|
+
}
|
|
406
|
+
_teardownMainSlotListener() {
|
|
407
|
+
this._mainSlot && (this._mainSlot.removeEventListener("slotchange", this._updateMainItems), this._mainSlot = null), this._mainAttrObserver?.disconnect(), this._mainAttrObserver = null;
|
|
408
|
+
}
|
|
409
|
+
render() {
|
|
410
|
+
return h(this);
|
|
411
|
+
}
|
|
412
|
+
}, _.styles = m, _);
|
|
413
|
+
o([n({
|
|
414
|
+
reflect: !0,
|
|
415
|
+
converter: c("inherit")
|
|
416
|
+
})], x.prototype, "background", void 0), o([n({
|
|
417
|
+
type: String,
|
|
418
|
+
attribute: "accessible-label"
|
|
419
|
+
})], x.prototype, "accessibleLabel", void 0), o([n({
|
|
420
|
+
type: Boolean,
|
|
421
|
+
reflect: !0,
|
|
422
|
+
attribute: "sticky-header"
|
|
423
|
+
})], x.prototype, "stickyHeader", void 0), o([n({
|
|
424
|
+
type: Boolean,
|
|
425
|
+
reflect: !0,
|
|
426
|
+
attribute: "sticky-footer"
|
|
427
|
+
})], x.prototype, "stickyFooter", void 0), o([n({
|
|
428
|
+
reflect: !0,
|
|
429
|
+
converter: c("auto")
|
|
430
|
+
})], x.prototype, "landmarks", void 0), o([r()], x.prototype, "_scrolled", void 0), o([r()], x.prototype, "_atEnd", void 0), o([r()], x.prototype, "_derived", void 0), x = o([s("nldd-page")], x);
|
|
431
|
+
export { g as t };
|