@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
|
@@ -13,13 +13,34 @@ const SIDE_MAP = {
|
|
|
13
13
|
* @slot - Default slot for placing content inside the popovercontainer.
|
|
14
14
|
*/
|
|
15
15
|
export class PostPopovercontainer {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
host;
|
|
17
|
+
arrowRef;
|
|
18
|
+
eventTarget;
|
|
19
|
+
clearAutoUpdate;
|
|
20
|
+
toggleTimeoutId;
|
|
21
|
+
/**
|
|
22
|
+
* Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
|
|
23
|
+
*/
|
|
24
|
+
postToggle;
|
|
25
|
+
/**
|
|
26
|
+
* Whether or not the popover should close when user clicks outside of it
|
|
27
|
+
*/
|
|
28
|
+
manualClose = false;
|
|
29
|
+
/**
|
|
30
|
+
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
31
|
+
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
32
|
+
* towards the viewport if they would overlap edge boundaries.
|
|
33
|
+
*/
|
|
34
|
+
placement = 'top';
|
|
35
|
+
/**
|
|
36
|
+
* Gap between the edge of the page and the popover
|
|
37
|
+
*/
|
|
38
|
+
edgeGap = 8;
|
|
39
|
+
/**
|
|
40
|
+
* Wheter or not to display a little pointer arrow
|
|
41
|
+
*/
|
|
42
|
+
arrow = false;
|
|
21
43
|
componentDidLoad() {
|
|
22
|
-
this.host.setAttribute('popover', '');
|
|
23
44
|
this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
|
|
24
45
|
}
|
|
25
46
|
disconnectedCallback() {
|
|
@@ -137,9 +158,9 @@ export class PostPopovercontainer {
|
|
|
137
158
|
}
|
|
138
159
|
}
|
|
139
160
|
render() {
|
|
140
|
-
return (h(Host, { key: '
|
|
161
|
+
return (h(Host, { key: '6bebf9ab3013796d0eebb3d543411a0e80d2e913', "data-version": version, popover: this.manualClose ? 'manual' : 'auto' }, this.arrow && (h("span", { key: 'd6eca10452a54073a293128e8faf76e45e35c4c5', class: "arrow", ref: el => {
|
|
141
162
|
this.arrowRef = el;
|
|
142
|
-
} })), h("slot", { key: '
|
|
163
|
+
} })), h("slot", { key: '3b6674dfa1b3ffac10c6640717c7ae713577c965' })));
|
|
143
164
|
}
|
|
144
165
|
static get is() { return "post-popovercontainer"; }
|
|
145
166
|
static get originalStyleUrls() {
|
|
@@ -154,6 +175,26 @@ export class PostPopovercontainer {
|
|
|
154
175
|
}
|
|
155
176
|
static get properties() {
|
|
156
177
|
return {
|
|
178
|
+
"manualClose": {
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "boolean",
|
|
183
|
+
"resolved": "boolean",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Whether or not the popover should close when user clicks outside of it"
|
|
191
|
+
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
194
|
+
"attribute": "manual-close",
|
|
195
|
+
"reflect": false,
|
|
196
|
+
"defaultValue": "false"
|
|
197
|
+
},
|
|
157
198
|
"placement": {
|
|
158
199
|
"type": "string",
|
|
159
200
|
"mutable": false,
|
|
@@ -174,6 +215,8 @@ export class PostPopovercontainer {
|
|
|
174
215
|
"tags": [],
|
|
175
216
|
"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."
|
|
176
217
|
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
177
220
|
"attribute": "placement",
|
|
178
221
|
"reflect": false,
|
|
179
222
|
"defaultValue": "'top'"
|
|
@@ -192,6 +235,8 @@ export class PostPopovercontainer {
|
|
|
192
235
|
"tags": [],
|
|
193
236
|
"text": "Gap between the edge of the page and the popover"
|
|
194
237
|
},
|
|
238
|
+
"getter": false,
|
|
239
|
+
"setter": false,
|
|
195
240
|
"attribute": "edge-gap",
|
|
196
241
|
"reflect": false,
|
|
197
242
|
"defaultValue": "8"
|
|
@@ -210,6 +255,8 @@ export class PostPopovercontainer {
|
|
|
210
255
|
"tags": [],
|
|
211
256
|
"text": "Wheter or not to display a little pointer arrow"
|
|
212
257
|
},
|
|
258
|
+
"getter": false,
|
|
259
|
+
"setter": false,
|
|
213
260
|
"attribute": "arrow",
|
|
214
261
|
"reflect": false,
|
|
215
262
|
"defaultValue": "false"
|
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { version } from "../../../../package";
|
|
3
3
|
export class PostRating {
|
|
4
|
+
hasChanged = false;
|
|
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;
|
|
24
|
+
/**
|
|
25
|
+
* An event emitted whenever the component's value has changed (on input).
|
|
26
|
+
* The event payload can be used like so: `event.detail.value`.
|
|
27
|
+
*/
|
|
28
|
+
postInput;
|
|
29
|
+
/**
|
|
30
|
+
* An event emitted whenever the component's value has changed (on blur).
|
|
31
|
+
* The event payload can be used like so: `event.detail.value`.
|
|
32
|
+
*/
|
|
33
|
+
postChange;
|
|
4
34
|
constructor() {
|
|
5
|
-
this.hasChanged = false;
|
|
6
|
-
this.hoveredIndex = undefined;
|
|
7
|
-
this.label = 'Rating';
|
|
8
|
-
this.stars = 5;
|
|
9
|
-
this.currentRating = 0;
|
|
10
|
-
this.readonly = false;
|
|
11
35
|
this.keydownHandler = this.keydownHandler.bind(this);
|
|
12
36
|
this.blurHandler = this.blurHandler.bind(this);
|
|
13
37
|
this.hoverHandler = this.hoverHandler.bind(this);
|
|
@@ -64,7 +88,7 @@ export class PostRating {
|
|
|
64
88
|
}
|
|
65
89
|
}
|
|
66
90
|
render() {
|
|
67
|
-
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: {
|
|
68
92
|
'star': true,
|
|
69
93
|
'before-hover': i < this.hoveredIndex,
|
|
70
94
|
'active': i < Math.round(this.currentRating),
|
|
@@ -100,6 +124,8 @@ export class PostRating {
|
|
|
100
124
|
"tags": [],
|
|
101
125
|
"text": "Defines a hidden label for the component."
|
|
102
126
|
},
|
|
127
|
+
"getter": false,
|
|
128
|
+
"setter": false,
|
|
103
129
|
"attribute": "label",
|
|
104
130
|
"reflect": false,
|
|
105
131
|
"defaultValue": "'Rating'"
|
|
@@ -118,6 +144,8 @@ export class PostRating {
|
|
|
118
144
|
"tags": [],
|
|
119
145
|
"text": "Defines the total amount of stars rendered in the component."
|
|
120
146
|
},
|
|
147
|
+
"getter": false,
|
|
148
|
+
"setter": false,
|
|
121
149
|
"attribute": "stars",
|
|
122
150
|
"reflect": false,
|
|
123
151
|
"defaultValue": "5"
|
|
@@ -136,6 +164,8 @@ export class PostRating {
|
|
|
136
164
|
"tags": [],
|
|
137
165
|
"text": "Defines the rating that the component should show."
|
|
138
166
|
},
|
|
167
|
+
"getter": false,
|
|
168
|
+
"setter": false,
|
|
139
169
|
"attribute": "current-rating",
|
|
140
170
|
"reflect": false,
|
|
141
171
|
"defaultValue": "0"
|
|
@@ -154,6 +184,8 @@ export class PostRating {
|
|
|
154
184
|
"tags": [],
|
|
155
185
|
"text": "Defines if the component is readonly or not.\nThis usually should be used together with the `currentRating` property."
|
|
156
186
|
},
|
|
187
|
+
"getter": false,
|
|
188
|
+
"setter": false,
|
|
157
189
|
"attribute": "readonly",
|
|
158
190
|
"reflect": false,
|
|
159
191
|
"defaultValue": "false"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color
|
|
1
|
+
.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:#000;text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:#000}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(0,0,0,.6);color:#fff}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(0,0,0,.6);color:#fff;box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:#000;font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:var(--post-core-dimension-4);background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:var(--post-core-dimension-2) solid Highlight;outline-offset:calc(var(--post-core-dimension-4)*-1)}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}/*!
|
|
2
2
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
3
|
*/:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}
|
|
@@ -6,10 +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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
host;
|
|
10
|
+
tabId;
|
|
11
|
+
/**
|
|
12
|
+
* The name of the panel controlled by the tab header.
|
|
13
|
+
*/
|
|
14
|
+
panel;
|
|
13
15
|
validateFor(newValue) {
|
|
14
16
|
checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
|
|
15
17
|
}
|
|
@@ -17,7 +19,7 @@ export class PostTabHeader {
|
|
|
17
19
|
this.tabId = `tab-${this.host.id || nanoid(6)}`;
|
|
18
20
|
}
|
|
19
21
|
render() {
|
|
20
|
-
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' })));
|
|
21
23
|
}
|
|
22
24
|
static get is() { return "post-tab-header"; }
|
|
23
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,6 +54,8 @@ export class PostTabHeader {
|
|
|
52
54
|
"tags": [],
|
|
53
55
|
"text": "The name of the panel controlled by the tab header."
|
|
54
56
|
},
|
|
57
|
+
"getter": false,
|
|
58
|
+
"setter": false,
|
|
55
59
|
"attribute": "panel",
|
|
56
60
|
"reflect": false
|
|
57
61
|
}
|
|
@@ -5,16 +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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
host;
|
|
9
|
+
panelId;
|
|
10
|
+
/**
|
|
11
|
+
* The name of the panel, used to associate it with a tab header.
|
|
12
|
+
*/
|
|
13
|
+
name;
|
|
12
14
|
componentWillLoad() {
|
|
13
15
|
// get the id set on the host element or use a random id by default
|
|
14
16
|
this.panelId = `panel-${this.host.id || nanoid(6)}`;
|
|
15
17
|
}
|
|
16
18
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '9d35c9ceec54f1c2983600342e5e63a49ca93aef', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '8db185ca7a2030343df512962126a91f64840a64' })));
|
|
18
20
|
}
|
|
19
21
|
static get is() { return "post-tab-panel"; }
|
|
20
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,6 +46,8 @@ export class PostTabPanel {
|
|
|
44
46
|
"tags": [],
|
|
45
47
|
"text": "The name of the panel, used to associate it with a tab header."
|
|
46
48
|
},
|
|
49
|
+
"getter": false,
|
|
50
|
+
"setter": false,
|
|
47
51
|
"attribute": "name",
|
|
48
52
|
"reflect": false
|
|
49
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(
|
|
1
|
+
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}
|
|
@@ -9,18 +9,30 @@ 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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
activeTab;
|
|
13
|
+
showing;
|
|
14
|
+
hiding;
|
|
15
|
+
isLoaded = false;
|
|
16
16
|
get tabs() {
|
|
17
17
|
return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
|
|
18
18
|
}
|
|
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;
|
|
27
|
+
/**
|
|
28
|
+
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
|
|
29
|
+
* The payload is the name of the newly shown panel.
|
|
30
|
+
*/
|
|
31
|
+
postChange;
|
|
19
32
|
componentDidLoad() {
|
|
20
|
-
var _a;
|
|
21
33
|
this.moveMisplacedTabs();
|
|
22
34
|
this.enableTabs();
|
|
23
|
-
const initiallyActivePanel = this.activePanel ||
|
|
35
|
+
const initiallyActivePanel = this.activePanel || this.tabs[0]?.panel;
|
|
24
36
|
void this.show(initiallyActivePanel);
|
|
25
37
|
this.isLoaded = true;
|
|
26
38
|
}
|
|
@@ -29,9 +41,8 @@ export class PostTabs {
|
|
|
29
41
|
* Any other panel that was previously shown becomes hidden and its associated tab is unselected.
|
|
30
42
|
*/
|
|
31
43
|
async show(panelName) {
|
|
32
|
-
var _a;
|
|
33
44
|
// do nothing if the tab is already active
|
|
34
|
-
if (panelName ===
|
|
45
|
+
if (panelName === this.activeTab?.panel) {
|
|
35
46
|
return;
|
|
36
47
|
}
|
|
37
48
|
const previousTab = this.activeTab;
|
|
@@ -65,7 +76,6 @@ export class PostTabs {
|
|
|
65
76
|
});
|
|
66
77
|
}
|
|
67
78
|
enableTabs() {
|
|
68
|
-
var _a;
|
|
69
79
|
if (!this.tabs)
|
|
70
80
|
return;
|
|
71
81
|
this.tabs.forEach(async (tab) => {
|
|
@@ -92,7 +102,7 @@ export class PostTabs {
|
|
|
92
102
|
});
|
|
93
103
|
// if the currently active tab was removed from the DOM then select the first one
|
|
94
104
|
if (this.activeTab && !this.activeTab.isConnected) {
|
|
95
|
-
void this.show(
|
|
105
|
+
void this.show(this.tabs[0]?.panel);
|
|
96
106
|
}
|
|
97
107
|
}
|
|
98
108
|
activateTab(tab) {
|
|
@@ -144,7 +154,7 @@ export class PostTabs {
|
|
|
144
154
|
nextTab.focus();
|
|
145
155
|
}
|
|
146
156
|
render() {
|
|
147
|
-
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() }))));
|
|
148
158
|
}
|
|
149
159
|
static get is() { return "post-tabs"; }
|
|
150
160
|
static get encapsulation() { return "shadow"; }
|
|
@@ -179,6 +189,8 @@ export class PostTabs {
|
|
|
179
189
|
"tags": [],
|
|
180
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.**"
|
|
181
191
|
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
182
194
|
"attribute": "active-panel",
|
|
183
195
|
"reflect": false
|
|
184
196
|
}
|
|
@@ -196,14 +208,9 @@ export class PostTabs {
|
|
|
196
208
|
"text": "An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.\nThe payload is the name of the newly shown panel."
|
|
197
209
|
},
|
|
198
210
|
"complexType": {
|
|
199
|
-
"original": "
|
|
211
|
+
"original": "string",
|
|
200
212
|
"resolved": "string",
|
|
201
|
-
"references": {
|
|
202
|
-
"HTMLPostTabPanelElement": {
|
|
203
|
-
"location": "global",
|
|
204
|
-
"id": "global::HTMLPostTabPanelElement"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
213
|
+
"references": {}
|
|
207
214
|
}
|
|
208
215
|
}];
|
|
209
216
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
|
-
*/.tag,.tag:where(:has(:not(pre))){--post-tag-bg: hsl(0, 0%, 90%);--post-tag-fg: #000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg: #fff;--post-tag-fg: #000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg: #fc0;--post-tag-fg: #000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg: #2c871d;--post-tag-fg: #fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg: #f49e00;--post-tag-fg: #000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg: #a51728;--post-tag-fg: #fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg: #cce4ee;--post-tag-fg: #000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color
|
|
3
|
+
*/.tag,.tag:where(:has(:not(pre))){--post-tag-bg: hsl(0, 0%, 90%);--post-tag-fg: #000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg: #fff;--post-tag-fg: #000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg: #fc0;--post-tag-fg: #000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg: #2c871d;--post-tag-fg: #fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg: #f49e00;--post-tag-fg: #000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg: #a51728;--post-tag-fg: #fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg: #cce4ee;--post-tag-fg: #000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:#000}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}
|
|
@@ -4,11 +4,23 @@ import { version } from "../../../../package";
|
|
|
4
4
|
* @slot default - Content to place in the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.</p>
|
|
5
5
|
*/
|
|
6
6
|
export class PostTag {
|
|
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;
|
|
7
23
|
constructor() {
|
|
8
|
-
this.classes = undefined;
|
|
9
|
-
this.variant = undefined;
|
|
10
|
-
this.size = null;
|
|
11
|
-
this.icon = null;
|
|
12
24
|
this.setClasses = this.setClasses.bind(this);
|
|
13
25
|
}
|
|
14
26
|
variantChanged() {
|
|
@@ -30,7 +42,7 @@ export class PostTag {
|
|
|
30
42
|
this.setClasses();
|
|
31
43
|
}
|
|
32
44
|
render() {
|
|
33
|
-
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' })))));
|
|
34
46
|
}
|
|
35
47
|
static get is() { return "post-tag"; }
|
|
36
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -60,6 +72,8 @@ export class PostTag {
|
|
|
60
72
|
"tags": [],
|
|
61
73
|
"text": "Defines the color variant of the component."
|
|
62
74
|
},
|
|
75
|
+
"getter": false,
|
|
76
|
+
"setter": false,
|
|
63
77
|
"attribute": "variant",
|
|
64
78
|
"reflect": false
|
|
65
79
|
},
|
|
@@ -77,6 +91,8 @@ export class PostTag {
|
|
|
77
91
|
"tags": [],
|
|
78
92
|
"text": "Defines the size of the component."
|
|
79
93
|
},
|
|
94
|
+
"getter": false,
|
|
95
|
+
"setter": false,
|
|
80
96
|
"attribute": "size",
|
|
81
97
|
"reflect": false,
|
|
82
98
|
"defaultValue": "null"
|
|
@@ -95,6 +111,8 @@ export class PostTag {
|
|
|
95
111
|
"tags": [],
|
|
96
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>."
|
|
97
113
|
},
|
|
114
|
+
"getter": false,
|
|
115
|
+
"setter": false,
|
|
98
116
|
"attribute": "icon",
|
|
99
117
|
"reflect": false,
|
|
100
118
|
"defaultValue": "null"
|
|
@@ -5,19 +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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// perform a click when enter or spaced are pressed to mimic the button behavior
|
|
14
|
-
if (event.key === 'Enter' || event.key === ' ') {
|
|
15
|
-
event.preventDefault(); // prevents the page from scrolling when space is pressed
|
|
16
|
-
this.host.click();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
this.toggled = false;
|
|
20
|
-
}
|
|
8
|
+
host;
|
|
9
|
+
/**
|
|
10
|
+
* If `true`, the button is in the "on" state, otherwise it is in the "off" state.
|
|
11
|
+
*/
|
|
12
|
+
toggled = false;
|
|
21
13
|
validateToggled(value = this.toggled) {
|
|
22
14
|
checkType(value, 'boolean', 'The "toggled" property of the post-togglebutton must be a boolean.');
|
|
23
15
|
}
|
|
@@ -27,8 +19,18 @@ export class PostTogglebutton {
|
|
|
27
19
|
this.host.addEventListener('click', () => this.handleClick());
|
|
28
20
|
this.host.addEventListener('keydown', (e) => this.handleKeydown(e));
|
|
29
21
|
}
|
|
22
|
+
handleClick = () => {
|
|
23
|
+
this.toggled = !this.toggled;
|
|
24
|
+
};
|
|
25
|
+
handleKeydown = (event) => {
|
|
26
|
+
// perform a click when enter or spaced are pressed to mimic the button behavior
|
|
27
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
28
|
+
event.preventDefault(); // prevents the page from scrolling when space is pressed
|
|
29
|
+
this.host.click();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
30
32
|
render() {
|
|
31
|
-
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' })));
|
|
32
34
|
}
|
|
33
35
|
static get is() { return "post-togglebutton"; }
|
|
34
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -58,6 +60,8 @@ export class PostTogglebutton {
|
|
|
58
60
|
"tags": [],
|
|
59
61
|
"text": "If `true`, the button is in the \"on\" state, otherwise it is in the \"off\" state."
|
|
60
62
|
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
61
65
|
"attribute": "toggled",
|
|
62
66
|
"reflect": false,
|
|
63
67
|
"defaultValue": "false"
|
|
@@ -40,7 +40,7 @@ const globalInterestHandler = (e) => {
|
|
|
40
40
|
const tooltip = document.getElementById(tooltipTarget);
|
|
41
41
|
// Determine if the tooltip was triggered by a focus event
|
|
42
42
|
const triggeredByFocus = e.type === 'focusin';
|
|
43
|
-
void
|
|
43
|
+
void tooltip?.show(targetElement, triggeredByFocus);
|
|
44
44
|
if (hideTooltipTimeout) {
|
|
45
45
|
window.clearTimeout(hideTooltipTimeout);
|
|
46
46
|
hideTooltipTimeout = null;
|
|
@@ -81,7 +81,7 @@ const patchAccessibilityFeatures = (trigger) => {
|
|
|
81
81
|
const describedBy = trigger.getAttribute('aria-describedby');
|
|
82
82
|
const id = trigger.getAttribute(tooltipTargetAttribute);
|
|
83
83
|
// Add tooltip to aria-describedby
|
|
84
|
-
if (!
|
|
84
|
+
if (!describedBy?.includes(id)) {
|
|
85
85
|
const newDescribedBy = describedBy ? `${describedBy} ${id}` : id;
|
|
86
86
|
trigger.setAttribute('aria-describedby', newDescribedBy);
|
|
87
87
|
}
|
|
@@ -93,12 +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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
popoverRef;
|
|
97
|
+
wasOpenedByFocus = false;
|
|
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;
|
|
102
113
|
validateDelayed() {
|
|
103
114
|
checkEmptyOrType(this.delayed, 'boolean', 'The post-tooltip "delayed" property should be a boolean.');
|
|
104
115
|
}
|
|
@@ -214,7 +225,7 @@ export class PostTooltip {
|
|
|
214
225
|
}
|
|
215
226
|
render() {
|
|
216
227
|
const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
|
|
217
|
-
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' }))));
|
|
218
229
|
}
|
|
219
230
|
static get is() { return "post-tooltip"; }
|
|
220
231
|
static get encapsulation() { return "shadow"; }
|
|
@@ -250,6 +261,8 @@ export class PostTooltip {
|
|
|
250
261
|
"tags": [],
|
|
251
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."
|
|
252
263
|
},
|
|
264
|
+
"getter": false,
|
|
265
|
+
"setter": false,
|
|
253
266
|
"attribute": "placement",
|
|
254
267
|
"reflect": false,
|
|
255
268
|
"defaultValue": "'top'"
|
|
@@ -268,6 +281,8 @@ export class PostTooltip {
|
|
|
268
281
|
"tags": [],
|
|
269
282
|
"text": "Wheter or not to display a little pointer arrow"
|
|
270
283
|
},
|
|
284
|
+
"getter": false,
|
|
285
|
+
"setter": false,
|
|
271
286
|
"attribute": "arrow",
|
|
272
287
|
"reflect": false,
|
|
273
288
|
"defaultValue": "true"
|
|
@@ -286,6 +301,8 @@ export class PostTooltip {
|
|
|
286
301
|
"tags": [],
|
|
287
302
|
"text": "If `true`, the tooltip is displayed a few milliseconds after it is triggered"
|
|
288
303
|
},
|
|
304
|
+
"getter": false,
|
|
305
|
+
"setter": false,
|
|
289
306
|
"attribute": "delayed",
|
|
290
307
|
"reflect": false,
|
|
291
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';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function getAttributeObserver(attribute, handler) {
|
|
2
2
|
/**
|
|
3
3
|
* Handle attribute changes and childList changes from the observer
|
|
4
4
|
* @param {MutationRecord[]} mutationList
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
function observerHandler(mutationList) {
|
|
7
7
|
mutationList.forEach(mutation => {
|
|
8
8
|
if (mutation.type === 'attributes' && mutation.attributeName === attribute) {
|
|
9
9
|
handler(mutation.target);
|
|
@@ -17,7 +17,7 @@ export const getAttributeObserver = (attribute, handler) => {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
21
|
// Initialize a mutation observer for patching accessibility features
|
|
22
22
|
return new MutationObserver(observerHandler);
|
|
23
|
-
}
|
|
23
|
+
}
|