@swisspost/design-system-components 9.0.0-next.12 → 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/.config/bindings.angular.js +4 -0
- package/dist/cjs/{attribute-observer-10f08c04.js → attribute-observer-6d8b886b.js} +4 -4
- package/dist/cjs/{check-one-of-f4f5d0c0.js → check-one-of-ef931478.js} +2 -1
- package/dist/cjs/{check-type-64af82a9.js → check-type-696d2c51.js} +4 -4
- package/dist/cjs/{check-url-3ffdd2fb.js → check-url-1cf6fb0d.js} +2 -1
- package/dist/cjs/{debounce-1151afe3.js → debounce-158fd76f.js} +2 -1
- package/dist/cjs/fade-72d5ef55.js +14 -0
- package/dist/cjs/{index-f1b08cdb.js → index-0ee3ab4a.js} +334 -152
- package/dist/cjs/{index-5d4e0aed.js → index-bea4ac42.js} +7 -5
- package/dist/cjs/index.cjs.js +30 -28
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-0bd6fb0d.js → package-7d11b6ea.js} +1 -1
- package/dist/cjs/{post-accordion-7aadd881.js → post-accordion-29861d97.js} +15 -8
- package/dist/cjs/{post-accordion-item-bd033c7f.js → post-accordion-item-0da0f7aa.js} +20 -13
- package/dist/cjs/post-accordion-item.cjs.entry.js +7 -7
- package/dist/cjs/post-accordion.cjs.entry.js +4 -4
- package/dist/cjs/{post-avatar-5dbdf70d.js → post-avatar-01b9cd6d.js} +29 -21
- 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 +5 -5
- package/dist/cjs/post-banner-33929088.js +110 -0
- package/dist/cjs/post-banner.cjs.entry.js +8 -8
- package/dist/cjs/{post-breadcrumb-531c4f79.js → post-breadcrumb-1384018e.js} +41 -34
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +7 -7
- package/dist/cjs/post-breadcrumb.cjs.entry.js +5 -5
- package/dist/cjs/post-card-control-4c85eda3.js +314 -0
- package/dist/cjs/post-card-control.cjs.entry.js +4 -4
- package/dist/cjs/post-closebutton_15.cjs.entry.js +8 -8
- package/dist/cjs/{post-collapsible-trigger-02924200.js → post-collapsible-trigger-0fb2596a.js} +47 -35
- package/dist/cjs/post-collapsible_2.cjs.entry.js +8 -8
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/{post-footer-96d7bd47.js → post-footer-f621a563.js} +18 -12
- 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-3f73fb4d.js → post-menu-item-ab3e2e7e.js} +12 -9
- package/dist/cjs/{post-popover-64195ffd.js → post-popover-a2ba9226.js} +24 -10
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/{post-rating-bd27ebfc.js → post-rating-c402c294.js} +33 -10
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-c819517d.js +36 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-3eedcd19.js → post-tab-panel-3cb207f3.js} +9 -6
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-ea94b243.js → post-tabs-b6fa39c3.js} +29 -18
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{post-tag-1d75024b.js → post-tag-9c366519.js} +20 -9
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-togglebutton-876f7892.js → post-togglebutton-d49bec2c.js} +682 -221
- package/dist/cjs/{post-tooltip-e4ef3c7e.js → post-tooltip-425c01ba.js} +24 -12
- package/dist/cjs/post-tooltip.cjs.entry.js +8 -8
- package/dist/cjs/{slide-5d51abe8.js → slide-8ae17ee4.js} +4 -4
- package/dist/collection/animations/collapse.js +5 -5
- package/dist/collection/animations/fade.js +6 -2
- package/dist/collection/animations/slide.js +4 -4
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/post-accordion/post-accordion.js +16 -6
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +21 -11
- package/dist/collection/components/post-avatar/post-avatar.js +35 -20
- 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 +14 -8
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-banner/post-banner.js +40 -14
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +41 -31
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +10 -6
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +104 -43
- package/dist/collection/components/post-closebutton/post-closebutton.js +2 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +16 -6
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +25 -21
- package/dist/collection/components/post-footer/post-footer.js +9 -5
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +90 -15
- package/dist/collection/components/post-icon/post-icon.js +93 -23
- package/dist/collection/components/post-language-option/post-language-option.js +37 -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 +24 -7
- 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 +19 -6
- package/dist/collection/components/post-list-item/post-list-item.js +2 -1
- package/dist/collection/components/post-logo/post-logo.js +8 -4
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +197 -17
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +134 -64
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +18 -11
- package/dist/collection/components/post-menu/post-menu.js +56 -33
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +24 -16
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +26 -5
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +55 -8
- package/dist/collection/components/post-rating/post-rating.js +39 -7
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +9 -5
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +9 -5
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +25 -18
- package/dist/collection/components/post-tag/post-tag.css +1 -1
- package/dist/collection/components/post-tag/post-tag.js +23 -5
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +18 -14
- package/dist/collection/components/post-tooltip/post-tooltip.js +26 -9
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/attribute-observer.js +4 -4
- package/dist/collection/utils/breakpoints.js +9 -6
- package/dist/collection/utils/component-on-ready.js +4 -4
- package/dist/collection/utils/debounce.js +2 -1
- package/dist/collection/utils/get-focusable-children.js +2 -2
- package/dist/collection/utils/property-checkers/check-one-of.js +2 -1
- package/dist/collection/utils/property-checkers/check-pattern.js +2 -1
- package/dist/collection/utils/property-checkers/check-type.js +4 -4
- package/dist/collection/utils/property-checkers/check-url.js +2 -1
- package/dist/collection/utils/property-checkers/empty-or.js +2 -1
- package/dist/collection/utils/sass-export.js +8 -5
- package/dist/components/index.js +36 -35
- package/dist/components/{post-collapsible-trigger2.js → p-05590ac0.js} +30 -27
- package/dist/components/{post-breadcrumb2.js → p-146677d1.js} +50 -43
- 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} +21 -15
- package/dist/components/{post-tooltip2.js → p-2d9b46b4.js} +26 -14
- package/dist/components/p-38778a14.js +345 -0
- package/dist/components/p-3aba7629.js +29 -0
- package/dist/components/{post-togglebutton2.js → p-3cee636a.js} +20 -17
- 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/{loaders/slide.js → dist/components/p-4af6dbed.js} +4 -4
- package/dist/components/{post-list2.js → p-536eba02.js} +19 -9
- package/dist/components/p-5653923a.js +44 -0
- package/dist/components/{post-footer2.js → p-58878996.js} +23 -17
- package/dist/components/{post-logo2.js → p-5f51ec58.js} +10 -7
- package/{loaders/post-popovercontainer2.js → dist/components/p-60cf53cc.js} +34 -11
- package/dist/components/p-64e3de38.js +11 -0
- package/dist/components/{post-accordion-item2.js → p-68ecd276.js} +26 -19
- package/dist/components/p-75b8b652.js +54 -0
- package/dist/components/{post-tab-panel2.js → p-78e1d893.js} +11 -8
- package/dist/components/{check-type.js → p-8562c7dc.js} +4 -4
- package/{loaders/post-menu-trigger2.js → dist/components/p-8b053fd5.js} +27 -20
- package/dist/components/{post-icon2.js → p-91031e3b.js} +85 -28
- package/dist/components/{post-menu2.js → p-91882483.js} +60 -65
- package/dist/{esm/attribute-observer-37fa950a.js → components/p-9748a355.js} +4 -4
- package/dist/components/{post-list-item2.js → p-9e4b1f10.js} +4 -4
- package/dist/components/{post-accordion2.js → p-a3a004e6.js} +17 -10
- package/dist/components/{post-popover2.js → p-af23f7de.js} +26 -12
- package/dist/components/{post-collapsible2.js → p-b018d864.js} +23 -14
- package/dist/components/{check-non-empty.js → p-b095519d.js} +1 -1
- package/dist/components/{check-one-of.js → p-bacd3e2c.js} +2 -1
- package/dist/components/{post-closebutton2.js → p-bf14d264.js} +6 -6
- package/dist/components/{post-breadcrumb-item2.js → p-c7c1d466.js} +13 -10
- package/dist/components/{post-tag2.js → p-cab43cee.js} +22 -11
- package/dist/components/{post-menu-item2.js → p-ccccf0c3.js} +4 -4
- package/dist/components/{post-tabs2.js → p-ce854a7d.js} +30 -19
- package/dist/components/{post-avatar2.js → p-d3fb70af.js} +31 -23
- package/dist/components/{post-language-option2.js → p-d47bb5bf.js} +32 -12
- package/dist/components/{debounce.js → p-e1baac59.js} +2 -1
- package/dist/components/{post-back-to-top2.js → p-e20366a6.js} +20 -15
- package/dist/components/{index2.js → p-eabb09ad.js} +9 -6
- package/dist/components/{post-language-switch2.js → p-f6d80d76.js} +29 -17
- package/dist/components/p-f7b9f90a.js +135 -0
- package/dist/components/{post-rating2.js → p-fc59de7c.js} +35 -12
- 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 +335 -156
- package/{loaders/attribute-observer.js → dist/esm/attribute-observer-2f203993.js} +4 -4
- package/{loaders/check-one-of.js → dist/esm/check-one-of-0d5858c0.js} +2 -1
- package/dist/esm/{check-type-8828dbe4.js → check-type-a6ccc9a3.js} +4 -4
- package/dist/esm/{check-url-a974431e.js → check-url-0bd876f7.js} +2 -1
- package/dist/esm/{debounce-abe98cc2.js → debounce-e54c7131.js} +2 -1
- package/dist/esm/fade-1f3cacf4.js +11 -0
- package/dist/esm/{index-6bfe6554.js → index-2c232bf2.js} +334 -152
- package/dist/esm/{index-b49c9904.js → index-d1bbbd88.js} +7 -5
- package/dist/esm/index.js +29 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-8c98af5e.js +3 -0
- package/dist/esm/{post-accordion-ca48eb18.js → post-accordion-49fba403.js} +15 -8
- package/dist/esm/{post-accordion-item-a461f2a7.js → post-accordion-item-c516517a.js} +20 -13
- package/dist/esm/post-accordion-item.entry.js +7 -7
- package/dist/esm/post-accordion.entry.js +4 -4
- package/dist/esm/{post-avatar-0da1a2e8.js → post-avatar-b527ac63.js} +29 -21
- 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 +5 -5
- package/dist/esm/post-banner-0ad7758b.js +108 -0
- package/dist/esm/post-banner.entry.js +8 -8
- package/dist/esm/{post-breadcrumb-85ffd02f.js → post-breadcrumb-57bca9dd.js} +41 -34
- package/dist/esm/post-breadcrumb-item_2.entry.js +7 -7
- package/dist/esm/post-breadcrumb.entry.js +5 -5
- package/dist/esm/post-card-control-ea741f60.js +312 -0
- package/dist/esm/post-card-control.entry.js +4 -4
- package/dist/esm/post-closebutton_15.entry.js +8 -8
- package/dist/esm/{post-collapsible-trigger-883db3bf.js → post-collapsible-trigger-31155750.js} +47 -35
- package/dist/esm/post-collapsible_2.entry.js +8 -8
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/{post-footer-7b0eb067.js → post-footer-cdde2086.js} +18 -12
- 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-37f637a3.js → post-menu-item-db732728.js} +12 -9
- package/dist/esm/{post-popover-c24ecd38.js → post-popover-00f427ac.js} +24 -10
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/{post-rating-e1c66e5c.js → post-rating-cdcb2a1d.js} +33 -10
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-1d4113cb.js +34 -0
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-73b56a16.js → post-tab-panel-7a5c03ef.js} +9 -6
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-02e523b8.js → post-tabs-308190c0.js} +29 -18
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/{post-tag-43aba068.js → post-tag-aebbda10.js} +20 -9
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-togglebutton-c2231709.js → post-togglebutton-95ba85d2.js} +682 -221
- package/dist/esm/{post-tooltip-8271950c.js → post-tooltip-918d3a54.js} +24 -12
- package/dist/esm/post-tooltip.entry.js +8 -8
- package/dist/{components/slide.js → esm/slide-62768431.js} +4 -4
- 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-1fda117c.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-e2f886ab.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-4af6dbed.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-64e3de38.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-7c9758fa.js +1 -0
- 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-9748a355.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-b0afc087.entry.js +1 -0
- 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-c510d968.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/animations/collapse.d.ts +2 -2
- package/dist/types/animations/fade.d.ts +2 -2
- package/dist/types/animations/slide.d.ts +2 -2
- package/dist/types/components/post-header/post-header.d.ts +11 -2
- package/dist/types/components/post-icon/post-icon.d.ts +1 -1
- 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/post-tabs/post-tabs.d.ts +1 -1
- package/dist/types/components.d.ts +51 -25
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/bindings.angular.d.ts +2 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/utils/attribute-observer.d.ts +1 -1
- package/dist/types/utils/component-on-ready.d.ts +1 -1
- package/dist/types/utils/get-focusable-children.d.ts +1 -1
- package/dist/types/utils/sass-export.d.ts +5 -1
- package/loaders/index.d.ts +2 -0
- package/loaders/index.js +3 -2
- package/loaders/{post-collapsible-trigger2.js → p-05590ac0.js} +30 -27
- package/loaders/{post-breadcrumb-item2.js → p-1beacb73.js} +13 -10
- package/loaders/p-2083ae2c.js +3 -0
- package/loaders/p-3aba7629.js +29 -0
- package/loaders/p-3e8554e7.js +1646 -0
- package/{dist/esm/slide-3422b8a3.js → loaders/p-4af6dbed.js} +4 -4
- package/loaders/{index2.js → p-56ad4838.js} +9 -6
- package/{dist/components/post-popovercontainer2.js → loaders/p-60cf53cc.js} +34 -11
- package/loaders/p-64e3de38.js +11 -0
- package/loaders/{post-accordion-item2.js → p-83baa315.js} +26 -19
- package/loaders/{check-type.js → p-8562c7dc.js} +4 -4
- package/{dist/components/post-menu-trigger2.js → loaders/p-8b053fd5.js} +27 -20
- package/loaders/{post-menu2.js → p-91882483.js} +60 -65
- package/{dist/components/attribute-observer.js → loaders/p-9748a355.js} +4 -4
- package/loaders/{post-collapsible2.js → p-9fac5d7d.js} +23 -14
- package/loaders/{check-non-empty.js → p-b095519d.js} +1 -1
- package/{dist/esm/check-one-of-6b3ef8eb.js → loaders/p-bacd3e2c.js} +2 -1
- package/loaders/{post-menu-item2.js → p-ccccf0c3.js} +4 -4
- package/loaders/{debounce.js → p-e1baac59.js} +2 -1
- package/loaders/{post-icon2.js → p-f7177e26.js} +85 -28
- package/loaders/p-f7b9f90a.js +135 -0
- package/loaders/post-accordion-item.js +1 -1
- package/loaders/post-accordion.js +17 -10
- package/loaders/post-avatar.js +31 -23
- package/loaders/post-back-to-top.js +20 -15
- package/loaders/post-banner.js +42 -23
- package/loaders/post-breadcrumb-item.js +1 -1
- package/loaders/post-breadcrumb.js +50 -43
- package/loaders/post-card-control.js +93 -51
- package/loaders/post-closebutton.js +6 -6
- package/loaders/post-collapsible-trigger.js +1 -1
- package/loaders/post-collapsible.js +1 -1
- package/loaders/post-footer.js +23 -17
- package/loaders/post-header.js +74 -154
- package/loaders/post-icon.js +1 -1
- package/loaders/post-language-option.js +32 -12
- package/loaders/post-language-switch.js +29 -17
- package/loaders/post-linkarea.d.ts +11 -0
- package/loaders/post-linkarea.js +47 -0
- package/loaders/post-list-item.js +4 -4
- package/loaders/post-list.js +19 -9
- package/loaders/post-logo.js +10 -7
- package/loaders/post-mainnavigation.js +197 -8
- package/loaders/post-megadropdown-trigger.js +21 -15
- package/loaders/post-megadropdown.js +119 -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 +26 -12
- package/loaders/post-popovercontainer.js +1 -1
- package/loaders/post-rating.js +35 -12
- package/loaders/post-tab-header.js +13 -10
- package/loaders/post-tab-panel.js +11 -8
- package/loaders/post-tabs.js +30 -19
- package/loaders/post-tag.js +22 -11
- package/loaders/post-togglebutton.js +20 -17
- package/loaders/post-tooltip.js +26 -14
- package/package.json +19 -16
- package/dist/cjs/fade-35a3633a.js +0 -10
- package/dist/cjs/post-back-to-top-71bc912c.js +0 -75
- package/dist/cjs/post-banner-d4e0c73c.js +0 -91
- package/dist/cjs/post-card-control-332f6f1f.js +0 -272
- package/dist/cjs/post-tab-header-1f057694.js +0 -33
- package/dist/components/fade.js +0 -7
- package/dist/components/package.js +0 -3
- package/dist/components/post-banner2.js +0 -126
- package/dist/components/post-card-control2.js +0 -303
- package/dist/components/post-header2.js +0 -279
- package/dist/components/post-mainnavigation2.js +0 -48
- package/dist/components/post-megadropdown2.js +0 -100
- package/dist/components/post-tab-header2.js +0 -51
- package/dist/esm/fade-7fd71785.js +0 -7
- package/dist/esm/package-f8f7bb40.js +0 -3
- package/dist/esm/post-back-to-top-77471a90.js +0 -73
- package/dist/esm/post-banner-b0af5bd3.js +0 -89
- package/dist/esm/post-card-control-3225eb57.js +0 -270
- package/dist/esm/post-tab-header-6a9b0153.js +0 -31
- package/dist/post-components/p-025688e5.js +0 -1
- package/dist/post-components/p-08b51b35.entry.js +0 -1
- package/dist/post-components/p-0e216cc4.js +0 -2
- package/dist/post-components/p-24c92608.js +0 -1
- package/dist/post-components/p-25a57971.js +0 -1
- package/dist/post-components/p-2737eaf5.js +0 -1
- package/dist/post-components/p-2cb4a8f1.js +0 -1
- package/dist/post-components/p-33b64e0c.js +0 -1
- package/dist/post-components/p-34d70cd5.js +0 -1
- package/dist/post-components/p-350f3900.entry.js +0 -1
- package/dist/post-components/p-35bc4554.js +0 -1
- package/dist/post-components/p-38b259a4.entry.js +0 -1
- package/dist/post-components/p-3c6cef1e.entry.js +0 -1
- package/dist/post-components/p-4a713cf8.js +0 -1
- package/dist/post-components/p-4b5e2b24.js +0 -1
- package/dist/post-components/p-515e0f96.js +0 -1
- package/dist/post-components/p-5467b223.js +0 -1
- package/dist/post-components/p-54e58fc2.entry.js +0 -1
- package/dist/post-components/p-637759d6.js +0 -1
- package/dist/post-components/p-6adeaa6c.js +0 -1
- package/dist/post-components/p-7589a19f.js +0 -1
- package/dist/post-components/p-7cce7342.entry.js +0 -1
- package/dist/post-components/p-819e19de.js +0 -1
- package/dist/post-components/p-82d48128.js +0 -1
- package/dist/post-components/p-85171893.entry.js +0 -1
- package/dist/post-components/p-882fdd0c.entry.js +0 -1
- package/dist/post-components/p-94399c69.js +0 -1
- package/dist/post-components/p-9a02b162.entry.js +0 -1
- package/dist/post-components/p-b1f5bc26.js +0 -1
- package/dist/post-components/p-b2f239a1.entry.js +0 -1
- package/dist/post-components/p-b571e5c8.js +0 -1
- package/dist/post-components/p-ba530822.js +0 -1
- package/dist/post-components/p-bae1c85f.entry.js +0 -1
- package/dist/post-components/p-bdabdec5.js +0 -1
- package/dist/post-components/p-c1225174.entry.js +0 -1
- package/dist/post-components/p-c372a141.entry.js +0 -1
- package/dist/post-components/p-c87c5d59.entry.js +0 -1
- package/dist/post-components/p-d04c1b7f.entry.js +0 -1
- package/dist/post-components/p-da300843.entry.js +0 -1
- package/dist/post-components/p-fec04a15.entry.js +0 -1
- package/loaders/fade.js +0 -7
- 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/{index.browser.js → p-5959f2bd.js} +0 -0
- /package/dist/components/{get-root.js → p-fc91cbc2.js} +0 -0
- /package/dist/post-components/{p-4a3f67ab.js → p-8562c7dc.js} +0 -0
- /package/dist/post-components/{p-611b3c41.js → p-bacd3e2c.js} +0 -0
- /package/dist/post-components/{p-b22656b1.js → p-cb9ab938.js} +0 -0
- /package/dist/post-components/{p-d4f93f2b.js → p-e1baac59.js} +0 -0
- /package/loaders/{heading-levels.js → p-247a1668.js} +0 -0
- /package/loaders/{constants.js → p-440193f4.js} +0 -0
- /package/loaders/{index.browser.js → p-5959f2bd.js} +0 -0
- /package/loaders/{get-root.js → p-fc91cbc2.js} +0 -0
|
@@ -9,6 +9,83 @@ let cardControlIds = 0;
|
|
|
9
9
|
* @slot icon - To insert a custom icon into the named `icon` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.<p className="banner banner-sm banner-info">It is only meant for <code>img</code> or <code>svg</code> elements and overrides the `icon` property.</p>
|
|
10
10
|
*/
|
|
11
11
|
export class PostCardControl {
|
|
12
|
+
EVENT_MAP = {
|
|
13
|
+
input: 'postInput',
|
|
14
|
+
change: 'postChange',
|
|
15
|
+
};
|
|
16
|
+
KEYCODES = {
|
|
17
|
+
SPACE: 'Space',
|
|
18
|
+
LEFT: 'ArrowLeft',
|
|
19
|
+
UP: 'ArrowUp',
|
|
20
|
+
RIGHT: 'ArrowRight',
|
|
21
|
+
DOWN: 'ArrowDown',
|
|
22
|
+
};
|
|
23
|
+
group = {
|
|
24
|
+
hosts: [],
|
|
25
|
+
members: [],
|
|
26
|
+
first: null,
|
|
27
|
+
last: null,
|
|
28
|
+
checked: null,
|
|
29
|
+
focused: null,
|
|
30
|
+
};
|
|
31
|
+
control;
|
|
32
|
+
controlId = `PostCardControl_${cardControlIds++}`;
|
|
33
|
+
initialChecked;
|
|
34
|
+
hasIcon;
|
|
35
|
+
host;
|
|
36
|
+
focused = false;
|
|
37
|
+
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
|
+
/**
|
|
79
|
+
* An event emitted whenever the components checked state is toggled.
|
|
80
|
+
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
81
|
+
*/
|
|
82
|
+
postInput;
|
|
83
|
+
/**
|
|
84
|
+
* An event emitted whenever the components checked state is toggled.
|
|
85
|
+
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
86
|
+
* <span className="banner banner-sm banner-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
|
|
87
|
+
*/
|
|
88
|
+
postChange;
|
|
12
89
|
/**
|
|
13
90
|
* A public method to reset the controls `checked` and `validity` state.
|
|
14
91
|
* The validity state is set to `null`, so it's neither valid nor invalid.
|
|
@@ -38,36 +115,6 @@ export class PostCardControl {
|
|
|
38
115
|
this.controlSetChecked(this.checked);
|
|
39
116
|
}
|
|
40
117
|
constructor() {
|
|
41
|
-
this.EVENT_MAP = {
|
|
42
|
-
input: 'postInput',
|
|
43
|
-
change: 'postChange',
|
|
44
|
-
};
|
|
45
|
-
this.KEYCODES = {
|
|
46
|
-
SPACE: 'Space',
|
|
47
|
-
LEFT: 'ArrowLeft',
|
|
48
|
-
UP: 'ArrowUp',
|
|
49
|
-
RIGHT: 'ArrowRight',
|
|
50
|
-
DOWN: 'ArrowDown',
|
|
51
|
-
};
|
|
52
|
-
this.group = {
|
|
53
|
-
hosts: [],
|
|
54
|
-
members: [],
|
|
55
|
-
first: null,
|
|
56
|
-
last: null,
|
|
57
|
-
checked: null,
|
|
58
|
-
focused: null,
|
|
59
|
-
};
|
|
60
|
-
this.controlId = `PostCardControl_${cardControlIds++}`;
|
|
61
|
-
this.focused = false;
|
|
62
|
-
this.label = undefined;
|
|
63
|
-
this.description = null;
|
|
64
|
-
this.type = undefined;
|
|
65
|
-
this.name = null;
|
|
66
|
-
this.value = null;
|
|
67
|
-
this.checked = false;
|
|
68
|
-
this.disabled = false;
|
|
69
|
-
this.validity = null;
|
|
70
|
-
this.icon = null;
|
|
71
118
|
this.cardClickHandler = this.cardClickHandler.bind(this);
|
|
72
119
|
this.controlClickHandler = this.controlClickHandler.bind(this);
|
|
73
120
|
this.controlChangeHandler = this.controlChangeHandler.bind(this);
|
|
@@ -141,7 +188,6 @@ export class PostCardControl {
|
|
|
141
188
|
}
|
|
142
189
|
}
|
|
143
190
|
groupCollectMembers() {
|
|
144
|
-
var _a, _b;
|
|
145
191
|
if (this.type === 'radio' && this.name) {
|
|
146
192
|
this.group.hosts = Array.from(document.querySelectorAll(`post-card-control[type="radio"][name="${this.name}"]`));
|
|
147
193
|
this.group.members = this.group.hosts
|
|
@@ -150,9 +196,10 @@ export class PostCardControl {
|
|
|
150
196
|
if (this.group.members.length > 1) {
|
|
151
197
|
this.group.first = this.group.members[0];
|
|
152
198
|
this.group.last = this.group.members[this.group.members.length - 1];
|
|
153
|
-
this.group.checked =
|
|
199
|
+
this.group.checked = this.group.members.find(m => m.checked) ?? null;
|
|
154
200
|
this.group.focused =
|
|
155
|
-
|
|
201
|
+
this.group.members.find(m => m.getRootNode().host === document.activeElement) ??
|
|
202
|
+
this.group.first;
|
|
156
203
|
const focusableMember = this.group.checked || this.group.focused || this.group.first;
|
|
157
204
|
this.group.members.forEach(m => {
|
|
158
205
|
m.tabIndex = m === focusableMember ? 0 : -1;
|
|
@@ -161,14 +208,12 @@ export class PostCardControl {
|
|
|
161
208
|
}
|
|
162
209
|
}
|
|
163
210
|
groupGetPrev() {
|
|
164
|
-
var _a;
|
|
165
211
|
const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
|
|
166
|
-
return
|
|
212
|
+
return this.group.members.find((_m, i) => i === focusedIndex - 1) ?? this.group.last;
|
|
167
213
|
}
|
|
168
214
|
groupGetNext() {
|
|
169
|
-
var _a;
|
|
170
215
|
const focusedIndex = this.group.members.findIndex(m => m.id === this.group.focused.id);
|
|
171
|
-
return
|
|
216
|
+
return this.group.members.find((_m, i) => i === focusedIndex + 1) ?? this.group.first;
|
|
172
217
|
}
|
|
173
218
|
groupSetChecked(newChecked, e) {
|
|
174
219
|
if (this.group.members.length > 1) {
|
|
@@ -204,8 +249,8 @@ export class PostCardControl {
|
|
|
204
249
|
const possibleFromContexts = ['fieldset'];
|
|
205
250
|
let element = this.host;
|
|
206
251
|
while (element && (!bgContext || !formContext)) {
|
|
207
|
-
bgContext = bgContext
|
|
208
|
-
formContext = formContext
|
|
252
|
+
bgContext = bgContext ?? possibleBgContexts.find(selector => element.matches(selector));
|
|
253
|
+
formContext = formContext ?? possibleFromContexts.find(selector => element.matches(selector));
|
|
209
254
|
element = element.parentElement;
|
|
210
255
|
}
|
|
211
256
|
const hostContext = [bgContext, formContext].filter(context => !!context).join(' ');
|
|
@@ -218,14 +263,14 @@ export class PostCardControl {
|
|
|
218
263
|
this.hasIcon = Boolean(this.host.querySelector('[slot="icon"]') || this.icon);
|
|
219
264
|
}
|
|
220
265
|
render() {
|
|
221
|
-
return (h(Host, { key: '
|
|
266
|
+
return (h(Host, { key: 'a62b814d2579038654a8fef11c6d136e03381320', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: '34e5f1092cd886bd5dc69542728a3c406e11cd51', class: {
|
|
222
267
|
'card-control': true,
|
|
223
268
|
'is-checked': this.checked,
|
|
224
269
|
'is-disabled': this.disabled,
|
|
225
270
|
'is-focused': this.focused,
|
|
226
271
|
'is-valid': this.validity !== null && this.validity !== 'false',
|
|
227
272
|
'is-invalid': this.validity === 'false',
|
|
228
|
-
} }, h("input", { key: '
|
|
273
|
+
} }, h("input", { key: 'ca21d9eba6b998b26615ae7d92f105b6fe0c2f9f', ref: el => (this.control = el), id: this.controlId, class: "card-control--input", type: this.type, name: this.name, value: this.value, checked: this.checked, "aria-describedby": `${this.controlId}_content`, "aria-disabled": this.disabled, "aria-invalid": this.validity === 'false', onClick: this.controlClickHandler, onInput: this.controlChangeHandler, onChange: this.controlChangeHandler, onFocus: this.controlFocusHandler, onBlur: this.controlFocusHandler, onKeyDown: this.controlKeyDownHandler }), h("label", { key: 'f9b336f63f5f83143bdf2b3b8b2d85a57723b036', id: `${this.controlId}_label`, htmlFor: this.controlId, class: "card-control--label" }, this.label, this.description ? (h("div", { class: "card-control--description" }, this.description)) : null), this.hasIcon ? (h("div", { class: "card-control--icon" }, h("slot", { name: "icon" }, this.icon ? h("post-icon", { name: this.icon }) : null))) : null, h("div", { key: '813f81b01385aa7721d35c7edbd1494fc178dc4d', id: `${this.controlId}_content`, class: "card-control--content" }, h("slot", { key: '95658d0b41b293a8fafbef79b3f2c6fa50c95534' })))));
|
|
229
274
|
}
|
|
230
275
|
componentDidRender() {
|
|
231
276
|
this.setHostContext();
|
|
@@ -235,8 +280,6 @@ export class PostCardControl {
|
|
|
235
280
|
this.validateControlLabel();
|
|
236
281
|
this.validateControlType();
|
|
237
282
|
}
|
|
238
|
-
// https://stenciljs.com/docs/form-associated
|
|
239
|
-
/* eslint-disable @stencil-community/own-methods-must-be-private */
|
|
240
283
|
formAssociatedCallback() {
|
|
241
284
|
this.controlSetChecked(this.checked);
|
|
242
285
|
}
|
|
@@ -278,6 +321,8 @@ export class PostCardControl {
|
|
|
278
321
|
"tags": [],
|
|
279
322
|
"text": "Defines the text in the control-label."
|
|
280
323
|
},
|
|
324
|
+
"getter": false,
|
|
325
|
+
"setter": false,
|
|
281
326
|
"attribute": "label",
|
|
282
327
|
"reflect": false
|
|
283
328
|
},
|
|
@@ -295,6 +340,8 @@ export class PostCardControl {
|
|
|
295
340
|
"tags": [],
|
|
296
341
|
"text": "Defines the description in the control-label."
|
|
297
342
|
},
|
|
343
|
+
"getter": false,
|
|
344
|
+
"setter": false,
|
|
298
345
|
"attribute": "description",
|
|
299
346
|
"reflect": false,
|
|
300
347
|
"defaultValue": "null"
|
|
@@ -313,6 +360,8 @@ export class PostCardControl {
|
|
|
313
360
|
"tags": [],
|
|
314
361
|
"text": "Defines the `type` attribute of the control."
|
|
315
362
|
},
|
|
363
|
+
"getter": false,
|
|
364
|
+
"setter": false,
|
|
316
365
|
"attribute": "type",
|
|
317
366
|
"reflect": false
|
|
318
367
|
},
|
|
@@ -330,6 +379,8 @@ export class PostCardControl {
|
|
|
330
379
|
"tags": [],
|
|
331
380
|
"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>"
|
|
332
381
|
},
|
|
382
|
+
"getter": false,
|
|
383
|
+
"setter": false,
|
|
333
384
|
"attribute": "name",
|
|
334
385
|
"reflect": false,
|
|
335
386
|
"defaultValue": "null"
|
|
@@ -348,6 +399,8 @@ export class PostCardControl {
|
|
|
348
399
|
"tags": [],
|
|
349
400
|
"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>"
|
|
350
401
|
},
|
|
402
|
+
"getter": false,
|
|
403
|
+
"setter": false,
|
|
351
404
|
"attribute": "value",
|
|
352
405
|
"reflect": false,
|
|
353
406
|
"defaultValue": "null"
|
|
@@ -366,6 +419,8 @@ export class PostCardControl {
|
|
|
366
419
|
"tags": [],
|
|
367
420
|
"text": "Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms' data."
|
|
368
421
|
},
|
|
422
|
+
"getter": false,
|
|
423
|
+
"setter": false,
|
|
369
424
|
"attribute": "checked",
|
|
370
425
|
"reflect": false,
|
|
371
426
|
"defaultValue": "false"
|
|
@@ -384,6 +439,8 @@ export class PostCardControl {
|
|
|
384
439
|
"tags": [],
|
|
385
440
|
"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."
|
|
386
441
|
},
|
|
442
|
+
"getter": false,
|
|
443
|
+
"setter": false,
|
|
387
444
|
"attribute": "disabled",
|
|
388
445
|
"reflect": false,
|
|
389
446
|
"defaultValue": "false"
|
|
@@ -402,6 +459,8 @@ export class PostCardControl {
|
|
|
402
459
|
"tags": [],
|
|
403
460
|
"text": "Defines the validation `validity` of the control.\nTo reset validity to an undefined state, simply remove the attribute from the control."
|
|
404
461
|
},
|
|
462
|
+
"getter": false,
|
|
463
|
+
"setter": false,
|
|
405
464
|
"attribute": "validity",
|
|
406
465
|
"reflect": false,
|
|
407
466
|
"defaultValue": "null"
|
|
@@ -420,6 +479,8 @@ export class PostCardControl {
|
|
|
420
479
|
"tags": [],
|
|
421
480
|
"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>"
|
|
422
481
|
},
|
|
482
|
+
"getter": false,
|
|
483
|
+
"setter": false,
|
|
423
484
|
"attribute": "icon",
|
|
424
485
|
"reflect": false,
|
|
425
486
|
"defaultValue": "null"
|
|
@@ -4,8 +4,9 @@ import { version } from "../../../../package";
|
|
|
4
4
|
* @slot default - Slot for placing visually hidden label in the close button.
|
|
5
5
|
*/
|
|
6
6
|
export class PostClosebutton {
|
|
7
|
+
host;
|
|
7
8
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'c03f50379252ba13992bc3d021989ac07dba9f79', "data-version": version }, h("button", { key: 'e97a86bb6e1eace89a1a3a78fb231047f065dd5e', class: "btn btn-icon-close", type: "button" }, h("post-icon", { key: 'aca522d4c251a8183c91c2bd4d810d0716a2fe13', "aria-hidden": "true", name: "closex" }), h("span", { key: '6873522961b1683d1261163b07ee022f93eed836', class: "visually-hidden" }, h("slot", { key: 'bf4b13356c9a0164f1481d1fedc3a78a53e5f8e0' })))));
|
|
9
10
|
}
|
|
10
11
|
static get is() { return "post-closebutton"; }
|
|
11
12
|
static get elementRef() { return "host"; }
|
|
@@ -6,15 +6,23 @@ 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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
isLoaded = false;
|
|
10
|
+
isOpen = true;
|
|
11
|
+
host;
|
|
12
|
+
/**
|
|
13
|
+
* If `true`, the element is collapsed otherwise it is displayed.
|
|
14
|
+
*/
|
|
15
|
+
collapsed = false;
|
|
14
16
|
collapsedChange() {
|
|
15
17
|
checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
|
|
16
18
|
void this.toggle(!this.collapsed);
|
|
17
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* An event emitted when the collapse element is shown or hidden, before the transition.
|
|
22
|
+
*
|
|
23
|
+
* The event payload is a boolean: `true` if the collapsible was opened, `false` if it was closed.
|
|
24
|
+
*/
|
|
25
|
+
postToggle;
|
|
18
26
|
componentDidLoad() {
|
|
19
27
|
this.collapsedChange();
|
|
20
28
|
this.isLoaded = true;
|
|
@@ -49,7 +57,7 @@ export class PostCollapsible {
|
|
|
49
57
|
triggers.forEach(trigger => trigger.update());
|
|
50
58
|
}
|
|
51
59
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '3ba9983562f5fabec602f23d8698bacb3ff0dbdc', "data-version": version, tabindex: this.collapsed ? -1 : undefined }, h("slot", { key: '010369b851198dab8eed76a2ab26627d480c97d4' })));
|
|
53
61
|
}
|
|
54
62
|
static get is() { return "post-collapsible"; }
|
|
55
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,6 +87,8 @@ export class PostCollapsible {
|
|
|
79
87
|
"tags": [],
|
|
80
88
|
"text": "If `true`, the element is collapsed otherwise it is displayed."
|
|
81
89
|
},
|
|
90
|
+
"getter": false,
|
|
91
|
+
"setter": false,
|
|
82
92
|
"attribute": "collapsed",
|
|
83
93
|
"reflect": false,
|
|
84
94
|
"defaultValue": "false"
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import { version } from "../../../../package";
|
|
2
2
|
import { checkNonEmpty, checkType, debounce, getRoot } from "../../utils/index";
|
|
3
3
|
export class PostCollapsibleTrigger {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (!(ariaControls === null || ariaControls === void 0 ? void 0 : ariaControls.includes(this.for))) {
|
|
13
|
-
const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
|
|
14
|
-
this.trigger.setAttribute('aria-controls', newAriaControls);
|
|
15
|
-
}
|
|
16
|
-
// set the aria-expanded to `false` if the controlled collapsible is collapsed or undefined, set it to `true` otherwise
|
|
17
|
-
const isCollapsed = (_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.collapsed;
|
|
18
|
-
const newAriaExpanded = isCollapsed !== undefined ? !isCollapsed : undefined;
|
|
19
|
-
this.trigger.setAttribute('aria-expanded', `${newAriaExpanded}`);
|
|
20
|
-
});
|
|
21
|
-
this.for = undefined;
|
|
22
|
-
}
|
|
4
|
+
trigger;
|
|
5
|
+
observer = new MutationObserver(() => this.setTrigger());
|
|
6
|
+
root;
|
|
7
|
+
host;
|
|
8
|
+
/**
|
|
9
|
+
* Link the trigger to a post-collapsible with this id
|
|
10
|
+
*/
|
|
11
|
+
for;
|
|
23
12
|
/**
|
|
24
13
|
* Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
|
|
25
14
|
*/
|
|
@@ -67,12 +56,25 @@ export class PostCollapsibleTrigger {
|
|
|
67
56
|
async update() {
|
|
68
57
|
this.debouncedUpdate();
|
|
69
58
|
}
|
|
59
|
+
debouncedUpdate = debounce(() => {
|
|
60
|
+
if (!this.trigger)
|
|
61
|
+
return;
|
|
62
|
+
// add the provided id to the aria-controls list
|
|
63
|
+
const ariaControls = this.trigger.getAttribute('aria-controls');
|
|
64
|
+
if (!ariaControls?.includes(this.for)) {
|
|
65
|
+
const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
|
|
66
|
+
this.trigger.setAttribute('aria-controls', newAriaControls);
|
|
67
|
+
}
|
|
68
|
+
// set the aria-expanded to `false` if the controlled collapsible is collapsed or undefined, set it to `true` otherwise
|
|
69
|
+
const isCollapsed = this.collapsible?.collapsed;
|
|
70
|
+
const newAriaExpanded = isCollapsed !== undefined ? !isCollapsed : undefined;
|
|
71
|
+
this.trigger.setAttribute('aria-expanded', `${newAriaExpanded}`);
|
|
72
|
+
});
|
|
70
73
|
/**
|
|
71
74
|
* Toggle the post-collapsible controlled by the trigger
|
|
72
75
|
*/
|
|
73
76
|
async toggleCollapsible() {
|
|
74
|
-
|
|
75
|
-
await ((_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.toggle());
|
|
77
|
+
await this.collapsible?.toggle();
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Retrieve the post-collapsible controlled by the trigger
|
|
@@ -112,6 +114,8 @@ export class PostCollapsibleTrigger {
|
|
|
112
114
|
"tags": [],
|
|
113
115
|
"text": "Link the trigger to a post-collapsible with this id"
|
|
114
116
|
},
|
|
117
|
+
"getter": false,
|
|
118
|
+
"setter": false,
|
|
115
119
|
"attribute": "for",
|
|
116
120
|
"reflect": false
|
|
117
121
|
}
|
|
@@ -11,10 +11,12 @@ import { breakpoint } from "../../utils/breakpoints";
|
|
|
11
11
|
* @slot copyright - Slot for the copyright text.
|
|
12
12
|
*/
|
|
13
13
|
export class PostFooter {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
host;
|
|
15
|
+
/**
|
|
16
|
+
* The label to add to the footer (visually hidden).
|
|
17
|
+
*/
|
|
18
|
+
label;
|
|
19
|
+
isMobile = breakpoint.get('name') === 'mobile';
|
|
18
20
|
connectedCallback() {
|
|
19
21
|
window.addEventListener('postBreakpoint:name', this.breakpointChange.bind(this));
|
|
20
22
|
}
|
|
@@ -28,7 +30,7 @@ export class PostFooter {
|
|
|
28
30
|
return (h("div", { class: "footer-grid" }, h("div", null, h("slot", { name: "grid-1" })), h("div", null, h("slot", { name: "grid-2" })), h("div", null, h("slot", { name: "grid-3" })), h("div", null, h("slot", { name: "grid-4" }))));
|
|
29
31
|
}
|
|
30
32
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '14370a1cfd730a0b0353c88c95f265aefb57c480', "data-version": version }, h("footer", { key: '7208e9d465eb0b469887e7cfae66674db2092dbd' }, h("h2", { key: 'b392c866326374ae27704baaba0dd28c3001ee62', class: "visually-hidden" }, this.label), h("div", { key: '13411ad6e0b55ee17cf9bf77b155aa1c2810f057', class: "footer-container" }, this.isMobile ? this.renderAccordion() : this.renderGrid(), h("div", { key: '4815ae94cd43eca92482ad3c93f107243b26890e', class: "footer-column" }, h("div", { key: 'edc787dc5fc96169c323f15254b6088024a6f19d', class: "footer-socialmedia" }, h("slot", { key: '0971e342ac6f3913c408a535ce0746080e3f57af', name: "socialmedia" })), h("div", { key: 'da583c9ed819181bf2732277f4e6ee22df2e3022', class: "footer-app" }, h("slot", { key: 'b6dab5cfa1f4dc9c049f24d3e08416ef5a27e0aa', name: "app" }))), h("div", { key: '53a5c04129d24dfb64eedd46e95b5c78142a3fd7', class: "footer-businesssectors" }, h("slot", { key: '470f4294778b8978bf6eb168e2b47ff29ef43d07', name: "businesssectors" })), h("div", { key: '45d734ded794352b951f2891bbdba081e05a99d5', class: "footer-meta" }, h("slot", { key: '4d0da53c2eb79e111f0f05278a0972f046eebfa9', name: "meta" })), h("div", { key: 'f95fb7ed3cc09218a3d4a554c619b6f379d5135d', class: "footer-copyright" }, h("slot", { key: '9cdcec805152413693dced0f0d55ac1b1121c70e', name: "copyright" }))))));
|
|
32
34
|
}
|
|
33
35
|
disconnectedCallback() {
|
|
34
36
|
window.removeEventListener('postBreakpoint:name', this.breakpointChange.bind(this));
|
|
@@ -61,6 +63,8 @@ export class PostFooter {
|
|
|
61
63
|
"tags": [],
|
|
62
64
|
"text": "The label to add to the footer (visually hidden)."
|
|
63
65
|
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
64
68
|
"attribute": "label",
|
|
65
69
|
"reflect": false
|
|
66
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,::before,::after{box-sizing:border-box}:host{
|
|
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;align-items:center;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)}}slot[name=post-logo]{align-self:flex-end}.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)}}
|