@swisspost/internet-header 10.4.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-CL8OSAS4.js → package-DdU-rENe.js} +1 -1
- package/dist/cjs/{package-HZ6bBKwJ.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 -61
- package/dist/cjs/post-closebutton.cjs.entry.js +46 -8
- package/dist/cjs/post-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/post-footer.cjs.entry.js +4 -5
- package/dist/cjs/post-header.cjs.entry.js +5 -5
- 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 +3 -3
- 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 +2 -2
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-megadropdown.cjs.entry.js +3 -4
- package/dist/cjs/post-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-menu_2.cjs.entry.js +25 -10
- 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 +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 +4 -5
- 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 +3 -3
- 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 +2 -2
- 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-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-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/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-B4lS4y6E.js → package-CWWSnot0.js} +1 -1
- package/dist/esm/{package-tTf1w3A9.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 -61
- package/dist/esm/post-closebutton.entry.js +46 -8
- package/dist/esm/post-date-picker.entry.js +3 -3
- package/dist/esm/post-footer.entry.js +4 -5
- package/dist/esm/post-header.entry.js +5 -5
- 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 +3 -3
- 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 +2 -2
- package/dist/esm/post-megadropdown-trigger.entry.js +3 -3
- package/dist/esm/post-megadropdown.entry.js +3 -4
- package/dist/esm/post-menu-item.entry.js +1 -1
- package/dist/esm/post-menu_2.entry.js +25 -10
- 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 +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 +4 -5
- 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 +3 -3
- 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 +2 -2
- 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-B4lS4y6E.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-92e0402a.entry.js → p-004c6278.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-429f04bc.system.entry.js → p-03a80973.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-79512699.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-80cb2bdb.entry.js → p-138f2186.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-14a5b926.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-bc470741.entry.js → p-1501e9e0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-65cfb55b.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-8e61f407.system.entry.js → p-204aaba4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f7a9a615.system.entry.js → p-250ff1e6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e9582f72.system.entry.js → p-2e23353c.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0de83906.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-06de7983.entry.js → p-38159567.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-756574fd.entry.js → p-3b8bc9bf.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-3dfdd503.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-be97ff93.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-fe440b79.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-ecb554c7.system.entry.js → p-51c3d47f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-58318d31.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a204bb79.system.entry.js → p-5e98bd48.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2ec721b4.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-31f0de1e.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-3c228ed0.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-52e305d7.system.entry.js → p-7f223aac.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-81985723.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-80993537.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-1801d35d.system.entry.js → p-8978be6a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d7e470ff.system.entry.js → p-8afbbdf6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-c1e959fb.entry.js → p-8c11a307.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-48cace4d.system.entry.js → p-8e81fedf.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9b4f74a6.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-BhneAPKT.system.js → p-Bkt75U1-.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-B4kfqOjJ.js → p-C3HusDuA.js} +1 -1
- package/dist/swisspost-internet-header/{p-D8meK6Dd.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-CHYNOqn0.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-b8bb2c10.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-de258c90.system.entry.js → p-a3f0cee6.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-36be5234.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-09d4521f.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-0da236b6.system.entry.js → p-badd758a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-658dd74d.entry.js → p-bb7fe5c4.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7c53064b.entry.js → p-c0cd2db1.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-90e78f26.system.entry.js → p-c275ce9f.system.entry.js} +1 -1
- 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-4876e706.system.entry.js → p-cb0bcdf7.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bf2996de.system.entry.js → p-cc0d4d02.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-120a2867.entry.js → p-d6f0b224.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-17a3d14a.system.entry.js → p-d90947de.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-db9eae5a.system.entry.js → p-d96cbabb.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f32d49d7.entry.js → p-dbb7038b.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2b04e974.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-2501eb09.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-f2ed3863.entry.js → p-e008aab0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f523050e.entry.js → p-e02d5b07.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9e57bd5a.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-25a5281d.entry.js → p-e9569ed9.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ec43767f.entry.js → p-eb0b4ff8.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a9c5178f.system.entry.js → p-ee42c33b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-85087a43.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-ab97669b.system.entry.js → p-f8cb3ed7.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-e3515572.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-bda3094c.entry.js → p-fddbd731.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ec06df2f.entry.js → p-fec7c3c1.entry.js} +1 -1
- 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-tTf1w3A9.js +0 -1
- package/dist/swisspost-internet-header/p-16182f34.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1a39c0c7.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1aeb1d6c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1ec41382.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1f30f235.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-1fe8276f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2738143c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-2990978f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3373f238.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-34259104.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3c917e9d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-42394464.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4b44ce5f.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-4d3939eb.entry.js +0 -1
- package/dist/swisspost-internet-header/p-5efffa89.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7a66d431.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-7baa1968.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-805ee472.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-83410f32.entry.js +0 -1
- package/dist/swisspost-internet-header/p-8b9c9fda.entry.js +0 -1
- package/dist/swisspost-internet-header/p-925c8906.entry.js +0 -1
- package/dist/swisspost-internet-header/p-999af688.system.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-acabba28.entry.js +0 -1
- package/dist/swisspost-internet-header/p-aefc1c4c.entry.js +0 -1
- package/dist/swisspost-internet-header/p-b05dd248.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-c546bebe.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ca9c885e.entry.js +0 -1
- package/dist/swisspost-internet-header/p-e26d9136.entry.js +0 -1
- package/dist/swisspost-internet-header/p-ec45ed63.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-f56fe63d.entry.js +0 -1
- package/dist/swisspost-internet-header/p-fe9ac5ca.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-rEfV4v4a.js +0 -1
- package/dist/swisspost-internet-header/p-tTf1w3A9.js +0 -1
|
@@ -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}a.btn.btn-tertiary.px-0:not(:hover){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){border-width:1px !important;-webkit-transition:none;transition:none}:host(:not([variant=menuitem])) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !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: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+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uNDUuMjktLjcxLjI5WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTMuNSA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ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}: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){border-width:1px !important;-webkit-transition:none;transition:none}:host([selected]:not([selected=false])) :is(button,a):is(button){background-color:ButtonFace !important;border-color:ButtonBorder !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: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+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxI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ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+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+PHBhdGggZD0iTTUuMzggMTRjLS4xOSAwLS4zOC0uMDctLjUzLS4yMmEuNzU0Ljc1NCAwIDAgMSAwLTEuMDZMOS41NyA4IDQuODUgMy4yOGMtLjI5LS4yOS0uMjktLjc3IDAtMS4wNnMuNzctLjI5IDEuMDYgMEwxMS42OSA4bC01Ljc4IDUuNzhjLS4xNS4xNS0uMzQuMjItLjUzLjIyIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik04LjA3IDIwLjcyYy0uMjIgMC0uNDUtLjA4LS42Mi0uMjZhLjg4Ljg4IDAgMCAxIDAtMS4yNGw3LjI2LTcuMjZMNy40NSA0LjdhLjg4Ljg4IDAgMCAxIDAtMS4yNGMuMzQtLjM0LjktLjM0IDEuMjQgMGw4LjUgOC41LTguNDkgOC40OWMtLjE3LjE3LS40LjI2LS42Mi4yNloiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTEwLjc2IDI3LjVjLS4yNiAwLS41MS0uMS0uNzEtLjI5YS45OTYuOTk2IDAgMCAxIDAtMS40MWw5Ljc5LTkuNzktOS43OS05LjgxYS45OTYuOTk2IDAgMSAxIDEuNDEtMS40MUwyMi42NyAxNiAxMS40NiAyNy4yMWMtLjIuMi0uND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iBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}: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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1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eW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZXZyb25yaWdodCIvPjwvZz48L3N2Zz4=")}.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,92 +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
|
-
|
|
89
|
-
|
|
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));
|
|
90
110
|
});
|
|
91
111
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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();
|
|
95
118
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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();
|
|
101
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;
|
|
102
148
|
}
|
|
103
149
|
renderMenu() {
|
|
104
150
|
const menuId = `${this.id}-menu`;
|
|
105
|
-
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" }))));
|
|
106
152
|
}
|
|
107
153
|
render() {
|
|
108
|
-
|
|
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" })))));
|
|
109
159
|
}
|
|
110
160
|
get host() { return getElement(this); }
|
|
111
161
|
};
|
|
@@ -1,9 +1,48 @@
|
|
|
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
|
+
import { f as findClosestAcrossShadow } from './event-from-BEcxHjuM.js';
|
|
3
4
|
import { O as OneOf } from './one-of-w2eXPAzD.js';
|
|
4
5
|
import { R as Required } from './required-tHxh_hWW.js';
|
|
5
6
|
import './create-validator-decorator--a-qkYfP.js';
|
|
6
7
|
|
|
8
|
+
const CLOSABLE_TARGETS = [
|
|
9
|
+
{
|
|
10
|
+
predicate: el => el.localName === 'post-banner',
|
|
11
|
+
close: el => void el.dismiss(),
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
predicate: el => el.localName === 'post-popover',
|
|
15
|
+
close: el => void el.hide(),
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
predicate: el => el.localName === 'post-popovercontainer',
|
|
19
|
+
close: el => void el.hide(),
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
predicate: el => el.localName === 'post-collapsible',
|
|
23
|
+
close: el => void el.toggle(false),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
predicate: el => el.localName === 'post-accordion-item',
|
|
27
|
+
close: el => void el.toggle(false),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
predicate: el => el.localName === 'dialog',
|
|
31
|
+
close: el => el.close(),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
predicate: el => el.hasAttribute('popover'),
|
|
35
|
+
close: el => el.togglePopover(false),
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
function findClosableTarget(start) {
|
|
39
|
+
const el = findClosestAcrossShadow(start, (el) => CLOSABLE_TARGETS.some(t => t.predicate(el)));
|
|
40
|
+
if (!el)
|
|
41
|
+
return null;
|
|
42
|
+
const match = CLOSABLE_TARGETS.find(t => t.predicate(el));
|
|
43
|
+
return { element: el, close: () => match.close(el) };
|
|
44
|
+
}
|
|
45
|
+
|
|
7
46
|
const BUTTON_TYPES = ['button', 'reset'];
|
|
8
47
|
const PLACEMENT = ['manual', 'auto'];
|
|
9
48
|
const SIZE = ['default', 'small'];
|
|
@@ -32,7 +71,7 @@ const PostClosebutton = class {
|
|
|
32
71
|
}
|
|
33
72
|
/**
|
|
34
73
|
* The "type" attribute used for the close button
|
|
35
|
-
|
|
74
|
+
|
|
36
75
|
*/
|
|
37
76
|
this.buttonType = 'button';
|
|
38
77
|
/**
|
|
@@ -43,6 +82,10 @@ const PostClosebutton = class {
|
|
|
43
82
|
* The size of the close button.
|
|
44
83
|
*/
|
|
45
84
|
this.size = 'default';
|
|
85
|
+
this.handleClick = () => {
|
|
86
|
+
const target = findClosableTarget(this.host);
|
|
87
|
+
target?.close();
|
|
88
|
+
};
|
|
46
89
|
}
|
|
47
90
|
componentDidLoad() {
|
|
48
91
|
if (globalThis.MutationObserver) {
|
|
@@ -67,13 +110,8 @@ const PostClosebutton = class {
|
|
|
67
110
|
console.error(`The \`${this.host.localName}\` component requires content for accessibility.`);
|
|
68
111
|
}
|
|
69
112
|
}
|
|
70
|
-
handleClick() {
|
|
71
|
-
if (this.buttonType === 'reset')
|
|
72
|
-
this.internals.form?.reset();
|
|
73
|
-
this.host.closest('dialog')?.close();
|
|
74
|
-
}
|
|
75
113
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
114
|
+
return (h(Host, { key: 'f46ba6cbd82793b2a3d3a72c2f89236f0904eb68', "data-version": version }, h("button", { key: 'd014e76ccce88a087f8dd9caaac002eb09f64699', type: this.buttonType, class: "btn btn-icon btn-secondary btn-sm", onClick: this.handleClick }, h("post-icon", { key: '442305b327aabe61f259b98694118ec1b4ed2f09', "aria-hidden": "true", name: "closex" }), h("span", { key: '530149339a2a983d1e5d23c149abd0faf6f912b5', ref: el => (this.visuallyHidden = el), class: "visually-hidden" }, h("slot", { key: 'b90d5bea08c70c6df33dc5fc74bcf06eb2b6cd14' })))));
|
|
77
115
|
}
|
|
78
116
|
static get formAssociated() { return true; }
|
|
79
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-Ny5VnydI.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';
|
|
@@ -4893,11 +4893,11 @@ const PostDatePicker = class {
|
|
|
4893
4893
|
}
|
|
4894
4894
|
}
|
|
4895
4895
|
render() {
|
|
4896
|
-
return (h(Host, { key: '
|
|
4896
|
+
return (h(Host, { key: '8f3e9c45b6536e766d2930bb7647ccb230a1a53c', "data-version": version }, this.inline && (h("div", { key: '37c23df45461da546c03ab5e487e6831992a1a6f', dir: this.textDirection }, h("slot", { key: '6c031a739d43642604c752e2101bbc2d4fbb39e5' }), h("div", { key: '42ecf6418c4522d15a24341b127b444aedbfc7be', class: "datepicker-container" }))), !this.inline && (h("div", { key: '0166eba762a209d0113f42c19715a9dde86eef2d', dir: this.textDirection }, h("div", { key: '14f687ecc53fd5681aa52abd955e18aa17991b2c', class: {
|
|
4897
4897
|
'calendar-input': !this.range,
|
|
4898
4898
|
'calendar-input-range': this.range,
|
|
4899
4899
|
'disabled': this.inputDisabled,
|
|
4900
|
-
} }, h("slot", { key: '
|
|
4900
|
+
} }, h("slot", { key: 'afc114dc156c665de0b1a23732efaf3e221929d4' }), h("button", { key: '205ef45ccc828418af1ef7b3b09def83b87c9b26', onClick: () => this.show(), "aria-haspopup": "true", "aria-label": this.textToggleCalendar, disabled: this.inputDisabled, ref: e => (this.dpTrigger = e) }, h("post-icon", { key: '6730069a64bc2bb461d72e5c0e615d37ca57b74d', name: "calendar" }))), h("post-popovercontainer", { key: '56e1dfd0fd04442f7778c547fc75cba8caba84a5', placement: "bottom-end", offset: PostDatePicker.FLYOUT_OFFSET, ref: e => (this.popoverRef = e) }, h("div", { key: '43ff0d83760214ff8e1ad06c2f8d7c6626e178c1', class: "datepicker-container" }))))));
|
|
4901
4901
|
}
|
|
4902
4902
|
get host() { return getElement(this); }
|
|
4903
4903
|
static get watchers() { return {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-h3opCZqH.js';
|
|
2
|
-
import { v as version } from './package-
|
|
3
|
-
import { b as breakpoint } from './breakpoints-
|
|
2
|
+
import { v as version } from './package-Ny5VnydI.js';
|
|
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';
|
|
6
|
-
import './index-bR8vy6-s.js';
|
|
7
6
|
import './create-validator-decorator--a-qkYfP.js';
|
|
8
7
|
|
|
9
8
|
const postFooterCss = () => `:host{display:block}footer{--post-footer-container-padding-inline:16px;--post-footer-container-max-width:1200px;--post-footer-prefooter-padding-block:16px;--post-footer-grid-template:auto / auto;--post-footer-grid-padding-block:32px;--post-footer-column-flex-direction:column;--post-footer-column-align-items:start;--post-footer-column-gap:0;--post-footer-list-flex-direction:column;--post-footer-list-gap:8px;--post-footer-list-align-items:start;--post-footer-socialmedia-padding-block:16px;--post-footer-app-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-businesssectors-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-base-padding-block:var(--post-footer-socialmedia-padding-block);--post-footer-base-gap:8px;--post-footer-meta-font-size:inherit;--post-footer-copyright-font-size:var(--post-footer-meta-font-size)}@media screen and (min-width: 600px){footer{--post-footer-prefooter-padding-block:32px;--post-footer-grid-template:repeat(2, auto) / repeat(2, auto);--post-footer-list-flex-direction:row;--post-footer-list-gap:16px;--post-footer-list-align-items:center;--post-footer-base-gap:4px}}@media screen and (min-width: 780px){footer{--post-footer-container-padding-inline:40px;--post-footer-grid-padding-block:48px;--post-footer-socialmedia-padding-block:24px}}@media screen and (min-width: 1024px){footer{--post-footer-grid-template:auto / repeat(4, auto);--post-footer-column-flex-direction:row;--post-footer-column-align-items:center;--post-footer-column-gap:32px;--post-footer-list-gap:24px;--post-footer-meta-font-size:16px}}:is(h3,.h3){margin:0;font-size:var(--post-device-font-size-6);line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-extra-black);text-wrap:balance}::slotted(ul){list-style:none;padding:0;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.footer-container{-webkit-box-sizing:content-box;box-sizing:content-box;margin:0 auto;padding-inline:var(--post-footer-container-padding-inline);max-width:var(--post-footer-container-max-width)}.prefooter{background-color:#fafafa;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;padding-block:var(--post-footer-prefooter-padding-block)}.prefooter .footer-container{padding-block:0}.footer-main{background-color:#fc0;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632}.prefooter:not(.d-none)+.footer-main{-webkit-border-before:unset;border-block-start:unset}.footer-grid{display:grid;grid-template:var(--post-footer-grid-template);gap:32px 24px;padding-block:var(--post-footer-grid-padding-block)}.footer-grid ::part(button),.footer-grid ::part(body){padding-inline:0}.footer-column{display:-ms-flexbox;display:flex;-ms-flex-direction:var(--post-footer-column-flex-direction);flex-direction:var(--post-footer-column-flex-direction);-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:var(--post-footer-column-align-items);align-items:var(--post-footer-column-align-items);-webkit-column-gap:var(--post-footer-column-gap);-moz-column-gap:var(--post-footer-column-gap);column-gap:var(--post-footer-column-gap)}.footer-socialmedia ::slotted(div),.footer-app ::slotted(div),.footer-meta ::slotted(div){display:-ms-flexbox !important;display:flex !important;-ms-flex-direction:var(--post-footer-list-flex-direction) !important;flex-direction:var(--post-footer-list-flex-direction) !important;gap:var(--post-footer-list-gap) !important;-ms-flex-align:var(--post-footer-list-align-items) !important;align-items:var(--post-footer-list-align-items) !important}.footer-socialmedia{padding-block:var(--post-footer-socialmedia-padding-block)}.footer-app{padding-block:var(--post-footer-app-padding-block)}.prefooter ::slotted(div),.footer-businesssectors ::slotted(div){display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;gap:var(--post-footer-list-gap) !important}.footer-businesssectors{padding-block:var(--post-footer-businesssectors-padding-block)}.footer-base{background-color:#fc0;-webkit-border-before:1px solid #373632;border-block-start:1px solid #373632;padding-block:var(--post-footer-base-padding-block);gap:var(--post-footer-base-gap)}.footer-meta{font-size:var(--post-footer-meta-font-size)}.footer-copyright{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;font-size:var(--post-footer-copyright-font-size)}.d-none{display:none}`;
|
|
@@ -79,10 +78,10 @@ const PostFooter = class {
|
|
|
79
78
|
const allGridSlotsEmpty = GRID_SLOTS.every(slotName => !this.slotDisplayed[slotName]);
|
|
80
79
|
const renderMain = !allGridSlotsEmpty || renderSocialmedia || renderApp || renderBusinesssectors;
|
|
81
80
|
const renderBase = renderCopyright || renderMeta;
|
|
82
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '02edce3d202fefa6fe21a84d1ed97a6ded2d76ce', "data-version": version, "data-color-scheme": "light" }, h("footer", { key: '7d67c940dc73b6dd16283e7c7a7feeda05f50f80' }, h("h2", { key: '1d71a47f631f463c15b7ac02c7574d4f8adbfe2e', class: "visually-hidden" }, this.textFooter), h("div", { key: '9fd3d08883d63c8aaccb4c3c32c0c8a81c3f8e1c', class: { 'prefooter': true, 'd-none': !renderPrefooter } }, h("div", { key: '99a6abfe43b586e5486c4ceeff3c7176905ef631', class: "footer-container" }, h("slot", { key: '5616b403340d5e2395c0d949926f99c56936b662', onSlotchange: this.handleSlotChange, name: "prefooter" }))), h("div", { key: 'd6ccd3988b9951bb0e38fd612eae64a1889427ef', class: { 'footer-main': true, 'd-none': !renderMain } }, h("div", { key: '4c8880c1dbf366a408402a884e61fe8e1cf45af0', class: "footer-container" }, h("div", { key: 'a79010da73a749002a25b03052d0427d2dcf6c2e', class: { 'footer-grid': true, 'd-none': allGridSlotsEmpty } }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '335efe778d8b8e2c4a9f3eeffd4d60e5ba670ad2', class: {
|
|
83
82
|
'footer-column': true,
|
|
84
83
|
'd-none': !renderSocialmedia && !renderApp,
|
|
85
|
-
} }, h("div", { key: '
|
|
84
|
+
} }, h("div", { key: '6725d6db6af39a2f2ed4d887a598f262c6314562', class: { 'footer-socialmedia': true, 'd-none': !renderSocialmedia } }, h("slot", { key: '3a2d1c69bc05245842447ac104615f681b02e3a9', onSlotchange: this.handleSlotChange, name: "socialmedia" })), h("div", { key: '38f1a4b8ef975aafb7f4fd90512ea08dc18e3d4c', class: { 'footer-app': true, 'd-none': !renderApp } }, h("slot", { key: 'fbcb201b8ee7b9ac419c7a01e995ce3be7e4acca', onSlotchange: this.handleSlotChange, name: "app" }))), h("div", { key: '76b292642cd8587ffa95277bf43478c785aed594', class: { 'footer-businesssectors': true, 'd-none': !renderBusinesssectors } }, h("slot", { key: '9fa3ead24b007de21d2669421f03ab2fd870d64e', onSlotchange: this.handleSlotChange, name: "businesssectors" })))), h("div", { key: '0278475002d8a479936967c06335cc667519a902', class: { 'footer-base': true, 'd-none': !renderBase } }, h("div", { key: '59d46393b2a04184a6adc445d4b0940f07ad56f8', class: "footer-container" }, h("div", { key: '7bbaebdf46638ffa1946e7c5be6970c8a1e586bb', class: { 'footer-copyright': true, 'd-none': !renderCopyright } }, h("slot", { key: 'c1601db6edc32929d84897330654dbec24bb8543', onSlotchange: this.handleSlotChange, name: "copyright" })), h("div", { key: '1339ee3a91e8f18d757333b74053291080d95e2b', class: { 'footer-meta': true, 'd-none': !renderMeta } }, h("slot", { key: 'aa98ffd65b0138b198e057dbd2c96368bf92c0b0', onSlotchange: this.handleSlotChange, name: "meta" })))))));
|
|
86
85
|
}
|
|
87
86
|
get host() { return getElement(this); }
|
|
88
87
|
};
|