@swisspost/design-system-components 9.0.0-next.3 → 9.0.0-next.30
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/breakpoints-c6247c71.js +54 -0
- package/dist/cjs/check-non-empty-bd99d236.js +15 -0
- package/dist/cjs/check-one-of-75d270b5.js +13 -0
- package/dist/cjs/check-type-cdbf6d29.js +21 -0
- package/dist/cjs/check-url-220a286c.js +19 -0
- package/dist/cjs/debounce-158fd76f.js +13 -0
- package/dist/cjs/fade-72d5ef55.js +14 -0
- package/dist/cjs/get-root-7a3498ef.js +11 -0
- package/dist/cjs/index-23e36ff7.js +37 -0
- package/dist/cjs/{index-e1f32cce.js → index-d6bf2c66.js} +30 -18
- package/dist/cjs/index.browser-2f65f583.js +15 -0
- package/dist/cjs/index.cjs.js +56 -30
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-ef26e62c.js → package-c3dbd35b.js} +1 -1
- package/dist/cjs/{post-accordion-3878bf43.js → post-accordion-2108bc31.js} +9 -8
- package/dist/cjs/post-accordion-item-64051590.js +64 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +8 -5
- package/dist/cjs/post-accordion.cjs.entry.js +4 -4
- package/dist/cjs/{post-avatar-2bcfc016.js → post-avatar-2db58753.js} +10 -14
- package/dist/cjs/post-avatar.cjs.entry.js +4 -4
- package/dist/cjs/post-back-to-top-e64d70c8.js +76 -0
- package/dist/cjs/post-back-to-top.cjs.entry.js +15 -0
- package/dist/cjs/post-banner-caa5e06d.js +96 -0
- package/dist/cjs/post-banner.cjs.entry.js +19 -0
- package/dist/cjs/post-breadcrumb-acb6890e.js +112 -0
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +17 -0
- package/dist/cjs/post-breadcrumb.cjs.entry.js +13 -0
- package/dist/cjs/post-card-control-e2421427.js +283 -0
- package/dist/cjs/post-card-control.cjs.entry.js +5 -5
- package/dist/cjs/post-closebutton_15.cjs.entry.js +35 -0
- package/dist/cjs/{post-collapsible-trigger-6ae59c64.js → post-collapsible-trigger-13b87403.js} +50 -56
- package/dist/cjs/post-collapsible_2.cjs.entry.js +10 -6
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-footer-057ce0a8.js +38 -0
- package/dist/cjs/post-footer.cjs.entry.js +12 -0
- package/dist/cjs/post-linkarea-e2b39f1a.js +30 -0
- package/dist/cjs/post-linkarea.cjs.entry.js +11 -0
- package/dist/cjs/post-menu-item-3f6c1fcb.js +68 -0
- package/dist/cjs/post-popover-dccede57.js +106 -0
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/{post-rating-1d2c59b7.js → post-rating-bec67143.js} +16 -6
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-d32947dc.js +33 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +5 -4
- package/dist/cjs/{post-tab-panel-80b1f3ee.js → post-tab-panel-07d462ac.js} +6 -5
- package/dist/cjs/post-tab-panel.cjs.entry.js +4 -3
- package/dist/cjs/{post-tabs-c2d42035.js → post-tabs-e5e71053.js} +23 -16
- package/dist/cjs/post-tabs.cjs.entry.js +4 -4
- package/dist/cjs/post-tag-380a1bf0.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/post-togglebutton-553316f3.js +3965 -0
- package/dist/cjs/{post-tooltip-9a120b2e.js → post-tooltip-40812a6b.js} +38 -25
- package/dist/cjs/post-tooltip.cjs.entry.js +8 -6
- package/dist/cjs/slide-cd1f09b3.js +28 -0
- package/dist/collection/animations/collapse.js +5 -5
- package/dist/collection/animations/fade.js +6 -2
- package/dist/collection/animations/slide.js +23 -0
- package/dist/collection/collection-manifest.json +20 -3
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +5 -3
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +26 -9
- package/dist/collection/components/post-avatar/post-avatar.js +8 -11
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -0
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +109 -0
- package/dist/collection/components/post-banner/banner-types.js +1 -0
- package/dist/collection/components/post-banner/post-banner.css +3 -0
- package/dist/collection/components/{post-alert/post-alert.js → post-banner/post-banner.js} +50 -72
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.css +3 -0
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +163 -0
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -0
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +98 -0
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +55 -43
- package/dist/collection/components/post-closebutton/post-closebutton.js +13 -0
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +15 -6
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +21 -20
- package/dist/collection/components/post-footer/post-footer.css +1 -0
- package/dist/collection/components/post-footer/post-footer.js +76 -0
- package/dist/collection/components/post-header/post-header.css +1 -0
- package/dist/collection/components/post-header/post-header.js +323 -0
- package/dist/collection/components/post-icon/post-icon.js +79 -46
- package/dist/collection/components/post-language-option/post-language-option.css +1 -1
- package/dist/collection/components/post-language-option/post-language-option.js +65 -10
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -0
- package/dist/collection/components/post-language-switch/post-language-switch.js +192 -0
- package/dist/collection/components/post-language-switch/switch-variants.js +1 -0
- package/dist/collection/components/post-linkarea/post-linkarea.css +1 -0
- package/dist/collection/components/post-linkarea/post-linkarea.js +30 -0
- package/dist/collection/components/post-list/post-list.css +3 -0
- package/dist/collection/components/post-list/post-list.js +90 -0
- package/dist/collection/components/post-list-item/post-list-item.css +1 -0
- package/dist/collection/components/post-list-item/post-list-item.js +26 -0
- package/dist/collection/components/post-logo/post-logo.css +1 -1
- package/dist/collection/components/post-logo/post-logo.js +3 -2
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -0
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +267 -0
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -0
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +284 -0
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -0
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +127 -0
- package/dist/collection/components/post-menu/post-menu.css +3 -0
- package/dist/collection/components/post-menu/post-menu.js +297 -0
- package/dist/collection/components/post-menu-item/post-menu-item.js +8 -0
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +1 -0
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +122 -0
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +6 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +203 -39
- package/dist/collection/components/post-rating/post-rating.css +1 -1
- package/dist/collection/components/post-rating/post-rating.js +13 -2
- package/dist/collection/components/post-tab-header/post-tab-header.css +2 -2
- package/dist/collection/components/post-tab-header/post-tab-header.js +6 -4
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -2
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +17 -14
- package/dist/collection/components/post-tag/post-tag.css +1 -1
- package/dist/collection/components/post-tag/post-tag.js +3 -2
- package/dist/collection/components/post-togglebutton/post-togglebutton.css +1 -0
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +75 -0
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +35 -17
- package/dist/collection/index.js +19 -2
- package/dist/collection/utils/attribute-observer.js +4 -4
- package/dist/collection/utils/breakpoints.js +50 -0
- 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 +33 -0
- package/dist/collection/utils/property-checkers/check-non-empty.js +6 -2
- package/dist/collection/utils/property-checkers/check-one-of.js +8 -3
- package/dist/collection/utils/property-checkers/check-pattern.js +8 -3
- package/dist/collection/utils/property-checkers/check-type.js +11 -6
- package/dist/collection/utils/property-checkers/check-url.js +11 -6
- package/dist/collection/utils/property-checkers/empty-or.js +5 -2
- package/dist/collection/utils/sass-export.js +8 -5
- package/dist/components/attribute-observer.js +4 -4
- package/dist/components/breakpoints.js +52 -0
- package/dist/components/check-non-empty.js +6 -2
- package/dist/components/check-one-of.js +8 -3
- package/dist/components/check-type.js +11 -6
- package/dist/components/debounce.js +11 -0
- package/dist/components/fade.js +6 -2
- package/dist/components/get-focusable-children.js +35 -0
- package/dist/components/get-root.js +9 -0
- package/dist/components/index.browser.js +13 -0
- package/dist/components/index.js +19 -2
- package/dist/components/index2.js +25 -12
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +33 -14
- package/dist/components/post-accordion2.js +6 -5
- package/dist/components/post-avatar2.js +7 -11
- package/dist/components/post-back-to-top.d.ts +11 -0
- package/dist/components/post-back-to-top.js +6 -0
- package/dist/components/post-back-to-top2.js +101 -0
- package/dist/components/post-banner.d.ts +11 -0
- package/dist/components/post-banner.js +6 -0
- package/dist/components/post-banner2.js +131 -0
- package/dist/components/post-breadcrumb-item.d.ts +11 -0
- package/dist/components/post-breadcrumb-item.js +6 -0
- package/dist/components/post-breadcrumb-item2.js +82 -0
- package/dist/components/post-breadcrumb.d.ts +11 -0
- package/dist/components/post-breadcrumb.js +6 -0
- package/dist/components/post-breadcrumb2.js +169 -0
- package/dist/components/post-card-control2.js +50 -39
- package/dist/components/post-closebutton.d.ts +11 -0
- package/dist/components/post-closebutton.js +6 -0
- package/dist/components/post-closebutton2.js +34 -0
- package/dist/components/post-collapsible-trigger2.js +23 -38
- package/dist/components/post-collapsible2.js +22 -14
- package/dist/components/post-footer.d.ts +11 -0
- package/dist/components/post-footer.js +6 -0
- package/dist/components/post-footer2.js +78 -0
- package/dist/components/post-header.d.ts +11 -0
- package/dist/components/post-header.js +6 -0
- package/dist/components/post-header2.js +401 -0
- package/dist/components/post-icon2.js +81 -45
- package/dist/components/post-language-option2.js +32 -14
- package/dist/components/post-language-switch.d.ts +11 -0
- package/dist/components/post-language-switch.js +6 -0
- package/dist/components/post-language-switch2.js +148 -0
- package/dist/components/post-linkarea.d.ts +11 -0
- package/dist/components/post-linkarea.js +6 -0
- package/dist/components/post-linkarea2.js +42 -0
- package/dist/components/post-list-item.d.ts +11 -0
- package/dist/components/post-list-item.js +6 -0
- package/dist/components/post-list-item2.js +35 -0
- package/dist/components/{post-alert.d.ts → post-list.d.ts} +4 -4
- package/dist/components/post-list.js +6 -0
- package/dist/components/post-list2.js +55 -0
- package/dist/components/post-logo2.js +4 -4
- package/dist/components/post-mainnavigation.d.ts +11 -0
- package/dist/components/post-mainnavigation.js +6 -0
- package/dist/components/post-mainnavigation2.js +270 -0
- package/dist/components/post-megadropdown-trigger.d.ts +11 -0
- package/dist/components/post-megadropdown-trigger.js +6 -0
- package/dist/components/post-megadropdown-trigger2.js +113 -0
- package/dist/components/post-megadropdown.d.ts +11 -0
- package/dist/components/post-megadropdown.js +6 -0
- package/dist/components/post-megadropdown2.js +198 -0
- package/dist/components/post-menu-item.d.ts +11 -0
- package/dist/components/post-menu-item.js +6 -0
- package/dist/components/post-menu-item2.js +27 -0
- package/dist/components/post-menu-trigger.d.ts +11 -0
- package/dist/components/post-menu-trigger.js +6 -0
- package/dist/components/post-menu-trigger2.js +109 -0
- package/dist/components/post-menu.d.ts +11 -0
- package/dist/components/post-menu.js +6 -0
- package/dist/components/post-menu2.js +193 -0
- package/dist/components/post-popover2.js +6 -4
- package/dist/components/post-popovercontainer2.js +249 -72
- package/dist/components/post-rating2.js +14 -4
- package/dist/components/post-tab-header2.js +7 -6
- package/dist/components/post-tab-panel2.js +4 -3
- package/dist/components/post-tabs2.js +20 -13
- package/dist/components/post-tag2.js +3 -3
- package/dist/components/post-togglebutton.d.ts +11 -0
- package/dist/components/post-togglebutton.js +6 -0
- package/dist/components/post-togglebutton2.js +61 -0
- package/dist/components/post-tooltip2.js +35 -22
- package/dist/components/slide.js +25 -0
- package/dist/docs.json +1653 -186
- package/dist/esm/{attribute-observer-37fa950a.js → attribute-observer-2f203993.js} +4 -4
- package/dist/esm/breakpoints-bbe0c54e.js +52 -0
- package/dist/esm/check-non-empty-258a56b3.js +13 -0
- package/dist/esm/check-one-of-0bee20f5.js +11 -0
- package/dist/esm/check-type-37d5d307.js +19 -0
- package/dist/esm/check-url-17962bc8.js +17 -0
- package/dist/esm/debounce-e54c7131.js +11 -0
- package/dist/esm/fade-1f3cacf4.js +11 -0
- package/dist/esm/get-root-7af2e0d1.js +9 -0
- package/dist/esm/{index-e1b64755.js → index-3419e46d.js} +30 -18
- package/dist/esm/index-8f8fe5b0.js +32 -0
- package/dist/esm/index.browser-51485f85.js +13 -0
- package/dist/esm/index.js +33 -24
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-da1ccbc7.js +3 -0
- package/dist/esm/{post-accordion-01d49d83.js → post-accordion-f5e449c0.js} +9 -8
- package/dist/esm/post-accordion-item-1195d94a.js +62 -0
- package/dist/esm/post-accordion-item.entry.js +8 -5
- package/dist/esm/post-accordion.entry.js +4 -4
- package/dist/esm/{post-avatar-6f24d1ab.js → post-avatar-9b85c11c.js} +10 -14
- package/dist/esm/post-avatar.entry.js +4 -4
- package/dist/esm/post-back-to-top-335075d4.js +74 -0
- package/dist/esm/post-back-to-top.entry.js +7 -0
- package/dist/esm/post-banner-6b939740.js +94 -0
- package/dist/esm/post-banner.entry.js +11 -0
- package/dist/esm/post-breadcrumb-5a61269c.js +110 -0
- package/dist/esm/post-breadcrumb-item_2.entry.js +8 -0
- package/dist/esm/post-breadcrumb.entry.js +5 -0
- package/dist/esm/post-card-control-7fe3804c.js +281 -0
- package/dist/esm/post-card-control.entry.js +5 -5
- package/dist/esm/post-closebutton_15.entry.js +13 -0
- package/dist/esm/{post-collapsible-trigger-654bf2b0.js → post-collapsible-trigger-e3ef47ff.js} +49 -55
- package/dist/esm/post-collapsible_2.entry.js +10 -6
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-footer-e68c21a1.js +36 -0
- package/dist/esm/post-footer.entry.js +4 -0
- package/dist/esm/post-linkarea-bc607c52.js +28 -0
- package/dist/esm/post-linkarea.entry.js +3 -0
- package/dist/esm/post-menu-item-ab01683c.js +65 -0
- package/dist/esm/{post-popover-7d44a85c.js → post-popover-7427bb6d.js} +9 -7
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/{post-rating-3cd3e97b.js → post-rating-16c9ada8.js} +16 -6
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-e0f39999.js +31 -0
- package/dist/esm/post-tab-header.entry.js +5 -4
- package/dist/esm/{post-tab-panel-163e6c99.js → post-tab-panel-9a8b852c.js} +6 -5
- package/dist/esm/post-tab-panel.entry.js +4 -3
- package/dist/esm/{post-tabs-8cb1bce9.js → post-tabs-34f70c88.js} +23 -16
- package/dist/esm/post-tabs.entry.js +4 -4
- package/dist/esm/post-tag-ec5578c2.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/post-togglebutton-5fb5e500.js +3949 -0
- package/dist/esm/{post-tooltip-dc7e1a21.js → post-tooltip-c201c4db.js} +38 -25
- package/dist/esm/post-tooltip.entry.js +8 -6
- package/dist/esm/slide-cd2850ee.js +25 -0
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-02f1cb03.js +1 -0
- package/dist/post-components/p-037755f5.js +1 -0
- package/dist/post-components/p-11cac89a.js +1 -0
- package/dist/post-components/p-181c73d5.js +1 -0
- package/dist/post-components/p-2995938c.entry.js +1 -0
- package/dist/post-components/p-2adbc7bf.js +1 -0
- package/dist/post-components/p-2ea2ced2.js +1 -0
- package/dist/post-components/p-2ff7f948.js +1 -0
- package/dist/post-components/p-32815e91.js +1 -0
- package/dist/post-components/{p-0ad93d89.js → p-33a5eac4.js} +3 -3
- package/dist/post-components/p-38c39936.js +1 -0
- package/dist/post-components/p-3a9ddb5a.entry.js +1 -0
- package/dist/post-components/p-3dbda892.entry.js +1 -0
- package/dist/post-components/p-3ea156c8.js +1 -0
- package/dist/post-components/p-4620784a.entry.js +1 -0
- package/dist/post-components/p-52231570.entry.js +1 -0
- package/dist/post-components/p-54ecbfaf.entry.js +1 -0
- package/dist/post-components/p-5959f2bd.js +1 -0
- package/dist/post-components/p-5aeb3656.js +1 -0
- package/dist/post-components/{p-3eab790d.js → p-5c758f41.js} +1 -1
- package/dist/post-components/p-61946a7e.js +1 -0
- package/dist/post-components/p-64e3de38.js +1 -0
- package/dist/post-components/p-66f2e7cb.js +1 -0
- package/dist/post-components/p-6912bf0f.entry.js +1 -0
- package/dist/post-components/p-691c07e3.entry.js +1 -0
- package/dist/post-components/p-6ed2e162.js +1 -0
- package/dist/post-components/p-712670a6.js +1 -0
- package/dist/post-components/p-7709c14a.js +1 -0
- package/dist/post-components/p-7f695ad8.js +1 -0
- package/dist/post-components/p-804c1f5f.entry.js +1 -0
- package/dist/post-components/p-85fdc2d3.js +1 -0
- package/dist/post-components/p-8779d765.entry.js +1 -0
- package/dist/post-components/p-8d625b78.entry.js +1 -0
- package/dist/post-components/p-9748a355.js +1 -0
- package/dist/post-components/p-9b052461.js +1 -0
- package/dist/post-components/p-a205b34d.entry.js +1 -0
- package/dist/post-components/p-b21729d2.entry.js +1 -0
- package/dist/post-components/p-b240727d.js +1 -0
- package/dist/post-components/p-b5318286.js +1 -0
- package/dist/post-components/p-be16b84d.entry.js +1 -0
- package/dist/post-components/p-c222539e.js +1 -0
- package/dist/post-components/p-c8afafa1.js +1 -0
- package/dist/post-components/p-d295b769.entry.js +1 -0
- package/dist/post-components/p-d45df336.js +1 -0
- package/dist/post-components/p-d58f5eaf.js +1 -0
- package/dist/post-components/p-e1baac59.js +1 -0
- package/dist/post-components/p-e585c6fe.js +1 -0
- package/dist/post-components/p-e644a698.entry.js +1 -0
- package/dist/post-components/p-e689bfbb.entry.js +1 -0
- package/dist/post-components/p-f17be52c.entry.js +1 -0
- package/dist/post-components/p-f4850dea.entry.js +1 -0
- package/dist/post-components/p-fc91cbc2.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 -0
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +8 -2
- package/dist/types/components/post-avatar/post-avatar.d.ts +1 -1
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +19 -0
- package/dist/types/components/post-banner/banner-types.d.ts +2 -0
- package/dist/types/components/post-banner/post-banner.d.ts +49 -0
- package/dist/types/components/post-breadcrumb/post-breadcrumb.d.ts +30 -0
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +20 -0
- package/dist/types/components/post-card-control/post-card-control.d.ts +9 -9
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +7 -0
- package/dist/types/components/post-footer/post-footer.d.ts +23 -0
- package/dist/types/components/post-header/post-header.d.ts +51 -0
- package/dist/types/components/post-icon/post-icon.d.ts +13 -11
- package/dist/types/components/post-language-option/post-language-option.d.ts +13 -4
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +39 -0
- package/dist/types/components/post-language-switch/switch-variants.d.ts +2 -0
- package/dist/types/components/post-linkarea/post-linkarea.d.ts +5 -0
- package/dist/types/components/post-list/post-list.d.ts +24 -0
- package/dist/types/components/post-list-item/post-list-item.d.ts +8 -0
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +71 -0
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +59 -0
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +31 -0
- package/dist/types/components/post-menu/post-menu.d.ts +48 -0
- package/dist/types/components/post-menu-item/post-menu-item.d.ts +3 -0
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +28 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +27 -1
- package/dist/types/components/post-tab-header/post-tab-header.d.ts +1 -1
- package/dist/types/components/post-tabs/post-tabs.d.ts +1 -1
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +15 -0
- package/dist/types/components.d.ts +532 -76
- 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 +20 -3
- package/dist/types/utils/attribute-observer.d.ts +1 -1
- package/dist/types/utils/breakpoints.d.ts +12 -0
- package/dist/types/utils/component-on-ready.d.ts +1 -1
- package/dist/types/utils/get-focusable-children.d.ts +1 -0
- package/dist/types/utils/get-root.d.ts +1 -1
- package/dist/types/utils/property-checkers/check-non-empty.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-one-of.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-pattern.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-type.d.ts +3 -1
- package/dist/types/utils/property-checkers/check-url.d.ts +3 -1
- package/dist/types/utils/property-checkers/index.d.ts +12 -4
- package/dist/types/utils/sass-export.d.ts +5 -1
- package/loaders/attribute-observer.js +4 -4
- package/loaders/breakpoints.js +52 -0
- package/loaders/check-non-empty.js +6 -2
- package/loaders/check-one-of.js +8 -3
- package/loaders/check-type.js +11 -6
- package/loaders/debounce.js +11 -0
- package/loaders/fade.js +6 -2
- package/loaders/get-focusable-children.js +35 -0
- package/loaders/get-root.js +9 -0
- package/loaders/index.browser.js +13 -0
- package/loaders/index.d.ts +36 -2
- package/loaders/index.js +20 -2
- package/loaders/index2.js +25 -12
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item.js +1 -82
- package/loaders/post-accordion-item2.js +103 -0
- package/loaders/post-accordion.js +6 -5
- package/loaders/post-avatar.js +7 -11
- package/loaders/post-back-to-top.d.ts +11 -0
- package/loaders/post-back-to-top.js +104 -0
- package/loaders/post-banner.d.ts +11 -0
- package/loaders/post-banner.js +134 -0
- package/loaders/post-breadcrumb-item.d.ts +11 -0
- package/loaders/post-breadcrumb-item.js +6 -0
- package/loaders/post-breadcrumb-item2.js +82 -0
- package/loaders/post-breadcrumb.d.ts +11 -0
- package/loaders/post-breadcrumb.js +172 -0
- package/loaders/post-card-control.js +50 -39
- package/loaders/post-closebutton.d.ts +11 -0
- package/loaders/post-closebutton.js +37 -0
- package/loaders/post-collapsible-trigger2.js +23 -38
- package/loaders/post-collapsible2.js +21 -13
- package/loaders/post-footer.d.ts +11 -0
- package/loaders/post-footer.js +81 -0
- package/loaders/post-header.d.ts +11 -0
- package/loaders/post-header.js +404 -0
- package/loaders/post-icon2.js +81 -45
- package/loaders/post-language-option.js +31 -13
- package/loaders/post-language-switch.d.ts +11 -0
- package/loaders/post-language-switch.js +151 -0
- package/loaders/post-linkarea.d.ts +11 -0
- package/loaders/post-linkarea.js +45 -0
- package/loaders/post-list-item.d.ts +11 -0
- package/loaders/post-list-item.js +38 -0
- package/loaders/{post-alert.d.ts → post-list.d.ts} +4 -4
- package/loaders/post-list.js +58 -0
- package/loaders/post-logo.js +5 -5
- package/loaders/post-mainnavigation.d.ts +11 -0
- package/loaders/post-mainnavigation.js +273 -0
- package/loaders/post-megadropdown-trigger.d.ts +11 -0
- package/loaders/post-megadropdown-trigger.js +116 -0
- package/loaders/post-megadropdown.d.ts +11 -0
- package/loaders/post-megadropdown.js +201 -0
- package/loaders/post-menu-item.d.ts +11 -0
- package/loaders/post-menu-item.js +6 -0
- package/loaders/post-menu-item2.js +27 -0
- package/loaders/post-menu-trigger.d.ts +11 -0
- package/loaders/post-menu-trigger.js +6 -0
- package/loaders/post-menu-trigger2.js +109 -0
- package/loaders/post-menu.d.ts +11 -0
- package/loaders/post-menu.js +6 -0
- package/loaders/post-menu2.js +193 -0
- package/loaders/post-popover.js +6 -4
- package/loaders/post-popovercontainer2.js +249 -72
- package/loaders/post-rating.js +14 -4
- package/loaders/post-tab-header.js +7 -6
- package/loaders/post-tab-panel.js +4 -3
- package/loaders/post-tabs.js +20 -13
- package/loaders/post-tag.js +3 -3
- package/loaders/post-togglebutton.d.ts +11 -0
- package/loaders/post-togglebutton.js +64 -0
- package/loaders/post-tooltip.js +34 -21
- package/loaders/slide.js +25 -0
- package/package.json +26 -20
- package/dist/cjs/check-non-empty-eeaa8f77.js +0 -11
- package/dist/cjs/check-one-of-f4f5d0c0.js +0 -8
- package/dist/cjs/fade-35a3633a.js +0 -10
- package/dist/cjs/index-01f30442.js +0 -52
- package/dist/cjs/post-accordion-item-0278e6e2.js +0 -52
- package/dist/cjs/post-alert-5f795d9c.js +0 -98
- package/dist/cjs/post-alert.cjs.entry.js +0 -16
- package/dist/cjs/post-card-control-5ffcd201.js +0 -272
- package/dist/cjs/post-icon-1f71aa0f.js +0 -104
- package/dist/cjs/post-icon.cjs.entry.js +0 -15
- package/dist/cjs/post-language-option-4a3ecaeb.js +0 -67
- package/dist/cjs/post-language-option.cjs.entry.js +0 -14
- package/dist/cjs/post-logo-7070d727.js +0 -39
- package/dist/cjs/post-logo.cjs.entry.js +0 -14
- package/dist/cjs/post-popover-de1b8d95.js +0 -104
- package/dist/cjs/post-popovercontainer-6a25713a.js +0 -2186
- package/dist/cjs/post-popovercontainer.cjs.entry.js +0 -11
- package/dist/cjs/post-tab-header-877676bf.js +0 -32
- package/dist/cjs/post-tag-5e2c7798.js +0 -47
- package/dist/collection/components/post-alert/alert-types.js +0 -1
- package/dist/collection/components/post-alert/post-alert.css +0 -7
- package/dist/components/post-alert.js +0 -6
- package/dist/components/post-alert2.js +0 -136
- package/dist/esm/check-non-empty-58bd6b17.js +0 -9
- package/dist/esm/check-one-of-6b3ef8eb.js +0 -6
- package/dist/esm/fade-7fd71785.js +0 -7
- package/dist/esm/index-f41b763f.js +0 -46
- package/dist/esm/package-0311770e.js +0 -3
- package/dist/esm/post-accordion-item-366f385b.js +0 -50
- package/dist/esm/post-alert-5a69f40d.js +0 -96
- package/dist/esm/post-alert.entry.js +0 -8
- package/dist/esm/post-card-control-2a7939c3.js +0 -270
- package/dist/esm/post-icon-885f17e9.js +0 -102
- package/dist/esm/post-icon.entry.js +0 -7
- package/dist/esm/post-language-option-0c2818aa.js +0 -65
- package/dist/esm/post-language-option.entry.js +0 -6
- package/dist/esm/post-logo-dd425f2e.js +0 -37
- package/dist/esm/post-logo.entry.js +0 -6
- package/dist/esm/post-popovercontainer-e6d11d81.js +0 -2184
- package/dist/esm/post-popovercontainer.entry.js +0 -3
- package/dist/esm/post-tab-header-776a991a.js +0 -30
- package/dist/esm/post-tag-deefcc86.js +0 -45
- package/dist/post-components/p-048538ea.js +0 -1
- package/dist/post-components/p-0a1f5e13.entry.js +0 -1
- package/dist/post-components/p-0a4318ff.js +0 -1
- package/dist/post-components/p-0d64ef0c.entry.js +0 -1
- package/dist/post-components/p-1198a5f2.entry.js +0 -1
- package/dist/post-components/p-13d1bef7.entry.js +0 -1
- package/dist/post-components/p-16d057a6.js +0 -1
- package/dist/post-components/p-1a091fca.entry.js +0 -1
- package/dist/post-components/p-1f35b0ba.entry.js +0 -1
- package/dist/post-components/p-246a6d28.js +0 -1
- package/dist/post-components/p-2737eaf5.js +0 -1
- package/dist/post-components/p-3aa5e1e5.js +0 -1
- package/dist/post-components/p-3d3795f9.js +0 -1
- package/dist/post-components/p-3fabf6e4.entry.js +0 -1
- package/dist/post-components/p-4f0617e6.js +0 -1
- package/dist/post-components/p-53bacbbc.js +0 -1
- package/dist/post-components/p-5c8cb76f.entry.js +0 -1
- package/dist/post-components/p-5eee8d31.entry.js +0 -1
- package/dist/post-components/p-60e72b25.js +0 -1
- package/dist/post-components/p-611b3c41.js +0 -1
- package/dist/post-components/p-66ed33a9.js +0 -1
- package/dist/post-components/p-681b751d.entry.js +0 -1
- package/dist/post-components/p-6adeaa6c.js +0 -1
- package/dist/post-components/p-6b6a1e82.entry.js +0 -1
- package/dist/post-components/p-752e6a98.entry.js +0 -1
- package/dist/post-components/p-8734876e.js +0 -1
- package/dist/post-components/p-9ac2a947.js +0 -1
- package/dist/post-components/p-9d211a45.js +0 -1
- package/dist/post-components/p-b095519d.js +0 -1
- package/dist/post-components/p-b38eaabf.js +0 -1
- package/dist/post-components/p-cdfcc758.entry.js +0 -1
- package/dist/post-components/p-d50d4ec1.entry.js +0 -1
- package/dist/post-components/p-d785856c.js +0 -1
- package/dist/post-components/p-deb4131c.js +0 -1
- package/dist/post-components/p-e18f3639.js +0 -1
- package/dist/post-components/p-f1b7797f.entry.js +0 -1
- package/dist/post-components/p-f6efc76b.entry.js +0 -1
- package/dist/post-components/p-f825d681.js +0 -1
- package/dist/post-components/p-fff1c2ee.entry.js +0 -1
- package/dist/types/components/post-alert/alert-types.d.ts +0 -2
- package/dist/types/components/post-alert/post-alert.d.ts +0 -54
- package/loaders/post-alert.js +0 -139
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { BannerType } from './banner-types';
|
|
3
|
+
/**
|
|
4
|
+
* @slot heading - Slot for placing custom content within the banner's heading.
|
|
5
|
+
* @slot actions - Slot for placing custom actions (buttons, links, etc.) within the banner.
|
|
6
|
+
* @slot default - Slot for placing the main content/message of the banner.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PostBanner {
|
|
9
|
+
host: HTMLPostBannerElement;
|
|
10
|
+
bannerId: string;
|
|
11
|
+
classes: string;
|
|
12
|
+
hasActions: boolean;
|
|
13
|
+
hasHeading: boolean;
|
|
14
|
+
onDismissButtonClick: () => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
17
|
+
*/
|
|
18
|
+
readonly dismissible: boolean;
|
|
19
|
+
validateDismissible(): void;
|
|
20
|
+
/**
|
|
21
|
+
* The label to use for the close button of a dismissible banner.
|
|
22
|
+
*/
|
|
23
|
+
readonly dismissLabel: string;
|
|
24
|
+
validateDismissLabel(): void;
|
|
25
|
+
/**
|
|
26
|
+
* The icon to display in the banner. By default, the icon depends on the banner type.
|
|
27
|
+
*
|
|
28
|
+
* If `none`, no icon is displayed.
|
|
29
|
+
*/
|
|
30
|
+
readonly icon: string;
|
|
31
|
+
validateIcon(): void;
|
|
32
|
+
/**
|
|
33
|
+
* The type of the banner.
|
|
34
|
+
*/
|
|
35
|
+
readonly type: BannerType;
|
|
36
|
+
validateType(): void;
|
|
37
|
+
/**
|
|
38
|
+
* An event emitted when the banner element is dismissed, after the transition.
|
|
39
|
+
* It has no payload and only relevant for dismissible banners.
|
|
40
|
+
*/
|
|
41
|
+
postDismissed: EventEmitter<void>;
|
|
42
|
+
componentDidLoad(): void;
|
|
43
|
+
componentWillRender(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Triggers banner dismissal programmatically (same as clicking on the close button (×)).
|
|
46
|
+
*/
|
|
47
|
+
dismiss(): Promise<void>;
|
|
48
|
+
render(): any;
|
|
49
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare class PostBreadcrumb {
|
|
2
|
+
host: HTMLPostBreadcrumbElement;
|
|
3
|
+
/**
|
|
4
|
+
* The URL for the home breadcrumb item.
|
|
5
|
+
*/
|
|
6
|
+
homeUrl: string;
|
|
7
|
+
/**
|
|
8
|
+
* The text label for the home breadcrumb item.
|
|
9
|
+
*/
|
|
10
|
+
homeText: string;
|
|
11
|
+
breadcrumbItems: {
|
|
12
|
+
url: string;
|
|
13
|
+
text: string;
|
|
14
|
+
}[];
|
|
15
|
+
isConcatenated: boolean;
|
|
16
|
+
lastWindowWidth: number;
|
|
17
|
+
private breadcrumbNavRef?;
|
|
18
|
+
private lastItem;
|
|
19
|
+
validateUrl(): void;
|
|
20
|
+
componentWillLoad(): void;
|
|
21
|
+
componentDidLoad(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
private waitForBreadcrumbRef;
|
|
24
|
+
private updateBreadcrumbItems;
|
|
25
|
+
private handleResize;
|
|
26
|
+
private getParentWidth;
|
|
27
|
+
private checkConcatenation;
|
|
28
|
+
private handleBreadcrumbItemClick;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Slot for placing the text inside the breadcrumb item.
|
|
3
|
+
*/
|
|
4
|
+
export declare class PostBreadcrumbItem {
|
|
5
|
+
host: HTMLPostBreadcrumbItemElement;
|
|
6
|
+
/**
|
|
7
|
+
* The optional URL to which the breadcrumb item will link.
|
|
8
|
+
*/
|
|
9
|
+
url?: string | URL;
|
|
10
|
+
private validUrl?;
|
|
11
|
+
/**
|
|
12
|
+
* The full path URL to validate.
|
|
13
|
+
*/
|
|
14
|
+
fullUrl: string | undefined;
|
|
15
|
+
validateUrl(): void;
|
|
16
|
+
private constructUrl;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
private handleKeyDown;
|
|
19
|
+
render(): any;
|
|
20
|
+
}
|
|
@@ -2,8 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
/**
|
|
3
3
|
* @class PostCardControl - representing a stencil component
|
|
4
4
|
*
|
|
5
|
-
* @slot default - Content to place into the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt">block content</a>.<p className="
|
|
6
|
-
* @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="
|
|
5
|
+
* @slot default - Content to place into the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt">block content</a>.<p className="banner banner-sm banner-warning">Even if it is generally possible, we do not recommend using interactive elements in this slot because the background of the card control is clickable.<br/>This can lead to confusion when the hit box of nested interactive controls is not clearly separated from the background, is invalid HTML and click events bubbling up to the card control will unexpectedly toggle it if they're not captured.<br/>More info: <a href="https://accessibilityinsights.io/info-examples/web/nested-interactive/">https://accessibilityinsights.io/info-examples/web/nested-interactive/</a></p>
|
|
6
|
+
* @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>
|
|
7
7
|
*/
|
|
8
8
|
export declare class PostCardControl {
|
|
9
9
|
private readonly EVENT_MAP;
|
|
@@ -30,12 +30,12 @@ export declare class PostCardControl {
|
|
|
30
30
|
readonly type: 'checkbox' | 'radio';
|
|
31
31
|
/**
|
|
32
32
|
* Defines the `name` attribute of the control.
|
|
33
|
-
* <span className="
|
|
34
|
-
* <span className="
|
|
33
|
+
* <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>
|
|
34
|
+
* <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
35
35
|
*/
|
|
36
36
|
readonly name: string;
|
|
37
37
|
/**
|
|
38
|
-
* Defines the `value` attribute of the control. <span className="
|
|
38
|
+
* 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>
|
|
39
39
|
*/
|
|
40
40
|
readonly value: string;
|
|
41
41
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class PostCardControl {
|
|
|
53
53
|
validity: null | 'true' | 'false';
|
|
54
54
|
/**
|
|
55
55
|
* Defines the icon `name` inside the card.
|
|
56
|
-
* <span className="
|
|
56
|
+
* <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
57
57
|
*/
|
|
58
58
|
readonly icon: string;
|
|
59
59
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class PostCardControl {
|
|
|
67
67
|
/**
|
|
68
68
|
* An event emitted whenever the components checked state is toggled.
|
|
69
69
|
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
70
|
-
* <span className="
|
|
70
|
+
* <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>
|
|
71
71
|
*/
|
|
72
72
|
postChange: EventEmitter<{
|
|
73
73
|
state: boolean;
|
|
@@ -82,8 +82,8 @@ export declare class PostCardControl {
|
|
|
82
82
|
* A hidden public method to reset the group controls `checked` state to `false`.
|
|
83
83
|
*/
|
|
84
84
|
groupReset(): Promise<void>;
|
|
85
|
-
validateControlLabel(
|
|
86
|
-
validateControlType(
|
|
85
|
+
validateControlLabel(): void;
|
|
86
|
+
validateControlType(): void;
|
|
87
87
|
updateControlChecked(checked?: boolean): void;
|
|
88
88
|
updateControlDisabled(): void;
|
|
89
89
|
constructor();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot grid-{1|2|3|4}-title - Slot for the accordion headers (mobile).
|
|
3
|
+
* @slot grid-{1|2|3|4} - Slot for the accordion bodies (mobile) and the grid cells (tablet, desktop).
|
|
4
|
+
* @slot socialmedia - Slot for the social media links.
|
|
5
|
+
* @slot app - Slot for the app links.
|
|
6
|
+
* @slot businesssectors - Slot for the business sectors links.
|
|
7
|
+
* @slot meta - Slot for the meta links.
|
|
8
|
+
* @slot copyright - Slot for the copyright text.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PostFooter {
|
|
11
|
+
host: HTMLPostFooterElement;
|
|
12
|
+
/**
|
|
13
|
+
* The label to add to the footer (visually hidden).
|
|
14
|
+
*/
|
|
15
|
+
readonly label: string;
|
|
16
|
+
isMobile: boolean;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
private breakpointChange;
|
|
19
|
+
private renderAccordion;
|
|
20
|
+
private renderGrid;
|
|
21
|
+
render(): any;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type DEVICE_SIZE = 'mobile' | 'tablet' | 'desktop' | null;
|
|
3
|
+
/**
|
|
4
|
+
* @slot post-logo - Should be used together with the `<post-logo>` component.
|
|
5
|
+
* @slot meta-navigation - Holds an `<ul>` with meta navigation links.
|
|
6
|
+
* @slot post-togglebutton - Holds the mobile menu toggler.
|
|
7
|
+
* @slot post-language-switch - Should be used with the `<post-language-switch>` component.
|
|
8
|
+
* @slot title - Holds the application title.
|
|
9
|
+
* @slot default - Custom controls or content, right aligned in the local header.
|
|
10
|
+
* @slot post-mainnavigation - Has a default slot because it's only meant to be used in the `<post-header>`.
|
|
11
|
+
*/
|
|
12
|
+
export declare class PostHeader {
|
|
13
|
+
private firstFocusableEl;
|
|
14
|
+
private lastFocusableEl;
|
|
15
|
+
private mobileMenu;
|
|
16
|
+
private mobileMenuAnimation;
|
|
17
|
+
private readonly throttledResize;
|
|
18
|
+
private scrollParentResizeObserver;
|
|
19
|
+
private localHeaderResizeObserver;
|
|
20
|
+
get scrollParent(): HTMLElement;
|
|
21
|
+
host: HTMLPostHeaderElement;
|
|
22
|
+
device: DEVICE_SIZE;
|
|
23
|
+
mobileMenuExtended: boolean;
|
|
24
|
+
megadropdownOpen: boolean;
|
|
25
|
+
lockBody(newValue: boolean | string, _oldValue: boolean | string, propName: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* An event emitted when the device has changed
|
|
28
|
+
*/
|
|
29
|
+
postUpdateDevice: EventEmitter<DEVICE_SIZE>;
|
|
30
|
+
constructor();
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
componentDidRender(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Toggles the mobile navigation.
|
|
36
|
+
*/
|
|
37
|
+
toggleMobileMenu(force?: boolean): Promise<void>;
|
|
38
|
+
private megedropdownStateHandler;
|
|
39
|
+
private getFocusableElements;
|
|
40
|
+
private keyboardHandler;
|
|
41
|
+
private handleScrollEvent;
|
|
42
|
+
private updateLocalHeaderHeight;
|
|
43
|
+
private updateScrollParentHeight;
|
|
44
|
+
private handleLinkClick;
|
|
45
|
+
private handleResize;
|
|
46
|
+
private handleScrollParentResize;
|
|
47
|
+
private handleLocalHeaderResize;
|
|
48
|
+
private switchLanguageSwitchMode;
|
|
49
|
+
private renderNavigation;
|
|
50
|
+
render(): any;
|
|
51
|
+
}
|
|
@@ -4,10 +4,8 @@ type Animation = (typeof ANIMATION_NAMES)[number];
|
|
|
4
4
|
* @class PostIcon - representing a stencil component
|
|
5
5
|
*/
|
|
6
6
|
export declare class PostIcon {
|
|
7
|
-
private
|
|
7
|
+
private readonly isSSR;
|
|
8
8
|
host: HTMLPostIconElement;
|
|
9
|
-
svgStyles: string;
|
|
10
|
-
svgOutput: string;
|
|
11
9
|
/**
|
|
12
10
|
* The name of the animation.
|
|
13
11
|
*/
|
|
@@ -17,35 +15,39 @@ export declare class PostIcon {
|
|
|
17
15
|
* The base path, where the icons are located (must be a public url).<br/>Leave this field empty to use the default cdn url.
|
|
18
16
|
*/
|
|
19
17
|
readonly base?: string | null;
|
|
20
|
-
validateBase(
|
|
18
|
+
validateBase(): void;
|
|
21
19
|
/**
|
|
22
20
|
* When set to `true`, the icon will be flipped horizontally.
|
|
23
21
|
*/
|
|
24
22
|
readonly flipH?: boolean;
|
|
25
|
-
validateFlipH(
|
|
23
|
+
validateFlipH(): void;
|
|
26
24
|
/**
|
|
27
25
|
* When set to `true`, the icon will be flipped vertically.
|
|
28
26
|
*/
|
|
29
27
|
readonly flipV?: boolean;
|
|
30
|
-
validateFlipV(
|
|
28
|
+
validateFlipV(): void;
|
|
31
29
|
/**
|
|
32
30
|
* The name/id of the icon (e.g. 1000, 1001, ...).
|
|
33
31
|
*/
|
|
34
32
|
readonly name: string;
|
|
35
|
-
validateName(
|
|
33
|
+
validateName(): void;
|
|
36
34
|
/**
|
|
37
35
|
* The number of degree for the css rotate transformation.
|
|
38
36
|
*/
|
|
39
37
|
readonly rotate?: number | null;
|
|
40
|
-
validateRotate(
|
|
38
|
+
validateRotate(): void;
|
|
41
39
|
/**
|
|
42
40
|
* The number for the css scale transformation.
|
|
43
41
|
*/
|
|
44
42
|
readonly scale?: number | null;
|
|
45
|
-
validateScale(
|
|
43
|
+
validateScale(): void;
|
|
44
|
+
private getUrl;
|
|
45
|
+
private getUrlDefinition;
|
|
46
|
+
private getUrlObject;
|
|
47
|
+
private definesDomain;
|
|
48
|
+
private definesSlug;
|
|
49
|
+
private getStyles;
|
|
46
50
|
componentDidLoad(): void;
|
|
47
|
-
componentWillRender(): void;
|
|
48
|
-
private setPath;
|
|
49
51
|
render(): any;
|
|
50
52
|
}
|
|
51
53
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { SwitchVariant } from '../post-language-switch/switch-variants';
|
|
2
3
|
/**
|
|
3
4
|
* @slot default - Slot for placing the content inside the anchor or button.
|
|
4
5
|
*/
|
|
@@ -8,28 +9,36 @@ export declare class PostLanguageOption {
|
|
|
8
9
|
* The ISO 639 language code, formatted according to [RFC 5646 (also known as BCP 47)](https://datatracker.ietf.org/doc/html/rfc5646). For example, "de".
|
|
9
10
|
*/
|
|
10
11
|
code: string;
|
|
11
|
-
validateCode(
|
|
12
|
+
validateCode(): void;
|
|
12
13
|
/**
|
|
13
14
|
* If set to `true`, the language option is considered the current language for the page.
|
|
14
15
|
*/
|
|
15
16
|
active: boolean;
|
|
16
|
-
validateActiveProp(
|
|
17
|
+
validateActiveProp(): void;
|
|
18
|
+
/**
|
|
19
|
+
* To communicate the variant prop from the parent (post-language-switch) component to the child (post-language-option) component. See parent docs for a description about the property itself.
|
|
20
|
+
*/
|
|
21
|
+
variant?: SwitchVariant | null;
|
|
17
22
|
/**
|
|
18
23
|
* The full name of the language. For example, "Deutsch".
|
|
19
24
|
*/
|
|
20
25
|
name: string;
|
|
21
|
-
validateName(
|
|
26
|
+
validateName(): void;
|
|
22
27
|
/**
|
|
23
28
|
* The URL used for the href attribute of the internal anchor.
|
|
24
29
|
* This field is optional; if not provided, a button will be used internally instead of an anchor.
|
|
25
30
|
*/
|
|
26
31
|
url: string;
|
|
27
|
-
validateUrl(
|
|
32
|
+
validateUrl(): void;
|
|
28
33
|
componentDidLoad(): void;
|
|
29
34
|
/**
|
|
30
35
|
* An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
|
|
31
36
|
*/
|
|
32
37
|
postChange: EventEmitter<string>;
|
|
38
|
+
/**
|
|
39
|
+
* An event emitted when the language option is initially active. The payload is the ISO 639 code of the language.
|
|
40
|
+
*/
|
|
41
|
+
postLanguageOptionInitiallyActive: EventEmitter<string>;
|
|
33
42
|
/**
|
|
34
43
|
* Selects the language option programmatically.
|
|
35
44
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SwitchVariant } from './switch-variants';
|
|
2
|
+
export declare class PostLanguageSwitch {
|
|
3
|
+
host: HTMLPostLanguageSwitchElement;
|
|
4
|
+
/**
|
|
5
|
+
* A title for the list of language options
|
|
6
|
+
*/
|
|
7
|
+
caption: string;
|
|
8
|
+
validateCaption(): void;
|
|
9
|
+
/**
|
|
10
|
+
* A descriptive text for the list of language options
|
|
11
|
+
*/
|
|
12
|
+
description: string;
|
|
13
|
+
validateDescription(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the component is rendered as a list or a menu
|
|
16
|
+
*/
|
|
17
|
+
variant: SwitchVariant;
|
|
18
|
+
validateVariant(): void;
|
|
19
|
+
/**
|
|
20
|
+
* The active language of the language switch
|
|
21
|
+
*/
|
|
22
|
+
activeLang: string;
|
|
23
|
+
componentDidLoad(): void;
|
|
24
|
+
handlePostChange(event: CustomEvent<string>): void;
|
|
25
|
+
/**
|
|
26
|
+
* Handles cases where the language switch is being rendered before options are available
|
|
27
|
+
* @param event Initially emitted by <post-langauge-option>
|
|
28
|
+
*/
|
|
29
|
+
handleInitiallyActive(event: CustomEvent<string>): void;
|
|
30
|
+
private get languageOptions();
|
|
31
|
+
private get activeLanguageOption();
|
|
32
|
+
private handleSlotChange;
|
|
33
|
+
private updateActiveLanguage;
|
|
34
|
+
private updateChildrenVariant;
|
|
35
|
+
private menuId;
|
|
36
|
+
private renderList;
|
|
37
|
+
private renderDropdown;
|
|
38
|
+
render(): any;
|
|
39
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Slot for placing the list title.
|
|
3
|
+
* @slot post-list-item - Slot for placing post-list-item components.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PostList {
|
|
6
|
+
host: HTMLPostListElement;
|
|
7
|
+
/**
|
|
8
|
+
* The unique title of the list that is also referenced in the labelledby
|
|
9
|
+
*/
|
|
10
|
+
titleId: string;
|
|
11
|
+
/**
|
|
12
|
+
* If `true`, the list title will be hidden. Otherwise, it will be displayed.`
|
|
13
|
+
*/
|
|
14
|
+
readonly titleHidden: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The list can become horizontal by setting `horizontal="true"` or just `horizontal`
|
|
17
|
+
*/
|
|
18
|
+
readonly horizontal: boolean;
|
|
19
|
+
private titleEl;
|
|
20
|
+
componentWillLoad(): void;
|
|
21
|
+
componentDidLoad(): void;
|
|
22
|
+
private checkTitle;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare class PostMainnavigation {
|
|
2
|
+
private header;
|
|
3
|
+
private navbar;
|
|
4
|
+
private rightScrollButton;
|
|
5
|
+
private leftScrollButton;
|
|
6
|
+
private scrollRepeatInterval;
|
|
7
|
+
private navbarDisableTimer;
|
|
8
|
+
private resizeObserver;
|
|
9
|
+
private mutationObserver;
|
|
10
|
+
host: HTMLPostMainnavigationElement;
|
|
11
|
+
canScrollLeft: boolean;
|
|
12
|
+
canScrollRight: boolean;
|
|
13
|
+
translationAmount: number;
|
|
14
|
+
/**
|
|
15
|
+
* Update navbar translation when 'translateAmount' changes and recalculate scrollability
|
|
16
|
+
*/
|
|
17
|
+
onTranslateAmountChanges(value: number): void;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a reference to the closest 'post-header' element when the main navigation is added to the DOM.
|
|
20
|
+
* This ensures that we can interact with the header for mobile menu toggling.
|
|
21
|
+
*/
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Cleans up references and disconnects the MutationObserver when the main navigation is removed from the DOM.
|
|
25
|
+
*/
|
|
26
|
+
disconnectedCallback(): void;
|
|
27
|
+
componentDidLoad(): void;
|
|
28
|
+
private fixLayoutShift;
|
|
29
|
+
private handleBackButtonClick;
|
|
30
|
+
/**
|
|
31
|
+
* Moves focus on the navbar and adjusts scrolling to bring focused element into view.
|
|
32
|
+
*/
|
|
33
|
+
private adjustTranslation;
|
|
34
|
+
/**
|
|
35
|
+
* Checks if scrolling is possible in either direction (left or right) and updates the state accordingly.
|
|
36
|
+
*/
|
|
37
|
+
private checkScrollability;
|
|
38
|
+
/**
|
|
39
|
+
* Returns whether scrolling is enabled in either the left or right direction.
|
|
40
|
+
*/
|
|
41
|
+
private get canScroll();
|
|
42
|
+
/**
|
|
43
|
+
* Handles the scrolling behavior when a user clicks on the left or right scroll buttons.
|
|
44
|
+
*/
|
|
45
|
+
private handleScrollButtonClick;
|
|
46
|
+
/**
|
|
47
|
+
* Stops the repeated scrolling when the mouse button is released.
|
|
48
|
+
*/
|
|
49
|
+
stopScrolling(): void;
|
|
50
|
+
private scroll;
|
|
51
|
+
private translateRightTo;
|
|
52
|
+
private translateLeftTo;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the navigation list container element
|
|
55
|
+
*/
|
|
56
|
+
private get navigationList();
|
|
57
|
+
/**
|
|
58
|
+
* Returns the navigation items
|
|
59
|
+
*/
|
|
60
|
+
private get navigationItems();
|
|
61
|
+
/**
|
|
62
|
+
* Temporarily disables interactions with the navbar during scrolling to prevent accidental clicks.
|
|
63
|
+
* Re-enables interactions after a brief delay to avoid blocking the user entirely.
|
|
64
|
+
*/
|
|
65
|
+
private disableNavbar;
|
|
66
|
+
/**
|
|
67
|
+
* Allows to translate the navbar without a transition
|
|
68
|
+
*/
|
|
69
|
+
private withoutTransition;
|
|
70
|
+
render(): any;
|
|
71
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class PostMegadropdown {
|
|
3
|
+
private firstFocusableEl;
|
|
4
|
+
private lastFocusableEl;
|
|
5
|
+
device: string;
|
|
6
|
+
host: HTMLPostMegadropdownElement;
|
|
7
|
+
/** Tracks the currently active dropdown instance. */
|
|
8
|
+
private static activeDropdown;
|
|
9
|
+
private breakpointChange;
|
|
10
|
+
/**
|
|
11
|
+
* Holds the current visibility state of the dropdown.
|
|
12
|
+
* This state is internally managed to track whether the dropdown is open (`true`) or closed (`false`),
|
|
13
|
+
* and updates automatically when the dropdown is toggled.
|
|
14
|
+
*/
|
|
15
|
+
isVisible: boolean;
|
|
16
|
+
/** Holds the current animation class. */
|
|
17
|
+
animationClass: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Emits when the dropdown is shown or hidden.
|
|
20
|
+
* The event payload is an object.
|
|
21
|
+
* `isVisible` is true when the dropdown gets opened and false when it gets closed
|
|
22
|
+
* `focusParent` determines whether after the closing of the mega dropdown, the focus should go back to the trigger parent or naturally go to the next focusable element in the page
|
|
23
|
+
**/
|
|
24
|
+
postToggleMegadropdown: EventEmitter<{
|
|
25
|
+
isVisible: boolean;
|
|
26
|
+
focusParent?: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
disconnectedCallback(): void;
|
|
29
|
+
componentWillRender(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Toggles the dropdown visibility based on its current state.
|
|
32
|
+
*/
|
|
33
|
+
toggle(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Displays the dropdown.
|
|
36
|
+
*/
|
|
37
|
+
show(): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Hides the dropdown with an animation.
|
|
40
|
+
*/
|
|
41
|
+
hide(focusParent?: boolean, forceClose?: boolean): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Sets focus to the first focusable element within the component.
|
|
44
|
+
*/
|
|
45
|
+
focusFirst(): Promise<void>;
|
|
46
|
+
connectedCallback(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Forces the dropdown to close without animation.
|
|
49
|
+
*/
|
|
50
|
+
private forceClose;
|
|
51
|
+
private handleAnimationEnd;
|
|
52
|
+
private handleClickOutside;
|
|
53
|
+
private addListeners;
|
|
54
|
+
private removeListeners;
|
|
55
|
+
private getFocusableElements;
|
|
56
|
+
private keyboardHandler;
|
|
57
|
+
private handleTabOutside;
|
|
58
|
+
render(): any;
|
|
59
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare class PostMegadropdownTrigger {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the mega dropdown element that this trigger is linked to. Used to open and close the specified mega dropdown.
|
|
4
|
+
*/
|
|
5
|
+
for: string;
|
|
6
|
+
host: HTMLPostMegadropdownTriggerElement;
|
|
7
|
+
/**
|
|
8
|
+
* Manages the accessibility attribute `aria-expanded` to indicate whether the associated mega dropdown is expanded or collapsed.
|
|
9
|
+
*/
|
|
10
|
+
ariaExpanded: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Reference to the slotted button within the trigger, if present.
|
|
13
|
+
* Used to manage click and key events for mega dropdown control.
|
|
14
|
+
*/
|
|
15
|
+
private slottedButton;
|
|
16
|
+
/**
|
|
17
|
+
* Tracks whether this trigger's dropdown was expanded before a state change.
|
|
18
|
+
* Used to determine if this trigger should handle focus when its dropdown closes.
|
|
19
|
+
*/
|
|
20
|
+
private wasExpanded;
|
|
21
|
+
/**
|
|
22
|
+
* Watch for changes to the `for` property to validate its type and ensure it is a string.
|
|
23
|
+
* @param forValue - The new value of the `for` property.
|
|
24
|
+
*/
|
|
25
|
+
validateControlFor(): void;
|
|
26
|
+
private get megadropdown();
|
|
27
|
+
private handleToggle;
|
|
28
|
+
private handleKeyDown;
|
|
29
|
+
componentDidLoad(): void;
|
|
30
|
+
render(): any;
|
|
31
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Placement } from '@floating-ui/dom';
|
|
3
|
+
export declare class PostMenu {
|
|
4
|
+
private popoverRef;
|
|
5
|
+
private lastFocusedElement;
|
|
6
|
+
private readonly KEYCODES;
|
|
7
|
+
host: HTMLPostMenuElement;
|
|
8
|
+
/**
|
|
9
|
+
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
10
|
+
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
11
|
+
* towards the viewport if they would overlap edge boundaries.
|
|
12
|
+
*/
|
|
13
|
+
readonly placement?: Placement;
|
|
14
|
+
/**
|
|
15
|
+
* Holds the current visibility state of the menu.
|
|
16
|
+
* This state is internally managed to track whether the menu is open (`true`) or closed (`false`),
|
|
17
|
+
* and updates automatically when the menu is toggled.
|
|
18
|
+
*/
|
|
19
|
+
isVisible: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Emits when the menu is shown or hidden.
|
|
22
|
+
* The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
|
|
23
|
+
**/
|
|
24
|
+
toggleMenu: EventEmitter<boolean>;
|
|
25
|
+
private root?;
|
|
26
|
+
connectedCallback(): void;
|
|
27
|
+
disconnectedCallback(): void;
|
|
28
|
+
componentDidLoad(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Toggles the menu visibility based on its current state.
|
|
31
|
+
*/
|
|
32
|
+
toggle(target: HTMLElement): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Displays the popover menu, focusing the first menu item.
|
|
35
|
+
*
|
|
36
|
+
* @param target - The HTML element relative to which the popover menu should be displayed.
|
|
37
|
+
*/
|
|
38
|
+
show(target: HTMLElement): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Hides the popover menu and restores focus to the previously focused element.
|
|
41
|
+
*/
|
|
42
|
+
hide(): Promise<void>;
|
|
43
|
+
private handleKeyDown;
|
|
44
|
+
private handleClick;
|
|
45
|
+
private controlKeyDownHandler;
|
|
46
|
+
private getSlottedItems;
|
|
47
|
+
render(): any;
|
|
48
|
+
}
|