@swisspost/design-system-components 9.0.1 → 10.0.0-next.38
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-93f142ae.js → package-3e61e6f3.js} +1 -1
- package/dist/cjs/{post-accordion-60af96cf.js → post-accordion-e54524be.js} +11 -12
- package/dist/cjs/post-accordion-item-86f11a16.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-22bfd12e.js +145 -0
- package/dist/cjs/post-avatar.cjs.entry.js +14 -0
- package/dist/cjs/post-back-to-top-f682ea05.js +96 -0
- package/dist/cjs/post-back-to-top.cjs.entry.js +16 -0
- package/dist/cjs/post-banner-5c749a94.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-76f55ae5.js +120 -0
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +13 -0
- package/dist/cjs/post-card-control-161a7102.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-3de8fe4e.js → post-collapsible-trigger-6cdf4481.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-15d78645.js +38 -0
- package/dist/cjs/post-footer.cjs.entry.js +12 -0
- package/dist/cjs/post-linkarea-095d1928.js +30 -0
- package/dist/cjs/post-linkarea.cjs.entry.js +11 -0
- package/dist/cjs/post-menu-item-387e079b.js +68 -0
- package/dist/cjs/post-popover-388c8091.js +135 -0
- package/dist/cjs/post-popover.cjs.entry.js +4 -3
- package/dist/cjs/{post-rating-21f9c46d.js → post-rating-246e4d89.js} +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-0e9d0e06.js +34 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +6 -4
- package/dist/cjs/{post-tab-panel-dd58f425.js → post-tab-panel-f952714f.js} +5 -4
- package/dist/cjs/post-tab-panel.cjs.entry.js +4 -3
- package/dist/cjs/{post-tabs-83191b9a.js → post-tabs-97c30d81.js} +14 -16
- package/dist/cjs/post-tabs.cjs.entry.js +5 -4
- package/dist/cjs/post-tag-58003cf0.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/post-togglebutton-87c984d8.js +4494 -0
- package/dist/cjs/{post-tooltip-782f020b.js → post-tooltip-28e7711a.js} +10 -6
- package/dist/cjs/{post-tooltip-trigger-b2aeb636.js → post-tooltip-trigger-cbc53d14.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-33ac2576.js +3 -0
- package/dist/esm/{post-accordion-bcfe7e61.js → post-accordion-03796d13.js} +11 -12
- package/dist/esm/post-accordion-item-d29c49e5.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-639dc17a.js +143 -0
- package/dist/esm/post-avatar.entry.js +6 -0
- package/dist/esm/post-back-to-top-8099279e.js +94 -0
- package/dist/esm/post-back-to-top.entry.js +8 -0
- package/dist/esm/post-banner-54834fbf.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-caf56014.js +118 -0
- package/dist/esm/post-breadcrumbs.entry.js +5 -0
- package/dist/esm/post-card-control-b063586b.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-3168178e.js → post-collapsible-trigger-727bcde1.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-16f1a8de.js +36 -0
- package/dist/esm/post-footer.entry.js +4 -0
- package/dist/esm/post-linkarea-4e4228fb.js +28 -0
- package/dist/esm/post-linkarea.entry.js +3 -0
- package/dist/esm/post-menu-item-e9dd8173.js +65 -0
- package/dist/esm/post-popover-46ede6b5.js +133 -0
- package/dist/esm/post-popover.entry.js +4 -3
- package/dist/esm/{post-rating-0fd5de37.js → post-rating-8d0d970b.js} +4 -4
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-8224c7c2.js +32 -0
- package/dist/esm/post-tab-header.entry.js +6 -4
- package/dist/esm/{post-tab-panel-6b1219e0.js → post-tab-panel-dfdeccd3.js} +5 -4
- package/dist/esm/post-tab-panel.entry.js +4 -3
- package/dist/esm/{post-tabs-b8ff3c5d.js → post-tabs-fabd0569.js} +14 -16
- package/dist/esm/post-tabs.entry.js +5 -4
- package/dist/esm/post-tag-13994238.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/post-togglebutton-87967c5b.js +4478 -0
- package/dist/esm/{post-tooltip-aa745743.js → post-tooltip-eecaa4c7.js} +10 -6
- package/dist/esm/{post-tooltip-trigger-ce0b4106.js → post-tooltip-trigger-642cbb22.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-0539071d.js +1 -0
- package/dist/post-components/p-0889c759.js +1 -0
- package/dist/post-components/p-0dcd25ab.js +1 -0
- package/dist/post-components/p-181c73d5.js +1 -0
- package/dist/post-components/p-19317b15.js +8 -0
- package/dist/post-components/p-1ef9415b.js +1 -0
- package/dist/post-components/p-24d0695f.entry.js +1 -0
- package/dist/post-components/p-2e50a07d.entry.js +1 -0
- package/dist/post-components/p-30eb4d87.js +1 -0
- package/dist/post-components/p-46008c18.entry.js +1 -0
- package/dist/post-components/p-47ab2c2b.entry.js +1 -0
- package/dist/post-components/p-4c049de0.entry.js +1 -0
- package/dist/post-components/p-4c4acc32.entry.js +1 -0
- package/dist/post-components/p-5d473fcd.js +1 -0
- package/dist/post-components/p-5d539b30.js +1 -0
- package/dist/post-components/p-64e3de38.js +1 -0
- package/dist/post-components/p-6783e509.entry.js +1 -0
- package/dist/post-components/p-692ba59d.js +1 -0
- package/dist/post-components/p-6933fb57.entry.js +1 -0
- package/dist/post-components/p-6b31a76a.js +1 -0
- package/dist/post-components/p-72197a6b.js +1 -0
- package/dist/post-components/p-722ffaae.js +1 -0
- package/dist/post-components/p-7709c14a.js +1 -0
- package/dist/post-components/p-77910344.entry.js +1 -0
- package/dist/post-components/p-80e5100e.entry.js +1 -0
- package/dist/post-components/p-84fbf49c.js +1 -0
- package/dist/post-components/p-85fdc2d3.js +1 -0
- package/dist/post-components/p-8c09291c.js +1 -0
- package/dist/post-components/p-8db32dab.js +8 -0
- package/dist/post-components/p-93da1a5f.js +1 -0
- package/dist/post-components/p-9b052461.js +1 -0
- package/dist/post-components/p-9b8ee310.entry.js +1 -0
- package/dist/post-components/{p-3eab790d.js → p-9e461613.js} +2 -2
- package/dist/post-components/p-9efb84d3.entry.js +1 -0
- package/dist/post-components/p-9fbf2f82.entry.js +1 -0
- package/dist/post-components/p-a07f85ee.js +1 -0
- package/dist/post-components/p-a25019de.js +1 -0
- package/dist/post-components/p-a710ee00.js +1 -0
- package/dist/post-components/p-b94e5b4d.entry.js +1 -0
- package/dist/post-components/p-c2348d3d.js +1 -0
- package/dist/post-components/p-c65f32b0.js +1 -0
- package/dist/post-components/p-c6b03446.entry.js +1 -0
- package/dist/post-components/p-d0dfd5f9.js +1 -0
- package/dist/post-components/p-d45df336.js +1 -0
- package/dist/post-components/p-d4890d50.entry.js +1 -0
- package/dist/post-components/p-d5210531.entry.js +1 -0
- package/dist/post-components/p-dd39c542.entry.js +1 -0
- package/dist/post-components/p-df6c8a4c.js +1 -0
- package/dist/post-components/p-e068a41e.js +1 -0
- package/dist/post-components/p-e585c6fe.js +1 -0
- package/dist/post-components/p-f2c4a48d.js +1 -0
- package/dist/post-components/p-f31b9b5d.entry.js +1 -0
- package/dist/post-components/p-f58252d5.entry.js +1 -0
- package/dist/post-components/p-fda767f0.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-744c881d.js +0 -52
- package/dist/cjs/post-alert-2a768f58.js +0 -99
- package/dist/cjs/post-alert.cjs.entry.js +0 -17
- package/dist/cjs/post-card-control-197c8e44.js +0 -272
- package/dist/cjs/post-icon-df629079.js +0 -139
- package/dist/cjs/post-icon.cjs.entry.js +0 -16
- package/dist/cjs/post-logo-7caeb918.js +0 -39
- package/dist/cjs/post-logo.cjs.entry.js +0 -15
- package/dist/cjs/post-popover-090c3d01.js +0 -131
- package/dist/cjs/post-popovercontainer-872681bf.js +0 -2281
- package/dist/cjs/post-popovercontainer.cjs.entry.js +0 -11
- package/dist/cjs/post-tab-header-422d0f03.js +0 -32
- package/dist/cjs/post-tag-c72183f2.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-45827c3b.js +0 -3
- package/dist/esm/post-accordion-item-8869c90b.js +0 -50
- package/dist/esm/post-alert-21fd0068.js +0 -97
- package/dist/esm/post-alert.entry.js +0 -9
- package/dist/esm/post-card-control-60c132dc.js +0 -270
- package/dist/esm/post-icon-2e2e18ad.js +0 -137
- package/dist/esm/post-icon.entry.js +0 -8
- package/dist/esm/post-logo-f364eb72.js +0 -37
- package/dist/esm/post-logo.entry.js +0 -7
- package/dist/esm/post-popover-697201cd.js +0 -129
- package/dist/esm/post-popovercontainer-2b5f37fb.js +0 -2279
- package/dist/esm/post-popovercontainer.entry.js +0 -3
- package/dist/esm/post-tab-header-c8898fa2.js +0 -30
- package/dist/esm/post-tag-83470f28.js +0 -45
- package/dist/post-components/p-08dc45bb.entry.js +0 -1
- package/dist/post-components/p-1a48d1b0.js +0 -1
- package/dist/post-components/p-2737eaf5.js +0 -1
- package/dist/post-components/p-2b61a526.entry.js +0 -1
- package/dist/post-components/p-3f5bf5d9.entry.js +0 -1
- package/dist/post-components/p-40e5bb56.entry.js +0 -1
- package/dist/post-components/p-4a3f67ab.js +0 -1
- package/dist/post-components/p-56ca6bb5.js +0 -1
- package/dist/post-components/p-58cbb854.entry.js +0 -1
- package/dist/post-components/p-5c557e64.js +0 -1
- package/dist/post-components/p-5ce2abc9.entry.js +0 -1
- package/dist/post-components/p-5f08d625.js +0 -15
- package/dist/post-components/p-611b3c41.js +0 -1
- package/dist/post-components/p-7069ac74.entry.js +0 -1
- package/dist/post-components/p-755b2746.js +0 -1
- package/dist/post-components/p-788e64fb.js +0 -1
- package/dist/post-components/p-799cf60e.js +0 -1
- package/dist/post-components/p-7bbcc8ee.js +0 -1
- package/dist/post-components/p-7cdf9571.entry.js +0 -1
- package/dist/post-components/p-7e4181ce.entry.js +0 -1
- package/dist/post-components/p-9409f729.js +0 -1
- package/dist/post-components/p-a07846ea.js +0 -1
- package/dist/post-components/p-a4560368.js +0 -1
- package/dist/post-components/p-a503cb2c.entry.js +0 -1
- package/dist/post-components/p-b095519d.js +0 -1
- package/dist/post-components/p-b46e2451.js +0 -1
- package/dist/post-components/p-b7207224.js +0 -1
- package/dist/post-components/p-bafc0491.js +0 -1
- package/dist/post-components/p-c078fd94.entry.js +0 -1
- package/dist/post-components/p-c0aebe5e.entry.js +0 -1
- package/dist/post-components/p-c7e4acde.js +0 -1
- package/dist/post-components/p-ca71a3ff.entry.js +0 -1
- package/dist/post-components/p-d582cc10.js +0 -1
- package/dist/post-components/p-e49f57c0.entry.js +0 -1
- package/dist/post-components/p-eb712f9b.entry.js +0 -1
- package/dist/post-components/p-eebd060d.js +0 -1
- package/dist/post-components/p-f7cead60.entry.js +0 -1
- package/dist/post-components/p-ffd75503.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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="http://www.w3.org/1999/xlink",f=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],u="undefined"!=typeof window?window:{},d=u.document||{head:{}},h={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},p=t=>Promise.resolve(t),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),v=!1,y=[],b=[],w=(t,e)=>n=>{t.push(n),v||(v=!0,e&&4&h.o?k(g):h.raf(g))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},g=()=>{$(y),$(b),(v=y.length>0)&&h.raf(g)},k=t=>p().then(t),S=w(b,!0),j={},O=t=>"object"==(t=typeof t)||"function"===t;function C(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>R,ok:()=>E,unwrap:()=>A,unwrapErr:()=>D});var E=t=>({isOk:!0,isErr:!1,value:t}),x=t=>({isOk:!1,isErr:!0,value:t});function R(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return x(t.value);throw"should never get here"}var M,P,T,A=t=>{if(t.isOk)return t.value;throw t.value},D=t=>{if(t.isErr)return t.value;throw t.value},L=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!O(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?N(null,o):o),i=r)};if(a(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,F);const f=N(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.m=s,f},N=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),W={},F={forEach:(t,e)=>t.map(H).forEach(e),map:(t,e)=>t.map(H).map(e).map(U)},H=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),U=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),L(t.vtag,e,...t.vchildren||[])}const e=N(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},q=t=>n(t).$hostElement$,G=(t,e,n)=>{const o=q(t);return{emit:t=>V(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},V=(t,e,n)=>{const o=h.ce(e,n);return t.dispatchEvent(o),o},_=new WeakMap,z=t=>"sc-"+t.k,B=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=J(n),s=J(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=O(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(a,e):t.removeAttribute(e)):(!i||4&r||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(a,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(K);e=e.replace(Q,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}}},I=/\s/,J=t=>t?t.split(I):[],K="Capture",Q=RegExp(K+"$"),X=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||j,s=e.u||j;for(const t of Y(Object.keys(l)))t in s||B(o,t,l[t],void 0,n,e.o);for(const t of Y(Object.keys(s)))B(o,t,l[t],s[t],n,e.o)};function Y(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Z=!1,tt=!1,et=!1,nt=!1,ot=(t,e,n,o)=>{var l;const s=e.h[n];let r,i,c,a=0;if(Z||(et=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)r=s.$=d.createTextNode(s.i);else if(1&s.o)r=s.$=d.createTextNode("");else{if(nt||(nt="svg"===s.v),r=s.$=d.createElementNS(nt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Z&&2&s.o?"slot-fb":s.v),nt&&"foreignObject"===s.v&&(nt=!1),X(null,s,nt),null!=M&&r["s-si"]!==M&&r.classList.add(r["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)i=ot(t,s,a,r),i&&r.appendChild(i);"svg"===s.v?nt=!1:"foreignObject"===r.tagName&&(nt=!0)}return r["s-hn"]=T,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=P,r["s-sn"]=s.m||"",r["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&<(t.$,!1)),r},lt=(t,e)=>{h.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==T&&o["s-ol"]&&(vt(at(o),o,ct(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,et=!0),e&<(o,e)}h.o&=-2},st=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===T&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=ot(null,n,l,t),r&&(o[l].$=r,vt(i,r,ct(e))))},rt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;mt(e),t&&(tt=!0,t["s-ol"]?t["s-ol"].remove():lt(t,!0),t.remove())}}},it=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.m===e.m:!!n||t.p===e.p),ct=t=>t&&t["s-ol"]||t,at=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ft=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,r=e.v,i=e.i;let c;null===i?(nt="svg"===r||"foreignObject"!==r&&nt,("slot"!==r||Z)&&X(t,e,nt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,a=0,f=0,u=e.length-1,d=e[0],h=e[u],p=o.length-1,m=o[0],v=o[p];for(;i<=u&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(it(d,m,l))ft(d,m,l),d=e[++i],m=o[++c];else if(it(h,v,l))ft(h,v,l),h=e[--u],v=o[--p];else if(it(d,v,l))"slot"!==d.v&&"slot"!==v.v||lt(d.$.parentNode,!1),ft(d,v,l),vt(t,d.$,h.$.nextSibling),d=e[++i],v=o[--p];else if(it(h,m,l))"slot"!==d.v&&"slot"!==v.v||lt(h.$.parentNode,!1),ft(h,m,l),vt(t,h.$,d.$),h=e[--u],m=o[++c];else{for(a=-1,f=i;f<=u;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){a=f;break}a>=0?(r=e[a],r.v!==m.v?s=ot(e&&e[c],n,a,t):(ft(r,m,l),e[a]=void 0,s=r.$),m=o[++c]):(s=ot(e&&e[c],n,c,t),m=o[++c]),s&&vt(at(d.$),s,ct(d.$))}i>u?st(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&rt(e,i,u)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),st(o,null,e,s,0,s.length-1)):null!==l&&rt(l,0,l.length-1),nt&&"svg"===r&&(nt=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.i!==i&&(o.data=i)},ut=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}ut(t)}},dt=[],ht=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(pt(e,t)){let n=dt.find((t=>t.S===e));tt=!0,e["s-sn"]=e["s-sn"]||t,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(e["s-sh"]=l["s-hn"],dt.push({j:l,S:e})),e["s-sr"]&&dt.map((t=>{pt(t.S,e["s-sn"])&&(n=dt.find((t=>t.S===e)),n&&!t.j&&(t.j=n.j))}))}else dt.some((t=>t.S===e))||dt.push({S:e})}1===l.nodeType&&ht(l)}},pt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,mt=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(mt)},vt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),yt=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},bt=(t,e)=>{if(t.o|=16,!(4&t.o))return yt(t,t.C),S((()=>wt(t,e)));t.o|=512},wt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.R&&(t.R.map((([t,e])=>Ct(n,t,e))),t.R=void 0),o=Ct(n,"componentWillLoad")),o=$t(o,(()=>Ct(n,"componentWillRender"))),$t(o,(()=>kt(t,n,e)))},$t=(t,e)=>gt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,kt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=z(e),l=i.get(o);if(t=11===t.nodeType?t:d,l)if("string"==typeof l){let s,r=_.get(t=t.head||t);if(r||_.set(t,r=new Set),!r.has(o)){{s=d.createElement("style"),s.innerHTML=l;const e=null!=(n=h.P)?n:C(d);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);St(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>jt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},St=(t,e,n,o)=>{try{e=e.render&&e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.M,a=t.T||N(null,null),f=(t=>t&&t.v===W)(e)?e:L(null,null,e);if(T=i.tagName,c.A&&(f.u=f.u||{},c.A.map((([t,e])=>f.u[e]=i[t]))),n&&f.u)for(const t of Object.keys(f.u))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=i[t]);if(f.v=null,f.o|=4,t.T=f,f.$=a.$=i.shadowRoot||i,M=i["s-sc"],Z=!!(1&c.o),P=i["s-cr"],tt=!1,ft(a,f,n),h.o|=1,et){ht(f.$);for(const t of dt){const e=t.S;if(!e["s-ol"]){const t=d.createTextNode("");t["s-nr"]=e,vt(e.parentNode,e["s-ol"]=t,e)}}for(const t of dt){const e=t.S,i=t.j;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),vt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}tt&&ut(f.$),h.o&=-2,dt.length=0,P=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},jt=t=>{const e=t.$hostElement$,n=t.t,o=t.C;Ct(n,"componentDidRender"),64&t.o||(t.o|=64,Et(e),Ct(n,"componentDidLoad"),t.D(e),o||Ot()),t.L(e),t.O&&(t.O(),t.O=void 0),512&t.o&&k((()=>bt(t,!1))),t.o&=-517},Ot=()=>{Et(d.documentElement),k((()=>V(u,"appload",{detail:{namespace:"post-components"}})))},Ct=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},Et=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),xt=(t,e,o)=>{var l,r;const i=t.prototype;if(64&e.o&&1&o&&f.forEach((t=>Object.defineProperty(i,t,{value(...e){const o=n(this),l=o.t;if(l){const n=l[t];"function"==typeof n&&n.call(l,...e)}else o.N.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}}))),e.W||e.F||t.watchers){t.watchers&&!e.F&&(e.F=t.watchers);const c=Object.entries(null!=(l=e.W)?l:{});if(c.map((([t,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(i,t,{get(){return((t,e)=>n(this).H.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.H.get(e),a=r.o,f=r.t;if(o=((t,e)=>null==t||O(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.W[e][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.H.set(e,o),f)){if(l.F&&128&a){const t=l.F[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&a)&&bt(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(i,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.U)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){h.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.F)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.F)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.A)||l.push([t,s])),s}))]))}}return t},Rt=t=>{Ct(t,"connectedCallback")},Mt=t=>{Ct(t,"disconnectedCallback")},Pt=(t,o={})=>{var l;const a=[],f=o.exclude||[],p=u.customElements,v=d.head,y=v.querySelector("meta[charset]"),b=d.createElement("style"),w=[];let $,g=!0;Object.assign(h,o),h.l=new URL(o.resourcesUrl||"./",d.baseURI).href;let k=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],k:o[1],W:o[2],q:o[3]};4&c.o&&(k=!0),c.W=o[2],c.q=o[3],c.A=[],c.F=null!=(l=o[4])?l:{};const u=c.k,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,M:n,H:new Map};o.U=new Promise((t=>o.L=t)),o.N=new Promise((t=>o.D=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Tt(this,t,c.q)),$&&(clearTimeout($),$=null),g?w.push(this):h.jmp((()=>(t=>{if(!(1&h.o)){const e=n(t),o=e.M,l=()=>{};if(1&e.o)Tt(t,e,o.q),(null==e?void 0:e.t)?Rt(e.t):(null==e?void 0:e.N)&&e.N.then((()=>Rt(e.t)));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=d.createComment("");e["s-cn"]=!0,vt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){yt(e,e.C=n);break}}o.W&&Object.entries(o.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.G){const t=(t=>{const e=t.k.replace(/-/g,"_"),n=t.G;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.k}#${e.V}" was not found`);o.isProxied||(n.F=o.watchers,xt(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l(),Rt(e.t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=z(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);m&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.C,c=()=>bt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.o)){const t=n(this);t._&&(t._.map((t=>t())),t._=void 0),(null==t?void 0:t.t)?Mt(t.t):(null==t?void 0:t.N)&&t.N.then((()=>Mt(t.t)))}})()))}componentOnReady(){return n(this).N}};64&c.o&&(v.formAssociated=!0),c.G=t[0],f.includes(u)||p.get(u)||(a.push(u),p.define(u,xt(v,c,1)))}))})),a.length>0&&(k&&(b.textContent+=c),b.textContent+=a.sort()+"{visibility:hidden}[data-hydrated]{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const t=null!=(l=h.P)?l:C(d);null!=t&&b.setAttribute("nonce",t),v.insertBefore(b,y?y.nextSibling:v.firstChild)}g=!1,w.length?w.map((t=>t.connectedCallback())):h.jmp((()=>$=setTimeout(Ot,30)))},Tt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=t,r=At(e,l),i=
|
|
1
|
+
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>e.set(n.t=t,n),l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="http://www.w3.org/1999/xlink",f=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],u="undefined"!=typeof window?window:{},d=u.document||{head:{}},h={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},p=t=>Promise.resolve(t),m=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),v=!1,y=[],b=[],w=(t,e)=>n=>{t.push(n),v||(v=!0,e&&4&h.o?k(g):h.raf(g))},$=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},g=()=>{$(y),$(b),(v=y.length>0)&&h.raf(g)},k=t=>p().then(t),S=w(b,!0),j={},O=t=>"object"==(t=typeof t)||"function"===t;function C(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>x,map:()=>R,ok:()=>E,unwrap:()=>A,unwrapErr:()=>D});var E=t=>({isOk:!0,isErr:!1,value:t}),x=t=>({isOk:!1,isErr:!0,value:t});function R(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>E(t))):E(n)}if(t.isErr)return x(t.value);throw"should never get here"}var M,P,T,A=t=>{if(t.isOk)return t.value;throw t.value},D=t=>{if(t.isErr)return t.value;throw t.value},L=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],a=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!O(o))&&(o+=""),r&&i?c[c.length-1].i+=o:c.push(r?N(null,o):o),i=r)};if(a(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,F);const f=N(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.m=s,f},N=(t,e)=>({o:0,v:t,i:e,$:null,h:null,u:null,p:null,m:null}),W={},F={forEach:(t,e)=>t.map(H).forEach(e),map:(t,e)=>t.map(H).map(e).map(U)},H=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.m,vtag:t.v,vtext:t.i}),U=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),L(t.vtag,e,...t.vchildren||[])}const e=N(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.m=t.vname,e},q=t=>n(t).$hostElement$,G=(t,e,n)=>{const o=q(t);return{emit:t=>V(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},V=(t,e,n)=>{const o=h.ce(e,n);return t.dispatchEvent(o),o},_=new WeakMap,z=t=>"sc-"+t.k,B=(t,e,n,o,s,r)=>{if(n!==o){let i=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=J(n),s=J(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const l=O(o);if((i||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]=o;else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||(t[e]=l)}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(a,e):t.removeAttribute(e)):(!i||4&r||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(a,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(K);e=e.replace(Q,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}}},I=/\s/,J=t=>t?t.split(I):[],K="Capture",Q=RegExp(K+"$"),X=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||j,s=e.u||j;for(const t of Y(Object.keys(l)))t in s||B(o,t,l[t],void 0,n,e.o);for(const t of Y(Object.keys(s)))B(o,t,l[t],s[t],n,e.o)};function Y(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Z=!1,tt=!1,et=!1,nt=!1,ot=(t,e,n,o)=>{var l;const s=e.h[n];let r,i,c,a=0;if(Z||(et=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)r=s.$=d.createTextNode(s.i);else if(1&s.o)r=s.$=d.createTextNode("");else{if(nt||(nt="svg"===s.v),r=s.$=d.createElementNS(nt?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Z&&2&s.o?"slot-fb":s.v),nt&&"foreignObject"===s.v&&(nt=!1),X(null,s,nt),null!=M&&r["s-si"]!==M&&r.classList.add(r["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)i=ot(t,s,a,r),i&&r.appendChild(i);"svg"===s.v?nt=!1:"foreignObject"===r.tagName&&(nt=!0)}return r["s-hn"]=T,3&s.o&&(r["s-sr"]=!0,r["s-cr"]=P,r["s-sn"]=s.m||"",r["s-rf"]=null==(l=s.u)?void 0:l.ref,c=t&&t.h&&t.h[n],c&&c.v===s.v&&t.$&<(t.$,!1)),r},lt=(t,e)=>{h.o|=1;const n=Array.from(t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==T&&o["s-ol"]&&(vt(at(o),o,ct(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,et=!0),e&<(o,e)}h.o&=-2},st=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===T&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=ot(null,n,l,t),r&&(o[l].$=r,vt(i,r,ct(e))))},rt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;mt(e),t&&(tt=!0,t["s-ol"]?t["s-ol"].remove():lt(t,!0),t.remove())}}},it=(t,e,n=!1)=>t.v===e.v&&("slot"===t.v?t.m===e.m:!!n||t.p===e.p),ct=t=>t&&t["s-ol"]||t,at=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,ft=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,r=e.v,i=e.i;let c;null===i?(nt="svg"===r||"foreignObject"!==r&&nt,("slot"!==r||Z)&&X(t,e,nt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,a=0,f=0,u=e.length-1,d=e[0],h=e[u],p=o.length-1,m=o[0],v=o[p];for(;i<=u&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(it(d,m,l))ft(d,m,l),d=e[++i],m=o[++c];else if(it(h,v,l))ft(h,v,l),h=e[--u],v=o[--p];else if(it(d,v,l))"slot"!==d.v&&"slot"!==v.v||lt(d.$.parentNode,!1),ft(d,v,l),vt(t,d.$,h.$.nextSibling),d=e[++i],v=o[--p];else if(it(h,m,l))"slot"!==d.v&&"slot"!==v.v||lt(h.$.parentNode,!1),ft(h,m,l),vt(t,h.$,d.$),h=e[--u],m=o[++c];else{for(a=-1,f=i;f<=u;++f)if(e[f]&&null!==e[f].p&&e[f].p===m.p){a=f;break}a>=0?(r=e[a],r.v!==m.v?s=ot(e&&e[c],n,a,t):(ft(r,m,l),e[a]=void 0,s=r.$),m=o[++c]):(s=ot(e&&e[c],n,c,t),m=o[++c]),s&&vt(at(d.$),s,ct(d.$))}i>u?st(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&rt(e,i,u)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),st(o,null,e,s,0,s.length-1)):null!==l&&rt(l,0,l.length-1),nt&&"svg"===r&&(nt=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.i!==i&&(o.data=i)},ut=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const n=t["s-sn"];t.hidden=!1;for(const o of e)if(o!==t)if(o["s-hn"]!==t["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){t.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){t.hidden=!0;break}}ut(t)}},dt=[],ht=t=>{let e,n,o;for(const l of t.childNodes){if(l["s-sr"]&&(e=l["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;const t=l["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==l["s-hn"])if(pt(e,t)){let n=dt.find((t=>t.S===e));tt=!0,e["s-sn"]=e["s-sn"]||t,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(e["s-sh"]=l["s-hn"],dt.push({j:l,S:e})),e["s-sr"]&&dt.map((t=>{pt(t.S,e["s-sn"])&&(n=dt.find((t=>t.S===e)),n&&!t.j&&(t.j=n.j))}))}else dt.some((t=>t.S===e))||dt.push({S:e})}1===l.nodeType&&ht(l)}},pt=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,mt=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(mt)},vt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),yt=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},bt=(t,e)=>{if(t.o|=16,!(4&t.o))return yt(t,t.C),S((()=>wt(t,e)));t.o|=512},wt=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e&&(t.o|=256,t.R&&(t.R.map((([t,e])=>Ct(n,t,e))),t.R=void 0),o=Ct(n,"componentWillLoad")),o=$t(o,(()=>Ct(n,"componentWillRender"))),$t(o,(()=>kt(t,n,e)))},$t=(t,e)=>gt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),gt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,kt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=z(e),l=i.get(o);if(t=11===t.nodeType?t:d,l)if("string"==typeof l){let s,r=_.get(t=t.head||t);if(r||_.set(t,r=new Set),!r.has(o)){{s=d.createElement("style"),s.innerHTML=l;const e=null!=(n=h.P)?n:C(d);null!=e&&s.setAttribute("nonce",e),t.insertBefore(s,t.querySelector("link"))}4&e.o&&(s.innerHTML+=c),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);St(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>jt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},St=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.M,a=t.T||N(null,null),f=(t=>t&&t.v===W)(e)?e:L(null,null,e);if(T=i.tagName,c.A&&(f.u=f.u||{},c.A.map((([t,e])=>f.u[e]=i[t]))),n&&f.u)for(const t of Object.keys(f.u))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=i[t]);if(f.v=null,f.o|=4,t.T=f,f.$=a.$=i.shadowRoot||i,M=i["s-sc"],Z=!!(1&c.o),P=i["s-cr"],tt=!1,ft(a,f,n),h.o|=1,et){ht(f.$);for(const t of dt){const e=t.S;if(!e["s-ol"]){const t=d.createTextNode("");t["s-nr"]=e,vt(e.parentNode,e["s-ol"]=t,e)}}for(const t of dt){const e=t.S,i=t.j;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===o.parentNode){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==e.parentNode||e.nextSibling!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),vt(t,e,n),1===e.nodeType&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}tt&&ut(f.$),h.o&=-2,dt.length=0,P=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},jt=t=>{const e=t.$hostElement$,n=t.t,o=t.C;Ct(n,"componentDidRender"),64&t.o||(t.o|=64,Et(e),Ct(n,"componentDidLoad"),t.D(e),o||Ot()),t.L(e),t.O&&(t.O(),t.O=void 0),512&t.o&&k((()=>bt(t,!1))),t.o&=-517},Ot=()=>{Et(d.documentElement),k((()=>V(u,"appload",{detail:{namespace:"post-components"}})))},Ct=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t)}},Et=t=>t.setAttribute(null!="data-hydrated"?"data-hydrated":"hydrated",""),xt=(t,e,o)=>{var l,r;const i=t.prototype;if(64&e.o&&1&o&&f.forEach((t=>Object.defineProperty(i,t,{value(...e){const o=n(this),l=o.t;if(l){const n=l[t];"function"==typeof n&&n.call(l,...e)}else o.N.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}}))),e.W||e.F||t.watchers){t.watchers&&!e.F&&(e.F=t.watchers);const c=Object.entries(null!=(l=e.W)?l:{});if(c.map((([t,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(i,t,{get(){return((t,e)=>n(this).H.get(e))(0,t)},set(o){((t,e,o,l)=>{const r=n(t);if(!r)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.H.get(e),a=r.o,f=r.t;if(o=((t,e)=>null==t||O(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(o,l.W[e][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(r.H.set(e,o),f)){if(l.F&&128&a){const t=l.F[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,i)}}))}2==(18&a)&&bt(r,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(i,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.U)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){h.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.F)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=e.F)?r:{}),...c.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.A)||l.push([t,s])),s}))]))}}return t},Rt=t=>{Ct(t,"connectedCallback")},Mt=t=>{Ct(t,"disconnectedCallback")},Pt=(t,o={})=>{var l;const a=[],f=o.exclude||[],p=u.customElements,v=d.head,y=v.querySelector("meta[charset]"),b=d.createElement("style"),w=[];let $,g=!0;Object.assign(h,o),h.l=new URL(o.resourcesUrl||"./",d.baseURI).href;let k=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],k:o[1],W:o[2],q:o[3]};4&c.o&&(k=!0),c.W=o[2],c.q=o[3],c.A=[],c.F=null!=(l=o[4])?l:{};const u=c.k,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,M:n,H:new Map};o.U=new Promise((t=>o.L=t)),o.N=new Promise((t=>o.D=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Tt(this,t,c.q)),$&&(clearTimeout($),$=null),g?w.push(this):h.jmp((()=>(t=>{if(!(1&h.o)){const e=n(t),o=e.M,l=()=>{};if(1&e.o)Tt(t,e,o.q),(null==e?void 0:e.t)?Rt(e.t):(null==e?void 0:e.N)&&e.N.then((()=>Rt(e.t)));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=d.createComment("");e["s-cn"]=!0,vt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){yt(e,e.C=n);break}}o.W&&Object.entries(o.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.G){const t=(t=>{const e=t.k.replace(/-/g,"_"),n=t.G;if(!n)return;const o=r.get(n);return o?o[e]:import(`./${n}.entry.js`).then((t=>(r.set(n,t),t[e])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(t&&"then"in t){const e=()=>{};o=await t,e()}else o=t;if(!o)throw Error(`Constructor for "${n.k}#${e.V}" was not found`);o.isProxied||(n.F=o.watchers,xt(o,n,2),o.isProxied=!0);const l=()=>{};e.o|=8;try{new o(e)}catch(t){s(t)}e.o&=-9,e.o|=128,l(),Rt(e.t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=z(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);m&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.C,c=()=>bt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.o)){const t=n(this);t._&&(t._.map((t=>t())),t._=void 0),(null==t?void 0:t.t)?Mt(t.t):(null==t?void 0:t.N)&&t.N.then((()=>Mt(t.t)))}})()))}componentOnReady(){return n(this).N}};64&c.o&&(v.formAssociated=!0),c.G=t[0],f.includes(u)||p.get(u)||(a.push(u),p.define(u,xt(v,c,1)))}))})),a.length>0&&(k&&(b.textContent+=c),b.textContent+=a.sort()+"{visibility:hidden}[data-hydrated]{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const t=null!=(l=h.P)?l:C(d);null!=t&&b.setAttribute("nonce",t),v.insertBefore(b,y?y.nextSibling:v.firstChild)}g=!1,w.length?w.map((t=>t.connectedCallback())):h.jmp((()=>$=setTimeout(Ot,30)))},Tt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=Dt(t,n),r=At(e,l),i=Lt(n);h.ael(s,o,r,i),(e._=e._||[]).push((()=>h.rel(s,o,r,i)))}))},At=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.R=t.R||[]).push([e,n])}catch(t){s(t)}},Dt=(t,e)=>8&e?u:t,Lt=t=>({passive:!!(1&t),capture:!!(2&t)}),Nt=t=>h.P=t;export{W as H,Pt as b,G as c,q as g,L as h,p,o as r,Nt as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_avatar}from"./p-c2348d3d.js";import"./p-9e461613.js";import"./p-93da1a5f.js";import"./p-181c73d5.js";import"./p-440193f4.js";import"./p-722ffaae.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tooltip}from"./p-d0dfd5f9.js";import"./p-9e461613.js";import"./p-93da1a5f.js";import"./p-7709c14a.js";import"./p-722ffaae.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as s,g as a}from"./p-9e461613.js";import{v as r}from"./p-93da1a5f.js";const n=["a"].join(","),o=`:where(${n})`,i=class{constructor(t){e(this,t)}dispatchClick({ctrlKey:e,shiftKey:t,altKey:s,metaKey:a}){const r=this.host.querySelector(`[data-link]${o}`)??this.host.querySelector(o);if(!r)throw new Error(`The \`post-linkarea\` component must contain an interactive element. Possible elements are: ${n}.`);r.dispatchEvent(new MouseEvent("click",{ctrlKey:e,shiftKey:t,altKey:s,metaKey:a}))}render(){return t(s,{key:"56e4b032fa8976cc120bff5f1c36d55167e54e98","data-version":r,onClick:e=>this.dispatchClick(e),tabindex:"0"},t("slot",{key:"25568fab2a47d765757c00fbee4f2999c1da16d1"}))}get host(){return a(this)}};i.style=":host{display:contents;cursor:pointer}";export{i as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as e,g as i}from"./p-9e461613.js";import{s,a}from"./p-9b052461.js";import{v as r}from"./p-93da1a5f.js";import{c}from"./p-7709c14a.js";import{c as n}from"./p-181c73d5.js";import"./p-722ffaae.js";const h=class{constructor(o){t(this,o),this.handleScroll=()=>{this.belowFold=this.isBelowFold()},this.label=void 0,this.belowFold=!1}isBelowFold(){return window.scrollY>window.innerHeight}watchBelowFold(t){t?s(this.host,this.translateY):a(this.host,this.translateY)}scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}getSecondPixelValue(t){for(const o of t){const t=o.match(/\b\d+px\b/g);if(t&&t.length>1)return t[1]}}animateButton(){const t=window.getComputedStyle(this.host).getPropertyValue("top"),o=this.host.shadowRoot.querySelector("button"),e=getComputedStyle(o).getPropertyValue("--post-back-to-top-elevation").split(","),i=this.getSecondPixelValue(e);this.translateY=String(-1-parseFloat(t.replace("px",""))-parseFloat(i.replace("px","")))+"px",this.belowFold&&s(this.host,this.translateY),this.belowFold||(this.host.style.transform=`translateY(${this.translateY})`)}validateLabel(){n(this,"label"),c(this,"label","string")}componentWillLoad(){this.belowFold=this.isBelowFold()}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,!1),this.animateButton(),this.validateLabel()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return o(e,{key:"c1ab6c5e7619ad829d64aea16c59a923310cf091","data-version":r},o("button",{key:"99e10e4d16c8d82521b001c3b3d902d8ba47ee92",class:"back-to-top","aria-hidden":this.belowFold?"false":"true",tabindex:this.belowFold?"0":"-1",onClick:this.scrollToTop},o("post-icon",{key:"5a6a1b472b45fcc466127ece7091617e4700ee16","aria-hidden":"true",name:"3026"}),o("span",{key:"c8502e4822347d48034f6a936203e3314c7ae91e",class:"visually-hidden"},this.label)))}get host(){return i(this)}static get watchers(){return{belowFold:["watchBelowFold"],label:["validateLabel"]}}};h.style=":host{--post-floating-button-position-top:var(--post-device-position-4);--post-back-to-top-position-top:calc( var(--post-header-height) + var(--post-floating-button-position-top) );--post-back-to-top-elevation:var(--post-device-elevation-300);position:fixed;inset-block-start:var(--post-back-to-top-position-top);inset-inline-end:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;box-shadow:var(--post-back-to-top-elevation);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:flex;align-items:center;justify-content:center}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top{background-color:ButtonFace !important}:host .back-to-top:hover{background-color:Highlight !important}}:host .back-to-top{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:hover{color:HighlightText !important}}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{h as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as e,H as t,g as i}from"./p-9e461613.js";import{v as a}from"./p-93da1a5f.js";import{H as c}from"./p-247a1668.js";import{c as r}from"./p-e585c6fe.js";import"./p-722ffaae.js";import{e as s}from"./p-0889c759.js";import{n as d}from"./p-c65f32b0.js";const n=class{constructor(e){o(this,e),this.id=void 0,this.slottedLogo=void 0,this.collapsed=!1,this.headingLevel=void 0}validateHeadingLevel(){r(this,"headingLevel",c,"The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.")}componentWillLoad(){this.id=this.host.id||`p${d(6)}`}componentDidLoad(){this.validateHeadingLevel()}onCollapseToggle(o){s(this.host,o,{targetLocalName:"post-collapsible",delegatorSelector:"post-accordion-item"},(()=>{this.collapsed=!o.detail}))}async toggle(o){return this.collapsible.toggle(o)}onSlotLogoChange(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')}componentWillRender(){this.slottedLogo=this.host.querySelector('img[slot="logo"]')}render(){const o=this.host.closest("post-accordion")?.getAttribute("heading-level");return e(t,{key:"725d3710f7937f82c2382938d15770001e923b61",id:this.id,"data-version":a},e("div",{key:"679d25d8278fbf9ae68546ee50c27a86ded95999",part:"accordion-item",class:"accordion-item"},e("post-collapsible-trigger",{key:"7c2af8dc6a1f5265b4ae2cad066be7d2e0bf6a78",for:`${this.id}--collapse`},e(`h${o??this.headingLevel??2}`,{key:"a10e59a17fdb272fe6308d2ba98f37f90490fab8",class:"accordion-header",id:`${this.id}--header`},e("button",{key:"e2b527850c8342a8adf99453d0ac330b6a94760f",type:"button",class:"accordion-button"+(this.collapsed?" collapsed":""),part:"button"},e("span",{key:"b722a4bc51757546eefa58c7c3ea3a688838298a",class:{"logo-container":!0,"has-image":!!this.slottedLogo}},e("slot",{key:"1a42494db72a7b437b1d98fa2e8159d73ece22fa",name:"logo",onSlotchange:this.onSlotLogoChange.bind(this)})),e("slot",{key:"049865bb25f833780ef8e27fe8477e06476a2427",name:"header"}),e("post-icon",{key:"da0cf7078e4f51710dbfd39c0afa90465fcb53c6",name:"2051"})))),e("post-collapsible",{key:"7c3b268e34d3e4f52820b11a6c090aefbc16e3b9",id:`${this.id}--collapse`,collapsed:this.collapsed,ref:o=>this.collapsible=o},e("div",{key:"993a7fffbccb557aed2842305f3927e5c3b5047a",class:"accordion-body",part:"body"},e("slot",{key:"580eb87b1cb4f88acd7dddddecaa1c1982b7f6e3"})))))}get host(){return i(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};n.style='.accordion-item::after{display:block;content:"";margin-block-start:calc(var(--post-device-border-width-default)*-1);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}.accordion-item:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-item:has(.accordion-button:hover)::after{border-color:Highlight}}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default)) calc(var(--post-device-spacing-padding-5) + var(--post-device-border-width-default));cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{display:block;position:absolute;content:"";inset:0;inset-block-end:auto;border-block-start:var(--post-accordion-button-border-top)}.accordion-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed{padding-block-start:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default));padding-block-end:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default))}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:calc(var(--post-device-spacing-padding-block-25) + var(--post-device-border-width-default));padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}';export{n as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion_item}from"./p-a710ee00.js";import"./p-9e461613.js";import"./p-93da1a5f.js";import"./p-247a1668.js";import"./p-e585c6fe.js";import"./p-440193f4.js";import"./p-d45df336.js";import"./p-7709c14a.js";import"./p-85fdc2d3.js";import"./p-722ffaae.js";import"./p-0889c759.js";import"./p-c65f32b0.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as a,g as s}from"./p-9e461613.js";import{v as e}from"./p-93da1a5f.js";import{c as r}from"./p-181c73d5.js";import"./p-722ffaae.js";var o;!function(t){t.Slotted="slotted",t.Image="image",t.Initials="initials",t[t.Null=null]="Null"}(o||(o={}));const n=class{constructor(i){t(this,i),this.firstname=void 0,this.lastname=void 0,this.userid=void 0,this.email=void 0,this.slottedImage=void 0,this.avatarType=null,this.imageUrl="",this.imageAlt="",this.initials=""}validateFirstname(){r(this,"firstname")}async getAvatar(){if(null!==this.slottedImage)this.avatarType=o.Slotted;else{let t=!1;!t&&this.userid&&(t=await this.getImageByProp(this.userid,this.fetchImageByUserId.bind(this))),!t&&this.email&&(t=await this.getImageByProp(this.email,this.fetchImageByEmail.bind(this))),t||this.getAvatarByInitials()}}async getImageByProp(t,i){if(!t)return!1;const a=await this.getStorageItem(t)??{ok:!1,url:""};if(!a.ok)try{const t=await i();a.ok=t.ok,a.url=t.url,this.imageUrl=a.url,this.imageAlt=`${this.firstname} ${this.lastname} avatar`,this.avatarType=o.Image,this.setStorageItem(this.userid,JSON.stringify(a))}catch(i){this.removeStorageItem(t),console.info(`Loading avatar by type "${o.Image}" failed.`)}return a.ok}async fetchImageByUserId(){return await fetch(n.INTERNAL_USERID_IMAGE_SRC.replace("{userid}",encodeURIComponent(this.userid)))}async fetchImageByEmail(){const t=await this.cryptify(this.email),i="https://www.gravatar.com/avatar/{email}?s=80&d=404&r=g".replace("{email}",t);return await fetch(i)}getAvatarByInitials(){this.initials=this.getInitials(),this.avatarType=o.Initials}getNames(){return[this.firstname,this.lastname].filter((t=>t))}getInitials(){return this.getNames().map((t=>t.charAt(0))).join("").trim()}async getStorageItem(t){const i=await this.cryptify(t),a=window?.sessionStorage?.getItem(i);return a?JSON.parse(a):null}async setStorageItem(t,i){const a=await this.cryptify(t);window?.sessionStorage?.setItem(a,i)}async removeStorageItem(t){const i=await this.cryptify(t);window?.sessionStorage?.removeItem(i)}async cryptify(t){return await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}onSlotDefaultChange(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentWillRender(){this.slottedImage=this.host.querySelector("img"),this.getAvatar()}componentDidLoad(){this.validateFirstname()}render(){const t=this.getNames().reduce(((t,a,s)=>(s>0&&t.push(i("span",null," ")),t.push(a.charAt(0)),t.push(i("span",null,a.slice(1))),t)),[]);return i(a,{"data-version":e},i("slot",{onSlotchange:this.onSlotDefaultChange.bind(this)},"image"===this.avatarType&&i("img",{src:this.imageUrl,alt:this.imageAlt}),"initials"===this.avatarType&&i("div",{class:"initials"},t)))}get host(){return s(this)}static get watchers(){return{firstname:["validateFirstname"]}}};n.INTERNAL_USERID_IMAGE_SRC="https://web.post.ch/UserProfileImage/{userid}.png",n.style='@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}:host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase}.initials span{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.initials span:not(caption){position:absolute !important}';export{n as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let r=(r=21)=>{let t="",e=crypto.getRandomValues(new Uint8Array(r|=0));for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&e[r]];return t};export{r as n}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_panel}from"./p-0539071d.js";import"./p-9e461613.js";import"./p-93da1a5f.js";import"./p-c65f32b0.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as o,g as s}from"./p-9e461613.js";import{v as a}from"./p-93da1a5f.js";import{c as i}from"./p-7709c14a.js";import"./p-722ffaae.js";const n=class{constructor(e){t(this,e),this.placement="top",this.arrow=!1,this.animation=null,this.open=!1}validateOpen(){i(this,"open","boolean",'The "open" property of the post-tooltip must be a boolean.')}connectedCallback(){this.validateOpen()}componentDidLoad(){this.host.id||console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}async show(t){this.open||this.popoverRef.show(t)}async hide(){this.popoverRef.hide()}async toggle(t,e){this.popoverRef.toggle(t,e)}handleToggle(t){this.open=t.detail}render(){return e(o,{key:"d6a76533f22e354ff89f15c1e9a10e20fe471579","data-version":a,role:"tooltip"},e("post-popovercontainer",{key:"60076aaa184ae98e9e813400cc2d03f5add274df",safeSpace:"trapezoid",class:this.arrow?"has-arrow":"",arrow:this.arrow,animation:this.animation,placement:this.placement,onPostToggle:t=>this.handleToggle(t),ref:t=>this.popoverRef=t},e("slot",{key:"1d5ea42696cc60a8a84ff0ecc29e82152d028ba4"})))}get host(){return s(this)}static get watchers(){return{open:["validateOpen"]}}};n.style=':host{display:none}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer>div{padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:200px;min-height:32px}';export{n as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(o,e,n,t){const r=o.host.localName,f=o[e],c=`The prop \`${String(e)}\` of the \`${r}\` component must be one of the following values: ${n.join(", ")}.`,h=t||c;if(!n.includes(f))throw new Error(h)}export{o as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_card_control}from"./p-30eb4d87.js";import"./p-9e461613.js";import"./p-d45df336.js";import"./p-181c73d5.js";import"./p-440193f4.js";import"./p-722ffaae.js";import"./p-93da1a5f.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_popover}from"./p-fda767f0.js";import"./p-9e461613.js";import"./p-722ffaae.js";import"./p-93da1a5f.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_footer}from"./p-84fbf49c.js";import"./p-9e461613.js";import"./p-93da1a5f.js";import"./p-722ffaae.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as t,H as r,g as e}from"./p-9e461613.js";import{v as a}from"./p-93da1a5f.js";import{c as i}from"./p-181c73d5.js";import"./p-722ffaae.js";import{n as c}from"./p-c65f32b0.js";const l=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(){i(this,"panel")}componentWillLoad(){this.tabId=`tab-${this.host.id||c(6)}`}render(){return t(r,{key:"5046c46fa27fd6586c694420abf197b227b56520",id:this.tabId,role:"tab","data-version":a,"aria-selected":"false",tabindex:"-1",class:"tab-title",slot:"tabs"},t("slot",{key:"78c2f660e4f2307ca95a63f4cfd90d08cc6942df"}))}get host(){return e(this)}static get watchers(){return{panel:["validateFor"]}}};l.style='.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:#000;text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:#000}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(0,0,0,.6);color:#fff}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(0,0,0,.6);color:#fff;box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:#000;font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:var(--post-core-dimension-4);background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:var(--post-core-dimension-2) solid Highlight;outline-offset:calc(var(--post-core-dimension-4)*-1)}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title{background-color:ButtonFace !important}.tab-title:hover{background-color:Highlight !important}}';export{l as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,H as e,g as o}from"./p-9e461613.js";import{v as a}from"./p-93da1a5f.js";import{I as r}from"./p-722ffaae.js";import{d as h}from"./p-e585c6fe.js";import{c}from"./p-7709c14a.js";import{c as l}from"./p-181c73d5.js";import{e as n}from"./p-0889c759.js";import{g as d}from"./p-6b31a76a.js";const p={height:"0",overflow:"hidden"},b={duration:350,easing:"ease",fill:"forwards"},g=class{constructor(i){t(this,i),this.postToggle=s(this,"postToggle",7),this.isLoaded=!1,this.isOpen=!0,this.collapsed=!1}collapsedChange(){h(this,"collapsed","boolean"),this.toggle(!this.collapsed)}componentDidLoad(){this.collapsedChange(),this.isLoaded=!0,this.updateTriggers()}async toggle(t=!this.isOpen){if(t===this.isOpen)return t;this.isOpen=t,this.collapsed=!t,this.isLoaded&&this.postToggle.emit(t);const s=t?(i=this.host).animate([p,{height:`${i.scrollHeight}px`,offset:1},{height:"auto",overflow:"visible"}],b):function(t){const s=r?window.getComputedStyle(t).height:`${t.scrollHeight}px`;return t.animate([{height:s},p],b)}(this.host);var i;return(!this.isLoaded||r&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)&&s.finish(),await s.finished,this.host.offsetParent&&s.commitStyles(),this.updateTriggers(),t}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for="${this.host.id}"]`).forEach((t=>t.update()))}render(){return i(e,{key:"a678bc639dfd7686d8e1bd57ca0f09984a24ab61","data-version":a,tabindex:this.collapsed?-1:void 0},i("slot",{key:"e0b88ac152fa09314b4bc01c9abdb11480e2cb4d"}))}get host(){return o(this)}static get watchers(){return{collapsed:["collapsedChange"]}}};g.style=":host{display:block;position:relative;overflow:hidden}";const f=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.for=void 0}validateAriaAttributes(){l(this,"for"),c(this,"for","string",'The post-collapsible-trigger "for" prop should be a id.')}connectedCallback(){this.root=d(this.host),this.root.addEventListener("postToggle",this.handlePostToggle),this.observer.observe(this.host,{childList:!0,subtree:!0})}componentDidLoad(){this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button."),this.validateAriaAttributes()}disconnectedCallback(){this.observer.disconnect(),this.root.removeEventListener("postToggle",this.handlePostToggle)}async update(){this.updateAriaAttributes()}handlePostToggle(t){n(this.host,t,{targetLocalName:"post-collapsible"},(()=>{this.trigger&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}))}updateAriaAttributes(){if(!this.trigger)return;const t=this.trigger.getAttribute("aria-controls");t?.includes(this.for)||this.trigger.setAttribute("aria-controls",t?`${t} ${this.for}`:this.for);const s=this.collapsible?.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==s?!s:void 0}`)}async toggleCollapsible(){await(this.collapsible?.toggle())}get collapsible(){const t=this.root.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.updateAriaAttributes())}render(){return i(e,{key:"cd703fe34b8c82afc5956b58724d36b06054bc0b","data-version":a},i("slot",{key:"5abe4ba2b8922b941cc8aebbc7039e34e1853855"}))}get host(){return o(this)}static get watchers(){return{for:["validateAriaAttributes"]}}};export{g as P,f as a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as o}from"./p-440193f4.js";import{c as t}from"./p-d45df336.js";import{c as r}from"./p-7709c14a.js";import{c as s}from"./p-85fdc2d3.js";function f(t){return(...r)=>{const s=r[0][r[1]];o.some((o=>o===s))||t(...r)}}const n=f(t),p=f((function(o,t,r,s){const f=o.host.localName,n=o[t],p=`The prop \`${String(t)}\` of the \`${f}\` component must be follow the format \`${r}\`.`,c=s||p;if("string"!=typeof n||!r.test(n))throw new Error(c)})),c=f(r),a=f(s);export{p as a,a as b,n as c,c as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as a,H as i,g as r}from"./p-9e461613.js";import{v as e}from"./p-93da1a5f.js";const o=class{constructor(a){t(this,a),this.postInput=s(this,"postInput",7),this.postChange=s(this,"postChange",7),this.hasChanged=!1,this.hoveredIndex=void 0,this.label="Rating",this.stars=5,this.currentRating=0,this.readonly=!1,this.keydownHandler=this.keydownHandler.bind(this),this.blurHandler=this.blurHandler.bind(this),this.hoverHandler=this.hoverHandler.bind(this)}update(t){this.readonly||t<0||t>this.stars||(this.currentRating=this.currentRating!==t?t:0,this.postInput.emit({value:this.currentRating}),this.hasChanged=!0)}keydownHandler(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault(),this.update(this.currentRating+1);break;case"Home":t.preventDefault(),this.update(0);break;case"End":t.preventDefault(),this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}}blurHandler(){this.hasChanged&&(this.postChange.emit({value:this.currentRating}),this.hasChanged=!1)}hoverHandler(t,s){this.readonly||("mouseenter"===s.type?this.hoveredIndex=t:"mouseleave"===s.type&&(this.hoveredIndex=void 0))}render(){return a(i,{key:"4ccdf384b9a4cfc462d5d3f4a7caab659b6ba2b0","data-version":e},a("div",{key:"7ab53083bcdff6586b1de7f1c9e5fa546728fc6f",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":`${this.currentRating} out of ${this.stars}`,"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map(((t,s)=>a("div",{key:`star-${t}`,"aria-hidden":"true",class:{star:!0,"before-hover":s<this.hoveredIndex,active:s<Math.round(this.currentRating),hover:s===this.hoveredIndex,"after-active":s>this.hoveredIndex&&s<this.currentRating},onClick:()=>this.update(s+1),onMouseEnter:t=>this.hoverHandler(s,t),onMouseLeave:t=>this.hoverHandler(s,t)},a("post-icon",{name:"2062",class:"stroke"}),a("post-icon",{name:"2574",class:"fill"}))))))}get host(){return r(this)}};o.style="@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";export{o as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_breadcrumbs}from"./p-8c09291c.js";import"./p-9e461613.js";import"./p-93da1a5f.js";import"./p-85fdc2d3.js";import"./p-722ffaae.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tag}from"./p-72197a6b.js";import"./p-9e461613.js";import"./p-93da1a5f.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as e,H as t,g as s}from"./p-9e461613.js";import{I as i}from"./p-722ffaae.js";import{v as r}from"./p-93da1a5f.js";let a=0;const n="data-popover-target",c=o=>{let e=o.target;for(;e&&!e.getAttribute(n)&&e!==document.body&&e.parentElement;)e=e.parentElement;const t=e?.getAttribute(n);if(!t||"key"in o&&"Enter"!==o.key)return;const s=document.getElementById(t);s?.toggle(e)},l=class{constructor(e){var t,s;o(this,e),this.triggerObserver=i?(t=n,s=this.patchAccessibilityFeatures,i?new MutationObserver((function(o){o.forEach((o=>{"attributes"===o.type&&o.attributeName===t&&s(o.target),"childList"===o.type&&o.addedNodes.forEach((o=>{o.nodeType===Node.ELEMENT_NODE&&o.hasAttribute(t)&&s(o)}))}))})):null):null,this.placement="top",this.closeButtonCaption=void 0,this.arrow=!0,this.localBeforeToggleHandler=this.beforeToggleHandler.bind(this)}connectedCallback(){0===a&&(window.addEventListener("pointerup",c),window.addEventListener("keydown",c),this.triggerObserver?.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[n]})),a++,this.triggers.forEach((o=>o.setAttribute("aria-expanded","false")))}componentDidLoad(){this.popoverRef.addEventListener("beforetoggle",this.localBeforeToggleHandler)}disconnectedCallback(){a--,0===a&&(window.removeEventListener("click",c),window.removeEventListener("keydown",c),this.triggerObserver?.disconnect()),this.popoverRef.removeEventListener("beforetoggle",this.localBeforeToggleHandler),this.triggers.forEach((o=>o.removeAttribute("aria-expanded")))}async show(o){this.popoverRef.show(o),o.setAttribute("aria-expanded","true")}async hide(){this.popoverRef.hide(),this.triggers.forEach((o=>o.setAttribute("aria-expanded","false")))}async toggle(o,e){const t=await this.popoverRef.toggle(o,e);this.triggers.forEach((o=>o.setAttribute("aria-expanded","false"))),o.setAttribute("aria-expanded",`${t}`)}get triggers(){return document.querySelectorAll(`[${n}="${this.host.id}"]`)}beforeToggleHandler(){this.triggers.forEach((o=>o.setAttribute("aria-expanded","false")))}patchAccessibilityFeatures(o){const e=o.hasAttribute(n);o.setAttribute("aria-expanded",e?"false":null)}render(){return e(t,{key:"56056367e3d917d7a2b9f81073fb9be4966d6bf6","data-version":r},e("post-popovercontainer",{key:"303164b40db9d7568304b354ff065a564506221f",arrow:this.arrow,placement:this.placement,ref:o=>this.popoverRef=o},e("div",{key:"e9d93ab370c3915e61d955823a0ce5674b5a39ae",class:"popover-container"},e("div",{key:"108db792f093ac81356eda9389dc2b0b0da363e2",class:"popover-content"},e("slot",{key:"88694578a319978f747cfa7904294199d06edb21"})),e("button",{key:"3cf65346d57b9985bfe97d8e0cd46dc68951168b",class:"btn-close",onClick:()=>this.hide()},e("span",{key:"6b2d660aa046935c16bad96c640dae6a77713383",class:"visually-hidden"},this.closeButtonCaption)))))}get host(){return s(this)}};l.style="@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}.btn-close{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{background-color:ButtonFace !important}.btn-close:hover{background-color:Highlight !important}}.btn-close{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:#999}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:min(var(--post-popover-max-width, 280px),100vw)}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:var(--post-scheme-color-surface-default-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:hover{color:HighlightText !important}}";export{l as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-
|
|
1
|
+
import{p as e,b as a}from"./p-9e461613.js";export{s as setNonce}from"./p-9e461613.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-f31b9b5d",[[1,"post-breadcrumbs",{homeUrl:[1,"home-url"],homeText:[1,"home-text"],breadcrumbItems:[32],isConcatenated:[32],lastWindowWidth:[32]},null,{homeUrl:["validateUrl"]}]]],["p-dd39c542",[[1,"post-footer",{label:[1],isMobile:[32]}]]],["p-6933fb57",[[1,"post-back-to-top",{label:[513],belowFold:[32]},null,{belowFold:["watchBelowFold"],label:["validateLabel"]}]]],["p-4c049de0",[[1,"post-banner",{dismissible:[4],dismissLabel:[1,"dismiss-label"],icon:[1],type:[1],bannerId:[32],classes:[32],hasActions:[32],hasHeading:[32],onDismissButtonClick:[32],dismiss:[64]},null,{dismissible:["validateDismissible"],dismissLabel:["validateDismissLabel"],icon:["validateIcon"],type:["validateType"]}]]],["p-d4890d50",[[65,"post-card-control",{label:[513],description:[1],type:[1],name:[1],value:[1],checked:[1028],disabled:[1028],validity:[1025],icon:[1],focused:[32],reset:[64],groupReset:[64]},null,{label:["validateControlLabel"],type:["validateControlType"],checked:["updateControlChecked"],disabled:["updateControlDisabled"]}]]],["p-d5210531",[[1,"post-popover",{placement:[1],closeButtonCaption:[1,"close-button-caption"],arrow:[4],show:[64],hide:[64],toggle:[64]}]]],["p-4c4acc32",[[1,"post-rating",{label:[1],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]}]]],["p-f58252d5",[[1,"post-tag",{variant:[1],size:[1],icon:[1],classes:[32]},null,{variant:["variantChanged"],size:["sizeChanged"]}]]],["p-9fbf2f82",[[1,"post-tooltip",{placement:[1],arrow:[4],animation:[1],open:[1540],show:[64],hide:[64],toggle:[64]},null,{open:["validateOpen"]}]]],["p-24d0695f",[[1,"post-accordion",{headingLevel:[2,"heading-level"],multiple:[4],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:["validateHeadingLevel"]}]]],["p-9efb84d3",[[1,"post-avatar",{firstname:[513],lastname:[1],userid:[1],email:[1],slottedImage:[32],avatarType:[32],imageUrl:[32],imageAlt:[32],initials:[32]},null,{firstname:["validateFirstname"]}]]],["p-80e5100e",[[1,"post-linkarea"]]],["p-46008c18",[[1,"post-tab-header",{panel:[513],tabId:[32]},null,{panel:["validateFor"]}]]],["p-c6b03446",[[1,"post-tab-panel",{name:[513],panelId:[32]}]]],["p-2e50a07d",[[1,"post-tabs",{activePanel:[1,"active-panel"],show:[64]}]]],["p-9b8ee310",[[1,"post-tooltip-trigger",{for:[513],delay:[2]},null,{for:["validateControlFor"]}]]],["p-6783e509",[[1,"post-collapsible",{collapsed:[1028],toggle:[64]},null,{collapsed:["collapsedChange"]}],[1,"post-collapsible-trigger",{for:[513],update:[64]},null,{for:["validateAriaAttributes"]}]]],["p-77910344",[[1,"post-language-switch",{caption:[1],description:[1],variant:[1],activeLang:[32]},[[0,"postChange","handlePostChange"],[0,"postLanguageOptionInitiallyActive","handleInitiallyActive"]],{caption:["validateCaption"],description:["validateDescription"],variant:["validateVariant"]}],[1,"post-closebutton"],[4,"post-mainnavigation",{canScrollLeft:[32],canScrollRight:[32]},[[9,"mouseup","stopScrolling"],[9,"mouseleave","stopScrolling"]]],[1,"post-header",{device:[32],mobileMenuExtended:[32],megadropdownOpen:[32],toggleMobileMenu:[64]},null,{device:["lockBody"],mobileMenuExtended:["lockBody"]}],[4,"post-language-option",{code:[1],active:[1540],variant:[1],name:[1],url:[1],select:[64]},null,{code:["validateCode"],active:["validateActiveProp"],name:["validateName"],url:["validateUrl"]}],[4,"post-list",{titleHidden:[4,"title-hidden"],horizontal:[516],titleId:[32]}],[1,"post-list-item"],[1,"post-logo",{url:[1]},null,{url:["validateUrl"]}],[4,"post-megadropdown",{device:[32],isVisible:[32],animationClass:[32],toggle:[64],show:[64],hide:[64],focusFirst:[64]}],[4,"post-megadropdown-trigger",{for:[1],ariaExpanded:[32]},null,{for:["validateControlFor"]}],[1,"post-togglebutton",{toggled:[1028]},null,{toggled:["validateToggled"]}],[1,"post-menu",{placement:[1],isVisible:[32],toggle:[64],show:[64],hide:[64]}],[4,"post-menu-trigger",{for:[513],ariaExpanded:[32]},null,{for:["validateControlFor"]}],[4,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],animation:[1],arrow:[4],manualClose:[4,"manual-close"],safeSpace:[513,"safe-space"],show:[64],hide:[64],toggle:[64]}],[1,"post-icon",{animation:[1],base:[1],flipH:[4,"flip-h"],flipV:[4,"flip-v"],name:[513],rotate:[2],scale:[2]},null,{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}]]],["p-b94e5b4d",[[1,"post-accordion-item",{collapsed:[1028],headingLevel:[2,"heading-level"],id:[32],slottedLogo:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]],{headingLevel:["validateHeadingLevel"]}]]],["p-47ab2c2b",[[1,"post-breadcrumb-item",{url:[1],fullUrl:[32]},null,{url:["validateUrl"]}],[4,"post-menu-item"]]]],e))));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare
|
|
1
|
+
export declare function collapse(el: HTMLElement): Animation;
|
|
2
|
+
export declare function expand(el: HTMLElement): Animation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare
|
|
1
|
+
export declare function fadeIn(el: Element): Animation;
|
|
2
|
+
export declare function fadeOut(el: Element): Animation;
|
|
@@ -9,7 +9,7 @@ export declare class PostAccordion {
|
|
|
9
9
|
/**
|
|
10
10
|
* Defines the hierarchical level of the `post-accordion-item` headers within the headings structure.
|
|
11
11
|
*/
|
|
12
|
-
readonly headingLevel
|
|
12
|
+
readonly headingLevel: HeadingLevel;
|
|
13
13
|
validateHeadingLevel(newValue?: 1 | 2 | 3 | 4 | 5 | 6): void;
|
|
14
14
|
/**
|
|
15
15
|
* If `true`, multiple `post-accordion-item` can be open at the same time.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { HeadingLevel } from "../../types/index";
|
|
2
2
|
/**
|
|
3
|
+
* @part button - The pseudo-element, used to override styles on the components internal header `button` element.
|
|
4
|
+
* @part body - The pseudo-element, used to override styles on the components internal `body` element.
|
|
5
|
+
* @slot logo - Slot for the placing a logo before the header.
|
|
3
6
|
* @slot header - Slot for placing custom content within the accordion item's header.
|
|
4
7
|
* @slot default - Slot for placing content within the accordion item's body.
|
|
5
8
|
*/
|
|
@@ -7,6 +10,7 @@ export declare class PostAccordionItem {
|
|
|
7
10
|
private collapsible;
|
|
8
11
|
host: HTMLPostAccordionItemElement;
|
|
9
12
|
id: string;
|
|
13
|
+
slottedLogo: HTMLElement;
|
|
10
14
|
/**
|
|
11
15
|
* If `true`, the element is collapsed otherwise it is displayed.
|
|
12
16
|
*/
|
|
@@ -16,13 +20,15 @@ export declare class PostAccordionItem {
|
|
|
16
20
|
* @deprecated set the `heading-level` property on the parent `post-accordion` instead.
|
|
17
21
|
*/
|
|
18
22
|
readonly headingLevel?: HeadingLevel;
|
|
19
|
-
validateHeadingLevel(
|
|
20
|
-
componentDidLoad(): void;
|
|
23
|
+
validateHeadingLevel(): void;
|
|
21
24
|
componentWillLoad(): void;
|
|
25
|
+
componentDidLoad(): void;
|
|
22
26
|
onCollapseToggle(event: CustomEvent<boolean>): void;
|
|
23
27
|
/**
|
|
24
28
|
* Triggers the collapse programmatically.
|
|
25
29
|
*/
|
|
26
30
|
toggle(force?: boolean): Promise<boolean>;
|
|
31
|
+
private onSlotLogoChange;
|
|
32
|
+
componentWillRender(): void;
|
|
27
33
|
render(): any;
|
|
28
34
|
}
|
|
@@ -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();
|