@swisspost/design-system-components 9.0.0-next.14 → 9.0.0-next.16
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/{check-url-1cf6fb0d.js → check-url-1ff4cf75.js} +2 -2
- package/dist/cjs/{index-0ee3ab4a.js → index-5acef487.js} +151 -325
- package/dist/cjs/{index-bea4ac42.js → index-f2eedfeb.js} +1 -1
- package/dist/cjs/index.cjs.js +23 -23
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-7d11b6ea.js → package-df497c3c.js} +1 -1
- package/dist/cjs/{post-accordion-29861d97.js → post-accordion-6f5ddd51.js} +4 -10
- package/dist/cjs/{post-accordion-item-0da0f7aa.js → post-accordion-item-ff9179d7.js} +7 -14
- package/dist/cjs/post-accordion-item.cjs.entry.js +5 -5
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-avatar-01b9cd6d.js → post-avatar-7fde1cbe.js} +11 -23
- package/dist/cjs/post-avatar.cjs.entry.js +3 -3
- package/dist/cjs/{post-back-to-top-9a5647f7.js → post-back-to-top-5aeed9be.js} +4 -8
- package/dist/cjs/post-back-to-top.cjs.entry.js +3 -3
- package/dist/cjs/{post-banner-33929088.js → post-banner-c09c7292.js} +12 -26
- package/dist/cjs/post-banner.cjs.entry.js +5 -5
- package/dist/cjs/{post-breadcrumb-1384018e.js → post-breadcrumb-f661fea8.js} +8 -14
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +5 -5
- package/dist/cjs/post-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/{post-card-control-4c85eda3.js → post-card-control-d2b3647f.js} +12 -43
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/post-closebutton_15.cjs.entry.js +5 -5
- package/dist/cjs/{post-collapsible-trigger-0fb2596a.js → post-collapsible-trigger-d9b42b81.js} +5 -11
- package/dist/cjs/post-collapsible_2.cjs.entry.js +5 -5
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/{post-footer-f621a563.js → post-footer-1c85ec39.js} +4 -7
- package/dist/cjs/post-footer.cjs.entry.js +3 -3
- package/dist/cjs/{post-linkarea-865079c1.js → post-linkarea-d10a7588.js} +2 -2
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/{post-menu-item-ab3e2e7e.js → post-menu-item-ed70f804.js} +4 -7
- package/dist/cjs/{post-popover-a2ba9226.js → post-popover-73033a78.js} +5 -17
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-c402c294.js → post-rating-5d7d52a2.js} +7 -20
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-c819517d.js → post-tab-header-ae6a3dcd.js} +4 -7
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-3cb207f3.js → post-tab-panel-f6127d6a.js} +4 -7
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-b6fa39c3.js → post-tabs-977e62c3.js} +3 -9
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-9c366519.js → post-tag-a7684644.js} +6 -17
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-togglebutton-d49bec2c.js → post-togglebutton-2fdebbc7.js} +70 -159
- package/dist/cjs/{post-tooltip-425c01ba.js → post-tooltip-261f3348.js} +6 -17
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/post-accordion/post-accordion.js +4 -12
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +6 -15
- package/dist/collection/components/post-avatar/post-avatar.js +11 -29
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -8
- package/dist/collection/components/post-banner/post-banner.js +11 -31
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +7 -15
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +3 -6
- package/dist/collection/components/post-card-control/post-card-control.js +10 -59
- package/dist/collection/components/post-collapsible/post-collapsible.js +3 -6
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +3 -6
- package/dist/collection/components/post-footer/post-footer.js +4 -7
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +15 -5
- package/dist/collection/components/post-icon/post-icon.js +9 -42
- package/dist/collection/components/post-language-option/post-language-option.css +1 -1
- package/dist/collection/components/post-language-option/post-language-option.js +7 -31
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +8 -24
- package/dist/collection/components/post-list/post-list.js +5 -16
- package/dist/collection/components/post-logo/post-logo.js +3 -6
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +5 -3
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +10 -11
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +4 -10
- package/dist/collection/components/post-menu/post-menu.js +4 -14
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +4 -10
- package/dist/collection/components/post-popover/post-popover.js +3 -21
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +6 -26
- package/dist/collection/components/post-rating/post-rating.js +5 -26
- package/dist/collection/components/post-tab-header/post-tab-header.js +4 -7
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -7
- package/dist/collection/components/post-tabs/post-tabs.js +3 -9
- package/dist/collection/components/post-tag/post-tag.js +4 -21
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +3 -6
- package/dist/collection/components/post-tooltip/post-tooltip.js +5 -20
- package/dist/collection/utils/get-focusable-children.js +7 -1
- package/dist/collection/utils/property-checkers/check-url.js +2 -2
- package/{loaders/p-b095519d.js → dist/components/check-non-empty.js} +1 -1
- package/{loaders/p-3aba7629.js → dist/components/get-focusable-children.js} +7 -1
- package/dist/components/index.js +36 -36
- package/dist/components/{p-eabb09ad.js → index2.js} +5 -5
- package/dist/components/package.js +3 -0
- package/dist/components/post-accordion-item.js +1 -1
- package/{loaders/p-83baa315.js → dist/components/post-accordion-item2.js} +13 -20
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/{p-a3a004e6.js → post-accordion2.js} +7 -13
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/{p-d3fb70af.js → post-avatar2.js} +13 -25
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/{p-e20366a6.js → post-back-to-top2.js} +9 -13
- package/dist/components/post-banner.js +1 -1
- package/dist/components/{p-4965cfe1.js → post-banner2.js} +18 -32
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/{loaders/p-1beacb73.js → dist/components/post-breadcrumb-item2.js} +6 -9
- package/dist/components/post-breadcrumb.js +1 -1
- package/dist/components/{p-146677d1.js → post-breadcrumb2.js} +18 -24
- package/dist/components/post-card-control.js +1 -1
- package/dist/components/{p-38778a14.js → post-card-control2.js} +16 -47
- package/dist/components/post-closebutton.js +1 -1
- package/dist/components/{p-bf14d264.js → post-closebutton2.js} +4 -4
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/{loaders/p-05590ac0.js → dist/components/post-collapsible-trigger2.js} +8 -11
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/{p-b018d864.js → post-collapsible2.js} +5 -8
- package/dist/components/post-footer.js +1 -1
- package/dist/components/{p-58878996.js → post-footer2.js} +9 -12
- package/dist/components/post-header.js +1 -1
- package/dist/components/{p-424d5ea9.js → post-header2.js} +21 -13
- package/dist/components/post-icon.js +1 -1
- package/dist/components/{p-91031e3b.js → post-icon2.js} +13 -34
- package/dist/components/post-language-option.js +1 -1
- package/dist/components/{p-d47bb5bf.js → post-language-option2.js} +11 -27
- package/dist/components/post-language-switch.js +1 -1
- package/dist/components/{p-f6d80d76.js → post-language-switch2.js} +17 -29
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/{p-5653923a.js → post-linkarea2.js} +3 -3
- package/dist/components/post-list-item.js +1 -1
- package/dist/components/{p-9e4b1f10.js → post-list-item2.js} +2 -2
- package/dist/components/post-list.js +1 -1
- package/dist/components/{p-536eba02.js → post-list2.js} +7 -16
- package/dist/components/post-logo.js +1 -1
- package/dist/components/{p-5f51ec58.js → post-logo2.js} +5 -8
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/{p-1ee1742f.js → post-mainnavigation2.js} +7 -7
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/{p-27edc023.js → post-megadropdown-trigger2.js} +6 -12
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/{p-46a6c5ec.js → post-megadropdown2.js} +12 -15
- package/dist/components/post-menu-item.js +1 -1
- package/{loaders/p-ccccf0c3.js → dist/components/post-menu-item2.js} +3 -3
- package/dist/components/post-menu-trigger.js +1 -1
- package/dist/components/{p-8b053fd5.js → post-menu-trigger2.js} +7 -13
- package/dist/components/post-menu.js +1 -1
- package/{loaders/p-91882483.js → dist/components/post-menu2.js} +8 -18
- package/dist/components/post-popover.js +1 -1
- package/dist/components/{p-af23f7de.js → post-popover2.js} +8 -20
- package/dist/components/post-popovercontainer.js +1 -1
- package/{loaders/p-60cf53cc.js → dist/components/post-popovercontainer2.js} +7 -21
- package/dist/components/post-rating.js +1 -1
- package/dist/components/{p-fc59de7c.js → post-rating2.js} +9 -22
- package/dist/components/post-tab-header.js +1 -1
- package/dist/components/{p-75b8b652.js → post-tab-header2.js} +7 -10
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/{p-78e1d893.js → post-tab-panel2.js} +6 -9
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/{p-ce854a7d.js → post-tabs2.js} +5 -11
- package/dist/components/post-tag.js +1 -1
- package/dist/components/{p-cab43cee.js → post-tag2.js} +8 -19
- package/dist/components/post-togglebutton.js +1 -1
- package/dist/components/{p-3cee636a.js → post-togglebutton2.js} +5 -8
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/{p-2d9b46b4.js → post-tooltip2.js} +9 -20
- package/dist/docs.d.ts +0 -8
- package/dist/docs.json +73 -213
- package/dist/esm/{check-url-0bd876f7.js → check-url-8ab230de.js} +2 -2
- package/dist/esm/{index-d1bbbd88.js → index-0aec278f.js} +1 -1
- package/dist/esm/{index-2c232bf2.js → index-40846676.js} +151 -325
- package/dist/esm/index.js +23 -23
- package/dist/esm/loader.js +2 -2
- package/dist/esm/package-2d498679.js +3 -0
- package/dist/esm/{post-accordion-49fba403.js → post-accordion-58353f4e.js} +4 -10
- package/dist/esm/{post-accordion-item-c516517a.js → post-accordion-item-d5de3401.js} +7 -14
- package/dist/esm/post-accordion-item.entry.js +5 -5
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-avatar-b527ac63.js → post-avatar-15f11d92.js} +11 -23
- package/dist/esm/post-avatar.entry.js +3 -3
- package/dist/esm/{post-back-to-top-f514c1f0.js → post-back-to-top-9d976592.js} +4 -8
- package/dist/esm/post-back-to-top.entry.js +3 -3
- package/dist/esm/{post-banner-0ad7758b.js → post-banner-26fce014.js} +12 -26
- package/dist/esm/post-banner.entry.js +5 -5
- package/dist/esm/{post-breadcrumb-57bca9dd.js → post-breadcrumb-de7e3ac6.js} +8 -14
- package/dist/esm/post-breadcrumb-item_2.entry.js +5 -5
- package/dist/esm/post-breadcrumb.entry.js +4 -4
- package/dist/esm/{post-card-control-ea741f60.js → post-card-control-6b0100b5.js} +12 -43
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/post-closebutton_15.entry.js +5 -5
- package/dist/esm/{post-collapsible-trigger-31155750.js → post-collapsible-trigger-97fd8cb0.js} +5 -11
- package/dist/esm/post-collapsible_2.entry.js +5 -5
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/{post-footer-cdde2086.js → post-footer-82cbe9e1.js} +4 -7
- package/dist/esm/post-footer.entry.js +3 -3
- package/dist/esm/{post-linkarea-cad95623.js → post-linkarea-43614f09.js} +2 -2
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/{post-menu-item-db732728.js → post-menu-item-c5b1cd29.js} +4 -7
- package/dist/esm/{post-popover-00f427ac.js → post-popover-21dea796.js} +5 -17
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-rating-cdcb2a1d.js → post-rating-907e5175.js} +7 -20
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-1d4113cb.js → post-tab-header-0f5fd7d0.js} +4 -7
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-7a5c03ef.js → post-tab-panel-2bf324ae.js} +4 -7
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-308190c0.js → post-tabs-52cf8ed7.js} +3 -9
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-aebbda10.js → post-tag-d53f4bc7.js} +6 -17
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-togglebutton-95ba85d2.js → post-togglebutton-6cf6dae6.js} +70 -159
- package/dist/esm/{post-tooltip-918d3a54.js → post-tooltip-f1f56486.js} +6 -17
- package/dist/esm/post-tooltip.entry.js +5 -5
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-100dc10a.js +1 -0
- package/dist/post-components/p-14738957.entry.js +1 -0
- package/dist/post-components/{p-ca41b899.entry.js → p-19e8b653.entry.js} +1 -1
- package/dist/post-components/p-1e737ab3.entry.js +1 -0
- package/dist/post-components/p-26e5d866.js +1 -0
- package/dist/post-components/p-29d56d5f.js +1 -0
- package/dist/post-components/p-3f79a7fa.entry.js +1 -0
- package/dist/post-components/p-4f9b0504.entry.js +1 -0
- package/dist/post-components/p-5753ae1e.entry.js +1 -0
- package/dist/post-components/p-59373941.js +1 -0
- package/dist/post-components/p-5a8f34ff.entry.js +1 -0
- package/dist/post-components/{p-7c9758fa.js → p-5d05f008.js} +1 -1
- package/dist/post-components/p-5ecb67d4.entry.js +1 -0
- package/dist/post-components/p-62e62248.js +1 -0
- package/dist/post-components/p-6a251a96.entry.js +1 -0
- package/dist/post-components/p-6a7ee274.js +1 -0
- package/dist/post-components/p-6af43aa2.js +1 -0
- package/dist/post-components/p-771e6deb.entry.js +1 -0
- package/dist/post-components/p-78d39bb1.entry.js +1 -0
- package/dist/post-components/p-7d9f4529.js +1 -0
- package/dist/post-components/p-816de06e.entry.js +1 -0
- package/dist/post-components/p-870920c5.js +1 -0
- package/dist/post-components/p-8bd50210.entry.js +1 -0
- package/dist/post-components/p-91ffc428.js +1 -0
- package/dist/post-components/p-9c8b4442.js +1 -0
- package/dist/post-components/p-a6476cb6.js +1 -0
- package/dist/post-components/p-a98c64e1.js +1 -0
- package/dist/post-components/p-ac04c807.js +1 -0
- package/dist/post-components/p-b19a9362.js +1 -0
- package/dist/post-components/p-b34d8f5f.entry.js +1 -0
- package/dist/post-components/p-b753fc35.entry.js +1 -0
- package/dist/post-components/p-cc9d8272.js +1 -0
- package/dist/post-components/p-d7cba03a.entry.js +1 -0
- package/dist/post-components/p-da85b951.entry.js +1 -0
- package/dist/post-components/{p-267f52a9.js → p-e7865717.js} +3 -3
- package/dist/post-components/p-f57363d3.entry.js +1 -0
- package/dist/post-components/{p-4ca79b52.js → p-f5d73dcc.js} +1 -1
- package/dist/post-components/p-f6e86d70.js +1 -0
- package/dist/post-components/p-f8e7cdec.js +1 -0
- package/dist/post-components/p-fb8f5195.js +1 -0
- package/dist/post-components/p-ff1fd4d8.entry.js +1 -0
- package/dist/post-components/p-ff95dcd3.js +2 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-header/post-header.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/types/utils/get-focusable-children.d.ts +1 -1
- package/dist/types/utils/property-checkers/check-url.d.ts +1 -1
- package/dist/types/utils/property-checkers/index.d.ts +1 -1
- package/{dist/components/p-b095519d.js → loaders/check-non-empty.js} +1 -1
- package/{dist/components/p-3aba7629.js → loaders/get-focusable-children.js} +7 -1
- package/loaders/index.js +2 -2
- package/loaders/{p-56ad4838.js → index2.js} +5 -5
- package/loaders/package.js +3 -0
- package/loaders/post-accordion-item.js +1 -1
- package/{dist/components/p-68ecd276.js → loaders/post-accordion-item2.js} +13 -20
- package/loaders/post-accordion.js +7 -13
- package/loaders/post-avatar.js +13 -25
- package/loaders/post-back-to-top.js +9 -13
- package/loaders/post-banner.js +18 -32
- package/loaders/post-breadcrumb-item.js +1 -1
- package/{dist/components/p-c7c1d466.js → loaders/post-breadcrumb-item2.js} +6 -9
- package/loaders/post-breadcrumb.js +18 -24
- package/loaders/post-card-control.js +16 -47
- package/loaders/post-closebutton.js +4 -4
- package/loaders/post-collapsible-trigger.js +1 -1
- package/{dist/components/p-05590ac0.js → loaders/post-collapsible-trigger2.js} +8 -11
- package/loaders/post-collapsible.js +1 -1
- package/loaders/{p-9fac5d7d.js → post-collapsible2.js} +5 -8
- package/loaders/post-footer.js +9 -12
- package/loaders/post-header.js +21 -13
- package/loaders/post-icon.js +1 -1
- package/loaders/{p-f7177e26.js → post-icon2.js} +13 -34
- package/loaders/post-language-option.js +11 -27
- package/loaders/post-language-switch.js +17 -29
- package/loaders/post-linkarea.js +3 -3
- package/loaders/post-list-item.js +2 -2
- package/loaders/post-list.js +7 -16
- package/loaders/post-logo.js +5 -8
- package/loaders/post-mainnavigation.js +7 -7
- package/loaders/post-megadropdown-trigger.js +6 -12
- package/loaders/post-megadropdown.js +12 -15
- package/loaders/post-menu-item.js +1 -1
- package/{dist/components/p-ccccf0c3.js → loaders/post-menu-item2.js} +3 -3
- package/loaders/post-menu-trigger.js +1 -1
- package/loaders/{p-8b053fd5.js → post-menu-trigger2.js} +7 -13
- package/loaders/post-menu.js +1 -1
- package/{dist/components/p-91882483.js → loaders/post-menu2.js} +8 -18
- package/loaders/post-popover.js +8 -20
- package/loaders/post-popovercontainer.js +1 -1
- package/{dist/components/p-60cf53cc.js → loaders/post-popovercontainer2.js} +7 -21
- package/loaders/post-rating.js +9 -22
- package/loaders/post-tab-header.js +7 -10
- package/loaders/post-tab-panel.js +6 -9
- package/loaders/post-tabs.js +5 -11
- package/loaders/post-tag.js +8 -19
- package/loaders/post-togglebutton.js +5 -8
- package/loaders/post-tooltip.js +9 -20
- package/package.json +6 -6
- package/dist/components/p-2083ae2c.js +0 -3
- package/dist/components/p-3e8554e7.js +0 -1646
- package/dist/esm/package-8c98af5e.js +0 -3
- package/dist/post-components/p-037d6ef2.entry.js +0 -1
- package/dist/post-components/p-1e69a72f.js +0 -1
- package/dist/post-components/p-1fda117c.js +0 -1
- package/dist/post-components/p-2083ae2c.js +0 -1
- package/dist/post-components/p-24297444.js +0 -1
- package/dist/post-components/p-2e6c5b60.js +0 -1
- package/dist/post-components/p-3591d4e3.entry.js +0 -1
- package/dist/post-components/p-3dec4425.entry.js +0 -1
- package/dist/post-components/p-423aecd4.js +0 -1
- package/dist/post-components/p-43221de8.entry.js +0 -1
- package/dist/post-components/p-48fd00e7.entry.js +0 -1
- package/dist/post-components/p-4d2dee9f.entry.js +0 -1
- package/dist/post-components/p-4fedef65.js +0 -1
- package/dist/post-components/p-59109b3b.entry.js +0 -1
- package/dist/post-components/p-675352c3.entry.js +0 -1
- package/dist/post-components/p-6e4527d9.entry.js +0 -1
- package/dist/post-components/p-726bfda2.js +0 -1
- package/dist/post-components/p-767c0bf3.js +0 -1
- package/dist/post-components/p-796968bd.entry.js +0 -1
- package/dist/post-components/p-8a452260.js +0 -1
- package/dist/post-components/p-8a50b900.js +0 -1
- package/dist/post-components/p-8de4f677.entry.js +0 -1
- package/dist/post-components/p-93632808.js +0 -1
- package/dist/post-components/p-9aca3d07.entry.js +0 -1
- package/dist/post-components/p-9f0c5164.js +0 -1
- package/dist/post-components/p-a6436e7f.js +0 -1
- package/dist/post-components/p-ad246c0d.js +0 -1
- package/dist/post-components/p-b015efcb.entry.js +0 -1
- package/dist/post-components/p-b0afc087.entry.js +0 -1
- package/dist/post-components/p-b1adc221.js +0 -1
- package/dist/post-components/p-b2c0d21a.js +0 -1
- package/dist/post-components/p-b5a566f1.js +0 -1
- package/dist/post-components/p-c0961047.entry.js +0 -1
- package/dist/post-components/p-c388b7bb.entry.js +0 -1
- package/dist/post-components/p-cb9ab938.js +0 -1
- package/dist/post-components/p-d2395ae9.entry.js +0 -1
- package/dist/post-components/p-d9833667.js +0 -2
- package/dist/post-components/p-da261c46.entry.js +0 -1
- package/loaders/p-2083ae2c.js +0 -3
- package/loaders/p-3e8554e7.js +0 -1646
- /package/dist/components/{p-9748a355.js → attribute-observer.js} +0 -0
- /package/dist/components/{p-bacd3e2c.js → check-one-of.js} +0 -0
- /package/dist/components/{p-8562c7dc.js → check-type.js} +0 -0
- /package/dist/components/{p-440193f4.js → constants.js} +0 -0
- /package/dist/components/{p-e1baac59.js → debounce.js} +0 -0
- /package/dist/components/{p-64e3de38.js → fade.js} +0 -0
- /package/dist/components/{p-fc91cbc2.js → get-root.js} +0 -0
- /package/dist/components/{p-247a1668.js → heading-levels.js} +0 -0
- /package/dist/components/{p-5959f2bd.js → index.browser.js} +0 -0
- /package/dist/components/{p-f7b9f90a.js → index3.js} +0 -0
- /package/dist/components/{p-4af6dbed.js → slide.js} +0 -0
- /package/loaders/{p-9748a355.js → attribute-observer.js} +0 -0
- /package/loaders/{p-bacd3e2c.js → check-one-of.js} +0 -0
- /package/loaders/{p-8562c7dc.js → check-type.js} +0 -0
- /package/loaders/{p-440193f4.js → constants.js} +0 -0
- /package/loaders/{p-e1baac59.js → debounce.js} +0 -0
- /package/loaders/{p-64e3de38.js → fade.js} +0 -0
- /package/loaders/{p-fc91cbc2.js → get-root.js} +0 -0
- /package/loaders/{p-247a1668.js → heading-levels.js} +0 -0
- /package/loaders/{p-5959f2bd.js → index.browser.js} +0 -0
- /package/loaders/{p-f7b9f90a.js → index3.js} +0 -0
- /package/loaders/{p-4af6dbed.js → slide.js} +0 -0
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-5acef487.js');
|
|
4
|
+
const _package = require('./package-df497c3c.js');
|
|
5
5
|
|
|
6
6
|
const postTagCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:#000}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
|
|
7
7
|
const PostTagStyle0 = postTagCss;
|
|
8
8
|
|
|
9
9
|
const PostTag = class {
|
|
10
10
|
get host() { return index.getElement(this); }
|
|
11
|
-
classes;
|
|
12
|
-
/**
|
|
13
|
-
* Defines the color variant of the component.
|
|
14
|
-
*/
|
|
15
|
-
variant;
|
|
16
|
-
/**
|
|
17
|
-
* Defines the size of the component.
|
|
18
|
-
*/
|
|
19
|
-
size = null;
|
|
20
|
-
/**
|
|
21
|
-
* Defines the icon `name` inside of the component.
|
|
22
|
-
* <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
23
|
-
* To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs">icon library</a>.
|
|
24
|
-
*/
|
|
25
|
-
icon = null;
|
|
26
11
|
constructor(hostRef) {
|
|
27
12
|
index.registerInstance(this, hostRef);
|
|
13
|
+
this.classes = undefined;
|
|
14
|
+
this.variant = undefined;
|
|
15
|
+
this.size = null;
|
|
16
|
+
this.icon = null;
|
|
28
17
|
this.setClasses = this.setClasses.bind(this);
|
|
29
18
|
}
|
|
30
19
|
variantChanged() {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTag = require('./post-tag-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTag = require('./post-tag-a7684644.js');
|
|
6
|
+
require('./index-5acef487.js');
|
|
7
|
+
require('./package-df497c3c.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-5acef487.js');
|
|
4
|
+
const _package = require('./package-df497c3c.js');
|
|
5
5
|
const slide = require('./slide-8ae17ee4.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-f2eedfeb.js');
|
|
7
7
|
const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
|
|
8
8
|
const checkType = require('./check-type-696d2c51.js');
|
|
9
9
|
const index_browser = require('./index.browser-2f65f583.js');
|
|
@@ -176,18 +176,26 @@ const focusDisablingSelector = `:where(${[
|
|
|
176
176
|
'details:not([open]) > *:not(details > summary:first-of-type)',
|
|
177
177
|
'details:not([open]) > *:not(details > summary:first-of-type) *',
|
|
178
178
|
'[tabindex^="-"]',
|
|
179
|
+
'[hidden]:not([hidden="false"])',
|
|
179
180
|
].join(',')})`;
|
|
180
181
|
function getFocusableChildren(element) {
|
|
181
|
-
|
|
182
|
+
const focusableChildren = element.querySelectorAll(`${focusableSelector}:not(${focusDisablingSelector})`);
|
|
183
|
+
const visibleFocusableChildren = Array.from(focusableChildren).filter(child => {
|
|
184
|
+
const style = window.getComputedStyle(child.parentElement);
|
|
185
|
+
return style.display !== 'none' && style.visibility !== 'hidden';
|
|
186
|
+
});
|
|
187
|
+
return visibleFocusableChildren;
|
|
182
188
|
}
|
|
183
189
|
|
|
184
|
-
const postHeaderCss = "*,::before,::after{box-sizing:border-box}:host{z-index:1090;--global-header-height:72px;--global-header-minimal-height:24px;--local-header-height:112px;--local-header-min-height:56px;--header-height:calc(var(--global-header-height) + var(--local-header-height));z-index:1020;position:relative}@media screen and (min-width: 1024px){:host{--global-header-reduced-height:24px;--main-navigation-height:56px}}@media screen and (max-width: 1023.98px){:host{--global-header-height:64px;--local-header-height:48px;--local-header-min-height:48px;--main-navigation-height:0px}}:host(:not(:has([slot=title]))){--local-header-height:var(--main-navigation-height)}:host(:not(:has([slot=title]))) .local-header{padding-block-start:0}:host(:not(:has([slot=title]))) .local-sub{display:none}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;
|
|
190
|
+
const postHeaderCss = "*,::before,::after{box-sizing:border-box}:host{z-index:1090;--global-header-height:72px;--global-header-minimal-height:24px;--local-header-height:112px;--local-header-min-height:56px;--header-height:calc(var(--global-header-height) + var(--local-header-height));z-index:1020;position:relative}@media screen and (min-width: 1024px){:host{--global-header-reduced-height:24px;--main-navigation-height:56px}}@media screen and (max-width: 1023.98px){:host{--global-header-height:64px;--local-header-height:48px;--local-header-min-height:48px;--main-navigation-height:0px}}:host(:not(:has([slot=title]))){--local-header-height:var(--main-navigation-height)}:host(:not(:has([slot=title]))) .local-header{padding-block-start:0}:host(:not(:has([slot=title]))) .local-sub{display:none}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;position:sticky;padding-inline:var(--post-core-dimension-4);height:var(--global-header-height)}@media screen and (max-width: 1023.98px){.global-header{z-index:3;inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{z-index:5;padding-inline-end:var(--post-core-dimension-12);inset-block-start:calc((var(--global-header-height) - var(--global-header-reduced-height))*-1)}}.global-sub{display:flex;align-items:center;gap:var(--post-core-dimension-24)}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--global-header-height);width:var(--global-header-height);min-height:var(--global-header-reduced-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{height:calc(var(--global-header-height) - var(--header-scroll-top))}}::slotted(ul){margin-block:0 !important;list-style:none;display:flex;padding-left:0;gap:1rem;flex-shrink:0 !important}.local-header{display:flex;position:sticky;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--post-core-dimension-8);min-height:var(--local-header-min-height);background:var(--post-core-color-brand-white);transition:box-shadow .2s ease-in-out}@media screen and (min-width: 1024px){.local-header{z-index:3;inset-block-start:calc(-1*(var(--local-header-height) - var(--main-navigation-height)) + var(--global-header-reduced-height));padding-block-start:var(--post-core-dimension-18);box-shadow:var(--post-core-elevation-3)}}@media screen and (max-width: 1023.98px){.local-header{z-index:2;inset-block-start:var(--global-header-height);padding-block:var(--post-core-dimension-9);flex-wrap:wrap}.local-header.local-header-mobile-extended{border-bottom:1px solid var(--post-core-color-sandgrey-012)}.local-header:not(.title-header-mobile-extended){box-shadow:var(--post-core-elevation-3)}}.local-sub{margin-inline-end:var(--post-core-dimension-16)}::slotted(.list-inline){margin:-8px 0 !important;z-index:3 !important;position:relative !important}::slotted(h1){margin:0 !important;flex-shrink:10;z-index:3}@media screen and (min-width: 600px){::slotted(h1){margin-inline-start:var(--post-core-dimension-12) !important}}@media screen and (max-width: 599.98px){::slotted(h1){margin-inline-start:var(--post-core-dimension-8) !important}}@media screen and (min-width: 1024px){::slotted(h1){font-size:var(--post-core-font-size-28) !important}}@media screen and (max-width: 1023.98px){::slotted(h1){font-size:var(--post-core-font-size-20) !important;max-width:calc(100vw - var(--post-core-dimension-8) - var(--post-core-dimension-16))}}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{width:100%}@media screen and (min-width: 1024px){.navigation{inset-block-start:var(--global-header-minimal-height)}.navigation::before{display:block;content:\"\";position:absolute;inset:0;z-index:2;background:var(--post-core-color-brand-white)}}@media screen and (max-width: 1023.98px){.navigation{position:fixed;z-index:1;inset-inline:0;background:var(--post-core-color-brand-white);inset-block-end:calc(100vh - var(--header-height))}::slotted(post-mainnavigation),.navigation-footer{display:none;flex-direction:column;padding-block:var(--post-core-dimension-16) var(--post-core-dimension-24);padding-inline:var(--post-core-dimension-32)}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer{display:flex}.navigation.extended{height:calc(100vh - var(--header-height));display:flex;flex-direction:column}.navigation.extended ::slotted(post-mainnavigation){flex-grow:1 !important}::slotted(post-mainnavigation){background-color:var(--post-core-color-sandgrey-002);gap:var(--post-core-dimension-32)}.navigation-footer{background-color:var(--post-core-color-sandgrey-006);gap:var(--post-core-dimension-24)}}@media screen and (max-width: 599.98px){::slotted(post-mainnavigation),.navigation-footer{padding-inline:var(--post-core-dimension-16)}}";
|
|
185
191
|
const PostHeaderStyle0 = postHeaderCss;
|
|
186
192
|
|
|
187
193
|
const PostHeader = class {
|
|
188
194
|
constructor(hostRef) {
|
|
189
195
|
index.registerInstance(this, hostRef);
|
|
190
196
|
this.postUpdateDevice = index.createEvent(this, "postUpdateDevice", 7);
|
|
197
|
+
this.device = null;
|
|
198
|
+
this.mobileMenuExtended = false;
|
|
191
199
|
}
|
|
192
200
|
firstFocusableEl;
|
|
193
201
|
lastFocusableEl;
|
|
@@ -204,9 +212,10 @@ const PostHeader = class {
|
|
|
204
212
|
this.handleScrollEvent();
|
|
205
213
|
this.getFocusableElements();
|
|
206
214
|
}
|
|
215
|
+
componentDidLoad() {
|
|
216
|
+
this.updateLocalHeaderHeight();
|
|
217
|
+
}
|
|
207
218
|
get host() { return index.getElement(this); }
|
|
208
|
-
device = null;
|
|
209
|
-
mobileMenuExtended = false;
|
|
210
219
|
frozeBody(isMobileMenuExtended) {
|
|
211
220
|
document.body.style.overflow = isMobileMenuExtended ? 'hidden' : '';
|
|
212
221
|
if (isMobileMenuExtended) {
|
|
@@ -303,6 +312,12 @@ const PostHeader = class {
|
|
|
303
312
|
return value === 'auto' || value === 'scroll';
|
|
304
313
|
});
|
|
305
314
|
}
|
|
315
|
+
updateLocalHeaderHeight() {
|
|
316
|
+
requestAnimationFrame(() => {
|
|
317
|
+
const mhh = this.host.shadowRoot.querySelector('.local-header')?.clientHeight || 0;
|
|
318
|
+
this.host.style.setProperty('--main-header-height', `${mhh}px`);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
306
321
|
handleResize() {
|
|
307
322
|
const previousDevice = this.device;
|
|
308
323
|
let newDevice;
|
|
@@ -321,8 +336,7 @@ const PostHeader = class {
|
|
|
321
336
|
this.toggleMobileMenu();
|
|
322
337
|
this.mobileMenuAnimation.finish(); // no animation
|
|
323
338
|
}
|
|
324
|
-
|
|
325
|
-
this.host.style.setProperty('--main-header-height', `${mhh}px`);
|
|
339
|
+
this.updateLocalHeaderHeight();
|
|
326
340
|
// Apply only on change for doing work only when necessary
|
|
327
341
|
if (newDevice !== previousDevice) {
|
|
328
342
|
this.device = newDevice;
|
|
@@ -344,7 +358,7 @@ const PostHeader = class {
|
|
|
344
358
|
return (index.h("div", { ref: el => (this.mobileMenu = el), class: navigationClasses.join(' ') }, index.h("slot", { name: "post-mainnavigation" }), (this.device === 'mobile' || this.device === 'tablet') && (index.h("div", { class: "navigation-footer" }, index.h("slot", { name: "meta-navigation" }), index.h("slot", { name: "post-language-switch" })))));
|
|
345
359
|
}
|
|
346
360
|
render() {
|
|
347
|
-
return (index.h(index.Host, { key: '
|
|
361
|
+
return (index.h(index.Host, { key: '18b9e47312a3896f1c68a9270332b2bf21ea2518', version: _package.version }, index.h("div", { key: '6b30ae3fc22471a7d1f29f19da944a3c4eac009c', class: "global-header" }, index.h("div", { key: '943cd0d6a4fa9e0b15196b54fe1f5e765b6270c5', class: "global-sub" }, index.h("div", { key: '7c34ab9cd2a5fb380b0201673364a275d74ca1e3', class: "logo" }, index.h("slot", { key: '13b6bb1b42951d4982fd0cca9f65f3cba9a361df', name: "post-logo" }))), index.h("div", { key: '1955153864e1825e2fd56d58b9966982bc4aeb7f', class: "global-sub" }, this.device === 'desktop' && index.h("slot", { key: 'f33af5becab53114e886c288feabafd4a589dab6', name: "meta-navigation" }), index.h("slot", { key: 'e33c827d5e0101a6fc9ccaf3f9e3b9ea1a689626', name: "global-controls" }), this.device === 'desktop' && index.h("slot", { key: 'bbc08ab621b41858f6f4c0fa03796c1800d3ef2b', name: "post-language-switch" }), index.h("div", { key: '352681a469b8dd46271ffe6b36002d174a5586c3', onClick: () => this.toggleMobileMenu(), class: "mobile-toggle" }, index.h("slot", { key: 'a6c79f674e94a2046f47d8fc7a6ce7722a7e5125', name: "post-togglebutton" })))), index.h("div", { key: '8b1219759b44feaf230a366a39ea8cc211893b9c', class: 'local-header ' + (this.mobileMenuExtended ? 'local-header-mobile-extended' : '') }, index.h("slot", { key: '070092f87eceb4a4ca2c19394a80ffb20833c0c9', name: "title" }), index.h("div", { key: '5044efdcf0a9b341eb9f168762f86dd516236ad1', class: "local-sub" }, index.h("slot", { key: '48e38669ec64444c48f8b84f95590d36cd090ff7', name: "local-controls" }), index.h("slot", { key: 'cbf9652dfc5008322459b6dcb0623135f7984e61' })), this.device === 'desktop' && this.renderNavigation()), this.device !== 'desktop' && this.renderNavigation()));
|
|
348
362
|
}
|
|
349
363
|
static get watchers() { return {
|
|
350
364
|
"mobileMenuExtended": ["frozeBody"]
|
|
@@ -368,56 +382,35 @@ const ANIMATION_KEYS = [...ANIMATION_NAMES];
|
|
|
368
382
|
const PostIcon = class {
|
|
369
383
|
constructor(hostRef) {
|
|
370
384
|
index.registerInstance(this, hostRef);
|
|
385
|
+
this.animation = null;
|
|
386
|
+
this.base = null;
|
|
387
|
+
this.flipH = false;
|
|
388
|
+
this.flipV = false;
|
|
389
|
+
this.name = undefined;
|
|
390
|
+
this.rotate = null;
|
|
391
|
+
this.scale = null;
|
|
371
392
|
}
|
|
372
393
|
get host() { return index.getElement(this); }
|
|
373
|
-
/**
|
|
374
|
-
* The name of the animation.
|
|
375
|
-
*/
|
|
376
|
-
animation = null;
|
|
377
394
|
validateAnimation(newValue = this.animation) {
|
|
378
395
|
if (newValue !== undefined)
|
|
379
396
|
index$1.checkEmptyOrOneOf(newValue, ANIMATION_KEYS, `The post-icon "animation" prop requires one of the following values: ${ANIMATION_KEYS.join(', ')}.`);
|
|
380
397
|
}
|
|
381
|
-
/**
|
|
382
|
-
* The base path, where the icons are located (must be a public url).<br/>Leave this field empty to use the default cdn url.
|
|
383
|
-
*/
|
|
384
|
-
base = null;
|
|
385
398
|
validateBase(newValue = this.base) {
|
|
386
399
|
index$1.checkEmptyOrType(newValue, 'string', 'The post-icon "base" prop should be a string.');
|
|
387
400
|
}
|
|
388
|
-
/**
|
|
389
|
-
* When set to `true`, the icon will be flipped horizontally.
|
|
390
|
-
*/
|
|
391
|
-
flipH = false;
|
|
392
401
|
validateFlipH(newValue = this.flipH) {
|
|
393
402
|
index$1.checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipH" prop should be a boolean.');
|
|
394
403
|
}
|
|
395
|
-
/**
|
|
396
|
-
* When set to `true`, the icon will be flipped vertically.
|
|
397
|
-
*/
|
|
398
|
-
flipV = false;
|
|
399
404
|
validateFlipV(newValue = this.flipV) {
|
|
400
405
|
index$1.checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipV" prop should be a boolean.');
|
|
401
406
|
}
|
|
402
|
-
/**
|
|
403
|
-
* The name/id of the icon (e.g. 1000, 1001, ...).
|
|
404
|
-
*/
|
|
405
|
-
name;
|
|
406
407
|
validateName(newValue = this.name) {
|
|
407
408
|
checkNonEmpty.checkNonEmpty(newValue, 'The post-icon "name" prop is required!.');
|
|
408
409
|
checkType.checkType(newValue, 'string', 'The post-icon "name" prop should be a string.');
|
|
409
410
|
}
|
|
410
|
-
/**
|
|
411
|
-
* The number of degree for the css rotate transformation.
|
|
412
|
-
*/
|
|
413
|
-
rotate = null;
|
|
414
411
|
validateRotate(newValue = this.rotate) {
|
|
415
412
|
index$1.checkEmptyOrType(newValue, 'number', 'The post-icon "rotate" prop should be a number.');
|
|
416
413
|
}
|
|
417
|
-
/**
|
|
418
|
-
* The number for the css scale transformation.
|
|
419
|
-
*/
|
|
420
|
-
scale = null;
|
|
421
414
|
validateScale(newValue = this.scale) {
|
|
422
415
|
index$1.checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
|
|
423
416
|
}
|
|
@@ -503,45 +496,29 @@ const PostIcon = class {
|
|
|
503
496
|
};
|
|
504
497
|
PostIcon.style = PostIconStyle0;
|
|
505
498
|
|
|
506
|
-
const postLanguageOptionCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-language-option{display:inline-block}post-language-option button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}post-language-option a{color:inherit;text-decoration:none}post-language-option :is(a,button){cursor:pointer;display:flex;align-items:center;justify-content:center;height:100%;width:100%;
|
|
499
|
+
const postLanguageOptionCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-language-option{display:inline-block}post-language-option button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}post-language-option a{color:inherit;text-decoration:none}post-language-option :is(a,button){cursor:pointer;display:flex;align-items:center;justify-content:center;height:100%;width:100%;border-radius:2px}post-language-option :is(a,button){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}post-language-option :is(a,button):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){post-language-option :is(a,button):is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-language-option :is(a,button):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){post-language-option :is(a,button):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-language-option:has([aria-current]):not([aria-current=false]){display:none}post-language-option:where([variant=list]) :is(a,button){width:40px;height:40px;border-radius:2px}post-language-option:where([variant=list]) :is(a,button):hover{color:#504f4b}post-language-option:where([variant=menu]){width:100%}post-language-option:where([variant=menu]) :is(a,button){padding-block:13px;padding-inline:24px;box-sizing:border-box;position:relative;left:-1px;width:calc(100% + 2px)}";
|
|
507
500
|
const PostLanguageOptionStyle0 = postLanguageOptionCss;
|
|
508
501
|
|
|
509
502
|
const PostLanguageOption = class {
|
|
510
503
|
constructor(hostRef) {
|
|
511
504
|
index.registerInstance(this, hostRef);
|
|
512
505
|
this.postChange = index.createEvent(this, "postChange", 7);
|
|
506
|
+
this.code = undefined;
|
|
507
|
+
this.active = undefined;
|
|
508
|
+
this.variant = undefined;
|
|
509
|
+
this.name = undefined;
|
|
510
|
+
this.url = undefined;
|
|
513
511
|
}
|
|
514
512
|
get host() { return index.getElement(this); }
|
|
515
|
-
/**
|
|
516
|
-
* The ISO 639 language code, formatted according to [RFC 5646 (also known as BCP 47)](https://datatracker.ietf.org/doc/html/rfc5646). For example, "de".
|
|
517
|
-
*/
|
|
518
|
-
code;
|
|
519
513
|
validateCode(value = this.code) {
|
|
520
514
|
checkType.checkType(value, 'string', 'The "code" property of the post-language-option component must be a string.');
|
|
521
515
|
}
|
|
522
|
-
/**
|
|
523
|
-
* If set to `true`, the language option is considered the current language for the page.
|
|
524
|
-
*/
|
|
525
|
-
active;
|
|
526
516
|
validateActiveProp(value = this.active) {
|
|
527
517
|
index$1.checkEmptyOrType(value, 'boolean', 'The "active" property of the post-language-option component must be a boolean value.');
|
|
528
518
|
}
|
|
529
|
-
/**
|
|
530
|
-
* The variant of the post-language-switch parent (dynamically set by the parent)
|
|
531
|
-
*/
|
|
532
|
-
variant;
|
|
533
|
-
/**
|
|
534
|
-
* The full name of the language. For example, "Deutsch".
|
|
535
|
-
*/
|
|
536
|
-
name;
|
|
537
519
|
validateName(value = this.name) {
|
|
538
520
|
index$1.checkEmptyOrType(value, 'string', 'The "name" property of the post-language-option component must be a string.');
|
|
539
521
|
}
|
|
540
|
-
/**
|
|
541
|
-
* The URL used for the href attribute of the internal anchor.
|
|
542
|
-
* This field is optional; if not provided, a button will be used internally instead of an anchor.
|
|
543
|
-
*/
|
|
544
|
-
url;
|
|
545
522
|
validateUrl(value = this.url) {
|
|
546
523
|
index$1.checkEmptyOrType(value, 'string', 'The "url" property of the post-language-option component must be a valid URL.');
|
|
547
524
|
}
|
|
@@ -591,39 +568,27 @@ PostLanguageOption.style = PostLanguageOptionStyle0;
|
|
|
591
568
|
|
|
592
569
|
const SWITCH_VARIANTS = ['list', 'menu'];
|
|
593
570
|
|
|
594
|
-
const postLanguageSwitchCss = ":host{display:
|
|
571
|
+
const postLanguageSwitchCss = ":host{display:flex}:host>span{display:flex;flex-shrink:0;width:40px;height:40px;align-items:center;justify-content:center;background-color:#050400;color:#fff;border-radius:2px}:host(:where([variant=list])){column-gap:.5rem}.post-language-switch-dropdown-container{display:flex;flex-direction:column}.post-language-switch-dropdown-container>*{width:100%}.post-language-switch-trigger{cursor:pointer;padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-decoration:none;display:inline-flex;align-items:center;gap:var(--post-core-dimension-6);border-radius:var(--post-core-dimension-24);font-size:var(--post-core-font-size-16);padding:var(--post-core-dimension-3) var(--post-core-dimension-10)}.post-language-switch-trigger{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}.post-language-switch-trigger: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){.post-language-switch-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.post-language-switch-trigger: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){.post-language-switch-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.post-language-switch-trigger:not(:disabled):hover,.post-language-switch-trigger.pretend-hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.post-language-switch-trigger post-icon{height:var(--post-core-dimension-16);width:var(--post-core-dimension-16)}";
|
|
595
572
|
const PostLanguageSwitchStyle0 = postLanguageSwitchCss;
|
|
596
573
|
|
|
597
574
|
const PostLanguageSwitch = class {
|
|
598
575
|
constructor(hostRef) {
|
|
599
576
|
index.registerInstance(this, hostRef);
|
|
577
|
+
this.caption = undefined;
|
|
578
|
+
this.description = undefined;
|
|
579
|
+
this.variant = 'list';
|
|
580
|
+
this.activeLang = undefined;
|
|
600
581
|
}
|
|
601
582
|
get host() { return index.getElement(this); }
|
|
602
|
-
/**
|
|
603
|
-
* A title for the list of language options
|
|
604
|
-
*/
|
|
605
|
-
caption;
|
|
606
583
|
validateCaption(value = this.caption) {
|
|
607
584
|
checkType.checkType(value, 'string', 'The "caption" property of the post-language-switch component must be a string.');
|
|
608
585
|
}
|
|
609
|
-
/**
|
|
610
|
-
* A descriptive text for the list of language options
|
|
611
|
-
*/
|
|
612
|
-
description;
|
|
613
586
|
validateDescription(value = this.description) {
|
|
614
587
|
checkType.checkType(value, 'string', 'The "description" property of the post-language-switch component must be a string.');
|
|
615
588
|
}
|
|
616
|
-
/**
|
|
617
|
-
* Variant that determines the rendering of the language switch either as a list (used on mobile in the header) or a dropdown (used on desktop in the header)
|
|
618
|
-
*/
|
|
619
|
-
variant = 'list';
|
|
620
589
|
validateVariant(value = this.variant) {
|
|
621
590
|
index$1.checkEmptyOrOneOf(value, SWITCH_VARIANTS, `The "variant" property of the post-language-switch component must be: ${SWITCH_VARIANTS.join(', ')}`);
|
|
622
591
|
}
|
|
623
|
-
/**
|
|
624
|
-
* The active language of the language switch
|
|
625
|
-
*/
|
|
626
|
-
activeLang;
|
|
627
592
|
connectedCallback() {
|
|
628
593
|
this.updateChildrenVariant();
|
|
629
594
|
// Get the active language based on children's active state
|
|
@@ -665,10 +630,10 @@ const PostLanguageSwitch = class {
|
|
|
665
630
|
}
|
|
666
631
|
menuId = `p${index_browser.nanoid(11)}`;
|
|
667
632
|
renderList() {
|
|
668
|
-
return (index.h(index.Host, { "data-version": _package.version, "aria-label":
|
|
633
|
+
return (index.h(index.Host, { "data-version": _package.version, role: "list", "aria-label": this.caption }, index.h("span", { "aria-label": this.description, role: "listitem" }, this.activeLang.toUpperCase()), index.h("slot", null)));
|
|
669
634
|
}
|
|
670
635
|
renderDropdown() {
|
|
671
|
-
return (index.h(index.Host, { "data-version": _package.version }, index.h("post-menu-trigger", { for: this.menuId }, index.h("button", { class: "post-language-switch-trigger", "aria-label":
|
|
636
|
+
return (index.h(index.Host, { "data-version": _package.version }, index.h("post-menu-trigger", { for: this.menuId }, index.h("button", { class: "post-language-switch-trigger", "aria-label": this.description }, this.activeLang.toUpperCase(), index.h("post-icon", { "aria-hidden": "true", name: "chevrondown" }))), index.h("post-menu", { id: this.menuId, class: "post-language-switch-dropdown-container", "aria-label": this.caption }, index.h("slot", null))));
|
|
672
637
|
}
|
|
673
638
|
render() {
|
|
674
639
|
return this.variant === 'list' ? this.renderList() : this.renderDropdown();
|
|
@@ -687,20 +652,11 @@ const PostListStyle0 = postListCss;
|
|
|
687
652
|
const PostList = class {
|
|
688
653
|
constructor(hostRef) {
|
|
689
654
|
index.registerInstance(this, hostRef);
|
|
655
|
+
this.titleId = undefined;
|
|
656
|
+
this.titleHidden = false;
|
|
657
|
+
this.horizontal = false;
|
|
690
658
|
}
|
|
691
659
|
get host() { return index.getElement(this); }
|
|
692
|
-
/**
|
|
693
|
-
* The unique title of the list that is also referenced in the labelledby
|
|
694
|
-
*/
|
|
695
|
-
titleId;
|
|
696
|
-
/**
|
|
697
|
-
* If `true`, the list title will be hidden. Otherwise, it will be displayed.`
|
|
698
|
-
*/
|
|
699
|
-
titleHidden = false;
|
|
700
|
-
/**
|
|
701
|
-
* The list can become horizontal by setting `horizontal="true"` or just `horizontal`
|
|
702
|
-
*/
|
|
703
|
-
horizontal = false;
|
|
704
660
|
titleEl;
|
|
705
661
|
componentWillLoad() {
|
|
706
662
|
/**
|
|
@@ -745,12 +701,9 @@ const PostLogoStyle0 = postLogoCss;
|
|
|
745
701
|
const PostLogo = class {
|
|
746
702
|
constructor(hostRef) {
|
|
747
703
|
index.registerInstance(this, hostRef);
|
|
704
|
+
this.url = undefined;
|
|
748
705
|
}
|
|
749
706
|
get host() { return index.getElement(this); }
|
|
750
|
-
/**
|
|
751
|
-
* The URL to which the user is redirected upon clicking the logo.
|
|
752
|
-
*/
|
|
753
|
-
url;
|
|
754
707
|
validateUrl() {
|
|
755
708
|
index$1.checkEmptyOrUrl(this.url, 'The "url" property of the post-logo is invalid');
|
|
756
709
|
}
|
|
@@ -784,6 +737,9 @@ const NAVIGATION_ITEM_SELECTOR = ':is(post-list-item > a, post-list-item > post-
|
|
|
784
737
|
const PostMainnavigation = class {
|
|
785
738
|
constructor(hostRef) {
|
|
786
739
|
index.registerInstance(this, hostRef);
|
|
740
|
+
this.canScrollLeft = false;
|
|
741
|
+
this.canScrollRight = false;
|
|
742
|
+
this.translateAmount = 0;
|
|
787
743
|
}
|
|
788
744
|
header;
|
|
789
745
|
navbar;
|
|
@@ -800,9 +756,6 @@ const PostMainnavigation = class {
|
|
|
800
756
|
this.checkScrollability();
|
|
801
757
|
});
|
|
802
758
|
get host() { return index.getElement(this); }
|
|
803
|
-
canScrollLeft = false;
|
|
804
|
-
canScrollRight = false;
|
|
805
|
-
translateAmount = 0;
|
|
806
759
|
/**
|
|
807
760
|
* Update navbar translation when 'translateAmount' changes and recalculate scrollability
|
|
808
761
|
*/
|
|
@@ -988,22 +941,16 @@ const PostMegadropdown = class {
|
|
|
988
941
|
constructor(hostRef) {
|
|
989
942
|
index.registerInstance(this, hostRef);
|
|
990
943
|
this.postToggleMegadropdown = index.createEvent(this, "postToggleMegadropdown", 7);
|
|
944
|
+
this.device = undefined;
|
|
945
|
+
this.isVisible = false;
|
|
946
|
+
this.animationClass = null;
|
|
991
947
|
}
|
|
992
948
|
header;
|
|
993
949
|
firstFocusableEl;
|
|
994
950
|
lastFocusableEl;
|
|
995
|
-
device;
|
|
996
951
|
get host() { return index.getElement(this); }
|
|
997
952
|
/** Tracks the currently active dropdown instance. */
|
|
998
953
|
static activeDropdown = null;
|
|
999
|
-
/**
|
|
1000
|
-
* Holds the current visibility state of the dropdown.
|
|
1001
|
-
* This state is internally managed to track whether the dropdown is open (`true`) or closed (`false`),
|
|
1002
|
-
* and updates automatically when the dropdown is toggled.
|
|
1003
|
-
*/
|
|
1004
|
-
isVisible = false;
|
|
1005
|
-
/** Holds the current animation class. */
|
|
1006
|
-
animationClass = null;
|
|
1007
954
|
/**
|
|
1008
955
|
* Emits when the dropdown is shown or hidden.
|
|
1009
956
|
* The event payload is a boolean: `true` when the dropdown was opened, `false` when it was closed.
|
|
@@ -1037,9 +984,11 @@ const PostMegadropdown = class {
|
|
|
1037
984
|
// Close the previously active dropdown without animation
|
|
1038
985
|
PostMegadropdown.activeDropdown.forceClose();
|
|
1039
986
|
}
|
|
987
|
+
else {
|
|
988
|
+
this.animationClass = 'slide-in';
|
|
989
|
+
}
|
|
1040
990
|
this.isVisible = true;
|
|
1041
991
|
this.host.addEventListener('keydown', e => this.keyboardHandler(e));
|
|
1042
|
-
this.animationClass = 'slide-in';
|
|
1043
992
|
PostMegadropdown.activeDropdown = this;
|
|
1044
993
|
this.postToggleMegadropdown.emit(this.isVisible);
|
|
1045
994
|
this.addOutsideClickListener();
|
|
@@ -1049,6 +998,7 @@ const PostMegadropdown = class {
|
|
|
1049
998
|
*/
|
|
1050
999
|
async hide() {
|
|
1051
1000
|
this.animationClass = 'slide-out';
|
|
1001
|
+
PostMegadropdown.activeDropdown = null;
|
|
1052
1002
|
this.host.removeEventListener('keydown', e => this.keyboardHandler(e));
|
|
1053
1003
|
}
|
|
1054
1004
|
connectedCallback() {
|
|
@@ -1119,7 +1069,7 @@ const PostMegadropdown = class {
|
|
|
1119
1069
|
}
|
|
1120
1070
|
render() {
|
|
1121
1071
|
const containerStyle = this.isVisible ? {} : { display: 'none' };
|
|
1122
|
-
return (index.h(index.Host, { key: '
|
|
1072
|
+
return (index.h(index.Host, { key: '11be74da0c6d35e1a50c954735a6b1f079cd0eb6' }, index.h("div", { key: '202023b2495012f78ba761f20aef1ba0325a98f0', class: `megadropdown-container ${this.animationClass || ''}`, style: containerStyle, onAnimationEnd: () => this.handleAnimationEnd() }, index.h("div", { key: '87ac87a83de7ce798f5d9057b992893bfc00f2e1', class: "megadropdown" }, index.h("div", { key: '650738a55e5007b9ae0c3ee30fb2f1ae53152744', onClick: () => this.hide(), class: "back-button" }, index.h("slot", { key: 'a7b70ce1fbc7090807b8d60efce6cb83eb06674e', name: "back-button" })), index.h("div", { key: '812d3458649669e867d7d761079299b64d9e4e4d', onClick: () => this.hide(), class: "close-button" }, index.h("slot", { key: '2ee2df463dfd6667b729fd1b47987ea40e8d9d5f', name: "close-button" })), index.h("slot", { key: 'a5d0029319e34b652923d07fcddd5cb647912b03', name: "megadropdown-title" }), index.h("div", { key: 'c563cf50e3d9a1a466b9aec386982c80569ac094', class: "megadropdown-content" }, index.h("slot", { key: 'a05eeceb8fdbfc4373ee7d42d4f583475b44b4dc' }))))));
|
|
1123
1073
|
}
|
|
1124
1074
|
};
|
|
1125
1075
|
PostMegadropdown.style = PostMegadropdownStyle0;
|
|
@@ -1130,16 +1080,10 @@ const PostMegadropdownTriggerStyle0 = postMegadropdownTriggerCss;
|
|
|
1130
1080
|
const PostMegadropdownTrigger = class {
|
|
1131
1081
|
constructor(hostRef) {
|
|
1132
1082
|
index.registerInstance(this, hostRef);
|
|
1083
|
+
this.for = undefined;
|
|
1084
|
+
this.ariaExpanded = false;
|
|
1133
1085
|
}
|
|
1134
|
-
/**
|
|
1135
|
-
* ID of the mega dropdown element that this trigger is linked to. Used to open and close the specified mega dropdown.
|
|
1136
|
-
*/
|
|
1137
|
-
for;
|
|
1138
1086
|
get host() { return index.getElement(this); }
|
|
1139
|
-
/**
|
|
1140
|
-
* Manages the accessibility attribute `aria-expanded` to indicate whether the associated mega dropdown is expanded or collapsed.
|
|
1141
|
-
*/
|
|
1142
|
-
ariaExpanded = false;
|
|
1143
1087
|
/**
|
|
1144
1088
|
* Reference to the slotted button within the trigger, if present.
|
|
1145
1089
|
* Used to manage click and key events for mega dropdown control.
|
|
@@ -1204,6 +1148,8 @@ const PostMenu = class {
|
|
|
1204
1148
|
constructor(hostRef) {
|
|
1205
1149
|
index.registerInstance(this, hostRef);
|
|
1206
1150
|
this.toggleMenu = index.createEvent(this, "toggleMenu", 7);
|
|
1151
|
+
this.placement = 'bottom';
|
|
1152
|
+
this.isVisible = false;
|
|
1207
1153
|
}
|
|
1208
1154
|
popoverRef;
|
|
1209
1155
|
lastFocusedElement = null;
|
|
@@ -1218,18 +1164,6 @@ const PostMenu = class {
|
|
|
1218
1164
|
ESCAPE: 'Escape',
|
|
1219
1165
|
};
|
|
1220
1166
|
get host() { return index.getElement(this); }
|
|
1221
|
-
/**
|
|
1222
|
-
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
1223
|
-
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
1224
|
-
* towards the viewport if they would overlap edge boundaries.
|
|
1225
|
-
*/
|
|
1226
|
-
placement = 'bottom';
|
|
1227
|
-
/**
|
|
1228
|
-
* Holds the current visibility state of the menu.
|
|
1229
|
-
* This state is internally managed to track whether the menu is open (`true`) or closed (`false`),
|
|
1230
|
-
* and updates automatically when the menu is toggled.
|
|
1231
|
-
*/
|
|
1232
|
-
isVisible = false;
|
|
1233
1167
|
/**
|
|
1234
1168
|
* Emits when the menu is shown or hidden.
|
|
1235
1169
|
* The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
|
|
@@ -1369,16 +1303,10 @@ const PostMenuTriggerStyle0 = postMenuTriggerCss;
|
|
|
1369
1303
|
const PostMenuTrigger = class {
|
|
1370
1304
|
constructor(hostRef) {
|
|
1371
1305
|
index.registerInstance(this, hostRef);
|
|
1306
|
+
this.for = undefined;
|
|
1307
|
+
this.ariaExpanded = false;
|
|
1372
1308
|
}
|
|
1373
|
-
/**
|
|
1374
|
-
* ID of the menu element that this trigger is linked to. Used to open and close the specified menu.
|
|
1375
|
-
*/
|
|
1376
|
-
for;
|
|
1377
1309
|
get host() { return index.getElement(this); }
|
|
1378
|
-
/**
|
|
1379
|
-
* Manages the accessibility attribute `aria-expanded` to indicate whether the associated menu is expanded or collapsed.
|
|
1380
|
-
*/
|
|
1381
|
-
ariaExpanded = false;
|
|
1382
1310
|
/**
|
|
1383
1311
|
* Reference to the slotted button within the trigger, if present.
|
|
1384
1312
|
* Used to manage click and key events for menu control.
|
|
@@ -3562,6 +3490,10 @@ const PostPopovercontainer = class {
|
|
|
3562
3490
|
constructor(hostRef) {
|
|
3563
3491
|
index.registerInstance(this, hostRef);
|
|
3564
3492
|
this.postToggle = index.createEvent(this, "postToggle", 7);
|
|
3493
|
+
this.manualClose = false;
|
|
3494
|
+
this.placement = 'top';
|
|
3495
|
+
this.edgeGap = 8;
|
|
3496
|
+
this.arrow = false;
|
|
3565
3497
|
}
|
|
3566
3498
|
get host() { return index.getElement(this); }
|
|
3567
3499
|
arrowRef;
|
|
@@ -3572,24 +3504,6 @@ const PostPopovercontainer = class {
|
|
|
3572
3504
|
* Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
|
|
3573
3505
|
*/
|
|
3574
3506
|
postToggle;
|
|
3575
|
-
/**
|
|
3576
|
-
* Whether or not the popover should close when user clicks outside of it
|
|
3577
|
-
*/
|
|
3578
|
-
manualClose = false;
|
|
3579
|
-
/**
|
|
3580
|
-
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
3581
|
-
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
3582
|
-
* towards the viewport if they would overlap edge boundaries.
|
|
3583
|
-
*/
|
|
3584
|
-
placement = 'top';
|
|
3585
|
-
/**
|
|
3586
|
-
* Gap between the edge of the page and the popover
|
|
3587
|
-
*/
|
|
3588
|
-
edgeGap = 8;
|
|
3589
|
-
/**
|
|
3590
|
-
* Wheter or not to display a little pointer arrow
|
|
3591
|
-
*/
|
|
3592
|
-
arrow = false;
|
|
3593
3507
|
componentDidLoad() {
|
|
3594
3508
|
this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
|
|
3595
3509
|
}
|
|
@@ -3721,12 +3635,9 @@ const PostTogglebuttonStyle0 = postTogglebuttonCss;
|
|
|
3721
3635
|
const PostTogglebutton = class {
|
|
3722
3636
|
constructor(hostRef) {
|
|
3723
3637
|
index.registerInstance(this, hostRef);
|
|
3638
|
+
this.toggled = false;
|
|
3724
3639
|
}
|
|
3725
3640
|
get host() { return index.getElement(this); }
|
|
3726
|
-
/**
|
|
3727
|
-
* If `true`, the button is in the "on" state, otherwise it is in the "off" state.
|
|
3728
|
-
*/
|
|
3729
|
-
toggled = false;
|
|
3730
3641
|
validateToggled(value = this.toggled) {
|
|
3731
3642
|
checkType.checkType(value, 'boolean', 'The "toggled" property of the post-togglebutton must be a boolean.');
|
|
3732
3643
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-5acef487.js');
|
|
4
|
+
const _package = require('./package-df497c3c.js');
|
|
5
5
|
const attributeObserver = require('./attribute-observer-6d8b886b.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-f2eedfeb.js');
|
|
7
7
|
|
|
8
8
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
9
9
|
|
|
@@ -4868,24 +4868,13 @@ const triggerObserver = attributeObserver.getAttributeObserver(tooltipTargetAttr
|
|
|
4868
4868
|
const PostTooltip = class {
|
|
4869
4869
|
constructor(hostRef) {
|
|
4870
4870
|
index.registerInstance(this, hostRef);
|
|
4871
|
+
this.placement = 'top';
|
|
4872
|
+
this.arrow = true;
|
|
4873
|
+
this.delayed = false;
|
|
4871
4874
|
}
|
|
4872
4875
|
popoverRef;
|
|
4873
4876
|
wasOpenedByFocus = false;
|
|
4874
4877
|
get host() { return index.getElement(this); }
|
|
4875
|
-
/**
|
|
4876
|
-
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
4877
|
-
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
4878
|
-
* towards the viewport if they would overlap edge boundaries.
|
|
4879
|
-
*/
|
|
4880
|
-
placement = 'top';
|
|
4881
|
-
/**
|
|
4882
|
-
* Wheter or not to display a little pointer arrow
|
|
4883
|
-
*/
|
|
4884
|
-
arrow = true;
|
|
4885
|
-
/**
|
|
4886
|
-
* If `true`, the tooltip is displayed a few milliseconds after it is triggered
|
|
4887
|
-
*/
|
|
4888
|
-
delayed = false;
|
|
4889
4878
|
validateDelayed() {
|
|
4890
4879
|
index$1.checkEmptyOrType(this.delayed, 'boolean', 'The post-tooltip "delayed" property should be a boolean.');
|
|
4891
4880
|
}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postTooltip = require('./post-tooltip-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postTooltip = require('./post-tooltip-261f3348.js');
|
|
6
|
+
require('./index-5acef487.js');
|
|
7
|
+
require('./package-df497c3c.js');
|
|
8
8
|
require('./attribute-observer-6d8b886b.js');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-f2eedfeb.js');
|
|
10
10
|
require('./constants-238701d3.js');
|
|
11
11
|
require('./check-one-of-ef931478.js');
|
|
12
12
|
require('./check-type-696d2c51.js');
|
|
13
|
-
require('./check-url-
|
|
13
|
+
require('./check-url-1ff4cf75.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|