@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
|
@@ -6,13 +6,13 @@ import { checkOneOf } from "../../utils/index";
|
|
|
6
6
|
* @slot default - Slot for placing post-accordion-item components.
|
|
7
7
|
*/
|
|
8
8
|
export class PostAccordion {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.headingLevel = undefined;
|
|
11
|
+
this.multiple = false;
|
|
12
|
+
}
|
|
9
13
|
accordionItems;
|
|
10
14
|
expandedItems = new Set();
|
|
11
15
|
host;
|
|
12
|
-
/**
|
|
13
|
-
* Defines the hierarchical level of the `post-accordion-item` headers within the headings structure.
|
|
14
|
-
*/
|
|
15
|
-
headingLevel;
|
|
16
16
|
validateHeadingLevel(newValue = this.headingLevel) {
|
|
17
17
|
if (!newValue)
|
|
18
18
|
return;
|
|
@@ -21,10 +21,6 @@ export class PostAccordion {
|
|
|
21
21
|
item.setAttribute('heading-level', String(newValue));
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* If `true`, multiple `post-accordion-item` can be open at the same time.
|
|
26
|
-
*/
|
|
27
|
-
multiple = false;
|
|
28
24
|
componentWillLoad() {
|
|
29
25
|
this.registerAccordionItems();
|
|
30
26
|
this.validateHeadingLevel();
|
|
@@ -132,8 +128,6 @@ export class PostAccordion {
|
|
|
132
128
|
"tags": [],
|
|
133
129
|
"text": "Defines the hierarchical level of the `post-accordion-item` headers within the headings structure."
|
|
134
130
|
},
|
|
135
|
-
"getter": false,
|
|
136
|
-
"setter": false,
|
|
137
131
|
"attribute": "heading-level",
|
|
138
132
|
"reflect": false
|
|
139
133
|
},
|
|
@@ -151,8 +145,6 @@ export class PostAccordion {
|
|
|
151
145
|
"tags": [],
|
|
152
146
|
"text": "If `true`, multiple `post-accordion-item` can be open at the same time."
|
|
153
147
|
},
|
|
154
|
-
"getter": false,
|
|
155
|
-
"setter": false,
|
|
156
148
|
"attribute": "multiple",
|
|
157
149
|
"reflect": false,
|
|
158
150
|
"defaultValue": "false"
|
|
@@ -11,19 +11,14 @@ import { nanoid } from "nanoid";
|
|
|
11
11
|
* @slot default - Slot for placing content within the accordion item's body.
|
|
12
12
|
*/
|
|
13
13
|
export class PostAccordionItem {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.id = undefined;
|
|
16
|
+
this.slottedLogo = undefined;
|
|
17
|
+
this.collapsed = false;
|
|
18
|
+
this.headingLevel = undefined;
|
|
19
|
+
}
|
|
14
20
|
collapsible;
|
|
15
21
|
host;
|
|
16
|
-
id;
|
|
17
|
-
slottedLogo;
|
|
18
|
-
/**
|
|
19
|
-
* If `true`, the element is collapsed otherwise it is displayed.
|
|
20
|
-
*/
|
|
21
|
-
collapsed = false;
|
|
22
|
-
/**
|
|
23
|
-
* Defines the hierarchical level of the accordion item header within the headings structure.
|
|
24
|
-
* @deprecated set the `heading-level` property on the parent `post-accordion` instead.
|
|
25
|
-
*/
|
|
26
|
-
headingLevel;
|
|
27
22
|
validateHeadingLevel(newValue = this.headingLevel) {
|
|
28
23
|
checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.');
|
|
29
24
|
}
|
|
@@ -88,8 +83,6 @@ export class PostAccordionItem {
|
|
|
88
83
|
"tags": [],
|
|
89
84
|
"text": "If `true`, the element is collapsed otherwise it is displayed."
|
|
90
85
|
},
|
|
91
|
-
"getter": false,
|
|
92
|
-
"setter": false,
|
|
93
86
|
"attribute": "collapsed",
|
|
94
87
|
"reflect": false,
|
|
95
88
|
"defaultValue": "false"
|
|
@@ -117,8 +110,6 @@ export class PostAccordionItem {
|
|
|
117
110
|
}],
|
|
118
111
|
"text": "Defines the hierarchical level of the accordion item header within the headings structure."
|
|
119
112
|
},
|
|
120
|
-
"getter": false,
|
|
121
|
-
"setter": false,
|
|
122
113
|
"attribute": "heading-level",
|
|
123
114
|
"reflect": false
|
|
124
115
|
}
|
|
@@ -17,29 +17,19 @@ var AvatarType;
|
|
|
17
17
|
* @slot default - Slot for inserting a custom image as avatar.
|
|
18
18
|
*/
|
|
19
19
|
export class PostAvatar {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.firstname = undefined;
|
|
22
|
+
this.lastname = undefined;
|
|
23
|
+
this.userid = undefined;
|
|
24
|
+
this.email = undefined;
|
|
25
|
+
this.slottedImage = undefined;
|
|
26
|
+
this.avatarType = null;
|
|
27
|
+
this.imageUrl = '';
|
|
28
|
+
this.imageAlt = '';
|
|
29
|
+
this.initials = '';
|
|
30
|
+
}
|
|
20
31
|
static INTERNAL_USERID_IMAGE_SRC = 'https://web.post.ch/UserProfileImage/{userid}.png';
|
|
21
32
|
host;
|
|
22
|
-
/**
|
|
23
|
-
* Defines the users firstname.
|
|
24
|
-
*/
|
|
25
|
-
firstname;
|
|
26
|
-
/**
|
|
27
|
-
* Defines the users lastname.
|
|
28
|
-
*/
|
|
29
|
-
lastname;
|
|
30
|
-
/**
|
|
31
|
-
* Defines the company internal userId.<div className="mb-1 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
32
|
-
*/
|
|
33
|
-
userid;
|
|
34
|
-
/**
|
|
35
|
-
* Defines the users email address associated with a gravatar profile picture.
|
|
36
|
-
*/
|
|
37
|
-
email;
|
|
38
|
-
slottedImage;
|
|
39
|
-
avatarType = null;
|
|
40
|
-
imageUrl = '';
|
|
41
|
-
imageAlt = '';
|
|
42
|
-
initials = '';
|
|
43
33
|
validateFirstname() {
|
|
44
34
|
checkNonEmpty(this.firstname, 'The `firstname` property of the `post-avatar` is required!');
|
|
45
35
|
}
|
|
@@ -169,8 +159,6 @@ export class PostAvatar {
|
|
|
169
159
|
"tags": [],
|
|
170
160
|
"text": "Defines the users firstname."
|
|
171
161
|
},
|
|
172
|
-
"getter": false,
|
|
173
|
-
"setter": false,
|
|
174
162
|
"attribute": "firstname",
|
|
175
163
|
"reflect": false
|
|
176
164
|
},
|
|
@@ -188,8 +176,6 @@ export class PostAvatar {
|
|
|
188
176
|
"tags": [],
|
|
189
177
|
"text": "Defines the users lastname."
|
|
190
178
|
},
|
|
191
|
-
"getter": false,
|
|
192
|
-
"setter": false,
|
|
193
179
|
"attribute": "lastname",
|
|
194
180
|
"reflect": false
|
|
195
181
|
},
|
|
@@ -207,8 +193,6 @@ export class PostAvatar {
|
|
|
207
193
|
"tags": [],
|
|
208
194
|
"text": "Defines the company internal userId.<div className=\"mb-1 banner banner-warning banner-sm\">Can only be used on post.ch domains!</div>"
|
|
209
195
|
},
|
|
210
|
-
"getter": false,
|
|
211
|
-
"setter": false,
|
|
212
196
|
"attribute": "userid",
|
|
213
197
|
"reflect": false
|
|
214
198
|
},
|
|
@@ -226,8 +210,6 @@ export class PostAvatar {
|
|
|
226
210
|
"tags": [],
|
|
227
211
|
"text": "Defines the users email address associated with a gravatar profile picture."
|
|
228
212
|
},
|
|
229
|
-
"getter": false,
|
|
230
|
-
"setter": false,
|
|
231
213
|
"attribute": "email",
|
|
232
214
|
"reflect": false
|
|
233
215
|
}
|
|
@@ -3,13 +3,11 @@ import { slideUp, slideDown } from "../../animations/slide";
|
|
|
3
3
|
import { version } from "../../../../package";
|
|
4
4
|
import { checkType, checkNonEmpty } from "../../utils/index";
|
|
5
5
|
export class PostBackToTop {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.label = undefined;
|
|
8
|
+
this.belowFold = false;
|
|
9
|
+
}
|
|
6
10
|
el;
|
|
7
|
-
/**
|
|
8
|
-
* The label of the back-to-top button, intended solely for accessibility purposes.
|
|
9
|
-
* This label is always hidden from view.
|
|
10
|
-
**/
|
|
11
|
-
label;
|
|
12
|
-
belowFold = false;
|
|
13
11
|
translateY;
|
|
14
12
|
isBelowFold() {
|
|
15
13
|
return window.scrollY > window.innerHeight;
|
|
@@ -88,8 +86,6 @@ export class PostBackToTop {
|
|
|
88
86
|
"tags": [],
|
|
89
87
|
"text": "The label of the back-to-top button, intended solely for accessibility purposes.\nThis label is always hidden from view."
|
|
90
88
|
},
|
|
91
|
-
"getter": false,
|
|
92
|
-
"setter": false,
|
|
93
89
|
"attribute": "label",
|
|
94
90
|
"reflect": false
|
|
95
91
|
}
|
|
@@ -10,42 +10,30 @@ import { nanoid } from "nanoid";
|
|
|
10
10
|
* @slot default - Slot for placing the main content/message of the banner.
|
|
11
11
|
*/
|
|
12
12
|
export class PostBanner {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.bannerId = `p${nanoid(6)}`;
|
|
15
|
+
this.classes = undefined;
|
|
16
|
+
this.hasActions = undefined;
|
|
17
|
+
this.hasHeading = undefined;
|
|
18
|
+
this.onDismissButtonClick = () => this.dismiss();
|
|
19
|
+
this.dismissible = false;
|
|
20
|
+
this.dismissLabel = undefined;
|
|
21
|
+
this.icon = undefined;
|
|
22
|
+
this.type = 'neutral';
|
|
23
|
+
}
|
|
13
24
|
host;
|
|
14
|
-
bannerId = `p${nanoid(6)}`;
|
|
15
|
-
classes;
|
|
16
|
-
hasActions;
|
|
17
|
-
hasHeading;
|
|
18
|
-
onDismissButtonClick = () => this.dismiss();
|
|
19
|
-
/**
|
|
20
|
-
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
21
|
-
*/
|
|
22
|
-
dismissible = false;
|
|
23
25
|
validateDismissible(isDismissible = this.dismissible) {
|
|
24
26
|
checkType(isDismissible, 'boolean', 'The post-banner "dismissible" prop should be a boolean.');
|
|
25
27
|
setTimeout(() => this.validateDismissLabel());
|
|
26
28
|
}
|
|
27
|
-
/**
|
|
28
|
-
* The label to use for the close button of a dismissible banner.
|
|
29
|
-
*/
|
|
30
|
-
dismissLabel;
|
|
31
29
|
validateDismissLabel(dismissLabel = this.dismissLabel) {
|
|
32
30
|
if (this.dismissible) {
|
|
33
31
|
checkNonEmpty(dismissLabel, 'Dismissible post-banner\'s require a "dismiss-label" prop.');
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
|
-
/**
|
|
37
|
-
* The icon to display in the banner. By default, the icon depends on the banner type.
|
|
38
|
-
*
|
|
39
|
-
* If `none`, no icon is displayed.
|
|
40
|
-
*/
|
|
41
|
-
icon;
|
|
42
34
|
validateIcon(icon = this.icon) {
|
|
43
35
|
checkEmptyOrPattern(icon, /\d{4}|none/, 'The post-banner "icon" prop should be a 4-digits string.');
|
|
44
36
|
}
|
|
45
|
-
/**
|
|
46
|
-
* The type of the banner.
|
|
47
|
-
*/
|
|
48
|
-
type = 'neutral';
|
|
49
37
|
validateType(type = this.type) {
|
|
50
38
|
checkEmptyOrOneOf(type, BANNER_TYPES, `The post-banner requires a type form: ${BANNER_TYPES.join(', ')}`);
|
|
51
39
|
}
|
|
@@ -118,8 +106,6 @@ export class PostBanner {
|
|
|
118
106
|
"tags": [],
|
|
119
107
|
"text": "If `true`, a close button (\u00D7) is displayed and the banner can be dismissed by the user."
|
|
120
108
|
},
|
|
121
|
-
"getter": false,
|
|
122
|
-
"setter": false,
|
|
123
109
|
"attribute": "dismissible",
|
|
124
110
|
"reflect": false,
|
|
125
111
|
"defaultValue": "false"
|
|
@@ -138,8 +124,6 @@ export class PostBanner {
|
|
|
138
124
|
"tags": [],
|
|
139
125
|
"text": "The label to use for the close button of a dismissible banner."
|
|
140
126
|
},
|
|
141
|
-
"getter": false,
|
|
142
|
-
"setter": false,
|
|
143
127
|
"attribute": "dismiss-label",
|
|
144
128
|
"reflect": false
|
|
145
129
|
},
|
|
@@ -157,8 +141,6 @@ export class PostBanner {
|
|
|
157
141
|
"tags": [],
|
|
158
142
|
"text": "The icon to display in the banner. By default, the icon depends on the banner type.\n\nIf `none`, no icon is displayed."
|
|
159
143
|
},
|
|
160
|
-
"getter": false,
|
|
161
|
-
"setter": false,
|
|
162
144
|
"attribute": "icon",
|
|
163
145
|
"reflect": false
|
|
164
146
|
},
|
|
@@ -182,8 +164,6 @@ export class PostBanner {
|
|
|
182
164
|
"tags": [],
|
|
183
165
|
"text": "The type of the banner."
|
|
184
166
|
},
|
|
185
|
-
"getter": false,
|
|
186
|
-
"setter": false,
|
|
187
167
|
"attribute": "type",
|
|
188
168
|
"reflect": false,
|
|
189
169
|
"defaultValue": "'neutral'"
|
|
@@ -2,18 +2,14 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { version } from "../../../../package";
|
|
3
3
|
import { checkUrl, debounce } from "../../utils/index";
|
|
4
4
|
export class PostBreadcrumb {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.homeUrl = undefined;
|
|
7
|
+
this.homeText = 'Home';
|
|
8
|
+
this.breadcrumbItems = [];
|
|
9
|
+
this.isConcatenated = undefined;
|
|
10
|
+
this.lastWindowWidth = undefined;
|
|
11
|
+
}
|
|
5
12
|
host;
|
|
6
|
-
/**
|
|
7
|
-
* The URL for the home breadcrumb item.
|
|
8
|
-
*/
|
|
9
|
-
homeUrl;
|
|
10
|
-
/**
|
|
11
|
-
* The text label for the home breadcrumb item.
|
|
12
|
-
*/
|
|
13
|
-
homeText = 'Home';
|
|
14
|
-
breadcrumbItems = [];
|
|
15
|
-
isConcatenated;
|
|
16
|
-
lastWindowWidth;
|
|
17
13
|
breadcrumbNavRef;
|
|
18
14
|
lastItem;
|
|
19
15
|
validateUrl() {
|
|
@@ -127,8 +123,6 @@ export class PostBreadcrumb {
|
|
|
127
123
|
"tags": [],
|
|
128
124
|
"text": "The URL for the home breadcrumb item."
|
|
129
125
|
},
|
|
130
|
-
"getter": false,
|
|
131
|
-
"setter": false,
|
|
132
126
|
"attribute": "home-url",
|
|
133
127
|
"reflect": false
|
|
134
128
|
},
|
|
@@ -146,8 +140,6 @@ export class PostBreadcrumb {
|
|
|
146
140
|
"tags": [],
|
|
147
141
|
"text": "The text label for the home breadcrumb item."
|
|
148
142
|
},
|
|
149
|
-
"getter": false,
|
|
150
|
-
"setter": false,
|
|
151
143
|
"attribute": "home-text",
|
|
152
144
|
"reflect": false,
|
|
153
145
|
"defaultValue": "'Home'"
|
|
@@ -5,11 +5,10 @@ import { checkEmptyOrUrl } from "../../utils/index";
|
|
|
5
5
|
* @slot default - Slot for placing the text inside the breadcrumb item.
|
|
6
6
|
*/
|
|
7
7
|
export class PostBreadcrumbItem {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.url = undefined;
|
|
10
|
+
}
|
|
8
11
|
host;
|
|
9
|
-
/**
|
|
10
|
-
* The optional URL to which the breadcrumb item will link.
|
|
11
|
-
*/
|
|
12
|
-
url;
|
|
13
12
|
validUrl;
|
|
14
13
|
validateUrl() {
|
|
15
14
|
try {
|
|
@@ -80,8 +79,6 @@ export class PostBreadcrumbItem {
|
|
|
80
79
|
"tags": [],
|
|
81
80
|
"text": "The optional URL to which the breadcrumb item will link."
|
|
82
81
|
},
|
|
83
|
-
"getter": false,
|
|
84
|
-
"setter": false,
|
|
85
82
|
"attribute": "url",
|
|
86
83
|
"reflect": false
|
|
87
84
|
}
|
|
@@ -33,48 +33,7 @@ export class PostCardControl {
|
|
|
33
33
|
initialChecked;
|
|
34
34
|
hasIcon;
|
|
35
35
|
host;
|
|
36
|
-
focused = false;
|
|
37
36
|
internals;
|
|
38
|
-
/**
|
|
39
|
-
* Defines the text in the control-label.
|
|
40
|
-
*/
|
|
41
|
-
label;
|
|
42
|
-
/**
|
|
43
|
-
* Defines the description in the control-label.
|
|
44
|
-
*/
|
|
45
|
-
description = null;
|
|
46
|
-
/**
|
|
47
|
-
* Defines the `type` attribute of the control.
|
|
48
|
-
*/
|
|
49
|
-
type;
|
|
50
|
-
/**
|
|
51
|
-
* Defines the `name` attribute of the control.
|
|
52
|
-
* <span className="banner banner-sm banner-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span>
|
|
53
|
-
* <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
54
|
-
*/
|
|
55
|
-
name = null;
|
|
56
|
-
/**
|
|
57
|
-
* Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
58
|
-
*/
|
|
59
|
-
value = null;
|
|
60
|
-
/**
|
|
61
|
-
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms' data.
|
|
62
|
-
*/
|
|
63
|
-
checked = false;
|
|
64
|
-
/**
|
|
65
|
-
* Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms' data.
|
|
66
|
-
*/
|
|
67
|
-
disabled = false;
|
|
68
|
-
/**
|
|
69
|
-
* Defines the validation `validity` of the control.
|
|
70
|
-
* To reset validity to an undefined state, simply remove the attribute from the control.
|
|
71
|
-
*/
|
|
72
|
-
validity = null;
|
|
73
|
-
/**
|
|
74
|
-
* Defines the icon `name` inside the card.
|
|
75
|
-
* <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
76
|
-
*/
|
|
77
|
-
icon = null;
|
|
78
37
|
/**
|
|
79
38
|
* An event emitted whenever the components checked state is toggled.
|
|
80
39
|
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
@@ -115,6 +74,16 @@ export class PostCardControl {
|
|
|
115
74
|
this.controlSetChecked(this.checked);
|
|
116
75
|
}
|
|
117
76
|
constructor() {
|
|
77
|
+
this.focused = false;
|
|
78
|
+
this.label = undefined;
|
|
79
|
+
this.description = null;
|
|
80
|
+
this.type = undefined;
|
|
81
|
+
this.name = null;
|
|
82
|
+
this.value = null;
|
|
83
|
+
this.checked = false;
|
|
84
|
+
this.disabled = false;
|
|
85
|
+
this.validity = null;
|
|
86
|
+
this.icon = null;
|
|
118
87
|
this.cardClickHandler = this.cardClickHandler.bind(this);
|
|
119
88
|
this.controlClickHandler = this.controlClickHandler.bind(this);
|
|
120
89
|
this.controlChangeHandler = this.controlChangeHandler.bind(this);
|
|
@@ -321,8 +290,6 @@ export class PostCardControl {
|
|
|
321
290
|
"tags": [],
|
|
322
291
|
"text": "Defines the text in the control-label."
|
|
323
292
|
},
|
|
324
|
-
"getter": false,
|
|
325
|
-
"setter": false,
|
|
326
293
|
"attribute": "label",
|
|
327
294
|
"reflect": false
|
|
328
295
|
},
|
|
@@ -340,8 +307,6 @@ export class PostCardControl {
|
|
|
340
307
|
"tags": [],
|
|
341
308
|
"text": "Defines the description in the control-label."
|
|
342
309
|
},
|
|
343
|
-
"getter": false,
|
|
344
|
-
"setter": false,
|
|
345
310
|
"attribute": "description",
|
|
346
311
|
"reflect": false,
|
|
347
312
|
"defaultValue": "null"
|
|
@@ -360,8 +325,6 @@ export class PostCardControl {
|
|
|
360
325
|
"tags": [],
|
|
361
326
|
"text": "Defines the `type` attribute of the control."
|
|
362
327
|
},
|
|
363
|
-
"getter": false,
|
|
364
|
-
"setter": false,
|
|
365
328
|
"attribute": "type",
|
|
366
329
|
"reflect": false
|
|
367
330
|
},
|
|
@@ -379,8 +342,6 @@ export class PostCardControl {
|
|
|
379
342
|
"tags": [],
|
|
380
343
|
"text": "Defines the `name` attribute of the control.\n<span className=\"banner banner-sm banner-info\">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span>\n<span className=\"banner banner-sm banner-info\">This is a required property, when the control is used with type `radio`.</span>"
|
|
381
344
|
},
|
|
382
|
-
"getter": false,
|
|
383
|
-
"setter": false,
|
|
384
345
|
"attribute": "name",
|
|
385
346
|
"reflect": false,
|
|
386
347
|
"defaultValue": "null"
|
|
@@ -399,8 +360,6 @@ export class PostCardControl {
|
|
|
399
360
|
"tags": [],
|
|
400
361
|
"text": "Defines the `value` attribute of the control. <span className=\"banner banner-sm banner-info\">This is a required property, when the control is used with type `radio`.</span>"
|
|
401
362
|
},
|
|
402
|
-
"getter": false,
|
|
403
|
-
"setter": false,
|
|
404
363
|
"attribute": "value",
|
|
405
364
|
"reflect": false,
|
|
406
365
|
"defaultValue": "null"
|
|
@@ -419,8 +378,6 @@ export class PostCardControl {
|
|
|
419
378
|
"tags": [],
|
|
420
379
|
"text": "Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms' data."
|
|
421
380
|
},
|
|
422
|
-
"getter": false,
|
|
423
|
-
"setter": false,
|
|
424
381
|
"attribute": "checked",
|
|
425
382
|
"reflect": false,
|
|
426
383
|
"defaultValue": "false"
|
|
@@ -439,8 +396,6 @@ export class PostCardControl {
|
|
|
439
396
|
"tags": [],
|
|
440
397
|
"text": "Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms' data."
|
|
441
398
|
},
|
|
442
|
-
"getter": false,
|
|
443
|
-
"setter": false,
|
|
444
399
|
"attribute": "disabled",
|
|
445
400
|
"reflect": false,
|
|
446
401
|
"defaultValue": "false"
|
|
@@ -459,8 +414,6 @@ export class PostCardControl {
|
|
|
459
414
|
"tags": [],
|
|
460
415
|
"text": "Defines the validation `validity` of the control.\nTo reset validity to an undefined state, simply remove the attribute from the control."
|
|
461
416
|
},
|
|
462
|
-
"getter": false,
|
|
463
|
-
"setter": false,
|
|
464
417
|
"attribute": "validity",
|
|
465
418
|
"reflect": false,
|
|
466
419
|
"defaultValue": "null"
|
|
@@ -479,8 +432,6 @@ export class PostCardControl {
|
|
|
479
432
|
"tags": [],
|
|
480
433
|
"text": "Defines the icon `name` inside the card.\n<span className=\"banner banner-sm banner-info\">If not set the icon will not show up.</span>"
|
|
481
434
|
},
|
|
482
|
-
"getter": false,
|
|
483
|
-
"setter": false,
|
|
484
435
|
"attribute": "icon",
|
|
485
436
|
"reflect": false,
|
|
486
437
|
"defaultValue": "null"
|
|
@@ -6,13 +6,12 @@ import { checkEmptyOrType, isMotionReduced } from "../../utils/index";
|
|
|
6
6
|
* @slot default - Slot for placing content within the collapsible element.
|
|
7
7
|
*/
|
|
8
8
|
export class PostCollapsible {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.collapsed = false;
|
|
11
|
+
}
|
|
9
12
|
isLoaded = false;
|
|
10
13
|
isOpen = true;
|
|
11
14
|
host;
|
|
12
|
-
/**
|
|
13
|
-
* If `true`, the element is collapsed otherwise it is displayed.
|
|
14
|
-
*/
|
|
15
|
-
collapsed = false;
|
|
16
15
|
collapsedChange() {
|
|
17
16
|
checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
|
|
18
17
|
void this.toggle(!this.collapsed);
|
|
@@ -87,8 +86,6 @@ export class PostCollapsible {
|
|
|
87
86
|
"tags": [],
|
|
88
87
|
"text": "If `true`, the element is collapsed otherwise it is displayed."
|
|
89
88
|
},
|
|
90
|
-
"getter": false,
|
|
91
|
-
"setter": false,
|
|
92
89
|
"attribute": "collapsed",
|
|
93
90
|
"reflect": false,
|
|
94
91
|
"defaultValue": "false"
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { version } from "../../../../package";
|
|
2
2
|
import { checkNonEmpty, checkType, debounce, getRoot } from "../../utils/index";
|
|
3
3
|
export class PostCollapsibleTrigger {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.for = undefined;
|
|
6
|
+
}
|
|
4
7
|
trigger;
|
|
5
8
|
observer = new MutationObserver(() => this.setTrigger());
|
|
6
9
|
root;
|
|
7
10
|
host;
|
|
8
|
-
/**
|
|
9
|
-
* Link the trigger to a post-collapsible with this id
|
|
10
|
-
*/
|
|
11
|
-
for;
|
|
12
11
|
/**
|
|
13
12
|
* Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
|
|
14
13
|
*/
|
|
@@ -114,8 +113,6 @@ export class PostCollapsibleTrigger {
|
|
|
114
113
|
"tags": [],
|
|
115
114
|
"text": "Link the trigger to a post-collapsible with this id"
|
|
116
115
|
},
|
|
117
|
-
"getter": false,
|
|
118
|
-
"setter": false,
|
|
119
116
|
"attribute": "for",
|
|
120
117
|
"reflect": false
|
|
121
118
|
}
|
|
@@ -11,12 +11,11 @@ import { breakpoint } from "../../utils/breakpoints";
|
|
|
11
11
|
* @slot copyright - Slot for the copyright text.
|
|
12
12
|
*/
|
|
13
13
|
export class PostFooter {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.label = undefined;
|
|
16
|
+
this.isMobile = breakpoint.get('name') === 'mobile';
|
|
17
|
+
}
|
|
14
18
|
host;
|
|
15
|
-
/**
|
|
16
|
-
* The label to add to the footer (visually hidden).
|
|
17
|
-
*/
|
|
18
|
-
label;
|
|
19
|
-
isMobile = breakpoint.get('name') === 'mobile';
|
|
20
19
|
connectedCallback() {
|
|
21
20
|
window.addEventListener('postBreakpoint:name', this.breakpointChange.bind(this));
|
|
22
21
|
}
|
|
@@ -63,8 +62,6 @@ export class PostFooter {
|
|
|
63
62
|
"tags": [],
|
|
64
63
|
"text": "The label to add to the footer (visually hidden)."
|
|
65
64
|
},
|
|
66
|
-
"getter": false,
|
|
67
|
-
"setter": false,
|
|
68
65
|
"attribute": "label",
|
|
69
66
|
"reflect": false
|
|
70
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,::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;
|
|
1
|
+
*,::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)}}
|