@swisspost/design-system-components 9.0.0-next.9 → 9.0.1
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/{index-5d4e0aed.js → index-824d2b71.js} +12 -2
- package/dist/cjs/{index-010dc207.js → index-e1f32cce.js} +17 -30
- package/dist/cjs/index.cjs.js +26 -50
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-8e810a59.js → package-93f142ae.js} +1 -1
- package/dist/cjs/{post-accordion-b9df8522.js → post-accordion-60af96cf.js} +3 -3
- package/dist/cjs/post-accordion-item-744c881d.js +52 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +4 -5
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/post-alert-2a768f58.js +99 -0
- package/dist/cjs/{post-banner.cjs.entry.js → post-alert.cjs.entry.js} +5 -6
- package/dist/cjs/post-card-control-197c8e44.js +272 -0
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-trigger-143cf84a.js → post-collapsible-trigger-3de8fe4e.js} +24 -11
- package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -7
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-icon-df629079.js +139 -0
- package/dist/cjs/post-icon.cjs.entry.js +16 -0
- package/dist/cjs/post-logo-7caeb918.js +39 -0
- package/dist/cjs/post-logo.cjs.entry.js +15 -0
- package/dist/cjs/post-popover-090c3d01.js +131 -0
- package/dist/cjs/post-popover.cjs.entry.js +3 -4
- package/dist/cjs/{post-togglebutton-0984a694.js → post-popovercontainer-872681bf.js} +148 -1106
- package/dist/cjs/post-popovercontainer.cjs.entry.js +11 -0
- package/dist/cjs/post-rating-21f9c46d.js +88 -0
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-422d0f03.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-60f211a5.js → post-tab-panel-dd58f425.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-1f797ce4.js → post-tabs-83191b9a.js} +5 -5
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/post-tag-c72183f2.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/post-tooltip-782f020b.js +69 -0
- package/dist/cjs/{post-tooltip-38c839a4.js → post-tooltip-trigger-b2aeb636.js} +507 -557
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +12 -0
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -8
- package/dist/collection/collection-manifest.json +4 -21
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +2 -2
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +10 -24
- package/dist/collection/components/post-alert/alert-types.js +1 -0
- package/dist/collection/components/post-alert/post-alert.css +35 -0
- package/dist/collection/components/{post-banner/post-banner.js → post-alert/post-alert.js} +68 -39
- package/dist/collection/components/post-card-control/post-card-control.css +30 -2
- package/dist/collection/components/post-card-control/post-card-control.js +8 -8
- package/dist/collection/components/post-collapsible/post-collapsible.js +2 -4
- package/dist/collection/components/post-icon/post-icon.css +1 -1
- package/dist/collection/components/post-icon/post-icon.js +52 -13
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-popover/post-popover.css +30 -2
- package/dist/collection/components/post-popover/post-popover.js +10 -6
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +31 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +180 -52
- package/dist/collection/components/post-rating/post-rating.css +29 -1
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.css +29 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +2 -2
- package/dist/collection/components/post-tag/post-tag.css +29 -1
- package/dist/collection/components/post-tag/post-tag.js +2 -2
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +60 -213
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.css +1 -0
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +230 -0
- package/dist/collection/index.js +3 -20
- package/dist/components/index.js +3 -20
- package/dist/components/index2.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +12 -30
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/{post-list.d.ts → post-alert.d.ts} +4 -4
- package/dist/components/post-alert.js +6 -0
- package/dist/components/post-alert2.js +136 -0
- package/dist/components/post-card-control2.js +3 -3
- package/dist/components/post-collapsible-trigger2.js +17 -2
- package/dist/components/post-collapsible2.js +3 -5
- package/dist/components/post-icon2.js +54 -15
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-popover2.js +35 -8
- package/dist/components/post-popovercontainer2.js +136 -41
- package/dist/components/post-rating2.js +2 -2
- package/dist/components/post-tab-header2.js +2 -2
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +3 -3
- package/dist/components/post-tag2.js +2 -2
- package/dist/components/{post-breadcrumb-item.d.ts → post-tooltip-trigger.d.ts} +4 -4
- package/dist/components/post-tooltip-trigger.js +6 -0
- package/dist/components/post-tooltip-trigger2.js +4968 -0
- package/dist/components/post-tooltip2.js +32 -4962
- package/dist/docs.json +401 -1776
- package/dist/esm/{index-b49c9904.js → index-69587a51.js} +12 -2
- package/dist/esm/{index-fb8d6be7.js → index-e1b64755.js} +17 -30
- package/dist/esm/index.js +20 -27
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-45827c3b.js +3 -0
- package/dist/esm/{post-accordion-ee54a3ef.js → post-accordion-bcfe7e61.js} +3 -3
- package/dist/esm/post-accordion-item-8869c90b.js +50 -0
- package/dist/esm/post-accordion-item.entry.js +4 -5
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/post-alert-21fd0068.js +97 -0
- package/dist/esm/post-alert.entry.js +9 -0
- package/dist/esm/post-card-control-60c132dc.js +270 -0
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/{post-collapsible-trigger-1c7833f8.js → post-collapsible-trigger-3168178e.js} +22 -9
- package/dist/esm/post-collapsible_2.entry.js +4 -7
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-icon-2e2e18ad.js +137 -0
- package/dist/esm/post-icon.entry.js +8 -0
- package/dist/esm/post-logo-f364eb72.js +37 -0
- package/dist/esm/post-logo.entry.js +7 -0
- package/dist/esm/post-popover-697201cd.js +129 -0
- package/dist/esm/post-popover.entry.js +3 -4
- package/dist/esm/{post-togglebutton-395bf3f0.js → post-popovercontainer-2b5f37fb.js} +149 -1093
- package/dist/esm/post-popovercontainer.entry.js +3 -0
- package/dist/esm/post-rating-0fd5de37.js +86 -0
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-c8898fa2.js +30 -0
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-cafd9e04.js → post-tab-panel-6b1219e0.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-beef8eae.js → post-tabs-b8ff3c5d.js} +5 -5
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/post-tag-83470f28.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/post-tooltip-aa745743.js +67 -0
- package/dist/esm/{post-tooltip-b298039a.js → post-tooltip-trigger-ce0b4106.js} +507 -557
- package/dist/esm/post-tooltip-trigger.entry.js +4 -0
- package/dist/esm/post-tooltip.entry.js +3 -8
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-08dc45bb.entry.js +1 -0
- package/dist/post-components/p-1a48d1b0.js +1 -0
- package/dist/post-components/p-2b61a526.entry.js +1 -0
- package/dist/post-components/{p-c0ae9886.js → p-3eab790d.js} +1 -1
- package/dist/post-components/p-3f5bf5d9.entry.js +1 -0
- package/dist/post-components/p-40e5bb56.entry.js +1 -0
- package/dist/post-components/p-56ca6bb5.js +1 -0
- package/dist/post-components/p-58cbb854.entry.js +1 -0
- package/dist/post-components/p-5c557e64.js +1 -0
- package/dist/post-components/p-5ce2abc9.entry.js +1 -0
- package/dist/post-components/p-5f08d625.js +15 -0
- package/dist/post-components/p-7069ac74.entry.js +1 -0
- package/dist/post-components/p-755b2746.js +1 -0
- package/dist/post-components/p-788e64fb.js +1 -0
- package/dist/post-components/p-799cf60e.js +1 -0
- package/dist/post-components/p-7bbcc8ee.js +1 -0
- package/dist/post-components/p-7cdf9571.entry.js +1 -0
- package/dist/post-components/p-7e4181ce.entry.js +1 -0
- package/dist/post-components/p-9409f729.js +1 -0
- package/dist/post-components/p-a07846ea.js +1 -0
- package/dist/post-components/p-a4560368.js +1 -0
- package/dist/post-components/p-a503cb2c.entry.js +1 -0
- package/dist/post-components/p-b46e2451.js +1 -0
- package/dist/post-components/p-b7207224.js +1 -0
- package/dist/post-components/p-bafc0491.js +1 -0
- package/dist/post-components/p-c078fd94.entry.js +1 -0
- package/dist/post-components/p-c0aebe5e.entry.js +1 -0
- package/dist/post-components/p-c7e4acde.js +1 -0
- package/dist/post-components/p-ca71a3ff.entry.js +1 -0
- package/dist/post-components/p-d582cc10.js +1 -0
- package/dist/post-components/p-e49f57c0.entry.js +1 -0
- package/dist/post-components/p-eb712f9b.entry.js +1 -0
- package/dist/post-components/p-eebd060d.js +1 -0
- package/dist/post-components/p-f7cead60.entry.js +1 -0
- package/dist/post-components/p-ffd75503.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -7
- package/dist/types/components/post-alert/alert-types.d.ts +2 -0
- package/dist/types/components/post-alert/post-alert.d.ts +54 -0
- package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
- package/dist/types/components/post-icon/post-icon.d.ts +1 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +31 -13
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +20 -34
- package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +47 -0
- package/dist/types/components.d.ts +124 -590
- package/dist/types/index.d.ts +3 -20
- package/loaders/index.d.ts +4 -38
- package/loaders/index.js +4 -21
- package/loaders/index2.js +1 -1
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item.js +82 -1
- package/loaders/post-accordion.js +1 -1
- package/loaders/{post-list.d.ts → post-alert.d.ts} +4 -4
- package/loaders/post-alert.js +139 -0
- package/loaders/post-card-control.js +3 -3
- package/loaders/post-collapsible-trigger2.js +17 -2
- package/loaders/post-collapsible2.js +3 -5
- package/loaders/post-icon2.js +54 -15
- package/loaders/post-logo.js +2 -2
- package/loaders/post-popover.js +35 -8
- package/loaders/post-popovercontainer2.js +136 -41
- package/loaders/post-rating.js +2 -2
- package/loaders/post-tab-header.js +2 -2
- package/loaders/post-tab-panel.js +1 -1
- package/loaders/post-tabs.js +3 -3
- package/loaders/post-tag.js +2 -2
- package/loaders/{post-avatar.d.ts → post-tooltip-trigger.d.ts} +4 -4
- package/loaders/post-tooltip-trigger.js +4971 -0
- package/loaders/post-tooltip.js +32 -4962
- package/package.json +6 -9
- package/dist/cjs/attribute-observer-10f08c04.js +0 -27
- package/dist/cjs/check-url-3ffdd2fb.js +0 -14
- package/dist/cjs/debounce-1151afe3.js +0 -12
- package/dist/cjs/get-root-7a3498ef.js +0 -11
- package/dist/cjs/post-accordion-item-ecc6749f.js +0 -63
- package/dist/cjs/post-avatar-f7236084.js +0 -148
- package/dist/cjs/post-avatar.cjs.entry.js +0 -13
- package/dist/cjs/post-back-to-top-60762f8e.js +0 -75
- package/dist/cjs/post-back-to-top.cjs.entry.js +0 -15
- package/dist/cjs/post-banner-9662f22c.js +0 -90
- package/dist/cjs/post-breadcrumb-b40732fc.js +0 -111
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +0 -17
- package/dist/cjs/post-breadcrumb.cjs.entry.js +0 -13
- package/dist/cjs/post-card-control-039c9a4b.js +0 -272
- package/dist/cjs/post-closebutton_15.cjs.entry.js +0 -33
- package/dist/cjs/post-footer-5f7fdf96.js +0 -84
- package/dist/cjs/post-footer.cjs.entry.js +0 -11
- package/dist/cjs/post-menu-item-bb0b0b9e.js +0 -74
- package/dist/cjs/post-popover-d0ce9dc6.js +0 -104
- package/dist/cjs/post-rating-1082197c.js +0 -88
- package/dist/cjs/post-tab-header-4b6d8d54.js +0 -32
- package/dist/cjs/post-tag-ddaaaedc.js +0 -47
- package/dist/cjs/slide-5d51abe8.js +0 -28
- package/dist/collection/animations/slide.js +0 -23
- package/dist/collection/components/post-avatar/post-avatar.css +0 -3
- package/dist/collection/components/post-avatar/post-avatar.js +0 -237
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +0 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +0 -107
- package/dist/collection/components/post-banner/banner-types.js +0 -1
- package/dist/collection/components/post-banner/post-banner.css +0 -3
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.css +0 -3
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +0 -161
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +0 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +0 -93
- package/dist/collection/components/post-closebutton/post-closebutton.js +0 -12
- package/dist/collection/components/post-footer/post-footer.css +0 -1
- package/dist/collection/components/post-footer/post-footer.js +0 -75
- package/dist/collection/components/post-header/post-header.css +0 -1
- package/dist/collection/components/post-header/post-header.js +0 -160
- package/dist/collection/components/post-language-option/post-language-option.css +0 -3
- package/dist/collection/components/post-language-option/post-language-option.js +0 -215
- package/dist/collection/components/post-language-switch/post-language-switch.css +0 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +0 -163
- package/dist/collection/components/post-language-switch/switch-variants.js +0 -1
- package/dist/collection/components/post-list/post-list.css +0 -3
- package/dist/collection/components/post-list/post-list.js +0 -87
- package/dist/collection/components/post-list-item/post-list-item.css +0 -1
- package/dist/collection/components/post-list-item/post-list-item.js +0 -25
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +0 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +0 -52
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +0 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +0 -151
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +0 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +0 -104
- package/dist/collection/components/post-menu/post-menu.css +0 -3
- package/dist/collection/components/post-menu/post-menu.js +0 -280
- package/dist/collection/components/post-menu-item/post-menu-item.css +0 -1
- package/dist/collection/components/post-menu-item/post-menu-item.js +0 -20
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +0 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +0 -114
- package/dist/collection/components/post-togglebutton/post-togglebutton.css +0 -1
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +0 -74
- package/dist/collection/utils/breakpoints.js +0 -46
- package/dist/collection/utils/is-focusable.js +0 -26
- package/dist/components/attribute-observer.js +0 -25
- package/dist/components/debounce.js +0 -10
- package/dist/components/get-root.js +0 -9
- package/dist/components/post-avatar.d.ts +0 -11
- package/dist/components/post-avatar.js +0 -6
- package/dist/components/post-avatar2.js +0 -173
- package/dist/components/post-back-to-top.d.ts +0 -11
- package/dist/components/post-back-to-top.js +0 -6
- package/dist/components/post-back-to-top2.js +0 -100
- package/dist/components/post-banner.d.ts +0 -11
- package/dist/components/post-banner.js +0 -6
- package/dist/components/post-banner2.js +0 -125
- package/dist/components/post-breadcrumb-item.js +0 -6
- package/dist/components/post-breadcrumb-item2.js +0 -82
- package/dist/components/post-breadcrumb.d.ts +0 -11
- package/dist/components/post-breadcrumb.js +0 -6
- package/dist/components/post-breadcrumb2.js +0 -168
- package/dist/components/post-closebutton.d.ts +0 -11
- package/dist/components/post-closebutton.js +0 -6
- package/dist/components/post-closebutton2.js +0 -34
- package/dist/components/post-footer.d.ts +0 -11
- package/dist/components/post-footer.js +0 -6
- package/dist/components/post-footer2.js +0 -124
- package/dist/components/post-header.d.ts +0 -11
- package/dist/components/post-header.js +0 -6
- package/dist/components/post-header2.js +0 -276
- package/dist/components/post-language-option.d.ts +0 -11
- package/dist/components/post-language-option.js +0 -6
- package/dist/components/post-language-option2.js +0 -94
- package/dist/components/post-language-switch.d.ts +0 -11
- package/dist/components/post-language-switch.js +0 -6
- package/dist/components/post-language-switch2.js +0 -146
- package/dist/components/post-list-item.d.ts +0 -11
- package/dist/components/post-list-item.js +0 -6
- package/dist/components/post-list-item2.js +0 -35
- package/dist/components/post-list.js +0 -6
- package/dist/components/post-list2.js +0 -53
- package/dist/components/post-mainnavigation.d.ts +0 -11
- package/dist/components/post-mainnavigation.js +0 -6
- package/dist/components/post-mainnavigation2.js +0 -48
- package/dist/components/post-megadropdown-trigger.d.ts +0 -11
- package/dist/components/post-megadropdown-trigger.js +0 -6
- package/dist/components/post-megadropdown-trigger2.js +0 -91
- package/dist/components/post-megadropdown.d.ts +0 -11
- package/dist/components/post-megadropdown.js +0 -6
- package/dist/components/post-megadropdown2.js +0 -93
- package/dist/components/post-menu-item.d.ts +0 -11
- package/dist/components/post-menu-item.js +0 -6
- package/dist/components/post-menu-item2.js +0 -33
- package/dist/components/post-menu-trigger.d.ts +0 -11
- package/dist/components/post-menu-trigger.js +0 -6
- package/dist/components/post-menu-trigger2.js +0 -102
- package/dist/components/post-menu.d.ts +0 -11
- package/dist/components/post-menu.js +0 -6
- package/dist/components/post-menu2.js +0 -203
- package/dist/components/post-togglebutton.d.ts +0 -11
- package/dist/components/post-togglebutton.js +0 -6
- package/dist/components/post-togglebutton2.js +0 -61
- package/dist/components/slide.js +0 -25
- package/dist/esm/attribute-observer-37fa950a.js +0 -25
- package/dist/esm/check-url-a974431e.js +0 -12
- package/dist/esm/debounce-abe98cc2.js +0 -10
- package/dist/esm/get-root-7af2e0d1.js +0 -9
- package/dist/esm/package-4d81f3c2.js +0 -3
- package/dist/esm/post-accordion-item-e10452dc.js +0 -61
- package/dist/esm/post-avatar-5572fa73.js +0 -146
- package/dist/esm/post-avatar.entry.js +0 -5
- package/dist/esm/post-back-to-top-1d823c43.js +0 -73
- package/dist/esm/post-back-to-top.entry.js +0 -7
- package/dist/esm/post-banner-78480475.js +0 -88
- package/dist/esm/post-banner.entry.js +0 -10
- package/dist/esm/post-breadcrumb-aaa77f74.js +0 -109
- package/dist/esm/post-breadcrumb-item_2.entry.js +0 -8
- package/dist/esm/post-breadcrumb.entry.js +0 -5
- package/dist/esm/post-card-control-862aa961.js +0 -270
- package/dist/esm/post-closebutton_15.entry.js +0 -11
- package/dist/esm/post-footer-b18875e7.js +0 -82
- package/dist/esm/post-footer.entry.js +0 -3
- package/dist/esm/post-menu-item-2906384b.js +0 -71
- package/dist/esm/post-popover-2432bb3f.js +0 -102
- package/dist/esm/post-rating-95cbdbb8.js +0 -86
- package/dist/esm/post-tab-header-dfea00ea.js +0 -30
- package/dist/esm/post-tag-a77e7af6.js +0 -45
- package/dist/esm/slide-3422b8a3.js +0 -25
- package/dist/post-components/p-0711f76d.entry.js +0 -1
- package/dist/post-components/p-095a06f6.entry.js +0 -1
- package/dist/post-components/p-0b5a5f32.js +0 -1
- package/dist/post-components/p-135fa60f.js +0 -1
- package/dist/post-components/p-18e38d8a.js +0 -1
- package/dist/post-components/p-2e1ec074.entry.js +0 -1
- package/dist/post-components/p-4202b433.entry.js +0 -1
- package/dist/post-components/p-45773f59.js +0 -1
- package/dist/post-components/p-4953de7e.js +0 -1
- package/dist/post-components/p-4f67c5f5.entry.js +0 -1
- package/dist/post-components/p-4f9746f6.js +0 -15
- package/dist/post-components/p-5075c672.entry.js +0 -1
- package/dist/post-components/p-515e0f96.js +0 -1
- package/dist/post-components/p-5467b223.js +0 -1
- package/dist/post-components/p-67036798.entry.js +0 -1
- package/dist/post-components/p-6adeaa6c.js +0 -1
- package/dist/post-components/p-6d953fb2.js +0 -1
- package/dist/post-components/p-6edb0ac5.js +0 -1
- package/dist/post-components/p-6f8f39ca.js +0 -1
- package/dist/post-components/p-7503a623.js +0 -1
- package/dist/post-components/p-761b24c7.entry.js +0 -1
- package/dist/post-components/p-77c4c1d2.js +0 -1
- package/dist/post-components/p-7cf0c2ad.js +0 -1
- package/dist/post-components/p-856c14d6.entry.js +0 -1
- package/dist/post-components/p-866bf50a.entry.js +0 -1
- package/dist/post-components/p-8d621781.js +0 -1
- package/dist/post-components/p-8fe2d72c.entry.js +0 -1
- package/dist/post-components/p-9ad5088f.entry.js +0 -1
- package/dist/post-components/p-a1d2b90e.js +0 -1
- package/dist/post-components/p-a521419d.entry.js +0 -1
- package/dist/post-components/p-aa538648.js +0 -1
- package/dist/post-components/p-afdbee2f.js +0 -1
- package/dist/post-components/p-b02817f2.entry.js +0 -1
- package/dist/post-components/p-b157dcba.entry.js +0 -1
- package/dist/post-components/p-b22656b1.js +0 -1
- package/dist/post-components/p-bdbd11cb.js +0 -1
- package/dist/post-components/p-c537e196.entry.js +0 -1
- package/dist/post-components/p-d4f93f2b.js +0 -1
- package/dist/post-components/p-dca4246a.entry.js +0 -1
- package/dist/post-components/p-f319b026.js +0 -1
- package/dist/post-components/p-f4b7b379.js +0 -1
- package/dist/post-components/p-fac66087.entry.js +0 -1
- package/dist/post-components/p-fc91cbc2.js +0 -1
- package/dist/types/animations/slide.d.ts +0 -2
- package/dist/types/components/post-avatar/post-avatar.d.ts +0 -51
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -19
- package/dist/types/components/post-banner/banner-types.d.ts +0 -2
- package/dist/types/components/post-banner/post-banner.d.ts +0 -49
- package/dist/types/components/post-breadcrumb/post-breadcrumb.d.ts +0 -30
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -16
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -7
- package/dist/types/components/post-footer/post-footer.d.ts +0 -23
- package/dist/types/components/post-header/post-header.d.ts +0 -24
- package/dist/types/components/post-language-option/post-language-option.d.ts +0 -45
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +0 -31
- package/dist/types/components/post-language-switch/switch-variants.d.ts +0 -2
- package/dist/types/components/post-list/post-list.d.ts +0 -24
- package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -19
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +0 -35
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -25
- package/dist/types/components/post-menu/post-menu.d.ts +0 -48
- package/dist/types/components/post-menu-item/post-menu-item.d.ts +0 -4
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -27
- package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +0 -15
- package/dist/types/utils/breakpoints.d.ts +0 -11
- package/dist/types/utils/is-focusable.d.ts +0 -1
- package/loaders/attribute-observer.js +0 -25
- package/loaders/debounce.js +0 -10
- package/loaders/get-root.js +0 -9
- package/loaders/post-accordion-item2.js +0 -102
- package/loaders/post-avatar.js +0 -176
- package/loaders/post-back-to-top.d.ts +0 -11
- package/loaders/post-back-to-top.js +0 -103
- package/loaders/post-banner.d.ts +0 -11
- package/loaders/post-banner.js +0 -128
- package/loaders/post-breadcrumb-item.d.ts +0 -11
- package/loaders/post-breadcrumb-item.js +0 -6
- package/loaders/post-breadcrumb-item2.js +0 -82
- package/loaders/post-breadcrumb.d.ts +0 -11
- package/loaders/post-breadcrumb.js +0 -171
- package/loaders/post-closebutton.d.ts +0 -11
- package/loaders/post-closebutton.js +0 -37
- package/loaders/post-footer.d.ts +0 -11
- package/loaders/post-footer.js +0 -127
- package/loaders/post-header.d.ts +0 -11
- package/loaders/post-header.js +0 -279
- package/loaders/post-language-option.d.ts +0 -11
- package/loaders/post-language-option.js +0 -97
- package/loaders/post-language-switch.d.ts +0 -11
- package/loaders/post-language-switch.js +0 -149
- package/loaders/post-list-item.d.ts +0 -11
- package/loaders/post-list-item.js +0 -38
- package/loaders/post-list.js +0 -56
- package/loaders/post-mainnavigation.d.ts +0 -11
- package/loaders/post-mainnavigation.js +0 -51
- package/loaders/post-megadropdown-trigger.d.ts +0 -11
- package/loaders/post-megadropdown-trigger.js +0 -94
- package/loaders/post-megadropdown.d.ts +0 -11
- package/loaders/post-megadropdown.js +0 -96
- package/loaders/post-menu-item.d.ts +0 -11
- package/loaders/post-menu-item.js +0 -6
- package/loaders/post-menu-item2.js +0 -33
- package/loaders/post-menu-trigger.d.ts +0 -11
- package/loaders/post-menu-trigger.js +0 -6
- package/loaders/post-menu-trigger2.js +0 -102
- package/loaders/post-menu.d.ts +0 -11
- package/loaders/post-menu.js +0 -6
- package/loaders/post-menu2.js +0 -203
- package/loaders/post-togglebutton.d.ts +0 -11
- package/loaders/post-togglebutton.js +0 -64
- package/loaders/slide.js +0 -25
|
@@ -1,49 +0,0 @@
|
|
|
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}-${string}-${string}-${string}-${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(isDismissible?: boolean): void;
|
|
20
|
-
/**
|
|
21
|
-
* The label to use for the close button of a dismissible banner.
|
|
22
|
-
*/
|
|
23
|
-
readonly dismissLabel: string;
|
|
24
|
-
validateDismissLabel(dismissLabel?: string): 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(icon?: string): void;
|
|
32
|
-
/**
|
|
33
|
-
* The type of the banner.
|
|
34
|
-
*/
|
|
35
|
-
readonly type: BannerType;
|
|
36
|
-
validateType(type?: "neutral" | "success" | "warning" | "danger" | "info"): 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
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare class PostBreadcrumb {
|
|
2
|
-
host: HTMLPostBreadcrumbElement;
|
|
3
|
-
/**
|
|
4
|
-
* The URL for the home breadcrumb item.
|
|
5
|
-
*/
|
|
6
|
-
homeUrl: string;
|
|
7
|
-
/**
|
|
8
|
-
* The text label for the home breadcrumb item.
|
|
9
|
-
*/
|
|
10
|
-
homeText: string;
|
|
11
|
-
breadcrumbItems: {
|
|
12
|
-
url: string;
|
|
13
|
-
text: string;
|
|
14
|
-
}[];
|
|
15
|
-
isConcatenated: boolean;
|
|
16
|
-
lastWindowWidth: number;
|
|
17
|
-
private breadcrumbNavRef?;
|
|
18
|
-
private lastItem;
|
|
19
|
-
validateUrl(): void;
|
|
20
|
-
componentWillLoad(): void;
|
|
21
|
-
componentDidLoad(): void;
|
|
22
|
-
disconnectedCallback(): void;
|
|
23
|
-
private waitForBreadcrumbRef;
|
|
24
|
-
private updateBreadcrumbItems;
|
|
25
|
-
private handleResize;
|
|
26
|
-
private getParentWidth;
|
|
27
|
-
private checkConcatenation;
|
|
28
|
-
private handleBreadcrumbItemClick;
|
|
29
|
-
render(): any;
|
|
30
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
validateUrl(): void;
|
|
12
|
-
private constructUrl;
|
|
13
|
-
connectedCallback(): void;
|
|
14
|
-
private handleKeyDown;
|
|
15
|
-
render(): any;
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @slot grid-{1|2|3|4}-title - Slot for the accordion headers (mobile).
|
|
3
|
-
* @slot grid-{1|2|3|4} - Slot for the accordion bodies (mobile) and the grid cells (tablet, desktop).
|
|
4
|
-
* @slot socialmedia - Slot for the social media links.
|
|
5
|
-
* @slot app - Slot for the app links.
|
|
6
|
-
* @slot businesssectors - Slot for the business sectors links.
|
|
7
|
-
* @slot meta - Slot for the meta links.
|
|
8
|
-
* @slot copyright - Slot for the copyright text.
|
|
9
|
-
*/
|
|
10
|
-
export declare class PostFooter {
|
|
11
|
-
host: HTMLPostFooterElement;
|
|
12
|
-
/**
|
|
13
|
-
* The label to add to the footer (visually hidden).
|
|
14
|
-
*/
|
|
15
|
-
readonly label: string;
|
|
16
|
-
isMobile: boolean;
|
|
17
|
-
connectedCallback(): void;
|
|
18
|
-
private breakpointChange;
|
|
19
|
-
private renderAccordion;
|
|
20
|
-
private renderGrid;
|
|
21
|
-
render(): any;
|
|
22
|
-
disconnectedCallback(): void;
|
|
23
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type DEVICE_SIZE = 'mobile' | 'tablet' | 'desktop' | null;
|
|
2
|
-
export declare class PostHeader {
|
|
3
|
-
private scrollParent;
|
|
4
|
-
private mobileMenu;
|
|
5
|
-
private mobileMenuAnimation;
|
|
6
|
-
private throttledScroll;
|
|
7
|
-
private throttledResize;
|
|
8
|
-
componentWillRender(): void;
|
|
9
|
-
host: HTMLPostHeaderElement;
|
|
10
|
-
device: DEVICE_SIZE;
|
|
11
|
-
mobileMenuExtended: boolean;
|
|
12
|
-
frozeBody(isMobileMenuExtended: boolean): void;
|
|
13
|
-
/**
|
|
14
|
-
* Toggles the mobile navigation.
|
|
15
|
-
*/
|
|
16
|
-
toggleMobileMenu(): Promise<void>;
|
|
17
|
-
private handleScrollEvent;
|
|
18
|
-
private getScrollParent;
|
|
19
|
-
private isScrollable;
|
|
20
|
-
private handleResize;
|
|
21
|
-
private switchLanguageSwitchMode;
|
|
22
|
-
render(): any;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { SwitchVariant } from '../post-language-switch/switch-variants';
|
|
3
|
-
/**
|
|
4
|
-
* @slot default - Slot for placing the content inside the anchor or button.
|
|
5
|
-
*/
|
|
6
|
-
export declare class PostLanguageOption {
|
|
7
|
-
host: HTMLPostLanguageOptionElement;
|
|
8
|
-
/**
|
|
9
|
-
* The ISO 639 language code, formatted according to [RFC 5646 (also known as BCP 47)](https://datatracker.ietf.org/doc/html/rfc5646). For example, "de".
|
|
10
|
-
*/
|
|
11
|
-
code: string;
|
|
12
|
-
validateCode(value?: string): void;
|
|
13
|
-
/**
|
|
14
|
-
* If set to `true`, the language option is considered the current language for the page.
|
|
15
|
-
*/
|
|
16
|
-
active: boolean;
|
|
17
|
-
validateActiveProp(value?: boolean): void;
|
|
18
|
-
/**
|
|
19
|
-
* The variant of the post-language-switch parent (dynamically set by the parent)
|
|
20
|
-
*/
|
|
21
|
-
variant?: SwitchVariant | null;
|
|
22
|
-
/**
|
|
23
|
-
* The full name of the language. For example, "Deutsch".
|
|
24
|
-
*/
|
|
25
|
-
name: string;
|
|
26
|
-
validateName(value?: string): void;
|
|
27
|
-
/**
|
|
28
|
-
* The URL used for the href attribute of the internal anchor.
|
|
29
|
-
* This field is optional; if not provided, a button will be used internally instead of an anchor.
|
|
30
|
-
*/
|
|
31
|
-
url: string;
|
|
32
|
-
validateUrl(value?: string): void;
|
|
33
|
-
componentDidLoad(): void;
|
|
34
|
-
/**
|
|
35
|
-
* An event emitted when the language option is clicked. The payload is the ISO 639 code of the language.
|
|
36
|
-
*/
|
|
37
|
-
postChange: EventEmitter<string>;
|
|
38
|
-
/**
|
|
39
|
-
* Selects the language option programmatically.
|
|
40
|
-
*/
|
|
41
|
-
select(): Promise<void>;
|
|
42
|
-
private emitChange;
|
|
43
|
-
private isNameRequired;
|
|
44
|
-
render(): any;
|
|
45
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SwitchVariant } from './switch-variants';
|
|
2
|
-
export declare class PostLanguageSwitch {
|
|
3
|
-
host: HTMLPostLanguageSwitchElement;
|
|
4
|
-
/**
|
|
5
|
-
* A title for the list of language options
|
|
6
|
-
*/
|
|
7
|
-
caption: string;
|
|
8
|
-
validateCaption(value?: string): void;
|
|
9
|
-
/**
|
|
10
|
-
* A descriptive text for the list of language options
|
|
11
|
-
*/
|
|
12
|
-
description: string;
|
|
13
|
-
validateDescription(value?: string): void;
|
|
14
|
-
/**
|
|
15
|
-
* Variant that determines the rendering of the language switch either as a list (used on mobile in the header) or a dropdown (used on desktop in the header)
|
|
16
|
-
*/
|
|
17
|
-
variant: SwitchVariant;
|
|
18
|
-
validateVariant(value?: "list" | "dropdown"): void;
|
|
19
|
-
/**
|
|
20
|
-
* The active language of the language switch
|
|
21
|
-
*/
|
|
22
|
-
activeLang: string;
|
|
23
|
-
connectedCallback(): void;
|
|
24
|
-
private updateChildrenVariant;
|
|
25
|
-
componentShouldUpdate(): void;
|
|
26
|
-
componentDidLoad(): void;
|
|
27
|
-
private menuId;
|
|
28
|
-
private renderList;
|
|
29
|
-
private renderDropdown;
|
|
30
|
-
render(): any;
|
|
31
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @slot default - Slot for placing the list title.
|
|
3
|
-
* @slot post-list-item - Slot for placing post-list-item components.
|
|
4
|
-
*/
|
|
5
|
-
export declare class PostList {
|
|
6
|
-
host: HTMLPostListElement;
|
|
7
|
-
/**
|
|
8
|
-
* The unique title of the list that is also referenced in the labelledby
|
|
9
|
-
*/
|
|
10
|
-
titleId: string;
|
|
11
|
-
/**
|
|
12
|
-
* If `true`, the list title will be hidden. Otherwise, it will be displayed.`
|
|
13
|
-
*/
|
|
14
|
-
readonly titleHidden: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The list can become horizontal by setting `horizontal="true"` or just `horizontal`
|
|
17
|
-
*/
|
|
18
|
-
readonly horizontal: boolean;
|
|
19
|
-
private titleEl;
|
|
20
|
-
componentWillLoad(): void;
|
|
21
|
-
componentDidLoad(): void;
|
|
22
|
-
private checkTitle;
|
|
23
|
-
render(): any;
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
export declare class PostMainnavigation {
|
|
3
|
-
private header;
|
|
4
|
-
host: HTMLPostMainnavigationElement;
|
|
5
|
-
/**
|
|
6
|
-
* Gets emitted when a user closes the main navigation on mobile
|
|
7
|
-
*/
|
|
8
|
-
postToggle: EventEmitter;
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves a reference to the closest 'post-header' element when the main navigation is added to the DOM.
|
|
11
|
-
*/
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
/**
|
|
14
|
-
* Cleans up references and disconnects the MutationObserver when the main navigation is removed from the DOM.
|
|
15
|
-
*/
|
|
16
|
-
disconnectedCallback(): void;
|
|
17
|
-
private handleBackButtonClick;
|
|
18
|
-
render(): any;
|
|
19
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
export declare class PostMegadropdown {
|
|
3
|
-
private popoverRef;
|
|
4
|
-
host: HTMLPostMegadropdownElement;
|
|
5
|
-
/**
|
|
6
|
-
* Holds the current visibility state of the dropdown.
|
|
7
|
-
* This state is internally managed to track whether the dropdown is open (`true`) or closed (`false`),
|
|
8
|
-
* and updates automatically when the dropdown is toggled.
|
|
9
|
-
*/
|
|
10
|
-
isVisible: boolean;
|
|
11
|
-
animationClass: string | null;
|
|
12
|
-
/**
|
|
13
|
-
* Emits when the dropdown is shown or hidden.
|
|
14
|
-
* The event payload is a boolean: `true` when the dropdown was opened, `false` when it was closed.
|
|
15
|
-
**/
|
|
16
|
-
postToggleMegadropdown: EventEmitter<boolean>;
|
|
17
|
-
componentDidLoad(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Toggles the dropdown visibility based on its current state.
|
|
20
|
-
*/
|
|
21
|
-
toggle(target: HTMLElement): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Displays the popover dropdown
|
|
24
|
-
*
|
|
25
|
-
* @param target - The HTML element relative to which the popover dropdown should be displayed.
|
|
26
|
-
*/
|
|
27
|
-
show(target: HTMLElement): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Hides the popover dropdown
|
|
30
|
-
*/
|
|
31
|
-
private hide;
|
|
32
|
-
private handleBackButtonClick;
|
|
33
|
-
private handleCloseButtonClick;
|
|
34
|
-
render(): any;
|
|
35
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare class PostMegadropdownTrigger {
|
|
2
|
-
/**
|
|
3
|
-
* ID of the mega dropdown element that this trigger is linked to. Used to open and close the specified mega dropdown.
|
|
4
|
-
*/
|
|
5
|
-
for: string;
|
|
6
|
-
host: HTMLPostMegadropdownTriggerElement;
|
|
7
|
-
/**
|
|
8
|
-
* Manages the accessibility attribute `aria-expanded` to indicate whether the associated mega dropdown is expanded or collapsed.
|
|
9
|
-
*/
|
|
10
|
-
ariaExpanded: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Reference to the slotted button within the trigger, if present.
|
|
13
|
-
* Used to manage click and key events for mega dropdown control.
|
|
14
|
-
*/
|
|
15
|
-
private slottedButton;
|
|
16
|
-
/**
|
|
17
|
-
* Watch for changes to the `for` property to validate its type and ensure it is a string.
|
|
18
|
-
* @param forValue - The new value of the `for` property.
|
|
19
|
-
*/
|
|
20
|
-
validateControlFor(forValue?: string): void;
|
|
21
|
-
private get megadropdown();
|
|
22
|
-
private handleToggle;
|
|
23
|
-
componentDidLoad(): void;
|
|
24
|
-
render(): any;
|
|
25
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Placement } from '@floating-ui/dom';
|
|
3
|
-
export declare class PostMenu {
|
|
4
|
-
private popoverRef;
|
|
5
|
-
private lastFocusedElement;
|
|
6
|
-
private readonly KEYCODES;
|
|
7
|
-
host: HTMLPostMenuElement;
|
|
8
|
-
/**
|
|
9
|
-
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
10
|
-
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
11
|
-
* towards the viewport if they would overlap edge boundaries.
|
|
12
|
-
*/
|
|
13
|
-
readonly placement?: Placement;
|
|
14
|
-
/**
|
|
15
|
-
* Holds the current visibility state of the menu.
|
|
16
|
-
* This state is internally managed to track whether the menu is open (`true`) or closed (`false`),
|
|
17
|
-
* and updates automatically when the menu is toggled.
|
|
18
|
-
*/
|
|
19
|
-
isVisible: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Emits when the menu is shown or hidden.
|
|
22
|
-
* The event payload is a boolean: `true` when the menu was opened, `false` when it was closed.
|
|
23
|
-
**/
|
|
24
|
-
toggleMenu: EventEmitter<boolean>;
|
|
25
|
-
private root?;
|
|
26
|
-
connectedCallback(): void;
|
|
27
|
-
disconnectedCallback(): void;
|
|
28
|
-
componentDidLoad(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Toggles the menu visibility based on its current state.
|
|
31
|
-
*/
|
|
32
|
-
toggle(target: HTMLElement): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Displays the popover menu, focusing the first menu item.
|
|
35
|
-
*
|
|
36
|
-
* @param target - The HTML element relative to which the popover menu should be displayed.
|
|
37
|
-
*/
|
|
38
|
-
show(target: HTMLElement): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Hides the popover menu and restores focus to the previously focused element.
|
|
41
|
-
*/
|
|
42
|
-
hide(): Promise<void>;
|
|
43
|
-
private handleKeyDown;
|
|
44
|
-
private handleClick;
|
|
45
|
-
private controlKeyDownHandler;
|
|
46
|
-
private getSlottedItems;
|
|
47
|
-
render(): any;
|
|
48
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare class PostMenuTrigger {
|
|
2
|
-
/**
|
|
3
|
-
* ID of the menu element that this trigger is linked to. Used to open and close the specified menu.
|
|
4
|
-
*/
|
|
5
|
-
for: string;
|
|
6
|
-
host: HTMLPostMenuTriggerElement;
|
|
7
|
-
/**
|
|
8
|
-
* Manages the accessibility attribute `aria-expanded` to indicate whether the associated menu is expanded or collapsed.
|
|
9
|
-
*/
|
|
10
|
-
ariaExpanded: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Reference to the slotted button within the trigger, if present.
|
|
13
|
-
* Used to manage click and key events for menu control.
|
|
14
|
-
*/
|
|
15
|
-
private slottedButton;
|
|
16
|
-
private root?;
|
|
17
|
-
/**
|
|
18
|
-
* Watch for changes to the `for` property to validate its type and ensure it is a string.
|
|
19
|
-
* @param forValue - The new value of the `for` property.
|
|
20
|
-
*/
|
|
21
|
-
validateControlFor(forValue?: string): void;
|
|
22
|
-
private get menu();
|
|
23
|
-
private handleToggle;
|
|
24
|
-
private handleKeyDown;
|
|
25
|
-
componentDidLoad(): void;
|
|
26
|
-
render(): any;
|
|
27
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @slot default - Slot for the content of the button.
|
|
3
|
-
*/
|
|
4
|
-
export declare class PostTogglebutton {
|
|
5
|
-
host: HTMLPostTogglebuttonElement;
|
|
6
|
-
/**
|
|
7
|
-
* If `true`, the button is in the "on" state, otherwise it is in the "off" state.
|
|
8
|
-
*/
|
|
9
|
-
toggled: boolean;
|
|
10
|
-
validateToggled(value?: boolean): void;
|
|
11
|
-
componentWillLoad(): void;
|
|
12
|
-
private handleClick;
|
|
13
|
-
private handleKeydown;
|
|
14
|
-
render(): any;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type ListenerType = 'key' | 'name';
|
|
2
|
-
export declare class Breakpoint {
|
|
3
|
-
private readonly breakpointMap;
|
|
4
|
-
private readonly current;
|
|
5
|
-
constructor();
|
|
6
|
-
private updateHandler;
|
|
7
|
-
private dispatchEvent;
|
|
8
|
-
get(type: ListenerType): string;
|
|
9
|
-
}
|
|
10
|
-
export declare const breakpoint: Breakpoint;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isFocusable: (element: Element) => boolean;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const getAttributeObserver = (attribute, handler) => {
|
|
2
|
-
/**
|
|
3
|
-
* Handle attribute changes and childList changes from the observer
|
|
4
|
-
* @param {MutationRecord[]} mutationList
|
|
5
|
-
*/
|
|
6
|
-
const observerHandler = (mutationList) => {
|
|
7
|
-
mutationList.forEach(mutation => {
|
|
8
|
-
if (mutation.type === 'attributes' && mutation.attributeName === attribute) {
|
|
9
|
-
handler(mutation.target);
|
|
10
|
-
}
|
|
11
|
-
if (mutation.type === 'childList') {
|
|
12
|
-
mutation.addedNodes.forEach(node => {
|
|
13
|
-
if (node.nodeType === Node.ELEMENT_NODE &&
|
|
14
|
-
node.hasAttribute(attribute)) {
|
|
15
|
-
handler(node);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
// Initialize a mutation observer for patching accessibility features
|
|
22
|
-
return new MutationObserver(observerHandler);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { getAttributeObserver as g };
|
package/loaders/debounce.js
DELETED
package/loaders/get-root.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
function getRoot(element) {
|
|
2
|
-
const root = element.getRootNode();
|
|
3
|
-
if (root instanceof Document || root instanceof ShadowRoot) {
|
|
4
|
-
return root;
|
|
5
|
-
}
|
|
6
|
-
throw new Error('Attempting to access root node before the element is attached to the document or shadow tree.');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { getRoot as g };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { v as version } from './package.js';
|
|
3
|
-
import { H as HEADING_LEVELS } from './heading-levels.js';
|
|
4
|
-
import { b as checkEmptyOrOneOf } from './index2.js';
|
|
5
|
-
import { d as defineCustomElement$3 } from './post-collapsible2.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './post-collapsible-trigger2.js';
|
|
7
|
-
import { d as defineCustomElement$1 } from './post-icon2.js';
|
|
8
|
-
|
|
9
|
-
const postAccordionItemCss = ":host::after{display:block;content:\"\";margin-top:calc(var(--post-device-border-width-default)*-1);border-bottom:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.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:inherit;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));transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.accordion-button::before{display:block;position:absolute;content:\"\";inset:0;bottom:auto;border-top: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:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:var(--post-device-border-width-default) solid Highlight}.accordion-button:disabled{opacity:1 !important}}.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}";
|
|
10
|
-
const PostAccordionItemStyle0 = postAccordionItemCss;
|
|
11
|
-
|
|
12
|
-
const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionItem extends HTMLElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super();
|
|
15
|
-
this.__registerHost();
|
|
16
|
-
this.__attachShadow();
|
|
17
|
-
this.id = undefined;
|
|
18
|
-
this.slottedLogo = undefined;
|
|
19
|
-
this.collapsed = false;
|
|
20
|
-
this.headingLevel = undefined;
|
|
21
|
-
}
|
|
22
|
-
validateHeadingLevel(newValue = this.headingLevel) {
|
|
23
|
-
checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.');
|
|
24
|
-
}
|
|
25
|
-
componentWillLoad() {
|
|
26
|
-
this.id = this.host.id || `a${crypto.randomUUID()}`;
|
|
27
|
-
}
|
|
28
|
-
componentDidLoad() {
|
|
29
|
-
this.validateHeadingLevel();
|
|
30
|
-
}
|
|
31
|
-
// capture to make sure the "collapsed" property is updated before the event is consumed
|
|
32
|
-
onCollapseToggle(event) {
|
|
33
|
-
if (event.target === this.host &&
|
|
34
|
-
event.target.localName === 'post-accordion-item') {
|
|
35
|
-
this.collapsed = !event.detail;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Triggers the collapse programmatically.
|
|
40
|
-
*/
|
|
41
|
-
async toggle(force) {
|
|
42
|
-
return this.collapsible.toggle(force);
|
|
43
|
-
}
|
|
44
|
-
onSlotLogoChange() {
|
|
45
|
-
this.slottedLogo = this.host.querySelector('img[slot="logo"]');
|
|
46
|
-
}
|
|
47
|
-
componentWillRender() {
|
|
48
|
-
this.slottedLogo = this.host.querySelector('img[slot="logo"]');
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
var _a, _b;
|
|
52
|
-
const headingLevel = (_a = this.host.closest('post-accorddion')) === null || _a === void 0 ? void 0 : _a.getAttribute('heading-level');
|
|
53
|
-
const HeadingTag = `h${(_b = headingLevel !== null && headingLevel !== void 0 ? headingLevel : this.headingLevel) !== null && _b !== void 0 ? _b : 2}`;
|
|
54
|
-
return (h(Host, { key: 'e11a8ce9df85f6813f152433d0b5526668415953', id: this.id, "data-version": version }, h("div", { key: 'd62b7f758fca1ffbcef7c6f29b3a0ce48ded9749', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: '492458d3cda61325d931a83be1f1be1f98f63301', for: `${this.id}--collapse` }, h(HeadingTag, { key: '1a4bc90415504cd00a65922ff5e61221c8368eea', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: 'c14154955c74a4482cc197aca95297ae29ef066f', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, part: "button" }, h("span", { key: '112810b9df4a73bc02a46a98ba2d0ce069168c7c', class: {
|
|
55
|
-
'logo-container': true,
|
|
56
|
-
'has-image': !!this.slottedLogo,
|
|
57
|
-
} }, h("slot", { key: '67e72b84363597fc0e239baccb533b9083251a6b', name: "logo", onSlotchange: this.onSlotLogoChange.bind(this) })), h("slot", { key: '3e9a2b38f621990cabfa84431ca8a7fd39087c88', name: "header" }), h("post-icon", { key: 'e8337b48394b9357b62e517c3b066dfa1bb5f5d7', name: "2051" })))), h("post-collapsible", { key: 'ca23a5a9a8b1615dc4352223a3135514ea5f279a', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '668805a03a3ee2facee60ecba0fa549edf0cecba', class: "accordion-body", part: "body" }, h("slot", { key: '3ddf282a59dad61dcd093c11a23f33635c9162d1' }))))));
|
|
58
|
-
}
|
|
59
|
-
get host() { return this; }
|
|
60
|
-
static get watchers() { return {
|
|
61
|
-
"headingLevel": ["validateHeadingLevel"]
|
|
62
|
-
}; }
|
|
63
|
-
static get style() { return PostAccordionItemStyle0; }
|
|
64
|
-
}, [1, "post-accordion-item", {
|
|
65
|
-
"collapsed": [1028],
|
|
66
|
-
"headingLevel": [2, "heading-level"],
|
|
67
|
-
"id": [32],
|
|
68
|
-
"slottedLogo": [32],
|
|
69
|
-
"toggle": [64]
|
|
70
|
-
}, [[2, "postToggle", "onCollapseToggle"]], {
|
|
71
|
-
"headingLevel": ["validateHeadingLevel"]
|
|
72
|
-
}]);
|
|
73
|
-
function defineCustomElement() {
|
|
74
|
-
if (typeof customElements === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const components = ["post-accordion-item", "post-collapsible", "post-collapsible-trigger", "post-icon"];
|
|
78
|
-
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "post-accordion-item":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
customElements.define(tagName, PostAccordionItem);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
case "post-collapsible":
|
|
85
|
-
if (!customElements.get(tagName)) {
|
|
86
|
-
defineCustomElement$3();
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
case "post-collapsible-trigger":
|
|
90
|
-
if (!customElements.get(tagName)) {
|
|
91
|
-
defineCustomElement$2();
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
case "post-icon":
|
|
95
|
-
if (!customElements.get(tagName)) {
|
|
96
|
-
defineCustomElement$1();
|
|
97
|
-
}
|
|
98
|
-
break;
|
|
99
|
-
} });
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export { PostAccordionItem as P, defineCustomElement as d };
|