@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,925 @@
|
|
|
1
|
+
import { n as e } from "./icon-BORlalt0.js";
|
|
2
|
+
import { a as t, i as n, n as r } from "./custom-element-q6NzoL5b.js";
|
|
3
|
+
import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
|
|
4
|
+
import { t as c } from "./custom-element-BW8Ua4c7.js";
|
|
5
|
+
import { t as l } from "./query-ChDzi9FQ.js";
|
|
6
|
+
import { t as u } from "./reflect-non-default-Bu3rpCvg.js";
|
|
7
|
+
import { r as d } from "./element-state-B-44fVqq.js";
|
|
8
|
+
import { t as f } from "./shadow-resets-6SToDsPu.js";
|
|
9
|
+
import { t as p } from "./with-translations-XX14GKFh.js";
|
|
10
|
+
import { t as m } from "./carried-context-DlMSujiJ.js";
|
|
11
|
+
import { t as h } from "./sanitize-url-CBuGmY0W.js";
|
|
12
|
+
import { n as g, t as _ } from "./breakpoints-Cwor8TRP.js";
|
|
13
|
+
import "./menu-bar-item-DGSC_ETi.js";
|
|
14
|
+
import "./menu-bar-0NFXvq-v.js";
|
|
15
|
+
import { t as v } from "./status-bar-change-CR9l0Gyk.js";
|
|
16
|
+
import { t as y } from "./top-navigation-bar.i18n-C-lcH1nB.js";
|
|
17
|
+
// src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts
|
|
18
|
+
var b = t(g.smMax), x = t(g.mdMin), S = t(g.mdMax), C = t(g.lgMin), w = n`
|
|
19
|
+
:host {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/* # Host */
|
|
25
|
+
|
|
26
|
+
:host {
|
|
27
|
+
--_top-navigation-bar-logo-width: var(--semantics-brand-ribbon-sm-width);
|
|
28
|
+
--_top-navigation-bar-logo-offset: 0px;
|
|
29
|
+
--_top-navigation-bar-logo-background-color: var(--semantics-brand-ribbon-color);
|
|
30
|
+
--_top-navigation-bar-wordmark-content-color: light-dark(var(--primitives-color-reference-lintblauw), var(--primitives-color-neutral-1000));
|
|
31
|
+
--_top-navigation-bar-wordmark-max-width: 280px;
|
|
32
|
+
--_top-navigation-bar-wordmark-title-font: var(--primitives-font-body-sm-semi-bold-flat);
|
|
33
|
+
--_top-navigation-bar-wordmark-subtitle-font: var(--primitives-font-body-xs-regular-flat);
|
|
34
|
+
--_top-navigation-bar-wordmark-supporting-text-font: var(--primitives-font-body-xxs-regular-flat);
|
|
35
|
+
--_top-navigation-bar-max-width: var(--semantics-page-sections-body-max-width);
|
|
36
|
+
--_top-navigation-bar-title-sm-font: var(--primitives-font-display-6-sm);
|
|
37
|
+
--_top-navigation-bar-title-md-font: var(--primitives-font-display-5-sm);
|
|
38
|
+
--_top-navigation-bar-title-lg-font: var(--primitives-font-display-4-sm);
|
|
39
|
+
|
|
40
|
+
${f}
|
|
41
|
+
container-type: inline-size;
|
|
42
|
+
display: block;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([hidden]) {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/* # Block */
|
|
52
|
+
|
|
53
|
+
.top-navigation-bar {
|
|
54
|
+
/* The ribbon's width, and with it everything measured against the ribbon:
|
|
55
|
+
its own height and the wordmark beside it. Here rather than on :host,
|
|
56
|
+
because a container query cannot measure the container it sits on. */
|
|
57
|
+
--_top-navigation-bar-logo-height: calc(var(--_top-navigation-bar-logo-width) * 2);
|
|
58
|
+
|
|
59
|
+
@container (max-width: ${b}) {
|
|
60
|
+
--_top-navigation-bar-logo-width: var(--semantics-brand-ribbon-sm-width);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@container (min-width: ${x}) and (max-width: ${S}) {
|
|
64
|
+
--_top-navigation-bar-logo-width: var(--semantics-brand-ribbon-md-width);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@container (min-width: ${C}) {
|
|
68
|
+
--_top-navigation-bar-logo-width: var(--semantics-brand-ribbon-lg-width);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
align-items: center;
|
|
75
|
+
width: 100%;
|
|
76
|
+
|
|
77
|
+
/* The page-section inline margin lives on the wrapper; each bar caps to
|
|
78
|
+
the content width and centers, so bar content lines up with page
|
|
79
|
+
sections. width=full drops the cap (bars fill the margin box). */
|
|
80
|
+
@container (max-width: ${b}) {
|
|
81
|
+
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@container (min-width: ${x}) and (max-width: ${S}) {
|
|
85
|
+
padding-inline: var(--semantics-page-sections-md-margin-inline);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@container (min-width: ${C}) {
|
|
89
|
+
padding-inline: var(--semantics-page-sections-lg-margin-inline);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([width="full"]) {
|
|
94
|
+
--_top-navigation-bar-max-width: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/* # Logo bar */
|
|
99
|
+
|
|
100
|
+
.top-navigation-bar__logo-bar {
|
|
101
|
+
display: grid;
|
|
102
|
+
grid-template-columns: 1fr auto 1fr;
|
|
103
|
+
gap: var(--primitives-space-8);
|
|
104
|
+
align-items: center;
|
|
105
|
+
width: 100%;
|
|
106
|
+
|
|
107
|
+
/* Off the 4px grid on purpose: puts the wordmark where the printed logo has it. */
|
|
108
|
+
@container (min-width: ${x}) {
|
|
109
|
+
gap: var(--primitives-space-10);
|
|
110
|
+
}
|
|
111
|
+
max-width: var(--_top-navigation-bar-max-width);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* ## Logo */
|
|
115
|
+
|
|
116
|
+
.top-navigation-bar__logo {
|
|
117
|
+
display: flex;
|
|
118
|
+
width: var(--_top-navigation-bar-logo-width);
|
|
119
|
+
height: var(--_top-navigation-bar-logo-height);
|
|
120
|
+
grid-column: 2;
|
|
121
|
+
align-self: start;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.top-navigation-bar__logo > .top-navigation-bar__ribbon-at-top {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* WebKit only: Chrome paints nothing above the page and leaves the fixed
|
|
131
|
+
::after behind, so a hard pull shows a gap between it and the logo. */
|
|
132
|
+
@supports (animation-timeline: scroll()) and (font: -apple-system-body) {
|
|
133
|
+
.top-navigation-bar__logo {
|
|
134
|
+
position: relative;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* The ribbon carries on above the page, seen when it is pulled down.
|
|
138
|
+
No z-index: Safari does not paint it above the page with one. */
|
|
139
|
+
.top-navigation-bar__logo::before {
|
|
140
|
+
content: '';
|
|
141
|
+
position: absolute;
|
|
142
|
+
bottom: calc(100% + var(--_top-navigation-bar-logo-offset));
|
|
143
|
+
left: 0;
|
|
144
|
+
width: 100%;
|
|
145
|
+
height: 100lvh;
|
|
146
|
+
background-color: var(--_top-navigation-bar-logo-background-color);
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* A fixed element only sees the document scroll, and nldd-page can be
|
|
151
|
+
the scroller. This one sees that and goes visibility: hidden on scroll;
|
|
152
|
+
the ::after inherits it. */
|
|
153
|
+
.top-navigation-bar__logo > .top-navigation-bar__ribbon-at-top {
|
|
154
|
+
display: block;
|
|
155
|
+
position: absolute;
|
|
156
|
+
inset: 0;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
animation: top-navigation-bar-ribbon-at-top linear both;
|
|
159
|
+
animation-timeline: scroll(nearest);
|
|
160
|
+
animation-range: 0 1px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Safari only paints above the page while something fixed touches the
|
|
164
|
+
top edge. This sits behind the logo, gone as soon as the page scrolls. */
|
|
165
|
+
.top-navigation-bar__ribbon-at-top::after {
|
|
166
|
+
content: '';
|
|
167
|
+
position: fixed;
|
|
168
|
+
top: 0;
|
|
169
|
+
z-index: -1;
|
|
170
|
+
width: var(--_top-navigation-bar-logo-width);
|
|
171
|
+
height: var(--_top-navigation-bar-logo-height);
|
|
172
|
+
background-color: var(--_top-navigation-bar-logo-background-color);
|
|
173
|
+
animation: top-navigation-bar-ribbon-at-top linear both;
|
|
174
|
+
animation-timeline: scroll(root);
|
|
175
|
+
animation-range: 0 1px;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:host([data-under-status-bar]) .top-navigation-bar__logo::before,
|
|
180
|
+
:host([data-under-status-bar]) .top-navigation-bar__logo > .top-navigation-bar__ribbon-at-top {
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@keyframes top-navigation-bar-ribbon-at-top {
|
|
185
|
+
to {
|
|
186
|
+
visibility: hidden;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.top-navigation-bar__logo > span {
|
|
191
|
+
display: block;
|
|
192
|
+
width: 100%;
|
|
193
|
+
height: 100%;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.top-navigation-bar__logo svg {
|
|
197
|
+
display: block;
|
|
198
|
+
width: 100%;
|
|
199
|
+
height: 100%;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
a.top-navigation-bar__logo {
|
|
203
|
+
color: inherit;
|
|
204
|
+
text-decoration: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
a.top-navigation-bar__logo:focus-visible {
|
|
208
|
+
outline: var(--semantics-focus-ring-outline);
|
|
209
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
210
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* ## Logo and wordmark */
|
|
214
|
+
|
|
215
|
+
.top-navigation-bar__logo-and-wordmark {
|
|
216
|
+
display: grid;
|
|
217
|
+
grid-column: 2 / 4;
|
|
218
|
+
grid-template-columns: subgrid;
|
|
219
|
+
/* Safari keeps the height of a columns-only subgrid when its width
|
|
220
|
+
changes; taking the row from the bar too makes it measure again. */
|
|
221
|
+
grid-template-rows: subgrid;
|
|
222
|
+
align-items: center;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.top-navigation-bar__logo-and-wordmark > .top-navigation-bar__logo {
|
|
226
|
+
grid-column: 1;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.top-navigation-bar__logo-and-wordmark > .top-navigation-bar__wordmark {
|
|
230
|
+
grid-column: 2;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/* The link spans the wordmark's whole track so the ribbon stays centered;
|
|
234
|
+
only the ribbon and the text take the click, not the space beside them. */
|
|
235
|
+
a.top-navigation-bar__logo-and-wordmark {
|
|
236
|
+
pointer-events: none;
|
|
237
|
+
text-decoration: none;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
a.top-navigation-bar__logo-and-wordmark > .top-navigation-bar__logo,
|
|
241
|
+
a.top-navigation-bar__logo-and-wordmark .top-navigation-bar__wordmark-content > p {
|
|
242
|
+
pointer-events: auto;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
a.top-navigation-bar__logo-and-wordmark .top-navigation-bar__wordmark-content > p {
|
|
246
|
+
width: fit-content;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
a.top-navigation-bar__logo-and-wordmark:focus-visible {
|
|
250
|
+
outline: none;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
a.top-navigation-bar__logo-and-wordmark:focus-visible > .top-navigation-bar__logo {
|
|
254
|
+
outline: var(--semantics-focus-ring-outline);
|
|
255
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
256
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* ## Wordmark */
|
|
260
|
+
|
|
261
|
+
.top-navigation-bar__wordmark {
|
|
262
|
+
box-sizing: border-box;
|
|
263
|
+
display: flex;
|
|
264
|
+
/* A grid item is at least as wide as its longest word unless told
|
|
265
|
+
otherwise, and the column it sits in is one of the two that keep the
|
|
266
|
+
ribbon centred. One unbreakable name would push the ribbon off centre
|
|
267
|
+
and the page past the screen. */
|
|
268
|
+
min-width: 0;
|
|
269
|
+
min-height: var(--_top-navigation-bar-logo-height);
|
|
270
|
+
grid-column: 3;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
color: var(--_top-navigation-bar-wordmark-content-color);
|
|
273
|
+
|
|
274
|
+
/* The distance the text keeps from the top edge once it outgrows the
|
|
275
|
+
ribbon. Only at the top: space under it would raise the bar for
|
|
276
|
+
nothing. */
|
|
277
|
+
@container (max-width: ${b}) {
|
|
278
|
+
align-self: start;
|
|
279
|
+
padding-block-start: var(--primitives-space-16);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.top-navigation-bar__wordmark-spacer {
|
|
284
|
+
height: var(--_top-navigation-bar-logo-width);
|
|
285
|
+
flex-grow: 0;
|
|
286
|
+
flex-shrink: 0;
|
|
287
|
+
|
|
288
|
+
@container (max-width: ${b}) {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.top-navigation-bar__wordmark-content {
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
flex-grow: 1;
|
|
297
|
+
flex-shrink: 1;
|
|
298
|
+
flex-basis: 50%;
|
|
299
|
+
max-width: var(--_top-navigation-bar-wordmark-max-width);
|
|
300
|
+
/* anywhere rather than break-word: only this one takes the break into
|
|
301
|
+
the min-content width, which is what the track measures. A name that
|
|
302
|
+
cannot break wraps mid-word here, because a name cut off by an
|
|
303
|
+
ellipsis cannot be read at all. */
|
|
304
|
+
overflow-wrap: anywhere;
|
|
305
|
+
|
|
306
|
+
/* On the bottom of the ribbon, and what does not fit grows downward: an
|
|
307
|
+
auto margin takes positive free space and never negative, so the text
|
|
308
|
+
cannot ride up past the top. Growing is the flex item's job here, and
|
|
309
|
+
an item that grows leaves nothing for the margin to push with. */
|
|
310
|
+
@container (max-width: ${b}) {
|
|
311
|
+
flex-grow: 0;
|
|
312
|
+
flex-basis: auto;
|
|
313
|
+
margin-block-start: auto;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.top-navigation-bar__wordmark-title {
|
|
318
|
+
margin: 0;
|
|
319
|
+
font: var(--_top-navigation-bar-wordmark-title-font);
|
|
320
|
+
text-wrap: balance;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.top-navigation-bar__wordmark-subtitle {
|
|
324
|
+
margin: 0;
|
|
325
|
+
font: var(--_top-navigation-bar-wordmark-subtitle-font);
|
|
326
|
+
text-wrap: balance;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.top-navigation-bar__wordmark-supporting-text {
|
|
330
|
+
margin: 0;
|
|
331
|
+
font: var(--_top-navigation-bar-wordmark-supporting-text-font);
|
|
332
|
+
text-wrap: balance;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
/* # Main bar */
|
|
337
|
+
|
|
338
|
+
.top-navigation-bar__main-bar {
|
|
339
|
+
display: flex;
|
|
340
|
+
width: 100%;
|
|
341
|
+
max-width: var(--_top-navigation-bar-max-width);
|
|
342
|
+
|
|
343
|
+
@container (max-width: ${b}) {
|
|
344
|
+
flex-direction: column;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
@container (min-width: ${x}) and (max-width: ${S}) {
|
|
348
|
+
flex-direction: row;
|
|
349
|
+
align-items: center;
|
|
350
|
+
gap: var(--semantics-menu-bar-items-inline-padding);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@container (min-width: ${C}) {
|
|
354
|
+
flex-direction: row;
|
|
355
|
+
align-items: center;
|
|
356
|
+
gap: var(--semantics-menu-bar-items-inline-padding);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* ## Title bar */
|
|
361
|
+
|
|
362
|
+
.top-navigation-bar__website-title-bar {
|
|
363
|
+
display: flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
justify-content: flex-start;
|
|
366
|
+
|
|
367
|
+
@container (min-width: ${x}) {
|
|
368
|
+
padding-inline-end: var(--semantics-menu-bar-items-inline-padding);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Without a logo above it the title is the first thing in the bar, so its
|
|
373
|
+
focus ring has nothing to sit in. Six is what that ring needs: two of
|
|
374
|
+
offset, two of outline, and the halo that follows it. */
|
|
375
|
+
|
|
376
|
+
:host([no-logo]) .top-navigation-bar__website-title-bar {
|
|
377
|
+
@container (max-width: ${b}) {
|
|
378
|
+
padding-top: var(--primitives-space-6);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/* ## Title */
|
|
383
|
+
|
|
384
|
+
.top-navigation-bar__website-title {
|
|
385
|
+
box-sizing: border-box;
|
|
386
|
+
display: inline-flex;
|
|
387
|
+
align-items: center;
|
|
388
|
+
min-width: var(--semantics-controls-xs-min-size);
|
|
389
|
+
min-height: var(--semantics-controls-xs-min-size);
|
|
390
|
+
font: var(--_top-navigation-bar-title-sm-font);
|
|
391
|
+
color: var(--semantics-content-color);
|
|
392
|
+
white-space: nowrap;
|
|
393
|
+
|
|
394
|
+
@container (max-width: ${b}) {
|
|
395
|
+
padding-top: var(--primitives-space-4);
|
|
396
|
+
min-width: 0;
|
|
397
|
+
white-space: normal;
|
|
398
|
+
overflow-wrap: break-word;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
@container (min-width: ${x}) {
|
|
402
|
+
font: var(--_top-navigation-bar-title-md-font);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
@container (min-width: ${C}) {
|
|
406
|
+
font: var(--_top-navigation-bar-title-lg-font);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
a.top-navigation-bar__website-title {
|
|
411
|
+
border-radius: var(--primitives-corner-radius-xxs);
|
|
412
|
+
text-decoration: none;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
a.top-navigation-bar__website-title:focus-visible {
|
|
416
|
+
outline: var(--semantics-focus-ring-outline);
|
|
417
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
418
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* ## Menu bar */
|
|
422
|
+
|
|
423
|
+
.top-navigation-bar__menu-bar {
|
|
424
|
+
display: flex;
|
|
425
|
+
min-width: 0;
|
|
426
|
+
align-items: center;
|
|
427
|
+
gap: var(--primitives-space-12);
|
|
428
|
+
flex-grow: 1;
|
|
429
|
+
/* Pull the menu out by the menu-bar items own inline padding so the first
|
|
430
|
+
and last item text (not its hit-area) lines up with the content edge. */
|
|
431
|
+
margin-inline: calc(-1 * var(--semantics-menu-bar-items-inline-padding));
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* ## Menu bar start */
|
|
435
|
+
|
|
436
|
+
.top-navigation-bar__menu-bar-start {
|
|
437
|
+
display: flex;
|
|
438
|
+
min-width: 0;
|
|
439
|
+
align-items: center;
|
|
440
|
+
|
|
441
|
+
@container (max-width: ${S}) {
|
|
442
|
+
flex-grow: 0;
|
|
443
|
+
flex-shrink: 0;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@container (min-width: ${C}) {
|
|
447
|
+
flex-grow: 1;
|
|
448
|
+
flex-shrink: 1;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* ## Menu bar end */
|
|
453
|
+
|
|
454
|
+
.top-navigation-bar__menu-bar-end {
|
|
455
|
+
display: flex;
|
|
456
|
+
min-width: 0;
|
|
457
|
+
align-items: center;
|
|
458
|
+
|
|
459
|
+
@container (max-width: ${S}) {
|
|
460
|
+
flex-grow: 1;
|
|
461
|
+
flex-shrink: 1;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
@container (min-width: ${C}) {
|
|
465
|
+
flex-grow: 0;
|
|
466
|
+
flex-shrink: 0;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* ## Global bar */
|
|
471
|
+
|
|
472
|
+
.top-navigation-bar__global-menu-bar {
|
|
473
|
+
display: none;
|
|
474
|
+
min-width: 0;
|
|
475
|
+
flex-grow: 1;
|
|
476
|
+
flex-shrink: 1;
|
|
477
|
+
@container (min-width: ${C}) {
|
|
478
|
+
:host(.has-global-items) & {
|
|
479
|
+
display: flex;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* ## Menu button */
|
|
485
|
+
|
|
486
|
+
.top-navigation-bar__menu-button {
|
|
487
|
+
display: none;
|
|
488
|
+
|
|
489
|
+
@container (max-width: ${S}) {
|
|
490
|
+
:host(.has-global-items) & {
|
|
491
|
+
display: inline-block;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/* ## Utility menu bar */
|
|
497
|
+
|
|
498
|
+
.top-navigation-bar__utility-menu-bar {
|
|
499
|
+
display: flex;
|
|
500
|
+
min-width: 0;
|
|
501
|
+
flex-grow: 1;
|
|
502
|
+
flex-shrink: 1;
|
|
503
|
+
justify-content: flex-end;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
slot[name="utility"]::slotted(nldd-menu-bar) {
|
|
507
|
+
flex-grow: 0;
|
|
508
|
+
}
|
|
509
|
+
`, T = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 100\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M0 0h50v100H0z\" fill=\"#154273\"/><path d=\"M25.9 77.36h-.87v-2.41h.87zm3.93-10.64h-.87v-2.41h.87zM13.7 62.56c-.06 0-.51 0-.51.1 0 .09.2.04.51.1.7.11.97.46 1.46.46.45 0 .9-.3.72-.94q-.06-.13-.1-.01c-.07.29-.42.45-.8.45-.46 0-.55-.16-1.28-.16m-4.79 2.41c.08.11.9 1.17-.36 1.58q-.1.04 0 .11c.94.39 1.39-.33 1.39-.33.47 1.08-.25 1.67-.25 1.67.1.2.54.52 1.22.67.26-.14.62-.4.77-.8 0 0 .18.46.01.91 1.9.17 2.58-1.35 4.04-1.07q.06 0 .06-.07c0-.94-.57-2.65-2.38-3s-1.33-1.09-1.33-1.09c.77-.03 1.2.3 1.2.3.15-.23-.05-.48-.05-.48.07-.08.11-.4.11-.4-.86 0-1.08-.18-1.08-.18-.13-.5.22-1.23 1.5-.46.32-.28.3-.72.3-.72.09-.04.15-.2.15-.26 0-.2-1.02-.78-1.28-.85-.07-.3-.46-.75-1.66-.6-.57.08-.98-.07-.79-.4.03-.06-.07-.07-.12-.01-.13.13-.31.5.18.75.55.28.59.83.6.9 0 .12-.14.14-.17.02-.25-.93-1.53-1.13-2.28-.64.04.5.58.83.87.83.17 0 .4-.17.4-.4 0-.11.06-.1.1-.01.12.33-.37 1.01-1.1.6-.74.74-.44 1.65-.37 1.99.14.6-.16 1.2-.7.92q-.05-.05-.06.04c0 .38.5.81 1.08.48M13 61.24c-.34.38-.9.3-1.04-.34.7-.04 1.01.03 1.04.34m22.07 1.48c-.37 0-.72-.16-.79-.45-.01-.07-.08-.1-.1 0-.18.65.27.95.72.95.48 0 .76-.35 1.45-.47.31-.05.52 0 .52-.1 0-.09-.45-.09-.52-.09-.72 0-.82.16-1.28.16m7.16 1.77q0-.09-.06-.04c-.54.27-.84-.31-.7-.92.07-.34.36-1.25-.38-2-.73.42-1.22-.26-1.1-.6.04-.08.1-.1.1.02 0 .23.23.4.4.4.3 0 .83-.33.88-.83-.76-.5-2.03-.3-2.28.64-.03.12-.17.1-.16-.01 0-.08.03-.63.58-.91.5-.25.32-.62.19-.75-.06-.06-.16-.05-.13 0 .2.34-.21.49-.78.42-1.2-.16-1.6.28-1.66.6-.26.06-1.28.63-1.28.84 0 .07.06.22.16.26 0 0-.03.44.29.72 1.27-.77 1.63-.05 1.5.46 0 0-.23.18-1.09.19 0 0 .04.3.12.4 0 0-.2.24-.06.47 0 0 .44-.33 1.2-.3 0 0 .49.74-1.32 1.1-1.81.34-2.39 2.05-2.39 3q0 .06.06.06c1.47-.28 2.14 1.24 4.04 1.07-.16-.45.02-.91.02-.91.15.4.51.66.77.8.67-.15 1.12-.48 1.22-.67 0 0-.72-.6-.25-1.67 0 0 .45.72 1.38.33q.11-.07.01-.1c-1.26-.42-.44-1.48-.36-1.59.58.33 1.08-.1 1.08-.48m-4.12-3.6c-.14.64-.7.73-1.05.35.03-.31.34-.38 1.05-.34M24.7 50.22c0 .16.07.3.12.38.12.16.1.25.04.3-.05.05-.14.07-.3-.04a1 1 0 0 0-.37-.12c-.28 0-.41.18-.41.33s.13.33.4.33q.26-.01.38-.12.23-.15.3-.04c.06.05-.02.6-.08 1.04-.46.1-.67.45-.67.67 0 .54.58.86.92 1.04.35-.18.93-.5.93-1.04 0-.22-.22-.58-.67-.67a4 4 0 0 1-.09-1.04c.05-.05.14-.07.3.04q.13.1.38.12c.28 0 .41-.18.41-.33s-.13-.33-.41-.33q-.25.01-.38.12-.23.15-.3.04c-.05-.05-.07-.14.04-.3a1 1 0 0 0 .13-.38c0-.27-.18-.4-.34-.4-.15 0-.33.13-.33.4m.33 4.06a.67.67 0 1 0 0 1.33.67.67 0 0 0 0-1.33m0 6.41c2.67 0 4.18.51 4.18.51.01-1.34 0-2.1.78-1.98-.43-1.14 1.4-1.58 1.4-3.06 0-.97-.7-1.08-.9-1.08-.6 0-.5.4-1.02.4-.06 0-.13-.02-.13.02 0 .17.14.46.38.46.32 0 .32-.31.56-.31.1 0 .24.08.24.4 0 .63-.4 1.33-.9 1.87a.6.6 0 0 0-.44-.25c-.28 0-.54.3-.54.67q0 .18.08.35a1 1 0 0 1-.42.14c-.22 0-.55-.09-.55-.57 0-1.07 1.44-2.01 1.44-3.37 0-.64-.44-1.29-1.34-1.29-.97 0-.79.89-1.63.89q-.06-.01-.07.04c0 .06.15.55.58.55.47 0 .6-.8 1-.8.16 0 .4.09.4.63 0 .42-.22 1.1-.52 1.76a.6.6 0 0 0-.42-.19c-.36 0-.62.35-.62.77q0 .4.28.68c-.2.27-.42.49-.72.49-.58 0-.83-.33-.83-.69 0-.38.7-.53.7-1.13 0-.41-.26-.64-.52-.64-.28 0-.42.18-.45.18s-.17-.18-.44-.18c-.26 0-.53.23-.53.64 0 .6.7.75.7 1.13 0 .36-.25.69-.83.69-.29 0-.5-.22-.72-.5a1 1 0 0 0 .28-.67c0-.42-.25-.77-.61-.77a.6.6 0 0 0-.43.2 5 5 0 0 1-.5-1.77c0-.54.22-.63.38-.63.4 0 .54.8 1 .8.44 0 .58-.5.58-.55q0-.04-.07-.04c-.84 0-.65-.89-1.62-.89-.9 0-1.34.65-1.34 1.3 0 1.35 1.43 2.3 1.43 3.36 0 .48-.33.57-.54.57a1 1 0 0 1-.42-.14 1 1 0 0 0 .07-.35c0-.37-.25-.67-.54-.67q-.27.01-.44.25c-.49-.54-.9-1.24-.9-1.87 0-.32.15-.4.25-.4.23 0 .24.31.56.31.23 0 .38-.29.38-.46 0-.04-.07-.03-.13-.03-.52 0-.42-.39-1.03-.39-.2 0-.89.11-.89 1.08 0 1.48 1.82 1.92 1.4 3.06.77-.12.76.64.78 1.98 0 0 1.5-.5 4.17-.5m-4.89 2q-1.11.24-1.48.38c.01-.33.13-.62.42-.69.04 0 .05-.06.01-.08-.65-.43-1 .4-1 .42-.23-.02-.58.05-.58.37 0 .92-2.12 1.44-2.61 1.51.86.34 1.22 1.43 1.22 1.43a5 5 0 0 1 1.53-1.18c.17 0 .23.2.24.33q.02.06.07.02c.33-.5.17-.6.15-.75-.03-.11 0-.54.49-.5v6.2l-.25.05c-.11.02-1.02-.75-2.05-1.47-1.04-.72-1.6-.29-2.78.35-1.54.84-3.1.08-3.1.08-1.34.95-1.8 3.7-1.8 3.7-.26.12-.7.24-1.12.24-1.01 0-1.2-.62-1.2-.99 0-1.57 1.97-2.24 1.97-3.79 0-.37-.18-1.9-2.07-1.9H4.51c-.7 0-.88-.51-.98-.7-.04-.08-.11-.04-.08.02.05.13-.09.33-.09.72 0 .63.37 1 1.06 1 .31 0 .6-.08.7-.14.07-.04.1.02.07.06-.3.35-.32 1-.2 1.16q.05.05.08 0a1.7 1.7 0 0 1 1.62-1.3c1.03 0 1.02.88 1.02 1.1 0 1.25-2.21 2.18-2.21 3.9 0 1.77 1.85 2.14 2.93 1.86-.06 1.76-2.08 2.36-2.14 1.1q-.02-.1-.08 0c-.25.63-.15 1.18.63 1.35q.06.03-.02.08c-.78.5-.36 2.43-.32 3 .06.82-.76.72-.82.7q-.08-.02-.02.07c.58.71 1.3.06 1.3.06.54.17.2.63-.16.87q-.08.07.01.08c.08 0 .92.08 1.07-.59.37.44.92.28 1.03.22.16-.08.95-.36 1.02.52 0 .06.05.02.07-.01.6-.75-.04-1.2-.4-1.26a.6.6 0 0 1 .94.11q.04.08.06-.03c.05-.95-.72-1.03-1.22-.62-.02-.1-.19-.63.56-.61.02 0 .06-.03.02-.06-.58-.62-1.06-.06-1.18.07-.26.31-.9.19-.96.18.2-3.29 3.1-2.12 3.5-3.72.01-.08.05-.05.06-.02.1.39 1.1.44 1.27-.32q.02-.1-.03-.05c-.84.83-2.73-1.78-.15-3.91a3.74 3.74 0 0 1 4.92-.2c.04.26-.12.34-.22.37q-.05.03.01.07c.21.08.5.05.65-.14.47.33.07.74-.13.86q-.05.05.02.07c.43.08.79-.37.8-.62l.08.04v1.87c0 2.66 3.07 3.03 6.43 5.28 3.37-2.25 6.44-2.62 6.44-5.28v-1.87l.07-.04c.02.25.38.7.81.62q.07-.01.01-.07c-.19-.12-.6-.53-.12-.86.14.2.43.22.64.14q.08-.04.01-.07c-.1-.03-.25-.11-.21-.38.75-.6 2.72-1.6 4.92.2 2.57 2.14.68 4.75-.15 3.92q-.05-.04-.03.05c.18.76 1.16.7 1.27.32 0-.03.04-.06.06.02.4 1.6 3.3.43 3.5 3.72-.06 0-.7.13-.97-.18-.1-.13-.59-.7-1.17-.07-.04.03 0 .06.01.06.76-.02.59.51.57.61-.5-.41-1.27-.33-1.22.62q0 .1.06.03a.6.6 0 0 1 .93-.11c-.35.05-.99.51-.4 1.26.03.03.07.07.07 0 .08-.87.86-.59 1.03-.5.11.05.66.21 1.03-.23.15.67.98.6 1.06.6q.1-.02.01-.09c-.36-.24-.7-.7-.15-.87 0 0 .72.65 1.3-.06.05-.07.01-.08-.02-.07-.07.02-.89.12-.83-.7.04-.57.46-2.5-.31-3q-.1-.06-.02-.08c.78-.17.88-.72.63-1.34q-.07-.11-.09 0c-.06 1.25-2.07.65-2.13-1.1 1.07.27 2.93-.1 2.93-1.86 0-1.73-2.21-2.66-2.21-3.92 0-.2-.01-1.08 1.02-1.08.83 0 1.46.63 1.62 1.3 0 .02.05.03.07 0 .13-.17.1-.82-.2-1.17-.03-.04 0-.1.07-.06.1.06.4.15.7.15.7 0 1.06-.38 1.06-1.01 0-.4-.13-.59-.08-.72.03-.06-.05-.1-.08-.03-.1.2-.28.7-.99.7h-1.69c-1.89 0-2.06 1.54-2.06 1.91 0 1.55 1.97 2.22 1.97 3.8 0 .36-.19.98-1.2.98-.42 0-.87-.12-1.13-.23 0 0-.45-2.76-1.79-3.71 0 0-1.56.76-3.1-.08-1.19-.64-1.74-1.07-2.78-.35s-1.94 1.49-2.05 1.47l-.25-.05v-6.2c.48-.04.51.39.5.5-.04.15-.2.26.14.75q.05.04.06-.02c.02-.12.08-.33.25-.33s.9.55 1.52 1.18c0 0 .36-1.1 1.23-1.43-.5-.07-2.61-.59-2.61-1.51 0-.32-.35-.39-.58-.37-.01-.03-.36-.85-1-.42a.04.04 0 0 0 0 .08c.3.07.42.36.43.69-.62-.2-3.25-.93-6.38-.93-1.51 0-2.9.17-4.02.37v2.15h-.87zm-5.76 21.98c-.23-.1-.38-.24-.38-.55v-1.33c-.38-.13-1.43-.53-3.5-.53-1.74 0-2.28.39-2.3.53l-.47 2.53s.7-.64 3.21-.47c3.02.19 6.16 1.97 6.16.07v-1.12c-2.37 0-2.72.76-2.72.87m18.6-.87v1.12c0 1.9 3.12.12 6.14-.07 2.51-.17 3.21.47 3.21.47l-.46-2.53c-.02-.14-.56-.53-2.3-.53-2.07 0-3.12.4-3.5.53v1.33q-.02.43-.38.55c0-.11-.35-.87-2.72-.87m-7.95-1.15c4.87 0 9.81.26 10.46.99.05.06.07 0 .07-.05V81c0-.76-5.1-1.2-10.53-1.2s-10.52.44-10.52 1.2v2.57c0 .05.02.1.07.05.65-.73 5.59-.99 10.45-.99M20.7 70.47l-.49-.12-.04.06-.57-.25h.51q.07-.02.03-.06l-.44-.43.56.21q.06.01.04-.04l-.38-.55.55.37q.05.02.05-.03l-.27-.65.5.48q.05.02.05-.02l-.14-.65.37.54q.04.04.05-.01l.01-.6.24.55q.02.06.06-.01l.2-.46.01.62-.08.01-.1.74c.73-.17 1.65-1.43 2.35-1.43.84 0 1.14.98 2.68.49.4.57.53 1.08.68 1.77.6.56 1.43.37 1.43-.22 0-.8-.87-.95-.87-1.79 0-.37.26-.9.98-.9.37 0 .93.16 1.24.16.38 0 .46-.28.5-.39.04-.08.14-.06.13 0-.01.09.04.2.04.38 0 .52-.76.6-.86.53-.04-.03-.07.01-.04.03.12.1.09.41-.05.61q-.02.03-.04 0c-.08-.38-.53-.85-.92-.85-.14 0-.43.09-.43.42 0 .47.96.9.96 1.9 0 1.01-1.02 1.26-2.04 1 .04.97 1.48 1.55 1.52.86 0-.05.03-.02.04 0 .22.3.12.52-.16.63.26.12.3.62.38.93.1.45.59.2.61.19q.05-.02.03.03c-.19.47-.67.3-.67.3-.26.17.05.33.28.4q.06.01 0 .04c-.16.07-.53.18-.7-.12-.13.31-.4.3-.5.3-.2 0-.32.2-.27.45q0 .03-.03.01c-.45-.3-.2-.64-.01-.72-.03-.02-.34-.15-.47.2q-.01.06-.04.01c-.19-.51.23-.66.54-.53-.02-.08-.18-.33-.58-.25q-.03 0-.02-.03c.06-.15.26-.39.63-.15.18.11.5-.05.53-.07-.65-1.29-1.9-.2-2.18-1.22 0-.02-.03-.04-.05.02-.07.21-.62.23-.72-.2q0-.04.03-.01c.08.08.25.15.48-.18.15-.21.17-.5.17-.7 0-.78-.78-2.1-2-2.1-.78 0-1.6.3-2.22.75l.57.14a.9.9 0 0 1-1.12.77l.09-.66a1 1 0 0 0-.44.28l-.03-.01c-.1-.38.2-.57.3-.61q.03-.02 0-.02a.6.6 0 0 0-.48.26q-.01.02-.02 0c-.03-.07-.08-.26.05-.4m1.7 4.48c-.21.27-.4.01-.7.01-.27 0-.31.23-.32.32q0 .03-.02 0c-.3-.41.04-.64.24-.67-.03-.03-.33-.23-.53.04q-.02.02-.03 0c0-.53.4-.57.68-.34.05-.2-.08-.33-.3-.34q-.04 0-.02-.03.14-.14.27-.14c.29 0 .33.36.51.36.29 0 .69-.38.73-.42 0-.02-.28-.75-.23-1.2q0-.02-.02 0c-.13.07-.48.07-.48-.36q0-.06.03-.01c.15.2.4-.03.52-.17.13-.15.85-1.19 1.8-1.19.21 0 .48.12.7.27-.33.4 0 .78.24.74q.05 0 0 .03c-1.25.47-1.82.66-1.82 1.71 0 .55.2.86.52.79q.04 0 .01.02a.5.5 0 0 1-.36.19c-.27 0-.31-.15-.45-.15s-.62.28-.62.51q-.01.14.22.31v.02c-.1.02-.48.05-.56-.3m3.32-10.25c-.4-.03-.64.06-.63.19.19.2.44.18.63-.2m-1.45.97c.28-.07.58-.04.62-.03s.04.09-.01.1c-.58.07-.6.33-.98.33-.24 0-.5-.24-.4-.6q.02-.08.05 0c.04.15.27.32.72.2m-7.53 12.86c.38.5.75.03 1.26.03.24 0 .54.08.6.58q0 .04.05 0c.55-.76-.08-1.18-.44-1.23.08-.07.61-.4.96.08q.03.04.05-.01c0-.95-.71-1.02-1.23-.6-.1-.38.19-.62.55-.62q.06 0 .03-.06c-.64-.68-1.11.18-1.22.31-.25.34-1.16-.3-1.52-.67 0 0 .8-.84.8-1.61v-.14q0-.03.03-.02.12.08.3.08c.17 0 .52-.06.52-.71q0-.07-.04-.02-.16.19-.28.17c-.65 0-2-2.16-3.6-2.16-.42 0-1.2.3-1.6.73.19.11.22.35.2.52-.03.27-.24.4-.47.47q-.06.02 0 .06c.81.3 2.28.86 2.61 1.15.4.34.32.98.09 1.87-.22.85-.7.73-.87.7q-.03 0-.02.04c.21.26.47.35.68.35.42 0 .58-.26.8-.26.36 0 1.12.52 1.12.92 0 .22-.17.42-.4.57q-.01.02.01.03c.18.03.9.1 1.03-.55m17.63.55q.04 0 .01-.03c-.22-.15-.4-.35-.4-.57 0-.4.77-.92 1.13-.92.22 0 .38.26.8.26q.34.02.67-.35.02-.04-.02-.03c-.17.02-.64.14-.86-.71-.23-.89-.3-1.53.09-1.87.33-.3 1.8-.85 2.6-1.15q.07-.04 0-.06c-.22-.06-.44-.2-.47-.47-.02-.17.02-.4.21-.52a2.7 2.7 0 0 0-1.6-.73c-1.6 0-2.95 2.16-3.6 2.16q-.13.02-.28-.17-.04-.05-.04.02c0 .65.34.7.53.7q.16.01.3-.07.02-.01.02.02v.14c0 .77.8 1.6.8 1.6-.36.39-1.27 1.02-1.52.68-.11-.13-.59-.99-1.22-.3q-.04.04.03.05c.36 0 .64.24.54.61-.51-.41-1.22-.34-1.22.6q.01.06.05.02c.34-.48.88-.15.96-.08-.36.05-.99.47-.44 1.23q.03.04.05 0c.05-.5.36-.58.6-.58.5 0 .87.46 1.26-.03.14.64.85.58 1.02.55M21.45 66.61c-.05.07-.22 0-.28-.03h-.02c.04.1.2.37.45.37.1 0 .26-.07.3-.14l1.41.43q-.27.37-.31.85c-.38-.23-1.88-1.04-1.88-1.04l-.46.64c-.08.1-.45-.17-.37-.27l.35-.49c-.12-.12-.4-.05-.48-.02q-.02 0 0-.02c.04-.1.22-.4.66-.26 0-.27-.4-.18-.5-.15q-.03 0-.01-.02c.1-.12.43-.38.8-.16l.16-.22-.33-.34.2-.28.23.3 1.73-2.37c.05-.05.39-.15.52-.18.01.13.03.49-.02.55l-1.7 2.39.36.12-.2.27-.42-.2zm6.07-.39c0 .22.13.54.42.44q.03 0 .03.02c-.05.24-.48.46-.68.17-.17.37-.13.72.25.93q.03.01 0 .05a.5.5 0 0 1-.74-.19c-.31.24-.27.73-.08.9 0 0-.86.52-1.64.15-.52-.25-.94-.56-1.6-.51.09-.94.56-1.18 1.42-1.32.68-.1.77-.42.67-.66-.23-.07-.66.15-.66.15-.08-.13.04-.26.04-.26-.05-.06-.07-.23-.07-.23.48 0 .57-.1.57-.1.08-.5-.43-.56-.81-.29-.18-.16-.16-.37-.16-.37q-.08-.06-.08-.15c0-.11.57-.43.71-.47.04-.17.25-.4.85-.34.07-.16-.04-.75-.12-.9q-.02-.08.07-.05c.2.14.42.63.56.64 0 0 .68-.36.72-.34s.12.78.12.78c.1.11.62 0 .85.1q.08.06 0 .08c-.17.03-.72.26-.8.41.3.48.16 1.17.16 1.36\" fill=\"#fff\"/></svg>", E = a`<span class="top-navigation-bar__ribbon-at-top"></span>`;
|
|
510
|
+
function D(e) {
|
|
511
|
+
return a`
|
|
512
|
+
<div class="top-navigation-bar__wordmark">
|
|
513
|
+
<div class="top-navigation-bar__wordmark-spacer"></div>
|
|
514
|
+
<div class="top-navigation-bar__wordmark-content">
|
|
515
|
+
<p class="top-navigation-bar__wordmark-title">
|
|
516
|
+
${e.logoTitle}
|
|
517
|
+
</p>
|
|
518
|
+
${e.logoSubtitle ? a`
|
|
519
|
+
<p class="top-navigation-bar__wordmark-subtitle">
|
|
520
|
+
${e.logoSubtitle}
|
|
521
|
+
</p>
|
|
522
|
+
` : o}
|
|
523
|
+
${e.logoSupportingText1 ? a`
|
|
524
|
+
<p class="top-navigation-bar__wordmark-supporting-text">
|
|
525
|
+
${e.logoSupportingText1}
|
|
526
|
+
</p>
|
|
527
|
+
` : o}
|
|
528
|
+
${e.logoSupportingText2 ? a`
|
|
529
|
+
<p class="top-navigation-bar__wordmark-supporting-text">
|
|
530
|
+
${e.logoSupportingText2}
|
|
531
|
+
</p>
|
|
532
|
+
` : o}
|
|
533
|
+
</div>
|
|
534
|
+
</div>
|
|
535
|
+
`;
|
|
536
|
+
}
|
|
537
|
+
function O(t) {
|
|
538
|
+
let n = h(t.logoHref), r = h(t.websiteHref);
|
|
539
|
+
return a`
|
|
540
|
+
<div class="top-navigation-bar">
|
|
541
|
+
${t.noLogo ? o : a`<div class="top-navigation-bar__logo-bar">
|
|
542
|
+
${t.logoTitle && n ? a`
|
|
543
|
+
<a class="top-navigation-bar__logo-and-wordmark"
|
|
544
|
+
href="${n}"
|
|
545
|
+
>
|
|
546
|
+
<div class="top-navigation-bar__logo"
|
|
547
|
+
aria-hidden="true"
|
|
548
|
+
>
|
|
549
|
+
${E}
|
|
550
|
+
${e(T)}
|
|
551
|
+
</div>
|
|
552
|
+
${D(t)}
|
|
553
|
+
</a>
|
|
554
|
+
` : n ? a`
|
|
555
|
+
<a class="top-navigation-bar__logo"
|
|
556
|
+
href="${n}"
|
|
557
|
+
aria-label="${t._t("components.top-navigation-bar.logo-label")}"
|
|
558
|
+
>
|
|
559
|
+
${E}
|
|
560
|
+
<span aria-hidden="true">${e(T)}</span>
|
|
561
|
+
</a>
|
|
562
|
+
` : a`
|
|
563
|
+
<div class="top-navigation-bar__logo"
|
|
564
|
+
role="img"
|
|
565
|
+
aria-label="${t._t("components.top-navigation-bar.logo-label")}"
|
|
566
|
+
>
|
|
567
|
+
${E}
|
|
568
|
+
${e(T)}
|
|
569
|
+
</div>
|
|
570
|
+
${t.logoTitle ? D(t) : o}
|
|
571
|
+
`}
|
|
572
|
+
</div>`}
|
|
573
|
+
<div class="top-navigation-bar__main-bar">
|
|
574
|
+
${t.websiteTitle ? a`
|
|
575
|
+
<div class="top-navigation-bar__website-title-bar">
|
|
576
|
+
${r ? a`
|
|
577
|
+
<a class="top-navigation-bar__website-title"
|
|
578
|
+
href="${r}"
|
|
579
|
+
>
|
|
580
|
+
${t.websiteTitle}
|
|
581
|
+
</a>
|
|
582
|
+
` : a`
|
|
583
|
+
<span class="top-navigation-bar__website-title">
|
|
584
|
+
${t.websiteTitle}
|
|
585
|
+
</span>
|
|
586
|
+
`}
|
|
587
|
+
</div>
|
|
588
|
+
` : o}
|
|
589
|
+
<div class="top-navigation-bar__menu-bar">
|
|
590
|
+
<div class="top-navigation-bar__menu-bar-start">
|
|
591
|
+
${t._hasBackButton ? a`
|
|
592
|
+
<div class="top-navigation-bar__back-button">
|
|
593
|
+
<nldd-menu-bar-item
|
|
594
|
+
icon="chevron-left"
|
|
595
|
+
text="${t._backText}"
|
|
596
|
+
href=${t.backHref || o}
|
|
597
|
+
accessible-label="${t._backText}"
|
|
598
|
+
@click=${t._handleBackClick}
|
|
599
|
+
></nldd-menu-bar-item>
|
|
600
|
+
</div>
|
|
601
|
+
` : o}
|
|
602
|
+
<div class="top-navigation-bar__menu-button">
|
|
603
|
+
<nldd-menu-bar-item
|
|
604
|
+
icon="menu"
|
|
605
|
+
text="${t._menuText}"
|
|
606
|
+
haspopup="dialog"
|
|
607
|
+
@click=${t._onMenuButtonClick}
|
|
608
|
+
></nldd-menu-bar-item>
|
|
609
|
+
</div>
|
|
610
|
+
<div class="top-navigation-bar__global-menu-bar">
|
|
611
|
+
<slot
|
|
612
|
+
name="global"
|
|
613
|
+
@slotchange=${t._onGlobalSlotChange}
|
|
614
|
+
></slot>
|
|
615
|
+
</div>
|
|
616
|
+
</div>
|
|
617
|
+
<div class="top-navigation-bar__menu-bar-end">
|
|
618
|
+
<div class="top-navigation-bar__utility-menu-bar">
|
|
619
|
+
<slot
|
|
620
|
+
name="utility"
|
|
621
|
+
@slotchange=${t._onUtilitySlotChange}
|
|
622
|
+
></slot>
|
|
623
|
+
</div>
|
|
624
|
+
</div>
|
|
625
|
+
</div>
|
|
626
|
+
</div>
|
|
627
|
+
</div>
|
|
628
|
+
`;
|
|
629
|
+
}
|
|
630
|
+
// src/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.ts
|
|
631
|
+
var k = class {
|
|
632
|
+
constructor(e) {
|
|
633
|
+
this._host = e, this.list = null, this.titleBar = null, this.title = null, this._sheet = null, this._page = null, this._stack = [], this._back = () => {
|
|
634
|
+
if (this._stack.length <= 1) return;
|
|
635
|
+
let e = this._stack[this._stack.length - 1].title;
|
|
636
|
+
this._stack.pop(), this._render(!0, e);
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
get _menuText() {
|
|
640
|
+
return this._host._t("components.top-navigation-bar.menu-action");
|
|
641
|
+
}
|
|
642
|
+
async open(e) {
|
|
643
|
+
if (!this._sheet) {
|
|
644
|
+
try {
|
|
645
|
+
await j();
|
|
646
|
+
} catch (e) {
|
|
647
|
+
import.meta.env?.DEV && console.error("nldd-top-navigation-bar: failed to load menu sheet dependencies", e);
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
if (!this._host.isConnected || this._sheet) return;
|
|
651
|
+
this._sheet = this._create(), this._sheet.addEventListener("open", () => {
|
|
652
|
+
e && (e.expanded = !0);
|
|
653
|
+
}), this._sheet.addEventListener("close", () => {
|
|
654
|
+
e && (e.expanded = !1);
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
this._stack = [{
|
|
658
|
+
title: this._menuText,
|
|
659
|
+
container: this._host._globalMenuBar
|
|
660
|
+
}], this._render(), m(this._sheet, this._host), requestAnimationFrame(() => this._sheet?.show());
|
|
661
|
+
}
|
|
662
|
+
applyTexts() {
|
|
663
|
+
this._sheet?.setAttribute("accessible-label", this._menuText), this.titleBar?.setAttribute("dismiss-text", this._host._t("components.top-navigation-bar.menu-sheet-dismiss-action")), this._stack.length > 0 && (this._stack[0].title = this._menuText, this._render());
|
|
664
|
+
}
|
|
665
|
+
remove() {
|
|
666
|
+
this._sheet?.remove(), this._sheet = null, this.list = null, this.titleBar = null, this.title = null, this._page = null, this._stack = [];
|
|
667
|
+
}
|
|
668
|
+
_create() {
|
|
669
|
+
let e = document.createElement("nldd-sheet");
|
|
670
|
+
e.setAttribute("placement", "left"), e.setAttribute("accessible-label", this._menuText);
|
|
671
|
+
let t = document.createElement("nldd-page");
|
|
672
|
+
t.setAttribute("sticky-header", "");
|
|
673
|
+
let n = document.createElement("nldd-top-title-bar");
|
|
674
|
+
n.setAttribute("slot", "header"), n.setAttribute("dismiss-text", this._host._t("components.top-navigation-bar.menu-sheet-dismiss-action")), n.addEventListener("back", this._back), this.titleBar = n, t.appendChild(n);
|
|
675
|
+
let r = document.createElement("nldd-title");
|
|
676
|
+
r.id = `nldd-menu-sheet-title-${++A}`, r.setAttribute("slot", "header"), r.setAttribute("size", "2"), n.setAttribute("collapse-anchor", r.id), this.title = r;
|
|
677
|
+
let i = document.createElement("nldd-simple-section");
|
|
678
|
+
i.appendChild(r);
|
|
679
|
+
let a = document.createElement("nldd-list");
|
|
680
|
+
return a.setAttribute("type", "navigation"), a.setAttribute("appearance", "simple"), a.setAttribute("dividers", "never"), this.list = a, i.appendChild(a), t.appendChild(i), this._page = t, e.appendChild(t), document.body.appendChild(e), e;
|
|
681
|
+
}
|
|
682
|
+
_render(e = !1, t) {
|
|
683
|
+
let { list: n, titleBar: r, title: i } = this;
|
|
684
|
+
if (!n || !r || !i || this._stack.length === 0) return;
|
|
685
|
+
let a = this._stack.length, o = this._stack[a - 1];
|
|
686
|
+
n.setAttribute("aria-label", this._host._globalMenuBar?.getAttribute("accessible-label") || this._host._t("components.top-navigation-bar.global-menu-bar-label")), r.setAttribute("text", o.title), i.setAttribute("text", o.title);
|
|
687
|
+
let s = this._page?.scrollTarget;
|
|
688
|
+
s && s !== document.scrollingElement && (s.scrollTop = 0), a > 1 ? r.setAttribute("back-text", this._stack[a - 2].title) : r.removeAttribute("back-text"), n.replaceChildren();
|
|
689
|
+
let c = null;
|
|
690
|
+
for (let e of M(o.container)) {
|
|
691
|
+
let r = document.createElement("nldd-list-item"), i = document.createElement("nldd-text-cell");
|
|
692
|
+
if (i.setAttribute("text", e.text), r.appendChild(i), e.submenu) {
|
|
693
|
+
r.setAttribute("button", "");
|
|
694
|
+
let t = document.createElement("nldd-icon-cell");
|
|
695
|
+
t.setAttribute("icon", "chevron-right-small"), r.appendChild(t);
|
|
696
|
+
let { text: n, submenu: i } = e;
|
|
697
|
+
r.addEventListener("click", () => {
|
|
698
|
+
this._stack.push({
|
|
699
|
+
title: n,
|
|
700
|
+
container: i
|
|
701
|
+
}), this._render(!0);
|
|
702
|
+
});
|
|
703
|
+
} else if (e.href) r.setAttribute("href", e.href), r.addEventListener("click", () => this._sheet?.hide());
|
|
704
|
+
else {
|
|
705
|
+
r.setAttribute("button", "");
|
|
706
|
+
let { activate: t } = e;
|
|
707
|
+
r.addEventListener("click", () => {
|
|
708
|
+
t(), this._sheet?.hide();
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
e.selected && r.setAttribute("selected", ""), e.currentType && r.setAttribute("current-type", e.currentType), t !== void 0 && e.text === t && (c = r), n.appendChild(r);
|
|
712
|
+
}
|
|
713
|
+
e && requestAnimationFrame(() => {
|
|
714
|
+
(c ?? n.querySelector("nldd-list-item"))?.focus();
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
}, A = 0;
|
|
718
|
+
async function j() {
|
|
719
|
+
await Promise.all([
|
|
720
|
+
import("./sheet-BdVCqm2H.js"),
|
|
721
|
+
import("./page-CBf_Decp.js").then((e) => e.t),
|
|
722
|
+
import("./simple-section-qrCqXeBa.js"),
|
|
723
|
+
import("./top-title-bar-iNFB2zQL.js").then((e) => e.t),
|
|
724
|
+
import("./title-BuT7tWqN.js"),
|
|
725
|
+
import("./list-CaWl3q0Z.js").then((e) => e.t),
|
|
726
|
+
import("./list-item-Cagnf6eG.js").then((e) => e.t),
|
|
727
|
+
import("./text-cell-BkEsGI3g.js").then((e) => e.t),
|
|
728
|
+
import("./icon-cell-rk4NQid2.js").then((e) => e.t),
|
|
729
|
+
import("./icon-BORlalt0.js").then((e) => e.t)
|
|
730
|
+
]);
|
|
731
|
+
}
|
|
732
|
+
function M(e) {
|
|
733
|
+
return e ? e.tagName === "NLDD-MENU-BAR" ? Array.from(e.querySelectorAll(":scope > nldd-menu-bar-item")).map((e) => ({
|
|
734
|
+
text: e.text,
|
|
735
|
+
href: h(e.href) ?? "",
|
|
736
|
+
selected: e.current,
|
|
737
|
+
currentType: e.currentType,
|
|
738
|
+
submenu: e.querySelector(":scope > nldd-menu"),
|
|
739
|
+
activate: () => e.click()
|
|
740
|
+
})) : Array.from(e.querySelectorAll(":scope > nldd-menu-item, :scope > nldd-menu-group > nldd-menu-item")).map((e) => ({
|
|
741
|
+
text: e.text || e.getAttribute("text") || "",
|
|
742
|
+
href: h(e.href || "") ?? "",
|
|
743
|
+
selected: e.hasAttribute("selected"),
|
|
744
|
+
submenu: e.querySelector(":scope > nldd-menu"),
|
|
745
|
+
activate: () => e.dispatchEvent(new CustomEvent("select", {
|
|
746
|
+
bubbles: !0,
|
|
747
|
+
composed: !0
|
|
748
|
+
}))
|
|
749
|
+
})) : [];
|
|
750
|
+
}
|
|
751
|
+
// src/components/navigation/top-navigation-bar/top-navigation-bar.ts
|
|
752
|
+
var N;
|
|
753
|
+
function P(e) {
|
|
754
|
+
let t = document.createElement("a");
|
|
755
|
+
return t.href = e, t.href;
|
|
756
|
+
}
|
|
757
|
+
var F = (N = class extends p(i, y) {
|
|
758
|
+
constructor(...e) {
|
|
759
|
+
super(...e), this.websiteTitle = "", this.noLogo = !1, this.width = "", this.logoTitle = "", this.logoSubtitle = "", this.logoSupportingText1 = "", this.logoSupportingText2 = "", this.logoHref = "", this.websiteHref = "", this.backHref = "", this.backText = "", this._menuSheet = new k(this), this._resizeObserver = null, this._compactRAF = null, this._setupRAF = null, this._appliedMenuBarLabels = /* @__PURE__ */ new WeakMap(), this._appliedTexts = null, this._syncLogoOffset = () => {
|
|
760
|
+
if (window.scrollY > 0) return;
|
|
761
|
+
let e = this.shadowRoot?.querySelector(".top-navigation-bar__logo");
|
|
762
|
+
if (!e) return;
|
|
763
|
+
let t = e.getBoundingClientRect(), n = Math.max(0, Math.round(t.top + window.scrollY));
|
|
764
|
+
this.style.setProperty("--_top-navigation-bar-logo-offset", `${n}px`);
|
|
765
|
+
let r = [...document.querySelectorAll("nldd-status-bar")].some((e) => {
|
|
766
|
+
let n = e.getBoundingClientRect();
|
|
767
|
+
return n.height > 0 && n.bottom <= t.top + 1 && n.left < t.right && n.right > t.left;
|
|
768
|
+
});
|
|
769
|
+
this.toggleAttribute("data-under-status-bar", r);
|
|
770
|
+
}, this._handleItemSelect = (e) => {
|
|
771
|
+
let t = e.detail;
|
|
772
|
+
if (!t?.item) return;
|
|
773
|
+
let n = this._getSlottedItems(this._globalSlot);
|
|
774
|
+
if (!n.includes(t.item)) return;
|
|
775
|
+
let r = new CustomEvent("itemselect", {
|
|
776
|
+
bubbles: !0,
|
|
777
|
+
composed: !0,
|
|
778
|
+
cancelable: !0,
|
|
779
|
+
detail: t
|
|
780
|
+
});
|
|
781
|
+
this.dispatchEvent(r), r.defaultPrevented || (t.item.current = !0, n.forEach((e) => {
|
|
782
|
+
e !== t.item && (e.current = !1);
|
|
783
|
+
}));
|
|
784
|
+
}, this._onGlobalSlotChange = () => {
|
|
785
|
+
this._syncHasGlobalItems(), this._syncSlottedMenuBarLabels(), this._syncCompactAttribute();
|
|
786
|
+
}, this._onUtilitySlotChange = () => {
|
|
787
|
+
this._syncSlottedMenuBarLabels(), this._syncCompactAttribute();
|
|
788
|
+
}, this._scheduleCompactUpdate = () => {
|
|
789
|
+
this._compactRAF && cancelAnimationFrame(this._compactRAF), this._compactRAF = requestAnimationFrame(() => {
|
|
790
|
+
this._syncCompactAttribute();
|
|
791
|
+
});
|
|
792
|
+
}, this._onMenuButtonClick = () => this._menuSheet.open(this._menuButton?.querySelector("nldd-menu-bar-item") ?? null), this._handleBackClick = (e) => {
|
|
793
|
+
this.backHref || (e.preventDefault(), this.dispatchEvent(new CustomEvent("back-click", {
|
|
794
|
+
bubbles: !0,
|
|
795
|
+
composed: !0
|
|
796
|
+
})));
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
_translatedTexts() {
|
|
800
|
+
return [
|
|
801
|
+
this._menuText,
|
|
802
|
+
this._t("components.top-navigation-bar.menu-sheet-dismiss-action"),
|
|
803
|
+
this._t("components.top-navigation-bar.global-menu-bar-label"),
|
|
804
|
+
this._t("components.top-navigation-bar.utility-menu-bar-label")
|
|
805
|
+
].join("\n");
|
|
806
|
+
}
|
|
807
|
+
willUpdate(e) {
|
|
808
|
+
super.willUpdate(e), import.meta.env?.DEV && d(this, "same-href", !!this.logoHref && !!this.websiteHref && P(this.logoHref) === P(this.websiteHref));
|
|
809
|
+
let t = this._translatedTexts();
|
|
810
|
+
if (t !== this._appliedTexts && (this._appliedTexts = t, this._menuSheet.applyTexts(), this._syncSlottedMenuBarLabels()), e.has("width")) {
|
|
811
|
+
let e = this.width;
|
|
812
|
+
e && e !== "full" && CSS.supports("max-width", e) ? this.style.setProperty("--_top-navigation-bar-max-width", e) : this.style.removeProperty("--_top-navigation-bar-max-width");
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
_getSlottedMenuBar(e) {
|
|
816
|
+
return (e?.assignedElements({ flatten: !0 }) ?? []).find((e) => e.tagName === "NLDD-MENU-BAR") ?? null;
|
|
817
|
+
}
|
|
818
|
+
get _globalMenuBar() {
|
|
819
|
+
return this._getSlottedMenuBar(this._globalSlot);
|
|
820
|
+
}
|
|
821
|
+
_getSlottedItems(e) {
|
|
822
|
+
let t = this._getSlottedMenuBar(e);
|
|
823
|
+
return t ? Array.from(t.querySelectorAll(":scope > nldd-menu-bar-item")) : [];
|
|
824
|
+
}
|
|
825
|
+
_syncSlottedMenuBarLabels() {
|
|
826
|
+
let e = (e, t) => {
|
|
827
|
+
if (!e) return;
|
|
828
|
+
let n = e.getAttribute("accessible-label"), r = this._appliedMenuBarLabels.get(e);
|
|
829
|
+
if (n !== null && n !== r) {
|
|
830
|
+
this._appliedMenuBarLabels.delete(e);
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
let i = this._t(t);
|
|
834
|
+
e.setAttribute("accessible-label", i), this._appliedMenuBarLabels.set(e, i);
|
|
835
|
+
};
|
|
836
|
+
e(this._getSlottedMenuBar(this._globalSlot), "components.top-navigation-bar.global-menu-bar-label"), e(this._getSlottedMenuBar(this._utilitySlot), "components.top-navigation-bar.utility-menu-bar-label");
|
|
837
|
+
}
|
|
838
|
+
get _hasBackButton() {
|
|
839
|
+
return !!(this.backHref || this.backText);
|
|
840
|
+
}
|
|
841
|
+
get _backText() {
|
|
842
|
+
return this.backText || this._t("components.top-navigation-bar.back-action");
|
|
843
|
+
}
|
|
844
|
+
get _menuText() {
|
|
845
|
+
return this._t("components.top-navigation-bar.menu-action");
|
|
846
|
+
}
|
|
847
|
+
connectedCallback() {
|
|
848
|
+
super.connectedCallback(), this.addEventListener("select", this._handleItemSelect), window.addEventListener("scroll", this._syncLogoOffset, { passive: !0 }), window.addEventListener("resize", this._syncLogoOffset, { passive: !0 }), window.addEventListener(v, this._syncLogoOffset), this._setupCompactDetection();
|
|
849
|
+
}
|
|
850
|
+
disconnectedCallback() {
|
|
851
|
+
super.disconnectedCallback(), this.removeEventListener("select", this._handleItemSelect), window.removeEventListener("scroll", this._syncLogoOffset), window.removeEventListener("resize", this._syncLogoOffset), window.removeEventListener(v, this._syncLogoOffset), this._cleanupCompactDetection(), this._menuSheet.remove();
|
|
852
|
+
}
|
|
853
|
+
firstUpdated() {
|
|
854
|
+
this._syncHasGlobalItems(), this._syncLogoOffset();
|
|
855
|
+
}
|
|
856
|
+
_setupCompactDetection() {
|
|
857
|
+
this._cleanupCompactDetection(), this._setupRAF = requestAnimationFrame(() => {
|
|
858
|
+
this._setupRAF = null, this.isConnected && (this._resizeObserver = new ResizeObserver(() => {
|
|
859
|
+
this._scheduleCompactUpdate();
|
|
860
|
+
}), this._resizeObserver.observe(this), this._scheduleCompactUpdate());
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
_cleanupCompactDetection() {
|
|
864
|
+
this._setupRAF && (cancelAnimationFrame(this._setupRAF), this._setupRAF = null), this._compactRAF && (cancelAnimationFrame(this._compactRAF), this._compactRAF = null), this._resizeObserver && (this._resizeObserver.disconnect(), this._resizeObserver = null);
|
|
865
|
+
}
|
|
866
|
+
_syncHasGlobalItems() {
|
|
867
|
+
this.classList.toggle("has-global-items", this._getSlottedItems(this._globalSlot).length > 0);
|
|
868
|
+
}
|
|
869
|
+
_syncCompactAttribute() {
|
|
870
|
+
let e = this._isSmBreakpoint(), t = [this._getSlottedMenuBar(this._globalSlot), this._getSlottedMenuBar(this._utilitySlot)].filter((e) => e !== null);
|
|
871
|
+
for (let n of t) n.toggleAttribute("compact", e), n.requestOverflowUpdate();
|
|
872
|
+
let n = this.shadowRoot?.querySelectorAll("nldd-menu-bar-item") ?? [];
|
|
873
|
+
for (let t of n) t.toggleAttribute("compact", e);
|
|
874
|
+
this._syncHasGlobalItems();
|
|
875
|
+
}
|
|
876
|
+
_isSmBreakpoint() {
|
|
877
|
+
let e = this.shadowRoot?.querySelector(".top-navigation-bar");
|
|
878
|
+
return e ? e.clientWidth <= _("smMax") : !1;
|
|
879
|
+
}
|
|
880
|
+
render() {
|
|
881
|
+
return O(this);
|
|
882
|
+
}
|
|
883
|
+
}, N.styles = w, N);
|
|
884
|
+
s([r({
|
|
885
|
+
reflect: !0,
|
|
886
|
+
attribute: "website-title",
|
|
887
|
+
converter: u("")
|
|
888
|
+
})], F.prototype, "websiteTitle", void 0), s([r({
|
|
889
|
+
type: Boolean,
|
|
890
|
+
attribute: "no-logo",
|
|
891
|
+
reflect: !0
|
|
892
|
+
})], F.prototype, "noLogo", void 0), s([r({
|
|
893
|
+
reflect: !0,
|
|
894
|
+
converter: u("")
|
|
895
|
+
})], F.prototype, "width", void 0), s([r({
|
|
896
|
+
reflect: !0,
|
|
897
|
+
attribute: "logo-title",
|
|
898
|
+
converter: u("")
|
|
899
|
+
})], F.prototype, "logoTitle", void 0), s([r({
|
|
900
|
+
reflect: !0,
|
|
901
|
+
attribute: "logo-subtitle",
|
|
902
|
+
converter: u("")
|
|
903
|
+
})], F.prototype, "logoSubtitle", void 0), s([r({
|
|
904
|
+
reflect: !0,
|
|
905
|
+
attribute: "logo-supporting-text-1",
|
|
906
|
+
converter: u("")
|
|
907
|
+
})], F.prototype, "logoSupportingText1", void 0), s([r({
|
|
908
|
+
reflect: !0,
|
|
909
|
+
attribute: "logo-supporting-text-2",
|
|
910
|
+
converter: u("")
|
|
911
|
+
})], F.prototype, "logoSupportingText2", void 0), s([r({
|
|
912
|
+
type: String,
|
|
913
|
+
attribute: "logo-href"
|
|
914
|
+
})], F.prototype, "logoHref", void 0), s([r({
|
|
915
|
+
type: String,
|
|
916
|
+
attribute: "website-href"
|
|
917
|
+
})], F.prototype, "websiteHref", void 0), s([r({
|
|
918
|
+
type: String,
|
|
919
|
+
attribute: "back-href"
|
|
920
|
+
})], F.prototype, "backHref", void 0), s([r({
|
|
921
|
+
reflect: !0,
|
|
922
|
+
attribute: "back-text",
|
|
923
|
+
converter: u("")
|
|
924
|
+
})], F.prototype, "backText", void 0), s([l(".top-navigation-bar__menu-button")], F.prototype, "_menuButton", void 0), s([l("slot[name=\"global\"]")], F.prototype, "_globalSlot", void 0), s([l("slot[name=\"utility\"]")], F.prototype, "_utilitySlot", void 0), F = s([c("nldd-top-navigation-bar")], F);
|
|
925
|
+
export { F as NLDDTopNavigationBar };
|