@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,340 @@
|
|
|
1
|
+
import { a as e, i as t, n } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n as r, o as i, t as a } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as o } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as s } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { r as c } from "./element-state-B-44fVqq.js";
|
|
6
|
+
import { n as l } from "./input-modality-XE0B7yCn.js";
|
|
7
|
+
import { n as u } from "./breakpoints-Cwor8TRP.js";
|
|
8
|
+
import { t as d } from "./return-focus-Xmagtk6r.js";
|
|
9
|
+
import { t as f } from "./dismiss-from-title-bar-C6mP7sWP.js";
|
|
10
|
+
import { n as p, t as m } from "./open-when-rendered-CW_2_WUZ.js";
|
|
11
|
+
import { t as h } from "./title-bar-label-controller-DSxdKZOg.js";
|
|
12
|
+
// src/components/layout/sheet/sheet.styles.ts
|
|
13
|
+
var g = e(u.smMax), _ = e(u.mdMin), v = e(u.lgMin), y = t`
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/* # Host */
|
|
20
|
+
|
|
21
|
+
:host {
|
|
22
|
+
--_sheet-background-color: var(--semantics-surfaces-base-background-color);
|
|
23
|
+
--_sheet-width: initial;
|
|
24
|
+
--_sheet-height: initial;
|
|
25
|
+
|
|
26
|
+
/* A pane hides the back button of the bar inside it, because the menu
|
|
27
|
+
beside you is the way back. A sheet has no menu beside it, so a bar in
|
|
28
|
+
here keeps its back button even when the pane it stands in hides one. */
|
|
29
|
+
--context-back-button-display: flex;
|
|
30
|
+
|
|
31
|
+
/* contents, not block: the sheet itself is a position:fixed <dialog>, so the
|
|
32
|
+
host would only add an empty box. Left as a block it is a flex item like
|
|
33
|
+
any other, and inside a split-view pane it collects the pane's
|
|
34
|
+
::slotted flex-grow and eats the height its siblings needed.
|
|
35
|
+
nldd-modal-dialog does the same for the same reason. */
|
|
36
|
+
display: contents;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([hidden]) {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/* # Keyframes */
|
|
45
|
+
|
|
46
|
+
@keyframes sheet-slide-in-right {
|
|
47
|
+
from { transform: translateX(100%); }
|
|
48
|
+
to { transform: translateX(0); }
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes sheet-slide-out-right {
|
|
52
|
+
from { transform: translateX(0); }
|
|
53
|
+
to { transform: translateX(100%); }
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes sheet-slide-in-left {
|
|
57
|
+
from { transform: translateX(-100%); }
|
|
58
|
+
to { transform: translateX(0); }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes sheet-slide-out-left {
|
|
62
|
+
from { transform: translateX(0); }
|
|
63
|
+
to { transform: translateX(-100%); }
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes sheet-slide-in-bottom {
|
|
67
|
+
from { transform: translateY(100%); }
|
|
68
|
+
to { transform: translateY(0); }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes sheet-slide-out-bottom {
|
|
72
|
+
from { transform: translateY(0); }
|
|
73
|
+
to { transform: translateY(100%); }
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/* # Block */
|
|
78
|
+
|
|
79
|
+
.sheet {
|
|
80
|
+
/* Where the app's layout context ends. The sheet scrolls itself and starts
|
|
81
|
+
at its own top edge, so a page inside it keeps its own scroller and its
|
|
82
|
+
sticky header sticks to that edge instead of to a bar that stands
|
|
83
|
+
outside. See findScrollModeProvider for the other half. */
|
|
84
|
+
--context-scroll-mode: nested;
|
|
85
|
+
--context-inset-top: 0px;
|
|
86
|
+
--context-inset-bottom: 0px;
|
|
87
|
+
--context-parent-background-color: var(--_sheet-background-color);
|
|
88
|
+
|
|
89
|
+
display: flex;
|
|
90
|
+
position: fixed;
|
|
91
|
+
margin: 0;
|
|
92
|
+
outline: none;
|
|
93
|
+
border: none;
|
|
94
|
+
box-shadow: var(--semantics-overlays-box-shadow);
|
|
95
|
+
background: var(--_sheet-background-color);
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
padding: 0;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
|
|
100
|
+
@media (max-width: ${g}) {
|
|
101
|
+
inset: auto 0 0 0;
|
|
102
|
+
border-radius: var(--semantics-overlays-corner-radius) var(--semantics-overlays-corner-radius) 0 0;
|
|
103
|
+
width: 100%;
|
|
104
|
+
max-width: 100%;
|
|
105
|
+
max-height: calc(100dvh - var(--semantics-sheets-bottom-top-inset));
|
|
106
|
+
height: var(--_sheet-height, calc(100dvh - var(--semantics-sheets-bottom-top-inset)));
|
|
107
|
+
|
|
108
|
+
&[open] {
|
|
109
|
+
animation: sheet-slide-in-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) backwards;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.is-closing {
|
|
113
|
+
animation: sheet-slide-out-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) both;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (min-width: ${_}) {
|
|
118
|
+
inset: var(--semantics-overlays-inset) var(--semantics-overlays-inset) var(--semantics-overlays-inset) auto;
|
|
119
|
+
border-radius: var(--semantics-overlays-corner-radius);
|
|
120
|
+
width: min(var(--_sheet-width, var(--semantics-sheets-side-md-width)), calc(100vw - var(--semantics-overlays-inset) * 2));
|
|
121
|
+
height: calc(100dvh - var(--semantics-overlays-inset) * 2);
|
|
122
|
+
|
|
123
|
+
&[open] {
|
|
124
|
+
animation: sheet-slide-in-right var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) backwards;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.is-closing {
|
|
128
|
+
animation: sheet-slide-out-right var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) both;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@media (min-width: ${v}) {
|
|
133
|
+
width: min(var(--_sheet-width, var(--semantics-sheets-side-lg-width)), calc(100vw - var(--semantics-overlays-inset) * 2));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.sheet:focus-visible:not(.is-pointer-focus) {
|
|
138
|
+
outline: var(--semantics-focus-ring-outline);
|
|
139
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
140
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), var(--semantics-overlays-box-shadow);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.sheet:not([open]) {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.sheet::backdrop {
|
|
148
|
+
background: var(--semantics-overlays-backdrop-color);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host([placement="left"]) .sheet {
|
|
152
|
+
@media (min-width: ${_}) {
|
|
153
|
+
inset: var(--semantics-overlays-inset) auto var(--semantics-overlays-inset) var(--semantics-overlays-inset);
|
|
154
|
+
border-radius: var(--semantics-overlays-corner-radius);
|
|
155
|
+
width: min(var(--_sheet-width, var(--semantics-sheets-side-md-width)), calc(100vw - var(--semantics-overlays-inset) * 2));
|
|
156
|
+
height: calc(100dvh - var(--semantics-overlays-inset) * 2);
|
|
157
|
+
|
|
158
|
+
&[open] {
|
|
159
|
+
animation: sheet-slide-in-left var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) backwards;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.is-closing {
|
|
163
|
+
animation: sheet-slide-out-left var(--semantics-sheets-side-animation-duration) var(--primitives-transition-easing-default) both;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (min-width: ${v}) {
|
|
168
|
+
width: min(var(--_sheet-width, var(--semantics-sheets-side-lg-width)), calc(100vw - var(--semantics-overlays-inset) * 2));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host([placement="bottom"]) .sheet {
|
|
173
|
+
@media (min-width: ${_}) {
|
|
174
|
+
inset: auto 0 0 0;
|
|
175
|
+
margin-inline: auto;
|
|
176
|
+
border-radius: var(--semantics-overlays-corner-radius) var(--semantics-overlays-corner-radius) 0 0;
|
|
177
|
+
width: calc(100% - var(--semantics-sheets-bottom-md-inline-inset));
|
|
178
|
+
max-width: var(--semantics-page-sections-body-max-width);
|
|
179
|
+
max-height: calc(100dvh - var(--semantics-sheets-bottom-top-inset));
|
|
180
|
+
height: var(--_sheet-height, calc(100dvh - var(--semantics-sheets-bottom-top-inset)));
|
|
181
|
+
|
|
182
|
+
&[open] {
|
|
183
|
+
animation: sheet-slide-in-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) backwards;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.is-closing {
|
|
187
|
+
animation: sheet-slide-out-bottom var(--semantics-sheets-bottom-animation-duration) var(--primitives-transition-easing-default) both;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (min-width: ${v}) {
|
|
192
|
+
width: calc(100% - var(--semantics-sheets-bottom-lg-inline-inset));
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@media (prefers-reduced-motion: reduce) {
|
|
197
|
+
.sheet[open],
|
|
198
|
+
.sheet.is-closing {
|
|
199
|
+
animation: none;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
/* # Elements */
|
|
205
|
+
|
|
206
|
+
.sheet__body {
|
|
207
|
+
display: flex;
|
|
208
|
+
min-height: 0;
|
|
209
|
+
width: 100%;
|
|
210
|
+
flex-direction: column;
|
|
211
|
+
flex-grow: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Scoped to these two so other direct children keep their intrinsic height
|
|
215
|
+
instead of being stretched. */
|
|
216
|
+
::slotted(nldd-page),
|
|
217
|
+
::slotted(nldd-container) {
|
|
218
|
+
min-height: 0;
|
|
219
|
+
flex-grow: 1;
|
|
220
|
+
flex-shrink: 1;
|
|
221
|
+
flex-basis: 0;
|
|
222
|
+
}
|
|
223
|
+
`;
|
|
224
|
+
// src/components/layout/sheet/sheet.template.ts
|
|
225
|
+
function b(e) {
|
|
226
|
+
return i`
|
|
227
|
+
<dialog class="sheet"
|
|
228
|
+
aria-label=${e._resolvedAccessibleLabel}
|
|
229
|
+
aria-modal="true"
|
|
230
|
+
@pointerdown=${e._handleDialogPointerDown}
|
|
231
|
+
@pointerup=${e._handleDialogPointerUp}
|
|
232
|
+
@click=${e._handleDialogClick}
|
|
233
|
+
@cancel=${e._handleCancel}
|
|
234
|
+
@close=${e._handleDialogClose}
|
|
235
|
+
>
|
|
236
|
+
<div class="sheet__body">
|
|
237
|
+
<slot></slot>
|
|
238
|
+
</div>
|
|
239
|
+
<!-- Inside the dialog, so it escapes the inertness a modal imposes on
|
|
240
|
+
everything outside it. Plumbing, not consumer API. -->
|
|
241
|
+
<slot name="notifications"></slot>
|
|
242
|
+
</dialog>
|
|
243
|
+
`;
|
|
244
|
+
}
|
|
245
|
+
// src/components/layout/sheet/sheet.ts
|
|
246
|
+
var x, S = 1e3, C = (x = class extends r {
|
|
247
|
+
constructor(...e) {
|
|
248
|
+
super(...e), this.width = "", this.height = "", this.placement = "right", this.accessibleLabel = "", this._titleBar = new h(this), this.open = !1, this._closing = !1, this._cancelPendingOpen = null, this._closeFallback = 0, this._pointerDownOnBackdrop = !1, this._pointerUpOnBackdrop = !1, this._closeEmitted = !1, this._focusReturn = new d(), this._handleDismiss = (e) => {
|
|
249
|
+
f(e) && (e.stopPropagation(), this.hide());
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
get _resolvedAccessibleLabel() {
|
|
253
|
+
return this.accessibleLabel || this._titleBar.text || "Venster";
|
|
254
|
+
}
|
|
255
|
+
updated(e) {
|
|
256
|
+
if (e.has("open")) {
|
|
257
|
+
let e = this._dialog;
|
|
258
|
+
this.open && (!e?.open || this._closing) ? this.show() : !this.open && e?.open && !this._closing && this.hide();
|
|
259
|
+
}
|
|
260
|
+
if (e.has("width") && (this.width ? this.style.setProperty("--_sheet-width", this.width) : this.style.removeProperty("--_sheet-width")), e.has("height")) {
|
|
261
|
+
let e = this.height, t = !!e && e !== "full", n = t && CSS.supports("height", e);
|
|
262
|
+
n ? this.style.setProperty("--_sheet-height", e) : this.style.removeProperty("--_sheet-height"), c(this, "invalid-height", t && !n);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
get _dialog() {
|
|
266
|
+
return this.shadowRoot?.querySelector("dialog") ?? null;
|
|
267
|
+
}
|
|
268
|
+
connectedCallback() {
|
|
269
|
+
super.connectedCallback(), this.style.containerType = "inline-size", this.style.containerName = "layout-container", this.addEventListener("dismiss", this._handleDismiss);
|
|
270
|
+
}
|
|
271
|
+
disconnectedCallback() {
|
|
272
|
+
super.disconnectedCallback(), this.removeEventListener("dismiss", this._handleDismiss);
|
|
273
|
+
}
|
|
274
|
+
show() {
|
|
275
|
+
let e = this._dialog;
|
|
276
|
+
e ? (this._cancelPendingOpen?.(), this._cancelPendingOpen = null, this._closeEmitted = !1, c(this, "unnamed", !this.accessibleLabel && !this._titleBar.text), this._closing ? (window.clearTimeout(this._closeFallback), this._closing = !1, e.classList.remove("is-closing")) : (this._focusReturn.remember(), e.showModal()), this.open = !0, this._manageFocus(), this.dispatchEvent(new CustomEvent("open", {
|
|
277
|
+
bubbles: !0,
|
|
278
|
+
composed: !0
|
|
279
|
+
}))) : (this._cancelPendingOpen?.(), this._cancelPendingOpen = m(this, () => this._dialog, () => this.show()));
|
|
280
|
+
}
|
|
281
|
+
_manageFocus() {
|
|
282
|
+
if (p(this)) return;
|
|
283
|
+
let e = this._dialog;
|
|
284
|
+
e && (e.classList.toggle("is-pointer-focus", l()), e.focus());
|
|
285
|
+
}
|
|
286
|
+
hide() {
|
|
287
|
+
this._cancelPendingOpen?.(), this._cancelPendingOpen = null;
|
|
288
|
+
let e = this._dialog;
|
|
289
|
+
if (!e || !e.open || this._closing) return;
|
|
290
|
+
this.open = !1, this._closing = !0, e.classList.add("is-closing");
|
|
291
|
+
let t = () => {
|
|
292
|
+
this._closing && (window.clearTimeout(this._closeFallback), e.classList.remove("is-closing"), this._closing = !1, e.close(), this._emitClose());
|
|
293
|
+
};
|
|
294
|
+
e.addEventListener("animationend", t, { once: !0 }), requestAnimationFrame(() => {
|
|
295
|
+
this._closing && getComputedStyle(e).animationName === "none" && t();
|
|
296
|
+
}), this._closeFallback = window.setTimeout(t, S);
|
|
297
|
+
}
|
|
298
|
+
_handleDialogPointerDown(e) {
|
|
299
|
+
this._pointerDownOnBackdrop = e.target === this._dialog;
|
|
300
|
+
}
|
|
301
|
+
_handleDialogPointerUp(e) {
|
|
302
|
+
this._pointerUpOnBackdrop = e.target === this._dialog;
|
|
303
|
+
}
|
|
304
|
+
_handleDialogClick(e) {
|
|
305
|
+
let t = e.target === this._dialog && this._pointerDownOnBackdrop && this._pointerUpOnBackdrop;
|
|
306
|
+
this._pointerDownOnBackdrop = !1, this._pointerUpOnBackdrop = !1, t && this.hide();
|
|
307
|
+
}
|
|
308
|
+
_emitClose() {
|
|
309
|
+
this.open = !1, !this._closeEmitted && (this._closeEmitted = !0, this.dispatchEvent(new CustomEvent("close", {
|
|
310
|
+
bubbles: !1,
|
|
311
|
+
composed: !0
|
|
312
|
+
})), this._focusReturn.restore(this));
|
|
313
|
+
}
|
|
314
|
+
_handleDialogClose(e) {
|
|
315
|
+
e.target === this._dialog && (this._closing = !1, this._dialog?.classList.remove("is-closing"), this._emitClose());
|
|
316
|
+
}
|
|
317
|
+
_handleCancel(e) {
|
|
318
|
+
e.preventDefault(), this.hide();
|
|
319
|
+
}
|
|
320
|
+
render() {
|
|
321
|
+
return b(this);
|
|
322
|
+
}
|
|
323
|
+
}, x.styles = y, x);
|
|
324
|
+
a([n({
|
|
325
|
+
reflect: !0,
|
|
326
|
+
converter: s("")
|
|
327
|
+
})], C.prototype, "width", void 0), a([n({
|
|
328
|
+
reflect: !0,
|
|
329
|
+
converter: s("")
|
|
330
|
+
})], C.prototype, "height", void 0), a([n({
|
|
331
|
+
reflect: !0,
|
|
332
|
+
converter: s("right")
|
|
333
|
+
})], C.prototype, "placement", void 0), a([n({
|
|
334
|
+
type: String,
|
|
335
|
+
attribute: "accessible-label"
|
|
336
|
+
})], C.prototype, "accessibleLabel", void 0), a([n({
|
|
337
|
+
type: Boolean,
|
|
338
|
+
reflect: !0
|
|
339
|
+
})], C.prototype, "open", void 0), C = a([o("nldd-sheet")], C);
|
|
340
|
+
export { C as NLDDSheet };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { i as e, n as t } from "./custom-element-q6NzoL5b.js";
|
|
2
|
+
import { n, o as r, t as i } from "./decorate-TduJMFD_.js";
|
|
3
|
+
import { t as a } from "./custom-element-BW8Ua4c7.js";
|
|
4
|
+
import { t as o } from "./reflect-non-default-Bu3rpCvg.js";
|
|
5
|
+
import { n as s, t as c } from "./scroll-mode-controller-COUD1-3P.js";
|
|
6
|
+
// src/components/layout/shell/shell.styles.ts
|
|
7
|
+
var l = e`
|
|
8
|
+
:host {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
/* # Host */
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
--context-parent-background-color: var(--semantics-surfaces-base-background-color);
|
|
17
|
+
--_shell-background-color: var(--context-parent-background-color);
|
|
18
|
+
|
|
19
|
+
display: flex;
|
|
20
|
+
background-color: var(--_shell-background-color);
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([hidden]) {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([background="tinted"]) {
|
|
30
|
+
--context-parent-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
31
|
+
--_shell-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Root-scroll mode — the DOCUMENT scrolls (see ScrollModeController +
|
|
35
|
+
--context-scroll-mode). The shell is the outermost DS layer, so it grows
|
|
36
|
+
with its content (min-height fills the viewport for short pages), letting a
|
|
37
|
+
descendant nldd-page's sticky layers stick against the document. */
|
|
38
|
+
:host([data-scroll="root"]) {
|
|
39
|
+
height: auto;
|
|
40
|
+
min-height: 100dvh;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/* # Block */
|
|
45
|
+
|
|
46
|
+
.shell {
|
|
47
|
+
display: flex;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
min-height: 0;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
flex-grow: 1;
|
|
53
|
+
flex-shrink: 1;
|
|
54
|
+
flex-basis: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Root-scroll mode — row axis untouched (this is a column block but a row item
|
|
58
|
+
of the host); only stop clipping so descendant sticky layers can escape. */
|
|
59
|
+
:host([data-scroll="root"]) .shell {
|
|
60
|
+
overflow: visible;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/* # Elements */
|
|
65
|
+
|
|
66
|
+
::slotted(*) {
|
|
67
|
+
min-height: 0;
|
|
68
|
+
flex-grow: 1;
|
|
69
|
+
flex-shrink: 1;
|
|
70
|
+
flex-basis: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Root-scroll mode — the slotted layer (bar/split-view or page) is a COLUMN
|
|
74
|
+
item here, so flex-basis/flex-shrink govern its height: fill the viewport
|
|
75
|
+
when short (flex-grow), keep its own height when taller (flex-shrink:0), so
|
|
76
|
+
a definite ancestor height can't squeeze it and cap a descendant sticky
|
|
77
|
+
layer's range. */
|
|
78
|
+
:host([data-scroll="root"]) ::slotted(*) {
|
|
79
|
+
flex-basis: auto;
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
// src/components/layout/shell/shell.template.ts
|
|
84
|
+
function u(e) {
|
|
85
|
+
return r`
|
|
86
|
+
<div class="shell">
|
|
87
|
+
<slot></slot>
|
|
88
|
+
</div>
|
|
89
|
+
`;
|
|
90
|
+
}
|
|
91
|
+
// src/components/layout/shell/shell.ts
|
|
92
|
+
var d, f = [];
|
|
93
|
+
function p() {
|
|
94
|
+
for (let e = f.length - 1; e >= 0; e--) if (f[e].isConnected) return f[e];
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
var m = (d = class extends n {
|
|
98
|
+
constructor(...e) {
|
|
99
|
+
super(...e), this.background = "base", this._scrollConsumers = /* @__PURE__ */ new Set(), this._derivedMode = null, this._scrollMode = new s(this, () => this._applyOverscroll()), this._onSingleColumnChange = () => {
|
|
100
|
+
this._evaluateScrollMode();
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
registerScrollConsumer(e) {
|
|
104
|
+
this._scrollConsumers.add(e), this._evaluateScrollMode(), this._derivedMode && e.readScrollMode(this._derivedMode);
|
|
105
|
+
}
|
|
106
|
+
unregisterScrollConsumer(e) {
|
|
107
|
+
this._scrollConsumers.delete(e), this._evaluateScrollMode();
|
|
108
|
+
}
|
|
109
|
+
_outermostSplitView() {
|
|
110
|
+
return this.querySelector("nldd-navigation-split-view, nldd-side-by-side-split-view");
|
|
111
|
+
}
|
|
112
|
+
_evaluateScrollMode() {
|
|
113
|
+
let e = this._outermostSplitView();
|
|
114
|
+
if (e && typeof e.isSingleColumn != "boolean") return;
|
|
115
|
+
let t = e ? e.isSingleColumn ? "root" : "nested" : "root";
|
|
116
|
+
t !== this._derivedMode && (this._derivedMode = t, this.style.setProperty("--context-scroll-mode", t), this._scrollConsumers.forEach((e) => e.readScrollMode(this._derivedMode ?? void 0)));
|
|
117
|
+
}
|
|
118
|
+
connectedCallback() {
|
|
119
|
+
super.connectedCallback(), f.push(this), this._writeBodyBackground(), this._applyOverscroll(), this.addEventListener(c, this._onSingleColumnChange), this._evaluateScrollMode();
|
|
120
|
+
}
|
|
121
|
+
disconnectedCallback() {
|
|
122
|
+
super.disconnectedCallback(), this.removeEventListener(c, this._onSingleColumnChange);
|
|
123
|
+
let e = f.indexOf(this);
|
|
124
|
+
e >= 0 && f.splice(e, 1);
|
|
125
|
+
let t = p();
|
|
126
|
+
t ? (t._writeBodyBackground(), t._applyOverscroll()) : (document.body.style.removeProperty("background-color"), document.documentElement.style.removeProperty("overscroll-behavior"), document.body.style.removeProperty("overscroll-behavior"));
|
|
127
|
+
}
|
|
128
|
+
_applyOverscroll() {
|
|
129
|
+
p() === this && (this._scrollMode.mode === "root" ? (document.documentElement.style.removeProperty("overscroll-behavior"), document.body.style.removeProperty("overscroll-behavior")) : (document.documentElement.style.overscrollBehavior = "none", document.body.style.overscrollBehavior = "none"));
|
|
130
|
+
}
|
|
131
|
+
updated(e) {
|
|
132
|
+
e.has("background") && p() === this && this._writeBodyBackground();
|
|
133
|
+
}
|
|
134
|
+
_writeBodyBackground() {
|
|
135
|
+
let e = this.background === "tinted" ? "--semantics-surfaces-tinted-background-color" : "--semantics-surfaces-base-background-color";
|
|
136
|
+
document.body.style.backgroundColor = `var(${e})`;
|
|
137
|
+
}
|
|
138
|
+
render() {
|
|
139
|
+
return u(this);
|
|
140
|
+
}
|
|
141
|
+
}, d.styles = l, d);
|
|
142
|
+
i([t({
|
|
143
|
+
reflect: !0,
|
|
144
|
+
converter: o("base")
|
|
145
|
+
})], m.prototype, "background", void 0), m = i([a("nldd-shell")], m);
|
|
146
|
+
export { m as NLDDShell };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// node_modules/@codemirror/legacy-modes/mode/shell.js
|
|
2
|
+
var e = {};
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
for (var r = 0; r < n.length; r++) e[n[r]] = t;
|
|
5
|
+
}
|
|
6
|
+
var n = ["true", "false"], r = [
|
|
7
|
+
"if",
|
|
8
|
+
"then",
|
|
9
|
+
"do",
|
|
10
|
+
"else",
|
|
11
|
+
"elif",
|
|
12
|
+
"while",
|
|
13
|
+
"until",
|
|
14
|
+
"for",
|
|
15
|
+
"in",
|
|
16
|
+
"esac",
|
|
17
|
+
"fi",
|
|
18
|
+
"fin",
|
|
19
|
+
"fil",
|
|
20
|
+
"done",
|
|
21
|
+
"exit",
|
|
22
|
+
"set",
|
|
23
|
+
"unset",
|
|
24
|
+
"export",
|
|
25
|
+
"function"
|
|
26
|
+
], i = /* @__PURE__ */ "ab.awk.bash.beep.cat.cc.cd.chown.chmod.chroot.clear.cp.curl.cut.diff.echo.find.gawk.gcc.get.git.grep.hg.kill.killall.ln.ls.make.mkdir.openssl.mv.nc.nl.node.npm.ping.ps.restart.rm.rmdir.sed.service.sh.shopt.shred.source.sort.sleep.ssh.start.stop.su.sudo.svn.tee.telnet.top.touch.vi.vim.wall.wc.wget.who.write.yes.zsh".split(".");
|
|
27
|
+
t("atom", n), t("keyword", r), t("builtin", i);
|
|
28
|
+
function a(t, n) {
|
|
29
|
+
if (t.eatSpace()) return null;
|
|
30
|
+
var r = t.sol(), i = t.next();
|
|
31
|
+
if (i === "\\") return t.next(), null;
|
|
32
|
+
if (i === "'" || i === "\"" || i === "`") return n.tokens.unshift(o(i, i === "`" ? "quote" : "string")), u(t, n);
|
|
33
|
+
if (i === "#") return r && t.eat("!") ? (t.skipToEnd(), "meta") : (t.skipToEnd(), "comment");
|
|
34
|
+
if (i === "$") return n.tokens.unshift(c), u(t, n);
|
|
35
|
+
if (i === "+" || i === "=") return "operator";
|
|
36
|
+
if (i === "-") return t.eat("-"), t.eatWhile(/\w/), "attribute";
|
|
37
|
+
if (i == "<") {
|
|
38
|
+
if (t.match("<<")) return "operator";
|
|
39
|
+
var a = t.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
|
|
40
|
+
if (a) return n.tokens.unshift(l(a[1] || a[2])), "string.special";
|
|
41
|
+
}
|
|
42
|
+
if (/\d/.test(i) && (t.eatWhile(/\d/), t.eol() || !/\w/.test(t.peek()))) return "number";
|
|
43
|
+
t.eatWhile(/[\w-]/);
|
|
44
|
+
var s = t.current();
|
|
45
|
+
return t.peek() === "=" && /\w+/.test(s) ? "def" : e.hasOwnProperty(s) ? e[s] : null;
|
|
46
|
+
}
|
|
47
|
+
function o(e, t) {
|
|
48
|
+
var n = e == "(" ? ")" : e == "{" ? "}" : e;
|
|
49
|
+
return function(r, i) {
|
|
50
|
+
for (var a, l = !1; (a = r.next()) != null;) {
|
|
51
|
+
if (a === n && !l) {
|
|
52
|
+
i.tokens.shift();
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
if (a === "$" && !l && e !== "'" && r.peek() != n) {
|
|
56
|
+
l = !0, r.backUp(1), i.tokens.unshift(c);
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
if (!l && e !== n && a === e) return i.tokens.unshift(o(e, t)), u(r, i);
|
|
60
|
+
if (!l && /['"]/.test(a) && !/['"]/.test(e)) {
|
|
61
|
+
i.tokens.unshift(s(a, "string")), r.backUp(1);
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
l = !l && a === "\\";
|
|
65
|
+
}
|
|
66
|
+
return t;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function s(e, t) {
|
|
70
|
+
return function(n, r) {
|
|
71
|
+
return r.tokens[0] = o(e, t), n.next(), u(n, r);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
var c = function(e, t) {
|
|
75
|
+
t.tokens.length > 1 && e.eat("$");
|
|
76
|
+
var n = e.next();
|
|
77
|
+
return /['"({]/.test(n) ? (t.tokens[0] = o(n, n == "(" ? "quote" : n == "{" ? "def" : "string"), u(e, t)) : (/\d/.test(n) || e.eatWhile(/\w/), t.tokens.shift(), "def");
|
|
78
|
+
};
|
|
79
|
+
function l(e) {
|
|
80
|
+
return function(t, n) {
|
|
81
|
+
return t.sol() && t.string == e && n.tokens.shift(), t.skipToEnd(), "string.special";
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function u(e, t) {
|
|
85
|
+
return (t.tokens[0] || a)(e, t);
|
|
86
|
+
}
|
|
87
|
+
var d = {
|
|
88
|
+
name: "shell",
|
|
89
|
+
startState: function() {
|
|
90
|
+
return { tokens: [] };
|
|
91
|
+
},
|
|
92
|
+
token: function(e, t) {
|
|
93
|
+
return u(e, t);
|
|
94
|
+
},
|
|
95
|
+
languageData: {
|
|
96
|
+
autocomplete: n.concat(r, i),
|
|
97
|
+
closeBrackets: { brackets: [
|
|
98
|
+
"(",
|
|
99
|
+
"[",
|
|
100
|
+
"{",
|
|
101
|
+
"'",
|
|
102
|
+
"\"",
|
|
103
|
+
"`"
|
|
104
|
+
] },
|
|
105
|
+
commentTokens: { line: "#" }
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
export { d as shell };
|