@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,14 +1,8 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { version } from "../../../../package";
|
|
2
3
|
import { arrow, autoUpdate, computePosition, flip, inline, limitShift, offset, shift, size, } from "@floating-ui/dom";
|
|
3
4
|
// Polyfill for popovers, can be removed when https://caniuse.com/?search=popover is green
|
|
4
5
|
import "@oddbird/popover-polyfill";
|
|
5
|
-
import { version } from "../../../../package";
|
|
6
|
-
const SIDE_MAP = {
|
|
7
|
-
top: 'bottom',
|
|
8
|
-
right: 'left',
|
|
9
|
-
bottom: 'top',
|
|
10
|
-
left: 'right',
|
|
11
|
-
};
|
|
12
6
|
/**
|
|
13
7
|
* @slot - Default slot for placing content inside the popovercontainer.
|
|
14
8
|
*/
|
|
@@ -16,19 +10,31 @@ export class PostPopovercontainer {
|
|
|
16
10
|
constructor() {
|
|
17
11
|
this.placement = 'top';
|
|
18
12
|
this.edgeGap = 8;
|
|
13
|
+
this.animation = null;
|
|
19
14
|
this.arrow = false;
|
|
15
|
+
this.safeSpace = undefined;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Updates cursor position for safe space feature when popover is open.
|
|
19
|
+
* Sets CSS custom properties for dynamic styling of safe area.
|
|
20
|
+
* @param event MouseEvent with cursor position
|
|
21
|
+
*/
|
|
22
|
+
mouseTrackingHandler(event) {
|
|
23
|
+
this.host.style.setProperty('--post-safe-space-cursor-x', `${event.clientX}px`);
|
|
24
|
+
this.host.style.setProperty('--post-safe-space-cursor-y', `${event.clientY}px`);
|
|
20
25
|
}
|
|
21
26
|
componentDidLoad() {
|
|
22
27
|
this.host.setAttribute('popover', '');
|
|
23
28
|
this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
|
|
24
29
|
}
|
|
25
30
|
disconnectedCallback() {
|
|
26
|
-
if (typeof this.clearAutoUpdate === 'function')
|
|
31
|
+
if (typeof this.clearAutoUpdate === 'function') {
|
|
27
32
|
this.clearAutoUpdate();
|
|
33
|
+
}
|
|
28
34
|
}
|
|
29
35
|
/**
|
|
30
|
-
* Programmatically display the
|
|
31
|
-
* @param target An element with [data-
|
|
36
|
+
* Programmatically display the popovercontainer
|
|
37
|
+
* @param target An element with [data-popover-target="id"] where the popovercontainer should be shown
|
|
32
38
|
*/
|
|
33
39
|
async show(target) {
|
|
34
40
|
if (!this.toggleTimeoutId) {
|
|
@@ -38,7 +44,7 @@ export class PostPopovercontainer {
|
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
/**
|
|
41
|
-
* Programmatically hide
|
|
47
|
+
* Programmatically hide the popovercontainer
|
|
42
48
|
*/
|
|
43
49
|
async hide() {
|
|
44
50
|
if (!this.toggleTimeoutId) {
|
|
@@ -47,8 +53,8 @@ export class PostPopovercontainer {
|
|
|
47
53
|
}
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
|
-
* Toggle
|
|
51
|
-
* @param target An element with [data-
|
|
56
|
+
* Toggle popovercontainer display
|
|
57
|
+
* @param target An element with [data-popover-target="id"] where the popovercontainer should be shown
|
|
52
58
|
* @param force Pass true to always show or false to always hide
|
|
53
59
|
*/
|
|
54
60
|
async toggle(target, force) {
|
|
@@ -59,11 +65,11 @@ export class PostPopovercontainer {
|
|
|
59
65
|
this.host.togglePopover(force);
|
|
60
66
|
this.toggleTimeoutId = null;
|
|
61
67
|
}
|
|
62
|
-
return this.host.matches(':where(:popover-open, .popover-open');
|
|
68
|
+
return this.host.matches(':where(:popover-open, .popover-open)');
|
|
63
69
|
}
|
|
64
70
|
/**
|
|
65
|
-
* Start or stop auto updates based on
|
|
66
|
-
*
|
|
71
|
+
* Start or stop auto updates based on popovercontainer events.
|
|
72
|
+
* Popovercontainers can be closed or opened with other methods than class members,
|
|
67
73
|
* therefore listening to the toggle event is safer for cleaning up.
|
|
68
74
|
* @param e ToggleEvent
|
|
69
75
|
*/
|
|
@@ -72,29 +78,54 @@ export class PostPopovercontainer {
|
|
|
72
78
|
const isOpen = e.newState === 'open';
|
|
73
79
|
if (isOpen) {
|
|
74
80
|
this.startAutoupdates();
|
|
81
|
+
if (this.safeSpace)
|
|
82
|
+
window.addEventListener('mousemove', this.mouseTrackingHandler.bind(this));
|
|
75
83
|
}
|
|
76
84
|
else {
|
|
77
85
|
if (typeof this.clearAutoUpdate === 'function')
|
|
78
86
|
this.clearAutoUpdate();
|
|
87
|
+
if (this.safeSpace)
|
|
88
|
+
window.removeEventListener('mousemove', this.mouseTrackingHandler.bind(this));
|
|
79
89
|
}
|
|
80
90
|
this.postToggle.emit(isOpen);
|
|
81
91
|
}
|
|
82
92
|
/**
|
|
83
93
|
* Start listening for DOM updates, scroll events etc. that have
|
|
84
|
-
* an influence on
|
|
94
|
+
* an influence on popovercontainer positioning
|
|
85
95
|
*/
|
|
86
96
|
startAutoupdates() {
|
|
87
97
|
this.clearAutoUpdate = autoUpdate(this.eventTarget, this.host, this.calculatePosition.bind(this));
|
|
88
98
|
}
|
|
89
99
|
async calculatePosition() {
|
|
100
|
+
const { x, y, middlewareData, placement } = await this.computeMainPosition();
|
|
101
|
+
const currentPlacement = placement.split('-')[0];
|
|
102
|
+
// Position popover
|
|
103
|
+
this.host.style.left = `${x}px`;
|
|
104
|
+
this.host.style.top = `${y}px`;
|
|
105
|
+
// Position arrow if enabled
|
|
106
|
+
if (this.arrow && middlewareData.arrow) {
|
|
107
|
+
const { x: arrowX, y: arrowY } = middlewareData.arrow;
|
|
108
|
+
const staticSide = PostPopovercontainer.STATIC_SIDES[currentPlacement];
|
|
109
|
+
if (staticSide) {
|
|
110
|
+
Object.assign(this.arrowRef.style, {
|
|
111
|
+
left: arrowX ? `${arrowX}px` : '',
|
|
112
|
+
top: arrowY ? `${arrowY}px` : '',
|
|
113
|
+
[staticSide]: '-7px',
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// Handle safe space if enabled
|
|
118
|
+
if (this.safeSpace && this.eventTarget) {
|
|
119
|
+
await this.updateSafeSpaceBoundaries(currentPlacement);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async computeMainPosition() {
|
|
90
123
|
const gap = this.edgeGap;
|
|
91
124
|
const middleware = [
|
|
92
125
|
flip(),
|
|
93
126
|
inline(),
|
|
94
127
|
shift({
|
|
95
128
|
padding: gap,
|
|
96
|
-
// Prevents shifting away from the anchor too far, while shifting as far as possible
|
|
97
|
-
// https://floating-ui.com/docs/shift#limiter
|
|
98
129
|
limiter: limitShift({
|
|
99
130
|
offset: 32,
|
|
100
131
|
}),
|
|
@@ -106,40 +137,82 @@ export class PostPopovercontainer {
|
|
|
106
137
|
});
|
|
107
138
|
},
|
|
108
139
|
}),
|
|
109
|
-
offset(this.arrow ? gap + 4 : gap),
|
|
140
|
+
offset(this.arrow ? gap + 4 : gap),
|
|
110
141
|
];
|
|
111
142
|
if (this.arrow) {
|
|
112
143
|
middleware.push(arrow({ element: this.arrowRef, padding: gap }));
|
|
113
144
|
}
|
|
114
|
-
|
|
145
|
+
return computePosition(this.eventTarget, this.host, {
|
|
115
146
|
placement: this.placement || 'top',
|
|
116
147
|
strategy: 'fixed',
|
|
117
148
|
middleware,
|
|
118
149
|
});
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
this.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
150
|
+
}
|
|
151
|
+
async updateSafeSpaceBoundaries(currentPlacement) {
|
|
152
|
+
const targetRect = this.eventTarget.getBoundingClientRect();
|
|
153
|
+
const popoverRect = this.host.getBoundingClientRect();
|
|
154
|
+
const isVertical = currentPlacement === 'top' || currentPlacement === 'bottom';
|
|
155
|
+
// Helper function to get positioning data based on placement
|
|
156
|
+
const getPositioningData = (placement, popoverRect, targetRect) => {
|
|
157
|
+
if (placement === 'top' || placement === 'bottom') {
|
|
158
|
+
return {
|
|
159
|
+
popover: {
|
|
160
|
+
y: placement === 'top' ? popoverRect.bottom : popoverRect.top,
|
|
161
|
+
xStart: popoverRect.left,
|
|
162
|
+
xEnd: popoverRect.right,
|
|
163
|
+
},
|
|
164
|
+
trigger: {
|
|
165
|
+
y: placement === 'top' ? targetRect.top : targetRect.bottom,
|
|
166
|
+
xStart: targetRect.left,
|
|
167
|
+
xEnd: targetRect.right,
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
// left or right
|
|
173
|
+
return {
|
|
174
|
+
popover: {
|
|
175
|
+
x: placement === 'left' ? popoverRect.right : popoverRect.left,
|
|
176
|
+
yStart: popoverRect.top,
|
|
177
|
+
yEnd: popoverRect.bottom,
|
|
178
|
+
},
|
|
179
|
+
trigger: {
|
|
180
|
+
x: placement === 'left' ? targetRect.left : targetRect.right,
|
|
181
|
+
yStart: targetRect.top,
|
|
182
|
+
yEnd: targetRect.bottom,
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
const posData = getPositioningData(currentPlacement, popoverRect, targetRect);
|
|
188
|
+
// Clear previous values
|
|
189
|
+
PostPopovercontainer.PROPERTIES_TO_CLEAR.forEach(prop => {
|
|
190
|
+
this.host.style.removeProperty(prop);
|
|
191
|
+
});
|
|
192
|
+
if (isVertical) {
|
|
193
|
+
// For top/bottom placement
|
|
194
|
+
this.host.style.setProperty('--post-safe-space-popover-y', `${posData.popover.y}px`);
|
|
195
|
+
this.host.style.setProperty('--post-safe-space-popover-x-start', `${posData.popover.xStart}px`);
|
|
196
|
+
this.host.style.setProperty('--post-safe-space-popover-x-end', `${posData.popover.xEnd}px`);
|
|
197
|
+
this.host.style.setProperty('--post-safe-space-trigger-y', `${posData.trigger.y}px`);
|
|
198
|
+
this.host.style.setProperty('--post-safe-space-trigger-x-start', `${posData.trigger.xStart}px`);
|
|
199
|
+
this.host.style.setProperty('--post-safe-space-trigger-x-end', `${posData.trigger.xEnd}px`);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
// For left/right placement
|
|
203
|
+
this.host.style.setProperty('--post-safe-space-popover-x', `${posData.popover.x}px`);
|
|
204
|
+
this.host.style.setProperty('--post-safe-space-popover-y-start', `${posData.popover.yStart}px`);
|
|
205
|
+
this.host.style.setProperty('--post-safe-space-popover-y-end', `${posData.popover.yEnd}px`);
|
|
206
|
+
this.host.style.setProperty('--post-safe-space-trigger-x', `${posData.trigger.x}px`);
|
|
207
|
+
this.host.style.setProperty('--post-safe-space-trigger-y-start', `${posData.trigger.yStart}px`);
|
|
208
|
+
this.host.style.setProperty('--post-safe-space-trigger-y-end', `${posData.trigger.yEnd}px`);
|
|
137
209
|
}
|
|
138
210
|
}
|
|
139
211
|
render() {
|
|
140
|
-
|
|
212
|
+
const animationClass = this.animation ? `animate-${this.animation}` : '';
|
|
213
|
+
return (h(Host, { key: '98ea26b46803e8aa98cc2cec53798d994c0ff856', "data-version": version }, h("div", { key: '230fa7df2963b36e67a4559f07010f7213240e3c', class: animationClass }, this.arrow && (h("span", { key: '58647eb14ef84ff04b04b7dec0bbb38b9bcd4b69', class: "arrow", ref: el => {
|
|
141
214
|
this.arrowRef = el;
|
|
142
|
-
} })), h("slot", { key: '
|
|
215
|
+
} })), h("slot", { key: 'de0afc53f013ac7d4cdd06e0e2d7746a8e0971dc' }))));
|
|
143
216
|
}
|
|
144
217
|
static get is() { return "post-popovercontainer"; }
|
|
145
218
|
static get originalStyleUrls() {
|
|
@@ -172,7 +245,7 @@ export class PostPopovercontainer {
|
|
|
172
245
|
"optional": true,
|
|
173
246
|
"docs": {
|
|
174
247
|
"tags": [],
|
|
175
|
-
"text": "Defines the placement of the
|
|
248
|
+
"text": "Defines the placement of the popovercontainer according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.\nPopovercontainers are automatically flipped to the opposite side if there is not enough available space and are shifted\ntowards the viewport if they would overlap edge boundaries."
|
|
176
249
|
},
|
|
177
250
|
"attribute": "placement",
|
|
178
251
|
"reflect": false,
|
|
@@ -190,12 +263,30 @@ export class PostPopovercontainer {
|
|
|
190
263
|
"optional": true,
|
|
191
264
|
"docs": {
|
|
192
265
|
"tags": [],
|
|
193
|
-
"text": "Gap between the edge of the page and the
|
|
266
|
+
"text": "Gap between the edge of the page and the popovercontainer"
|
|
194
267
|
},
|
|
195
268
|
"attribute": "edge-gap",
|
|
196
269
|
"reflect": false,
|
|
197
270
|
"defaultValue": "8"
|
|
198
271
|
},
|
|
272
|
+
"animation": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"mutable": false,
|
|
275
|
+
"complexType": {
|
|
276
|
+
"original": "'pop-in' | null",
|
|
277
|
+
"resolved": "\"pop-in\"",
|
|
278
|
+
"references": {}
|
|
279
|
+
},
|
|
280
|
+
"required": false,
|
|
281
|
+
"optional": true,
|
|
282
|
+
"docs": {
|
|
283
|
+
"tags": [],
|
|
284
|
+
"text": "Animation style"
|
|
285
|
+
},
|
|
286
|
+
"attribute": "animation",
|
|
287
|
+
"reflect": false,
|
|
288
|
+
"defaultValue": "null"
|
|
289
|
+
},
|
|
199
290
|
"arrow": {
|
|
200
291
|
"type": "boolean",
|
|
201
292
|
"mutable": false,
|
|
@@ -208,11 +299,28 @@ export class PostPopovercontainer {
|
|
|
208
299
|
"optional": true,
|
|
209
300
|
"docs": {
|
|
210
301
|
"tags": [],
|
|
211
|
-
"text": "
|
|
302
|
+
"text": "Whether or not to display a little pointer arrow"
|
|
212
303
|
},
|
|
213
304
|
"attribute": "arrow",
|
|
214
305
|
"reflect": false,
|
|
215
306
|
"defaultValue": "false"
|
|
307
|
+
},
|
|
308
|
+
"safeSpace": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "'triangle' | 'trapezoid'",
|
|
313
|
+
"resolved": "\"trapezoid\" | \"triangle\"",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": true,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": "Enables a safespace through which the cursor can be moved without the popover being disabled"
|
|
321
|
+
},
|
|
322
|
+
"attribute": "safe-space",
|
|
323
|
+
"reflect": true
|
|
216
324
|
}
|
|
217
325
|
};
|
|
218
326
|
}
|
|
@@ -225,7 +333,7 @@ export class PostPopovercontainer {
|
|
|
225
333
|
"composed": true,
|
|
226
334
|
"docs": {
|
|
227
335
|
"tags": [],
|
|
228
|
-
"text": "Fires whenever the
|
|
336
|
+
"text": "Fires whenever the popovercontainer gets shown or hidden, passing the new state in event.details as a boolean"
|
|
229
337
|
},
|
|
230
338
|
"complexType": {
|
|
231
339
|
"original": "boolean",
|
|
@@ -242,7 +350,7 @@ export class PostPopovercontainer {
|
|
|
242
350
|
"parameters": [{
|
|
243
351
|
"name": "target",
|
|
244
352
|
"type": "HTMLElement",
|
|
245
|
-
"docs": "An element with [data-
|
|
353
|
+
"docs": "An element with [data-popover-target=\"id\"] where the popovercontainer should be shown"
|
|
246
354
|
}],
|
|
247
355
|
"references": {
|
|
248
356
|
"Promise": {
|
|
@@ -257,10 +365,10 @@ export class PostPopovercontainer {
|
|
|
257
365
|
"return": "Promise<void>"
|
|
258
366
|
},
|
|
259
367
|
"docs": {
|
|
260
|
-
"text": "Programmatically display the
|
|
368
|
+
"text": "Programmatically display the popovercontainer",
|
|
261
369
|
"tags": [{
|
|
262
370
|
"name": "param",
|
|
263
|
-
"text": "target An element with [data-
|
|
371
|
+
"text": "target An element with [data-popover-target=\"id\"] where the popovercontainer should be shown"
|
|
264
372
|
}]
|
|
265
373
|
}
|
|
266
374
|
},
|
|
@@ -277,7 +385,7 @@ export class PostPopovercontainer {
|
|
|
277
385
|
"return": "Promise<void>"
|
|
278
386
|
},
|
|
279
387
|
"docs": {
|
|
280
|
-
"text": "Programmatically hide
|
|
388
|
+
"text": "Programmatically hide the popovercontainer",
|
|
281
389
|
"tags": []
|
|
282
390
|
}
|
|
283
391
|
},
|
|
@@ -287,7 +395,7 @@ export class PostPopovercontainer {
|
|
|
287
395
|
"parameters": [{
|
|
288
396
|
"name": "target",
|
|
289
397
|
"type": "HTMLElement",
|
|
290
|
-
"docs": "An element with [data-
|
|
398
|
+
"docs": "An element with [data-popover-target=\"id\"] where the popovercontainer should be shown"
|
|
291
399
|
}, {
|
|
292
400
|
"name": "force",
|
|
293
401
|
"type": "boolean",
|
|
@@ -306,10 +414,10 @@ export class PostPopovercontainer {
|
|
|
306
414
|
"return": "Promise<boolean>"
|
|
307
415
|
},
|
|
308
416
|
"docs": {
|
|
309
|
-
"text": "Toggle
|
|
417
|
+
"text": "Toggle popovercontainer display",
|
|
310
418
|
"tags": [{
|
|
311
419
|
"name": "param",
|
|
312
|
-
"text": "target An element with [data-
|
|
420
|
+
"text": "target An element with [data-popover-target=\"id\"] where the popovercontainer should be shown"
|
|
313
421
|
}, {
|
|
314
422
|
"name": "param",
|
|
315
423
|
"text": "force Pass true to always show or false to always hide"
|
|
@@ -320,3 +428,23 @@ export class PostPopovercontainer {
|
|
|
320
428
|
}
|
|
321
429
|
static get elementRef() { return "host"; }
|
|
322
430
|
}
|
|
431
|
+
PostPopovercontainer.STATIC_SIDES = {
|
|
432
|
+
top: 'bottom',
|
|
433
|
+
right: 'left',
|
|
434
|
+
bottom: 'top',
|
|
435
|
+
left: 'right',
|
|
436
|
+
};
|
|
437
|
+
PostPopovercontainer.PROPERTIES_TO_CLEAR = [
|
|
438
|
+
'--post-safe-space-popover-x',
|
|
439
|
+
'--post-safe-space-popover-y',
|
|
440
|
+
'--post-safe-space-popover-x-start',
|
|
441
|
+
'--post-safe-space-popover-x-end',
|
|
442
|
+
'--post-safe-space-popover-y-start',
|
|
443
|
+
'--post-safe-space-popover-y-end',
|
|
444
|
+
'--post-safe-space-trigger-x',
|
|
445
|
+
'--post-safe-space-trigger-y',
|
|
446
|
+
'--post-safe-space-trigger-x-start',
|
|
447
|
+
'--post-safe-space-trigger-x-end',
|
|
448
|
+
'--post-safe-space-trigger-y-start',
|
|
449
|
+
'--post-safe-space-trigger-y-end',
|
|
450
|
+
];
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!
|
|
2
|
+
* Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors
|
|
4
|
+
* Copyright 2011-2021 Twitter, Inc.
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
* The MIT License (MIT)
|
|
8
|
+
|
|
9
|
+
* Copyright (c) 2011-2020 Twitter, Inc.
|
|
10
|
+
* Copyright (c) 2011-2020 The Bootstrap Authors
|
|
11
|
+
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
* in the Software without restriction, including without limitation the rights
|
|
15
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
* furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
* The above copyright notice and this permission notice shall be included in
|
|
20
|
+
* all copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
28
|
+
* THE SOFTWARE.
|
|
29
|
+
*//*!
|
|
2
30
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
31
|
*/:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: #fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: #fc0}.rating .star.active{--post-rating-star-stroke: hsl(0, 0%, 20%);--post-rating-star-fill: #fc0}.rating .star.hover{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: #fc0}.rating .star.after-active{--post-rating-star-stroke: hsl(0, 0%, 40%);--post-rating-star-fill: hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke: hsl(0, 0%, 60%);--post-rating-star-fill: #fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke: hsl(0, 0%, 60%);--post-rating-star-fill: hsl(0, 0%, 90%)}
|
|
@@ -64,7 +64,7 @@ export class PostRating {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '442c936d6e9337d04b16edc62e56996139e86262', "data-version": version }, h("div", { key: '280ea877721676ba137c91d9be00007bcc5caf4f', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
68
68
|
'star': true,
|
|
69
69
|
'before-hover': i < this.hoveredIndex,
|
|
70
70
|
'active': i < Math.round(this.currentRating),
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!
|
|
1
|
+
.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!
|
|
2
|
+
* Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors
|
|
4
|
+
* Copyright 2011-2021 Twitter, Inc.
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
* The MIT License (MIT)
|
|
8
|
+
|
|
9
|
+
* Copyright (c) 2011-2020 Twitter, Inc.
|
|
10
|
+
* Copyright (c) 2011-2020 The Bootstrap Authors
|
|
11
|
+
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
* in the Software without restriction, including without limitation the rights
|
|
15
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
* furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
* The above copyright notice and this permission notice shall be included in
|
|
20
|
+
* all copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
28
|
+
* THE SOFTWARE.
|
|
29
|
+
*//*!
|
|
2
30
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
31
|
*/:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}
|
|
@@ -16,7 +16,7 @@ export class PostTabHeader {
|
|
|
16
16
|
this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '5912b0379fbde496a165cc18bd8025e02858dd20', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '14d7d226e09a018139570ded2acef36ade7ad501' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "post-tab-header"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class PostTabPanel {
|
|
|
13
13
|
this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'b3cf3aa9d4a89fc1f561ba7ecd62ff456e3392eb', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '63be1c4ea7c1c57a1438eeb164b446d39613f926' })));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "post-tab-panel"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap
|
|
1
|
+
.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}
|
|
@@ -14,7 +14,7 @@ export class PostTabs {
|
|
|
14
14
|
this.activePanel = undefined;
|
|
15
15
|
}
|
|
16
16
|
get tabs() {
|
|
17
|
-
return Array.from(this.host.querySelectorAll('post-tab-header'))
|
|
17
|
+
return Array.from(this.host.querySelectorAll(':scope > post-tab-header'));
|
|
18
18
|
}
|
|
19
19
|
componentDidLoad() {
|
|
20
20
|
var _a;
|
|
@@ -144,7 +144,7 @@ export class PostTabs {
|
|
|
144
144
|
nextTab.focus();
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
return (h(Host, { key: '
|
|
147
|
+
return (h(Host, { key: 'a9ffdd06a929c2b7fd386059470467521754b3ad', "data-version": version }, h("div", { key: 'f0a4c8ed9a053a7644479b99f22f55f8029cf943', class: "tabs-wrapper", part: "tabs" }, h("div", { key: 'd90e3450f44a7bb5438395ce3a7bdfd0cb4bc659', class: "tabs", role: "tablist" }, h("slot", { key: 'ddeb20ddbf41a6a6ffc0f8244a4b08aeabe7f7ac', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'c0088f37dec20f684d88e3457d2b0631327bf63e', class: "tab-content", part: "content" }, h("slot", { key: 'd5528c69592eaff702c000f43c7d59ffde1ae444', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
148
148
|
}
|
|
149
149
|
static get is() { return "post-tabs"; }
|
|
150
150
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
/*!
|
|
1
|
+
@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!
|
|
2
|
+
* Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)
|
|
3
|
+
* Copyright 2011-2021 The Bootstrap Authors
|
|
4
|
+
* Copyright 2011-2021 Twitter, Inc.
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
* The MIT License (MIT)
|
|
8
|
+
|
|
9
|
+
* Copyright (c) 2011-2020 Twitter, Inc.
|
|
10
|
+
* Copyright (c) 2011-2020 The Bootstrap Authors
|
|
11
|
+
|
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
* in the Software without restriction, including without limitation the rights
|
|
15
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
* furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
* The above copyright notice and this permission notice shall be included in
|
|
20
|
+
* all copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
28
|
+
* THE SOFTWARE.
|
|
29
|
+
*//*!
|
|
2
30
|
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
31
|
*/.tag,.tag:where(:has(:not(pre))){--post-tag-bg: hsl(0, 0%, 90%);--post-tag-fg: #000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg: #fff;--post-tag-fg: #000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg: #fc0;--post-tag-fg: #000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg: #2c871d;--post-tag-fg: #fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg: #f49e00;--post-tag-fg: #000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg: #a51728;--post-tag-fg: #fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg: #cce4ee;--post-tag-fg: #000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}
|
|
@@ -30,7 +30,7 @@ export class PostTag {
|
|
|
30
30
|
this.setClasses();
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '20c4c9dc37c9db3d4372090fb374bf2eea0cdb07', "data-version": version }, h("div", { key: '9bef44d17e73969a1fc3cfe580c6347958da89dc', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: '2bc158a3bd9981960053ab4ffc9f69419cd38af3', class: "tag-text" }, h("slot", { key: 'fabe72ce90e9a6e06fa62c748731de44f1c7f6b7' })))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "post-tag"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,7 +93,7 @@ export class PostTag {
|
|
|
93
93
|
"optional": false,
|
|
94
94
|
"docs": {
|
|
95
95
|
"tags": [],
|
|
96
|
-
"text": "Defines the icon `name` inside of the component.\n<span className=\"
|
|
96
|
+
"text": "Defines the icon `name` inside of the component.\n<span className=\"alert alert-sm alert-info\">If not set the icon will not show up.</span>\nTo learn which icons are available, please visit our <a href=\"/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs\">icon library</a>."
|
|
97
97
|
},
|
|
98
98
|
"attribute": "icon",
|
|
99
99
|
"reflect": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:host{
|
|
1
|
+
:host{display:none;--post-contrast-color: #fff;--post-bg-rgb: 51, 51, 51}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer>div{padding:.25rem .5rem;max-width:200px;min-height:32px}
|