@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,325 @@
|
|
|
1
|
+
import "./icon-BORlalt0.js";
|
|
2
|
+
import { i as e, n as t, t as n } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as r, o as i, r as a, t as o } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as s } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as c } from "./reflect-non-default-Bu3rpCvg.js";
|
|
6
|
+
import "./button-group-BYGPPLmZ.js";
|
|
7
|
+
import { t as l } from "./shadow-resets-6SToDsPu.js";
|
|
8
|
+
import { t as u } from "./translations-wxBSz213.js";
|
|
9
|
+
import "./icon-button-rKiIHs7A.js";
|
|
10
|
+
import { t as d } from "./banner.i18n-BOCM9rGN.js";
|
|
11
|
+
// src/components/status-and-feedback/banner/banner.styles.ts
|
|
12
|
+
var f = e`
|
|
13
|
+
:host {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* # Host
|
|
19
|
+
*
|
|
20
|
+
* The visual framework lives on .banner, not :host: outer-document rules
|
|
21
|
+
* (a consumer's universal reset) beat normal :host declarations per CSS
|
|
22
|
+
* Scoping. The host only keeps the external contract. */
|
|
23
|
+
|
|
24
|
+
:host {
|
|
25
|
+
--_banner-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
26
|
+
--_banner-padding: var(--primitives-space-12);
|
|
27
|
+
--_banner-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
28
|
+
--_banner-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
29
|
+
--_banner-border-width: var(--primitives-border-width-thin);
|
|
30
|
+
--_banner-icon-color: var(--primitives-color-neutral-750);
|
|
31
|
+
--_banner-icon-size: var(--primitives-space-32);
|
|
32
|
+
--_banner-content-color: var(--semantics-content-color);
|
|
33
|
+
--_banner-text-icon-offset: calc((var(--_banner-icon-size) - var(--primitives-font-size-100) * var(--primitives-line-height-tight)) / 2);
|
|
34
|
+
--_banner-column-gap: var(--primitives-space-8);
|
|
35
|
+
--_banner-dismiss-inset: 0px;
|
|
36
|
+
--_banner-dismissible-padding-right: calc(var(--_banner-dismiss-inset) + var(--semantics-controls-md-min-size));
|
|
37
|
+
--_banner-main-gap: var(--primitives-space-8);
|
|
38
|
+
--_banner-actions-gap: var(--primitives-space-4);
|
|
39
|
+
|
|
40
|
+
${l}
|
|
41
|
+
display: block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
color: var(--_banner-content-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([hidden]) {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* The dismiss slot narrows with the icon-button the template swaps in, so
|
|
51
|
+
the reserved right padding tracks the control size rather than a fixed
|
|
52
|
+
value. --_banner-text-icon-offset follows --_banner-icon-size on its own.
|
|
53
|
+
|
|
54
|
+
--_banner-dismiss-inset pulls the 32px button up until its center sits on the
|
|
55
|
+
24px icon's center (8 - (32 - 24) / 2 = 4), and the same value on the
|
|
56
|
+
right gives the button equal air on both sides of its corner. */
|
|
57
|
+
|
|
58
|
+
:host([size="sm"]) {
|
|
59
|
+
--_banner-padding: var(--primitives-space-8);
|
|
60
|
+
--_banner-icon-size: var(--primitives-space-24);
|
|
61
|
+
--_banner-column-gap: var(--primitives-space-4);
|
|
62
|
+
--_banner-dismiss-inset: calc(var(--_banner-padding) - (var(--semantics-controls-sm-min-size) - var(--_banner-icon-size)) / 2);
|
|
63
|
+
--_banner-dismissible-padding-right: calc(var(--_banner-dismiss-inset) + var(--semantics-controls-sm-min-size));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([variant="accent"]) {
|
|
67
|
+
--_banner-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
68
|
+
--_banner-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
69
|
+
--_banner-icon-color: var(--components-banner-accent-icon-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([variant="success"]) {
|
|
73
|
+
--_banner-background-color: var(--semantics-surfaces-success-tinted-background-color);
|
|
74
|
+
--_banner-border-color: var(--semantics-surfaces-success-tinted-highlight-border-color);
|
|
75
|
+
--_banner-icon-color: light-dark(var(--primitives-color-success-550), var(--primitives-color-success-650));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([variant="warning"]) {
|
|
79
|
+
--_banner-background-color: var(--semantics-surfaces-warning-tinted-background-color);
|
|
80
|
+
--_banner-border-color: var(--semantics-surfaces-warning-tinted-highlight-border-color);
|
|
81
|
+
--_banner-icon-color: light-dark(var(--primitives-color-warning-450), var(--primitives-color-warning-650));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host([variant="critical"]) {
|
|
85
|
+
--_banner-background-color: var(--semantics-surfaces-critical-tinted-background-color);
|
|
86
|
+
--_banner-border-color: var(--semantics-surfaces-critical-tinted-highlight-border-color);
|
|
87
|
+
--_banner-icon-color: var(--primitives-color-critical-600);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* # Block */
|
|
91
|
+
|
|
92
|
+
.banner {
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
display: grid;
|
|
95
|
+
position: relative;
|
|
96
|
+
border-radius: var(--_banner-corner-radius);
|
|
97
|
+
box-shadow: inset 0 0 0 var(--_banner-border-width) var(--_banner-border-color);
|
|
98
|
+
background-color: var(--_banner-background-color);
|
|
99
|
+
padding: var(--_banner-padding);
|
|
100
|
+
grid-template-columns: auto 1fr;
|
|
101
|
+
gap: var(--_banner-column-gap);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host([dismissible]) .banner {
|
|
105
|
+
padding-right: var(--_banner-dismissible-padding-right);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (forced-colors: active) {
|
|
109
|
+
.banner {
|
|
110
|
+
border: var(--_banner-border-width) solid CanvasText;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/* # Icon */
|
|
116
|
+
|
|
117
|
+
.banner__icon {
|
|
118
|
+
display: flex;
|
|
119
|
+
grid-column: 1;
|
|
120
|
+
grid-row: 1;
|
|
121
|
+
width: var(--_banner-icon-size);
|
|
122
|
+
align-items: flex-start;
|
|
123
|
+
color: var(--_banner-icon-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/* # Main */
|
|
128
|
+
|
|
129
|
+
.banner__main {
|
|
130
|
+
display: flex;
|
|
131
|
+
grid-column: 2;
|
|
132
|
+
grid-row: 1;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
gap: var(--_banner-main-gap);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.banner__heading {
|
|
139
|
+
display: flex;
|
|
140
|
+
padding-top: var(--_banner-text-icon-offset);
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.banner__heading:has(.banner__supporting-text) {
|
|
145
|
+
padding-top: calc(var(--_banner-text-icon-offset) - var(--primitives-space-2));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* A banner carries text it did not write: a server message, an identifier, a
|
|
149
|
+
URL. One token longer than the banner is wide would otherwise run past the
|
|
150
|
+
edge and get clipped, so a word that cannot fit on a line of its own is
|
|
151
|
+
broken rather than lost. */
|
|
152
|
+
.banner__text {
|
|
153
|
+
margin: 0;
|
|
154
|
+
overflow-wrap: break-word;
|
|
155
|
+
font: var(--primitives-font-body-md-bold-tight);
|
|
156
|
+
text-wrap: pretty;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.banner__supporting-text {
|
|
160
|
+
margin: 0;
|
|
161
|
+
overflow-wrap: break-word;
|
|
162
|
+
font: var(--primitives-font-body-md-regular-tight);
|
|
163
|
+
text-wrap: pretty;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.banner__content {
|
|
167
|
+
display: contents;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.banner__content[hidden] {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.banner__actions {
|
|
175
|
+
display: flex;
|
|
176
|
+
margin-top: var(--_banner-actions-gap);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.banner__actions[hidden] {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/* # Dismiss */
|
|
185
|
+
|
|
186
|
+
.banner__dismiss-button {
|
|
187
|
+
display: flex;
|
|
188
|
+
position: absolute;
|
|
189
|
+
top: var(--_banner-dismiss-inset);
|
|
190
|
+
right: var(--_banner-dismiss-inset);
|
|
191
|
+
}
|
|
192
|
+
`;
|
|
193
|
+
// src/components/status-and-feedback/banner/banner.template.ts
|
|
194
|
+
function p(e) {
|
|
195
|
+
return i`
|
|
196
|
+
<div class="banner">
|
|
197
|
+
<div class="banner__icon"
|
|
198
|
+
aria-hidden="true"
|
|
199
|
+
>
|
|
200
|
+
<nldd-icon icon=${e._resolvedIcon}></nldd-icon>
|
|
201
|
+
</div>
|
|
202
|
+
<div class="banner__main">
|
|
203
|
+
${e.text || e.supportingText ? i`
|
|
204
|
+
<div class="banner__heading">
|
|
205
|
+
${e.text ? ((t) => {
|
|
206
|
+
switch (e.headingLevel) {
|
|
207
|
+
case 1: return i`<h1 class="banner__text">${t}</h1>`;
|
|
208
|
+
case 2: return i`<h2 class="banner__text">${t}</h2>`;
|
|
209
|
+
case 3: return i`<h3 class="banner__text">${t}</h3>`;
|
|
210
|
+
case 4: return i`<h4 class="banner__text">${t}</h4>`;
|
|
211
|
+
case 5: return i`<h5 class="banner__text">${t}</h5>`;
|
|
212
|
+
case 6: return i`<h6 class="banner__text">${t}</h6>`;
|
|
213
|
+
default: return i`<p class="banner__text">${t}</p>`;
|
|
214
|
+
}
|
|
215
|
+
})(e.text) : a}
|
|
216
|
+
${e.supportingText ? i`
|
|
217
|
+
<p class="banner__supporting-text">${e.supportingText}</p>
|
|
218
|
+
` : a}
|
|
219
|
+
</div>
|
|
220
|
+
` : a}
|
|
221
|
+
<div class="banner__content"
|
|
222
|
+
?hidden=${!e._hasContent}
|
|
223
|
+
>
|
|
224
|
+
<slot></slot>
|
|
225
|
+
</div>
|
|
226
|
+
<div class="banner__actions"
|
|
227
|
+
?hidden=${!e._hasActions}
|
|
228
|
+
>
|
|
229
|
+
<nldd-button-group orientation="horizontal" size="sm">
|
|
230
|
+
<slot name="actions"></slot>
|
|
231
|
+
</nldd-button-group>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
${e.dismissible ? i`
|
|
235
|
+
<div class="banner__dismiss-button">
|
|
236
|
+
<nldd-icon-button
|
|
237
|
+
icon="dismiss-small"
|
|
238
|
+
appearance="neutral-transparent"
|
|
239
|
+
size=${e.size}
|
|
240
|
+
accessible-label=${e._t("components.banner.dismiss-action")}
|
|
241
|
+
@click=${e._onDismissClick}
|
|
242
|
+
></nldd-icon-button>
|
|
243
|
+
</div>
|
|
244
|
+
` : a}
|
|
245
|
+
</div>
|
|
246
|
+
`;
|
|
247
|
+
}
|
|
248
|
+
// src/components/status-and-feedback/banner/banner.ts
|
|
249
|
+
var m, h = {
|
|
250
|
+
neutral: "info-circle-filled",
|
|
251
|
+
accent: "info-circle-filled",
|
|
252
|
+
success: "check-mark-circle-filled",
|
|
253
|
+
warning: "exclamation-triangle-filled",
|
|
254
|
+
critical: "exclamation-circle-filled"
|
|
255
|
+
}, g = (m = class extends r {
|
|
256
|
+
constructor(...e) {
|
|
257
|
+
super(...e), this.variant = "neutral", this.size = "md", this.icon = "", this.text = "", this.supportingText = "", this.headingLevel = null, this.dismissible = !1, this.translations = {}, this._hasContent = !1, this._hasActions = !1;
|
|
258
|
+
}
|
|
259
|
+
_t(e) {
|
|
260
|
+
return u(this.translations, d, e);
|
|
261
|
+
}
|
|
262
|
+
get _resolvedIcon() {
|
|
263
|
+
return this.icon || h[this.variant];
|
|
264
|
+
}
|
|
265
|
+
updated(e) {
|
|
266
|
+
e.has("variant") && this._applyAriaForVariant(this.variant);
|
|
267
|
+
}
|
|
268
|
+
_applyAriaForVariant(e) {
|
|
269
|
+
e === "critical" ? (this.setAttribute("role", "alert"), this.removeAttribute("aria-live")) : (this.setAttribute("role", "status"), this.setAttribute("aria-live", "polite")), this.setAttribute("aria-atomic", "true");
|
|
270
|
+
}
|
|
271
|
+
_attachSlotListeners() {
|
|
272
|
+
let e = this.shadowRoot?.querySelector("slot:not([name])"), t = this.shadowRoot?.querySelector("slot[name=\"actions\"]");
|
|
273
|
+
if (!e && !t) return;
|
|
274
|
+
let n = (e) => (e?.assignedNodes({ flatten: !0 }) ?? []).some((e) => e.nodeType === Node.ELEMENT_NODE || e.nodeType === Node.TEXT_NODE && (e.textContent?.trim() ?? "") !== "");
|
|
275
|
+
this._syncContent = () => {
|
|
276
|
+
this._hasContent = n(e);
|
|
277
|
+
}, this._syncActions = () => {
|
|
278
|
+
this._hasActions = n(t);
|
|
279
|
+
}, e?.addEventListener("slotchange", this._syncContent), t?.addEventListener("slotchange", this._syncActions), this._syncContent(), this._syncActions();
|
|
280
|
+
}
|
|
281
|
+
firstUpdated() {
|
|
282
|
+
this._attachSlotListeners();
|
|
283
|
+
}
|
|
284
|
+
connectedCallback() {
|
|
285
|
+
super.connectedCallback(), this._applyAriaForVariant(this.variant), this.shadowRoot && !this._syncContent && this._attachSlotListeners();
|
|
286
|
+
}
|
|
287
|
+
disconnectedCallback() {
|
|
288
|
+
let e = this.shadowRoot?.querySelector("slot:not([name])"), t = this.shadowRoot?.querySelector("slot[name=\"actions\"]");
|
|
289
|
+
this._syncContent && e?.removeEventListener("slotchange", this._syncContent), this._syncActions && t?.removeEventListener("slotchange", this._syncActions), this._syncContent = void 0, this._syncActions = void 0, super.disconnectedCallback();
|
|
290
|
+
}
|
|
291
|
+
_onDismissClick() {
|
|
292
|
+
this.dispatchEvent(new CustomEvent("dismiss", {
|
|
293
|
+
bubbles: !0,
|
|
294
|
+
composed: !0
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
render() {
|
|
298
|
+
return p(this);
|
|
299
|
+
}
|
|
300
|
+
}, m.styles = f, m);
|
|
301
|
+
o([t({
|
|
302
|
+
reflect: !0,
|
|
303
|
+
converter: c("neutral")
|
|
304
|
+
})], g.prototype, "variant", void 0), o([t({
|
|
305
|
+
reflect: !0,
|
|
306
|
+
converter: c("md")
|
|
307
|
+
})], g.prototype, "size", void 0), o([t({
|
|
308
|
+
reflect: !0,
|
|
309
|
+
converter: c("")
|
|
310
|
+
})], g.prototype, "icon", void 0), o([t({
|
|
311
|
+
reflect: !0,
|
|
312
|
+
converter: c("")
|
|
313
|
+
})], g.prototype, "text", void 0), o([t({
|
|
314
|
+
reflect: !0,
|
|
315
|
+
attribute: "supporting-text",
|
|
316
|
+
converter: c("")
|
|
317
|
+
})], g.prototype, "supportingText", void 0), o([t({
|
|
318
|
+
type: Number,
|
|
319
|
+
reflect: !0,
|
|
320
|
+
attribute: "heading-level"
|
|
321
|
+
})], g.prototype, "headingLevel", void 0), o([t({
|
|
322
|
+
type: Boolean,
|
|
323
|
+
reflect: !0
|
|
324
|
+
})], g.prototype, "dismissible", void 0), o([t({ type: Object })], g.prototype, "translations", void 0), o([n()], g.prototype, "_hasContent", void 0), o([n()], g.prototype, "_hasActions", void 0), g = o([s("nldd-banner")], g);
|
|
325
|
+
export { g as NLDDBanner };
|
|
@@ -0,0 +1,259 @@
|
|
|
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 { t as l } from "./class-map-CXSdNjt8.js";
|
|
6
|
+
import { r as u, t as d } from "./breakpoints-Cwor8TRP.js";
|
|
7
|
+
import { n as f } from "./scroll-mode-controller-COUD1-3P.js";
|
|
8
|
+
import "./split-view-divider-jzcPmnMh.js";
|
|
9
|
+
// src/components/layout/split-views/bar-split-view/bar-split-view.styles.ts
|
|
10
|
+
var p = e`
|
|
11
|
+
:host {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/* # Host */
|
|
17
|
+
|
|
18
|
+
:host {
|
|
19
|
+
--_bar-split-view-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
20
|
+
|
|
21
|
+
display: flex;
|
|
22
|
+
background-color: var(--_bar-split-view-background-color);
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([hidden]) {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([background="base"]) {
|
|
33
|
+
--context-parent-background-color: var(--semantics-surfaces-base-background-color);
|
|
34
|
+
--_bar-split-view-background-color: var(--context-parent-background-color);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([background="tinted"]) {
|
|
38
|
+
--context-parent-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
39
|
+
--_bar-split-view-background-color: var(--context-parent-background-color);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Root-scroll mode: the document scrolls (ScrollModeController /
|
|
43
|
+
--context-scroll-mode). Bars become sticky layers that stay put while the
|
|
44
|
+
main content scrolls under them; their measured heights are published into
|
|
45
|
+
--context-inset-top/bottom (see bar-split-view.ts) so a descendant
|
|
46
|
+
nldd-page's sticky header/footer stack below/above them. The sticky insets
|
|
47
|
+
and those offsets are set by JS; bars paint above the content. */
|
|
48
|
+
:host([data-scroll="root"]) {
|
|
49
|
+
height: auto;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/* # Block */
|
|
54
|
+
|
|
55
|
+
.bar-split-view {
|
|
56
|
+
display: flex;
|
|
57
|
+
min-width: 0;
|
|
58
|
+
min-height: 0;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
flex-shrink: 1;
|
|
62
|
+
flex-basis: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Root-scroll mode: flow wrappers must be content-sized (not flex-basis:0) so
|
|
66
|
+
their border box spans the whole document. Otherwise a sticky bar's
|
|
67
|
+
containing block is only as tall as the initial viewport fill and the bar
|
|
68
|
+
un-sticks partway down. */
|
|
69
|
+
:host([data-scroll="root"]) .bar-split-view {
|
|
70
|
+
flex-basis: auto;
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/* # Elements */
|
|
76
|
+
|
|
77
|
+
.bar-split-view__bar {
|
|
78
|
+
display: flex;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([data-scroll="root"]) .bar-split-view__bar {
|
|
86
|
+
overflow: visible;
|
|
87
|
+
/* Sticky bars sit over the scrolling document, so they need an opaque
|
|
88
|
+
background to occlude the content passing beneath them. */
|
|
89
|
+
background-color: var(--_bar-split-view-background-color);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Root-scroll mode: top/bottom bars stick; JS sets their top/bottom insets. */
|
|
93
|
+
:host([data-scroll="root"]) .bar-split-view__bar--top,
|
|
94
|
+
:host([data-scroll="root"]) .bar-split-view__bar--bottom {
|
|
95
|
+
position: sticky;
|
|
96
|
+
z-index: 3;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.bar-split-view__divider {
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Root-scroll mode: the seam divider sticks too, riding with its bar instead
|
|
104
|
+
of scrolling away with the content. */
|
|
105
|
+
:host([data-scroll="root"]) .bar-split-view__divider {
|
|
106
|
+
position: sticky;
|
|
107
|
+
z-index: 3;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.bar-split-view__main {
|
|
111
|
+
display: flex;
|
|
112
|
+
min-width: 0;
|
|
113
|
+
min-height: 0;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
flex-grow: 1;
|
|
117
|
+
flex-shrink: 1;
|
|
118
|
+
flex-basis: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([data-scroll="root"]) .bar-split-view__main {
|
|
122
|
+
overflow: visible;
|
|
123
|
+
flex-basis: auto;
|
|
124
|
+
flex-shrink: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Only the main pane grows to fill remaining space; bar panes size to
|
|
128
|
+
* their content. Without this scoping a bar's slotted content gets
|
|
129
|
+
* flex-basis: 0 and collapses (the old 'flex: 1' shorthand expanded
|
|
130
|
+
* to 'flex: 1 1 0%', where % resolved to 'auto' inside the
|
|
131
|
+
* height-indeterminate bar wrapper — the longhand conversion lost
|
|
132
|
+
* that nuance, hence this rule). */
|
|
133
|
+
::slotted([slot="main"]) {
|
|
134
|
+
min-height: 0;
|
|
135
|
+
flex-grow: 1;
|
|
136
|
+
flex-shrink: 1;
|
|
137
|
+
flex-basis: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Root-scroll mode: the slotted main layer (a split-view or page) is a COLUMN
|
|
141
|
+
item of the main column: give it a real content height (flex-basis:auto)
|
|
142
|
+
that it keeps on tall pages (flex-shrink:0), otherwise its 0 basis collapses
|
|
143
|
+
the main box and the sticky bars' containing block never spans the document. */
|
|
144
|
+
:host([data-scroll="root"]) ::slotted([slot="main"]) {
|
|
145
|
+
flex-basis: auto;
|
|
146
|
+
flex-shrink: 0;
|
|
147
|
+
}
|
|
148
|
+
`;
|
|
149
|
+
// src/components/layout/split-views/bar-split-view/bar-split-view.template.ts
|
|
150
|
+
function m(e) {
|
|
151
|
+
let t = e._getSortedChildren().map((e) => ({
|
|
152
|
+
slot: e.slot,
|
|
153
|
+
isMain: e.slot === "main"
|
|
154
|
+
}));
|
|
155
|
+
t.some((e) => e.isMain) || t.push({
|
|
156
|
+
slot: "main",
|
|
157
|
+
isMain: !0
|
|
158
|
+
});
|
|
159
|
+
let n = t.findIndex((e) => e.isMain);
|
|
160
|
+
return i`
|
|
161
|
+
<div class="bar-split-view">
|
|
162
|
+
${t.map((e, r) => {
|
|
163
|
+
let o = t[r + 1], s = o ? e.isMain !== o.isMain : !1;
|
|
164
|
+
return i`
|
|
165
|
+
<div class=${l({
|
|
166
|
+
"bar-split-view__main": e.isMain,
|
|
167
|
+
"bar-split-view__bar": !e.isMain,
|
|
168
|
+
"bar-split-view__bar--top": !e.isMain && r < n,
|
|
169
|
+
"bar-split-view__bar--bottom": !e.isMain && r > n
|
|
170
|
+
})}>
|
|
171
|
+
<slot name=${e.slot}></slot>
|
|
172
|
+
</div>
|
|
173
|
+
${s ? i`
|
|
174
|
+
<div class="bar-split-view__divider">
|
|
175
|
+
<nldd-split-view-divider orientation="horizontal"></nldd-split-view-divider>
|
|
176
|
+
</div>
|
|
177
|
+
` : a}
|
|
178
|
+
`;
|
|
179
|
+
})}
|
|
180
|
+
</div>
|
|
181
|
+
`;
|
|
182
|
+
}
|
|
183
|
+
// src/components/layout/split-views/bar-split-view/bar-split-view.ts
|
|
184
|
+
var h = class extends r {
|
|
185
|
+
constructor(...e) {
|
|
186
|
+
super(...e), this._scrollMode = new f(this, () => this._updateInsets()), this.background = "inherit", this._currentBreakpoint = null, this._observer = null, this._resizeObserver = null, this._updateInsets = () => {
|
|
187
|
+
let e = this.shadowRoot?.querySelector(".bar-split-view") ?? null, t = e?.querySelector(".bar-split-view__main") ?? null;
|
|
188
|
+
if (!e || !t) return;
|
|
189
|
+
let n = Array.from(e.children), r = n.indexOf(t);
|
|
190
|
+
if (this._scrollMode.mode !== "root") {
|
|
191
|
+
n.forEach((e) => {
|
|
192
|
+
e.style.top = "", e.style.bottom = "";
|
|
193
|
+
}), t.style.removeProperty("--context-inset-top"), t.style.removeProperty("--context-inset-bottom");
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
let i = getComputedStyle(this), a = parseFloat(i.getPropertyValue("--context-inset-top")) || 0;
|
|
197
|
+
for (let e = 0; e < r; e++) n[e].style.top = `${a}px`, n[e].style.bottom = "", a += n[e].offsetHeight;
|
|
198
|
+
t.style.setProperty("--context-inset-top", `${a}px`);
|
|
199
|
+
let o = parseFloat(i.getPropertyValue("--context-inset-bottom")) || 0;
|
|
200
|
+
for (let e = n.length - 1; e > r; e--) n[e].style.bottom = `${o}px`, n[e].style.top = "", o += n[e].offsetHeight;
|
|
201
|
+
t.style.setProperty("--context-inset-bottom", `${o}px`);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
connectedCallback() {
|
|
205
|
+
super.connectedCallback(), this._currentBreakpoint = this._getBreakpoint(this.getBoundingClientRect().width), this._observer = new MutationObserver(() => this.requestUpdate()), this._observer.observe(this, {
|
|
206
|
+
childList: !0,
|
|
207
|
+
attributes: !0,
|
|
208
|
+
attributeFilter: [
|
|
209
|
+
"above",
|
|
210
|
+
"below",
|
|
211
|
+
"only",
|
|
212
|
+
"sm-order",
|
|
213
|
+
"md-order",
|
|
214
|
+
"lg-order"
|
|
215
|
+
],
|
|
216
|
+
subtree: !1
|
|
217
|
+
}), this._resizeObserver = new ResizeObserver(() => {
|
|
218
|
+
let e = this._getBreakpoint(this.getBoundingClientRect().width);
|
|
219
|
+
e !== this._currentBreakpoint && (this._currentBreakpoint = e, this.requestUpdate()), this._updateInsets();
|
|
220
|
+
}), this._resizeObserver.observe(this);
|
|
221
|
+
}
|
|
222
|
+
disconnectedCallback() {
|
|
223
|
+
super.disconnectedCallback(), this._observer?.disconnect(), this._observer = null, this._resizeObserver?.disconnect(), this._resizeObserver = null;
|
|
224
|
+
}
|
|
225
|
+
_getBreakpoint(e) {
|
|
226
|
+
let t = u();
|
|
227
|
+
return e <= d("smMax", t) ? "sm" : e <= d("mdMax", t) ? "md" : "lg";
|
|
228
|
+
}
|
|
229
|
+
_isChildVisible(e) {
|
|
230
|
+
if (this._currentBreakpoint === null) return !0;
|
|
231
|
+
let t = this._currentBreakpoint, n = [
|
|
232
|
+
"sm",
|
|
233
|
+
"md",
|
|
234
|
+
"lg"
|
|
235
|
+
], r = n.indexOf(t), i = e.getAttribute("only");
|
|
236
|
+
if (i) return t === i;
|
|
237
|
+
let a = e.getAttribute("above");
|
|
238
|
+
if (a) return r >= n.indexOf(a);
|
|
239
|
+
let o = e.getAttribute("below");
|
|
240
|
+
return !o || r <= n.indexOf(o);
|
|
241
|
+
}
|
|
242
|
+
_getSortedChildren() {
|
|
243
|
+
let e = Array.from(this.children).filter((e) => e.slot ? this._isChildVisible(e) : !1);
|
|
244
|
+
if (this._currentBreakpoint === null) return e;
|
|
245
|
+
let t = `${this._currentBreakpoint}-order`;
|
|
246
|
+
return [...e].sort((n, r) => (n.hasAttribute(t) ? parseInt(n.getAttribute(t)) : e.indexOf(n)) - (r.hasAttribute(t) ? parseInt(r.getAttribute(t)) : e.indexOf(r)));
|
|
247
|
+
}
|
|
248
|
+
updated() {
|
|
249
|
+
this._updateInsets();
|
|
250
|
+
}
|
|
251
|
+
render() {
|
|
252
|
+
return m(this);
|
|
253
|
+
}
|
|
254
|
+
}, g = (h.styles = p, h);
|
|
255
|
+
o([t({
|
|
256
|
+
reflect: !0,
|
|
257
|
+
converter: c("inherit")
|
|
258
|
+
})], g.prototype, "background", void 0), o([n()], g.prototype, "_currentBreakpoint", void 0), g = o([s("nldd-bar-split-view")], g);
|
|
259
|
+
export { g as NLDDBarSplitView };
|