@swisspost/design-system-components 9.0.0-next.15 → 9.0.0-next.17
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-da5224f8.js → package-6000ba84.js} +1 -1
- package/dist/cjs/{post-accordion-412a5841.js → post-accordion-562d63d3.js} +4 -10
- package/dist/cjs/post-accordion-item-2b9a7c01.js +64 -0
- 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-8c349298.js → post-avatar-d9194b7f.js} +11 -23
- package/dist/cjs/post-avatar.cjs.entry.js +3 -3
- package/dist/cjs/{post-back-to-top-56f1cc8e.js → post-back-to-top-fa8d4e1d.js} +4 -8
- package/dist/cjs/post-back-to-top.cjs.entry.js +3 -3
- package/dist/cjs/{post-banner-6295a2a0.js → post-banner-3b91a695.js} +12 -26
- package/dist/cjs/post-banner.cjs.entry.js +5 -5
- package/dist/cjs/{post-breadcrumb-507266b2.js → post-breadcrumb-839a2652.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-d7eabec9.js → post-card-control-14a4dfc8.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-0ee4d82a.js → post-collapsible-trigger-05be3759.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-2bac2420.js → post-footer-a70591e7.js} +4 -7
- package/dist/cjs/post-footer.cjs.entry.js +3 -3
- package/dist/cjs/{post-linkarea-fc2f9c72.js → post-linkarea-199a2615.js} +2 -2
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/{post-menu-item-709448cc.js → post-menu-item-e20f184b.js} +4 -7
- package/dist/cjs/{post-popover-0a247c47.js → post-popover-e398bdfb.js} +5 -17
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-e09b9243.js → post-rating-7aff1856.js} +7 -20
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-7fb08fb1.js → post-tab-header-a2dbedd3.js} +4 -7
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-e35b6f6d.js → post-tab-panel-5be6d90e.js} +4 -7
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-3967f88b.js → post-tabs-c0ff849b.js} +3 -9
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-07461a94.js → post-tag-0d9d3036.js} +6 -17
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-togglebutton-675dccb0.js → post-togglebutton-46c57375.js} +70 -159
- package/dist/cjs/{post-tooltip-1c754653.js → post-tooltip-fd1b7b47.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.css +1 -1
- 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/dist/components/post-accordion-item2.js +103 -0
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/{p-cf4cb17f.js → post-accordion2.js} +7 -13
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/{p-4f60823b.js → post-avatar2.js} +13 -25
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/{p-8b750ccb.js → post-back-to-top2.js} +9 -13
- package/dist/components/post-banner.js +1 -1
- package/dist/components/{p-f566dbe4.js → post-banner2.js} +18 -32
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/{loaders/p-9e7120c3.js → dist/components/post-breadcrumb-item2.js} +6 -9
- package/dist/components/post-breadcrumb.js +1 -1
- package/dist/components/{p-23b12eda.js → post-breadcrumb2.js} +18 -24
- package/dist/components/post-card-control.js +1 -1
- package/dist/components/{p-6d591e1c.js → post-card-control2.js} +16 -47
- package/dist/components/post-closebutton.js +1 -1
- package/dist/components/{p-f5433ff7.js → post-closebutton2.js} +4 -4
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/dist/components/{p-5366ff92.js → post-collapsible-trigger2.js} +8 -11
- package/dist/components/post-collapsible.js +1 -1
- package/{loaders/p-c2033fcd.js → dist/components/post-collapsible2.js} +5 -8
- package/dist/components/post-footer.js +1 -1
- package/dist/components/{p-d428a69c.js → post-footer2.js} +9 -12
- package/dist/components/post-header.js +1 -1
- package/dist/components/{p-54e097c7.js → post-header2.js} +21 -13
- package/dist/components/post-icon.js +1 -1
- package/dist/components/{p-fcec301c.js → post-icon2.js} +13 -34
- package/dist/components/post-language-option.js +1 -1
- package/dist/components/{p-a07e1562.js → post-language-option2.js} +11 -27
- package/dist/components/post-language-switch.js +1 -1
- package/dist/components/{p-61419ecc.js → post-language-switch2.js} +17 -29
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/{p-9a726750.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-a3711af3.js → post-list2.js} +7 -16
- package/dist/components/post-logo.js +1 -1
- package/dist/components/{p-70e8b74f.js → post-logo2.js} +5 -8
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/{p-2e509a60.js → post-mainnavigation2.js} +7 -7
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/{p-4b60e5f8.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-4bbdde2b.js → dist/components/post-menu-item2.js} +3 -3
- package/dist/components/post-menu-trigger.js +1 -1
- package/{loaders/p-15877641.js → dist/components/post-menu-trigger2.js} +7 -13
- package/dist/components/post-menu.js +1 -1
- package/{loaders/p-7202d5d4.js → dist/components/post-menu2.js} +8 -18
- package/dist/components/post-popover.js +1 -1
- package/dist/components/{p-621f6dce.js → post-popover2.js} +8 -20
- package/dist/components/post-popovercontainer.js +1 -1
- package/dist/components/{p-f59c8544.js → post-popovercontainer2.js} +7 -21
- package/dist/components/post-rating.js +1 -1
- package/dist/components/{p-d343757a.js → post-rating2.js} +9 -22
- package/dist/components/post-tab-header.js +1 -1
- package/dist/components/{p-32b7a0a8.js → post-tab-header2.js} +7 -10
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/{p-db9fa77d.js → post-tab-panel2.js} +6 -9
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/{p-efc1bc9c.js → post-tabs2.js} +5 -11
- package/dist/components/post-tag.js +1 -1
- package/dist/components/{p-e482b539.js → post-tag2.js} +8 -19
- package/dist/components/post-togglebutton.js +1 -1
- package/dist/components/{p-3385af29.js → post-togglebutton2.js} +5 -8
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/{p-477784a7.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-0d05729a.js +3 -0
- package/dist/esm/{post-accordion-27faacb3.js → post-accordion-ae79061a.js} +4 -10
- package/dist/esm/post-accordion-item-6aa9b5bd.js +62 -0
- package/dist/esm/post-accordion-item.entry.js +5 -5
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-avatar-80b061df.js → post-avatar-2384ca3b.js} +11 -23
- package/dist/esm/post-avatar.entry.js +3 -3
- package/dist/esm/{post-back-to-top-531e1376.js → post-back-to-top-ec1c2754.js} +4 -8
- package/dist/esm/post-back-to-top.entry.js +3 -3
- package/dist/esm/{post-banner-e10a3101.js → post-banner-c7b88ac2.js} +12 -26
- package/dist/esm/post-banner.entry.js +5 -5
- package/dist/esm/{post-breadcrumb-54bac634.js → post-breadcrumb-d48cb773.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-ba354a50.js → post-card-control-b63a2837.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-3dbedd6e.js → post-collapsible-trigger-8f4daf1e.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-c73c4669.js → post-footer-b4b75c94.js} +4 -7
- package/dist/esm/post-footer.entry.js +3 -3
- package/dist/esm/{post-linkarea-65638949.js → post-linkarea-d3ae37f9.js} +2 -2
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/{post-menu-item-fb5afbfe.js → post-menu-item-d087d910.js} +4 -7
- package/dist/esm/{post-popover-50930237.js → post-popover-a096ee08.js} +5 -17
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-rating-3077bc2d.js → post-rating-0ead6a2a.js} +7 -20
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-359fe858.js → post-tab-header-e29d371b.js} +4 -7
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-1209fd6f.js → post-tab-panel-57840a1a.js} +4 -7
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-3a9acd87.js → post-tabs-70dfc43c.js} +3 -9
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-c8c9b213.js → post-tag-be1ad18d.js} +6 -17
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-togglebutton-1e02ab7c.js → post-togglebutton-8da6d613.js} +70 -159
- package/dist/esm/{post-tooltip-65892d5f.js → post-tooltip-cb549b9f.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-0ca3d16c.entry.js +1 -0
- package/dist/post-components/p-16d20563.js +1 -0
- package/dist/post-components/p-1a695d66.entry.js +1 -0
- package/dist/post-components/p-1eb54abb.entry.js +1 -0
- package/dist/post-components/p-26951eb6.js +1 -0
- package/dist/post-components/p-2bcf91f6.entry.js +1 -0
- package/dist/post-components/p-3e94d076.entry.js +1 -0
- package/dist/post-components/p-3ef59370.entry.js +1 -0
- package/dist/post-components/p-3fdd351e.js +1 -0
- package/dist/post-components/p-413b656c.entry.js +1 -0
- package/dist/post-components/{p-a7199df3.js → p-480169b9.js} +1 -1
- package/dist/post-components/p-49b69e0e.js +1 -0
- package/dist/post-components/p-59373941.js +1 -0
- package/dist/post-components/p-76bbd883.js +1 -0
- package/dist/post-components/p-77eb06d0.js +1 -0
- package/dist/post-components/p-78ae731e.js +1 -0
- package/dist/post-components/p-78b6020e.entry.js +1 -0
- package/dist/post-components/{p-458d4560.js → p-7f09a864.js} +3 -3
- package/dist/post-components/p-88c5e0bf.entry.js +1 -0
- package/dist/post-components/p-8c732622.entry.js +1 -0
- package/dist/post-components/p-8f2e8a63.entry.js +1 -0
- package/dist/post-components/{p-a680d8b0.entry.js → p-904b3028.entry.js} +1 -1
- package/dist/post-components/p-9a5111ca.entry.js +1 -0
- package/dist/post-components/p-9ae6517d.entry.js +1 -0
- package/dist/post-components/p-9b46c8f2.js +1 -0
- package/dist/post-components/p-a2806a35.js +1 -0
- package/dist/post-components/p-baf06ea0.js +1 -0
- package/dist/post-components/p-c3135c18.js +1 -0
- package/dist/post-components/p-c6a239f2.entry.js +1 -0
- package/dist/post-components/p-ce76e0bf.js +1 -0
- package/dist/post-components/p-ceb96aaa.js +1 -0
- package/dist/post-components/p-d2646369.entry.js +1 -0
- package/dist/post-components/p-debe5b2d.entry.js +1 -0
- package/dist/post-components/p-f2ed28e5.js +1 -0
- package/dist/post-components/p-f3c23d8c.entry.js +1 -0
- package/dist/post-components/p-f513fd5d.js +1 -0
- package/dist/post-components/p-f573860f.js +1 -0
- package/dist/post-components/p-fa65c799.js +1 -0
- package/dist/post-components/{p-68defca9.js → p-faaa4c0a.js} +1 -1
- package/dist/post-components/p-facba41d.entry.js +1 -0
- package/dist/post-components/p-fb8f5195.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/loaders/post-accordion-item2.js +103 -0
- 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-80478535.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/loaders/{p-5366ff92.js → post-collapsible-trigger2.js} +8 -11
- package/loaders/post-collapsible.js +1 -1
- package/{dist/components/p-10c1a15a.js → loaders/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-51b50ca3.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-4bbdde2b.js → loaders/post-menu-item2.js} +3 -3
- package/loaders/post-menu-trigger.js +1 -1
- package/{dist/components/p-15877641.js → loaders/post-menu-trigger2.js} +7 -13
- package/loaders/post-menu.js +1 -1
- package/{dist/components/p-7202d5d4.js → loaders/post-menu2.js} +8 -18
- package/loaders/post-popover.js +8 -20
- package/loaders/post-popovercontainer.js +1 -1
- package/loaders/{p-f59c8544.js → 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/cjs/post-accordion-item-0bcc2d1d.js +0 -71
- package/dist/components/p-3e8554e7.js +0 -1646
- package/dist/components/p-74e13cb1.js +0 -3
- package/dist/components/p-f60c925d.js +0 -110
- package/dist/esm/package-fe605ce2.js +0 -3
- package/dist/esm/post-accordion-item-518d7bd0.js +0 -69
- package/dist/post-components/p-05d809f2.entry.js +0 -1
- package/dist/post-components/p-122f969e.js +0 -1
- package/dist/post-components/p-16c08e07.entry.js +0 -1
- package/dist/post-components/p-16f883f9.entry.js +0 -1
- package/dist/post-components/p-1fda117c.js +0 -1
- package/dist/post-components/p-23a94c36.entry.js +0 -1
- package/dist/post-components/p-2ea6e06e.js +0 -1
- package/dist/post-components/p-36527185.js +0 -1
- package/dist/post-components/p-368cee4c.js +0 -1
- package/dist/post-components/p-3a408d41.entry.js +0 -1
- package/dist/post-components/p-43caa6b0.js +0 -1
- package/dist/post-components/p-52508346.entry.js +0 -1
- package/dist/post-components/p-54ae1f02.js +0 -1
- package/dist/post-components/p-55139ed4.js +0 -1
- package/dist/post-components/p-5a051654.entry.js +0 -1
- package/dist/post-components/p-5b058c27.entry.js +0 -1
- package/dist/post-components/p-5be385f2.js +0 -1
- package/dist/post-components/p-5cc36eb9.entry.js +0 -1
- package/dist/post-components/p-61ebfb27.js +0 -1
- package/dist/post-components/p-66552bf5.entry.js +0 -1
- package/dist/post-components/p-74dbfcd3.js +0 -1
- package/dist/post-components/p-74e13cb1.js +0 -1
- package/dist/post-components/p-8abc347f.js +0 -1
- package/dist/post-components/p-8fe69fae.js +0 -1
- package/dist/post-components/p-902e52fb.entry.js +0 -1
- package/dist/post-components/p-9bf305da.entry.js +0 -1
- package/dist/post-components/p-a7683dcd.entry.js +0 -1
- package/dist/post-components/p-aaef3917.js +0 -1
- package/dist/post-components/p-ad2a716a.entry.js +0 -1
- package/dist/post-components/p-b5758f64.js +0 -1
- package/dist/post-components/p-b64f5ba4.entry.js +0 -1
- package/dist/post-components/p-cb9ab938.js +0 -1
- package/dist/post-components/p-ce4a94d4.entry.js +0 -1
- package/dist/post-components/p-d9833667.js +0 -2
- package/dist/post-components/p-dc8a4c6f.js +0 -1
- package/dist/post-components/p-e725b6f4.js +0 -1
- package/dist/post-components/p-ecc6a8fa.entry.js +0 -1
- package/dist/post-components/p-fed91ff7.entry.js +0 -1
- package/loaders/p-3e8554e7.js +0 -1646
- package/loaders/p-74e13cb1.js +0 -3
- package/loaders/p-e57c041b.js +0 -110
- /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
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as version } from './package.js';
|
|
3
|
+
import { H as HEADING_LEVELS } from './heading-levels.js';
|
|
4
|
+
import { c as checkEmptyOrOneOf } from './index2.js';
|
|
5
|
+
import { n as nanoid } from './index.browser.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './post-collapsible2.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './post-collapsible-trigger2.js';
|
|
8
|
+
import { d as defineCustomElement$1 } from './post-icon2.js';
|
|
9
|
+
|
|
10
|
+
const postAccordionItemCss = ".accordion-item::after{display:block;content:\"\";margin-top:calc(var(--post-device-border-width-default)*-1);border-bottom:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}.accordion-item:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-item:has(.accordion-button:hover)::after{border-color:Highlight}}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default)) calc(var(--post-device-spacing-padding-5) + var(--post-device-border-width-default));cursor:pointer}.accordion-button::before{display:block;position:absolute;content:\"\";inset:0;bottom:auto;border-top:var(--post-accordion-button-border-top)}.accordion-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}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed{padding-block-start:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default));padding-block-end:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default))}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:calc(var(--post-device-spacing-padding-block-25) + var(--post-device-border-width-default));padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}";
|
|
11
|
+
const PostAccordionItemStyle0 = postAccordionItemCss;
|
|
12
|
+
|
|
13
|
+
const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionItem extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.__attachShadow();
|
|
18
|
+
this.id = undefined;
|
|
19
|
+
this.slottedLogo = undefined;
|
|
20
|
+
this.collapsed = false;
|
|
21
|
+
this.headingLevel = undefined;
|
|
22
|
+
}
|
|
23
|
+
collapsible;
|
|
24
|
+
get host() { return this; }
|
|
25
|
+
validateHeadingLevel(newValue = this.headingLevel) {
|
|
26
|
+
checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.');
|
|
27
|
+
}
|
|
28
|
+
componentWillLoad() {
|
|
29
|
+
this.id = this.host.id || `p${nanoid(6)}`;
|
|
30
|
+
}
|
|
31
|
+
componentDidLoad() {
|
|
32
|
+
this.validateHeadingLevel();
|
|
33
|
+
}
|
|
34
|
+
// capture to make sure the "collapsed" property is updated before the event is consumed
|
|
35
|
+
onCollapseToggle(event) {
|
|
36
|
+
if (event.target === this.host &&
|
|
37
|
+
event.target.localName === 'post-accordion-item') {
|
|
38
|
+
this.collapsed = !event.detail;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Triggers the collapse programmatically.
|
|
43
|
+
*/
|
|
44
|
+
async toggle(force) {
|
|
45
|
+
return this.collapsible.toggle(force);
|
|
46
|
+
}
|
|
47
|
+
onSlotLogoChange() {
|
|
48
|
+
this.slottedLogo = this.host.querySelector('img[slot="logo"]');
|
|
49
|
+
}
|
|
50
|
+
componentWillRender() {
|
|
51
|
+
this.slottedLogo = this.host.querySelector('img[slot="logo"]');
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
const headingLevel = this.host.closest('post-accordion')?.getAttribute('heading-level');
|
|
55
|
+
const HeadingTag = `h${headingLevel ?? this.headingLevel ?? 2}`;
|
|
56
|
+
return (h(Host, { key: 'f1275370d7aff41e1fc60285395af35a1ecc90e7', id: this.id, "data-version": version }, h("div", { key: 'd74f762805143939a891e40cfa7a4779ea29921d', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: '5ddad810d8b1f8564bdaaf2b09e9e89eee96e007', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'fc6dc947d426bb31de04e83d8c9795a0c826733c', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: 'bd8005bb87e8e00fee57794bd73c5f06cb642a3d', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, part: "button" }, h("span", { key: '89eb0b80e63867e2dcd6b27d95c6519d1e86b10d', class: {
|
|
57
|
+
'logo-container': true,
|
|
58
|
+
'has-image': !!this.slottedLogo,
|
|
59
|
+
} }, h("slot", { key: '0940530a15ce04b50af007db7f1530ae3c6a456d', name: "logo", onSlotchange: this.onSlotLogoChange.bind(this) })), h("slot", { key: 'f06a6b067727be0667b4ea9384e75ee8aa435bfc', name: "header" }), h("post-icon", { key: '460b2c22083cc3049e0c83fc690cb44e3f984db7', name: "2051" })))), h("post-collapsible", { key: '2411f1f93d136ae0bfcbf0da9bb2902d7da0e2a0', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: 'e648a76e35c28bc1aa5cc57233bf6e8277532294', class: "accordion-body", part: "body" }, h("slot", { key: '7841fff45f2132990d8f1577dfe7d3707d1eb46c' }))))));
|
|
60
|
+
}
|
|
61
|
+
static get watchers() { return {
|
|
62
|
+
"headingLevel": ["validateHeadingLevel"]
|
|
63
|
+
}; }
|
|
64
|
+
static get style() { return PostAccordionItemStyle0; }
|
|
65
|
+
}, [1, "post-accordion-item", {
|
|
66
|
+
"collapsed": [1028],
|
|
67
|
+
"headingLevel": [2, "heading-level"],
|
|
68
|
+
"id": [32],
|
|
69
|
+
"slottedLogo": [32],
|
|
70
|
+
"toggle": [64]
|
|
71
|
+
}, [[2, "postToggle", "onCollapseToggle"]], {
|
|
72
|
+
"headingLevel": ["validateHeadingLevel"]
|
|
73
|
+
}]);
|
|
74
|
+
function defineCustomElement() {
|
|
75
|
+
if (typeof customElements === "undefined") {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const components = ["post-accordion-item", "post-collapsible", "post-collapsible-trigger", "post-icon"];
|
|
79
|
+
components.forEach(tagName => { switch (tagName) {
|
|
80
|
+
case "post-accordion-item":
|
|
81
|
+
if (!customElements.get(tagName)) {
|
|
82
|
+
customElements.define(tagName, PostAccordionItem);
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
case "post-collapsible":
|
|
86
|
+
if (!customElements.get(tagName)) {
|
|
87
|
+
defineCustomElement$3();
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
case "post-collapsible-trigger":
|
|
91
|
+
if (!customElements.get(tagName)) {
|
|
92
|
+
defineCustomElement$2();
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
case "post-icon":
|
|
96
|
+
if (!customElements.get(tagName)) {
|
|
97
|
+
defineCustomElement$1();
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
} });
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { PostAccordionItem as P, defineCustomElement as d };
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as version } from './
|
|
3
|
-
import { H as HEADING_LEVELS } from './
|
|
4
|
-
import { c as checkOneOf } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as version } from './package.js';
|
|
3
|
+
import { H as HEADING_LEVELS } from './heading-levels.js';
|
|
4
|
+
import { c as checkOneOf } from './check-one-of.js';
|
|
5
5
|
|
|
6
6
|
const postAccordionCss = ":host{display:block}::slotted(post-accordion-item){display:block}::slotted(post-accordion-item:not(:only-of-type:first-of-type)){margin-top:calc(var(--post-device-border-width-default)*-1)}::slotted(post-accordion-item:not(:only-of-type):first-of-type){--post-accordion-button-border-top:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}";
|
|
7
7
|
const PostAccordionStyle0 = postAccordionCss;
|
|
8
8
|
|
|
9
|
-
const PostAccordion = /*@__PURE__*/ proxyCustomElement(class PostAccordion extends
|
|
9
|
+
const PostAccordion = /*@__PURE__*/ proxyCustomElement(class PostAccordion extends HTMLElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
13
13
|
this.__attachShadow();
|
|
14
|
+
this.headingLevel = undefined;
|
|
15
|
+
this.multiple = false;
|
|
14
16
|
}
|
|
15
17
|
accordionItems;
|
|
16
18
|
expandedItems = new Set();
|
|
17
19
|
get host() { return this; }
|
|
18
|
-
/**
|
|
19
|
-
* Defines the hierarchical level of the `post-accordion-item` headers within the headings structure.
|
|
20
|
-
*/
|
|
21
|
-
headingLevel;
|
|
22
20
|
validateHeadingLevel(newValue = this.headingLevel) {
|
|
23
21
|
if (!newValue)
|
|
24
22
|
return;
|
|
@@ -27,10 +25,6 @@ const PostAccordion = /*@__PURE__*/ proxyCustomElement(class PostAccordion exten
|
|
|
27
25
|
item.setAttribute('heading-level', String(newValue));
|
|
28
26
|
});
|
|
29
27
|
}
|
|
30
|
-
/**
|
|
31
|
-
* If `true`, multiple `post-accordion-item` can be open at the same time.
|
|
32
|
-
*/
|
|
33
|
-
multiple = false;
|
|
34
28
|
componentWillLoad() {
|
|
35
29
|
this.registerAccordionItems();
|
|
36
30
|
this.validateHeadingLevel();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as version } from './
|
|
3
|
-
import { c as checkNonEmpty } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as version } from './package.js';
|
|
3
|
+
import { c as checkNonEmpty } from './check-non-empty.js';
|
|
4
4
|
|
|
5
5
|
const postAvatarCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:\"\";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase}.initials span{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.initials span:not(caption){position:absolute !important}";
|
|
6
6
|
const PostAvatarStyle0 = postAvatarCss;
|
|
@@ -17,35 +17,23 @@ var AvatarType;
|
|
|
17
17
|
AvatarType["Initials"] = "initials";
|
|
18
18
|
AvatarType[AvatarType["Null"] = null] = "Null";
|
|
19
19
|
})(AvatarType || (AvatarType = {}));
|
|
20
|
-
const PostAvatar = /*@__PURE__*/ proxyCustomElement(class PostAvatar extends
|
|
20
|
+
const PostAvatar = /*@__PURE__*/ proxyCustomElement(class PostAvatar extends HTMLElement {
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
23
|
this.__registerHost();
|
|
24
24
|
this.__attachShadow();
|
|
25
|
+
this.firstname = undefined;
|
|
26
|
+
this.lastname = undefined;
|
|
27
|
+
this.userid = undefined;
|
|
28
|
+
this.email = undefined;
|
|
29
|
+
this.slottedImage = undefined;
|
|
30
|
+
this.avatarType = null;
|
|
31
|
+
this.imageUrl = '';
|
|
32
|
+
this.imageAlt = '';
|
|
33
|
+
this.initials = '';
|
|
25
34
|
}
|
|
26
35
|
static INTERNAL_USERID_IMAGE_SRC = 'https://web.post.ch/UserProfileImage/{userid}.png';
|
|
27
36
|
get host() { return this; }
|
|
28
|
-
/**
|
|
29
|
-
* Defines the users firstname.
|
|
30
|
-
*/
|
|
31
|
-
firstname;
|
|
32
|
-
/**
|
|
33
|
-
* Defines the users lastname.
|
|
34
|
-
*/
|
|
35
|
-
lastname;
|
|
36
|
-
/**
|
|
37
|
-
* Defines the company internal userId.<div className="mb-1 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
38
|
-
*/
|
|
39
|
-
userid;
|
|
40
|
-
/**
|
|
41
|
-
* Defines the users email address associated with a gravatar profile picture.
|
|
42
|
-
*/
|
|
43
|
-
email;
|
|
44
|
-
slottedImage;
|
|
45
|
-
avatarType = null;
|
|
46
|
-
imageUrl = '';
|
|
47
|
-
imageAlt = '';
|
|
48
|
-
initials = '';
|
|
49
37
|
validateFirstname() {
|
|
50
38
|
checkNonEmpty(this.firstname, 'The `firstname` property of the `post-avatar` is required!');
|
|
51
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostBackToTop$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostBackToTop$1, d as defineCustomElement$1 } from './post-back-to-top2.js';
|
|
2
2
|
|
|
3
3
|
const PostBackToTop = PostBackToTop$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as slideUp, a as slideDown } from './
|
|
3
|
-
import { v as version } from './
|
|
4
|
-
import { c as checkType } from './
|
|
5
|
-
import { c as checkNonEmpty } from './
|
|
6
|
-
import { d as defineCustomElement$1 } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { s as slideUp, a as slideDown } from './slide.js';
|
|
3
|
+
import { v as version } from './package.js';
|
|
4
|
+
import { c as checkType } from './check-type.js';
|
|
5
|
+
import { c as checkNonEmpty } from './check-non-empty.js';
|
|
6
|
+
import { d as defineCustomElement$1 } from './post-icon2.js';
|
|
7
7
|
|
|
8
8
|
const postBackToTopCss = ":host{--post-floating-button-translate-y:calc(-1 * var(--post-core-dimension-112));position:fixed;top:var(--post-device-position-1);right:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;box-shadow:var(--post-device-elevation-300);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:flex;align-items:center;justify-content:center}:host .back-to-top{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 .back-to-top: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 .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top: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 .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
9
9
|
const PostBackToTopStyle0 = postBackToTopCss;
|
|
10
10
|
|
|
11
|
-
const PostBackToTop = /*@__PURE__*/ proxyCustomElement(class PostBackToTop extends
|
|
11
|
+
const PostBackToTop = /*@__PURE__*/ proxyCustomElement(class PostBackToTop extends HTMLElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
14
14
|
this.__registerHost();
|
|
15
15
|
this.__attachShadow();
|
|
16
|
+
this.label = undefined;
|
|
17
|
+
this.belowFold = false;
|
|
16
18
|
}
|
|
17
19
|
get el() { return this; }
|
|
18
|
-
/**
|
|
19
|
-
* The label of the back-to-top button, intended solely for accessibility purposes.
|
|
20
|
-
* This label is always hidden from view.
|
|
21
|
-
**/
|
|
22
|
-
label;
|
|
23
|
-
belowFold = false;
|
|
24
20
|
translateY;
|
|
25
21
|
isBelowFold() {
|
|
26
22
|
return window.scrollY > window.innerHeight;
|
|
@@ -1,60 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as version } from './
|
|
3
|
-
import { f as fadeOut } from './
|
|
4
|
-
import { a as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './
|
|
5
|
-
import { n as nanoid } from './
|
|
6
|
-
import { d as defineCustomElement$1 } from './
|
|
7
|
-
import { c as checkType } from './
|
|
8
|
-
import { c as checkNonEmpty } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as version } from './package.js';
|
|
3
|
+
import { f as fadeOut } from './fade.js';
|
|
4
|
+
import { a as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index2.js';
|
|
5
|
+
import { n as nanoid } from './index.browser.js';
|
|
6
|
+
import { d as defineCustomElement$1 } from './post-icon2.js';
|
|
7
|
+
import { c as checkType } from './check-type.js';
|
|
8
|
+
import { c as checkNonEmpty } from './check-non-empty.js';
|
|
9
9
|
|
|
10
10
|
const BANNER_TYPES = ['neutral', 'success', 'warning', 'danger', 'info'];
|
|
11
11
|
|
|
12
12
|
const postBannerCss = ".banner,.alert{min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));box-sizing:border-box;box-shadow:var(--post-device-elevation-100);border-radius:var(--post-device-border-radius-2);padding:var(--post-device-spacing-padding-10) var(--post-device-spacing-padding-10);padding-inline-start:calc(var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6));font-weight:var(--post-core-font-weight-400);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);position:relative;color:var(--post-scheme-color-surface-default-fg);background-color:var(--post-scheme-color-signal-neutral);border-color:var(--post-scheme-color-signal-neutral-dark);color-scheme:var(--post-core-bg-scheme-light)}.banner:not(.no-icon)::before,.alert:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-signal-neutral-dark)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner:not(.no-icon)::before,.alert:not(.no-icon)::before{color:CanvasText}}.banner:has(>post-icon)::before,.alert:has(>post-icon)::before{content:none}.banner>post-icon,.alert>post-icon{background-color:var(--post-scheme-color-signal-neutral);color:var(--post-scheme-color-signal-neutral-dark)}.banner::before,.alert::before{content:\"\";display:block}.banner::before,.banner>post-icon,.alert::before,.alert>post-icon{position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);left:var(--post-device-spacing-padding-10);top:var(--post-device-spacing-padding-10)}.banner.no-icon,.alert.no-icon{min-height:calc(2*var(--post-device-spacing-padding-10) + var(--post-core-dimension-24));padding-inline-start:var(--post-device-spacing-padding-10)}.banner.no-icon::before,.alert.no-icon::before{content:unset}.banner.no-icon>post-icon,.alert.no-icon>post-icon{display:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner,.alert{filter:none !important;border:2px solid CanvasText}}.banner:not(.banner-action):not(.alert-action),.alert:not(.banner-action):not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:var(--post-core-dimension-4)}.banner:not(.banner-action):not(.alert-action) a,.alert:not(.banner-action):not(.alert-action) a{font-weight:var(--post-core-font-weight-400)}.banner:not(.banner-action):not(.alert-action) hr,.alert:not(.banner-action):not(.alert-action) hr{margin-block:var(--post-core-dimension-8) var(--post-core-dimension-12) !important}.banner:not(.banner-action):not(.alert-action)>*,.alert:not(.banner-action):not(.alert-action)>*{margin:0}.banner-container{border:unset;background-color:rgba(0,0,0,0)}.banner-dismissible,.alert-dismissible{pointer-events:auto;position:relative}.banner-dismissible:not(.banner-action):not(.alert-action),.alert-dismissible:not(.banner-action):not(.alert-action){padding-inline-end:calc(var(--post-device-spacing-padding-10) + var(--post-device-spacing-gap-inline-6) + var(--post-core-dimension-24))}.banner-dismissible>.btn-close,.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:var(--post-device-spacing-padding-10)}.banner-buttons,.alert-buttons{display:flex;align-items:center;justify-content:flex-start;flex-direction:row-reverse;margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media (max-width: 779.98px){.banner-buttons,.alert-buttons{flex-direction:column}}.banner-action>.banner-content,.banner-action>.alert-content,.alert-action>.banner-content,.alert-action>.alert-content{display:flex;flex-direction:column;justify-content:center;gap:var(--post-core-dimension-4)}.banner-action>.banner-content a,.banner-action>.alert-content a,.alert-action>.banner-content a,.alert-action>.alert-content a{font-weight:var(--post-core-font-weight-400)}.banner-action>.banner-content hr,.banner-action>.alert-content hr,.alert-action>.banner-content hr,.alert-action>.alert-content hr{margin-block:var(--post-core-dimension-8) var(--post-core-dimension-12) !important}.banner-action>.banner-content>*,.banner-action>.alert-content>*,.alert-action>.banner-content>*,.alert-action>.alert-content>*{margin:0}@media (max-width: 779.98px){.banner-action,.alert-action{flex-direction:column;align-items:stretch}.banner-action>.banner-content,.banner-action>.alert-content,.alert-action>.banner-content,.alert-action>.alert-content{padding-inline-start:var(--post-device-spacing-gap-inline-6)var(--post-device-sizing-notification-icon-2);padding-inline-end:var(--post-device-spacing-gap-inline-6)var(--post-core-dimension-24)}.banner-action.no-icon>.banner-content,.banner-action.no-icon>.alert-content,.alert-action.no-icon>.banner-content,.alert-action.no-icon>.alert-content{padding-inline-start:0}.banner-action>.banner-buttons,.banner-action>.alert-buttons,.alert-action>.banner-buttons,.alert-action>.alert-buttons{display:flex}.banner-action>.banner-buttons>.btn,.banner-action>.banner-buttons>::slotted(.btn),.banner-action>.alert-buttons>.btn,.banner-action>.alert-buttons>::slotted(.btn),.alert-action>.banner-buttons>.btn,.alert-action>.banner-buttons>::slotted(.btn),.alert-action>.alert-buttons>.btn,.alert-action>.alert-buttons>::slotted(.btn){flex:1 0 0;width:100%}.banner-action>.banner-buttons>.btn:first-child,.banner-action>.banner-buttons>::slotted(.btn:first-child),.banner-action>.alert-buttons>.btn:first-child,.banner-action>.alert-buttons>::slotted(.btn:first-child),.alert-action>.banner-buttons>.btn:first-child,.alert-action>.banner-buttons>::slotted(.btn:first-child),.alert-action>.alert-buttons>.btn:first-child,.alert-action>.alert-buttons>::slotted(.btn:first-child){margin-inline-start:0}}.banner-neutral,.alert-neutral{background-color:var(--post-scheme-color-signal-neutral);border-color:var(--post-scheme-color-signal-neutral-dark);color-scheme:var(--post-core-bg-scheme-light)}.banner-neutral:not(.no-icon)::before,.alert-neutral:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-signal-neutral-dark)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-neutral:not(.no-icon)::before,.alert-neutral:not(.no-icon)::before{color:CanvasText}}.banner-neutral:has(>post-icon)::before,.alert-neutral:has(>post-icon)::before{content:none}.banner-neutral>post-icon,.alert-neutral>post-icon{background-color:var(--post-scheme-color-signal-neutral);color:var(--post-scheme-color-signal-neutral-dark)}.banner-success,.alert-success{background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-success:not(.no-icon)::before,.alert-success:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-success-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-success:not(.no-icon)::before,.alert-success:not(.no-icon)::before{color:CanvasText}}.banner-success:has(>post-icon)::before,.alert-success:has(>post-icon)::before{content:none}.banner-success>post-icon,.alert-success>post-icon{background-color:var(--post-scheme-color-interactive-notification-success-bg);color:var(--post-scheme-color-interactive-notification-success-icon)}.banner-warning,.alert-warning{background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-warning:not(.no-icon)::before,.alert-warning:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-warning-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-warning:not(.no-icon)::before,.alert-warning:not(.no-icon)::before{color:CanvasText}}.banner-warning:has(>post-icon)::before,.alert-warning:has(>post-icon)::before{content:none}.banner-warning>post-icon,.alert-warning>post-icon{background-color:var(--post-scheme-color-interactive-notification-warning-bg);color:var(--post-scheme-color-interactive-notification-warning-icon)}.banner-error,.alert-error{background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-error:not(.no-icon)::before,.alert-error:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-error-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-error:not(.no-icon)::before,.alert-error:not(.no-icon)::before{color:CanvasText}}.banner-error:has(>post-icon)::before,.alert-error:has(>post-icon)::before{content:none}.banner-error>post-icon,.alert-error>post-icon{background-color:var(--post-scheme-color-interactive-notification-error-bg);color:var(--post-scheme-color-interactive-notification-error-icon)}.banner-info,.alert-info{background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-info:not(.no-icon)::before,.alert-info:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-info-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-info:not(.no-icon)::before,.alert-info:not(.no-icon)::before{color:CanvasText}}.banner-info:has(>post-icon)::before,.alert-info:has(>post-icon)::before{content:none}.banner-info>post-icon,.alert-info>post-icon{background-color:var(--post-scheme-color-interactive-notification-info-bg);color:var(--post-scheme-color-interactive-notification-info-icon)}.banner-danger,.alert-danger{background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-danger:not(.no-icon)::before,.alert-danger:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-error-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-danger:not(.no-icon)::before,.alert-danger:not(.no-icon)::before{color:CanvasText}}.banner-danger:has(>post-icon)::before,.alert-danger:has(>post-icon)::before{content:none}.banner-danger>post-icon,.alert-danger>post-icon{background-color:var(--post-scheme-color-interactive-notification-error-bg);color:var(--post-scheme-color-interactive-notification-error-icon)}.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{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}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:#999}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}:host ::slotted(*){margin:0 !important}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}";
|
|
13
13
|
const PostBannerStyle0 = postBannerCss;
|
|
14
14
|
|
|
15
|
-
const PostBanner = /*@__PURE__*/ proxyCustomElement(class PostBanner extends
|
|
15
|
+
const PostBanner = /*@__PURE__*/ proxyCustomElement(class PostBanner extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
18
18
|
this.__registerHost();
|
|
19
19
|
this.__attachShadow();
|
|
20
20
|
this.postDismissed = createEvent(this, "postDismissed", 7);
|
|
21
|
+
this.bannerId = `p${nanoid(6)}`;
|
|
22
|
+
this.classes = undefined;
|
|
23
|
+
this.hasActions = undefined;
|
|
24
|
+
this.hasHeading = undefined;
|
|
25
|
+
this.onDismissButtonClick = () => this.dismiss();
|
|
26
|
+
this.dismissible = false;
|
|
27
|
+
this.dismissLabel = undefined;
|
|
28
|
+
this.icon = undefined;
|
|
29
|
+
this.type = 'neutral';
|
|
21
30
|
}
|
|
22
31
|
get host() { return this; }
|
|
23
|
-
bannerId = `p${nanoid(6)}`;
|
|
24
|
-
classes;
|
|
25
|
-
hasActions;
|
|
26
|
-
hasHeading;
|
|
27
|
-
onDismissButtonClick = () => this.dismiss();
|
|
28
|
-
/**
|
|
29
|
-
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
30
|
-
*/
|
|
31
|
-
dismissible = false;
|
|
32
32
|
validateDismissible(isDismissible = this.dismissible) {
|
|
33
33
|
checkType(isDismissible, 'boolean', 'The post-banner "dismissible" prop should be a boolean.');
|
|
34
34
|
setTimeout(() => this.validateDismissLabel());
|
|
35
35
|
}
|
|
36
|
-
/**
|
|
37
|
-
* The label to use for the close button of a dismissible banner.
|
|
38
|
-
*/
|
|
39
|
-
dismissLabel;
|
|
40
36
|
validateDismissLabel(dismissLabel = this.dismissLabel) {
|
|
41
37
|
if (this.dismissible) {
|
|
42
38
|
checkNonEmpty(dismissLabel, 'Dismissible post-banner\'s require a "dismiss-label" prop.');
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
|
-
/**
|
|
46
|
-
* The icon to display in the banner. By default, the icon depends on the banner type.
|
|
47
|
-
*
|
|
48
|
-
* If `none`, no icon is displayed.
|
|
49
|
-
*/
|
|
50
|
-
icon;
|
|
51
41
|
validateIcon(icon = this.icon) {
|
|
52
42
|
checkEmptyOrPattern(icon, /\d{4}|none/, 'The post-banner "icon" prop should be a 4-digits string.');
|
|
53
43
|
}
|
|
54
|
-
/**
|
|
55
|
-
* The type of the banner.
|
|
56
|
-
*/
|
|
57
|
-
type = 'neutral';
|
|
58
44
|
validateType(type = this.type) {
|
|
59
45
|
checkEmptyOrOneOf(type, BANNER_TYPES, `The post-banner requires a type form: ${BANNER_TYPES.join(', ')}`);
|
|
60
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostBreadcrumbItem$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostBreadcrumbItem$1, d as defineCustomElement$1 } from './post-breadcrumb-item2.js';
|
|
2
2
|
|
|
3
3
|
const PostBreadcrumbItem = PostBreadcrumbItem$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as version } from './
|
|
3
|
-
import {
|
|
4
|
-
import { d as defineCustomElement$1 } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as version } from './package.js';
|
|
3
|
+
import { d as checkEmptyOrUrl } from './index2.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './post-icon2.js';
|
|
5
5
|
|
|
6
6
|
const postBreadcrumbItemCss = ":host{display:flex;align-items:center;justify-content:start;gap:var(--post-device-spacing-gap-inline-5)}:host post-icon{box-sizing:border-box;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}.breadcrumb-item{white-space:nowrap;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item{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(: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(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item: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(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}";
|
|
7
7
|
const PostBreadcrumbItemStyle0 = postBreadcrumbItemCss;
|
|
8
8
|
|
|
9
|
-
const PostBreadcrumbItem = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumbItem extends
|
|
9
|
+
const PostBreadcrumbItem = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumbItem extends HTMLElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
13
13
|
this.__attachShadow();
|
|
14
|
+
this.url = undefined;
|
|
14
15
|
}
|
|
15
16
|
get host() { return this; }
|
|
16
|
-
/**
|
|
17
|
-
* The optional URL to which the breadcrumb item will link.
|
|
18
|
-
*/
|
|
19
|
-
url;
|
|
20
17
|
validUrl;
|
|
21
18
|
validateUrl() {
|
|
22
19
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostBreadcrumb$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostBreadcrumb$1, d as defineCustomElement$1 } from './post-breadcrumb2.js';
|
|
2
2
|
|
|
3
3
|
const PostBreadcrumb = PostBreadcrumb$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as version } from './
|
|
3
|
-
import { b as checkUrl } from './
|
|
4
|
-
import { d as debounce } from './
|
|
5
|
-
import { d as defineCustomElement$6 } from './
|
|
6
|
-
import { d as defineCustomElement$5 } from './
|
|
7
|
-
import { d as defineCustomElement$4 } from './
|
|
8
|
-
import { d as defineCustomElement$3 } from './
|
|
9
|
-
import { d as defineCustomElement$2 } from './
|
|
10
|
-
import { d as defineCustomElement$1 } from './
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as version } from './package.js';
|
|
3
|
+
import { b as checkUrl } from './index2.js';
|
|
4
|
+
import { d as debounce } from './debounce.js';
|
|
5
|
+
import { d as defineCustomElement$6 } from './post-breadcrumb-item2.js';
|
|
6
|
+
import { d as defineCustomElement$5 } from './post-icon2.js';
|
|
7
|
+
import { d as defineCustomElement$4 } from './post-menu2.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './post-menu-item2.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './post-menu-trigger2.js';
|
|
10
|
+
import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
|
|
11
11
|
|
|
12
12
|
const postBreadcrumbCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:flex;align-items:center}.breadcrumbs-nav{display:flex;align-items:center}.hidden-items{gap:var(--post-device-spacing-gap-inline-4);position:absolute;height:0;overflow:hidden;white-space:nowrap}.breadcrumbs-list{display:flex;flex-wrap:nowrap;position:relative;margin:0;padding:0;list-style:none;align-items:center;height:100%;gap:var(--post-device-spacing-gap-inline-4)}post-icon{display:inline-block;box-sizing:border-box;color:var(--post-scheme-color-interactive-primary-enabled-fg1);height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.breadcrumb-item-icon{padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}li a{display:flex;align-items:center}li 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}li 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){li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){li 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){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}li a:focus{border-radius:var(--post-device-border-radius-focus)}li a .home-icon{padding-block:var(--post-device-spacing-padding-4);padding-inline:var(--post-device-spacing-padding-4)}li a .home-icon:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a .home-icon a,li a .home-icon:focus,li a .home-icon:hover{color:CanvasText !important}}.menu-trigger-wrapper{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}.actual-menu{display:flex;align-items:center}post-menu-trigger{display:flex;align-items:center;padding-block:var(--post-device-spacing-padding-block-7)}post-menu-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-menu-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-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-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-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-menu-trigger:focus{border-radius:var(--post-device-border-radius-focus)}post-menu-trigger button{background:none;border:none;line-height:150%;font-size:var(--post-device-font-size-6);cursor:pointer;padding:0;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}post-menu-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger button a,post-menu-trigger button:focus,post-menu-trigger button:hover{color:LinkText !important}}post-menu::part(popover-container){display:flex;flex-direction:column;align-items:start;padding:.6rem;gap:var(--post-device-spacing-gap-inline-4)}post-menu::part(popover-container) ::slotted(post-menu-item:not(:last-child)){margin-bottom:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;justify-content:center;gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item a{text-decoration:none;color:inherit;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);font-size:var(--post-device-font-size-6)}.breadcrumb-item 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 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 a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item 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 a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item a:focus-visible{border-radius:var(--post-device-border-radius-focus)}.breadcrumb-item span:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item span:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}post-breadcrumb-item:last-of-type{pointer-events:none;color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumb-item:last-of-type:hover{color:var(--post-scheme-color-interactive-primary-selected-fg1);text-decoration:none}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}";
|
|
13
13
|
const PostBreadcrumbStyle0 = postBreadcrumbCss;
|
|
14
14
|
|
|
15
|
-
const PostBreadcrumb = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumb extends
|
|
15
|
+
const PostBreadcrumb = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumb extends HTMLElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
18
18
|
this.__registerHost();
|
|
19
19
|
this.__attachShadow();
|
|
20
|
+
this.homeUrl = undefined;
|
|
21
|
+
this.homeText = 'Home';
|
|
22
|
+
this.breadcrumbItems = [];
|
|
23
|
+
this.isConcatenated = undefined;
|
|
24
|
+
this.lastWindowWidth = undefined;
|
|
20
25
|
}
|
|
21
26
|
get host() { return this; }
|
|
22
|
-
/**
|
|
23
|
-
* The URL for the home breadcrumb item.
|
|
24
|
-
*/
|
|
25
|
-
homeUrl;
|
|
26
|
-
/**
|
|
27
|
-
* The text label for the home breadcrumb item.
|
|
28
|
-
*/
|
|
29
|
-
homeText = 'Home';
|
|
30
|
-
breadcrumbItems = [];
|
|
31
|
-
isConcatenated;
|
|
32
|
-
lastWindowWidth;
|
|
33
27
|
breadcrumbNavRef;
|
|
34
28
|
lastItem;
|
|
35
29
|
validateUrl() {
|
|
@@ -72,10 +66,10 @@ const PostBreadcrumb = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumb ext
|
|
|
72
66
|
// Determines parent width for concatenation logic
|
|
73
67
|
getParentWidth() {
|
|
74
68
|
let parent = this.host.parentNode;
|
|
75
|
-
while (parent && !(parent instanceof
|
|
69
|
+
while (parent && !(parent instanceof HTMLElement)) {
|
|
76
70
|
parent = parent.parentNode;
|
|
77
71
|
}
|
|
78
|
-
return parent instanceof
|
|
72
|
+
return parent instanceof HTMLElement ? parent.clientWidth : window.innerWidth;
|
|
79
73
|
}
|
|
80
74
|
checkConcatenation() {
|
|
81
75
|
if (!this.breadcrumbNavRef)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostCardControl$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostCardControl$1, d as defineCustomElement$1 } from './post-card-control2.js';
|
|
2
2
|
|
|
3
3
|
const PostCardControl = PostCardControl$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|