@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,166 @@
|
|
|
1
|
+
import { i as e, n as t, t as n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { n as l, t as u } from "./scroll-mode-controller-COUD1-3P.js";
|
|
6
|
+
import "./split-view-divider-jzcPmnMh.js";
|
|
7
|
+
// src/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.ts
|
|
8
|
+
var d = e`
|
|
9
|
+
:host {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* # Host */
|
|
15
|
+
|
|
16
|
+
:host {
|
|
17
|
+
--_side-by-side-split-view-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
18
|
+
/* Pane min-width — read by JS via getComputedStyle in firstUpdated */
|
|
19
|
+
--_side-by-side-split-view-pane-min-width: var(--primitives-area-320);
|
|
20
|
+
|
|
21
|
+
display: flex;
|
|
22
|
+
background-color: var(--_side-by-side-split-view-background-color);
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([hidden]) {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Root-scroll mode — the document scrolls, so this view flows with its content
|
|
32
|
+
instead of capping itself at the viewport (see ScrollModeController /
|
|
33
|
+
--context-scroll-mode). Without this the panes inside stay boxed at the old
|
|
34
|
+
height while their own layers already flow, and nothing scrolls anywhere. */
|
|
35
|
+
:host([data-scroll="root"]) {
|
|
36
|
+
height: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([background="base"]) {
|
|
40
|
+
--context-parent-background-color: var(--semantics-surfaces-base-background-color);
|
|
41
|
+
--_side-by-side-split-view-background-color: var(--context-parent-background-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([background="tinted"]) {
|
|
45
|
+
--context-parent-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
46
|
+
--_side-by-side-split-view-background-color: var(--context-parent-background-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/* # Block */
|
|
51
|
+
|
|
52
|
+
.side-by-side-split-view {
|
|
53
|
+
display: flex;
|
|
54
|
+
min-width: 0;
|
|
55
|
+
min-height: 0;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
flex-direction: row;
|
|
58
|
+
flex-grow: 1;
|
|
59
|
+
flex-shrink: 1;
|
|
60
|
+
flex-basis: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Row axis untouched: this is a row block, so only the clipping and the
|
|
64
|
+
column-axis sizing change. */
|
|
65
|
+
:host([data-scroll="root"]) .side-by-side-split-view {
|
|
66
|
+
overflow: visible;
|
|
67
|
+
flex-basis: auto;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/* # Elements */
|
|
73
|
+
|
|
74
|
+
.side-by-side-split-view__pane {
|
|
75
|
+
display: flex;
|
|
76
|
+
min-width: var(--_side-by-side-split-view-pane-min-width);
|
|
77
|
+
min-height: 0;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
flex-grow: 1;
|
|
81
|
+
flex-shrink: 1;
|
|
82
|
+
flex-basis: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([data-scroll="root"]) .side-by-side-split-view__pane {
|
|
86
|
+
overflow: visible;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.side-by-side-split-view__pane[hidden] {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
::slotted(*) {
|
|
94
|
+
min-height: 0;
|
|
95
|
+
flex-grow: 1;
|
|
96
|
+
flex-shrink: 1;
|
|
97
|
+
flex-basis: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Column item inside the pane: keep its content height so a tall page spans
|
|
101
|
+
the document instead of being squeezed into the old viewport box. */
|
|
102
|
+
:host([data-scroll="root"]) ::slotted(*) {
|
|
103
|
+
flex-basis: auto;
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
// src/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.template.ts
|
|
108
|
+
function f(e) {
|
|
109
|
+
let t = Array.from({ length: e.panes }, (e, t) => t + 1);
|
|
110
|
+
return i`
|
|
111
|
+
<div class="side-by-side-split-view">
|
|
112
|
+
${t.map((t, n) => i`
|
|
113
|
+
${n > 0 && n < e._visiblePanes ? i`
|
|
114
|
+
<nldd-split-view-divider orientation="vertical"></nldd-split-view-divider>
|
|
115
|
+
` : a}
|
|
116
|
+
<div
|
|
117
|
+
class="side-by-side-split-view__pane"
|
|
118
|
+
?hidden=${n >= e._visiblePanes}
|
|
119
|
+
>
|
|
120
|
+
<slot name="pane-${t}"></slot>
|
|
121
|
+
</div>
|
|
122
|
+
`)}
|
|
123
|
+
</div>
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
// src/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.ts
|
|
127
|
+
var p = class extends r {
|
|
128
|
+
constructor(...e) {
|
|
129
|
+
super(...e), this._scrollMode = new l(this), this.background = "inherit", this.panes = 2, this._visiblePanes = Infinity, this._paneMinWidth = 0, this._resizeObserver = null;
|
|
130
|
+
}
|
|
131
|
+
connectedCallback() {
|
|
132
|
+
super.connectedCallback(), this._resizeObserver = new ResizeObserver(() => this._updateVisiblePanes()), this._resizeObserver.observe(this);
|
|
133
|
+
}
|
|
134
|
+
disconnectedCallback() {
|
|
135
|
+
super.disconnectedCallback(), this._resizeObserver?.disconnect(), this._resizeObserver = null;
|
|
136
|
+
}
|
|
137
|
+
firstUpdated() {
|
|
138
|
+
this._paneMinWidth = parseFloat(getComputedStyle(this).getPropertyValue("--_side-by-side-split-view-pane-min-width")), this._updateVisiblePanes();
|
|
139
|
+
}
|
|
140
|
+
updated(e) {
|
|
141
|
+
e.has("panes") && this._updateVisiblePanes();
|
|
142
|
+
}
|
|
143
|
+
get isSingleColumn() {
|
|
144
|
+
return this._visiblePanes <= 1;
|
|
145
|
+
}
|
|
146
|
+
_updateVisiblePanes() {
|
|
147
|
+
if (!this._paneMinWidth) return;
|
|
148
|
+
let e = this.getBoundingClientRect().width, t = Math.floor(e / this._paneMinWidth), n = this.isSingleColumn;
|
|
149
|
+
this._visiblePanes = Math.min(this.panes, Math.max(1, t)), this.isSingleColumn !== n && this.dispatchEvent(new CustomEvent(u, {
|
|
150
|
+
bubbles: !0,
|
|
151
|
+
composed: !0,
|
|
152
|
+
detail: { singleColumn: this.isSingleColumn }
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
render() {
|
|
156
|
+
return f(this);
|
|
157
|
+
}
|
|
158
|
+
}, m = (p.styles = d, p);
|
|
159
|
+
o([t({
|
|
160
|
+
reflect: !0,
|
|
161
|
+
converter: c("inherit")
|
|
162
|
+
})], m.prototype, "background", void 0), o([t({
|
|
163
|
+
reflect: !0,
|
|
164
|
+
converter: c(2)
|
|
165
|
+
})], m.prototype, "panes", void 0), o([n()], m.prototype, "_visiblePanes", void 0), m = o([s("nldd-side-by-side-split-view")], m);
|
|
166
|
+
export { m as NLDDSideBySideSplitView };
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { a as e, i as t, n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as c } from "./query-ChDzi9FQ.js";
|
|
5
|
+
import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import { t as u } from "./translations-wxBSz213.js";
|
|
7
|
+
import { n as d, t as f } from "./breakpoints-Cwor8TRP.js";
|
|
8
|
+
import "./page-CBf_Decp.js";
|
|
9
|
+
import "./top-title-bar-iNFB2zQL.js";
|
|
10
|
+
import { n as p, t as m } from "./page-section-mixin-Dp6X8GKd.js";
|
|
11
|
+
import { t as h } from "./sidebar-section.i18n-BuGfRMpD.js";
|
|
12
|
+
import "./sheet-CqN7ViYV.js";
|
|
13
|
+
import { n as g, r as _, t as v } from "./focus-target-DSLGcCWq.js";
|
|
14
|
+
// src/components/layout/page-sections/sidebar-section/sidebar-section.styles.ts
|
|
15
|
+
var y = e(d.smMax), b = e(d.mdMin), x = e(d.mdMax), S = e(d.lgMin), C = t`
|
|
16
|
+
:host {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/* # Host
|
|
22
|
+
|
|
23
|
+
Container queries on the section's OWN width (not the viewport): the row
|
|
24
|
+
<-> stacked switch and the padding follow the space the section is given.
|
|
25
|
+
The collapse-to-sheet is JS-driven — a ResizeObserver on the host sets
|
|
26
|
+
[collapsed] (see the .ts) — and only happens when the section is narrow AND
|
|
27
|
+
not [no-collapse]; the lg breakpoint (>= ${S}) is the switch. */
|
|
28
|
+
|
|
29
|
+
:host {
|
|
30
|
+
container-type: inline-size;
|
|
31
|
+
/* Block-padding overrides from PageSectionMixin; resolved per breakpoint
|
|
32
|
+
below (scope override -> base override -> responsive default). */
|
|
33
|
+
--_sidebar-section-padding-top: initial;
|
|
34
|
+
--_sidebar-section-padding-bottom: initial;
|
|
35
|
+
--_sidebar-section-sm-padding-top: initial;
|
|
36
|
+
--_sidebar-section-sm-padding-bottom: initial;
|
|
37
|
+
--_sidebar-section-md-padding-top: initial;
|
|
38
|
+
--_sidebar-section-md-padding-bottom: initial;
|
|
39
|
+
--_sidebar-section-lg-padding-top: initial;
|
|
40
|
+
--_sidebar-section-lg-padding-bottom: initial;
|
|
41
|
+
--_sidebar-section-max-width: var(--semantics-page-sections-body-max-width);
|
|
42
|
+
/* 24px clear of the insets nldd-page publishes. 24 is the depth of a
|
|
43
|
+
sticky header's fade, so the box starts where the fade ends. */
|
|
44
|
+
--_sidebar-section-sticky-top: calc(var(--context-inset-top, 0px) + var(--primitives-space-24));
|
|
45
|
+
--_sidebar-section-sticky-bottom: calc(var(--context-inset-bottom, 0px) + var(--primitives-space-24));
|
|
46
|
+
--_sidebar-section-width: var(--primitives-area-320);
|
|
47
|
+
--_sidebar-section-sidebar-box-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
48
|
+
--_sidebar-section-sidebar-box-border-color: var(--semantics-dividers-color);
|
|
49
|
+
|
|
50
|
+
display: flex;
|
|
51
|
+
width: 100%;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([hidden]) {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([width="full"]) {
|
|
61
|
+
--_sidebar-section-max-width: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* # Growth — mirrors simple-section. The host only grows when it is the
|
|
65
|
+
growing section of an nldd-page, or has grow itself; the chain below (block -> body ->
|
|
66
|
+
columns -> main) is unconditional, so whatever height the host gets
|
|
67
|
+
always reaches the main column. An nldd-inline-dialog there (itself
|
|
68
|
+
flex-grow: 1) then fills and centers in the leftover space. */
|
|
69
|
+
|
|
70
|
+
:host([data-growing]),
|
|
71
|
+
:host([grow]) {
|
|
72
|
+
flex-grow: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/* # Block */
|
|
77
|
+
|
|
78
|
+
.sidebar-section {
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
display: flex;
|
|
81
|
+
width: 100%;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
align-items: center;
|
|
85
|
+
|
|
86
|
+
@container (max-width: ${y}) {
|
|
87
|
+
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
88
|
+
padding-top: var(--_sidebar-section-sm-padding-top, var(--_sidebar-section-padding-top, var(--semantics-page-sections-sm-margin-block)));
|
|
89
|
+
padding-bottom: var(--_sidebar-section-sm-padding-bottom, var(--_sidebar-section-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@container (min-width: ${b}) and (max-width: ${x}) {
|
|
93
|
+
padding-inline: var(--semantics-page-sections-md-margin-inline);
|
|
94
|
+
padding-top: var(--_sidebar-section-md-padding-top, var(--_sidebar-section-padding-top, var(--semantics-page-sections-md-margin-block)));
|
|
95
|
+
padding-bottom: var(--_sidebar-section-md-padding-bottom, var(--_sidebar-section-padding-bottom, var(--semantics-page-sections-md-margin-block)));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@container (min-width: ${S}) {
|
|
99
|
+
padding-inline: var(--semantics-page-sections-lg-margin-inline);
|
|
100
|
+
padding-top: var(--_sidebar-section-lg-padding-top, var(--_sidebar-section-padding-top, var(--semantics-page-sections-lg-margin-block)));
|
|
101
|
+
padding-bottom: var(--_sidebar-section-lg-padding-bottom, var(--_sidebar-section-padding-bottom, var(--semantics-page-sections-lg-margin-block)));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/* # Body */
|
|
107
|
+
|
|
108
|
+
.sidebar-section__body {
|
|
109
|
+
display: flex;
|
|
110
|
+
width: 100%;
|
|
111
|
+
max-width: var(--_sidebar-section-max-width);
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
flex-grow: 1;
|
|
114
|
+
|
|
115
|
+
@container (max-width: ${y}) { gap: var(--semantics-page-sections-sm-gap); }
|
|
116
|
+
@container (min-width: ${b}) and (max-width: ${x}) { gap: var(--semantics-page-sections-md-gap); }
|
|
117
|
+
@container (min-width: ${S}) { gap: var(--semantics-page-sections-lg-gap); }
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.sidebar-section__header[hidden],
|
|
121
|
+
.sidebar-section__footer[hidden] {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/* # Columns — stacked (column) by default, two columns (row) when the section
|
|
127
|
+
is wide. Pure width switch, like the other page-sections. When collapsed the
|
|
128
|
+
aside is removed in JS (it moves to the sheet), so only the main remains;
|
|
129
|
+
with [no-collapse] the aside stays and this is the stacked fallback. */
|
|
130
|
+
|
|
131
|
+
.sidebar-section__columns {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
flex-grow: 1;
|
|
135
|
+
|
|
136
|
+
@container (max-width: ${y}) { gap: var(--semantics-page-sections-sm-gap); }
|
|
137
|
+
@container (min-width: ${b}) and (max-width: ${x}) { gap: var(--semantics-page-sections-md-gap); }
|
|
138
|
+
@container (min-width: ${S}) {
|
|
139
|
+
flex-direction: row;
|
|
140
|
+
gap: var(--semantics-page-sections-lg-gap);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Flex column so a growing child (the inline-dialog of an empty state) can
|
|
145
|
+
take the leftover height; flex-grow doubles as the row-mode width fill. */
|
|
146
|
+
.sidebar-section__main {
|
|
147
|
+
display: flex;
|
|
148
|
+
min-width: 0;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
flex-grow: 1;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
/* # Sidebar — full-width when stacked (narrow, [no-collapse]); a fixed-width
|
|
155
|
+
column beside the main when wide. */
|
|
156
|
+
|
|
157
|
+
.sidebar-section__sidebar {
|
|
158
|
+
flex-shrink: 0;
|
|
159
|
+
|
|
160
|
+
@container (min-width: ${S}) {
|
|
161
|
+
width: var(--_sidebar-section-width);
|
|
162
|
+
max-width: var(--_sidebar-section-width);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* # Box — the surface around it, edged by a divider. Sticky + scrollable only
|
|
167
|
+
beside the main (wide); when stacked it's a plain full-width box above the
|
|
168
|
+
main, so no sticky (which would scroll over the main) and no viewport
|
|
169
|
+
height cap. The box is the aside itself: Firefox puts a tab stop on
|
|
170
|
+
whatever scrolls, and that stop needs the landmark's role and name. */
|
|
171
|
+
|
|
172
|
+
.sidebar-section__sidebar-box {
|
|
173
|
+
display: block;
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
border-radius: var(--semantics-surfaces-corner-radius);
|
|
176
|
+
background-color: var(--_sidebar-section-sidebar-box-background-color);
|
|
177
|
+
box-shadow: inset 0 0 0 var(--semantics-surfaces-highlight-border-width) var(--_sidebar-section-sidebar-box-border-color);
|
|
178
|
+
|
|
179
|
+
@container (min-width: ${S}) {
|
|
180
|
+
position: sticky;
|
|
181
|
+
top: var(--_sidebar-section-sticky-top);
|
|
182
|
+
bottom: var(--_sidebar-section-sticky-bottom);
|
|
183
|
+
/* What the scroller shows, not what the window is: a viewport-tall cap
|
|
184
|
+
hangs out the bottom by the height of the chrome around the page. */
|
|
185
|
+
max-height: calc(var(--context-scroller-height, 100dvh) - var(--_sidebar-section-sticky-top) - var(--_sidebar-section-sticky-bottom));
|
|
186
|
+
overflow-y: auto;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
190
|
+
// src/components/layout/page-sections/sidebar-section/sidebar-section.template.ts
|
|
191
|
+
function w(e) {
|
|
192
|
+
let t = e.collapsed, n = e._resolvedSidebarLabel;
|
|
193
|
+
return i`
|
|
194
|
+
<section class="sidebar-section">
|
|
195
|
+
<div class="sidebar-section__body">
|
|
196
|
+
<header class="sidebar-section__header"
|
|
197
|
+
hidden
|
|
198
|
+
>
|
|
199
|
+
<slot
|
|
200
|
+
name="header"
|
|
201
|
+
@slotchange=${e._onSlotChange}
|
|
202
|
+
></slot>
|
|
203
|
+
</header>
|
|
204
|
+
<div class="sidebar-section__columns">
|
|
205
|
+
${t ? a : i`
|
|
206
|
+
<div class="sidebar-section__sidebar">
|
|
207
|
+
<aside class="sidebar-section__sidebar-box"
|
|
208
|
+
aria-label=${n}
|
|
209
|
+
>
|
|
210
|
+
<slot name="sidebar"></slot>
|
|
211
|
+
</aside>
|
|
212
|
+
</div>
|
|
213
|
+
`}
|
|
214
|
+
<div class="sidebar-section__main">
|
|
215
|
+
<slot></slot>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
<footer class="sidebar-section__footer"
|
|
219
|
+
hidden
|
|
220
|
+
>
|
|
221
|
+
<slot
|
|
222
|
+
name="footer"
|
|
223
|
+
@slotchange=${e._onSlotChange}
|
|
224
|
+
></slot>
|
|
225
|
+
</footer>
|
|
226
|
+
</div>
|
|
227
|
+
</section>
|
|
228
|
+
<nldd-sheet class="sidebar-section__sheet"
|
|
229
|
+
placement="left"
|
|
230
|
+
accessible-label=${n}
|
|
231
|
+
@open=${e._onSheetOpen}
|
|
232
|
+
@close=${e._onSheetClose}
|
|
233
|
+
>
|
|
234
|
+
${t ? i`
|
|
235
|
+
<nldd-page sticky-header>
|
|
236
|
+
<slot
|
|
237
|
+
name="sheet-top-title-bar"
|
|
238
|
+
slot="header"
|
|
239
|
+
>
|
|
240
|
+
<nldd-top-title-bar
|
|
241
|
+
text=${n}
|
|
242
|
+
dismiss-text=${e._sheetDismissText}
|
|
243
|
+
></nldd-top-title-bar>
|
|
244
|
+
</slot>
|
|
245
|
+
<slot name="sidebar"></slot>
|
|
246
|
+
</nldd-page>
|
|
247
|
+
` : a}
|
|
248
|
+
</nldd-sheet>
|
|
249
|
+
`;
|
|
250
|
+
}
|
|
251
|
+
// src/components/layout/page-sections/sidebar-section/sidebar-section.ts
|
|
252
|
+
var T = class extends m(r) {
|
|
253
|
+
constructor(...e) {
|
|
254
|
+
super(...e), this.width = "", this.sidebarLabel = "", this.translations = {}, this.noCollapse = !1, this.stickyTop = "", this.stickyBottom = "", this.collapsed = !1, this._hasMeasured = !1, this._sheetOpen = !1, this._onResize = (e) => {
|
|
255
|
+
let t = e[0], n = t.contentBoxSize?.[0]?.inlineSize ?? t.contentRect.width, r = this._hasMeasured;
|
|
256
|
+
this._hasMeasured = !0, this._applyCollapsed(n, r);
|
|
257
|
+
}, this._onClick = (e) => {
|
|
258
|
+
if (!this.collapsed || !this._sheetOpen || e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
259
|
+
let t = e.composedPath();
|
|
260
|
+
if (!t.some((e) => e instanceof Element && e.parentElement === this && e.slot === "sidebar")) return;
|
|
261
|
+
let n = t.find((e) => e instanceof HTMLAnchorElement && e.hasAttribute("href"));
|
|
262
|
+
if (!n || n.hasAttribute("download") || n.target && n.target !== "_self") return;
|
|
263
|
+
let r = _(n.href), i = r ? g(r, this) : null;
|
|
264
|
+
if (!i || this._inSidebar(i)) return;
|
|
265
|
+
e.preventDefault(), this._pendingJump?.abort();
|
|
266
|
+
let a = new AbortController();
|
|
267
|
+
this._pendingJump = a, this._sheet?.addEventListener("close", () => queueMicrotask(() => {
|
|
268
|
+
a.signal.aborted || (this._pendingJump = void 0, i.scrollIntoView(), v(i, { preventScroll: !0 }), history.replaceState(history.state, "", r));
|
|
269
|
+
}), {
|
|
270
|
+
once: !0,
|
|
271
|
+
signal: a.signal
|
|
272
|
+
}), this.hide(), this._sheet?.open && a.abort();
|
|
273
|
+
}, this._onSheetOpen = () => {
|
|
274
|
+
this._sheetOpen = !0, this._pendingJump?.abort(), this._pendingJump = void 0;
|
|
275
|
+
}, this._onSheetClose = () => {
|
|
276
|
+
this._sheetOpen = !1;
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
get _resolvedSidebarLabel() {
|
|
280
|
+
return this.sidebarLabel || this._t("components.sidebar-section.sidebar-label");
|
|
281
|
+
}
|
|
282
|
+
get _sheetDismissText() {
|
|
283
|
+
return this._t("components.sidebar-section.sheet-dismiss-action");
|
|
284
|
+
}
|
|
285
|
+
_t(e) {
|
|
286
|
+
return u(this.translations, h, e);
|
|
287
|
+
}
|
|
288
|
+
connectedCallback() {
|
|
289
|
+
super.connectedCallback(), this._ro = new ResizeObserver(this._onResize), this._ro.observe(this), this.addEventListener("click", this._onClick);
|
|
290
|
+
}
|
|
291
|
+
disconnectedCallback() {
|
|
292
|
+
super.disconnectedCallback(), this._ro?.disconnect(), this._ro = void 0, this._hasMeasured = !1, this.removeEventListener("click", this._onClick), this._pendingJump?.abort();
|
|
293
|
+
}
|
|
294
|
+
firstUpdated() {
|
|
295
|
+
this._applyCollapsed(this.clientWidth, !1);
|
|
296
|
+
}
|
|
297
|
+
_applyCollapsed(e, t) {
|
|
298
|
+
let n = e < f("lgMin") && !this.noCollapse;
|
|
299
|
+
n !== this.collapsed && (this.collapsed = n, t && this.dispatchEvent(new CustomEvent("collapse-change", {
|
|
300
|
+
detail: { collapsed: n },
|
|
301
|
+
bubbles: !0,
|
|
302
|
+
composed: !0
|
|
303
|
+
})));
|
|
304
|
+
}
|
|
305
|
+
updated(e) {
|
|
306
|
+
if (super.updated(e), e.has("width")) {
|
|
307
|
+
let e = this.width;
|
|
308
|
+
e && e !== "full" && CSS.supports("max-width", e) ? this.style.setProperty("--_sidebar-section-max-width", e) : this.style.removeProperty("--_sidebar-section-max-width");
|
|
309
|
+
}
|
|
310
|
+
e.has("stickyTop") && this._applyInset("--_sidebar-section-sticky-top", this.stickyTop), e.has("stickyBottom") && this._applyInset("--_sidebar-section-sticky-bottom", this.stickyBottom), e.has("noCollapse") && this._applyCollapsed(this.clientWidth, !1), e.has("collapsed") && !this.collapsed && this._sheet?.hide();
|
|
311
|
+
}
|
|
312
|
+
_applyInset(e, t) {
|
|
313
|
+
t && CSS.supports("top", t) ? this.style.setProperty(e, t) : this.style.removeProperty(e);
|
|
314
|
+
}
|
|
315
|
+
show() {
|
|
316
|
+
this.collapsed && this._sheet?.show();
|
|
317
|
+
}
|
|
318
|
+
hide() {
|
|
319
|
+
this._sheet?.hide();
|
|
320
|
+
}
|
|
321
|
+
toggle() {
|
|
322
|
+
this.collapsed && (this._sheetOpen ? this._sheet?.hide() : this._sheet?.show());
|
|
323
|
+
}
|
|
324
|
+
_inSidebar(e) {
|
|
325
|
+
return [...this.children].some((t) => t.slot === "sidebar" && t.contains(e));
|
|
326
|
+
}
|
|
327
|
+
render() {
|
|
328
|
+
return w(this);
|
|
329
|
+
}
|
|
330
|
+
}, E = (T.styles = [p, C], T);
|
|
331
|
+
o([n({
|
|
332
|
+
reflect: !0,
|
|
333
|
+
converter: l("")
|
|
334
|
+
})], E.prototype, "width", void 0), o([n({
|
|
335
|
+
type: String,
|
|
336
|
+
attribute: "sidebar-label"
|
|
337
|
+
})], E.prototype, "sidebarLabel", void 0), o([n({ type: Object })], E.prototype, "translations", void 0), o([n({
|
|
338
|
+
type: Boolean,
|
|
339
|
+
reflect: !0,
|
|
340
|
+
attribute: "no-collapse"
|
|
341
|
+
})], E.prototype, "noCollapse", void 0), o([n({
|
|
342
|
+
reflect: !0,
|
|
343
|
+
attribute: "sticky-top",
|
|
344
|
+
converter: l("")
|
|
345
|
+
})], E.prototype, "stickyTop", void 0), o([n({
|
|
346
|
+
reflect: !0,
|
|
347
|
+
attribute: "sticky-bottom",
|
|
348
|
+
converter: l("")
|
|
349
|
+
})], E.prototype, "stickyBottom", void 0), o([n({
|
|
350
|
+
type: Boolean,
|
|
351
|
+
reflect: !0
|
|
352
|
+
})], E.prototype, "collapsed", void 0), o([c(".sidebar-section__sheet")], E.prototype, "_sheet", void 0), E = o([s("nldd-sidebar-section")], E);
|
|
353
|
+
export { E as NLDDSidebarSection };
|