@swisspost/internet-header 10.5.0 → 10.6.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/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-pLOjVG24.js → package-D7UYFbVU.js} +1 -1
- package/dist/cjs/{package-DdU-rENe.js → package-pKyFPwiA.js} +1 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +26 -4
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +153 -53
- package/dist/cjs/post-closebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +13 -11
- package/dist/cjs/post-footer.cjs.entry.js +3 -3
- package/dist/cjs/post-header.cjs.entry.js +3 -3
- 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 +1 -1
- 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 +2 -2
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-megadropdown.cjs.entry.js +4 -4
- package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/post-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +1 -1
- 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 +28 -24
- 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 +2 -2
- package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +3 -11
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +51 -69
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/components/post-internet-footer/post-internet-footer.js +2 -10
- package/dist/collection/components/post-internet-header/post-internet-header.js +16 -66
- package/dist/collection/config/klp-urls.js +33 -0
- package/dist/collection/services/config.service.js +1 -2
- package/dist/collection/tests/setup-tests.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/package2.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-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-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/components/swisspost-internet-footer.js +1 -1
- package/dist/components/swisspost-internet-header.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CWWSnot0.js → package-Dy8-dzD8.js} +1 -1
- package/dist/esm/{package-Ny5VnydI.js → package-T8T3po4z.js} +1 -1
- package/dist/esm/post-accordion_4.entry.js +4 -4
- package/dist/esm/post-autocomplete.entry.js +1 -1
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +1 -1
- package/dist/esm/post-banner.entry.js +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +26 -4
- package/dist/esm/post-breadcrumbs.entry.js +153 -53
- package/dist/esm/post-closebutton.entry.js +2 -2
- package/dist/esm/post-date-picker.entry.js +13 -11
- package/dist/esm/post-footer.entry.js +3 -3
- package/dist/esm/post-header.entry.js +3 -3
- 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 +1 -1
- 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 +2 -2
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +2 -2
- package/dist/esm/post-megadropdown-trigger.entry.js +2 -2
- package/dist/esm/post-megadropdown.entry.js +4 -4
- package/dist/esm/post-menu-item.entry.js +2 -2
- package/dist/esm/post-menu_2.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +1 -1
- 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 +28 -24
- 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 +2 -2
- package/dist/esm/post-side-navigation.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/esm/swisspost-internet-footer.entry.js +3 -11
- package/dist/esm/swisspost-internet-header.entry.js +51 -69
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{package-CWWSnot0.js → package-Dy8-dzD8.js} +1 -1
- package/dist/esm-es5/package-T8T3po4z.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-83549cef.system.entry.js → p-000978a2.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6dea21a2.entry.js → p-03587cd5.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-b1d25e1d.entry.js → p-068b1e2b.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-087b1e22.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-1501e9e0.entry.js → p-089412b9.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e02d5b07.entry.js → p-094ef16a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f8cb3ed7.system.entry.js → p-0c651391.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0d4d5c56.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-cc0d4d02.system.entry.js → p-0f501e99.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f54a41d5.system.entry.js → p-1502d221.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8afbbdf6.system.entry.js → p-155f5b00.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-08a6f709.system.entry.js → p-161b1a45.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-30b56aa5.entry.js → p-16623b05.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-1780039a.entry.js +1 -0
- package/dist/swisspost-internet-header/p-1a18ac48.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-38159567.entry.js → p-1b2b7af5.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-85d6fa3b.entry.js → p-2196012d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-06eb086c.system.entry.js → p-2197ca9e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a24350c6.system.entry.js → p-21e537be.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-159e96f4.system.entry.js → p-25407470.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-04651cdc.entry.js → p-255b2067.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-2b0f93fb.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-8c11a307.entry.js → p-2da6fba5.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-2e8c0f26.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-250ff1e6.system.entry.js → p-31af5cf2.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-35b6e07c.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-204aaba4.system.entry.js → p-39af32a0.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a6db4d60.entry.js → p-3d38ab21.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e9569ed9.entry.js → p-3ff138ba.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-42806d60.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-bb7fe5c4.entry.js → p-4557a744.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dd20bb2e.system.entry.js → p-4562d9d8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d90947de.system.entry.js → p-4bdbf9e9.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-53c33e94.entry.js +1 -0
- package/dist/swisspost-internet-header/p-5443664a.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-14a5b926.system.entry.js → p-547d9572.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7f223aac.system.entry.js → p-57f1f9e2.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3f3e5828.system.entry.js → p-586ee1e8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-138f2186.entry.js → p-599e94e7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e008aab0.entry.js → p-613fa3a4.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-651b9efe.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-d6f0b224.entry.js → p-6d6fb84b.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-436a661f.entry.js → p-6f187e15.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ee42c33b.system.entry.js → p-6f79a60d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-72377b16.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-badd758a.system.entry.js → p-7ad0de4b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-03a80973.system.entry.js → p-81f34993.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fa10409f.entry.js → p-826d0669.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a3f0cee6.system.entry.js → p-84ebaf4b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f04924d8.system.entry.js → p-8717e0ce.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-8f21a530.entry.js +1 -0
- package/dist/swisspost-internet-header/p-98d2dfb3.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-deadf1bf.entry.js → p-9b6c8533.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3b8bc9bf.entry.js → p-9c5941a2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-C3HusDuA.js → p-B-DGLCj0.js} +1 -1
- package/dist/swisspost-internet-header/p-BT1GO8tc.system.js +1 -0
- package/dist/swisspost-internet-header/{p-Bkt75U1-.system.js → p-COm5Sc71.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-MZb_boDk.system.js → p-D_rLPX5e.system.js} +1 -1
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/p-T8T3po4z.js +1 -0
- package/dist/swisspost-internet-header/{p-c5a114a3.system.entry.js → p-a435a51d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-93653f6e.system.entry.js → p-a46ef8a8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6d67cc9d.entry.js → p-a75d1e4f.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d96cbabb.system.entry.js → p-a8b0c0ec.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-abe2eefe.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-58318d31.entry.js → p-b344fa82.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-cb0bcdf7.system.entry.js → p-b4de053e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-b85fabc2.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-097214a3.entry.js → p-bb4c3ac1.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a5b1c8b5.entry.js → p-bfc4a6a9.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ddbbc505.entry.js → p-c1e818d2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-735effe5.system.entry.js → p-c96dbc97.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e0563b59.entry.js → p-ca68b8cf.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-caed751e.entry.js +1 -0
- package/dist/swisspost-internet-header/p-cb52e42c.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-8978be6a.system.entry.js → p-cec19e1d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3dfdd503.system.entry.js → p-d45690b3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fddbd731.entry.js → p-d68a1179.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2e4a1d59.entry.js → p-d7c2cce3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dcee68ed.system.entry.js → p-d7df13be.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1c33394a.system.entry.js → p-e5ebe099.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e6c60488.entry.js → p-e69e8fa4.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-e6ec5fa5.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c275ce9f.system.entry.js → p-ede58236.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5e98bd48.system.entry.js → p-f3e68437.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-f4489f68.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c0cd2db1.entry.js → p-f4ce6247.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-aaa51210.system.entry.js → p-f783b224.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-40ee5200.entry.js → p-fcfd3134.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-fdbcf065.entry.js +1 -0
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/config/klp-urls.d.ts +23 -0
- package/package.json +19 -22
- package/readme.md +2 -2
- package/dist/esm-es5/package-Ny5VnydI.js +0 -1
- package/dist/swisspost-internet-header/p-004c6278.entry.js +0 -1
- package/dist/swisspost-internet-header/p-15613920.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2e23353c.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3f704fa4.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4e883523.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-51c3d47f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-638891f4.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-6d4d21b7.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7204ff05.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-770cac8f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-81985723.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8e81fedf.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-CYCx3cRc.system.js +0 -1
- package/dist/swisspost-internet-header/p-Ny5VnydI.js +0 -1
- package/dist/swisspost-internet-header/p-a1476fe8.entry.js +0 -1
- package/dist/swisspost-internet-header/p-a1a640e5.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b62df652.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c96d1aeb.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-dbb7038b.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e5171236.entry.js +0 -1
- package/dist/swisspost-internet-header/p-eb0b4ff8.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fb4b0989.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fec7c3c1.entry.js +0 -1
|
@@ -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-T8T3po4z.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{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;
|
|
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)}[role=list]>.menu:first-child::before{content:none}.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;border-radius:var(--post-device-border-radius-focus);color:var(--post-scheme-color-interactive-primary-enabled-fg1);-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+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSAzNC4yMmExLjEyMyAxLjEyMyAwIDAgMS0uOC0xLjkybDEyLjMzLTEyLjMzTDEyLjcgNy42M2MtLjQ0LS40NC0uNDQtMS4xNSAwLTEuNTlzMS4xNS0uNDQgMS41OSAwbDEzLjkzIDEzLjkzTDE0LjMgMzMuODljLS4yMi4yMi0uNTEuMzMtLjguMzMiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTE2LjE0IDQxYy0uMzIgMC0uNjQtLjEyLS44OC0uMzdhMS4yNSAxLjI1IDAgMCAxIDAtMS43N2wxNC44Ny0xNC44N0wxNS4yNSA5LjExYy0uNDktLjQ5LS40OS0xLjI4IDAtMS43N3MxLjI4LS40OSAxLjc3IDBsMTYuNjQgMTYuNjQtMTYuNjMgMTYuNjNjLS4yNC4yNC0uNTYuMzctLjg4LjM3WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cGF0aCBkPSJNMjEuNTEgNTQuNGExLjM3NiAxLjM3NiAwIDAgMS0uOTctMi4zNWwyMC4wMy0yMC4wMy0yMC4wNC0yMC4wM2MtLjU0LS41NC0uNTQtMS40MSAwLTEuOTVzMS40MS0uNTQgMS45NSAwbDIxLjk4IDIxLjk5TDIyLjQ5IDU0Yy0uMjcuMjctLjYyLjQtLjk3LjRaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}post-menu-item>slot[name=home]>a{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:8px 12px 8px 16px;gap:12px;font-size:.875rem;color:#050400;border-radius:0;text-decoration:none;min-width:0;white-space:normal;overflow:visible;text-overflow:unset;-ms-flex-pack:start;justify-content:start;overflow-wrap:anywhere;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;line-break:strict}@media screen and (min-width: 780px){post-menu-item>slot[name=home]>a{font-size:1rem;padding-block:12px;gap:16px}}@media screen and (min-width: 1024px){post-menu-item>slot[name=home]>a{font-size:1.25rem;padding-block:13px}}post-menu-item>slot[name=home]>a:focus-visible{outline-offset:2px !important;border-radius:4px}post-menu-item>slot[name=home]>a:hover{background-color:#504f4b;color:#fff}.home{-ms-flex:none;flex:none}.home::before{content:unset}.home.icon{padding-block:var(--post-device-spacing-padding-47)}.home.icon 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;
|
|
@@ -27,17 +27,33 @@ const PostBreadcrumbs = class {
|
|
|
27
27
|
registerInstance(this, hostRef);
|
|
28
28
|
this.debounceUpdateCollapsedItems = throttle(MEASUREMENT_DEBOUNCE_MS, this.updateCollapsedItems.bind(this));
|
|
29
29
|
this.resizeObserver = new ResizeObserver(this.debounceUpdateCollapsedItems);
|
|
30
|
-
this.mutationObserver = new MutationObserver(
|
|
30
|
+
this.mutationObserver = new MutationObserver(() => {
|
|
31
|
+
void this.updateAfterMutation();
|
|
32
|
+
});
|
|
31
33
|
this.loaded = false;
|
|
32
|
-
/**
|
|
34
|
+
/** Whether the consumer slotted their own `<a>` into the `home` slot. When true, `home-url` is not required, since the internal fallback link is not rendered. */
|
|
35
|
+
this.hasSlottedHomeAnchor = false;
|
|
36
|
+
/** Whether the slotted home anchor contains a post-icon. */
|
|
37
|
+
this.hasSlottedHomeIcon = false;
|
|
38
|
+
/** The number of breadcrumb items, counted from the start, moved into the overflow menu. */
|
|
33
39
|
this.collapsed = 0;
|
|
40
|
+
/** Whether the home item is collapsed into its own overflow menu. */
|
|
41
|
+
this.homeCollapsed = false;
|
|
42
|
+
/** Whether the last (selected) item wraps onto multiple lines. */
|
|
43
|
+
this.lastItemWraps = false;
|
|
34
44
|
/** The visible breadcrumb navigation. */
|
|
35
45
|
this.nav = null;
|
|
36
46
|
/** An off-screen copy of the breadcrumb navigation used for measurement. */
|
|
37
47
|
this.hiddenNav = null;
|
|
48
|
+
/**
|
|
49
|
+
* Whether `text-home` content is displayed instead of the home icon, enabling segment specific
|
|
50
|
+
* breadcrumbs (like "Private customers" or "About us").
|
|
51
|
+
*/
|
|
52
|
+
this.homeTextOnly = false;
|
|
38
53
|
}
|
|
39
54
|
componentWillLoad() {
|
|
40
55
|
this.id = this.host.id || `b${nanoid(6)}`;
|
|
56
|
+
this.checkSlottedHomeAnchor();
|
|
41
57
|
}
|
|
42
58
|
async componentDidLoad() {
|
|
43
59
|
this.resizeObserver?.observe(document.body);
|
|
@@ -55,69 +71,95 @@ const PostBreadcrumbs = class {
|
|
|
55
71
|
this.mutationObserver?.disconnect();
|
|
56
72
|
this.debounceUpdateCollapsedItems.cancel();
|
|
57
73
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
74
|
+
checkSlottedHomeAnchor() {
|
|
75
|
+
const homeSlotElement = Array.from(this.host.children).find(child => child.getAttribute('slot') === 'home');
|
|
76
|
+
this.hasSlottedHomeAnchor = homeSlotElement?.tagName === 'A';
|
|
77
|
+
this.hasSlottedHomeIcon =
|
|
78
|
+
this.hasSlottedHomeAnchor && !!homeSlotElement?.querySelector('post-icon');
|
|
79
|
+
}
|
|
80
|
+
get usesHomeText() {
|
|
81
|
+
return this.hasSlottedHomeAnchor ? !this.hasSlottedHomeIcon : this.homeTextOnly;
|
|
82
|
+
}
|
|
83
|
+
// Degrade order: collapse middle items -> collapse home -> wrap the last item.
|
|
84
|
+
/** Measures the available space and updates all three degrade-stage states. */
|
|
62
85
|
async updateCollapsedItems() {
|
|
63
86
|
if (!this.nav)
|
|
64
87
|
return;
|
|
65
|
-
|
|
88
|
+
const { overflowing, homeOverflows, lastItemWraps } = await this.calculateCollapsedItems();
|
|
89
|
+
this.collapsed = overflowing;
|
|
90
|
+
this.homeCollapsed = homeOverflows;
|
|
91
|
+
this.lastItemWraps = lastItemWraps;
|
|
66
92
|
}
|
|
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
93
|
async calculateCollapsedItems() {
|
|
72
94
|
const items = this.host.querySelectorAll('post-breadcrumb-item');
|
|
73
|
-
const overflowing = await this.calculateOverflowingItems();
|
|
95
|
+
const { overflowing, homeOverflows, lastItemWraps } = await this.calculateOverflowingItems();
|
|
74
96
|
// Never show more than `MAX_VISIBLE_ITEMS`, even if the nav is wide enough to fit them all.
|
|
75
|
-
return
|
|
97
|
+
return {
|
|
98
|
+
overflowing: Math.max(overflowing, items.length - MAX_VISIBLE_ITEMS),
|
|
99
|
+
homeOverflows,
|
|
100
|
+
lastItemWraps,
|
|
101
|
+
};
|
|
76
102
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Determines how many items overflow the width of the breadcrumb navigation.
|
|
79
|
-
*/
|
|
103
|
+
/** Runs the three degrade stages in order against the off-screen measurement clone. */
|
|
80
104
|
async calculateOverflowingItems() {
|
|
81
|
-
// Fallback to zero if the hidden nav is not available for measurement.
|
|
82
105
|
if (!this.hiddenNav)
|
|
83
|
-
return 0;
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
//
|
|
90
|
-
|
|
106
|
+
return { overflowing: 0, homeOverflows: false, lastItemWraps: false };
|
|
107
|
+
const nav = this.hiddenNav;
|
|
108
|
+
const availableWidth = nav.clientWidth;
|
|
109
|
+
const gap = Number.parseFloat(getComputedStyle(nav.firstElementChild).gap);
|
|
110
|
+
const menuWidth = nav.querySelector('.menu')?.clientWidth ?? 0;
|
|
111
|
+
const homeWidth = nav.querySelector('.home')?.clientWidth ?? 0;
|
|
112
|
+
// Stage 1: collapse middle items, starting closest to home, until the rest fits.
|
|
113
|
+
const middleItems = Array.from(nav.querySelectorAll('post-breadcrumb-item')).slice(0, -1);
|
|
114
|
+
const { overflowing, remainingWidth } = this.collapseMiddleItems(middleItems, gap, menuWidth, availableWidth);
|
|
115
|
+
// Stage 2: home + last item, single-line. Text home can collapse into the menu, while the
|
|
116
|
+
// icon-only home remains visible and lets the last item wrap instead.
|
|
117
|
+
const homeOverflows = this.usesHomeText && remainingWidth > availableWidth;
|
|
118
|
+
// Stage 3: home joins the existing menu when middle items have collapsed. If no middle item
|
|
119
|
+
// collapsed, the menu needs to be added when home moves into it.
|
|
120
|
+
const widthWithHomeCollapsed = remainingWidth - homeWidth + (overflowing === 0 ? menuWidth : 0);
|
|
121
|
+
const lastItemWraps = this.usesHomeText
|
|
122
|
+
? homeOverflows && widthWithHomeCollapsed > availableWidth
|
|
123
|
+
: remainingWidth > availableWidth;
|
|
124
|
+
return { overflowing, homeOverflows, lastItemWraps };
|
|
125
|
+
}
|
|
126
|
+
/** Stage 1: collapses middle items until the rest fits, or none are left. */
|
|
127
|
+
collapseMiddleItems(items, gap, menuWidth, availableWidth) {
|
|
128
|
+
// Start from the assumption that all items fit and that no menu is shown, so subtract the
|
|
129
|
+
// overflow menu's width from the total.
|
|
130
|
+
let width = this.hiddenNav.scrollWidth - menuWidth + gap;
|
|
91
131
|
let overflowing = 0;
|
|
92
|
-
|
|
93
|
-
while (overflowing < items.length && width > this.hiddenNav.clientWidth) {
|
|
132
|
+
while (overflowing < items.length && width > availableWidth) {
|
|
94
133
|
// The overflow menu needs to be displayed as soon as the first item is moved into it, so its
|
|
95
134
|
// width needs to be taken into account when measuring the remaining items.
|
|
96
135
|
if (overflowing === 0)
|
|
97
|
-
width +=
|
|
136
|
+
width += menuWidth;
|
|
98
137
|
width -= items[overflowing++].clientWidth + gap;
|
|
99
138
|
}
|
|
100
|
-
return overflowing;
|
|
139
|
+
return { overflowing, remainingWidth: width };
|
|
101
140
|
}
|
|
102
|
-
/**
|
|
103
|
-
|
|
104
|
-
*/
|
|
105
|
-
updateItems(items, collapsed) {
|
|
141
|
+
/** Applies the degrade states to the `<post-breadcrumb-item>` elements. */
|
|
142
|
+
updateItems(items, collapsed, lastItemWraps) {
|
|
106
143
|
items.forEach((item, index) => {
|
|
144
|
+
const isLast = index === items.length - 1;
|
|
107
145
|
item.setAttribute('variant', index < collapsed ? 'menuitem' : 'listitem');
|
|
108
|
-
item.setAttribute('selected', String(
|
|
109
|
-
item.setAttribute('standalone', String(
|
|
146
|
+
item.setAttribute('selected', String(isLast));
|
|
147
|
+
item.setAttribute('standalone', String(isLast && index === collapsed && lastItemWraps));
|
|
110
148
|
});
|
|
111
149
|
}
|
|
112
|
-
/**
|
|
113
|
-
* Rebuilds the off-screen copy of the breadcrumb navigation.
|
|
114
|
-
*/
|
|
150
|
+
/** Rebuilds the off-screen copy of the breadcrumb navigation. */
|
|
115
151
|
async updateHiddenNav() {
|
|
116
152
|
this.hiddenNav?.remove();
|
|
117
153
|
this.hiddenNav = await this.renderHiddenNav();
|
|
118
154
|
}
|
|
155
|
+
async updateAfterMutation() {
|
|
156
|
+
await this.updateHiddenNav();
|
|
157
|
+
await this.updateCollapsedItems();
|
|
158
|
+
}
|
|
119
159
|
/**
|
|
120
|
-
* Renders an off-screen copy of the
|
|
160
|
+
* Renders an off-screen copy of the nav for measurements. `.home` is rebuilt independently (see
|
|
161
|
+
* `buildMeasurementHomeElement`) rather than cloned, since the live nav may show the home item
|
|
162
|
+
* in the overflow menu instead if it is already collapsed.
|
|
121
163
|
*/
|
|
122
164
|
async renderHiddenNav() {
|
|
123
165
|
const shadowRoot = this.host.shadowRoot;
|
|
@@ -128,12 +170,29 @@ const PostBreadcrumbs = class {
|
|
|
128
170
|
// Deep clone the breadcrumb navigation and flatten its slots into the clone.
|
|
129
171
|
this.nav.querySelectorAll('slot').forEach((source, index) => {
|
|
130
172
|
const target = slots[index];
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
173
|
+
const assignedElements = source.assignedElements();
|
|
174
|
+
if (assignedElements.length > 0) {
|
|
175
|
+
// Insert the assigned elements where the slot used to be, then drop the now empty slot.
|
|
176
|
+
assignedElements.forEach(element => {
|
|
177
|
+
target.insertAdjacentElement('beforebegin', element.cloneNode(true));
|
|
178
|
+
});
|
|
179
|
+
target.remove();
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
// Nothing assigned: keep the slot's own fallback content (e.g. the default home link) by
|
|
183
|
+
// unwrap the <slot> in place, move its children to where it was, then remove it.
|
|
184
|
+
const parent = target.parentNode;
|
|
185
|
+
if (parent) {
|
|
186
|
+
Array.from(target.childNodes).forEach(child => parent.insertBefore(child, target));
|
|
187
|
+
target.remove();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
136
190
|
});
|
|
191
|
+
// Always measure the full, uncollapsed home item — see the method doc above. Uses
|
|
192
|
+
// replaceChild rather than replaceWith, since the latter isn't implemented by Stencil's
|
|
193
|
+
// mock-doc DOM used during SSR/hydration.
|
|
194
|
+
const existingHome = clone.querySelector('.home');
|
|
195
|
+
existingHome?.parentNode?.replaceChild(this.buildMeasurementHomeElement(), existingHome);
|
|
137
196
|
clone.classList.remove('loading');
|
|
138
197
|
clone.classList.add('invisible');
|
|
139
198
|
// Show the overflow menu so that we can include the space it takes up in the measurement.
|
|
@@ -142,31 +201,72 @@ const PostBreadcrumbs = class {
|
|
|
142
201
|
// Wait for all items to be fully hydrated before measuring.
|
|
143
202
|
const items = clone.querySelectorAll('post-breadcrumb-item');
|
|
144
203
|
await Promise.all(Array.from(items).map(item => componentOnReady(item)));
|
|
145
|
-
//
|
|
146
|
-
this.updateItems(items, 0);
|
|
204
|
+
// Uncollapsed layout, both single-line, for measurement.
|
|
205
|
+
this.updateItems(items, 0, false);
|
|
147
206
|
return clone;
|
|
148
207
|
}
|
|
208
|
+
/** Builds `.home` in its full, uncollapsed form for measurement. Mirrors `renderHomeContent`, but as plain DOM since this runs outside the render cycle. */
|
|
209
|
+
buildMeasurementHomeElement() {
|
|
210
|
+
const home = document.createElement('div');
|
|
211
|
+
home.className = `breadcrumb-item home${this.usesHomeText ? '' : ' icon'}`;
|
|
212
|
+
home.setAttribute('role', 'listitem');
|
|
213
|
+
const slottedAnchor = this.hasSlottedHomeAnchor
|
|
214
|
+
? Array.from(this.host.children).find(child => child.getAttribute('slot') === 'home')
|
|
215
|
+
: null;
|
|
216
|
+
if (slottedAnchor) {
|
|
217
|
+
home.append(slottedAnchor.cloneNode(true));
|
|
218
|
+
return home;
|
|
219
|
+
}
|
|
220
|
+
const anchor = document.createElement('a');
|
|
221
|
+
if (this.homeUrl)
|
|
222
|
+
anchor.href = this.homeUrl;
|
|
223
|
+
const label = document.createElement('span');
|
|
224
|
+
if (!this.usesHomeText)
|
|
225
|
+
label.className = 'visually-hidden';
|
|
226
|
+
label.textContent = this.textHome;
|
|
227
|
+
anchor.append(label);
|
|
228
|
+
if (!this.usesHomeText) {
|
|
229
|
+
const icon = document.createElement('post-icon');
|
|
230
|
+
icon.setAttribute('aria-hidden', 'true');
|
|
231
|
+
icon.setAttribute('name', 'home');
|
|
232
|
+
anchor.append(icon);
|
|
233
|
+
}
|
|
234
|
+
home.append(anchor);
|
|
235
|
+
return home;
|
|
236
|
+
}
|
|
149
237
|
renderMenu() {
|
|
150
238
|
const menuId = `${this.id}-menu`;
|
|
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" }))));
|
|
239
|
+
return (h("div", { class: `breadcrumb-item menu ${this.collapsed === 0 && !this.homeCollapsed ? '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" }, this.homeCollapsed && this.usesHomeText && (h("post-menu-item", null, this.renderHomeContent())), h("slot", { name: "menu" }))));
|
|
240
|
+
}
|
|
241
|
+
/** Reused by the plain home item and the home menu — a slot can only be assigned once. */
|
|
242
|
+
renderHomeContent() {
|
|
243
|
+
return (h("slot", { name: "home", onSlotchange: () => this.checkSlottedHomeAnchor() }, h("a", { href: this.homeUrl }, h("span", { class: this.usesHomeText ? undefined : 'visually-hidden' }, this.textHome), !this.usesHomeText && h("post-icon", { "aria-hidden": "true", name: "home" }))));
|
|
244
|
+
}
|
|
245
|
+
/** Degrade stage 2: home renders in full, single-line, not yet collapsed. */
|
|
246
|
+
renderHome() {
|
|
247
|
+
return (h("div", { class: `breadcrumb-item home${this.usesHomeText ? '' : ' icon'}`, role: "listitem" }, this.renderHomeContent()));
|
|
152
248
|
}
|
|
153
249
|
render() {
|
|
154
250
|
if (this.loaded) {
|
|
155
251
|
const items = this.host.querySelectorAll('post-breadcrumb-item');
|
|
156
|
-
this.updateItems(items, this.collapsed);
|
|
252
|
+
this.updateItems(items, this.collapsed, this.lastItemWraps);
|
|
157
253
|
}
|
|
158
|
-
return (h(Host, { key: '
|
|
254
|
+
return (h(Host, { key: '8d5f457a7c6a2df0cfaf5c31f3ffc6937de76e57', "data-version": version, class: this.homeCollapsed && this.usesHomeText ? 'home-collapsed' : undefined }, h("nav", { key: 'ce3fd7ad69060dd6968afaad6170e27eee72682f', "aria-label": this.textBreadcrumbs, ref: el => (this.nav = el), class: this.loaded ? '' : 'loading' }, h("div", { key: '1c400c8c1e1b625203876cc9804936782a2202c6', role: "list" }, (!this.homeCollapsed || !this.usesHomeText) && this.renderHome(), this.renderMenu(), h("slot", { key: '5cf6618b487961c0e7d70637f5396d023660ec55' }), h("slot", { key: 'f4fb662d04d9966c76a22444844d692611472b2d', name: "selected" })))));
|
|
159
255
|
}
|
|
160
256
|
get host() { return getElement(this); }
|
|
161
257
|
};
|
|
162
258
|
__decorate([
|
|
163
|
-
Required(),
|
|
259
|
+
Required({ when: 'hasSlottedHomeAnchor', truthy: false }),
|
|
164
260
|
Url()
|
|
165
261
|
], PostBreadcrumbs.prototype, "homeUrl", void 0);
|
|
166
262
|
__decorate([
|
|
167
|
-
Required(),
|
|
263
|
+
Required({ when: 'hasSlottedHomeAnchor', truthy: false }),
|
|
168
264
|
Type('string')
|
|
169
265
|
], PostBreadcrumbs.prototype, "textHome", void 0);
|
|
266
|
+
__decorate([
|
|
267
|
+
Required(),
|
|
268
|
+
Type('boolean')
|
|
269
|
+
], PostBreadcrumbs.prototype, "homeTextOnly", void 0);
|
|
170
270
|
__decorate([
|
|
171
271
|
Required(),
|
|
172
272
|
Type('string')
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { f as findClosestAcrossShadow } from './event-from-BEcxHjuM.js';
|
|
4
4
|
import { O as OneOf } from './one-of-w2eXPAzD.js';
|
|
5
5
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
@@ -111,7 +111,7 @@ const PostClosebutton = class {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
return (h(Host, { key: '
|
|
114
|
+
return (h(Host, { key: 'b8e2214b904f5167fa3753aab947418891236fcf', "data-version": version }, h("button", { key: '224ca42d3be187062ba9717e4a534ff34eeafaf7', type: this.buttonType, class: "btn btn-icon btn-secondary btn-sm", onClick: this.handleClick }, h("post-icon", { key: '5b289691599d6f9a3bb0fa7a28c71eecd1f5aee7', "aria-hidden": "true", name: "closex" }), h("span", { key: 'e22045f15b3dc8b8b228eb4282114e10db68b186', ref: el => (this.visuallyHidden = el), class: "visually-hidden" }, h("slot", { key: 'e492390c995a993ffc8988a1c90a41e59fbe39f5' })))));
|
|
115
115
|
}
|
|
116
116
|
static get formAssociated() { return true; }
|
|
117
117
|
get host() { return getElement(this); }
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
4
4
|
import { c as createValidatorDecorator, g as getValidationContext } from './create-validator-decorator--a-qkYfP.js';
|
|
5
5
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
@@ -3689,7 +3689,7 @@ try {
|
|
|
3689
3689
|
// environments (e.g. Next.js pre-rendering) with `HTMLInputElement is not defined`.
|
|
3690
3690
|
let cachedNativeValueDescriptor;
|
|
3691
3691
|
function nativeValueDescriptor() {
|
|
3692
|
-
cachedNativeValueDescriptor
|
|
3692
|
+
cachedNativeValueDescriptor ??= Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value');
|
|
3693
3693
|
return cachedNativeValueDescriptor;
|
|
3694
3694
|
}
|
|
3695
3695
|
// iMask adapter that bypasses the instance-level `input.value` override (which returns ISO strings)
|
|
@@ -4263,6 +4263,15 @@ const PostDatePicker = class {
|
|
|
4263
4263
|
console.error('hide: popoverRef is null or undefined');
|
|
4264
4264
|
}
|
|
4265
4265
|
}
|
|
4266
|
+
static { this.FLYOUT_OFFSET = 4; }
|
|
4267
|
+
// Cells per row for each view
|
|
4268
|
+
static {
|
|
4269
|
+
this.COLUMNS_BY_VIEW = {
|
|
4270
|
+
days: 7,
|
|
4271
|
+
months: 4,
|
|
4272
|
+
years: 4,
|
|
4273
|
+
};
|
|
4274
|
+
}
|
|
4266
4275
|
/**
|
|
4267
4276
|
* Get the system locale (e.g.`en`, etc.) from the closest parent with a `lang` attribute,
|
|
4268
4277
|
* or fallback to a default language code if not found or in server environment.
|
|
@@ -4893,11 +4902,11 @@ const PostDatePicker = class {
|
|
|
4893
4902
|
}
|
|
4894
4903
|
}
|
|
4895
4904
|
render() {
|
|
4896
|
-
return (h(Host, { key: '
|
|
4905
|
+
return (h(Host, { key: 'aa624e30312b6e9af82ab3ae508b7527ebb99bdc', "data-version": version }, this.inline && (h("div", { key: '3643fb239e920945cb1438bb510047b19a6fc826', dir: this.textDirection }, h("slot", { key: '08113b74ebe5d1faede4dc4412858408870ccb3b' }), h("div", { key: 'b8cec572edeae4ef2b4d0bb582a8d4085e4815e9', class: "datepicker-container" }))), !this.inline && (h("div", { key: 'a3ab6ca2fded0644a3cb3a513100b309882a67b7', dir: this.textDirection }, h("div", { key: 'd1e3ec263fe3cbcfa7c78de9997be403e8dd8a1f', class: {
|
|
4897
4906
|
'calendar-input': !this.range,
|
|
4898
4907
|
'calendar-input-range': this.range,
|
|
4899
4908
|
'disabled': this.inputDisabled,
|
|
4900
|
-
} }, h("slot", { key: '
|
|
4909
|
+
} }, h("slot", { key: '5b747326d65bd4efa46cd7b6c0b20510ba1b894c' }), h("button", { key: '9b053c841863418e063b29fd1344dff8803bff00', onClick: () => this.show(), "aria-haspopup": "true", "aria-label": this.textToggleCalendar, disabled: this.inputDisabled, ref: e => (this.dpTrigger = e) }, h("post-icon", { key: 'badf30f287ca4776bedbd2323d03c1e7352e9a41', name: "calendar" }))), h("post-popovercontainer", { key: 'f5ccb7e7eb04e8f2251e87b8cc53bf0f613f174b', placement: "bottom-end", offset: PostDatePicker.FLYOUT_OFFSET, ref: e => (this.popoverRef = e) }, h("div", { key: '9054611105846624392ec79737d997a386a21ae2', class: "datepicker-container" }))))));
|
|
4901
4910
|
}
|
|
4902
4911
|
get host() { return getElement(this); }
|
|
4903
4912
|
static get watchers() { return {
|
|
@@ -4920,13 +4929,6 @@ const PostDatePicker = class {
|
|
|
4920
4929
|
}]
|
|
4921
4930
|
}; }
|
|
4922
4931
|
};
|
|
4923
|
-
PostDatePicker.FLYOUT_OFFSET = 4;
|
|
4924
|
-
// Cells per row for each view
|
|
4925
|
-
PostDatePicker.COLUMNS_BY_VIEW = {
|
|
4926
|
-
days: 7,
|
|
4927
|
-
months: 4,
|
|
4928
|
-
years: 4,
|
|
4929
|
-
};
|
|
4930
4932
|
__decorate([
|
|
4931
4933
|
DateValue(),
|
|
4932
4934
|
IsoDate()
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { b as breakpoint } from './breakpoints-I1j7a0bW.js';
|
|
4
4
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
5
5
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
@@ -78,10 +78,10 @@ const PostFooter = class {
|
|
|
78
78
|
const allGridSlotsEmpty = GRID_SLOTS.every(slotName => !this.slotDisplayed[slotName]);
|
|
79
79
|
const renderMain = !allGridSlotsEmpty || renderSocialmedia || renderApp || renderBusinesssectors;
|
|
80
80
|
const renderBase = renderCopyright || renderMeta;
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '08a1ce26926dace6b5b58df118007107c971221e', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: 'bcc5101df4f8e203fdba9075e34b7aa125eb53ce' }, h("h2", { key: 'a8efa01756ea699f5f66346e3cfe05cc56f36264', class: "visually-hidden" }, this.textFooter), h("div", { key: '1b8e30a01c3f0a711f0351b36d396f90511154c4', class: { 'prefooter': true, 'd-none': !renderPrefooter } }, h("div", { key: '2c900ed450bc1dc5ad655d35f5f50b1b5a268fec', class: "footer-container" }, h("slot", { key: '8ab8cef6c639251543c65ed21a1f14adf043029e', onSlotchange: this.handleSlotChange, name: "prefooter" }))), h("div", { key: 'e3f3bedd9725968fbce6e887e22842a7e8e5ffa5', class: { 'footer-main': true, 'd-none': !renderMain } }, h("div", { key: '76cec7363e3771da636a6c0a32afbf16d5c4d405', class: "footer-container" }, h("div", { key: '4e9ea3788103175b48839b6bf815d4c675769c97', class: { 'footer-grid': true, 'd-none': allGridSlotsEmpty } }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '64d10c9fb543290e078f7fff098b401926b3bf4b', class: {
|
|
82
82
|
'footer-column': true,
|
|
83
83
|
'd-none': !renderSocialmedia && !renderApp,
|
|
84
|
-
} }, h("div", { key: '
|
|
84
|
+
} }, h("div", { key: '05b566b43e2c4fed2919e3312a718ea392cad0f7', class: { 'footer-socialmedia': true, 'd-none': !renderSocialmedia } }, h("slot", { key: 'a46f739c9d4b6cbf96988f96f89d7cc093797b40', onSlotchange: this.handleSlotChange, name: "socialmedia" })), h("div", { key: 'f28490dfaa982a609ba1eb393339980a358488e5', class: { 'footer-app': true, 'd-none': !renderApp } }, h("slot", { key: '01c10bf12eb2f39a0dbceec320b476041d46c631', onSlotchange: this.handleSlotChange, name: "app" }))), h("div", { key: '609935b6b6ee48176d7e44919726abdaff8e6161', class: { 'footer-businesssectors': true, 'd-none': !renderBusinesssectors } }, h("slot", { key: '9f153ba54a08d48e55644fe58089ed7122c1cfdd', onSlotchange: this.handleSlotChange, name: "businesssectors" })))), h("div", { key: '03fd76b711b9d9f1f912ac7a4199ee2706bd3a9a', class: { 'footer-base': true, 'd-none': !renderBase } }, h("div", { key: '3eb810a55e3193295f8b9291bd824af77a5a2fac', class: "footer-container" }, h("div", { key: '04c38d8d5e483b9f9cc8acca1cc8224e381651f1', class: { 'footer-copyright': true, 'd-none': !renderCopyright } }, h("slot", { key: 'fdd11e63af64161288533c21ea455f3513ac7d87', onSlotchange: this.handleSlotChange, name: "copyright" })), h("div", { key: 'adffa17e5f3b94af32e489d113afd9908e2b7abf', class: { 'footer-meta': true, 'd-none': !renderMeta } }, h("slot", { key: '7ebaf69055332d184b86a58e57db1c214b5f08c6', onSlotchange: this.handleSlotChange, name: "meta" })))))));
|
|
85
85
|
}
|
|
86
86
|
get host() { return getElement(this); }
|
|
87
87
|
};
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-h3
|
|
|
2
2
|
import { b as breakpoint } from './breakpoints-I1j7a0bW.js';
|
|
3
3
|
import { E as EventFrom } from './event-from-BEcxHjuM.js';
|
|
4
4
|
import { g as getDeepFocusableChildren } from './get-focusable-children-DxYnH2ye.js';
|
|
5
|
-
import { v as version } from './package-
|
|
5
|
+
import { v as version } from './package-T8T3po4z.js';
|
|
6
6
|
import { t as throttle } from './index-bR8vy6-s.js';
|
|
7
7
|
import { f as fade } from './fade-DsgPYmAa.js';
|
|
8
8
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
@@ -313,10 +313,10 @@ const PostHeader = class {
|
|
|
313
313
|
render() {
|
|
314
314
|
const onDesktop = this.device === 'desktop';
|
|
315
315
|
const onTabletAndMobile = this.device !== 'desktop';
|
|
316
|
-
return (h(Host, { key: '
|
|
316
|
+
return (h(Host, { key: 'd288ef2e58942c2cbc5da673076548c97eef04ed', "data-version": version, "data-color-scheme": "light", "data-burger-menu": this.hasBurgerMenu, "data-menu-extended": this.burgerMenuExtended }, h("header", { key: '5357f3edf382dec9b552fdfe9fb51d0878de697c' }, h("div", { key: 'bafa11390b33056e5a3d1a8a2922fd3a43a25020', class: "global-header" }, h("div", { key: '2d54e8d2931864880ff7a28aea64625e775ce327', class: "section" }, h("div", { key: 'b3a87bbf3b87213e22043d58a7298d0cff530cdf', class: "logo" }, h("slot", { key: '9d559b9231dc23841e277d3f4633cdeba2da12b2', name: "post-logo" })), h("div", { key: '64ebd463868ce8b417023651e745e33331feb908', class: "sliding-controls" }, onDesktop && (h("div", { key: 'b4e7d7231a0d8bebe620d41cb655c3686449b19f', class: "audience" }, h("slot", { key: '0781a76b1853a842dc74ec2a2a649f7de487e148', name: "audience" }))), h("slot", { key: '25f1d5b34a5aa950014214f810f3acca95dbbe80', name: "global-nav-primary" }), (onDesktop || !this.hasMainNav) && [
|
|
317
317
|
h("slot", { key: "global-nav-secondary", name: "global-nav-secondary" }),
|
|
318
318
|
h("slot", { key: "language-menu", name: "language-menu" }),
|
|
319
|
-
], h("slot", { key: '
|
|
319
|
+
], h("slot", { key: 'd7121e5e9ddf825f96a3a82e65ff135c61891adb', name: "post-login" }), onTabletAndMobile && this.hasMainNav && (h("post-togglebutton", { key: 'dd0bcf9cfd96d4ffa44fc549d518d7b39d287156', class: "burger-button", ref: el => (this.burgerMenuButton = el), onClick: () => this.toggleBurgerMenu() }, h("span", { key: '23004cb12733a7081f828d33327cc26adafe3888' }, this.textMenu), h("post-icon", { key: '7fb36892eadfcce0a85d964c411aeafc3fbbde1b', "aria-hidden": "true", name: "burger", "data-showwhen": "untoggled" }), h("post-icon", { key: 'a41292205573c03f25d225d4f4296f75ffe6c7ce', "aria-hidden": "true", name: "closex", "data-showwhen": "toggled" })))))), h("div", { key: '7d6d1424881bb5277210c86b194dfb9e5dcb7c59', ref: el => (this.localHeader = el), class: { 'local-header': true, 'megadropdown-open': this.megadropdownOpen } }, h("div", { key: '724a8d3f79112875ba343470f9d0b753ce5d4861', class: "section" }, h("slot", { key: '688aafdec4e4d5565f3d0a9d9bd9bb7bc78152be', name: "side-nav" }), h("slot", { key: '12590bfb4bfcc8c565f008a8e3d75b5951eb73bc', name: "title" }), this.hasTitle && h("slot", { key: 'd862de0f3aaba5ea22a26c387ea7e93dc0c5e79c', name: "local-nav" }), onDesktop && h("slot", { key: '1a25ec6694bc8b2c06e21449dc566f36595afbb5', name: "main-nav" }), onDesktop && !this.hasTitle && h("slot", { key: '987c26ee73fb19049fdd19de79b537b71e2771de', name: "local-nav" }))), this.hasBurgerMenu && this.renderBurgerMenu())));
|
|
320
320
|
}
|
|
321
321
|
get host() { return getElement(this); }
|
|
322
322
|
static get watchers() { return {
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { O as OneOf } from './one-of-w2eXPAzD.js';
|
|
4
4
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
5
5
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
@@ -110,7 +110,7 @@ const PostIcon = class {
|
|
|
110
110
|
}).filter(([_key, value]) => value !== null));
|
|
111
111
|
}
|
|
112
112
|
render() {
|
|
113
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '405ccfde4206c14f044575d0b23998d93a03ffb6', "data-version": version }, h("span", { key: 'ad70ccf63add4b881ef6096ae460e13fba09f508', style: this.getStyles() })));
|
|
114
114
|
}
|
|
115
115
|
get host() { return getElement(this); }
|
|
116
116
|
};
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { S as SWITCH_VARIANTS } from './switch-variants-DjIHLduJ.js';
|
|
4
4
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
5
5
|
import { T as Type } from './type-Daxpt5v6.js';
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { S as SWITCH_VARIANTS } from './switch-variants-DjIHLduJ.js';
|
|
4
4
|
import { n as nanoid } from './nanoid-8LXe8Zt_.js';
|
|
5
5
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
|
|
4
4
|
const postLinkareaCss = () => `:host{display:block;cursor:pointer;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(:focus-within){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-within){outline-color:Highlight !important}}`;
|
|
5
5
|
|
|
@@ -66,7 +66,7 @@ const PostLinkarea = class {
|
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: 'a187468c97584b393efb0f73966716947243fe1f', "data-version": version, onClick: (e) => this.dispatchClick(e) }, h("slot", { key: 'a374c748871f36acf8ceda423c121645e97a6ce1' })));
|
|
70
70
|
}
|
|
71
71
|
get host() { return getElement(this); }
|
|
72
72
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-h3opCZqH.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-T8T3po4z.js';
|
|
3
3
|
|
|
4
4
|
const postListboxOptionCss = () => `:host{padding:12px 12px 9px 16px;background-color:#fff;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;-ms-flex-pack:justify;justify-content:space-between}:host(:hover){background-color:#f0efed}:host([data-active=true]){outline:2px solid #000;outline-offset:-4px}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid #050400;outline-offset:2px}.option-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0}.option-description{display:none;font-size:.85em;color:#666}:host(:not(:empty)) .option-description{display:block}post-icon{width:24px;height:24px}`;
|
|
5
5
|
|
|
@@ -14,9 +14,9 @@ const PostListboxOption = class {
|
|
|
14
14
|
this.highlighted = false;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '38481f1a4721d50530bbd96a80ebc89933c8311c', "data-version": version, role: "option", "aria-selected": `${this.selected}`, "data-active": this.highlighted ? 'true' : null,
|
|
18
18
|
/* Prevent focus change from triggering onblur event in post-autocomplete */
|
|
19
|
-
onPointerDown: (e) => e.preventDefault(), onClick: () => this.postOptionSelected.emit(this.value), id: `post-listbox-option-${this.optionId}` }, h("span", { key: '
|
|
19
|
+
onPointerDown: (e) => e.preventDefault(), onClick: () => this.postOptionSelected.emit(this.value), id: `post-listbox-option-${this.optionId}` }, h("span", { key: '25403d2e68f44f68d5c3f2097c5aab57f90176cf', class: "option-content" }, this.value, h("span", { key: '0caf89cfb81695f33637facd07dcf628fa6024a8', class: "option-description" }, h("slot", { key: '857ed6d15014fb8d32f7074c9f1622d540f8ed13' }))), this.selected && h("post-icon", { key: '3b300532591be12424a84cebd082b8c0c3ca6935', "aria-hidden": "true", name: "checkmark" })));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
PostListboxOption.style = postListboxOptionCss();
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { E as EventFrom } from './event-from-BEcxHjuM.js';
|
|
4
4
|
|
|
5
5
|
const postListboxCss = () => `post-popovercontainer{border-radius:4px;overflow:hidden;-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}`;
|
|
@@ -134,7 +134,7 @@ const PostListbox = class {
|
|
|
134
134
|
this.updateSelection(event.detail);
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
|
-
return (h(Host, { key: '
|
|
137
|
+
return (h(Host, { key: 'a59296af752a3f88bcd70663d0ce12f61718e92f', "data-version": version, role: "listbox" }, h("post-popovercontainer", { key: '665dd563705515022edc79a4d98e9ac43b80c525', placement: "bottom-start", ref: el => (this.popoverContainer = el) }, h("slot", { key: 'd8a37fd905dfaca07286913a0c680e61744d65e1', name: "blank-slate" }), h("slot", { key: '22e367ae36329d0586e1a275692983cf0c004df4' }))));
|
|
138
138
|
}
|
|
139
139
|
get host() { return getElement(this); }
|
|
140
140
|
};
|
|
@@ -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-T8T3po4z.js';
|
|
3
3
|
import { U as Url } from './url-B61rZU6Z.js';
|
|
4
4
|
import './create-validator-decorator--a-qkYfP.js';
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ const PostLogo = class {
|
|
|
30
30
|
render() {
|
|
31
31
|
const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
|
|
32
32
|
const LogoTag = logoLink ? 'a' : 'span';
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '1f69b0ddc0ecf2fde47423cd7824fcbe76e4a529', "data-version": version }, h(LogoTag, { key: '096736bd50a6dd43e02a104e7e81897cb286db60', class: `logo ${logoLink ? 'logo-link' : ''}`, ...(logoLink ? { href: logoLink } : {}) }, h("span", { key: 'bc49b9591424f02744f771eb1079911f02ceca33', class: "description" }, h("slot", { key: 'ea905eac805e2a9940bfe50aa222bef738d15d27', onSlotchange: () => this.checkDescription() })), h("svg", { key: '482d94c38347017269dabd0ab3d15f4ede14f187', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: 'fcd3dc56e8a0e448abe65b557639a8bea8ca580f', id: "Logo" }, h("rect", { key: '11ed7bad596ee07301f1c1101ddded089ef2bf99', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '6ab9d28c8492c746a2620cff62dbd92a59a00aff', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: '8b96cee7ee8ad1ec3c22aaf7928f7a711c05c828', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
|
|
34
34
|
}
|
|
35
35
|
get host() { return getElement(this); }
|
|
36
36
|
};
|