@swisspost/design-system-components 9.0.0 → 10.0.0-next.37
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/breakpoints-cdf1b747.js +59 -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/event-guard-efabc84f.js +47 -0
- package/dist/cjs/fade-72d5ef55.js +14 -0
- package/dist/cjs/get-root-8102fecd.js +17 -0
- package/dist/cjs/index-23e36ff7.js +37 -0
- package/dist/cjs/{index-e1f32cce.js → index-b60129c4.js} +35 -15
- package/dist/cjs/index.browser-4af21c17.js +16 -0
- package/dist/cjs/index.cjs.js +57 -28
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/long-press-event-6e62d113.js +266 -0
- package/dist/cjs/{package-3ed88bb9.js → package-8121f093.js} +1 -1
- package/dist/cjs/{post-accordion-9ef382e8.js → post-accordion-beac7c9f.js} +11 -12
- package/dist/cjs/post-accordion-item-4846fbee.js +64 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +10 -6
- package/dist/cjs/post-accordion.cjs.entry.js +6 -4
- package/dist/cjs/post-avatar-a36991fb.js +145 -0
- package/dist/cjs/post-avatar.cjs.entry.js +14 -0
- package/dist/cjs/post-back-to-top-32aa9017.js +96 -0
- package/dist/cjs/post-back-to-top.cjs.entry.js +16 -0
- package/dist/cjs/post-banner-be0e8909.js +92 -0
- package/dist/cjs/post-banner.cjs.entry.js +20 -0
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +18 -0
- package/dist/cjs/post-breadcrumbs-6ef82a41.js +120 -0
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +13 -0
- package/dist/cjs/post-card-control-fe919333.js +269 -0
- package/dist/cjs/post-card-control.cjs.entry.js +6 -5
- package/dist/cjs/post-closebutton_15.cjs.entry.js +36 -0
- package/dist/cjs/{post-collapsible-trigger-1764e6dc.js → post-collapsible-trigger-f42be607.js} +62 -76
- package/dist/cjs/post-collapsible_2.cjs.entry.js +11 -7
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-footer-5179aa17.js +38 -0
- package/dist/cjs/post-footer.cjs.entry.js +12 -0
- package/dist/cjs/post-linkarea-27125078.js +30 -0
- package/dist/cjs/post-linkarea.cjs.entry.js +11 -0
- package/dist/cjs/post-menu-item-d78a9121.js +68 -0
- package/dist/cjs/post-popover-feb1e773.js +135 -0
- package/dist/cjs/post-popover.cjs.entry.js +4 -3
- package/dist/cjs/{post-rating-d5073d8d.js → post-rating-6d153a2c.js} +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-e4532918.js +34 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +6 -4
- package/dist/cjs/{post-tab-panel-97b79ecd.js → post-tab-panel-40df21ad.js} +5 -4
- package/dist/cjs/post-tab-panel.cjs.entry.js +4 -3
- package/dist/cjs/{post-tabs-834497f2.js → post-tabs-45db2696.js} +14 -16
- package/dist/cjs/post-tabs.cjs.entry.js +5 -4
- package/dist/cjs/post-tag-0967bb1e.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/post-togglebutton-42b7d166.js +4494 -0
- package/dist/cjs/{post-tooltip-20ebe011.js → post-tooltip-f833d51d.js} +10 -6
- package/dist/cjs/{post-tooltip-trigger-6f4c9748.js → post-tooltip-trigger-3ceac010.js} +17 -280
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5 -4
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -4
- package/dist/cjs/slide-cd1f09b3.js +28 -0
- package/dist/collection/animations/collapse.js +8 -6
- package/dist/collection/animations/fade.js +6 -2
- package/dist/collection/animations/slide.js +23 -0
- package/dist/collection/collection-manifest.json +22 -3
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +8 -10
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +30 -16
- package/dist/collection/components/post-avatar/post-avatar.css +1 -0
- package/dist/collection/components/post-avatar/post-avatar.js +233 -0
- 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 +127 -0
- package/dist/collection/components/post-banner/banner-types.js +1 -0
- package/dist/collection/components/post-banner/post-banner.css +1 -0
- package/dist/collection/components/{post-alert/post-alert.js → post-banner/post-banner.js} +44 -72
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -0
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +96 -0
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -0
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +160 -0
- package/dist/collection/components/post-card-control/post-card-control.css +1 -31
- package/dist/collection/components/post-card-control/post-card-control.js +20 -24
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -0
- package/dist/collection/components/post-closebutton/post-closebutton.js +23 -0
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +6 -3
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +43 -45
- package/dist/collection/components/post-footer/post-footer.css +1 -0
- package/dist/collection/components/post-footer/post-footer.js +75 -0
- package/dist/collection/components/post-header/post-header.css +1 -0
- package/dist/collection/components/post-header/post-header.js +320 -0
- package/dist/collection/components/post-icon/post-icon.js +58 -55
- package/dist/collection/components/post-language-option/post-language-option.css +1 -0
- package/dist/collection/components/post-language-option/post-language-option.js +237 -0
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -0
- package/dist/collection/components/post-language-switch/post-language-switch.js +186 -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 +1 -0
- package/dist/collection/components/post-list/post-list.js +88 -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 +2 -2
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -0
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +184 -0
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -0
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +275 -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 +133 -0
- package/dist/collection/components/post-menu/post-menu.css +1 -0
- package/dist/collection/components/post-menu/post-menu.js +294 -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 +120 -0
- package/dist/collection/components/post-popover/post-popover.css +1 -31
- package/dist/collection/components/post-popover/post-popover.js +16 -13
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -31
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +39 -6
- package/dist/collection/components/post-rating/post-rating.css +1 -31
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -31
- package/dist/collection/components/post-tab-header/post-tab-header.js +6 -5
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -3
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +7 -15
- package/dist/collection/components/post-tag/post-tag.css +1 -31
- package/dist/collection/components/post-tag/post-tag.js +2 -2
- package/dist/collection/components/post-togglebutton/post-togglebutton.css +1 -0
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +74 -0
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +6 -3
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +14 -14
- package/dist/collection/index.js +21 -2
- package/dist/collection/utils/attribute-observer.js +6 -5
- package/dist/collection/utils/breakpoints.js +52 -0
- package/dist/collection/utils/component-on-ready.js +4 -4
- package/dist/collection/utils/debounce.js +2 -1
- package/dist/collection/utils/environment.js +2 -0
- package/dist/collection/utils/event-guard.js +43 -0
- package/dist/collection/utils/get-focusable-children.js +33 -0
- package/dist/collection/utils/get-root.js +6 -1
- package/dist/collection/utils/index.js +5 -0
- package/dist/collection/utils/is-motion-reduced.js +2 -1
- 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/breakpoints.js +56 -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/event-guard.js +45 -0
- package/dist/components/fade.js +6 -2
- package/dist/components/get-focusable-children.js +35 -0
- package/dist/components/get-root.js +15 -0
- package/dist/components/index.browser.js +14 -0
- package/dist/components/index.js +21 -2
- package/dist/components/index2.js +25 -12
- package/dist/components/long-press-event.js +264 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +37 -18
- package/dist/components/post-accordion2.js +8 -9
- package/dist/components/post-avatar.d.ts +11 -0
- package/dist/components/post-avatar.js +6 -0
- package/dist/components/post-avatar2.js +170 -0
- 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 +121 -0
- package/dist/components/post-banner.d.ts +11 -0
- package/dist/components/post-banner.js +6 -0
- package/dist/components/post-banner2.js +127 -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-breadcrumbs.d.ts +11 -0
- package/dist/components/post-breadcrumbs.js +6 -0
- package/dist/components/post-breadcrumbs2.js +177 -0
- package/dist/components/post-card-control2.js +16 -19
- package/dist/components/post-closebutton.d.ts +11 -0
- package/dist/components/post-closebutton.js +6 -0
- package/dist/components/post-closebutton2.js +39 -0
- package/dist/components/post-collapsible-trigger2.js +47 -64
- package/dist/components/post-collapsible2.js +17 -12
- 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 +399 -0
- package/dist/components/post-icon2.js +59 -55
- package/dist/components/post-language-option.d.ts +11 -0
- package/dist/components/post-language-option.js +6 -0
- package/dist/components/post-language-option2.js +103 -0
- 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 +145 -0
- package/dist/components/post-linkarea.d.ts +11 -0
- package/dist/components/post-linkarea.js +6 -0
- package/dist/components/post-linkarea2.js +43 -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 +36 -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 +54 -0
- package/dist/components/post-logo2.js +4 -3
- package/dist/components/post-mainnavigation.d.ts +11 -0
- package/dist/components/post-mainnavigation.js +6 -0
- package/dist/components/post-mainnavigation2.js +183 -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 +121 -0
- package/dist/components/post-megadropdown.d.ts +11 -0
- package/dist/components/post-megadropdown.js +6 -0
- package/dist/components/post-megadropdown2.js +190 -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 +192 -0
- package/dist/components/post-popover2.js +20 -16
- package/dist/components/post-popovercontainer2.js +788 -73
- package/dist/components/post-rating2.js +2 -2
- package/dist/components/post-tab-header2.js +8 -6
- package/dist/components/post-tab-panel2.js +4 -3
- package/dist/components/post-tabs2.js +11 -13
- package/dist/components/post-tag2.js +2 -2
- package/dist/components/post-togglebutton.d.ts +11 -0
- package/dist/components/post-togglebutton.js +6 -0
- package/dist/components/post-togglebutton2.js +62 -0
- package/dist/components/post-tooltip-trigger2.js +14 -277
- package/dist/components/post-tooltip2.js +7 -3
- package/dist/components/slide.js +25 -0
- package/dist/docs.json +1977 -287
- package/dist/esm/breakpoints-7812702e.js +56 -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/event-guard-538ee077.js +45 -0
- package/dist/esm/fade-1f3cacf4.js +11 -0
- package/dist/esm/get-root-1b1af46f.js +15 -0
- package/dist/esm/index-8f8fe5b0.js +32 -0
- package/dist/esm/{index-e1b64755.js → index-f4d19816.js} +35 -15
- package/dist/esm/index.browser-ff103197.js +14 -0
- package/dist/esm/index.js +33 -23
- package/dist/esm/loader.js +3 -3
- package/dist/esm/long-press-event-04d24397.js +264 -0
- package/dist/esm/package-d9237b44.js +3 -0
- package/dist/esm/{post-accordion-ad570427.js → post-accordion-fdcf7205.js} +11 -12
- package/dist/esm/post-accordion-item-e11e3804.js +62 -0
- package/dist/esm/post-accordion-item.entry.js +10 -6
- package/dist/esm/post-accordion.entry.js +6 -4
- package/dist/esm/post-avatar-d360c6d2.js +143 -0
- package/dist/esm/post-avatar.entry.js +6 -0
- package/dist/esm/post-back-to-top-85796c8b.js +94 -0
- package/dist/esm/post-back-to-top.entry.js +8 -0
- package/dist/esm/post-banner-a3090f67.js +90 -0
- package/dist/esm/post-banner.entry.js +12 -0
- package/dist/esm/post-breadcrumb-item_2.entry.js +9 -0
- package/dist/esm/post-breadcrumbs-15ec5a26.js +118 -0
- package/dist/esm/post-breadcrumbs.entry.js +5 -0
- package/dist/esm/post-card-control-6142534e.js +267 -0
- package/dist/esm/post-card-control.entry.js +6 -5
- package/dist/esm/post-closebutton_15.entry.js +14 -0
- package/dist/esm/{post-collapsible-trigger-45fe328a.js → post-collapsible-trigger-68306358.js} +62 -76
- package/dist/esm/post-collapsible_2.entry.js +11 -7
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-footer-d2a3270e.js +36 -0
- package/dist/esm/post-footer.entry.js +4 -0
- package/dist/esm/post-linkarea-64998c67.js +28 -0
- package/dist/esm/post-linkarea.entry.js +3 -0
- package/dist/esm/post-menu-item-95a0a647.js +65 -0
- package/dist/esm/post-popover-c5f81087.js +133 -0
- package/dist/esm/post-popover.entry.js +4 -3
- package/dist/esm/{post-rating-f60024fa.js → post-rating-7bfedafb.js} +4 -4
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-08033da4.js +32 -0
- package/dist/esm/post-tab-header.entry.js +6 -4
- package/dist/esm/{post-tab-panel-0ddb05a2.js → post-tab-panel-be701793.js} +5 -4
- package/dist/esm/post-tab-panel.entry.js +4 -3
- package/dist/esm/{post-tabs-ab7853cf.js → post-tabs-c69e2842.js} +14 -16
- package/dist/esm/post-tabs.entry.js +5 -4
- package/dist/esm/post-tag-ebac7f3e.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/post-togglebutton-706e3af0.js +4478 -0
- package/dist/esm/{post-tooltip-c03cd719.js → post-tooltip-9a195d47.js} +10 -6
- package/dist/esm/{post-tooltip-trigger-1fefc8ad.js → post-tooltip-trigger-7d6f234b.js} +17 -280
- package/dist/esm/post-tooltip-trigger.entry.js +5 -4
- package/dist/esm/post-tooltip.entry.js +5 -4
- package/dist/esm/slide-cd2850ee.js +25 -0
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-034715ec.js +1 -0
- package/dist/post-components/p-0717fe4c.js +1 -0
- package/dist/post-components/p-0889c759.js +1 -0
- package/dist/post-components/p-0c03547b.js +1 -0
- package/dist/post-components/p-0de8d05f.js +1 -0
- package/dist/post-components/p-1373a79b.entry.js +1 -0
- package/dist/post-components/p-17dc4170.js +8 -0
- package/dist/post-components/p-181c73d5.js +1 -0
- package/dist/post-components/p-1a21fd8d.js +1 -0
- package/dist/post-components/p-1ab3eba4.entry.js +1 -0
- package/dist/post-components/p-2d6c0670.js +1 -0
- package/dist/post-components/p-2dc0a2d0.js +1 -0
- package/dist/post-components/p-35ad2e11.entry.js +1 -0
- package/dist/post-components/p-368c473a.js +1 -0
- package/dist/post-components/p-38f778a7.entry.js +1 -0
- package/dist/post-components/p-39a8df3c.entry.js +1 -0
- package/dist/post-components/p-3c7f6003.js +1 -0
- package/dist/post-components/p-474a41bc.entry.js +1 -0
- package/dist/post-components/p-64e3de38.js +1 -0
- package/dist/post-components/p-69bc8eaf.entry.js +1 -0
- package/dist/post-components/p-6b31a76a.js +1 -0
- package/dist/post-components/p-722ffaae.js +1 -0
- package/dist/post-components/p-72310bf0.entry.js +1 -0
- package/dist/post-components/p-7709c14a.js +1 -0
- package/dist/post-components/p-804b61b7.entry.js +1 -0
- package/dist/post-components/p-85fdc2d3.js +1 -0
- package/dist/post-components/p-89247caa.js +1 -0
- package/dist/post-components/p-89dc67c7.entry.js +1 -0
- package/dist/post-components/p-8db32dab.js +8 -0
- package/dist/post-components/p-8f7f5200.entry.js +1 -0
- package/dist/post-components/p-964f9581.js +1 -0
- package/dist/post-components/p-9b052461.js +1 -0
- package/dist/post-components/{p-3eab790d.js → p-9e461613.js} +2 -2
- package/dist/post-components/p-a52b2d34.js +1 -0
- package/dist/post-components/p-ab566526.js +1 -0
- package/dist/post-components/p-b648e537.entry.js +1 -0
- package/dist/post-components/p-bc33a6d9.js +1 -0
- package/dist/post-components/p-bcfdbd0b.entry.js +1 -0
- package/dist/post-components/p-beb67979.js +1 -0
- package/dist/post-components/p-c41868b1.js +1 -0
- package/dist/post-components/p-c65f32b0.js +1 -0
- package/dist/post-components/p-c71700a7.js +1 -0
- package/dist/post-components/p-cb027003.js +1 -0
- package/dist/post-components/p-cc5b1437.js +1 -0
- package/dist/post-components/p-ceda889e.entry.js +1 -0
- package/dist/post-components/p-d45df336.js +1 -0
- package/dist/post-components/p-de4d4274.js +1 -0
- package/dist/post-components/p-deb9efcf.entry.js +1 -0
- package/dist/post-components/p-e585c6fe.js +1 -0
- package/dist/post-components/p-e9f1cc46.entry.js +1 -0
- package/dist/post-components/p-ee4e776d.entry.js +1 -0
- package/dist/post-components/p-ee7c3bcc.entry.js +1 -0
- package/dist/post-components/p-f56482fa.entry.js +1 -0
- package/dist/post-components/p-f8c652ce.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 -0
- package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +8 -2
- package/dist/types/components/post-avatar/post-avatar.d.ts +51 -0
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +21 -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-item/post-breadcrumb-item.d.ts +20 -0
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +30 -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-collapsible-trigger/post-collapsible-trigger.d.ts +9 -14
- package/dist/types/components/post-footer/post-footer.d.ts +23 -0
- package/dist/types/components/post-header/post-header.d.ts +52 -0
- package/dist/types/components/post-icon/post-icon.d.ts +10 -6
- package/dist/types/components/post-language-option/post-language-option.d.ts +49 -0
- 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 +46 -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 +33 -0
- package/dist/types/components/post-menu/post-menu.d.ts +49 -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-popover/post-popover.d.ts +6 -4
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +9 -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 +2 -2
- package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +15 -0
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +1 -0
- package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +0 -1
- package/dist/types/components.d.ts +603 -50
- 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 +22 -3
- package/dist/types/popover-fn.d.ts +11 -0
- 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/environment.d.ts +2 -0
- package/dist/types/utils/event-guard.d.ts +4 -0
- package/dist/types/utils/get-focusable-children.d.ts +1 -0
- package/dist/types/utils/get-root.d.ts +5 -1
- package/dist/types/utils/index.d.ts +5 -0
- 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/breakpoints.js +56 -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/event-guard.js +45 -0
- package/loaders/fade.js +6 -2
- package/loaders/get-focusable-children.js +35 -0
- package/loaders/get-root.js +15 -0
- package/loaders/index.browser.js +14 -0
- package/loaders/index.d.ts +40 -2
- package/loaders/index.js +22 -2
- package/loaders/index2.js +25 -12
- package/loaders/long-press-event.js +264 -0
- 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 +8 -9
- package/loaders/post-avatar.d.ts +11 -0
- package/loaders/post-avatar.js +173 -0
- package/loaders/post-back-to-top.d.ts +11 -0
- package/loaders/post-back-to-top.js +124 -0
- package/loaders/post-banner.d.ts +11 -0
- package/loaders/post-banner.js +130 -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-breadcrumbs.d.ts +11 -0
- package/loaders/post-breadcrumbs.js +180 -0
- package/loaders/post-card-control.js +16 -19
- package/loaders/post-closebutton.d.ts +11 -0
- package/loaders/post-closebutton.js +42 -0
- package/loaders/post-collapsible-trigger2.js +47 -64
- package/loaders/post-collapsible2.js +16 -11
- 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 +402 -0
- package/loaders/post-icon2.js +59 -55
- package/loaders/post-language-option.d.ts +11 -0
- package/loaders/post-language-option.js +106 -0
- package/loaders/post-language-switch.d.ts +11 -0
- package/loaders/post-language-switch.js +148 -0
- package/loaders/post-linkarea.d.ts +11 -0
- package/loaders/post-linkarea.js +46 -0
- package/loaders/post-list-item.d.ts +11 -0
- package/loaders/post-list-item.js +39 -0
- package/loaders/{post-alert.d.ts → post-list.d.ts} +4 -4
- package/loaders/post-list.js +57 -0
- package/loaders/post-logo.js +5 -4
- package/loaders/post-mainnavigation.d.ts +11 -0
- package/loaders/post-mainnavigation.js +186 -0
- package/loaders/post-megadropdown-trigger.d.ts +11 -0
- package/loaders/post-megadropdown-trigger.js +124 -0
- package/loaders/post-megadropdown.d.ts +11 -0
- package/loaders/post-megadropdown.js +193 -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 +192 -0
- package/loaders/post-popover.js +20 -16
- package/loaders/post-popovercontainer2.js +788 -73
- package/loaders/post-rating.js +2 -2
- package/loaders/post-tab-header.js +8 -6
- package/loaders/post-tab-panel.js +4 -3
- package/loaders/post-tabs.js +11 -13
- package/loaders/post-tag.js +2 -2
- package/loaders/post-togglebutton.d.ts +11 -0
- package/loaders/post-togglebutton.js +65 -0
- package/loaders/post-tooltip-trigger.js +14 -277
- package/loaders/post-tooltip.js +7 -3
- package/loaders/slide.js +25 -0
- package/package.json +45 -33
- package/dist/cjs/check-non-empty-eeaa8f77.js +0 -11
- package/dist/cjs/check-one-of-f4f5d0c0.js +0 -8
- package/dist/cjs/check-type-64af82a9.js +0 -16
- package/dist/cjs/fade-35a3633a.js +0 -10
- package/dist/cjs/index-824d2b71.js +0 -39
- package/dist/cjs/post-accordion-item-5f685bee.js +0 -52
- package/dist/cjs/post-alert-88adc668.js +0 -99
- package/dist/cjs/post-alert.cjs.entry.js +0 -17
- package/dist/cjs/post-card-control-c6e5c427.js +0 -272
- package/dist/cjs/post-icon-f735da00.js +0 -139
- package/dist/cjs/post-icon.cjs.entry.js +0 -16
- package/dist/cjs/post-logo-2cd8ae98.js +0 -39
- package/dist/cjs/post-logo.cjs.entry.js +0 -15
- package/dist/cjs/post-popover-36c854a4.js +0 -131
- package/dist/cjs/post-popovercontainer-cb4793c1.js +0 -2281
- package/dist/cjs/post-popovercontainer.cjs.entry.js +0 -11
- package/dist/cjs/post-tab-header-b756d9b1.js +0 -32
- package/dist/cjs/post-tag-c70fb945.js +0 -47
- package/dist/collection/components/post-alert/alert-types.js +0 -1
- package/dist/collection/components/post-alert/post-alert.css +0 -35
- 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/check-type-8828dbe4.js +0 -14
- package/dist/esm/fade-7fd71785.js +0 -7
- package/dist/esm/index-69587a51.js +0 -34
- package/dist/esm/package-983f957d.js +0 -3
- package/dist/esm/post-accordion-item-4db0aa2a.js +0 -50
- package/dist/esm/post-alert-1e9fbdfa.js +0 -97
- package/dist/esm/post-alert.entry.js +0 -9
- package/dist/esm/post-card-control-ccb189a8.js +0 -270
- package/dist/esm/post-icon-3fc4dd7d.js +0 -137
- package/dist/esm/post-icon.entry.js +0 -8
- package/dist/esm/post-logo-e6cdea13.js +0 -37
- package/dist/esm/post-logo.entry.js +0 -7
- package/dist/esm/post-popover-afdf4906.js +0 -129
- package/dist/esm/post-popovercontainer-b19b7606.js +0 -2279
- package/dist/esm/post-popovercontainer.entry.js +0 -3
- package/dist/esm/post-tab-header-333e15d5.js +0 -30
- package/dist/esm/post-tag-4a7d14b9.js +0 -45
- package/dist/post-components/p-0a45da5e.entry.js +0 -1
- package/dist/post-components/p-12e82863.entry.js +0 -1
- package/dist/post-components/p-1386b77d.js +0 -1
- package/dist/post-components/p-1528b798.js +0 -1
- package/dist/post-components/p-18dc1299.entry.js +0 -1
- package/dist/post-components/p-1a8f6c84.entry.js +0 -1
- package/dist/post-components/p-256453ca.js +0 -1
- package/dist/post-components/p-2737eaf5.js +0 -1
- package/dist/post-components/p-3272ebad.js +0 -1
- package/dist/post-components/p-3596035e.js +0 -1
- package/dist/post-components/p-3668f4fa.entry.js +0 -1
- package/dist/post-components/p-375845d4.js +0 -1
- package/dist/post-components/p-381de59d.entry.js +0 -1
- package/dist/post-components/p-4a3f67ab.js +0 -1
- package/dist/post-components/p-4e68c514.js +0 -1
- package/dist/post-components/p-4eb5d9a1.entry.js +0 -1
- package/dist/post-components/p-611b3c41.js +0 -1
- package/dist/post-components/p-61a7d216.js +0 -1
- package/dist/post-components/p-788e64fb.js +0 -1
- package/dist/post-components/p-7d5b41d1.js +0 -1
- package/dist/post-components/p-82ea24e7.js +0 -1
- package/dist/post-components/p-85c4d04f.js +0 -1
- package/dist/post-components/p-85c6d001.entry.js +0 -1
- package/dist/post-components/p-8e555dda.js +0 -15
- package/dist/post-components/p-962a6f36.entry.js +0 -1
- package/dist/post-components/p-a76c71bc.js +0 -1
- package/dist/post-components/p-a7e8fd41.entry.js +0 -1
- package/dist/post-components/p-ac216bd0.entry.js +0 -1
- package/dist/post-components/p-b095519d.js +0 -1
- package/dist/post-components/p-b17ecbee.entry.js +0 -1
- package/dist/post-components/p-bb4227ad.entry.js +0 -1
- package/dist/post-components/p-bc294d0b.js +0 -1
- package/dist/post-components/p-d0b3c5d3.entry.js +0 -1
- package/dist/post-components/p-d4e148d8.entry.js +0 -1
- package/dist/post-components/p-d9809281.js +0 -1
- package/dist/post-components/p-eb1e7a49.js +0 -1
- package/dist/post-components/p-f35291d5.entry.js +0 -1
- package/dist/post-components/p-fc3bfe08.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,51 @@
|
|
|
1
|
+
declare enum AvatarType {
|
|
2
|
+
Slotted = "slotted",
|
|
3
|
+
Image = "image",
|
|
4
|
+
Initials = "initials",
|
|
5
|
+
Null
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @slot default - Slot for inserting a custom image as avatar.
|
|
9
|
+
*/
|
|
10
|
+
export declare class PostAvatar {
|
|
11
|
+
private static INTERNAL_USERID_IMAGE_SRC;
|
|
12
|
+
host: HTMLPostAvatarElement;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the users firstname.
|
|
15
|
+
*/
|
|
16
|
+
readonly firstname: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the users lastname.
|
|
19
|
+
*/
|
|
20
|
+
readonly lastname?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the company internal userId.<div className="mb-4 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
23
|
+
*/
|
|
24
|
+
readonly userid?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the users email address associated with a gravatar profile picture.
|
|
27
|
+
*/
|
|
28
|
+
readonly email?: string;
|
|
29
|
+
slottedImage: HTMLImageElement;
|
|
30
|
+
avatarType: AvatarType;
|
|
31
|
+
imageUrl: string;
|
|
32
|
+
imageAlt: string;
|
|
33
|
+
initials: string;
|
|
34
|
+
validateFirstname(): void;
|
|
35
|
+
private getAvatar;
|
|
36
|
+
private getImageByProp;
|
|
37
|
+
private fetchImageByUserId;
|
|
38
|
+
private fetchImageByEmail;
|
|
39
|
+
private getAvatarByInitials;
|
|
40
|
+
private getNames;
|
|
41
|
+
private getInitials;
|
|
42
|
+
private getStorageItem;
|
|
43
|
+
private setStorageItem;
|
|
44
|
+
private removeStorageItem;
|
|
45
|
+
private cryptify;
|
|
46
|
+
private onSlotDefaultChange;
|
|
47
|
+
componentWillRender(): void;
|
|
48
|
+
componentDidLoad(): void;
|
|
49
|
+
render(): any;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class PostBackToTop {
|
|
2
|
+
host: HTMLPostBackToTopElement;
|
|
3
|
+
/**
|
|
4
|
+
* The label of the back-to-top button, intended solely for accessibility purposes.
|
|
5
|
+
* This label is always hidden from view.
|
|
6
|
+
**/
|
|
7
|
+
label: string;
|
|
8
|
+
belowFold: boolean;
|
|
9
|
+
private translateY;
|
|
10
|
+
private isBelowFold;
|
|
11
|
+
private readonly handleScroll;
|
|
12
|
+
watchBelowFold(newValue: boolean): void;
|
|
13
|
+
private scrollToTop;
|
|
14
|
+
private getSecondPixelValue;
|
|
15
|
+
private animateButton;
|
|
16
|
+
validateLabel(): void;
|
|
17
|
+
componentWillLoad(): void;
|
|
18
|
+
componentDidLoad(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
render(): any;
|
|
21
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare class PostBreadcrumbs {
|
|
2
|
+
host: HTMLPostBreadcrumbsElement;
|
|
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 breadcrumbsNavRef?;
|
|
18
|
+
private lastItem;
|
|
19
|
+
validateUrl(): void;
|
|
20
|
+
componentWillLoad(): void;
|
|
21
|
+
componentDidLoad(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
private waitForBreadcrumbsRef;
|
|
24
|
+
private updateBreadcrumbItems;
|
|
25
|
+
private handleResize;
|
|
26
|
+
private getParentWidth;
|
|
27
|
+
private checkConcatenation;
|
|
28
|
+
private handleBreadcrumbItemClick;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|
|
@@ -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="mb-4 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();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class PostCollapsibleTrigger {
|
|
2
2
|
private trigger?;
|
|
3
|
-
private observer;
|
|
3
|
+
private readonly observer;
|
|
4
4
|
private root?;
|
|
5
5
|
host: HTMLPostCollapsibleTriggerElement;
|
|
6
6
|
/**
|
|
@@ -10,29 +10,23 @@ export declare class PostCollapsibleTrigger {
|
|
|
10
10
|
/**
|
|
11
11
|
* Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
validateAriaAttributes(): void;
|
|
14
14
|
/**
|
|
15
15
|
* Initiate a mutation observer that updates the trigger whenever necessary
|
|
16
16
|
*/
|
|
17
17
|
connectedCallback(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Attach a "postToggle" event listener to the root node
|
|
20
|
-
* to update the trigger's "aria-expanded" attribute whenever the controlled post-collapsible is toggled
|
|
21
|
-
*/
|
|
22
|
-
componentWillLoad(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Add the "data-version" to the host element and set the trigger
|
|
25
|
-
*/
|
|
26
18
|
componentDidLoad(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Disconnect the mutation observer
|
|
29
|
-
*/
|
|
30
19
|
disconnectedCallback(): void;
|
|
31
20
|
/**
|
|
32
21
|
* Update the "aria-controls" and "aria-expanded" attributes on the trigger button
|
|
33
22
|
*/
|
|
34
23
|
update(): Promise<void>;
|
|
35
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Private handler for the 'postToggle' event.
|
|
26
|
+
* This updates the trigger's "aria-expanded" attribute based on the event detail.
|
|
27
|
+
*/
|
|
28
|
+
private handlePostToggle;
|
|
29
|
+
private updateAriaAttributes;
|
|
36
30
|
/**
|
|
37
31
|
* Toggle the post-collapsible controlled by the trigger
|
|
38
32
|
*/
|
|
@@ -45,4 +39,5 @@ export declare class PostCollapsibleTrigger {
|
|
|
45
39
|
* Find the button and add the proper event listener and ARIA attributes to it
|
|
46
40
|
*/
|
|
47
41
|
private setTrigger;
|
|
42
|
+
render(): any;
|
|
48
43
|
}
|
|
@@ -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
|
+
disconnectedCallback(): void;
|
|
19
|
+
private readonly breakpointChange;
|
|
20
|
+
private renderAccordion;
|
|
21
|
+
private renderGrid;
|
|
22
|
+
render(): any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
componentWillRender(): void;
|
|
33
|
+
componentDidRender(): void;
|
|
34
|
+
disconnectedCallback(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Toggles the mobile navigation.
|
|
37
|
+
*/
|
|
38
|
+
toggleMobileMenu(force?: boolean): Promise<void>;
|
|
39
|
+
private megedropdownStateHandler;
|
|
40
|
+
private getFocusableElements;
|
|
41
|
+
private keyboardHandler;
|
|
42
|
+
private handleScrollEvent;
|
|
43
|
+
private updateLocalHeaderHeight;
|
|
44
|
+
private updateScrollParentHeight;
|
|
45
|
+
private handleLinkClick;
|
|
46
|
+
private handleResize;
|
|
47
|
+
private handleScrollParentResize;
|
|
48
|
+
private handleLocalHeaderResize;
|
|
49
|
+
private switchLanguageSwitchMode;
|
|
50
|
+
private renderNavigation;
|
|
51
|
+
render(): any;
|
|
52
|
+
}
|
|
@@ -14,33 +14,37 @@ export declare class PostIcon {
|
|
|
14
14
|
* The base path, where the icons are located (must be a public url).<br/>Leave this field empty to use the default cdn url.
|
|
15
15
|
*/
|
|
16
16
|
readonly base?: string | null;
|
|
17
|
-
validateBase(
|
|
17
|
+
validateBase(): void;
|
|
18
18
|
/**
|
|
19
19
|
* When set to `true`, the icon will be flipped horizontally.
|
|
20
20
|
*/
|
|
21
21
|
readonly flipH?: boolean;
|
|
22
|
-
validateFlipH(
|
|
22
|
+
validateFlipH(): void;
|
|
23
23
|
/**
|
|
24
24
|
* When set to `true`, the icon will be flipped vertically.
|
|
25
25
|
*/
|
|
26
26
|
readonly flipV?: boolean;
|
|
27
|
-
validateFlipV(
|
|
27
|
+
validateFlipV(): void;
|
|
28
28
|
/**
|
|
29
29
|
* The name/id of the icon (e.g. 1000, 1001, ...).
|
|
30
30
|
*/
|
|
31
31
|
readonly name: string;
|
|
32
|
-
validateName(
|
|
32
|
+
validateName(): void;
|
|
33
33
|
/**
|
|
34
34
|
* The number of degree for the css rotate transformation.
|
|
35
35
|
*/
|
|
36
36
|
readonly rotate?: number | null;
|
|
37
|
-
validateRotate(
|
|
37
|
+
validateRotate(): void;
|
|
38
38
|
/**
|
|
39
39
|
* The number for the css scale transformation.
|
|
40
40
|
*/
|
|
41
41
|
readonly scale?: number | null;
|
|
42
|
-
validateScale(
|
|
42
|
+
validateScale(): void;
|
|
43
43
|
private getUrl;
|
|
44
|
+
private getUrlDefinition;
|
|
45
|
+
private getUrlObject;
|
|
46
|
+
private definesDomain;
|
|
47
|
+
private definesSlug;
|
|
44
48
|
private getStyles;
|
|
45
49
|
componentDidLoad(): void;
|
|
46
50
|
render(): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { SwitchVariant } from '../post-language-switch/switch-variants';
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Slot for placing the content inside the anchor or button.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PostLanguageOption {
|
|
7
|
+
host: HTMLPostLanguageOptionElement;
|
|
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".
|
|
10
|
+
*/
|
|
11
|
+
code: string;
|
|
12
|
+
validateCode(): void;
|
|
13
|
+
/**
|
|
14
|
+
* If set to `true`, the language option is considered the current language for the page.
|
|
15
|
+
*/
|
|
16
|
+
active: boolean;
|
|
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;
|
|
22
|
+
/**
|
|
23
|
+
* The full name of the language. For example, "Deutsch".
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
validateName(): void;
|
|
27
|
+
/**
|
|
28
|
+
* The URL used for the href attribute of the internal anchor.
|
|
29
|
+
* This field is optional; if not provided, a button will be used internally instead of an anchor.
|
|
30
|
+
*/
|
|
31
|
+
url: string;
|
|
32
|
+
validateUrl(): void;
|
|
33
|
+
componentDidLoad(): void;
|
|
34
|
+
/**
|
|
35
|
+
* An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
|
|
36
|
+
*/
|
|
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>;
|
|
42
|
+
/**
|
|
43
|
+
* Selects the language option programmatically.
|
|
44
|
+
*/
|
|
45
|
+
select(): Promise<void>;
|
|
46
|
+
private emitChange;
|
|
47
|
+
private isNameRequired;
|
|
48
|
+
render(): any;
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SwitchVariant } from './switch-variants';
|
|
2
|
+
export declare class PostLanguageSwitch {
|
|
3
|
+
private readonly menuId;
|
|
4
|
+
private get languageOptions();
|
|
5
|
+
host: HTMLPostLanguageSwitchElement;
|
|
6
|
+
/**
|
|
7
|
+
* A title for the list of language options
|
|
8
|
+
*/
|
|
9
|
+
caption: string;
|
|
10
|
+
validateCaption(): void;
|
|
11
|
+
/**
|
|
12
|
+
* A descriptive text for the list of language options
|
|
13
|
+
*/
|
|
14
|
+
description: string;
|
|
15
|
+
validateDescription(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the component is rendered as a list or a menu
|
|
18
|
+
*/
|
|
19
|
+
variant: SwitchVariant;
|
|
20
|
+
validateVariant(): void;
|
|
21
|
+
/**
|
|
22
|
+
* The active language of the language switch
|
|
23
|
+
*/
|
|
24
|
+
activeLang: string;
|
|
25
|
+
componentDidLoad(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Listen for the postChange event and guard it to run only for events originating from a <post-language-option> element.
|
|
28
|
+
*/
|
|
29
|
+
handlePostChange(event: CustomEvent<string>): void;
|
|
30
|
+
/**
|
|
31
|
+
* Handles cases where the language switch is being rendered before options are available
|
|
32
|
+
* @param event Initially emitted by <post-langauge-option>
|
|
33
|
+
*/
|
|
34
|
+
handleInitiallyActive(event: CustomEvent<string>): void;
|
|
35
|
+
private updateChildrenVariant;
|
|
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,46 @@
|
|
|
1
|
+
export declare class PostMainnavigation {
|
|
2
|
+
private navbar;
|
|
3
|
+
private scrollRepeatInterval;
|
|
4
|
+
private navbarDisableTimer;
|
|
5
|
+
private resizeObserver;
|
|
6
|
+
private mutationObserver;
|
|
7
|
+
canScrollLeft: boolean;
|
|
8
|
+
canScrollRight: boolean;
|
|
9
|
+
constructor();
|
|
10
|
+
componentDidLoad(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Disconnects observers and remove event listeners when the main navigation is removed from the DOM.
|
|
13
|
+
*/
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Stops the repeated scrolling when the mouse button is released.
|
|
17
|
+
*/
|
|
18
|
+
stopScrolling(): void;
|
|
19
|
+
private handleMutations;
|
|
20
|
+
private get navigationItems();
|
|
21
|
+
/**
|
|
22
|
+
* Hack to fix the layout shift due to bold text on active elements
|
|
23
|
+
*/
|
|
24
|
+
private fixLayoutShift;
|
|
25
|
+
private handleBackButtonClick;
|
|
26
|
+
/**
|
|
27
|
+
* Returns whether scrolling is enabled in either the left or right direction.
|
|
28
|
+
*/
|
|
29
|
+
private get canScroll();
|
|
30
|
+
/**
|
|
31
|
+
* Checks if scrolling is possible in either direction (left or right) and updates the state accordingly.
|
|
32
|
+
*/
|
|
33
|
+
private checkScrollability;
|
|
34
|
+
/**
|
|
35
|
+
* Handles the scrolling behavior when a user clicks on the left or right scroll buttons.
|
|
36
|
+
*/
|
|
37
|
+
private handleScrollButtonClick;
|
|
38
|
+
private scrollRight;
|
|
39
|
+
private scrollLeft;
|
|
40
|
+
/**
|
|
41
|
+
* Temporarily disables interactions with the navbar during scrolling to prevent accidental clicks.
|
|
42
|
+
* Re-enables interactions after a brief delay to avoid blocking the user entirely.
|
|
43
|
+
*/
|
|
44
|
+
private temporarilyDisableNavbar;
|
|
45
|
+
render(): any;
|
|
46
|
+
}
|
|
@@ -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
|
+
}
|