@swisspost/design-system-components 9.0.0-next.33 → 9.0.0-next.35
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/cjs/{attribute-observer-6d8b886b.js → attribute-observer-c3a805b2.js} +3 -1
- package/dist/cjs/{breakpoints-c6247c71.js → breakpoints-cdf1b747.js} +12 -7
- package/dist/cjs/get-root-8102fecd.js +17 -0
- package/dist/cjs/{index-d6bf2c66.js → index-b60129c4.js} +4 -4
- package/dist/cjs/index.cjs.js +25 -26
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/long-press-event-6e62d113.js +266 -0
- package/dist/cjs/{package-3562c265.js → package-19b74b08.js} +1 -1
- package/dist/cjs/{post-accordion-6c5681ba.js → post-accordion-785f602b.js} +5 -5
- package/dist/cjs/{post-accordion-item-05a78451.js → post-accordion-item-8e1c9bdb.js} +5 -5
- package/dist/cjs/post-accordion-item.cjs.entry.js +5 -4
- package/dist/cjs/post-accordion.cjs.entry.js +4 -3
- package/dist/cjs/{post-avatar-6710a77a.js → post-avatar-eecfd222.js} +6 -5
- package/dist/cjs/post-avatar.cjs.entry.js +4 -3
- package/dist/cjs/{post-back-to-top-d0662842.js → post-back-to-top-49a3abcb.js} +9 -9
- package/dist/cjs/post-back-to-top.cjs.entry.js +4 -3
- package/dist/cjs/{post-banner-bd97db9c.js → post-banner-249ec2ff.js} +5 -9
- package/dist/cjs/post-banner.cjs.entry.js +4 -3
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +4 -3
- package/dist/cjs/{post-breadcrumb-36ab841c.js → post-breadcrumbs-f51590d1.js} +39 -31
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +13 -0
- package/dist/cjs/post-card-control-d0a47015.js +269 -0
- package/dist/cjs/post-card-control.cjs.entry.js +4 -3
- package/dist/cjs/post-closebutton_15.cjs.entry.js +5 -5
- package/dist/cjs/{post-collapsible-trigger-6601c554.js → post-collapsible-trigger-4784edb2.js} +24 -41
- package/dist/cjs/post-collapsible_2.cjs.entry.js +5 -5
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/{post-footer-23699aef.js → post-footer-9d078cb1.js} +11 -11
- package/dist/cjs/post-footer.cjs.entry.js +4 -4
- package/dist/cjs/{post-linkarea-8e5e1a9f.js → post-linkarea-e4ce3960.js} +5 -5
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/{post-menu-item-8dd94792.js → post-menu-item-e9ebd27a.js} +4 -4
- package/dist/cjs/post-popover-5db53ead.js +112 -0
- package/dist/cjs/post-popover.cjs.entry.js +5 -4
- package/dist/cjs/{post-rating-ef592484.js → post-rating-98a06828.js} +5 -15
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-d785e7fc.js → post-tab-header-c8e92f77.js} +6 -5
- package/dist/cjs/post-tab-header.cjs.entry.js +4 -3
- package/dist/cjs/{post-tab-panel-41ea371e.js → post-tab-panel-d966ee38.js} +4 -4
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-c6f00130.js → post-tabs-83d99b69.js} +5 -12
- package/dist/cjs/post-tabs.cjs.entry.js +4 -3
- package/dist/cjs/post-tag-a1d78e75.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-togglebutton-02c56b7b.js → post-togglebutton-e4651aad.js} +939 -464
- package/dist/cjs/{post-tooltip-3176e280.js → post-tooltip-bb862241.js} +39 -296
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -4
- package/dist/collection/animations/collapse.js +3 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +1 -3
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +0 -2
- package/dist/collection/components/post-avatar/post-avatar.css +1 -3
- package/dist/collection/components/post-avatar/post-avatar.js +3 -4
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +6 -8
- package/dist/collection/components/post-banner/post-banner.css +1 -3
- package/dist/collection/components/post-banner/post-banner.js +0 -6
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +0 -2
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -0
- package/dist/collection/components/{post-breadcrumb/post-breadcrumb.js → post-breadcrumbs/post-breadcrumbs.js} +24 -27
- package/dist/collection/components/post-card-control/post-card-control.css +1 -3
- package/dist/collection/components/post-card-control/post-card-control.js +24 -40
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -0
- package/dist/collection/components/post-closebutton/post-closebutton.js +12 -2
- package/dist/collection/components/post-collapsible/post-collapsible.js +4 -10
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +15 -28
- package/dist/collection/components/post-footer/post-footer.js +8 -9
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +13 -22
- package/dist/collection/components/post-icon/post-icon.js +4 -6
- package/dist/collection/components/post-language-option/post-language-option.css +1 -3
- package/dist/collection/components/post-language-option/post-language-option.js +1 -10
- package/dist/collection/components/post-language-switch/post-language-switch.js +7 -19
- package/dist/collection/components/post-linkarea/post-linkarea.css +1 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +2 -2
- package/dist/collection/components/post-list/post-list.css +1 -3
- package/dist/collection/components/post-list/post-list.js +1 -3
- package/dist/collection/components/post-list-item/post-list-item.js +1 -2
- package/dist/collection/components/post-logo/post-logo.js +1 -2
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +98 -182
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +20 -30
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +36 -37
- package/dist/collection/components/post-menu/post-menu.css +1 -3
- package/dist/collection/components/post-menu/post-menu.js +47 -55
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +13 -15
- package/dist/collection/components/post-popover/post-popover.css +1 -3
- package/dist/collection/components/post-popover/post-popover.js +13 -13
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +30 -33
- package/dist/collection/components/post-rating/post-rating.css +1 -3
- package/dist/collection/components/post-rating/post-rating.js +1 -12
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -3
- package/dist/collection/components/post-tab-header/post-tab-header.js +2 -3
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +2 -3
- package/dist/collection/components/post-tabs/post-tabs.js +1 -10
- package/dist/collection/components/post-tag/post-tag.css +1 -3
- package/dist/collection/components/post-tag/post-tag.js +1 -2
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +10 -11
- package/dist/collection/components/post-tooltip/post-tooltip.js +37 -33
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/attribute-observer.js +2 -1
- package/dist/collection/utils/breakpoints.js +9 -7
- package/dist/collection/utils/environment.js +2 -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/components/attribute-observer.js +3 -1
- package/dist/components/breakpoints.js +12 -8
- package/dist/components/get-root.js +7 -1
- package/dist/components/index.js +1 -1
- package/dist/components/long-press-event.js +264 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +3 -3
- package/dist/components/post-accordion2.js +3 -3
- package/dist/components/post-avatar2.js +5 -4
- package/dist/components/post-back-to-top2.js +8 -8
- package/dist/components/post-banner2.js +3 -7
- package/dist/components/post-breadcrumb-item2.js +2 -2
- package/dist/components/{post-breadcrumb.d.ts → post-breadcrumbs.d.ts} +4 -4
- package/dist/components/post-breadcrumbs.js +6 -0
- package/dist/components/{post-breadcrumb2.js → post-breadcrumbs2.js} +41 -33
- package/dist/components/post-card-control2.js +26 -40
- package/dist/components/post-closebutton2.js +8 -3
- package/dist/components/post-collapsible-trigger2.js +19 -31
- package/dist/components/post-collapsible2.js +9 -12
- package/dist/components/post-footer2.js +8 -8
- package/dist/components/post-header2.js +15 -23
- package/dist/components/post-icon2.js +5 -5
- package/dist/components/post-language-option2.js +4 -11
- package/dist/components/post-language-switch2.js +9 -18
- package/dist/components/post-linkarea2.js +5 -4
- package/dist/components/post-list-item2.js +2 -2
- package/dist/components/post-list2.js +3 -4
- package/dist/components/post-logo2.js +3 -2
- package/dist/components/post-mainnavigation2.js +94 -182
- package/dist/components/post-megadropdown-trigger2.js +38 -37
- package/dist/components/post-megadropdown2.js +21 -30
- package/dist/components/post-menu-trigger2.js +15 -15
- package/dist/components/post-menu2.js +50 -56
- package/dist/components/post-popover2.js +15 -13
- package/dist/components/post-popovercontainer2.js +638 -36
- package/dist/components/post-rating2.js +3 -13
- package/dist/components/post-tab-header2.js +5 -4
- package/dist/components/post-tab-panel2.js +3 -3
- package/dist/components/post-tabs2.js +3 -10
- package/dist/components/post-tag2.js +2 -2
- package/dist/components/post-togglebutton2.js +12 -11
- package/dist/components/post-tooltip2.js +37 -294
- package/dist/docs.json +107 -101
- package/dist/esm/{attribute-observer-2f203993.js → attribute-observer-009deee5.js} +3 -1
- package/dist/esm/{breakpoints-bbe0c54e.js → breakpoints-7812702e.js} +12 -8
- package/dist/esm/get-root-1b1af46f.js +15 -0
- package/dist/esm/{index-3419e46d.js → index-f4d19816.js} +4 -4
- package/dist/esm/index.js +24 -25
- package/dist/esm/loader.js +3 -3
- package/dist/esm/long-press-event-04d24397.js +264 -0
- package/dist/esm/package-791f9257.js +3 -0
- package/dist/esm/{post-accordion-024451fa.js → post-accordion-4de9963b.js} +5 -5
- package/dist/esm/{post-accordion-item-19b996d1.js → post-accordion-item-2cbb32f9.js} +5 -5
- package/dist/esm/post-accordion-item.entry.js +5 -4
- package/dist/esm/post-accordion.entry.js +4 -3
- package/dist/esm/{post-avatar-33aed045.js → post-avatar-0aaefe87.js} +6 -5
- package/dist/esm/post-avatar.entry.js +4 -3
- package/dist/esm/{post-back-to-top-7dd43c3b.js → post-back-to-top-24eef0a0.js} +9 -9
- package/dist/esm/post-back-to-top.entry.js +4 -3
- package/dist/esm/{post-banner-28d18721.js → post-banner-1f37f9f0.js} +5 -9
- package/dist/esm/post-banner.entry.js +4 -3
- package/dist/esm/post-breadcrumb-item_2.entry.js +4 -3
- package/dist/esm/{post-breadcrumb-d86fae7b.js → post-breadcrumbs-2fcccf9f.js} +39 -31
- package/dist/esm/post-breadcrumbs.entry.js +5 -0
- package/dist/esm/post-card-control-75e8d336.js +267 -0
- package/dist/esm/post-card-control.entry.js +4 -3
- package/dist/esm/post-closebutton_15.entry.js +5 -5
- package/dist/esm/{post-collapsible-trigger-b1612866.js → post-collapsible-trigger-08b79162.js} +24 -41
- package/dist/esm/post-collapsible_2.entry.js +5 -5
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/{post-footer-2ed5e520.js → post-footer-01677010.js} +11 -11
- package/dist/esm/post-footer.entry.js +4 -4
- package/dist/esm/{post-linkarea-802bf774.js → post-linkarea-4a178d51.js} +5 -5
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/{post-menu-item-d97611d8.js → post-menu-item-199477fd.js} +4 -4
- package/dist/esm/post-popover-2a6a13d8.js +110 -0
- package/dist/esm/post-popover.entry.js +5 -4
- package/dist/esm/{post-rating-e1ac47ce.js → post-rating-fcf24658.js} +5 -15
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-06dcbf7f.js → post-tab-header-aaa2f0b8.js} +6 -5
- package/dist/esm/post-tab-header.entry.js +4 -3
- package/dist/esm/{post-tab-panel-75932601.js → post-tab-panel-91f35995.js} +4 -4
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-3ef2ea23.js → post-tabs-8657f2d6.js} +5 -12
- package/dist/esm/post-tabs.entry.js +4 -3
- package/dist/esm/post-tag-19141551.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-togglebutton-db251030.js → post-togglebutton-40cac8c2.js} +939 -464
- package/dist/esm/{post-tooltip-c256d714.js → post-tooltip-165eb353.js} +39 -296
- package/dist/esm/post-tooltip.entry.js +5 -4
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-01544069.js +1 -0
- package/dist/post-components/p-02d0c370.js +1 -0
- package/dist/post-components/p-03169497.js +1 -0
- package/dist/post-components/p-06bf6b81.entry.js +1 -0
- package/dist/post-components/p-0ca39161.entry.js +1 -0
- package/dist/post-components/p-0f398677.js +1 -0
- package/dist/post-components/p-10f9d25e.js +1 -0
- package/dist/post-components/p-15da2cf9.js +1 -0
- package/dist/post-components/p-1622ed8c.js +1 -0
- package/dist/post-components/p-1d5e275b.js +1 -0
- package/dist/post-components/p-2a90f66c.js +1 -0
- package/dist/post-components/p-32aa68ac.entry.js +1 -0
- package/dist/post-components/p-3d30acad.entry.js +1 -0
- package/dist/post-components/p-48cd3157.js +1 -0
- package/dist/post-components/p-56da2097.entry.js +1 -0
- package/dist/post-components/p-65824049.entry.js +1 -0
- package/dist/post-components/p-6b31a76a.js +1 -0
- package/dist/post-components/p-722ffaae.js +1 -0
- package/dist/post-components/p-7c6f4c29.js +1 -0
- package/dist/post-components/p-817effd4.js +1 -0
- package/dist/post-components/p-8579ac14.js +8 -0
- package/dist/post-components/p-86859a7b.entry.js +1 -0
- package/dist/post-components/p-8db32dab.js +8 -0
- package/dist/post-components/p-936682bc.entry.js +1 -0
- package/dist/post-components/p-9597127a.js +1 -0
- package/dist/post-components/p-9818ad52.entry.js +1 -0
- package/dist/post-components/{p-5c758f41.js → p-9e461613.js} +1 -1
- package/dist/post-components/p-9ec20111.js +1 -0
- package/dist/post-components/p-a1a39a27.js +1 -0
- package/dist/post-components/p-a1bae666.entry.js +1 -0
- package/dist/post-components/p-a27907cc.js +1 -0
- package/dist/post-components/p-a77a6729.entry.js +1 -0
- package/dist/post-components/p-ab3ab29b.js +1 -0
- package/dist/post-components/p-ad9ffd61.entry.js +1 -0
- package/dist/post-components/p-b8241188.js +1 -0
- package/dist/post-components/p-bece917c.js +1 -0
- package/dist/post-components/p-bf3c80a3.entry.js +1 -0
- package/dist/post-components/p-cd8aef45.entry.js +1 -0
- package/dist/post-components/p-cdd3a06a.entry.js +1 -0
- package/dist/post-components/p-dc702c39.entry.js +1 -0
- package/dist/post-components/p-e077239a.entry.js +1 -0
- package/dist/post-components/p-e653daec.entry.js +1 -0
- package/dist/post-components/p-e8861c07.entry.js +1 -0
- package/dist/post-components/p-f2478a7d.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-avatar/post-avatar.d.ts +1 -1
- package/dist/types/components/{post-breadcrumb/post-breadcrumb.d.ts → post-breadcrumbs/post-breadcrumbs.d.ts} +4 -4
- package/dist/types/components/post-card-control/post-card-control.d.ts +1 -1
- package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +4 -14
- package/dist/types/components/post-footer/post-footer.d.ts +2 -2
- package/dist/types/components/post-header/post-header.d.ts +1 -0
- package/dist/types/components/post-icon/post-icon.d.ts +0 -1
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +2 -5
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +14 -39
- package/dist/types/components/post-menu/post-menu.d.ts +3 -3
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +1 -1
- package/dist/types/components/post-popover/post-popover.d.ts +6 -4
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +1 -1
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +9 -4
- package/dist/types/components.d.ts +35 -35
- package/dist/types/index.d.ts +1 -1
- package/dist/types/popover-fn.d.ts +11 -0
- package/dist/types/utils/environment.d.ts +2 -0
- package/dist/types/utils/get-root.d.ts +4 -0
- package/dist/types/utils/index.d.ts +5 -0
- package/loaders/attribute-observer.js +3 -1
- package/loaders/breakpoints.js +12 -8
- package/loaders/get-root.js +7 -1
- package/loaders/index.d.ts +2 -2
- package/loaders/index.js +4 -4
- package/loaders/long-press-event.js +264 -0
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item2.js +3 -3
- package/loaders/post-accordion.js +3 -3
- package/loaders/post-avatar.js +5 -4
- package/loaders/post-back-to-top.js +8 -8
- package/loaders/post-banner.js +3 -7
- package/loaders/post-breadcrumb-item2.js +2 -2
- package/loaders/{post-breadcrumb.d.ts → post-breadcrumbs.d.ts} +4 -4
- package/loaders/{post-breadcrumb.js → post-breadcrumbs.js} +42 -34
- package/loaders/post-card-control.js +26 -40
- package/loaders/post-closebutton.js +8 -3
- package/loaders/post-collapsible-trigger2.js +19 -31
- package/loaders/post-collapsible2.js +9 -12
- package/loaders/post-footer.js +8 -8
- package/loaders/post-header.js +15 -23
- package/loaders/post-icon2.js +5 -5
- package/loaders/post-language-option.js +4 -11
- package/loaders/post-language-switch.js +9 -18
- package/loaders/post-linkarea.js +5 -4
- package/loaders/post-list-item.js +2 -2
- package/loaders/post-list.js +3 -4
- package/loaders/post-logo.js +3 -2
- package/loaders/post-mainnavigation.js +94 -182
- package/loaders/post-megadropdown-trigger.js +38 -37
- package/loaders/post-megadropdown.js +21 -30
- package/loaders/post-menu-trigger2.js +15 -15
- package/loaders/post-menu2.js +50 -56
- package/loaders/post-popover.js +15 -13
- package/loaders/post-popovercontainer2.js +638 -36
- package/loaders/post-rating.js +3 -13
- package/loaders/post-tab-header.js +5 -4
- package/loaders/post-tab-panel.js +3 -3
- package/loaders/post-tabs.js +3 -10
- package/loaders/post-tag.js +2 -2
- package/loaders/post-togglebutton.js +12 -11
- package/loaders/post-tooltip.js +37 -294
- package/package.json +20 -15
- package/dist/cjs/debounce-158fd76f.js +0 -13
- package/dist/cjs/get-root-7a3498ef.js +0 -11
- package/dist/cjs/post-breadcrumb.cjs.entry.js +0 -13
- package/dist/cjs/post-card-control-155fb433.js +0 -283
- package/dist/cjs/post-popover-858cbd12.js +0 -110
- package/dist/cjs/post-tag-d1a1176c.js +0 -47
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.css +0 -3
- package/dist/components/debounce.js +0 -11
- package/dist/components/post-breadcrumb.js +0 -6
- package/dist/esm/debounce-e54c7131.js +0 -11
- package/dist/esm/get-root-7af2e0d1.js +0 -9
- package/dist/esm/package-da68ab5a.js +0 -3
- package/dist/esm/post-breadcrumb.entry.js +0 -5
- package/dist/esm/post-card-control-aa043898.js +0 -281
- package/dist/esm/post-popover-e51a7a18.js +0 -108
- package/dist/esm/post-tag-a3b989e0.js +0 -45
- package/dist/post-components/p-1376c653.js +0 -1
- package/dist/post-components/p-13835969.js +0 -1
- package/dist/post-components/p-13fdbaf6.entry.js +0 -1
- package/dist/post-components/p-1e2169ae.entry.js +0 -1
- package/dist/post-components/p-23e4c270.entry.js +0 -1
- package/dist/post-components/p-2641e06b.js +0 -1
- package/dist/post-components/p-2d3b16c7.js +0 -1
- package/dist/post-components/p-33c35e15.js +0 -1
- package/dist/post-components/p-3b247d71.entry.js +0 -1
- package/dist/post-components/p-42a5fdf8.js +0 -1
- package/dist/post-components/p-4ed7bab6.js +0 -1
- package/dist/post-components/p-5aeb3656.js +0 -1
- package/dist/post-components/p-5c518421.js +0 -1
- package/dist/post-components/p-6db1a2e0.entry.js +0 -1
- package/dist/post-components/p-6fe98184.entry.js +0 -1
- package/dist/post-components/p-7d731077.entry.js +0 -1
- package/dist/post-components/p-7ee47334.entry.js +0 -1
- package/dist/post-components/p-8223e97b.js +0 -1
- package/dist/post-components/p-8a8376d0.js +0 -1
- package/dist/post-components/p-8bb828cf.entry.js +0 -1
- package/dist/post-components/p-8e55ddd2.js +0 -1
- package/dist/post-components/p-9681efce.js +0 -1
- package/dist/post-components/p-96a59372.entry.js +0 -1
- package/dist/post-components/p-9748a355.js +0 -1
- package/dist/post-components/p-99c8fd43.entry.js +0 -1
- package/dist/post-components/p-ac042f7a.entry.js +0 -1
- package/dist/post-components/p-c34cacb7.js +0 -1
- package/dist/post-components/p-c3a970c5.js +0 -1
- package/dist/post-components/p-c4651d32.entry.js +0 -1
- package/dist/post-components/p-c9b61d31.entry.js +0 -1
- package/dist/post-components/p-d16dd7f9.js +0 -1
- package/dist/post-components/p-d81c5908.entry.js +0 -1
- package/dist/post-components/p-dbe31632.js +0 -1
- package/dist/post-components/p-e1baac59.js +0 -1
- package/dist/post-components/p-e2294014.js +0 -15
- package/dist/post-components/p-e8ff8122.js +0 -1
- package/dist/post-components/p-ed78d04a.entry.js +0 -1
- package/dist/post-components/p-f1c0924a.js +0 -1
- package/dist/post-components/p-f1db96d0.entry.js +0 -1
- package/dist/post-components/p-f7aa917f.entry.js +0 -1
- package/dist/post-components/p-f96b80cc.entry.js +0 -1
- package/dist/post-components/p-fc91cbc2.js +0 -1
- package/dist/post-components/p-fd78716d.js +0 -1
- package/loaders/debounce.js +0 -11
|
@@ -1,71 +1,46 @@
|
|
|
1
1
|
export declare class PostMainnavigation {
|
|
2
|
-
private header;
|
|
3
2
|
private navbar;
|
|
4
|
-
private rightScrollButton;
|
|
5
|
-
private leftScrollButton;
|
|
6
3
|
private scrollRepeatInterval;
|
|
7
4
|
private navbarDisableTimer;
|
|
8
5
|
private resizeObserver;
|
|
9
6
|
private mutationObserver;
|
|
10
|
-
host: HTMLPostMainnavigationElement;
|
|
11
7
|
canScrollLeft: boolean;
|
|
12
8
|
canScrollRight: boolean;
|
|
13
|
-
|
|
9
|
+
constructor();
|
|
10
|
+
componentDidLoad(): void;
|
|
14
11
|
/**
|
|
15
|
-
*
|
|
12
|
+
* Disconnects observers and remove event listeners when the main navigation is removed from the DOM.
|
|
16
13
|
*/
|
|
17
|
-
|
|
14
|
+
disconnectedCallback(): void;
|
|
18
15
|
/**
|
|
19
|
-
*
|
|
20
|
-
* This ensures that we can interact with the header for mobile menu toggling.
|
|
16
|
+
* Stops the repeated scrolling when the mouse button is released.
|
|
21
17
|
*/
|
|
22
|
-
|
|
18
|
+
stopScrolling(): void;
|
|
19
|
+
private handleMutations;
|
|
20
|
+
private get navigationItems();
|
|
23
21
|
/**
|
|
24
|
-
*
|
|
22
|
+
* Hack to fix the layout shift due to bold text on active elements
|
|
25
23
|
*/
|
|
26
|
-
disconnectedCallback(): void;
|
|
27
|
-
componentDidLoad(): void;
|
|
28
24
|
private fixLayoutShift;
|
|
29
25
|
private handleBackButtonClick;
|
|
30
26
|
/**
|
|
31
|
-
*
|
|
27
|
+
* Returns whether scrolling is enabled in either the left or right direction.
|
|
32
28
|
*/
|
|
33
|
-
private
|
|
29
|
+
private get canScroll();
|
|
34
30
|
/**
|
|
35
31
|
* Checks if scrolling is possible in either direction (left or right) and updates the state accordingly.
|
|
36
32
|
*/
|
|
37
33
|
private checkScrollability;
|
|
38
|
-
/**
|
|
39
|
-
* Returns whether scrolling is enabled in either the left or right direction.
|
|
40
|
-
*/
|
|
41
|
-
private get canScroll();
|
|
42
34
|
/**
|
|
43
35
|
* Handles the scrolling behavior when a user clicks on the left or right scroll buttons.
|
|
44
36
|
*/
|
|
45
37
|
private handleScrollButtonClick;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*/
|
|
49
|
-
stopScrolling(): void;
|
|
50
|
-
private scroll;
|
|
51
|
-
private translateRightTo;
|
|
52
|
-
private translateLeftTo;
|
|
53
|
-
/**
|
|
54
|
-
* Returns the navigation list container element
|
|
55
|
-
*/
|
|
56
|
-
private get navigationList();
|
|
57
|
-
/**
|
|
58
|
-
* Returns the navigation items
|
|
59
|
-
*/
|
|
60
|
-
private get navigationItems();
|
|
38
|
+
private scrollRight;
|
|
39
|
+
private scrollLeft;
|
|
61
40
|
/**
|
|
62
41
|
* Temporarily disables interactions with the navbar during scrolling to prevent accidental clicks.
|
|
63
42
|
* Re-enables interactions after a brief delay to avoid blocking the user entirely.
|
|
64
43
|
*/
|
|
65
|
-
private
|
|
66
|
-
/**
|
|
67
|
-
* Allows to translate the navbar without a transition
|
|
68
|
-
*/
|
|
69
|
-
private withoutTransition;
|
|
44
|
+
private temporarilyDisableNavbar;
|
|
70
45
|
render(): any;
|
|
71
46
|
}
|
|
@@ -6,9 +6,9 @@ export declare class PostMenu {
|
|
|
6
6
|
private readonly KEYCODES;
|
|
7
7
|
host: HTMLPostMenuElement;
|
|
8
8
|
/**
|
|
9
|
-
* Defines the
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* Defines the position of the menu relative to its trigger.
|
|
10
|
+
* Menus are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.
|
|
11
|
+
* For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
12
12
|
*/
|
|
13
13
|
readonly placement?: Placement;
|
|
14
14
|
/**
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/dom';
|
|
2
2
|
export declare class PostPopover {
|
|
3
3
|
private popoverRef;
|
|
4
|
-
private localBeforeToggleHandler;
|
|
4
|
+
private readonly localBeforeToggleHandler;
|
|
5
|
+
private readonly triggerObserver;
|
|
5
6
|
host: HTMLPostPopoverElement;
|
|
6
7
|
/**
|
|
7
|
-
* Defines the
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Defines the position of the popover relative to its trigger.
|
|
9
|
+
* Popovers are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.
|
|
10
|
+
* For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
10
11
|
*/
|
|
11
12
|
readonly placement?: Placement;
|
|
12
13
|
/**
|
|
@@ -38,5 +39,6 @@ export declare class PostPopover {
|
|
|
38
39
|
toggle(target: HTMLElement, force?: boolean): Promise<void>;
|
|
39
40
|
private get triggers();
|
|
40
41
|
private beforeToggleHandler;
|
|
42
|
+
private patchAccessibilityFeatures;
|
|
41
43
|
render(): any;
|
|
42
44
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Placement } from '@floating-ui/dom';
|
|
3
|
-
import '@oddbird/popover-polyfill';
|
|
4
3
|
interface PopoverElement {
|
|
5
4
|
showPopover: () => void;
|
|
6
5
|
hidePopover: () => void;
|
|
@@ -50,6 +49,7 @@ export declare class PostPopovercontainer {
|
|
|
50
49
|
* @param event MouseEvent with cursor position
|
|
51
50
|
*/
|
|
52
51
|
private mouseTrackingHandler;
|
|
52
|
+
connectedCallback(): void;
|
|
53
53
|
componentDidLoad(): void;
|
|
54
54
|
disconnectedCallback(): void;
|
|
55
55
|
/**
|
|
@@ -15,7 +15,7 @@ export declare class PostTag {
|
|
|
15
15
|
/**
|
|
16
16
|
* Defines the icon `name` inside of the component.
|
|
17
17
|
* <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
18
|
-
* To learn which icons are available, please visit our <a href="/?path=/docs/
|
|
18
|
+
* To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
|
|
19
19
|
*/
|
|
20
20
|
readonly icon: null | string;
|
|
21
21
|
constructor();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Placement } from '@floating-ui/dom';
|
|
2
|
-
import 'long-press-event';
|
|
3
2
|
export declare class PostTooltip {
|
|
4
3
|
private popoverRef;
|
|
5
4
|
private wasOpenedByFocus;
|
|
5
|
+
private readonly triggerObserver;
|
|
6
6
|
host: HTMLPostTooltipElement;
|
|
7
7
|
/**
|
|
8
|
-
* Defines the
|
|
9
|
-
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
10
|
-
*
|
|
8
|
+
* Defines the position of the tooltip relative to its trigger.
|
|
9
|
+
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.
|
|
10
|
+
* For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
11
11
|
*/
|
|
12
12
|
readonly placement?: Placement;
|
|
13
13
|
/**
|
|
@@ -56,5 +56,10 @@ export declare class PostTooltip {
|
|
|
56
56
|
* Re-enable pointer events when the tooltip is no longer in focus or hovered
|
|
57
57
|
*/
|
|
58
58
|
private handleInterestLost;
|
|
59
|
+
/**
|
|
60
|
+
* Patch some accessibility features that are hard to remember or understand
|
|
61
|
+
* @param {HTMLElement} trigger
|
|
62
|
+
*/
|
|
63
|
+
private patchAccessibilityFeatures;
|
|
59
64
|
render(): any;
|
|
60
65
|
}
|
|
@@ -67,7 +67,7 @@ export namespace Components {
|
|
|
67
67
|
*/
|
|
68
68
|
"lastname"?: string;
|
|
69
69
|
/**
|
|
70
|
-
* Defines the company internal userId.<div className="mb-
|
|
70
|
+
* Defines the company internal userId.<div className="mb-4 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
71
71
|
*/
|
|
72
72
|
"userid"?: string;
|
|
73
73
|
}
|
|
@@ -99,7 +99,13 @@ export namespace Components {
|
|
|
99
99
|
*/
|
|
100
100
|
"type": BannerType;
|
|
101
101
|
}
|
|
102
|
-
interface
|
|
102
|
+
interface PostBreadcrumbItem {
|
|
103
|
+
/**
|
|
104
|
+
* The optional URL to which the breadcrumb item will link.
|
|
105
|
+
*/
|
|
106
|
+
"url"?: string | URL;
|
|
107
|
+
}
|
|
108
|
+
interface PostBreadcrumbs {
|
|
103
109
|
/**
|
|
104
110
|
* The text label for the home breadcrumb item.
|
|
105
111
|
*/
|
|
@@ -109,12 +115,6 @@ export namespace Components {
|
|
|
109
115
|
*/
|
|
110
116
|
"homeUrl": string;
|
|
111
117
|
}
|
|
112
|
-
interface PostBreadcrumbItem {
|
|
113
|
-
/**
|
|
114
|
-
* The optional URL to which the breadcrumb item will link.
|
|
115
|
-
*/
|
|
116
|
-
"url"?: string | URL;
|
|
117
|
-
}
|
|
118
118
|
/**
|
|
119
119
|
* @class PostCardControl - representing a stencil component
|
|
120
120
|
*/
|
|
@@ -144,7 +144,7 @@ export namespace Components {
|
|
|
144
144
|
*/
|
|
145
145
|
"label": string;
|
|
146
146
|
/**
|
|
147
|
-
* Defines the `name` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
147
|
+
* Defines the `name` attribute of the control. <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> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
148
148
|
*/
|
|
149
149
|
"name": string;
|
|
150
150
|
/**
|
|
@@ -323,7 +323,7 @@ export namespace Components {
|
|
|
323
323
|
*/
|
|
324
324
|
"hide": () => Promise<void>;
|
|
325
325
|
/**
|
|
326
|
-
* Defines the
|
|
326
|
+
* Defines the position of the menu relative to its trigger. Menus are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries. For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
327
327
|
*/
|
|
328
328
|
"placement"?: Placement;
|
|
329
329
|
/**
|
|
@@ -358,7 +358,7 @@ export namespace Components {
|
|
|
358
358
|
*/
|
|
359
359
|
"hide": () => Promise<void>;
|
|
360
360
|
/**
|
|
361
|
-
* Defines the
|
|
361
|
+
* Defines the position of the popover relative to its trigger. Popovers are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries. For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
362
362
|
*/
|
|
363
363
|
"placement"?: Placement;
|
|
364
364
|
/**
|
|
@@ -452,7 +452,7 @@ export namespace Components {
|
|
|
452
452
|
}
|
|
453
453
|
interface PostTag {
|
|
454
454
|
/**
|
|
455
|
-
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/
|
|
455
|
+
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
|
|
456
456
|
*/
|
|
457
457
|
"icon": null | string;
|
|
458
458
|
/**
|
|
@@ -484,7 +484,7 @@ export namespace Components {
|
|
|
484
484
|
*/
|
|
485
485
|
"hide": () => Promise<void>;
|
|
486
486
|
/**
|
|
487
|
-
* Defines the
|
|
487
|
+
* Defines the position of the tooltip relative to its trigger. Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries. For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
488
488
|
*/
|
|
489
489
|
"placement"?: Placement;
|
|
490
490
|
/**
|
|
@@ -583,18 +583,18 @@ declare global {
|
|
|
583
583
|
prototype: HTMLPostBannerElement;
|
|
584
584
|
new (): HTMLPostBannerElement;
|
|
585
585
|
};
|
|
586
|
-
interface HTMLPostBreadcrumbElement extends Components.PostBreadcrumb, HTMLStencilElement {
|
|
587
|
-
}
|
|
588
|
-
var HTMLPostBreadcrumbElement: {
|
|
589
|
-
prototype: HTMLPostBreadcrumbElement;
|
|
590
|
-
new (): HTMLPostBreadcrumbElement;
|
|
591
|
-
};
|
|
592
586
|
interface HTMLPostBreadcrumbItemElement extends Components.PostBreadcrumbItem, HTMLStencilElement {
|
|
593
587
|
}
|
|
594
588
|
var HTMLPostBreadcrumbItemElement: {
|
|
595
589
|
prototype: HTMLPostBreadcrumbItemElement;
|
|
596
590
|
new (): HTMLPostBreadcrumbItemElement;
|
|
597
591
|
};
|
|
592
|
+
interface HTMLPostBreadcrumbsElement extends Components.PostBreadcrumbs, HTMLStencilElement {
|
|
593
|
+
}
|
|
594
|
+
var HTMLPostBreadcrumbsElement: {
|
|
595
|
+
prototype: HTMLPostBreadcrumbsElement;
|
|
596
|
+
new (): HTMLPostBreadcrumbsElement;
|
|
597
|
+
};
|
|
598
598
|
interface HTMLPostCardControlElementEventMap {
|
|
599
599
|
"postInput": { state: boolean; value: string };
|
|
600
600
|
"postChange": { state: boolean; value: string };
|
|
@@ -877,8 +877,8 @@ declare global {
|
|
|
877
877
|
"post-avatar": HTMLPostAvatarElement;
|
|
878
878
|
"post-back-to-top": HTMLPostBackToTopElement;
|
|
879
879
|
"post-banner": HTMLPostBannerElement;
|
|
880
|
-
"post-breadcrumb": HTMLPostBreadcrumbElement;
|
|
881
880
|
"post-breadcrumb-item": HTMLPostBreadcrumbItemElement;
|
|
881
|
+
"post-breadcrumbs": HTMLPostBreadcrumbsElement;
|
|
882
882
|
"post-card-control": HTMLPostCardControlElement;
|
|
883
883
|
"post-closebutton": HTMLPostClosebuttonElement;
|
|
884
884
|
"post-collapsible": HTMLPostCollapsibleElement;
|
|
@@ -945,7 +945,7 @@ declare namespace LocalJSX {
|
|
|
945
945
|
*/
|
|
946
946
|
"lastname"?: string;
|
|
947
947
|
/**
|
|
948
|
-
* Defines the company internal userId.<div className="mb-
|
|
948
|
+
* Defines the company internal userId.<div className="mb-4 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
949
949
|
*/
|
|
950
950
|
"userid"?: string;
|
|
951
951
|
}
|
|
@@ -977,7 +977,13 @@ declare namespace LocalJSX {
|
|
|
977
977
|
*/
|
|
978
978
|
"type"?: BannerType;
|
|
979
979
|
}
|
|
980
|
-
interface
|
|
980
|
+
interface PostBreadcrumbItem {
|
|
981
|
+
/**
|
|
982
|
+
* The optional URL to which the breadcrumb item will link.
|
|
983
|
+
*/
|
|
984
|
+
"url"?: string | URL;
|
|
985
|
+
}
|
|
986
|
+
interface PostBreadcrumbs {
|
|
981
987
|
/**
|
|
982
988
|
* The text label for the home breadcrumb item.
|
|
983
989
|
*/
|
|
@@ -987,12 +993,6 @@ declare namespace LocalJSX {
|
|
|
987
993
|
*/
|
|
988
994
|
"homeUrl"?: string;
|
|
989
995
|
}
|
|
990
|
-
interface PostBreadcrumbItem {
|
|
991
|
-
/**
|
|
992
|
-
* The optional URL to which the breadcrumb item will link.
|
|
993
|
-
*/
|
|
994
|
-
"url"?: string | URL;
|
|
995
|
-
}
|
|
996
996
|
/**
|
|
997
997
|
* @class PostCardControl - representing a stencil component
|
|
998
998
|
*/
|
|
@@ -1018,7 +1018,7 @@ declare namespace LocalJSX {
|
|
|
1018
1018
|
*/
|
|
1019
1019
|
"label": string;
|
|
1020
1020
|
/**
|
|
1021
|
-
* Defines the `name` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
1021
|
+
* Defines the `name` attribute of the control. <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> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
1022
1022
|
*/
|
|
1023
1023
|
"name"?: string;
|
|
1024
1024
|
/**
|
|
@@ -1189,7 +1189,7 @@ declare namespace LocalJSX {
|
|
|
1189
1189
|
*/
|
|
1190
1190
|
"onToggleMenu"?: (event: PostMenuCustomEvent<boolean>) => void;
|
|
1191
1191
|
/**
|
|
1192
|
-
* Defines the
|
|
1192
|
+
* Defines the position of the menu relative to its trigger. Menus are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries. For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
1193
1193
|
*/
|
|
1194
1194
|
"placement"?: Placement;
|
|
1195
1195
|
}
|
|
@@ -1211,7 +1211,7 @@ declare namespace LocalJSX {
|
|
|
1211
1211
|
*/
|
|
1212
1212
|
"closeButtonCaption": string;
|
|
1213
1213
|
/**
|
|
1214
|
-
* Defines the
|
|
1214
|
+
* Defines the position of the popover relative to its trigger. Popovers are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries. For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
1215
1215
|
*/
|
|
1216
1216
|
"placement"?: Placement;
|
|
1217
1217
|
}
|
|
@@ -1291,7 +1291,7 @@ declare namespace LocalJSX {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
interface PostTag {
|
|
1293
1293
|
/**
|
|
1294
|
-
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/
|
|
1294
|
+
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
|
|
1295
1295
|
*/
|
|
1296
1296
|
"icon"?: null | string;
|
|
1297
1297
|
/**
|
|
@@ -1319,7 +1319,7 @@ declare namespace LocalJSX {
|
|
|
1319
1319
|
*/
|
|
1320
1320
|
"delayed"?: boolean;
|
|
1321
1321
|
/**
|
|
1322
|
-
* Defines the
|
|
1322
|
+
* Defines the position of the tooltip relative to its trigger. Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries. For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
1323
1323
|
*/
|
|
1324
1324
|
"placement"?: Placement;
|
|
1325
1325
|
}
|
|
@@ -1329,8 +1329,8 @@ declare namespace LocalJSX {
|
|
|
1329
1329
|
"post-avatar": PostAvatar;
|
|
1330
1330
|
"post-back-to-top": PostBackToTop;
|
|
1331
1331
|
"post-banner": PostBanner;
|
|
1332
|
-
"post-breadcrumb": PostBreadcrumb;
|
|
1333
1332
|
"post-breadcrumb-item": PostBreadcrumbItem;
|
|
1333
|
+
"post-breadcrumbs": PostBreadcrumbs;
|
|
1334
1334
|
"post-card-control": PostCardControl;
|
|
1335
1335
|
"post-closebutton": PostClosebutton;
|
|
1336
1336
|
"post-collapsible": PostCollapsible;
|
|
@@ -1370,8 +1370,8 @@ declare module "@stencil/core" {
|
|
|
1370
1370
|
"post-avatar": LocalJSX.PostAvatar & JSXBase.HTMLAttributes<HTMLPostAvatarElement>;
|
|
1371
1371
|
"post-back-to-top": LocalJSX.PostBackToTop & JSXBase.HTMLAttributes<HTMLPostBackToTopElement>;
|
|
1372
1372
|
"post-banner": LocalJSX.PostBanner & JSXBase.HTMLAttributes<HTMLPostBannerElement>;
|
|
1373
|
-
"post-breadcrumb": LocalJSX.PostBreadcrumb & JSXBase.HTMLAttributes<HTMLPostBreadcrumbElement>;
|
|
1374
1373
|
"post-breadcrumb-item": LocalJSX.PostBreadcrumbItem & JSXBase.HTMLAttributes<HTMLPostBreadcrumbItemElement>;
|
|
1374
|
+
"post-breadcrumbs": LocalJSX.PostBreadcrumbs & JSXBase.HTMLAttributes<HTMLPostBreadcrumbsElement>;
|
|
1375
1375
|
/**
|
|
1376
1376
|
* @class PostCardControl - representing a stencil component
|
|
1377
1377
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { PostAccordionItem } from './components/post-accordion-item/post-accordi
|
|
|
4
4
|
export { PostAvatar } from './components/post-avatar/post-avatar';
|
|
5
5
|
export { PostBackToTop } from './components/post-back-to-top/post-back-to-top';
|
|
6
6
|
export { PostBanner } from './components/post-banner/post-banner';
|
|
7
|
-
export {
|
|
7
|
+
export { PostBreadcrumbs } from './components/post-breadcrumbs/post-breadcrumbs';
|
|
8
8
|
export { PostBreadcrumbItem } from './components/post-breadcrumb-item/post-breadcrumb-item';
|
|
9
9
|
export { PostCardControl } from './components/post-card-control/post-card-control';
|
|
10
10
|
export { PostClosebutton } from './components/post-closebutton/post-closebutton';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// It seems like the package '@oddbird/popover-polyfill does not properly declare it's types.
|
|
2
|
+
// This file fixes that issue so typescript does not complain about it on the import line
|
|
3
|
+
|
|
4
|
+
declare module '@oddbird/popover-polyfill/dist/popover-fn.js' {
|
|
5
|
+
export {
|
|
6
|
+
apply,
|
|
7
|
+
injectStyles,
|
|
8
|
+
isPolyfilled,
|
|
9
|
+
isSupported,
|
|
10
|
+
} from '../node_modules/@oddbird/popover-polyfill/dist/popover-fn.js';
|
|
11
|
+
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
export * from './get-focusable-children';
|
|
2
|
+
export * from './attribute-observer';
|
|
1
3
|
export * from './component-on-ready';
|
|
2
4
|
export * from './property-checkers';
|
|
5
|
+
export * from './breakpoints';
|
|
3
6
|
export * from './debounce';
|
|
7
|
+
export * from './event-guard';
|
|
4
8
|
export * from './get-root';
|
|
5
9
|
export * from './is-motion-reduced';
|
|
6
10
|
export * from './sass-export';
|
|
7
11
|
export * from './timeout';
|
|
12
|
+
export * from './environment';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { I as IS_BROWSER } from './breakpoints.js';
|
|
2
|
+
|
|
1
3
|
function getAttributeObserver(attribute, handler) {
|
|
2
4
|
/**
|
|
3
5
|
* Handle attribute changes and childList changes from the observer
|
|
@@ -19,7 +21,7 @@ function getAttributeObserver(attribute, handler) {
|
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
23
|
// Initialize a mutation observer for patching accessibility features
|
|
22
|
-
return new MutationObserver(observerHandler);
|
|
24
|
+
return IS_BROWSER ? new MutationObserver(observerHandler) : null;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export { getAttributeObserver as g };
|
package/loaders/breakpoints.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
const IS_SERVER = typeof window === 'undefined';
|
|
2
|
+
const IS_BROWSER = !IS_SERVER;
|
|
3
|
+
|
|
1
4
|
class Breakpoint {
|
|
2
|
-
breakpointMap;
|
|
3
|
-
current = {
|
|
4
|
-
key: '',
|
|
5
|
-
name: '',
|
|
6
|
-
};
|
|
7
5
|
constructor() {
|
|
8
|
-
|
|
6
|
+
this.current = {
|
|
7
|
+
key: '',
|
|
8
|
+
name: '',
|
|
9
|
+
};
|
|
10
|
+
if (IS_BROWSER && !this.breakpointMap) {
|
|
9
11
|
const keys = this.getStyles('--post-breakpoint-keys');
|
|
10
12
|
const names = this.getStyles('--post-breakpoint-names');
|
|
11
13
|
const widths = this.getStyles('--post-breakpoint-widths');
|
|
@@ -40,7 +42,9 @@ class Breakpoint {
|
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
dispatchEvent(type) {
|
|
43
|
-
|
|
45
|
+
if (IS_BROWSER) {
|
|
46
|
+
window.dispatchEvent(new CustomEvent(`postBreakpoint:${type}`, { detail: this.current[type] }));
|
|
47
|
+
}
|
|
44
48
|
}
|
|
45
49
|
get(type) {
|
|
46
50
|
this.updateHandler(false);
|
|
@@ -49,4 +53,4 @@ class Breakpoint {
|
|
|
49
53
|
}
|
|
50
54
|
const breakpoint = new Breakpoint();
|
|
51
55
|
|
|
52
|
-
export { breakpoint as b };
|
|
56
|
+
export { IS_BROWSER as I, breakpoint as b };
|
package/loaders/get-root.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { I as IS_BROWSER } from './breakpoints.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* getRootNode() can only be used after the element has been attached to the document!
|
|
5
|
+
* So use it for example in the componentDidLoad lifecycle hook.
|
|
6
|
+
*/
|
|
1
7
|
function getRoot(element) {
|
|
2
|
-
const root = element.getRootNode();
|
|
8
|
+
const root = IS_BROWSER ? element.getRootNode() : element;
|
|
3
9
|
if (root instanceof Document || root instanceof ShadowRoot) {
|
|
4
10
|
return root;
|
|
5
11
|
}
|
package/loaders/index.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ export { PostBackToTop as PostBackToTop } from '../dist/types/components/post-ba
|
|
|
9
9
|
export { defineCustomElement as defineCustomElementPostBackToTop } from './post-back-to-top';
|
|
10
10
|
export { PostBanner as PostBanner } from '../dist/types/components/post-banner/post-banner';
|
|
11
11
|
export { defineCustomElement as defineCustomElementPostBanner } from './post-banner';
|
|
12
|
-
export { PostBreadcrumb as PostBreadcrumb } from '../dist/types/components/post-breadcrumb/post-breadcrumb';
|
|
13
|
-
export { defineCustomElement as defineCustomElementPostBreadcrumb } from './post-breadcrumb';
|
|
14
12
|
export { PostBreadcrumbItem as PostBreadcrumbItem } from '../dist/types/components/post-breadcrumb-item/post-breadcrumb-item';
|
|
15
13
|
export { defineCustomElement as defineCustomElementPostBreadcrumbItem } from './post-breadcrumb-item';
|
|
14
|
+
export { PostBreadcrumbs as PostBreadcrumbs } from '../dist/types/components/post-breadcrumbs/post-breadcrumbs';
|
|
15
|
+
export { defineCustomElement as defineCustomElementPostBreadcrumbs } from './post-breadcrumbs';
|
|
16
16
|
export { PostCardControl as PostCardControl } from '../dist/types/components/post-card-control/post-card-control';
|
|
17
17
|
export { defineCustomElement as defineCustomElementPostCardControl } from './post-card-control';
|
|
18
18
|
export { PostClosebutton as PostClosebutton } from '../dist/types/components/post-closebutton/post-closebutton';
|
package/loaders/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
+
import './breakpoints.js';
|
|
2
3
|
export { PostAvatar, defineCustomElement as defineCustomElementPostAvatar } from './post-avatar.js';
|
|
3
4
|
import './post-popovercontainer2.js';
|
|
4
|
-
|
|
5
|
-
export { PostPopover, defineCustomElement as defineCustomElementPostPopover } from './post-popover.js';
|
|
5
|
+
export { PostMegadropdown, defineCustomElement as defineCustomElementPostMegadropdown } from './post-megadropdown.js';
|
|
6
6
|
export { PostTooltip, defineCustomElement as defineCustomElementPostTooltip } from './post-tooltip.js';
|
|
7
7
|
export { PostAccordion, defineCustomElement as defineCustomElementPostAccordion } from './post-accordion.js';
|
|
8
8
|
export { PostAccordionItem, defineCustomElement as defineCustomElementPostAccordionItem } from './post-accordion-item.js';
|
|
9
9
|
export { PostBackToTop, defineCustomElement as defineCustomElementPostBackToTop } from './post-back-to-top.js';
|
|
10
10
|
export { PostBanner, defineCustomElement as defineCustomElementPostBanner } from './post-banner.js';
|
|
11
|
-
export { PostBreadcrumb, defineCustomElement as defineCustomElementPostBreadcrumb } from './post-breadcrumb.js';
|
|
12
11
|
export { PostBreadcrumbItem, defineCustomElement as defineCustomElementPostBreadcrumbItem } from './post-breadcrumb-item.js';
|
|
12
|
+
export { PostBreadcrumbs, defineCustomElement as defineCustomElementPostBreadcrumbs } from './post-breadcrumbs.js';
|
|
13
13
|
export { PostCardControl, defineCustomElement as defineCustomElementPostCardControl } from './post-card-control.js';
|
|
14
14
|
export { PostClosebutton, defineCustomElement as defineCustomElementPostClosebutton } from './post-closebutton.js';
|
|
15
15
|
export { PostCollapsible, defineCustomElement as defineCustomElementPostCollapsible } from './post-collapsible.js';
|
|
@@ -24,11 +24,11 @@ export { PostList, defineCustomElement as defineCustomElementPostList } from './
|
|
|
24
24
|
export { PostListItem, defineCustomElement as defineCustomElementPostListItem } from './post-list-item.js';
|
|
25
25
|
export { PostLogo, defineCustomElement as defineCustomElementPostLogo } from './post-logo.js';
|
|
26
26
|
export { PostMainnavigation, defineCustomElement as defineCustomElementPostMainnavigation } from './post-mainnavigation.js';
|
|
27
|
-
export { PostMegadropdown, defineCustomElement as defineCustomElementPostMegadropdown } from './post-megadropdown.js';
|
|
28
27
|
export { PostMegadropdownTrigger, defineCustomElement as defineCustomElementPostMegadropdownTrigger } from './post-megadropdown-trigger.js';
|
|
29
28
|
export { PostMenu, defineCustomElement as defineCustomElementPostMenu } from './post-menu.js';
|
|
30
29
|
export { PostMenuItem, defineCustomElement as defineCustomElementPostMenuItem } from './post-menu-item.js';
|
|
31
30
|
export { PostMenuTrigger, defineCustomElement as defineCustomElementPostMenuTrigger } from './post-menu-trigger.js';
|
|
31
|
+
export { PostPopover, defineCustomElement as defineCustomElementPostPopover } from './post-popover.js';
|
|
32
32
|
export { PostPopovercontainer, defineCustomElement as defineCustomElementPostPopovercontainer } from './post-popovercontainer.js';
|
|
33
33
|
export { PostRating, defineCustomElement as defineCustomElementPostRating } from './post-rating.js';
|
|
34
34
|
export { PostTabHeader, defineCustomElement as defineCustomElementPostTabHeader } from './post-tab-header.js';
|