@swisspost/design-system-components 9.0.0-next.13 → 9.0.0-next.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-f1b08cdb.js → index-0ee3ab4a.js} +334 -152
- package/dist/cjs/index.cjs.js +22 -20
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-60e57542.js → package-7d11b6ea.js} +1 -1
- package/dist/cjs/{post-accordion-1e495c23.js → post-accordion-29861d97.js} +11 -5
- package/dist/cjs/{post-accordion-item-86b6950a.js → post-accordion-item-0da0f7aa.js} +15 -8
- package/dist/cjs/post-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-avatar-067c033b.js → post-avatar-01b9cd6d.js} +23 -11
- package/dist/cjs/post-avatar.cjs.entry.js +3 -3
- package/dist/cjs/post-back-to-top-9a5647f7.js +80 -0
- package/dist/cjs/post-back-to-top.cjs.entry.js +3 -3
- package/dist/cjs/post-banner-33929088.js +110 -0
- package/dist/cjs/post-banner.cjs.entry.js +3 -3
- package/dist/cjs/{post-breadcrumb-b33abf67.js → post-breadcrumb-1384018e.js} +15 -9
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +3 -3
- package/dist/cjs/post-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/{post-card-control-7867a104.js → post-card-control-4c85eda3.js} +45 -14
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/post-closebutton_15.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-trigger-6affdc02.js → post-collapsible-trigger-0fb2596a.js} +11 -5
- package/dist/cjs/post-collapsible_2.cjs.entry.js +3 -3
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/{post-footer-330e8999.js → post-footer-f621a563.js} +8 -5
- package/dist/cjs/post-footer.cjs.entry.js +3 -3
- package/dist/cjs/post-linkarea-865079c1.js +32 -0
- package/dist/cjs/post-linkarea.cjs.entry.js +11 -0
- package/dist/cjs/{post-menu-item-48191dfd.js → post-menu-item-ab3e2e7e.js} +8 -5
- package/dist/cjs/{post-popover-27f3e9aa.js → post-popover-a2ba9226.js} +18 -6
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-28904e91.js → post-rating-c402c294.js} +21 -8
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-86b129ab.js → post-tab-header-c819517d.js} +8 -5
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-94333a7e.js → post-tab-panel-3cb207f3.js} +8 -5
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-f8581050.js → post-tabs-b6fa39c3.js} +10 -4
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-3a24c574.js → post-tag-9c366519.js} +18 -7
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-togglebutton-e7d697bf.js → post-togglebutton-d49bec2c.js} +515 -132
- package/dist/cjs/{post-tooltip-8c87dfe3.js → post-tooltip-425c01ba.js} +17 -6
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/post-accordion/post-accordion.js +13 -5
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +17 -8
- package/dist/collection/components/post-avatar/post-avatar.js +29 -11
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +9 -5
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-banner/post-banner.js +34 -14
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +17 -9
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +7 -4
- package/dist/collection/components/post-card-control/post-card-control.js +61 -12
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +7 -4
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +6 -3
- package/dist/collection/components/post-footer/post-footer.js +8 -5
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +82 -8
- package/dist/collection/components/post-icon/post-icon.js +43 -10
- package/dist/collection/components/post-language-option/post-language-option.js +32 -8
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +22 -6
- package/dist/collection/components/post-linkarea/post-linkarea.css +1 -0
- package/dist/collection/components/post-linkarea/post-linkarea.js +32 -0
- package/dist/collection/components/post-list/post-list.js +17 -6
- package/dist/collection/components/post-list-item/post-list-item.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +7 -4
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +193 -19
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +124 -66
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +12 -6
- package/dist/collection/components/post-menu/post-menu.js +15 -5
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +11 -5
- package/dist/collection/components/post-popover/post-popover.js +22 -4
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +46 -8
- package/dist/collection/components/post-rating/post-rating.js +27 -6
- package/dist/collection/components/post-tab-header/post-tab-header.js +8 -5
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +8 -5
- package/dist/collection/components/post-tabs/post-tabs.js +10 -4
- package/dist/collection/components/post-tag/post-tag.js +22 -5
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +7 -4
- package/dist/collection/components/post-tooltip/post-tooltip.js +21 -6
- package/dist/collection/index.js +1 -0
- package/dist/components/index.js +36 -35
- package/dist/components/{post-collapsible-trigger2.js → p-05590ac0.js} +11 -8
- package/dist/components/{post-breadcrumb2.js → p-146677d1.js} +26 -20
- package/dist/components/p-1ee1742f.js +237 -0
- package/dist/components/p-2083ae2c.js +3 -0
- package/dist/components/{post-megadropdown-trigger2.js → p-27edc023.js} +15 -9
- package/dist/components/{post-tooltip2.js → p-2d9b46b4.js} +21 -10
- package/dist/components/{post-card-control2.js → p-38778a14.js} +49 -18
- package/dist/components/p-3aba7629.js +29 -0
- package/dist/components/{post-togglebutton2.js → p-3cee636a.js} +9 -6
- package/dist/components/p-3e8554e7.js +1646 -0
- package/dist/components/p-424d5ea9.js +199 -0
- package/dist/components/p-46a6c5ec.js +168 -0
- package/dist/components/p-4965cfe1.js +145 -0
- package/dist/components/{post-list2.js → p-536eba02.js} +17 -8
- package/dist/components/p-5653923a.js +44 -0
- package/dist/components/{post-footer2.js → p-58878996.js} +13 -10
- package/dist/components/{post-logo2.js → p-5f51ec58.js} +9 -6
- package/{loaders/post-popovercontainer2.js → dist/components/p-60cf53cc.js} +25 -10
- package/{loaders/post-accordion-item2.js → dist/components/p-68ecd276.js} +22 -15
- package/dist/components/{post-tab-header2.js → p-75b8b652.js} +11 -8
- package/dist/components/{post-tab-panel2.js → p-78e1d893.js} +10 -7
- package/dist/components/{post-menu-trigger2.js → p-8b053fd5.js} +14 -8
- package/dist/components/{post-icon2.js → p-91031e3b.js} +35 -14
- package/{loaders/post-menu2.js → dist/components/p-91882483.js} +19 -36
- package/dist/components/{post-list-item2.js → p-9e4b1f10.js} +3 -3
- package/dist/components/{post-accordion2.js → p-a3a004e6.js} +14 -8
- package/dist/components/{post-popover2.js → p-af23f7de.js} +21 -9
- package/dist/components/{post-collapsible2.js → p-b018d864.js} +9 -6
- package/dist/components/{check-non-empty.js → p-b095519d.js} +1 -1
- package/dist/components/{post-closebutton2.js → p-bf14d264.js} +5 -5
- package/dist/components/{post-breadcrumb-item2.js → p-c7c1d466.js} +10 -7
- package/dist/components/{post-tag2.js → p-cab43cee.js} +20 -9
- package/{loaders/post-menu-item2.js → dist/components/p-ccccf0c3.js} +4 -4
- package/dist/components/{post-tabs2.js → p-ce854a7d.js} +12 -6
- package/dist/components/{post-avatar2.js → p-d3fb70af.js} +25 -13
- package/dist/components/{post-language-option2.js → p-d47bb5bf.js} +27 -11
- package/dist/components/{post-back-to-top2.js → p-e20366a6.js} +15 -11
- package/dist/components/{index2.js → p-eabb09ad.js} +3 -3
- package/dist/components/{post-language-switch2.js → p-f6d80d76.js} +27 -15
- package/dist/components/p-f7b9f90a.js +135 -0
- package/dist/components/{post-rating2.js → p-fc59de7c.js} +23 -10
- package/dist/components/post-accordion-item.js +1 -1
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumb.js +1 -1
- package/dist/components/post-card-control.js +1 -1
- package/dist/components/post-closebutton.js +1 -1
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon.js +1 -1
- package/dist/components/post-language-option.js +1 -1
- package/dist/components/post-language-switch.js +1 -1
- package/dist/components/post-linkarea.d.ts +11 -0
- package/dist/components/post-linkarea.js +6 -0
- package/dist/components/post-list-item.js +1 -1
- package/dist/components/post-list.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item.js +1 -1
- package/dist/components/post-menu-trigger.js +1 -1
- package/dist/components/post-menu.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-tab-header.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-tag.js +1 -1
- package/dist/components/post-togglebutton.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +333 -149
- package/dist/esm/{index-6bfe6554.js → index-2c232bf2.js} +334 -152
- package/dist/esm/index.js +21 -20
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-8c98af5e.js +3 -0
- package/dist/esm/{post-accordion-48eb17c3.js → post-accordion-49fba403.js} +11 -5
- package/dist/esm/{post-accordion-item-e0893bb3.js → post-accordion-item-c516517a.js} +15 -8
- package/dist/esm/post-accordion-item.entry.js +3 -3
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-avatar-20cde806.js → post-avatar-b527ac63.js} +23 -11
- package/dist/esm/post-avatar.entry.js +3 -3
- package/dist/esm/post-back-to-top-f514c1f0.js +78 -0
- package/dist/esm/post-back-to-top.entry.js +3 -3
- package/dist/esm/post-banner-0ad7758b.js +108 -0
- package/dist/esm/post-banner.entry.js +3 -3
- package/dist/esm/{post-breadcrumb-39203792.js → post-breadcrumb-57bca9dd.js} +15 -9
- package/dist/esm/post-breadcrumb-item_2.entry.js +3 -3
- package/dist/esm/post-breadcrumb.entry.js +3 -3
- package/dist/esm/{post-card-control-d2c25c96.js → post-card-control-ea741f60.js} +45 -14
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/post-closebutton_15.entry.js +3 -3
- package/dist/esm/{post-collapsible-trigger-2f9ad9a5.js → post-collapsible-trigger-31155750.js} +11 -5
- package/dist/esm/post-collapsible_2.entry.js +3 -3
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/{post-footer-e804a967.js → post-footer-cdde2086.js} +8 -5
- package/dist/esm/post-footer.entry.js +3 -3
- package/dist/esm/post-linkarea-cad95623.js +30 -0
- package/dist/esm/post-linkarea.entry.js +3 -0
- package/dist/esm/{post-menu-item-f9793958.js → post-menu-item-db732728.js} +8 -5
- package/dist/esm/{post-popover-8205412a.js → post-popover-00f427ac.js} +18 -6
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-rating-95ecb434.js → post-rating-cdcb2a1d.js} +21 -8
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-d520b99a.js → post-tab-header-1d4113cb.js} +8 -5
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-8c8d2332.js → post-tab-panel-7a5c03ef.js} +8 -5
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-dd6dfe43.js → post-tabs-308190c0.js} +10 -4
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-593813a4.js → post-tag-aebbda10.js} +18 -7
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-togglebutton-120df903.js → post-togglebutton-95ba85d2.js} +515 -132
- package/dist/esm/{post-tooltip-a13d6fbb.js → post-tooltip-918d3a54.js} +17 -6
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-037d6ef2.entry.js +1 -0
- package/dist/post-components/p-1e69a72f.js +1 -0
- package/dist/post-components/p-2083ae2c.js +1 -0
- package/dist/post-components/p-24297444.js +1 -0
- package/dist/post-components/{p-4fc83a1c.js → p-267f52a9.js} +3 -3
- package/dist/post-components/p-2e6c5b60.js +1 -0
- package/dist/post-components/p-3591d4e3.entry.js +1 -0
- package/dist/post-components/p-3dec4425.entry.js +1 -0
- package/dist/post-components/p-423aecd4.js +1 -0
- package/dist/post-components/p-43221de8.entry.js +1 -0
- package/dist/post-components/p-48fd00e7.entry.js +1 -0
- package/dist/post-components/p-4ca79b52.js +1 -0
- package/dist/post-components/p-4d2dee9f.entry.js +1 -0
- package/dist/post-components/p-4fedef65.js +1 -0
- package/dist/post-components/p-59109b3b.entry.js +1 -0
- package/dist/post-components/p-675352c3.entry.js +1 -0
- package/dist/post-components/p-6e4527d9.entry.js +1 -0
- package/dist/post-components/p-726bfda2.js +1 -0
- package/dist/post-components/p-767c0bf3.js +1 -0
- package/dist/post-components/p-796968bd.entry.js +1 -0
- package/dist/post-components/{p-a72cb18c.js → p-7c9758fa.js} +1 -1
- package/dist/post-components/p-8a452260.js +1 -0
- package/dist/post-components/p-8a50b900.js +1 -0
- package/dist/post-components/p-8de4f677.entry.js +1 -0
- package/dist/post-components/p-93632808.js +1 -0
- package/dist/post-components/p-9aca3d07.entry.js +1 -0
- package/dist/post-components/p-9f0c5164.js +1 -0
- package/dist/post-components/p-a6436e7f.js +1 -0
- package/dist/post-components/p-ad246c0d.js +1 -0
- package/dist/post-components/p-b015efcb.entry.js +1 -0
- package/dist/post-components/{p-92f8803c.entry.js → p-b0afc087.entry.js} +1 -1
- package/dist/post-components/p-b1adc221.js +1 -0
- package/dist/post-components/p-b2c0d21a.js +1 -0
- package/dist/post-components/p-b5a566f1.js +1 -0
- package/dist/post-components/p-c0961047.entry.js +1 -0
- package/dist/post-components/p-c388b7bb.entry.js +1 -0
- package/dist/post-components/{p-d6449a93.entry.js → p-ca41b899.entry.js} +1 -1
- package/dist/post-components/p-d2395ae9.entry.js +1 -0
- package/dist/post-components/p-d9833667.js +2 -0
- package/dist/post-components/p-da261c46.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-header/post-header.d.ts +11 -2
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +1 -1
- package/dist/types/components/post-linkarea/post-linkarea.d.ts +5 -0
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +57 -3
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +26 -12
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +4 -0
- package/dist/types/components.d.ts +49 -23
- package/dist/types/index.d.ts +3 -2
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/loaders/index.d.ts +2 -0
- package/loaders/index.js +3 -2
- package/loaders/{post-collapsible-trigger2.js → p-05590ac0.js} +11 -8
- package/loaders/{post-breadcrumb-item2.js → p-1beacb73.js} +10 -7
- package/loaders/p-2083ae2c.js +3 -0
- package/loaders/p-3aba7629.js +29 -0
- package/loaders/p-3e8554e7.js +1646 -0
- package/loaders/{index2.js → p-56ad4838.js} +3 -3
- package/{dist/components/post-popovercontainer2.js → loaders/p-60cf53cc.js} +25 -10
- package/{dist/components/post-accordion-item2.js → loaders/p-83baa315.js} +22 -15
- package/loaders/{post-menu-trigger2.js → p-8b053fd5.js} +14 -8
- package/{dist/components/post-menu2.js → loaders/p-91882483.js} +19 -36
- package/loaders/{post-collapsible2.js → p-9fac5d7d.js} +9 -6
- package/loaders/{check-non-empty.js → p-b095519d.js} +1 -1
- package/{dist/components/post-menu-item2.js → loaders/p-ccccf0c3.js} +4 -4
- package/loaders/{post-icon2.js → p-f7177e26.js} +35 -14
- package/loaders/p-f7b9f90a.js +135 -0
- package/loaders/post-accordion-item.js +1 -1
- package/loaders/post-accordion.js +14 -8
- package/loaders/post-avatar.js +25 -13
- package/loaders/post-back-to-top.js +15 -11
- package/loaders/post-banner.js +36 -22
- package/loaders/post-breadcrumb-item.js +1 -1
- package/loaders/post-breadcrumb.js +26 -20
- package/loaders/post-card-control.js +49 -18
- package/loaders/post-closebutton.js +5 -5
- package/loaders/post-collapsible-trigger.js +1 -1
- package/loaders/post-collapsible.js +1 -1
- package/loaders/post-footer.js +13 -10
- package/loaders/post-header.js +65 -145
- package/loaders/post-icon.js +1 -1
- package/loaders/post-language-option.js +27 -11
- package/loaders/post-language-switch.js +27 -15
- package/loaders/post-linkarea.d.ts +11 -0
- package/loaders/post-linkarea.js +47 -0
- package/loaders/post-list-item.js +3 -3
- package/loaders/post-list.js +17 -8
- package/loaders/post-logo.js +9 -6
- package/loaders/post-mainnavigation.js +193 -9
- package/loaders/post-megadropdown-trigger.js +15 -9
- package/loaders/post-megadropdown.js +108 -51
- package/loaders/post-menu-item.js +1 -1
- package/loaders/post-menu-trigger.js +1 -1
- package/loaders/post-menu.js +1 -1
- package/loaders/post-popover.js +21 -9
- package/loaders/post-popovercontainer.js +1 -1
- package/loaders/post-rating.js +23 -10
- package/loaders/post-tab-header.js +11 -8
- package/loaders/post-tab-panel.js +10 -7
- package/loaders/post-tabs.js +12 -6
- package/loaders/post-tag.js +20 -9
- package/loaders/post-togglebutton.js +9 -6
- package/loaders/post-tooltip.js +21 -10
- package/package.json +10 -11
- package/dist/cjs/post-back-to-top-7efd1066.js +0 -76
- package/dist/cjs/post-banner-a6808d7d.js +0 -96
- package/dist/components/package.js +0 -3
- package/dist/components/post-banner2.js +0 -131
- package/dist/components/post-header2.js +0 -279
- package/dist/components/post-mainnavigation2.js +0 -53
- package/dist/components/post-megadropdown2.js +0 -111
- package/dist/esm/package-495dba42.js +0 -3
- package/dist/esm/post-back-to-top-e422c426.js +0 -74
- package/dist/esm/post-banner-7385397e.js +0 -94
- package/dist/post-components/p-0b613350.js +0 -1
- package/dist/post-components/p-0e216cc4.js +0 -2
- package/dist/post-components/p-20e1b680.js +0 -1
- package/dist/post-components/p-29bc8ddc.entry.js +0 -1
- package/dist/post-components/p-2b4c7ec7.entry.js +0 -1
- package/dist/post-components/p-2f327006.entry.js +0 -1
- package/dist/post-components/p-3632ace7.js +0 -1
- package/dist/post-components/p-3a978ea9.entry.js +0 -1
- package/dist/post-components/p-3d4fdde0.js +0 -1
- package/dist/post-components/p-427132e3.entry.js +0 -1
- package/dist/post-components/p-445dfa96.js +0 -1
- package/dist/post-components/p-4c0c13a9.js +0 -1
- package/dist/post-components/p-5384e6f4.js +0 -1
- package/dist/post-components/p-5630677a.entry.js +0 -1
- package/dist/post-components/p-5e5ee06d.entry.js +0 -1
- package/dist/post-components/p-68c43ef0.entry.js +0 -1
- package/dist/post-components/p-6e39bb59.entry.js +0 -1
- package/dist/post-components/p-6fede961.js +0 -1
- package/dist/post-components/p-72a5ee9b.js +0 -1
- package/dist/post-components/p-72d9d594.entry.js +0 -1
- package/dist/post-components/p-85bf673e.entry.js +0 -1
- package/dist/post-components/p-8decb072.entry.js +0 -1
- package/dist/post-components/p-9596c7d6.js +0 -1
- package/dist/post-components/p-975b30f5.js +0 -1
- package/dist/post-components/p-9a50697e.entry.js +0 -1
- package/dist/post-components/p-aaca7ca7.js +0 -1
- package/dist/post-components/p-ac2189b7.js +0 -1
- package/dist/post-components/p-afe3b28e.js +0 -1
- package/dist/post-components/p-b129c166.js +0 -1
- package/dist/post-components/p-bd49bb7e.entry.js +0 -1
- package/dist/post-components/p-c043686c.entry.js +0 -1
- package/dist/post-components/p-c8544b65.js +0 -1
- package/dist/post-components/p-c9f65844.entry.js +0 -1
- package/dist/post-components/p-f7c5b0c2.js +0 -1
- package/loaders/package.js +0 -3
- /package/dist/components/{heading-levels.js → p-247a1668.js} +0 -0
- /package/dist/components/{constants.js → p-440193f4.js} +0 -0
- /package/dist/components/{slide.js → p-4af6dbed.js} +0 -0
- /package/dist/components/{index.browser.js → p-5959f2bd.js} +0 -0
- /package/dist/components/{fade.js → p-64e3de38.js} +0 -0
- /package/dist/components/{check-type.js → p-8562c7dc.js} +0 -0
- /package/dist/components/{attribute-observer.js → p-9748a355.js} +0 -0
- /package/dist/components/{check-one-of.js → p-bacd3e2c.js} +0 -0
- /package/dist/components/{debounce.js → p-e1baac59.js} +0 -0
- /package/dist/components/{get-root.js → p-fc91cbc2.js} +0 -0
- /package/loaders/{heading-levels.js → p-247a1668.js} +0 -0
- /package/loaders/{constants.js → p-440193f4.js} +0 -0
- /package/loaders/{slide.js → p-4af6dbed.js} +0 -0
- /package/loaders/{index.browser.js → p-5959f2bd.js} +0 -0
- /package/loaders/{fade.js → p-64e3de38.js} +0 -0
- /package/loaders/{check-type.js → p-8562c7dc.js} +0 -0
- /package/loaders/{attribute-observer.js → p-9748a355.js} +0 -0
- /package/loaders/{check-one-of.js → p-bacd3e2c.js} +0 -0
- /package/loaders/{debounce.js → p-e1baac59.js} +0 -0
- /package/loaders/{get-root.js → p-fc91cbc2.js} +0 -0
|
@@ -3,6 +3,24 @@ import { version } from "../../../../package";
|
|
|
3
3
|
export class PostRating {
|
|
4
4
|
hasChanged = false;
|
|
5
5
|
host;
|
|
6
|
+
hoveredIndex;
|
|
7
|
+
/**
|
|
8
|
+
* Defines a hidden label for the component.
|
|
9
|
+
*/
|
|
10
|
+
label = 'Rating';
|
|
11
|
+
/**
|
|
12
|
+
* Defines the total amount of stars rendered in the component.
|
|
13
|
+
*/
|
|
14
|
+
stars = 5;
|
|
15
|
+
/**
|
|
16
|
+
* Defines the rating that the component should show.
|
|
17
|
+
*/
|
|
18
|
+
currentRating = 0;
|
|
19
|
+
/**
|
|
20
|
+
* Defines if the component is readonly or not.
|
|
21
|
+
* This usually should be used together with the `currentRating` property.
|
|
22
|
+
*/
|
|
23
|
+
readonly = false;
|
|
6
24
|
/**
|
|
7
25
|
* An event emitted whenever the component's value has changed (on input).
|
|
8
26
|
* The event payload can be used like so: `event.detail.value`.
|
|
@@ -14,11 +32,6 @@ export class PostRating {
|
|
|
14
32
|
*/
|
|
15
33
|
postChange;
|
|
16
34
|
constructor() {
|
|
17
|
-
this.hoveredIndex = undefined;
|
|
18
|
-
this.label = 'Rating';
|
|
19
|
-
this.stars = 5;
|
|
20
|
-
this.currentRating = 0;
|
|
21
|
-
this.readonly = false;
|
|
22
35
|
this.keydownHandler = this.keydownHandler.bind(this);
|
|
23
36
|
this.blurHandler = this.blurHandler.bind(this);
|
|
24
37
|
this.hoverHandler = this.hoverHandler.bind(this);
|
|
@@ -75,7 +88,7 @@ export class PostRating {
|
|
|
75
88
|
}
|
|
76
89
|
}
|
|
77
90
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: '64891ff9f0ef8f7bc2be5df9e989577830b35ffc', "data-version": version }, h("div", { key: 'b4e7050864265e33e08b88fc3d5c8eea3cf6ab0e', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
79
92
|
'star': true,
|
|
80
93
|
'before-hover': i < this.hoveredIndex,
|
|
81
94
|
'active': i < Math.round(this.currentRating),
|
|
@@ -111,6 +124,8 @@ export class PostRating {
|
|
|
111
124
|
"tags": [],
|
|
112
125
|
"text": "Defines a hidden label for the component."
|
|
113
126
|
},
|
|
127
|
+
"getter": false,
|
|
128
|
+
"setter": false,
|
|
114
129
|
"attribute": "label",
|
|
115
130
|
"reflect": false,
|
|
116
131
|
"defaultValue": "'Rating'"
|
|
@@ -129,6 +144,8 @@ export class PostRating {
|
|
|
129
144
|
"tags": [],
|
|
130
145
|
"text": "Defines the total amount of stars rendered in the component."
|
|
131
146
|
},
|
|
147
|
+
"getter": false,
|
|
148
|
+
"setter": false,
|
|
132
149
|
"attribute": "stars",
|
|
133
150
|
"reflect": false,
|
|
134
151
|
"defaultValue": "5"
|
|
@@ -147,6 +164,8 @@ export class PostRating {
|
|
|
147
164
|
"tags": [],
|
|
148
165
|
"text": "Defines the rating that the component should show."
|
|
149
166
|
},
|
|
167
|
+
"getter": false,
|
|
168
|
+
"setter": false,
|
|
150
169
|
"attribute": "current-rating",
|
|
151
170
|
"reflect": false,
|
|
152
171
|
"defaultValue": "0"
|
|
@@ -165,6 +184,8 @@ export class PostRating {
|
|
|
165
184
|
"tags": [],
|
|
166
185
|
"text": "Defines if the component is readonly or not.\nThis usually should be used together with the `currentRating` property."
|
|
167
186
|
},
|
|
187
|
+
"getter": false,
|
|
188
|
+
"setter": false,
|
|
168
189
|
"attribute": "readonly",
|
|
169
190
|
"reflect": false,
|
|
170
191
|
"defaultValue": "false"
|
|
@@ -6,11 +6,12 @@ import { nanoid } from "nanoid";
|
|
|
6
6
|
* @slot default - Slot for the content of the tab header.
|
|
7
7
|
*/
|
|
8
8
|
export class PostTabHeader {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.tabId = undefined;
|
|
11
|
-
this.panel = undefined;
|
|
12
|
-
}
|
|
13
9
|
host;
|
|
10
|
+
tabId;
|
|
11
|
+
/**
|
|
12
|
+
* The name of the panel controlled by the tab header.
|
|
13
|
+
*/
|
|
14
|
+
panel;
|
|
14
15
|
validateFor(newValue) {
|
|
15
16
|
checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
|
|
16
17
|
}
|
|
@@ -18,7 +19,7 @@ export class PostTabHeader {
|
|
|
18
19
|
this.tabId = `tab-${this.host.id || nanoid(6)}`;
|
|
19
20
|
}
|
|
20
21
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'f7383136476f3d32a79c39f7cadef8bcde0630f7', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: 'b88f3ce360da891793e31b84c4bfd4f59511d88a' })));
|
|
22
23
|
}
|
|
23
24
|
static get is() { return "post-tab-header"; }
|
|
24
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,6 +54,8 @@ export class PostTabHeader {
|
|
|
53
54
|
"tags": [],
|
|
54
55
|
"text": "The name of the panel controlled by the tab header."
|
|
55
56
|
},
|
|
57
|
+
"getter": false,
|
|
58
|
+
"setter": false,
|
|
56
59
|
"attribute": "panel",
|
|
57
60
|
"reflect": false
|
|
58
61
|
}
|
|
@@ -5,17 +5,18 @@ import { nanoid } from "nanoid";
|
|
|
5
5
|
* @slot default - Slot for placing the content of the tab panel.
|
|
6
6
|
*/
|
|
7
7
|
export class PostTabPanel {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.panelId = undefined;
|
|
10
|
-
this.name = undefined;
|
|
11
|
-
}
|
|
12
8
|
host;
|
|
9
|
+
panelId;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the panel, used to associate it with a tab header.
|
|
12
|
+
*/
|
|
13
|
+
name;
|
|
13
14
|
componentWillLoad() {
|
|
14
15
|
// get the id set on the host element or use a random id by default
|
|
15
16
|
this.panelId = `panel-${this.host.id || nanoid(6)}`;
|
|
16
17
|
}
|
|
17
18
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '9d35c9ceec54f1c2983600342e5e63a49ca93aef', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '8db185ca7a2030343df512962126a91f64840a64' })));
|
|
19
20
|
}
|
|
20
21
|
static get is() { return "post-tab-panel"; }
|
|
21
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,6 +46,8 @@ export class PostTabPanel {
|
|
|
45
46
|
"tags": [],
|
|
46
47
|
"text": "The name of the panel, used to associate it with a tab header."
|
|
47
48
|
},
|
|
49
|
+
"getter": false,
|
|
50
|
+
"setter": false,
|
|
48
51
|
"attribute": "name",
|
|
49
52
|
"reflect": false
|
|
50
53
|
}
|
|
@@ -9,9 +9,6 @@ import { componentOnReady } from "../../utils/index";
|
|
|
9
9
|
* @part content - Add custom styles for the tab panel container.
|
|
10
10
|
*/
|
|
11
11
|
export class PostTabs {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.activePanel = undefined;
|
|
14
|
-
}
|
|
15
12
|
activeTab;
|
|
16
13
|
showing;
|
|
17
14
|
hiding;
|
|
@@ -20,6 +17,13 @@ export class PostTabs {
|
|
|
20
17
|
return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
|
|
21
18
|
}
|
|
22
19
|
host;
|
|
20
|
+
/**
|
|
21
|
+
* The name of the panel that is initially shown.
|
|
22
|
+
* If not specified, it defaults to the panel associated with the first tab.
|
|
23
|
+
*
|
|
24
|
+
* **Changing this value after initialization has no effect.**
|
|
25
|
+
*/
|
|
26
|
+
activePanel;
|
|
23
27
|
/**
|
|
24
28
|
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
|
|
25
29
|
* The payload is the name of the newly shown panel.
|
|
@@ -150,7 +154,7 @@ export class PostTabs {
|
|
|
150
154
|
nextTab.focus();
|
|
151
155
|
}
|
|
152
156
|
render() {
|
|
153
|
-
return (h(Host, { key: '
|
|
157
|
+
return (h(Host, { key: '7c81cd091603a01d960ecc2aed9653d0031dd16e', "data-version": version }, h("div", { key: '716a9f1e05a7ffeca8459e6a88ce4b56364b50ec', class: "tabs-wrapper", part: "tabs" }, h("div", { key: 'b41b35b26e0e1ef1e285719975841aefbdc4a8e1', class: "tabs", role: "tablist" }, h("slot", { key: '065b3a6ecfba2710a344b44cc6d5e73beb0655df', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'f30ce2c568071c8f144ba50e62b48a1294207c63', class: "tab-content", part: "content" }, h("slot", { key: 'c71155abdf95343990b2ee85592e7a995f58d05e', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
154
158
|
}
|
|
155
159
|
static get is() { return "post-tabs"; }
|
|
156
160
|
static get encapsulation() { return "shadow"; }
|
|
@@ -185,6 +189,8 @@ export class PostTabs {
|
|
|
185
189
|
"tags": [],
|
|
186
190
|
"text": "The name of the panel that is initially shown.\nIf not specified, it defaults to the panel associated with the first tab.\n\n**Changing this value after initialization has no effect.**"
|
|
187
191
|
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
188
194
|
"attribute": "active-panel",
|
|
189
195
|
"reflect": false
|
|
190
196
|
}
|
|
@@ -5,11 +5,22 @@ import { version } from "../../../../package";
|
|
|
5
5
|
*/
|
|
6
6
|
export class PostTag {
|
|
7
7
|
host;
|
|
8
|
+
classes;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the color variant of the component.
|
|
11
|
+
*/
|
|
12
|
+
variant;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the size of the component.
|
|
15
|
+
*/
|
|
16
|
+
size = null;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the icon `name` inside of the component.
|
|
19
|
+
* <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
20
|
+
* To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs">icon library</a>.
|
|
21
|
+
*/
|
|
22
|
+
icon = null;
|
|
8
23
|
constructor() {
|
|
9
|
-
this.classes = undefined;
|
|
10
|
-
this.variant = undefined;
|
|
11
|
-
this.size = null;
|
|
12
|
-
this.icon = null;
|
|
13
24
|
this.setClasses = this.setClasses.bind(this);
|
|
14
25
|
}
|
|
15
26
|
variantChanged() {
|
|
@@ -31,7 +42,7 @@ export class PostTag {
|
|
|
31
42
|
this.setClasses();
|
|
32
43
|
}
|
|
33
44
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'fd03781bfdcfaa3776677f8d95e8b1a74de24c1e', "data-version": version }, h("div", { key: '0a22b98ea9c75d4a09680e2abe980bd0e4935172', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: 'ddda0c15ce644e311b8061283d83619667264ec4', class: "tag-text" }, h("slot", { key: '30fb04c5e80f46e7cb560f9489791d8bcd7b45b0' })))));
|
|
35
46
|
}
|
|
36
47
|
static get is() { return "post-tag"; }
|
|
37
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,6 +72,8 @@ export class PostTag {
|
|
|
61
72
|
"tags": [],
|
|
62
73
|
"text": "Defines the color variant of the component."
|
|
63
74
|
},
|
|
75
|
+
"getter": false,
|
|
76
|
+
"setter": false,
|
|
64
77
|
"attribute": "variant",
|
|
65
78
|
"reflect": false
|
|
66
79
|
},
|
|
@@ -78,6 +91,8 @@ export class PostTag {
|
|
|
78
91
|
"tags": [],
|
|
79
92
|
"text": "Defines the size of the component."
|
|
80
93
|
},
|
|
94
|
+
"getter": false,
|
|
95
|
+
"setter": false,
|
|
81
96
|
"attribute": "size",
|
|
82
97
|
"reflect": false,
|
|
83
98
|
"defaultValue": "null"
|
|
@@ -96,6 +111,8 @@ export class PostTag {
|
|
|
96
111
|
"tags": [],
|
|
97
112
|
"text": "Defines the icon `name` inside of the component.\n<span className=\"banner banner-sm banner-info\">If not set the icon will not show up.</span>\nTo learn which icons are available, please visit our <a href=\"/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs\">icon library</a>."
|
|
98
113
|
},
|
|
114
|
+
"getter": false,
|
|
115
|
+
"setter": false,
|
|
99
116
|
"attribute": "icon",
|
|
100
117
|
"reflect": false,
|
|
101
118
|
"defaultValue": "null"
|
|
@@ -5,10 +5,11 @@ import { checkType } from "../../utils/index";
|
|
|
5
5
|
* @slot default - Slot for the content of the button.
|
|
6
6
|
*/
|
|
7
7
|
export class PostTogglebutton {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.toggled = false;
|
|
10
|
-
}
|
|
11
8
|
host;
|
|
9
|
+
/**
|
|
10
|
+
* If `true`, the button is in the "on" state, otherwise it is in the "off" state.
|
|
11
|
+
*/
|
|
12
|
+
toggled = false;
|
|
12
13
|
validateToggled(value = this.toggled) {
|
|
13
14
|
checkType(value, 'boolean', 'The "toggled" property of the post-togglebutton must be a boolean.');
|
|
14
15
|
}
|
|
@@ -29,7 +30,7 @@ export class PostTogglebutton {
|
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'e4974336def6dbf244b3d63b9aa00e2e7bce1920', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: 'b1179664b0f0651865e973c7afe951102b048877' })));
|
|
33
34
|
}
|
|
34
35
|
static get is() { return "post-togglebutton"; }
|
|
35
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,6 +60,8 @@ export class PostTogglebutton {
|
|
|
59
60
|
"tags": [],
|
|
60
61
|
"text": "If `true`, the button is in the \"on\" state, otherwise it is in the \"off\" state."
|
|
61
62
|
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
62
65
|
"attribute": "toggled",
|
|
63
66
|
"reflect": false,
|
|
64
67
|
"defaultValue": "false"
|
|
@@ -93,14 +93,23 @@ const patchAccessibilityFeatures = (trigger) => {
|
|
|
93
93
|
// Initialize a mutation observer for patching accessibility features
|
|
94
94
|
const triggerObserver = getAttributeObserver(tooltipTargetAttribute, patchAccessibilityFeatures);
|
|
95
95
|
export class PostTooltip {
|
|
96
|
-
constructor() {
|
|
97
|
-
this.placement = 'top';
|
|
98
|
-
this.arrow = true;
|
|
99
|
-
this.delayed = false;
|
|
100
|
-
}
|
|
101
96
|
popoverRef;
|
|
102
97
|
wasOpenedByFocus = false;
|
|
103
98
|
host;
|
|
99
|
+
/**
|
|
100
|
+
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
101
|
+
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
102
|
+
* towards the viewport if they would overlap edge boundaries.
|
|
103
|
+
*/
|
|
104
|
+
placement = 'top';
|
|
105
|
+
/**
|
|
106
|
+
* Wheter or not to display a little pointer arrow
|
|
107
|
+
*/
|
|
108
|
+
arrow = true;
|
|
109
|
+
/**
|
|
110
|
+
* If `true`, the tooltip is displayed a few milliseconds after it is triggered
|
|
111
|
+
*/
|
|
112
|
+
delayed = false;
|
|
104
113
|
validateDelayed() {
|
|
105
114
|
checkEmptyOrType(this.delayed, 'boolean', 'The post-tooltip "delayed" property should be a boolean.');
|
|
106
115
|
}
|
|
@@ -216,7 +225,7 @@ export class PostTooltip {
|
|
|
216
225
|
}
|
|
217
226
|
render() {
|
|
218
227
|
const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
|
|
219
|
-
return (h(Host, { key: '
|
|
228
|
+
return (h(Host, { key: 'bda6e8f41cc55d14f11bd76d7a5bde9c3d7e8817', "data-version": version, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: '090506a3d10cafa28d296113b09dfd1a2965dfa5', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: '9d8ff88355510ec1a56169158e3cf503a8ef8482' }))));
|
|
220
229
|
}
|
|
221
230
|
static get is() { return "post-tooltip"; }
|
|
222
231
|
static get encapsulation() { return "shadow"; }
|
|
@@ -252,6 +261,8 @@ export class PostTooltip {
|
|
|
252
261
|
"tags": [],
|
|
253
262
|
"text": "Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.\nTooltips are automatically flipped to the opposite side if there is not enough available space and are shifted\ntowards the viewport if they would overlap edge boundaries."
|
|
254
263
|
},
|
|
264
|
+
"getter": false,
|
|
265
|
+
"setter": false,
|
|
255
266
|
"attribute": "placement",
|
|
256
267
|
"reflect": false,
|
|
257
268
|
"defaultValue": "'top'"
|
|
@@ -270,6 +281,8 @@ export class PostTooltip {
|
|
|
270
281
|
"tags": [],
|
|
271
282
|
"text": "Wheter or not to display a little pointer arrow"
|
|
272
283
|
},
|
|
284
|
+
"getter": false,
|
|
285
|
+
"setter": false,
|
|
273
286
|
"attribute": "arrow",
|
|
274
287
|
"reflect": false,
|
|
275
288
|
"defaultValue": "true"
|
|
@@ -288,6 +301,8 @@ export class PostTooltip {
|
|
|
288
301
|
"tags": [],
|
|
289
302
|
"text": "If `true`, the tooltip is displayed a few milliseconds after it is triggered"
|
|
290
303
|
},
|
|
304
|
+
"getter": false,
|
|
305
|
+
"setter": false,
|
|
291
306
|
"attribute": "delayed",
|
|
292
307
|
"reflect": false,
|
|
293
308
|
"defaultValue": "false"
|
package/dist/collection/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export { PostHeader } from './components/post-header/post-header';
|
|
|
15
15
|
export { PostIcon } from './components/post-icon/post-icon';
|
|
16
16
|
export { PostLanguageOption } from './components/post-language-option/post-language-option';
|
|
17
17
|
export { PostLanguageSwitch } from './components/post-language-switch/post-language-switch';
|
|
18
|
+
export { PostLinkarea } from './components/post-linkarea/post-linkarea';
|
|
18
19
|
export { PostList } from './components/post-list/post-list';
|
|
19
20
|
export { PostListItem } from './components/post-list-item/post-list-item';
|
|
20
21
|
export { PostLogo } from './components/post-logo/post-logo';
|
package/dist/components/index.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '
|
|
2
|
-
export { P as PostAccordion } from './
|
|
3
|
-
export { P as PostAccordionItem } from './
|
|
4
|
-
export { P as PostAvatar } from './
|
|
5
|
-
export { P as PostBackToTop } from './
|
|
6
|
-
export { P as PostBanner } from './
|
|
7
|
-
export { P as PostBreadcrumb } from './
|
|
8
|
-
export { P as PostBreadcrumbItem } from './
|
|
9
|
-
export { P as PostCardControl } from './
|
|
10
|
-
export { P as PostClosebutton } from './
|
|
11
|
-
export { P as PostCollapsible } from './
|
|
12
|
-
export { P as PostCollapsibleTrigger } from './
|
|
13
|
-
export { P as PostFooter } from './
|
|
14
|
-
export { P as PostHeader } from './
|
|
15
|
-
export { P as PostIcon } from './
|
|
16
|
-
export { P as PostLanguageOption } from './
|
|
17
|
-
export { P as PostLanguageSwitch } from './
|
|
18
|
-
export { P as
|
|
19
|
-
export { P as
|
|
20
|
-
export { P as
|
|
21
|
-
export { P as
|
|
22
|
-
export { P as
|
|
23
|
-
export { P as
|
|
24
|
-
export { P as
|
|
25
|
-
export { P as
|
|
26
|
-
export { P as
|
|
27
|
-
export { P as
|
|
28
|
-
export { P as
|
|
29
|
-
export { P as
|
|
30
|
-
export { P as
|
|
31
|
-
export { P as
|
|
32
|
-
export { P as
|
|
33
|
-
export { P as
|
|
34
|
-
export { P as
|
|
35
|
-
export { P as
|
|
1
|
+
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-3e8554e7.js';
|
|
2
|
+
export { P as PostAccordion } from './p-a3a004e6.js';
|
|
3
|
+
export { P as PostAccordionItem } from './p-68ecd276.js';
|
|
4
|
+
export { P as PostAvatar } from './p-d3fb70af.js';
|
|
5
|
+
export { P as PostBackToTop } from './p-e20366a6.js';
|
|
6
|
+
export { P as PostBanner } from './p-4965cfe1.js';
|
|
7
|
+
export { P as PostBreadcrumb } from './p-146677d1.js';
|
|
8
|
+
export { P as PostBreadcrumbItem } from './p-c7c1d466.js';
|
|
9
|
+
export { P as PostCardControl } from './p-38778a14.js';
|
|
10
|
+
export { P as PostClosebutton } from './p-bf14d264.js';
|
|
11
|
+
export { P as PostCollapsible } from './p-b018d864.js';
|
|
12
|
+
export { P as PostCollapsibleTrigger } from './p-05590ac0.js';
|
|
13
|
+
export { P as PostFooter } from './p-58878996.js';
|
|
14
|
+
export { P as PostHeader } from './p-424d5ea9.js';
|
|
15
|
+
export { P as PostIcon } from './p-91031e3b.js';
|
|
16
|
+
export { P as PostLanguageOption } from './p-d47bb5bf.js';
|
|
17
|
+
export { P as PostLanguageSwitch } from './p-f6d80d76.js';
|
|
18
|
+
export { P as PostLinkarea } from './p-5653923a.js';
|
|
19
|
+
export { P as PostList } from './p-536eba02.js';
|
|
20
|
+
export { P as PostListItem } from './p-9e4b1f10.js';
|
|
21
|
+
export { P as PostLogo } from './p-5f51ec58.js';
|
|
22
|
+
export { P as PostMainnavigation } from './p-1ee1742f.js';
|
|
23
|
+
export { P as PostMegadropdown } from './p-46a6c5ec.js';
|
|
24
|
+
export { P as PostMegadropdownTrigger } from './p-27edc023.js';
|
|
25
|
+
export { P as PostMenu } from './p-91882483.js';
|
|
26
|
+
export { P as PostMenuItem } from './p-ccccf0c3.js';
|
|
27
|
+
export { P as PostMenuTrigger } from './p-8b053fd5.js';
|
|
28
|
+
export { P as PostPopover } from './p-af23f7de.js';
|
|
29
|
+
export { P as PostPopovercontainer } from './p-60cf53cc.js';
|
|
30
|
+
export { P as PostRating } from './p-fc59de7c.js';
|
|
31
|
+
export { P as PostTabs } from './p-ce854a7d.js';
|
|
32
|
+
export { P as PostTabHeader } from './p-75b8b652.js';
|
|
33
|
+
export { P as PostTabPanel } from './p-78e1d893.js';
|
|
34
|
+
export { P as PostTag } from './p-cab43cee.js';
|
|
35
|
+
export { P as PostTogglebutton } from './p-3cee636a.js';
|
|
36
|
+
export { P as PostTooltip } from './p-2d9b46b4.js';
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { proxyCustomElement,
|
|
2
|
-
import { v as version } from './
|
|
3
|
-
import { c as checkType } from './
|
|
4
|
-
import { c as checkNonEmpty } from './
|
|
5
|
-
import { d as debounce } from './
|
|
6
|
-
import { g as getRoot } from './
|
|
1
|
+
import { p as proxyCustomElement, H } from './p-3e8554e7.js';
|
|
2
|
+
import { v as version } from './p-2083ae2c.js';
|
|
3
|
+
import { c as checkType } from './p-8562c7dc.js';
|
|
4
|
+
import { c as checkNonEmpty } from './p-b095519d.js';
|
|
5
|
+
import { d as debounce } from './p-e1baac59.js';
|
|
6
|
+
import { g as getRoot } from './p-fc91cbc2.js';
|
|
7
7
|
|
|
8
|
-
const PostCollapsibleTrigger = /*@__PURE__*/ proxyCustomElement(class PostCollapsibleTrigger extends
|
|
8
|
+
const PostCollapsibleTrigger = /*@__PURE__*/ proxyCustomElement(class PostCollapsibleTrigger extends H {
|
|
9
9
|
constructor() {
|
|
10
10
|
super();
|
|
11
11
|
this.__registerHost();
|
|
12
|
-
this.for = undefined;
|
|
13
12
|
}
|
|
14
13
|
trigger;
|
|
15
14
|
observer = new MutationObserver(() => this.setTrigger());
|
|
16
15
|
root;
|
|
17
16
|
get host() { return this; }
|
|
17
|
+
/**
|
|
18
|
+
* Link the trigger to a post-collapsible with this id
|
|
19
|
+
*/
|
|
20
|
+
for;
|
|
18
21
|
/**
|
|
19
22
|
* Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
|
|
20
23
|
*/
|
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import { proxyCustomElement,
|
|
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 { p as proxyCustomElement, H, h, c as Host } from './p-3e8554e7.js';
|
|
2
|
+
import { v as version } from './p-2083ae2c.js';
|
|
3
|
+
import { b as checkUrl } from './p-eabb09ad.js';
|
|
4
|
+
import { d as debounce } from './p-e1baac59.js';
|
|
5
|
+
import { d as defineCustomElement$6 } from './p-c7c1d466.js';
|
|
6
|
+
import { d as defineCustomElement$5 } from './p-91031e3b.js';
|
|
7
|
+
import { d as defineCustomElement$4 } from './p-91882483.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './p-ccccf0c3.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './p-8b053fd5.js';
|
|
10
|
+
import { d as defineCustomElement$1 } from './p-60cf53cc.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 H {
|
|
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;
|
|
25
20
|
}
|
|
26
21
|
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;
|
|
27
33
|
breadcrumbNavRef;
|
|
28
34
|
lastItem;
|
|
29
35
|
validateUrl() {
|
|
@@ -66,10 +72,10 @@ const PostBreadcrumb = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumb ext
|
|
|
66
72
|
// Determines parent width for concatenation logic
|
|
67
73
|
getParentWidth() {
|
|
68
74
|
let parent = this.host.parentNode;
|
|
69
|
-
while (parent && !(parent instanceof
|
|
75
|
+
while (parent && !(parent instanceof H)) {
|
|
70
76
|
parent = parent.parentNode;
|
|
71
77
|
}
|
|
72
|
-
return parent instanceof
|
|
78
|
+
return parent instanceof H ? parent.clientWidth : window.innerWidth;
|
|
73
79
|
}
|
|
74
80
|
checkConcatenation() {
|
|
75
81
|
if (!this.breadcrumbNavRef)
|
|
@@ -96,7 +102,7 @@ const PostBreadcrumb = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumb ext
|
|
|
96
102
|
}
|
|
97
103
|
render() {
|
|
98
104
|
const visibleItems = this.breadcrumbItems.slice(0, -1);
|
|
99
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: 'd24a602e1c84ec7227c44a02ac0bebcfe0358b89', "data-version": version }, h("nav", { key: '7ba77ead7ee58f141da4b3e38b11372312ddccf0', "aria-label": "Breadcrumb", class: "breadcrumbs-nav", ref: (el) => (this.breadcrumbNavRef = el) }, h("ol", { key: '210f747196e7450c25f088b258868adc4809e587', class: "no-list breadcrumbs-list" }, h("li", { key: '66627682df3f2a9879d037c1f1f0ed3633267590' }, h("a", { key: 'eb3f05c7badfb40f91aa8d961b4a3cca15946c6e', href: this.homeUrl, class: "breadcrumb-link" }, h("span", { key: 'd4295523999fe7b0192d7d110e84f939b93be1a9', class: "visually-hidden" }, this.homeText), h("post-icon", { key: 'd77ed3f3b22acefd7675dbe94023a9763e7afac9', name: "home", class: "home-icon" }))), this.isConcatenated ? (h("div", { class: "menu-trigger-wrapper", "aria-label": "More breadcrumbs", onKeyDown: (e) => {
|
|
100
106
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
101
107
|
e.preventDefault();
|
|
102
108
|
this.handleBreadcrumbItemClick();
|
|
@@ -107,7 +113,7 @@ const PostBreadcrumb = /*@__PURE__*/ proxyCustomElement(class PostBreadcrumb ext
|
|
|
107
113
|
linkElement?.click();
|
|
108
114
|
e.preventDefault();
|
|
109
115
|
}
|
|
110
|
-
} }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map((item) => (h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text)))), this.lastItem && (h("post-breadcrumb-item", { key: '
|
|
116
|
+
} }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map((item) => (h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text)))), this.lastItem && (h("post-breadcrumb-item", { key: '602d2071f6077fa61782f87970c8e8756ad8c20d', url: this.lastItem.url, "aria-current": "page", tabindex: -1 }, this.lastItem.text))), h("div", { key: 'e00662dad1d308e9791140acd85dbe34084adf34', class: "hidden-items" }, h("a", { key: '8d71359ec18220eaa83095750a1e0fb82e716238', href: this.homeUrl, class: "hidden-breadcrumb-item" }, h("span", { key: 'c5231a0e4d392627bbc8df44016bd8336438a1fd', class: "visually-hidden" }, this.homeText), h("post-icon", { key: '449f27766fb18df99f70cba07de7d5e861a25da6', name: "home", class: "home-icon" })), this.breadcrumbItems.map((item) => (h("post-breadcrumb-item", { url: item.url, key: `hidden-${item.url || item.text}`, class: "hidden-breadcrumb-item" }, item.text)))))));
|
|
111
117
|
}
|
|
112
118
|
static get watchers() { return {
|
|
113
119
|
"homeUrl": ["validateUrl"]
|