@swisspost/internet-header 10.3.0 → 10.5.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/dist/cjs/{breakpoints-CI0Xuh1L.js → breakpoints-Kruvy8Dm.js} +11 -10
- package/dist/cjs/{event-from-CwMw19f8.js → event-from-CTcQxB9-.js} +19 -13
- package/dist/cjs/index-B5ypPkK3.js +4 -4
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-uiAqYqcY.js → package-DdU-rENe.js} +1 -1
- package/dist/cjs/{package-Bk3UBVSc.js → package-pLOjVG24.js} +1 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/post-autocomplete.cjs.entry.js +65 -50
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +20 -8
- package/dist/cjs/post-banner.cjs.entry.js +2 -9
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +11 -3
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +111 -60
- package/dist/cjs/post-closebutton.cjs.entry.js +47 -9
- package/dist/cjs/post-date-picker.cjs.entry.js +33 -10
- package/dist/cjs/post-footer.cjs.entry.js +9 -7
- package/dist/cjs/post-header.cjs.entry.js +6 -6
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/post-language-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu.cjs.entry.js +5 -4
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox.cjs.entry.js +4 -4
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +3 -3
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +4 -4
- package/dist/cjs/post-megadropdown.cjs.entry.js +4 -5
- package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-menu_2.cjs.entry.js +26 -11
- package/dist/cjs/post-number-input.cjs.entry.js +4 -4
- package/dist/cjs/post-pagination.cjs.entry.js +2 -2
- package/dist/cjs/post-popover-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-popovercontainer.cjs.entry.js +317 -176
- package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-side-navigation.cjs.entry.js +14 -6
- package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/components/breakpoints.js +1 -1
- package/dist/components/event-from.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/package2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer2.js +1 -1
- package/dist/components/post-header2.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu2.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-mainnavigation2.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/{breakpoints-C3jWktf-.js → breakpoints-I1j7a0bW.js} +11 -10
- package/dist/esm/{event-from-rEfV4v4a.js → event-from-BEcxHjuM.js} +19 -14
- package/dist/esm/index-h3opCZqH.js +4 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-Dheuk3S-.js → package-CWWSnot0.js} +1 -1
- package/dist/esm/{package-D9jUbrFT.js → package-Ny5VnydI.js} +1 -1
- package/dist/esm/post-accordion_4.entry.js +4 -4
- package/dist/esm/post-autocomplete.entry.js +65 -50
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +20 -8
- package/dist/esm/post-banner.entry.js +2 -9
- package/dist/esm/post-breadcrumb-item.entry.js +11 -3
- package/dist/esm/post-breadcrumbs.entry.js +111 -60
- package/dist/esm/post-closebutton.entry.js +47 -9
- package/dist/esm/post-date-picker.entry.js +33 -10
- package/dist/esm/post-footer.entry.js +9 -7
- package/dist/esm/post-header.entry.js +6 -6
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/post-language-menu-item.entry.js +1 -1
- package/dist/esm/post-language-menu.entry.js +6 -5
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-listbox-option.entry.js +3 -3
- package/dist/esm/post-listbox.entry.js +4 -4
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +3 -3
- package/dist/esm/post-megadropdown-trigger.entry.js +4 -4
- package/dist/esm/post-megadropdown.entry.js +4 -5
- package/dist/esm/post-menu-item.entry.js +2 -2
- package/dist/esm/post-menu_2.entry.js +26 -11
- package/dist/esm/post-number-input.entry.js +4 -4
- package/dist/esm/post-pagination.entry.js +2 -2
- package/dist/esm/post-popover-trigger.entry.js +3 -3
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-popovercontainer.entry.js +317 -176
- package/dist/esm/post-progressbar.entry.js +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-side-navigation-trigger.entry.js +3 -3
- package/dist/esm/post-side-navigation.entry.js +14 -6
- package/dist/esm/post-stepper-item.entry.js +2 -2
- package/dist/esm/post-stepper.entry.js +2 -2
- package/dist/esm/post-tab-item.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-togglebutton.entry.js +2 -2
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/esm/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +1 -1
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/breakpoints-I1j7a0bW.js +1 -0
- package/dist/esm-es5/event-from-BEcxHjuM.js +1 -0
- package/dist/esm-es5/index-h3opCZqH.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{package-Dheuk3S-.js → package-CWWSnot0.js} +1 -1
- package/dist/esm-es5/package-Ny5VnydI.js +1 -0
- package/dist/esm-es5/post-accordion_4.entry.js +1 -1
- package/dist/esm-es5/post-autocomplete.entry.js +1 -1
- package/dist/esm-es5/post-avatar.entry.js +1 -1
- package/dist/esm-es5/post-back-to-top.entry.js +1 -1
- package/dist/esm-es5/post-banner.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
- package/dist/esm-es5/post-closebutton.entry.js +1 -1
- package/dist/esm-es5/post-date-picker.entry.js +1 -1
- package/dist/esm-es5/post-footer.entry.js +1 -1
- package/dist/esm-es5/post-header.entry.js +1 -1
- package/dist/esm-es5/post-icon.entry.js +1 -1
- package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-language-menu.entry.js +1 -1
- package/dist/esm-es5/post-linkarea.entry.js +1 -1
- package/dist/esm-es5/post-listbox-option.entry.js +1 -1
- package/dist/esm-es5/post-listbox.entry.js +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown.entry.js +1 -1
- package/dist/esm-es5/post-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-menu_2.entry.js +1 -1
- package/dist/esm-es5/post-number-input.entry.js +1 -1
- package/dist/esm-es5/post-pagination.entry.js +1 -1
- package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
- package/dist/esm-es5/post-popover.entry.js +1 -1
- package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
- package/dist/esm-es5/post-progressbar.entry.js +1 -1
- package/dist/esm-es5/post-rating.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation.entry.js +1 -1
- package/dist/esm-es5/post-stepper-item.entry.js +1 -1
- package/dist/esm-es5/post-stepper.entry.js +1 -1
- package/dist/esm-es5/post-tab-item.entry.js +1 -1
- package/dist/esm-es5/post-tab-panel.entry.js +1 -1
- package/dist/esm-es5/post-tabs.entry.js +1 -1
- package/dist/esm-es5/post-togglebutton.entry.js +1 -1
- package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
- package/dist/esm-es5/post-tooltip.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-ff4b3e95.entry.js → p-004c6278.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-b67b88ee.system.entry.js → p-03a80973.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9119d1d2.entry.js → p-04651cdc.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-06eb086c.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-08a6f709.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-097214a3.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-26f99143.entry.js → p-138f2186.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-13bae547.system.entry.js → p-14a5b926.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dbe1d696.entry.js → p-1501e9e0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1ad88e06.entry.js → p-15613920.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-159e96f4.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-1c33394a.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-4615095e.system.entry.js → p-204aaba4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0fdc3e18.system.entry.js → p-250ff1e6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-2e23353c.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f5bc81a7.entry.js → p-2e4a1d59.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-30b56aa5.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-8a3118d3.entry.js → p-38159567.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3b8bc9bf.entry.js +1 -0
- package/dist/swisspost-internet-header/p-3dfdd503.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-5937df91.system.entry.js → p-3f3e5828.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3f704fa4.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-0a1276dc.entry.js → p-40ee5200.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-436a661f.entry.js +1 -0
- package/dist/swisspost-internet-header/p-4e883523.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-51c3d47f.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-58318d31.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fcf9da41.system.entry.js → p-5e98bd48.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9482fbdf.system.entry.js → p-638891f4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-6d4d21b7.entry.js +1 -0
- package/dist/swisspost-internet-header/p-6d67cc9d.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a5c32bd3.entry.js → p-6dea21a2.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-7204ff05.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e053e1b5.system.entry.js → p-735effe5.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-770cac8f.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-7f223aac.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-81985723.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-9bead48d.system.entry.js → p-83549cef.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-85d6fa3b.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-0a3325bd.system.entry.js → p-8978be6a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9dbc65e6.system.entry.js → p-8afbbdf6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-8c11a307.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-ea3a2c74.system.entry.js → p-8e81fedf.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-56b1fbff.system.entry.js → p-93653f6e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-BEcxHjuM.js +1 -0
- package/dist/swisspost-internet-header/{p-CUgd8XDw.system.js → p-Bkt75U1-.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-B86vJMfc.js → p-C3HusDuA.js} +1 -1
- package/dist/swisspost-internet-header/{p-B2xXTEH5.system.js → p-CYCx3cRc.system.js} +1 -1
- package/dist/swisspost-internet-header/p-D1A3ltXC.system.js +1 -0
- package/dist/swisspost-internet-header/p-I1j7a0bW.js +1 -0
- package/dist/swisspost-internet-header/{p-CVe9fdUw.system.js → p-MZb_boDk.system.js} +1 -1
- package/dist/swisspost-internet-header/p-Ny5VnydI.js +1 -0
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/p-a1476fe8.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a3640c54.entry.js → p-a1a640e5.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-a24350c6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-77075637.system.entry.js → p-a3f0cee6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-10dbaad3.entry.js → p-a5b1c8b5.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-a6db4d60.entry.js +1 -0
- package/dist/swisspost-internet-header/p-aaa51210.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-b266f922.entry.js → p-b1d25e1d.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-b62df652.entry.js +1 -0
- package/dist/swisspost-internet-header/p-badd758a.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-5c73925e.entry.js → p-bb7fe5c4.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-32d8756e.entry.js → p-c0cd2db1.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-c275ce9f.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-c5a114a3.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-c96d1aeb.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-cb0bcdf7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-091d408b.system.entry.js → p-cc0d4d02.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-d6f0b224.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-b6f7469f.system.entry.js → p-d90947de.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f917f79a.system.entry.js → p-d96cbabb.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-abd1654a.entry.js → p-dbb7038b.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ce5265e7.system.entry.js → p-dcee68ed.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-dd20bb2e.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-7a4d48c8.entry.js → p-ddbbc505.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-deadf1bf.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-26e94f0f.entry.js → p-e008aab0.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-e02d5b07.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-b9e4f3a1.entry.js → p-e0563b59.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-e5171236.entry.js +1 -0
- package/dist/swisspost-internet-header/p-e6c60488.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-941c9d63.entry.js → p-e9569ed9.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fc839150.entry.js → p-eb0b4ff8.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-701461bc.system.entry.js → p-ee42c33b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-522b6a34.system.entry.js → p-f04924d8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-f54a41d5.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-e4b30e68.system.entry.js → p-f8cb3ed7.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2affed30.entry.js → p-fa10409f.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-fb4b0989.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-15564bd8.entry.js → p-fddbd731.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-fec7c3c1.entry.js +1 -0
- package/dist/swisspost-internet-header/p-iSGRM5O1.system.js +1 -0
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/package.json +4 -4
- package/dist/esm-es5/breakpoints-C3jWktf-.js +0 -1
- package/dist/esm-es5/event-from-rEfV4v4a.js +0 -1
- package/dist/esm-es5/package-D9jUbrFT.js +0 -1
- package/dist/swisspost-internet-header/p-043b0295.entry.js +0 -1
- package/dist/swisspost-internet-header/p-0708d2ae.entry.js +0 -1
- package/dist/swisspost-internet-header/p-0e3b3739.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-145e9419.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2069109d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-20ded6e8.entry.js +0 -1
- package/dist/swisspost-internet-header/p-27b2a48e.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2bbec1fa.entry.js +0 -1
- package/dist/swisspost-internet-header/p-31b363d3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-324bb578.entry.js +0 -1
- package/dist/swisspost-internet-header/p-324f6a1d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-38b3e48b.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3b5b5f43.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3ce5350e.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3e0d2f8e.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3fb06291.entry.js +0 -1
- package/dist/swisspost-internet-header/p-468c06f1.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-48b9d8af.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-51c1b282.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-53627d54.entry.js +0 -1
- package/dist/swisspost-internet-header/p-62e15c37.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6dd426a3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6df1fef1.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-715fd00a.entry.js +0 -1
- package/dist/swisspost-internet-header/p-77955468.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7e85acba.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-89dbe69c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8aec6b71.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8f560878.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-9510033c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-C1pxTt7y.system.js +0 -1
- package/dist/swisspost-internet-header/p-CGtndO2e.system.js +0 -1
- package/dist/swisspost-internet-header/p-Ck6UMUSA.js +0 -1
- package/dist/swisspost-internet-header/p-D9jUbrFT.js +0 -1
- package/dist/swisspost-internet-header/p-a2b590f1.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a79db979.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b98bd035.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ba60d0f6.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c792d22e.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ce4549eb.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d102dd8f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d586b0b6.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e711377e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e9c6db2d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fde0e9e3.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-rEfV4v4a.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-h3opCZqH.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-Ny5VnydI.js';
|
|
3
3
|
import { d as debounce } from './debounce-C9hMpmsD.js';
|
|
4
4
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
5
5
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
@@ -28,37 +28,24 @@ const PostAutocomplete = class {
|
|
|
28
28
|
this.filterThreshold = 0;
|
|
29
29
|
/** Show or hide the clear button */
|
|
30
30
|
this.clearable = false;
|
|
31
|
-
|
|
32
|
-
this.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
/** Whether the listbox is currently expanded */
|
|
32
|
+
this.expanded = false;
|
|
33
|
+
/** The value of the last run query */
|
|
34
|
+
this.lastQuery = '';
|
|
35
|
+
/** The value of the selected listbox option */
|
|
36
|
+
this.selectedValue = null;
|
|
37
|
+
this.handleClick = async () => {
|
|
38
|
+
await this.runQuery('', true);
|
|
38
39
|
};
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.listBoxElement.filter('');
|
|
40
|
+
this.handleBlur = () => {
|
|
41
|
+
this.restoreSelectedValue();
|
|
42
42
|
this.hideListBox();
|
|
43
43
|
};
|
|
44
44
|
this.handleInput = async (event) => {
|
|
45
45
|
if (!this.listBoxElement)
|
|
46
46
|
return;
|
|
47
47
|
const value = event.target.value.trim();
|
|
48
|
-
|
|
49
|
-
// Allow for consuming parent to handle filtering (e.g. for async data) and prevent default filtering behavior
|
|
50
|
-
const { defaultPrevented } = this.postFilteringEvent.emit(query && query.length >= this.filterThreshold ? query : '');
|
|
51
|
-
if (defaultPrevented)
|
|
52
|
-
return;
|
|
53
|
-
await this.listBoxElement.filter(query);
|
|
54
|
-
if (query) {
|
|
55
|
-
this.showListBox();
|
|
56
|
-
this.announceCount();
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
this.inputValue = '';
|
|
60
|
-
this.clearAnnouncement();
|
|
61
|
-
}
|
|
48
|
+
await this.runQuery(value.length >= this.filterThreshold ? value : '');
|
|
62
49
|
};
|
|
63
50
|
this.handleKeyDown = (event) => {
|
|
64
51
|
const { key, altKey } = event;
|
|
@@ -100,8 +87,7 @@ const PostAutocomplete = class {
|
|
|
100
87
|
};
|
|
101
88
|
this.handleOptionSelected = (e) => {
|
|
102
89
|
const value = e.detail;
|
|
103
|
-
this.
|
|
104
|
-
this.inputValue = value;
|
|
90
|
+
this.updateSelectedValue(value);
|
|
105
91
|
this.hideListBox();
|
|
106
92
|
};
|
|
107
93
|
this.handleOptionActive = (e) => {
|
|
@@ -113,23 +99,9 @@ const PostAutocomplete = class {
|
|
|
113
99
|
this.inputElement.removeAttribute('aria-activedescendant');
|
|
114
100
|
}
|
|
115
101
|
};
|
|
116
|
-
this.
|
|
117
|
-
this.clearAnnouncement();
|
|
118
|
-
this.listBoxElement.hide();
|
|
119
|
-
this.inputElement.ariaExpanded = 'false';
|
|
120
|
-
this.host.removeAttribute('open');
|
|
121
|
-
this.inputElement.removeAttribute('aria-activedescendant');
|
|
122
|
-
};
|
|
123
|
-
this.showListBox = async () => {
|
|
124
|
-
await this.listBoxElement.show();
|
|
125
|
-
this.inputElement.ariaExpanded = 'true';
|
|
126
|
-
this.host.setAttribute('open', '');
|
|
127
|
-
this.announceCount();
|
|
128
|
-
};
|
|
129
|
-
this.clearInput = () => {
|
|
102
|
+
this.handleClear = () => {
|
|
130
103
|
if (this.inputElement) {
|
|
131
|
-
this.
|
|
132
|
-
this.inputValue = '';
|
|
104
|
+
this.updateSelectedValue(null);
|
|
133
105
|
this.listBoxElement.clearSelection();
|
|
134
106
|
this.hideListBox();
|
|
135
107
|
}
|
|
@@ -176,18 +148,16 @@ const PostAutocomplete = class {
|
|
|
176
148
|
if (this.inputElement) {
|
|
177
149
|
this.inputElement.addEventListener('input', this.debouncedHandleInput);
|
|
178
150
|
this.inputElement.addEventListener('keydown', this.handleKeyDown);
|
|
179
|
-
this.inputElement.addEventListener('blur', this.
|
|
180
|
-
this.inputElement.addEventListener('click', this.
|
|
181
|
-
this.inputElement.addEventListener('focus', this.handleFocus);
|
|
151
|
+
this.inputElement.addEventListener('blur', this.handleBlur);
|
|
152
|
+
this.inputElement.addEventListener('click', this.handleClick);
|
|
182
153
|
}
|
|
183
154
|
}
|
|
184
155
|
detachInputListeners() {
|
|
185
156
|
if (this.inputElement) {
|
|
186
157
|
this.inputElement.removeEventListener('input', this.debouncedHandleInput);
|
|
187
158
|
this.inputElement.removeEventListener('keydown', this.handleKeyDown);
|
|
188
|
-
this.inputElement.removeEventListener('blur', this.
|
|
189
|
-
this.inputElement.removeEventListener('click', this.
|
|
190
|
-
this.inputElement.removeEventListener('focus', this.handleFocus);
|
|
159
|
+
this.inputElement.removeEventListener('blur', this.handleBlur);
|
|
160
|
+
this.inputElement.removeEventListener('click', this.handleClick);
|
|
191
161
|
}
|
|
192
162
|
}
|
|
193
163
|
attachListboxListeners() {
|
|
@@ -212,8 +182,53 @@ const PostAutocomplete = class {
|
|
|
212
182
|
const count = this.listBoxElement.querySelectorAll('post-listbox-option:not([hidden])').length;
|
|
213
183
|
this.outputElement.textContent = this.textAvailableSuggestions.replace('{count}', String(count));
|
|
214
184
|
}
|
|
185
|
+
async showListBox() {
|
|
186
|
+
await this.listBoxElement.show();
|
|
187
|
+
this.expanded = true;
|
|
188
|
+
this.inputElement.ariaExpanded = 'true';
|
|
189
|
+
this.host.setAttribute('open', '');
|
|
190
|
+
this.announceCount();
|
|
191
|
+
}
|
|
192
|
+
async hideListBox() {
|
|
193
|
+
this.clearAnnouncement();
|
|
194
|
+
this.expanded = false;
|
|
195
|
+
this.host.removeAttribute('open');
|
|
196
|
+
this.inputElement.ariaExpanded = 'false';
|
|
197
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
198
|
+
await this.listBoxElement.hide();
|
|
199
|
+
}
|
|
200
|
+
updateSelectedValue(value) {
|
|
201
|
+
this.selectedValue = value;
|
|
202
|
+
this.inputElement.value = this.selectedValue ?? '';
|
|
203
|
+
}
|
|
204
|
+
/** Restores the input to the value of the selected option. */
|
|
205
|
+
restoreSelectedValue() {
|
|
206
|
+
this.inputElement.value = this.selectedValue ?? '';
|
|
207
|
+
}
|
|
208
|
+
/** Runs a query, filtering the listbox options and reflecting the outcome. */
|
|
209
|
+
async runQuery(query, alwaysExpand = false) {
|
|
210
|
+
// Prevent running the same query twice.
|
|
211
|
+
if (this.lastQuery !== (this.lastQuery = query)) {
|
|
212
|
+
await this.filterListBox(query);
|
|
213
|
+
}
|
|
214
|
+
// Always update the count if the listbox is expanded.
|
|
215
|
+
if (this.expanded) {
|
|
216
|
+
this.announceCount();
|
|
217
|
+
}
|
|
218
|
+
// Automatically show the listbox if the query is non-empty.
|
|
219
|
+
else if (alwaysExpand || query) {
|
|
220
|
+
await this.showListBox();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/** Filters the listbox options based on the query, delegating to the consuming parent when possible. */
|
|
224
|
+
async filterListBox(query) {
|
|
225
|
+
// Allow for consuming parent to handle filtering (e.g. for async data) and prevent default filtering behavior.
|
|
226
|
+
if (this.postFilteringEvent.emit(query).defaultPrevented)
|
|
227
|
+
return;
|
|
228
|
+
await this.listBoxElement?.filter(query);
|
|
229
|
+
}
|
|
215
230
|
render() {
|
|
216
|
-
return (h(Host, { key: '
|
|
231
|
+
return (h(Host, { key: '8b386930fe5484cd73395224b5f0c5daea867b33', "data-version": version }, h("slot", { key: '9aa5a34de2cf18c3d6342069fc2b4ce52baac0d3' }), this.clearable && this.selectedValue !== null && (h("button", { key: '90b459fffc29066667ca4656b6871275d061d3fd', type: "button", class: "autocomplete-clear", onClick: this.handleClear }, h("post-icon", { key: '419de2b608f1638b14aed086f8e2c6064ae634bc', "aria-hidden": "true", name: "closex" }))), h("post-icon", { key: '56b7dd986023a0e46d902020b923ae525c88bef1', "aria-hidden": "true", class: "autocomplete-icon", name: "chevronDown" }), h("output", { key: '6ef02d0baf03c7f562ba6d5c95918e4a7ae1214f', class: "visually-hidden", ref: el => (this.outputElement = el) })));
|
|
217
232
|
}
|
|
218
233
|
get host() { return getElement(this); }
|
|
219
234
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-h3opCZqH.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-Ny5VnydI.js';
|
|
3
3
|
import { P as Pattern } from './pattern-Der2DK75.js';
|
|
4
4
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
5
5
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-h3opCZqH.js';
|
|
2
2
|
import { f as fadeSlide } from './fade-slide-CvOvauo9.js';
|
|
3
|
-
import { v as version } from './package-
|
|
3
|
+
import { v as version } from './package-Ny5VnydI.js';
|
|
4
4
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
5
5
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
6
6
|
import './utils-CoDiS_Ik.js';
|
|
@@ -30,12 +30,23 @@ const PostBackToTop = class {
|
|
|
30
30
|
return window.scrollY > window.innerHeight;
|
|
31
31
|
}
|
|
32
32
|
/*Watch for changes in belowFold to show/hide the back to top button*/
|
|
33
|
-
watchBelowFold(newValue) {
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
async watchBelowFold(newValue) {
|
|
34
|
+
this.currentAnimation?.cancel();
|
|
35
|
+
// host needs to be visible before we can animate, in or out
|
|
36
|
+
// hidden state gets recalculated after the animation, based on belowFold
|
|
37
|
+
this.host.hidden = false;
|
|
38
|
+
this.currentAnimation = fadeSlide(this.host, newValue ? 'in' : 'out', {
|
|
39
|
+
translate: this.translateY,
|
|
40
|
+
fill: 'forwards',
|
|
41
|
+
});
|
|
42
|
+
try {
|
|
43
|
+
await this.currentAnimation.finished;
|
|
44
|
+
// only hide once the fade-out finished and we're still not below fold
|
|
45
|
+
if (!this.belowFold)
|
|
46
|
+
this.host.hidden = true;
|
|
36
47
|
}
|
|
37
|
-
|
|
38
|
-
|
|
48
|
+
catch {
|
|
49
|
+
// animation got canceled, nothing to do
|
|
39
50
|
}
|
|
40
51
|
}
|
|
41
52
|
scrollToTop() {
|
|
@@ -77,16 +88,17 @@ const PostBackToTop = class {
|
|
|
77
88
|
// Set the initial state
|
|
78
89
|
componentWillLoad() {
|
|
79
90
|
this.belowFold = this.isBelowFold();
|
|
91
|
+
this.host.hidden = !this.belowFold;
|
|
80
92
|
}
|
|
81
93
|
componentDidLoad() {
|
|
82
|
-
window.addEventListener('scroll', this.handleScroll,
|
|
94
|
+
window.addEventListener('scroll', this.handleScroll, { passive: true });
|
|
83
95
|
this.animateButton();
|
|
84
96
|
}
|
|
85
97
|
disconnectedCallback() {
|
|
86
98
|
window.removeEventListener('scroll', this.handleScroll);
|
|
87
99
|
}
|
|
88
100
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '149a8afee36c12130b3e503c4da5cffdaa3f86b5', "data-version": version }, h("button", { key: '4e291c5cfaa55bb6a68f436af570d83377436a3a', class: "back-to-top", onClick: this.scrollToTop }, h("post-icon", { key: 'c25e8d12cf6f751b368010ad2d82534fa95adf86', "aria-hidden": "true", name: "arrowup" }), h("span", { key: 'e16d1247a5ab7e39629e4bec7307ee562c589f7e', class: "visually-hidden" }, this.textBackToTop))));
|
|
90
102
|
}
|
|
91
103
|
get host() { return getElement(this); }
|
|
92
104
|
static get watchers() { return {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-h3opCZqH.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-Ny5VnydI.js';
|
|
3
3
|
import { f as fade } from './fade-DsgPYmAa.js';
|
|
4
4
|
import { O as OneOf } from './one-of-w2eXPAzD.js';
|
|
5
|
-
import { E as EventFrom } from './event-from-rEfV4v4a.js';
|
|
6
5
|
import './utils-CoDiS_Ik.js';
|
|
7
6
|
import './create-validator-decorator--a-qkYfP.js';
|
|
8
7
|
|
|
@@ -49,23 +48,17 @@ const PostBanner = class {
|
|
|
49
48
|
this.postDismissed.emit();
|
|
50
49
|
this.host.remove();
|
|
51
50
|
}
|
|
52
|
-
onCloseButtonClick() {
|
|
53
|
-
void this.dismiss();
|
|
54
|
-
}
|
|
55
51
|
checkContent() {
|
|
56
52
|
this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
|
|
57
53
|
}
|
|
58
54
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '890eea914f07f31f64c9e1b01fca94e824a019bc', "data-version": version, role: "alert", "data-color-scheme": "light" }, h("slot", { key: 'd4ac9c3714979cde7bba7554fbe1886d2cf75701', name: "close-button" }), h("div", { key: 'a097570719b709a3b67aa7152701edbf1174ace0', class: "post-banner-content" }, h("slot", { key: 'df12b0e63ac4cf4152c196eaad071774be4d7b88', name: "heading" }), h("slot", { key: 'a5e376800525119dc47815b9977936fa3966e087' }), this.hasActions && (h("div", { key: '6a0cc7f82873bcfde5109ed9e6bfe8255e30b19c', class: "actions" }, h("slot", { key: '11b1d289705cb9d1d96b20b4fcea2b923bfd184a', name: "actions" }))))));
|
|
60
56
|
}
|
|
61
57
|
get host() { return getElement(this); }
|
|
62
58
|
};
|
|
63
59
|
__decorate([
|
|
64
60
|
OneOf(BANNER_TYPES)
|
|
65
61
|
], PostBanner.prototype, "type", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
EventFrom('post-closebutton', { allowDescendants: true })
|
|
68
|
-
], PostBanner.prototype, "onCloseButtonClick", null);
|
|
69
62
|
PostBanner.style = postBannerCss();
|
|
70
63
|
|
|
71
64
|
export { PostBanner as post_banner };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-h3opCZqH.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-Ny5VnydI.js';
|
|
3
3
|
import { U as Url } from './url-B61rZU6Z.js';
|
|
4
4
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
5
5
|
import { O as OneOf } from './one-of-w2eXPAzD.js';
|
|
@@ -8,7 +8,7 @@ import './create-validator-decorator--a-qkYfP.js';
|
|
|
8
8
|
|
|
9
9
|
const VARIANTS = ['listitem', 'menuitem'];
|
|
10
10
|
|
|
11
|
-
const postBreadcrumbItemCss = () => `a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}a{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}a.btn:not(.btn-link){border-color:ButtonBorder !important}a.btn.btn-tertiary.px-0{border:0 !important;text-decoration:underline}}:host(:not([variant=menuitem])){display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}:host(:not([variant=menuitem])) :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host(:not([variant=menuitem])) :is(button,a):not(:disabled):hover{text-decoration:none}:host(:not([variant=menuitem])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host(:not([variant=menuitem])) :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:not([variant=menuitem])) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:not([variant=menuitem])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host(:not([variant=menuitem])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host(:not([variant=menuitem])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}:host(:not([variant=menuitem]))::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:16px;width:16px;margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDY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MzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:is(a,span){white-space:var(--post-breadcrumb-item-wrap, normal) !important;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}:host([selected]:not([selected=false])){display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}:host([selected]:not([selected=false])) :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host([selected]:not([selected=false])) :is(button,a):not(:disabled):hover{text-decoration:none}:host([selected]:not([selected=false])) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host([selected]:not([selected=false])) :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([selected]:not([selected=false])) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([selected]:not([selected=false])) :is(button,a):is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host([selected]:not([selected=false])) :is(button,a):not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host([selected]:not([selected=false])) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}:host([selected]:not([selected=false]))::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:16px;width:16px;margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2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ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}`;
|
|
11
|
+
const postBreadcrumbItemCss = () => `a{-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline);border-radius:var(--post-device-border-radius-focus);color:var(--post-current-fg)}a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}a{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){a,a:focus{color:LinkText !important}a:hover{text-decoration-thickness:2px}a:visited{color:VisitedText}a.btn:not(.btn-link){border-color:ButtonBorder !important}a.btn.btn-tertiary.px-0{border:0 !important}a.btn.btn-tertiary.px-0:not(:hover){text-decoration:underline}}:host([variant=menuitem]) :is(a,span){white-space:normal;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}:host([variant=listitem]){display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}:host([variant=listitem]) :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host([variant=listitem]) :is(button,a):not(:disabled):hover{text-decoration:none}:host([variant=listitem]) :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host([variant=listitem]) :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host([variant=listitem]) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([variant=listitem]) :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host([variant=listitem]) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([variant=listitem]) :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host([variant=listitem]) :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}:host([variant=listitem]) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}:host([variant=listitem]) :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}:host([variant=listitem])::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS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jRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}:host([variant=listitem]):host([selected]:not([selected=false])) :is(a,span){color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}:host([variant=listitem]):host([standalone]:not([standalone=false])) :is(a,span){white-space:normal;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}`;
|
|
12
12
|
|
|
13
13
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14
14
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -31,11 +31,15 @@ const PostBreadcrumbItem = class {
|
|
|
31
31
|
* Indicates that the item represents the current page, applying appropriate styling.
|
|
32
32
|
*/
|
|
33
33
|
this.selected = false;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates that this is the only visible item, applying appropriate styling.
|
|
36
|
+
*/
|
|
37
|
+
this.standalone = false;
|
|
34
38
|
}
|
|
35
39
|
render() {
|
|
36
40
|
const href = this.url instanceof URL ? this.url.href : this.url;
|
|
37
41
|
const content = href ? (h("a", { href: href, "aria-current": this.selected ? 'page' : undefined, "aria-label": this.label, "aria-description": this.description }, h("slot", null))) : (h("span", null, h("slot", null)));
|
|
38
|
-
return this.variant === 'listitem' || this.selected ? (h(Host, { "data-version": version, role: "listitem", slot: this.selected ? 'selected' : undefined }, content)) : (h(Host, { "data-version": version }, h("post-menu-item", null, content)));
|
|
42
|
+
return this.variant === 'listitem' || this.selected ? (h(Host, { "data-version": version, role: "listitem", slot: this.selected ? 'selected' : undefined }, content)) : (h(Host, { "data-version": version, slot: "menu" }, h("post-menu-item", null, content)));
|
|
39
43
|
}
|
|
40
44
|
get host() { return getElement(this); }
|
|
41
45
|
};
|
|
@@ -55,6 +59,10 @@ __decorate([
|
|
|
55
59
|
Required(),
|
|
56
60
|
Type('boolean')
|
|
57
61
|
], PostBreadcrumbItem.prototype, "selected", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
Required(),
|
|
64
|
+
Type('boolean')
|
|
65
|
+
], PostBreadcrumbItem.prototype, "standalone", void 0);
|
|
58
66
|
PostBreadcrumbItem.style = postBreadcrumbItemCss();
|
|
59
67
|
|
|
60
68
|
export { PostBreadcrumbItem as post_breadcrumb_item };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-h3opCZqH.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-Ny5VnydI.js';
|
|
3
3
|
import { t as throttle } from './index-bR8vy6-s.js';
|
|
4
4
|
import { n as nanoid } from './nanoid-8LXe8Zt_.js';
|
|
5
5
|
import { c as componentOnReady } from './component-on-ready-lpWRZjJp.js';
|
|
@@ -8,7 +8,7 @@ import { U as Url } from './url-B61rZU6Z.js';
|
|
|
8
8
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
9
9
|
import './create-validator-decorator--a-qkYfP.js';
|
|
10
10
|
|
|
11
|
-
const postBreadcrumbsCss = () => `:host{display:block;position:relative}nav{max-width:100%}nav.invisible{
|
|
11
|
+
const postBreadcrumbsCss = () => `:host{display:block;position:relative}nav{max-width:100%}nav.invisible{overflow:hidden;visibility:hidden;position:absolute;inset:0}nav.loading>div>:not(.home){display:none}[role=list]{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;gap:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;padding-block:var(--post-device-spacing-padding-block-6);gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item :is(button,a){display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;max-width:100%;overflow:hidden;-webkit-transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);-webkit-box-shadow:none;box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;font:inherit;padding:unset;border:unset;color:var(--post-scheme-color-interactive-primary-enabled-fg1);border-radius:var(--post-device-border-radius-focus);-webkit-text-decoration:var(--post-core-text-decoration-none);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item :is(button,a):not(:disabled):hover{text-decoration:none}.breadcrumb-item :is(button,a):disabled{border-style:var(--post-core-border-style-dash);cursor:unset}.breadcrumb-item :is(button,a){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item :is(button,a){border-width:1px !important;-webkit-transition:none;transition:none}.breadcrumb-item :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !important}}.breadcrumb-item :is(button,a):hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);-webkit-text-decoration:var(--post-core-text-decoration-underline);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item::before{-webkit-mask-image:var(--post-icon-chevronright);mask-image:var(--post-icon-chevronright);background-color:currentColor;-ms-flex:0 0 auto;flex:0 0 auto;content:"";display:block;height:var(--post-device-sizing-interactive-icon-size4);width:var(--post-device-sizing-interactive-icon-size4);margin-block:calc(var(--post-device-spacing-padding-35) - 1*var(--post-device-spacing-padding-block-6));margin-inline:var(--post-core-dimension-4)}:root,:host{--post-icon-chevronright:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hldnJvbnJpZ2h0Ij48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV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WVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.home{padding-block:var(--post-device-spacing-padding-47)}.home::before{content:unset}.home post-icon{width:var(--post-device-sizing-interactive-icon-size2);height:var(--post-device-sizing-interactive-icon-size2)}.menu{-webkit-margin-end:calc(-1*var(--post-device-spacing-gap-inline-4));margin-inline-end:calc(-1*var(--post-device-spacing-gap-inline-4))}.menu.empty{display:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}`;
|
|
12
12
|
|
|
13
13
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
14
14
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -20,91 +20,142 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
20
20
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
21
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
22
|
};
|
|
23
|
+
const MAX_VISIBLE_ITEMS = 6;
|
|
24
|
+
const MEASUREMENT_DEBOUNCE_MS = 50;
|
|
23
25
|
const PostBreadcrumbs = class {
|
|
24
26
|
constructor(hostRef) {
|
|
25
27
|
registerInstance(this, hostRef);
|
|
26
|
-
this.
|
|
28
|
+
this.debounceUpdateCollapsedItems = throttle(MEASUREMENT_DEBOUNCE_MS, this.updateCollapsedItems.bind(this));
|
|
29
|
+
this.resizeObserver = new ResizeObserver(this.debounceUpdateCollapsedItems);
|
|
30
|
+
this.mutationObserver = new MutationObserver(this.updateHiddenNav.bind(this));
|
|
31
|
+
this.loaded = false;
|
|
32
|
+
/** The number of breadcrumb items, counted from the start, that are moved into the overflow menu. */
|
|
33
|
+
this.collapsed = 0;
|
|
34
|
+
/** The visible breadcrumb navigation. */
|
|
35
|
+
this.nav = null;
|
|
36
|
+
/** An off-screen copy of the breadcrumb navigation used for measurement. */
|
|
37
|
+
this.hiddenNav = null;
|
|
27
38
|
}
|
|
28
39
|
componentWillLoad() {
|
|
29
40
|
this.id = this.host.id || `b${nanoid(6)}`;
|
|
30
41
|
}
|
|
31
|
-
componentDidLoad() {
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
}
|
|
35
|
-
disconnectedCallback() {
|
|
36
|
-
this.mutationObserver?.disconnect();
|
|
37
|
-
this.resizeObserver?.disconnect();
|
|
38
|
-
}
|
|
39
|
-
createMutationObserver() {
|
|
40
|
-
this.mutationObserver = new MutationObserver(this.duplicateNavElement.bind(this));
|
|
41
|
-
this.mutationObserver.observe(this.host, {
|
|
42
|
+
async componentDidLoad() {
|
|
43
|
+
this.resizeObserver?.observe(document.body);
|
|
44
|
+
this.mutationObserver?.observe(this.host, {
|
|
42
45
|
childList: true,
|
|
43
46
|
characterData: true,
|
|
44
47
|
subtree: true,
|
|
45
48
|
});
|
|
46
|
-
this.
|
|
49
|
+
await this.updateHiddenNav();
|
|
50
|
+
await this.updateCollapsedItems();
|
|
51
|
+
this.loaded = true;
|
|
47
52
|
}
|
|
48
|
-
|
|
49
|
-
this.resizeObserver
|
|
50
|
-
this.
|
|
53
|
+
disconnectedCallback() {
|
|
54
|
+
this.resizeObserver?.disconnect();
|
|
55
|
+
this.mutationObserver?.disconnect();
|
|
56
|
+
this.debounceUpdateCollapsedItems.cancel();
|
|
51
57
|
}
|
|
52
58
|
/**
|
|
53
|
-
*
|
|
59
|
+
* Measures the space available in the breadcrumb navigation and moves the items that do not fit
|
|
60
|
+
* into the overflow menu.
|
|
54
61
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const nav = shadowRoot?.querySelector('nav');
|
|
58
|
-
if (!shadowRoot || !nav)
|
|
62
|
+
async updateCollapsedItems() {
|
|
63
|
+
if (!this.nav)
|
|
59
64
|
return;
|
|
60
|
-
this.
|
|
61
|
-
const clone = nav.cloneNode(true);
|
|
62
|
-
clone.classList.add('invisible');
|
|
63
|
-
shadowRoot.querySelector('nav.invisible')?.remove();
|
|
64
|
-
shadowRoot.append(clone);
|
|
65
|
-
requestAnimationFrame(() => {
|
|
66
|
-
this.duplicateSlottedElements(clone, 'slot:not([name])');
|
|
67
|
-
this.duplicateSlottedElements(clone, 'slot[name="selected"]');
|
|
68
|
-
this.checkOverflow();
|
|
69
|
-
});
|
|
65
|
+
this.collapsed = await this.calculateCollapsedItems();
|
|
70
66
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Determines how many items have to be collapsed, either because they do not fit the breadcrumb
|
|
69
|
+
* navigation or because they exceed the maximum number of visible items.
|
|
70
|
+
*/
|
|
71
|
+
async calculateCollapsedItems() {
|
|
72
|
+
const items = this.host.querySelectorAll('post-breadcrumb-item');
|
|
73
|
+
const overflowing = await this.calculateOverflowingItems();
|
|
74
|
+
// Never show more than `MAX_VISIBLE_ITEMS`, even if the nav is wide enough to fit them all.
|
|
75
|
+
return Math.max(overflowing, items.length - MAX_VISIBLE_ITEMS);
|
|
80
76
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Determines how many items overflow the width of the breadcrumb navigation.
|
|
79
|
+
*/
|
|
80
|
+
async calculateOverflowingItems() {
|
|
81
|
+
// Fallback to zero if the hidden nav is not available for measurement.
|
|
82
|
+
if (!this.hiddenNav)
|
|
83
|
+
return 0;
|
|
84
|
+
const gap = Number.parseFloat(getComputedStyle(this.hiddenNav.firstElementChild).gap);
|
|
85
|
+
const menu = this.hiddenNav.querySelector('.menu').clientWidth;
|
|
86
|
+
// The last item can never be collapsed, so it is ignored when measuring the width of the items.
|
|
87
|
+
const items = Array.from(this.hiddenNav.querySelectorAll('post-breadcrumb-item')).slice(0, -1);
|
|
88
|
+
// Start from the assumption that all items fit and that no menu is shown.
|
|
89
|
+
// Therefore, subtract the width of the overflow menu.
|
|
90
|
+
let width = this.hiddenNav.scrollWidth - menu + gap;
|
|
91
|
+
let overflowing = 0;
|
|
92
|
+
// Discard items from the start until the remaining ones fit the available width.
|
|
93
|
+
while (overflowing < items.length && width > this.hiddenNav.clientWidth) {
|
|
94
|
+
// The overflow menu needs to be displayed as soon as the first item is moved into it, so its
|
|
95
|
+
// width needs to be taken into account when measuring the remaining items.
|
|
96
|
+
if (overflowing === 0)
|
|
97
|
+
width += menu;
|
|
98
|
+
width -= items[overflowing++].clientWidth + gap;
|
|
99
|
+
}
|
|
100
|
+
return overflowing;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Moves `collapsed` items into the overflow menu and marks the last item as selected.
|
|
104
|
+
*/
|
|
105
|
+
updateItems(items, collapsed) {
|
|
106
|
+
items.forEach((item, index) => {
|
|
107
|
+
item.setAttribute('variant', index < collapsed ? 'menuitem' : 'listitem');
|
|
108
|
+
item.setAttribute('selected', String(index === items.length - 1));
|
|
109
|
+
item.setAttribute('standalone', String(index === items.length - 1 && index === collapsed));
|
|
89
110
|
});
|
|
90
111
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Rebuilds the off-screen copy of the breadcrumb navigation.
|
|
114
|
+
*/
|
|
115
|
+
async updateHiddenNav() {
|
|
116
|
+
this.hiddenNav?.remove();
|
|
117
|
+
this.hiddenNav = await this.renderHiddenNav();
|
|
94
118
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
119
|
+
/**
|
|
120
|
+
* Renders an off-screen copy of the breadcrumb navigation that is used for measurements.
|
|
121
|
+
*/
|
|
122
|
+
async renderHiddenNav() {
|
|
123
|
+
const shadowRoot = this.host.shadowRoot;
|
|
124
|
+
if (!shadowRoot || !this.nav)
|
|
125
|
+
return null;
|
|
126
|
+
const clone = this.nav.cloneNode(true);
|
|
127
|
+
const slots = clone.querySelectorAll('slot');
|
|
128
|
+
// Deep clone the breadcrumb navigation and flatten its slots into the clone.
|
|
129
|
+
this.nav.querySelectorAll('slot').forEach((source, index) => {
|
|
130
|
+
const target = slots[index];
|
|
131
|
+
// Insert the assigned elements where the slot used to be, then drop the now empty slot
|
|
132
|
+
source.assignedElements().forEach(element => {
|
|
133
|
+
target.insertAdjacentElement('beforebegin', element.cloneNode(true));
|
|
134
|
+
});
|
|
135
|
+
target.remove();
|
|
100
136
|
});
|
|
137
|
+
clone.classList.remove('loading');
|
|
138
|
+
clone.classList.add('invisible');
|
|
139
|
+
// Show the overflow menu so that we can include the space it takes up in the measurement.
|
|
140
|
+
clone.querySelector('.menu').classList.remove('empty');
|
|
141
|
+
shadowRoot.append(clone);
|
|
142
|
+
// Wait for all items to be fully hydrated before measuring.
|
|
143
|
+
const items = clone.querySelectorAll('post-breadcrumb-item');
|
|
144
|
+
await Promise.all(Array.from(items).map(item => componentOnReady(item)));
|
|
145
|
+
// Move the items out of the overflow menu so that the uncollapsed layout can be measured.
|
|
146
|
+
this.updateItems(items, 0);
|
|
147
|
+
return clone;
|
|
101
148
|
}
|
|
102
149
|
renderMenu() {
|
|
103
150
|
const menuId = `${this.id}-menu`;
|
|
104
|
-
return (h("div", {
|
|
151
|
+
return (h("div", { class: `breadcrumb-item menu ${this.collapsed === 0 ? 'empty' : ''}`, role: "listitem" }, h("post-menu-trigger", { for: menuId }, h("button", null, h("span", { class: "visually-hidden" }, this.textMoreItems), h("span", { "aria-hidden": "true" }, "..."))), h("post-menu", { id: menuId, label: this.textMoreItems, placement: "bottom-start" }, h("slot", { name: "menu" }))));
|
|
105
152
|
}
|
|
106
153
|
render() {
|
|
107
|
-
|
|
154
|
+
if (this.loaded) {
|
|
155
|
+
const items = this.host.querySelectorAll('post-breadcrumb-item');
|
|
156
|
+
this.updateItems(items, this.collapsed);
|
|
157
|
+
}
|
|
158
|
+
return (h(Host, { key: '501384cb07b2deac87a21800fc4d39d695747341', "data-version": version }, h("nav", { key: '20aa57da865967458169544dec75d975926eb675', "aria-label": this.textBreadcrumbs, ref: el => (this.nav = el), class: this.loaded ? '' : 'loading' }, h("div", { key: 'cf8f21f2ee9de01bac0edf9379ba5c183b938d70', role: "list" }, h("div", { key: '9bd29a83cb976d67f3c6ea24cf23b2a07e40ca84', class: "breadcrumb-item home", role: "listitem" }, h("a", { key: '675638668994f074951491040c6043819e6f7282', href: this.homeUrl }, h("span", { key: '3ce1f8ea5ba5738925bff000ec5a8c32603ae963', class: "visually-hidden" }, this.textHome), h("post-icon", { key: '1b35b22788d4e70c948e1067d99265e8af9c74e7', "aria-hidden": "true", name: "home" }))), this.renderMenu(), h("slot", { key: 'f7fe7cd0b16a9064aba28149756f785c47133351' }), h("slot", { key: 'c62ce84877203586c184e1adaea1ecb6ed8a0912', name: "selected" })))));
|
|
108
159
|
}
|
|
109
160
|
get host() { return getElement(this); }
|
|
110
161
|
};
|