@swisspost/design-system-components 9.0.0-next.6 → 9.0.0-next.8
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-e1f32cce.js +8 -0
- package/dist/cjs/index.cjs.js +25 -21
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-81d89808.js → package-a2b895fc.js} +1 -1
- package/dist/cjs/{post-accordion-7d2805f4.js → post-accordion-3ce01432.js} +2 -2
- package/dist/cjs/post-accordion-item-81601b1e.js +62 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/post-accordion.cjs.entry.js +2 -2
- package/dist/cjs/{post-avatar-0b87e44f.js → post-avatar-b1c97f51.js} +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +2 -2
- package/dist/cjs/post-back-to-top-0ce98569.js +98 -0
- package/dist/cjs/post-back-to-top.cjs.entry.js +14 -0
- package/dist/cjs/{post-banner-e42f02bd.js → post-banner-8611eab5.js} +4 -4
- package/dist/cjs/post-banner.cjs.entry.js +2 -2
- package/dist/cjs/{post-breadcrumb-item-46a8e876.js → post-breadcrumb-item-2075462a.js} +2 -2
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/post-card-control-acd30573.js +272 -0
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/post-closebutton_10.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-ae50d0d4.js → post-collapsible-trigger-8ca4d85b.js} +2 -2
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-language-option-c6049337.js → post-language-option-cf32d0ed.js} +2 -2
- package/dist/cjs/post-language-option.cjs.entry.js +2 -2
- package/dist/cjs/{post-megadropdown-trigger-97472602.js → post-megadropdown-trigger-7376d867.js} +32 -37
- package/dist/cjs/{post-menu-61c31423.js → post-menu-a3b7b63b.js} +2 -2
- package/dist/cjs/{post-menu-item-4f393cde.js → post-menu-item-28ab1a72.js} +2 -2
- package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/{post-menu-trigger-44a5f8e9.js → post-menu-trigger-821839f5.js} +2 -2
- package/dist/cjs/post-menu-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-menu.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-44fdb733.js → post-popover-c4f50134.js} +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-4d5e7c8e.js → post-rating-3a87ca46.js} +2 -2
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-3fcb40fa.js → post-tab-header-5fdb05a1.js} +2 -2
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-b1a41181.js → post-tab-panel-34aed8e6.js} +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-092790e4.js → post-tabs-dd2da5d2.js} +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-389a43f7.js → post-tag-59232922.js} +2 -2
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/post-togglebutton-59c6357b.js +28 -0
- package/dist/cjs/post-togglebutton.cjs.entry.js +11 -0
- package/dist/cjs/{post-tooltip-c42d6853.js → post-tooltip-3e0c1509.js} +28 -16
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/animations/slide.js +23 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +17 -5
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -0
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +107 -0
- package/dist/collection/components/post-banner/post-banner.js +3 -3
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +2 -2
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
- package/dist/collection/components/post-header/post-header.js +1 -1
- package/dist/collection/components/post-icon/post-icon.css +1 -1
- package/dist/collection/components/post-icon/post-icon.js +20 -31
- package/dist/collection/components/post-language-option/post-language-option.js +1 -1
- package/dist/collection/components/post-list/post-list.js +1 -1
- package/dist/collection/components/post-list-item/post-list-item.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.js +1 -1
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +2 -2
- package/dist/collection/components/post-rating/post-rating.js +1 -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.js +1 -1
- package/dist/collection/components/post-tag/post-tag.js +1 -1
- package/dist/collection/components/post-togglebutton/post-togglebutton.css +1 -0
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +56 -0
- package/dist/collection/components/post-tooltip/post-tooltip.js +28 -12
- package/dist/collection/index.js +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +26 -9
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-back-to-top.d.ts +11 -0
- package/dist/components/post-back-to-top.js +6 -0
- package/dist/components/post-back-to-top2.js +123 -0
- package/dist/components/post-banner2.js +3 -3
- package/dist/components/post-breadcrumb-item2.js +1 -1
- package/dist/components/post-card-control2.js +3 -3
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-header2.js +1 -1
- package/dist/components/post-icon2.js +22 -29
- package/dist/components/post-language-option2.js +1 -1
- package/dist/components/post-list-item2.js +1 -1
- package/dist/components/post-list2.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-mainnavigation2.js +1 -1
- package/dist/components/post-megadropdown-trigger2.js +1 -1
- package/dist/components/post-megadropdown2.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-popover2.js +1 -1
- package/dist/components/post-popovercontainer2.js +2 -2
- package/dist/components/post-rating2.js +1 -1
- package/dist/components/post-tab-header2.js +1 -1
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +1 -1
- package/dist/components/post-tag2.js +1 -1
- package/dist/components/post-togglebutton.d.ts +11 -0
- package/dist/components/post-togglebutton.js +6 -0
- package/dist/components/post-togglebutton2.js +43 -0
- package/dist/components/post-tooltip2.js +27 -15
- package/dist/docs.json +126 -1
- package/dist/esm/index-e1b64755.js +8 -0
- package/dist/esm/index.js +23 -21
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-9cafe148.js +3 -0
- package/dist/esm/{post-accordion-c833c272.js → post-accordion-19e88941.js} +2 -2
- package/dist/esm/post-accordion-item-33bbe4de.js +60 -0
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-avatar-f43ebc89.js → post-avatar-d15a9f9e.js} +1 -1
- package/dist/esm/post-avatar.entry.js +2 -2
- package/dist/esm/post-back-to-top-bcf46150.js +96 -0
- package/dist/esm/post-back-to-top.entry.js +6 -0
- package/dist/esm/{post-banner-cf6f756b.js → post-banner-bf5e6a18.js} +4 -4
- package/dist/esm/post-banner.entry.js +2 -2
- package/dist/esm/{post-breadcrumb-item-a93b91a7.js → post-breadcrumb-item-e3b41f74.js} +2 -2
- package/dist/esm/post-breadcrumb-item.entry.js +2 -2
- package/dist/esm/post-card-control-f0788f6f.js +270 -0
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/post-closebutton_10.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-7b3d0fd3.js → post-collapsible-trigger-1d939eb6.js} +2 -2
- package/dist/esm/post-collapsible_2.entry.js +2 -2
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/{post-language-option-05f53f6f.js → post-language-option-1436370d.js} +2 -2
- package/dist/esm/post-language-option.entry.js +2 -2
- package/dist/esm/{post-megadropdown-trigger-3112a42b.js → post-megadropdown-trigger-210b4ab3.js} +32 -37
- package/dist/esm/{post-menu-05396ff7.js → post-menu-e853e28b.js} +2 -2
- package/dist/esm/{post-menu-item-bbbb6a7e.js → post-menu-item-86d4c7ab.js} +2 -2
- package/dist/esm/post-menu-item.entry.js +2 -2
- package/dist/esm/{post-menu-trigger-f9f4d299.js → post-menu-trigger-80c2bdf4.js} +2 -2
- package/dist/esm/post-menu-trigger.entry.js +2 -2
- package/dist/esm/post-menu.entry.js +2 -2
- package/dist/esm/{post-popover-1ae328eb.js → post-popover-7195d05a.js} +2 -2
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-rating-75171e3a.js → post-rating-8baf86fe.js} +2 -2
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-d4d40b0e.js → post-tab-header-a1d1d9d0.js} +2 -2
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-79b42d3e.js → post-tab-panel-afce8d40.js} +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-4d880ed8.js → post-tabs-fbb42496.js} +2 -2
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-bf91d0a7.js → post-tag-d67b6a19.js} +2 -2
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/post-togglebutton-c3fb912d.js +26 -0
- package/dist/esm/post-togglebutton.entry.js +3 -0
- package/dist/esm/{post-tooltip-7aa14f94.js → post-tooltip-7101ed24.js} +28 -16
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-314c1090.js → p-00fa0152.js} +1 -1
- package/dist/post-components/p-1667387e.entry.js +1 -0
- package/dist/post-components/p-19551c18.entry.js +1 -0
- package/dist/post-components/p-1b627f80.js +1 -0
- package/dist/post-components/p-24673919.js +1 -0
- package/dist/post-components/p-266b734f.entry.js +1 -0
- package/dist/post-components/{p-cf298c46.js → p-282115c4.js} +1 -1
- package/dist/post-components/p-2d0ffc1e.entry.js +1 -0
- package/dist/post-components/p-45018d7e.entry.js +1 -0
- package/dist/post-components/{p-4ac02dc1.js → p-485dafcf.js} +1 -1
- package/dist/post-components/{p-c6ac2e45.js → p-4a647a78.js} +1 -1
- package/dist/post-components/p-4abfa65b.js +1 -0
- package/dist/post-components/{p-3b3b57d0.entry.js → p-517f2b1f.entry.js} +1 -1
- package/dist/post-components/p-55224ee7.entry.js +1 -0
- package/dist/post-components/{p-4cb59994.js → p-558a9849.js} +1 -1
- package/dist/post-components/{p-4221fd16.js → p-59b31557.js} +1 -1
- package/dist/post-components/p-5d1db85c.entry.js +1 -0
- package/dist/post-components/{p-7a887455.js → p-61e79941.js} +1 -1
- package/dist/post-components/p-679978de.entry.js +1 -0
- package/dist/post-components/p-6a842b96.entry.js +1 -0
- package/dist/post-components/{p-4cca12fe.js → p-6cea23cd.js} +3 -3
- package/dist/post-components/p-71f03424.js +1 -0
- package/dist/post-components/p-8c2568c1.entry.js +1 -0
- package/dist/post-components/p-8fd3a3cb.entry.js +1 -0
- package/dist/post-components/{p-71eb2dc7.js → p-939f2ba7.js} +1 -1
- package/dist/post-components/p-a4c39296.entry.js +1 -0
- package/dist/post-components/p-af5d3b89.entry.js +1 -0
- package/dist/post-components/p-b4423249.entry.js +1 -0
- package/dist/post-components/{p-7175208c.entry.js → p-c31a7d65.entry.js} +1 -1
- package/dist/post-components/p-c544bb82.js +1 -0
- package/dist/post-components/{p-cd06fab9.js → p-ccb6dfa1.js} +1 -1
- package/dist/post-components/{p-d7c37aca.js → p-d0b8820a.js} +1 -1
- package/dist/post-components/{p-476a6342.js → p-d36adfb5.js} +1 -1
- package/dist/post-components/p-da6a8268.entry.js +1 -0
- package/dist/post-components/p-ece14d88.js +1 -0
- package/dist/post-components/p-f0f8427e.js +1 -0
- package/dist/post-components/p-f2e1b4d8.js +1 -0
- package/dist/post-components/p-f627744e.js +1 -0
- package/dist/post-components/p-f7b6b96a.entry.js +1 -0
- package/dist/post-components/p-f812e93d.entry.js +1 -0
- package/dist/post-components/{p-9d94bf34.js → p-f8d41c32.js} +1 -1
- package/dist/post-components/p-fe516cdf.entry.js +1 -0
- package/dist/post-components/p-fe7467fb.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/animations/slide.d.ts +2 -0
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +5 -1
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +19 -0
- package/dist/types/components/post-icon/post-icon.d.ts +2 -5
- package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +13 -0
- package/dist/types/components.d.ts +42 -0
- package/dist/types/index.d.ts +2 -0
- package/loaders/index.d.ts +4 -0
- package/loaders/index.js +2 -0
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item.js +26 -9
- package/loaders/post-accordion.js +1 -1
- package/loaders/post-back-to-top.d.ts +11 -0
- package/loaders/post-back-to-top.js +126 -0
- package/loaders/post-banner.js +3 -3
- package/loaders/post-breadcrumb-item.js +1 -1
- package/loaders/post-card-control.js +3 -3
- package/loaders/post-closebutton.js +1 -1
- package/loaders/post-collapsible2.js +1 -1
- package/loaders/post-header.js +1 -1
- package/loaders/post-icon2.js +22 -29
- package/loaders/post-language-option.js +1 -1
- package/loaders/post-list-item.js +1 -1
- package/loaders/post-list.js +1 -1
- package/loaders/post-logo.js +1 -1
- package/loaders/post-mainnavigation.js +1 -1
- package/loaders/post-megadropdown-trigger.js +1 -1
- package/loaders/post-megadropdown.js +1 -1
- package/loaders/post-menu-item.js +1 -1
- package/loaders/post-menu-trigger.js +1 -1
- package/loaders/post-menu.js +1 -1
- package/loaders/post-popover.js +1 -1
- package/loaders/post-popovercontainer2.js +2 -2
- package/loaders/post-rating.js +1 -1
- package/loaders/post-tab-header.js +1 -1
- package/loaders/post-tab-panel.js +1 -1
- package/loaders/post-tabs.js +1 -1
- package/loaders/post-tag.js +1 -1
- package/loaders/post-togglebutton.d.ts +11 -0
- package/loaders/post-togglebutton.js +46 -0
- package/loaders/post-tooltip.js +27 -15
- package/package.json +4 -3
- package/dist/cjs/post-accordion-item-0d8b65b1.js +0 -52
- package/dist/cjs/post-card-control-7d3c5545.js +0 -272
- package/dist/esm/package-c65b0409.js +0 -3
- package/dist/esm/post-accordion-item-19fb4776.js +0 -50
- package/dist/esm/post-card-control-017fb9b2.js +0 -270
- package/dist/post-components/p-34e5b9da.entry.js +0 -1
- package/dist/post-components/p-3899ed87.js +0 -1
- package/dist/post-components/p-470eb29c.js +0 -1
- package/dist/post-components/p-499f3c12.entry.js +0 -1
- package/dist/post-components/p-56bd7eb7.entry.js +0 -1
- package/dist/post-components/p-61b27b51.entry.js +0 -1
- package/dist/post-components/p-6e37b9bf.entry.js +0 -1
- package/dist/post-components/p-7391daa3.entry.js +0 -1
- package/dist/post-components/p-73a5b344.js +0 -1
- package/dist/post-components/p-7a995b7e.entry.js +0 -1
- package/dist/post-components/p-888ab913.entry.js +0 -1
- package/dist/post-components/p-8927a8e4.entry.js +0 -1
- package/dist/post-components/p-8fb11b22.entry.js +0 -1
- package/dist/post-components/p-916ec6d5.entry.js +0 -1
- package/dist/post-components/p-98d8ba01.js +0 -1
- package/dist/post-components/p-a1a1b679.entry.js +0 -1
- package/dist/post-components/p-a87d8337.entry.js +0 -1
- package/dist/post-components/p-ab0556af.entry.js +0 -1
- package/dist/post-components/p-b8d230eb.js +0 -1
- package/dist/post-components/p-c94a2ae1.entry.js +0 -1
- package/dist/post-components/p-d2938e9a.entry.js +0 -1
- package/dist/post-components/p-d6ac46af.js +0 -1
- package/dist/post-components/p-dddc70f6.entry.js +0 -1
- package/dist/post-components/p-ed12b51d.js +0 -1
package/dist/esm/{post-megadropdown-trigger-3112a42b.js → post-megadropdown-trigger-210b4ab3.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
import { c as checkEmptyOrOneOf, d as checkEmptyOrType, b as checkEmptyOrUrl } from './index-f8a00dc0.js';
|
|
4
4
|
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
5
5
|
import { c as checkType } from './check-type-8828dbe4.js';
|
|
@@ -9,12 +9,12 @@ const PostClosebutton = class {
|
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '4e03f31cdefe37e70ae44d8c7baaa71abf660db4', "data-version": version }, h("button", { key: 'bcb645f50e587470fbdc6bee7b369c58aef403fd', class: "btn btn-icon-close" }, h("post-icon", { key: '5860a0b4c8a2cfd740cca788b22377e2e4bc9614', "aria-hidden": "true", name: "2043" }), h("span", { key: '4381a0a47c99703b0a6ca9f864b69437afff167f', class: "visually-hidden" }, h("slot", { key: '55a72682749ddac4716463c21f8bc31a89f285b9' })))));
|
|
13
13
|
}
|
|
14
14
|
get host() { return getElement(this); }
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}
|
|
17
|
+
const postIconCss = ":host{container-name:post-icon;container-type:inline-size;display:inline-block;width:1em;height:1em;vertical-align:-0.15em}svg{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color}@container post-icon (max-width: 23.98px){svg{--pis-16: block}}@container post-icon (min-width: 24px) and (max-width: 31.98px){svg{--pis-24: block}}@container post-icon (min-width: 32px) and (max-width: 39.98px){svg{--pis-32: block}}@container post-icon (min-width: 40px) and (max-width: 47.98px){svg{--pis-40: block}}@container post-icon (min-width: 48px) and (max-width: 63.98px){svg{--pis-48: block}}@container post-icon (min-width: 64px){svg{--pis-64: block}}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
|
|
18
18
|
const PostIconStyle0 = postIconCss;
|
|
19
19
|
|
|
20
20
|
const CDN_URL = 'https://unpkg.com/@swisspost/design-system-icons/public/post-icons';
|
|
@@ -30,8 +30,6 @@ const ANIMATION_KEYS = [...ANIMATION_NAMES];
|
|
|
30
30
|
const PostIcon = class {
|
|
31
31
|
constructor(hostRef) {
|
|
32
32
|
registerInstance(this, hostRef);
|
|
33
|
-
this.svgStyles = undefined;
|
|
34
|
-
this.svgOutput = undefined;
|
|
35
33
|
this.animation = null;
|
|
36
34
|
this.base = null;
|
|
37
35
|
this.flipH = false;
|
|
@@ -63,6 +61,25 @@ const PostIcon = class {
|
|
|
63
61
|
validateScale(newValue = this.scale) {
|
|
64
62
|
checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
|
|
65
63
|
}
|
|
64
|
+
getPath() {
|
|
65
|
+
var _a, _b, _c, _d, _e, _f;
|
|
66
|
+
// Construct icon path from different possible sources
|
|
67
|
+
const metaBase = (_b = (_a = document.head
|
|
68
|
+
.querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
|
|
69
|
+
const baseHref = (_c = document.getElementsByTagName('base')[0]) === null || _c === void 0 ? void 0 : _c.href;
|
|
70
|
+
const fileBase = `${(_f = (_e = (_d = this.base) !== null && _d !== void 0 ? _d : metaBase) !== null && _e !== void 0 ? _e : baseHref) !== null && _f !== void 0 ? _f : CDN_URL}/`.replace(/\/\/$/, '/');
|
|
71
|
+
const fileName = `${this.name}.svg#i-${this.name}`;
|
|
72
|
+
const filePath = `${fileBase}${fileName}`;
|
|
73
|
+
return new URL(filePath, window.location.origin).toString();
|
|
74
|
+
}
|
|
75
|
+
getStyles() {
|
|
76
|
+
return Object.entries({
|
|
77
|
+
transform: (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
|
|
78
|
+
(this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
|
|
79
|
+
})
|
|
80
|
+
.filter(([_key, value]) => value !== null)
|
|
81
|
+
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
82
|
+
}
|
|
66
83
|
componentDidLoad() {
|
|
67
84
|
this.validateBase();
|
|
68
85
|
this.validateName();
|
|
@@ -72,30 +89,8 @@ const PostIcon = class {
|
|
|
72
89
|
this.validateRotate();
|
|
73
90
|
this.validateAnimation();
|
|
74
91
|
}
|
|
75
|
-
componentWillRender() {
|
|
76
|
-
this.setPath();
|
|
77
|
-
}
|
|
78
|
-
setPath() {
|
|
79
|
-
var _a, _b, _c, _d;
|
|
80
|
-
// Construct icon path from different possible sources
|
|
81
|
-
const metaBase = (_b = (_a = document.head
|
|
82
|
-
.querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
|
|
83
|
-
const fileBase = `${(_d = (_c = this.base) !== null && _c !== void 0 ? _c : metaBase) !== null && _d !== void 0 ? _d : CDN_URL}/`.replace(/\/\/$/, '/');
|
|
84
|
-
const fileName = `${this.name}.svg`;
|
|
85
|
-
const filePath = `${fileBase}${fileName}`;
|
|
86
|
-
this.path = new URL(filePath, window.location.origin).toString();
|
|
87
|
-
}
|
|
88
92
|
render() {
|
|
89
|
-
|
|
90
|
-
const svgStyles = Object.entries({
|
|
91
|
-
'-webkit-mask-image': `url('${this.path}')`,
|
|
92
|
-
'mask-image': `url('${this.path}')`,
|
|
93
|
-
'transform': (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
|
|
94
|
-
(this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
|
|
95
|
-
})
|
|
96
|
-
.filter(([_key, value]) => value !== null)
|
|
97
|
-
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
98
|
-
return (h(Host, { key: '86c61ac92270e1b46ef63e2bb0ff4683a16ca794', "data-version": version }, h("span", { key: 'ad856363b96d303912c9085d9d45cb911cbedfc6', style: svgStyles })));
|
|
93
|
+
return (h(Host, { key: '1a04eea6f1039329937a9f58d64778c272088018', "data-version": version }, h("svg", { key: '843d95a54a58f839bfa1031d2aa834c70fbc6f9e', style: this.getStyles() }, h("use", { key: 'e93c6a6fd50ebd4757c92c1ee02f9c8cd65a65b7', href: this.getPath() }))));
|
|
99
94
|
}
|
|
100
95
|
get host() { return getElement(this); }
|
|
101
96
|
static get watchers() { return {
|
|
@@ -133,7 +128,7 @@ const PostLogo = class {
|
|
|
133
128
|
render() {
|
|
134
129
|
const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
|
|
135
130
|
const LogoTag = logoLink ? 'a' : 'span';
|
|
136
|
-
return (h(Host, { key: '
|
|
131
|
+
return (h(Host, { key: 'ec5f82baaa08c75a03808a6cda7a9971152a54d6', "data-version": version, slot: "post-logo" }, h(LogoTag, Object.assign({ key: 'ce6aeff4dfab0612376e4c6aa14c74c438213b5d', class: "logo" }, (logoLink ? { href: logoLink } : {})), h("span", { key: 'fa6f8ecaf3c3a4a8e60a8c8e2171dbd25d585ede', class: "description" }, h("slot", { key: '2dcff76129e8e054e58244b2aa77a5b51e059b6b', onSlotchange: () => this.checkDescription() })), h("svg", { key: '468282e3c21fb6cfc97fccee64298abe43542da5', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: 'd3f4e0a6a7372991ccef5be9fad206cab2f553e7', id: "Logo" }, h("rect", { key: '3f17ddd240131ce23faf1e73a76ca4f702b029d7', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '1b714023d9e587a57571fd86a9515701ec77f993', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: 'b4064875cbad1263ac2278613fdf5db8d1697c2a', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
|
|
137
132
|
}
|
|
138
133
|
get host() { return getElement(this); }
|
|
139
134
|
static get watchers() { return {
|
|
@@ -2316,9 +2311,9 @@ const PostPopovercontainer = class {
|
|
|
2316
2311
|
}
|
|
2317
2312
|
}
|
|
2318
2313
|
render() {
|
|
2319
|
-
return (h(Host, { key: '
|
|
2314
|
+
return (h(Host, { key: 'b8be8594adfd503c47f85872508d5bbd3473cc5a', "data-version": version }, this.arrow && (h("span", { key: 'f046737966eb3b801af1e888555178543ea015eb', class: "arrow", ref: el => {
|
|
2320
2315
|
this.arrowRef = el;
|
|
2321
|
-
} })), h("slot", { key: '
|
|
2316
|
+
} })), h("slot", { key: '5d478472a83442d47e4f16ff8121782c8e6a524b' })));
|
|
2322
2317
|
}
|
|
2323
2318
|
get host() { return getElement(this); }
|
|
2324
2319
|
};
|
|
@@ -2349,7 +2344,7 @@ const PostList = class {
|
|
|
2349
2344
|
}
|
|
2350
2345
|
}
|
|
2351
2346
|
render() {
|
|
2352
|
-
return (h(Host, { key: '
|
|
2347
|
+
return (h(Host, { key: '017f05c43fa95bb93c856bbeddd5d26cbc2f4cfa', "data-version": version }, h("div", { key: '71fd7d32c761cecf7b4d5d5f39cedb3bf668a0cb', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, h("slot", { key: 'fe0e03d5d25f6a975e04be00549facae49a0970b' })), h("div", { key: 'bb717e4338396c86fa28dbf8236f5f185823f9be', role: "list", "aria-labelledby": this.titleId }, h("slot", { key: '7fd25cab433f5fbbafaa7ca01f42774823cbf579', name: "post-list-item" }))));
|
|
2353
2348
|
}
|
|
2354
2349
|
get host() { return getElement(this); }
|
|
2355
2350
|
};
|
|
@@ -2366,7 +2361,7 @@ const PostListItem = class {
|
|
|
2366
2361
|
this.host.setAttribute('slot', 'post-list-item');
|
|
2367
2362
|
}
|
|
2368
2363
|
render() {
|
|
2369
|
-
return (h(Host, { key: '
|
|
2364
|
+
return (h(Host, { key: 'bbf12424f2997b7d2e7cd9e272def0bf2838f94f', role: "listitem" }, h("slot", { key: '2ce4e71879485f16ad90dfddbd1b79512107bdb0' })));
|
|
2370
2365
|
}
|
|
2371
2366
|
get host() { return getElement(this); }
|
|
2372
2367
|
};
|
|
@@ -2579,7 +2574,7 @@ const PostHeader = class {
|
|
|
2579
2574
|
if (this.mobileMenuExtended) {
|
|
2580
2575
|
mainNavClasses.push('extended');
|
|
2581
2576
|
}
|
|
2582
|
-
return (h(Host, { key: '
|
|
2577
|
+
return (h(Host, { key: 'a09985740ff01e4f38e7bbe5e0b9012d77e7cba2', version: version }, h("div", { key: 'c612b90e757d916036bee002d7bba8abfeb19073', class: "global-header" }, h("div", { key: 'd11c51f756d1c7a8c0b4f3b9625cfbe8cae88435', class: "global-sub" }, h("div", { key: '43fb63bfe0350ffca0e44fd611bb6bbe6c3eef0c', class: "logo" }, h("slot", { key: '8d90d7f20b0fd6a7cbc93e5dd95ad8200c027822', name: "post-logo" }))), h("div", { key: 'b1bc83b4fcb3a0af6ffd99976af4acf454b3d29d', class: "global-sub" }, this.device === 'desktop' && h("slot", { key: 'bbe38f3e0d070bfd84e1656e7dd631816df0101c', name: "meta-navigation" }), h("slot", { key: 'b1483eea11ecdc9cddf122077cf0746d88f69239', name: "global-controls" }), this.device === 'desktop' && h("slot", { key: '785f557f30bffc5cd282a0505e9ffc7e3e6e1029', name: "post-language-switch" }), h("div", { key: 'f088ddb3df417929525b22a09fa3be113042e48f', onClick: () => this.handleMobileMenuToggle(), class: "mobile-toggle" }, h("slot", { key: 'de65884a443290e057ed911289818d5a323f5a9c', name: "post-togglebutton" })))), h("div", { key: '56ebdec46003a6ead4f3710dc9c0f60e9a86ed8d', class: "title-header d-flex space-between align-center" }, h("slot", { key: '8e61e4711ea8018e51fd11c5b5faa30a1ad9445c', name: "title" }), h("div", { key: '4d762d1f4d3f45470d52af167c7f4a71651e7970', class: "global-sub" }, h("slot", { key: 'c8c5b73b1fa0e665a7133ae8db0212ef8948ba29', name: "local-controls" }), h("slot", { key: '212640155af85dfab34182ab236bfe72456e77b1' }))), h("div", { key: 'c4004d443fd546fac8a2651482725fae99c2db6c', class: mainNavClasses.join(' ') }, h("slot", { key: '783787f85d25d9e42d96213ae77f6c689f872b70', name: "post-mainnavigation" }), (this.device === 'mobile' || this.device === 'tablet') && (h("slot", { key: '04cfd7d09d03ab85ac9c12f9c3d6cb31fbb65fc2', name: "meta-navigation" })), (this.device === 'mobile' || this.device === 'tablet') && (h("slot", { key: '117e76f18fdc93493115428e1cd0d6a119c7a652', name: "post-language-switch" })))));
|
|
2583
2578
|
}
|
|
2584
2579
|
get host() { return getElement(this); }
|
|
2585
2580
|
};
|
|
@@ -2611,7 +2606,7 @@ const PostMainnavigation = class {
|
|
|
2611
2606
|
this.postToggle.emit();
|
|
2612
2607
|
}
|
|
2613
2608
|
render() {
|
|
2614
|
-
return (h(Host, { key: '
|
|
2609
|
+
return (h(Host, { key: '7179d087e93ab9e14dc21e16b52beaf965c53cd3', slot: "post-mainnavigation" }, h("div", { key: '2aede886c29972bf1dfebbe4513c4acf2e47c6ea', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: '4697ec520be78fccee832a358b349f68081b2f54', name: "back-button" })), h("nav", { key: '5bae57025152af07b9d68a19a07b61d0149d31dc', class: "main-navigation" }, h("slot", { key: 'e2a73a4b814a39a7cb1f7733f87c3c588f484006' }))));
|
|
2615
2610
|
}
|
|
2616
2611
|
};
|
|
2617
2612
|
PostMainnavigation.style = PostMainnavigationStyle0;
|
|
@@ -2651,7 +2646,7 @@ const PostMegadropdown = class {
|
|
|
2651
2646
|
this.hide();
|
|
2652
2647
|
}
|
|
2653
2648
|
render() {
|
|
2654
|
-
return (h(Host, { key: '
|
|
2649
|
+
return (h(Host, { key: '9b8e17f4120259f55ed3dbce4780559cb8876540', slot: "post-mainnavigation" }, h("post-popovercontainer", { key: 'ac48d1fffbcdff5aa20d9f2f6fed9beb4dd3be23', placement: "bottom", "edge-gap": "0", ref: el => (this.popoverRef = el) }, h("div", { key: 'af02d9fd35973b6d889b639f1d856dd3d9921ae1', class: "megadropdown" }, h("div", { key: '445aa9b1a04e63c0d2b17466c610a30662f3db0e', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: '8d8f4cad3d5860fdfc1c615e7122ab5dd2ca5ed3', name: "back-button" })), h("slot", { key: 'c9ba8c0941f86fd29a44153e186cd679bcd678f5' })))));
|
|
2655
2650
|
}
|
|
2656
2651
|
};
|
|
2657
2652
|
PostMegadropdown.style = PostMegadropdownStyle0;
|
|
@@ -2670,7 +2665,7 @@ const PostMegadropdownTrigger = class {
|
|
|
2670
2665
|
this.postToggle.emit();
|
|
2671
2666
|
}
|
|
2672
2667
|
render() {
|
|
2673
|
-
return (h(Host, { key: '
|
|
2668
|
+
return (h(Host, { key: 'd139b405fe28c7334c01eec4846a6f8b5bf1e261', slot: "post-megadropdown-trigger" }, h("button", { key: 'd3aee53488359a79764974d440d7a058d5d96873', "aria-expanded": this.toggled, onClick: () => this.handleClick() }, h("slot", { key: '7012055defbb7c8058481db5c4129919847010c6' }))));
|
|
2674
2669
|
}
|
|
2675
2670
|
};
|
|
2676
2671
|
PostMegadropdownTrigger.style = PostMegadropdownTriggerStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
|
|
4
4
|
const focusableSelector = `:where(${[
|
|
5
5
|
'button',
|
|
@@ -165,7 +165,7 @@ const PostMenu = class {
|
|
|
165
165
|
return menuItems;
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h(Host, { key: '
|
|
168
|
+
return (h(Host, { key: 'c3fa319c92cc36b562590df18b6585b1bc18f133', "data-version": version }, h("post-popovercontainer", { key: '7d297b7598fecb01f46c3f1b999b6017ee878d06', placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '3ae32950348ae8910094cddd34afef060ca517f1', class: "popover-container" }, h("slot", { key: '7faa98f2f4c50ef1ac424387a6c3890dcf09adce' })))));
|
|
169
169
|
}
|
|
170
170
|
get host() { return getElement(this); }
|
|
171
171
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
|
|
4
4
|
const postMenuItemCss = ":host{display:block}";
|
|
5
5
|
const PostMenuItemStyle0 = postMenuItemCss;
|
|
@@ -9,7 +9,7 @@ const PostMenuItem = class {
|
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '8e20fdee0faff826319440bed6ec7be0c56e6d06', role: "menuitem", "data-version": version }, h("slot", { key: '69e2be9dec334ade8e84ccb268c7d4955dd2fefb' })));
|
|
13
13
|
}
|
|
14
14
|
get host() { return getElement(this); }
|
|
15
15
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_menu_item } from './post-menu-item-
|
|
1
|
+
export { P as post_menu_item } from './post-menu-item-86d4c7ab.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
import { c as checkType } from './check-type-8828dbe4.js';
|
|
4
4
|
import { g as getRoot } from './get-root-7af2e0d1.js';
|
|
5
5
|
|
|
@@ -61,7 +61,7 @@ const PostMenuTrigger = class {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'd6b5619d0b4035887eaffdcc3c153eb0a5fe4ceb', "data-version": version, "tab-index": "-1" }, h("slot", { key: '5d87c80dae6188470b10207993822d92adc714b1' })));
|
|
65
65
|
}
|
|
66
66
|
get host() { return getElement(this); }
|
|
67
67
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as post_menu_trigger } from './post-menu-trigger-
|
|
1
|
+
export { P as post_menu_trigger } from './post-menu-trigger-80c2bdf4.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
4
4
|
import './check-type-8828dbe4.js';
|
|
5
5
|
import './get-root-7af2e0d1.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_menu } from './post-menu-
|
|
1
|
+
export { P as post_menu } from './post-menu-e853e28b.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
|
|
4
4
|
|
|
5
5
|
const postPopoverCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";
|
|
@@ -93,7 +93,7 @@ const PostPopover = class {
|
|
|
93
93
|
this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: 'e73d0edf5c6992db8c8c6e162a9c50e95a335d79', "data-version": version }, h("post-popovercontainer", { key: '206cbec19db4af9772899c1ec4cc870c362f590e', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '8d744d6784d892313b137ee03dd9967ea4b77184', class: "popover-container" }, h("div", { key: 'aa78aee830e853945f0049d0708710f8fad90d36', class: "popover-content" }, h("slot", { key: '50a5aeae0c0db36e5c0aa2495f3d95474bed13fc' })), h("button", { key: '4389f79f9e1b2a0977a0ecb177b385f049cc8484', class: "btn-close", onClick: () => this.hide() }, h("span", { key: 'e302e17cef666fc280a547ebc3caeedacdc544b0', class: "visually-hidden" }, this.closeButtonCaption))))));
|
|
97
97
|
}
|
|
98
98
|
get host() { return getElement(this); }
|
|
99
99
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as post_popover } from './post-popover-
|
|
1
|
+
export { P as post_popover } from './post-popover-7195d05a.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
4
4
|
import './attribute-observer-37fa950a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
|
|
4
4
|
const postRatingCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */: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%)}";
|
|
5
5
|
const PostRatingStyle0 = postRatingCss;
|
|
@@ -71,7 +71,7 @@ const PostRating = class {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '98459f7f5e2406577857571fb6ececd8198a4cdb', "data-version": version }, h("div", { key: '2880d40e1623e49c8cae64b70e0057713f5f5cfd', 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: {
|
|
75
75
|
'star': true,
|
|
76
76
|
'before-hover': i < this.hoveredIndex,
|
|
77
77
|
'active': i < Math.round(this.currentRating),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_rating } from './post-rating-
|
|
1
|
+
export { P as post_rating } from './post-rating-8baf86fe.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
4
4
|
|
|
5
5
|
const postTabHeaderCss = ".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)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */: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}";
|
|
@@ -18,7 +18,7 @@ const PostTabHeader = class {
|
|
|
18
18
|
this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'af78e7b118f13ce64c76947af5dc3a6ed5ed09a0', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '99a8257992b974f9c3503eb1f67652c50bbf0671' })));
|
|
22
22
|
}
|
|
23
23
|
get host() { return getElement(this); }
|
|
24
24
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as post_tab_header } from './post-tab-header-
|
|
1
|
+
export { P as post_tab_header } from './post-tab-header-a1d1d9d0.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
4
4
|
import './check-non-empty-58bd6b17.js';
|
|
5
5
|
import './constants-8d548297.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
|
|
4
4
|
const postTabPanelCss = ":host{display:none}";
|
|
5
5
|
const PostTabPanelStyle0 = postTabPanelCss;
|
|
@@ -15,7 +15,7 @@ const PostTabPanel = class {
|
|
|
15
15
|
this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'b4d8a6dac8662fc442ba4b75c7f89bb630b1a0ad', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '3253ed0b5efe32b0c49fc97e46de31ee3dbbd813' })));
|
|
19
19
|
}
|
|
20
20
|
get host() { return getElement(this); }
|
|
21
21
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_tab_panel } from './post-tab-panel-
|
|
1
|
+
export { P as post_tab_panel } from './post-tab-panel-afce8d40.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
import { f as fadeOut, a as fadeIn } from './fade-7fd71785.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -162,7 +162,7 @@ const PostTabs = class {
|
|
|
162
162
|
nextTab.focus();
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '8e6ef1f64dd41d18cbb87d23ae27ed198dba420f', "data-version": version }, h("div", { key: '3e08dbfa502935737040e54f71c5cdba55838ac5', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '57c2c50ec3ca3ee38a69f3c46f0bd6cfb3649178', class: "tabs", role: "tablist" }, h("slot", { key: 'c7ce48bec67f02abf47fa2d152a786f2f7f912fe', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'daf2d7e9d51ad3831a68ed8cd6498d9042bc017f', class: "tab-content", part: "content" }, h("slot", { key: 'ee2c3619a2c262a416b34b65843f10e4baa62e38', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
166
166
|
}
|
|
167
167
|
get host() { return getElement(this); }
|
|
168
168
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
3
|
|
|
4
4
|
const postTagCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.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}";
|
|
5
5
|
const PostTagStyle0 = postTagCss;
|
|
@@ -32,7 +32,7 @@ const PostTag = class {
|
|
|
32
32
|
this.setClasses();
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: 'e2d95e10853f66d7b05768b80a0350e0bc05051d', "data-version": version }, h("div", { key: '72bac44cca9c4197e9042e6a4896f235d057a5c9', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: '1b54b8a89320306aa09fe1e50dffd453b44fc587', class: "tag-text" }, h("slot", { key: '52f4f5b2d62f8ae245c7b472cdbc9f5202b554c1' })))));
|
|
36
36
|
}
|
|
37
37
|
get host() { return getElement(this); }
|
|
38
38
|
static get watchers() { return {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_tag } from './post-tag-
|
|
1
|
+
export { P as post_tag } from './post-tag-d67b6a19.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-e1b64755.js';
|
|
2
|
+
import { v as version } from './package-9cafe148.js';
|
|
3
|
+
|
|
4
|
+
const postTogglebuttonCss = ":host{cursor:pointer}";
|
|
5
|
+
const PostTogglebuttonStyle0 = postTogglebuttonCss;
|
|
6
|
+
|
|
7
|
+
const PostTogglebutton = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.handleClick = () => {
|
|
11
|
+
this.toggled = !this.toggled;
|
|
12
|
+
};
|
|
13
|
+
this.handleKeydown = (event) => {
|
|
14
|
+
if (event.key === 'Enter') {
|
|
15
|
+
this.toggled = !this.toggled;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
this.toggled = false;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (h(Host, { key: '82fc4126d97650255d1d5fd041208b3d11cf0ded', slot: "post-togglebutton", tabindex: "0", "data-version": version, role: "button", "aria-pressed": this.toggled.toString(), onClick: this.handleClick, onKeyDown: this.handleKeydown }, h("span", { key: '0364e8b63cc2c7955282f62533683c3627aa6626', hidden: this.toggled }, h("slot", { key: '11ccb62855497ddf395276e7f7e88a8409fa36e4', name: "untoggled" })), h("span", { key: '463f4571ceecc51063a4d4495d22063b6b75d0df', hidden: !this.toggled }, h("slot", { key: '7d41e35a64deefd22087524bc57530603aae18fa', name: "toggled" }))));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
PostTogglebutton.style = PostTogglebuttonStyle0;
|
|
25
|
+
|
|
26
|
+
export { PostTogglebutton as P };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
|
-
import { v as version$1 } from './package-
|
|
2
|
+
import { v as version$1 } from './package-9cafe148.js';
|
|
3
3
|
import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
|
|
4
4
|
import { d as checkEmptyOrType } from './index-f8a00dc0.js';
|
|
5
5
|
|
|
6
|
-
function timeout(delay) {
|
|
7
|
-
return new Promise(resolve => setTimeout(resolve, delay));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
11
7
|
|
|
12
8
|
function getDefaultExportFromCjs (x) {
|
|
@@ -4790,6 +4786,8 @@ let tooltipInstances = 0;
|
|
|
4790
4786
|
let hideTooltipTimeout = null;
|
|
4791
4787
|
const tooltipTargetAttribute = 'data-tooltip-target';
|
|
4792
4788
|
const tooltipTargetAttributeSelector = `[${tooltipTargetAttribute}]`;
|
|
4789
|
+
let globalCurrentTarget;
|
|
4790
|
+
let tooltipTimeout = null;
|
|
4793
4791
|
/**
|
|
4794
4792
|
* Global event listener to show tooltips. This is globalized so that triggers that are rendered
|
|
4795
4793
|
* async will still work without the need to set listeners on the element itself
|
|
@@ -4802,8 +4800,11 @@ const tooltipTargetAttributeSelector = `[${tooltipTargetAttribute}]`;
|
|
|
4802
4800
|
*/
|
|
4803
4801
|
const globalInterestHandler = (e) => {
|
|
4804
4802
|
const targetElement = e.target.closest(tooltipTargetAttributeSelector);
|
|
4805
|
-
|
|
4803
|
+
globalCurrentTarget = targetElement;
|
|
4804
|
+
if (!targetElement || !('getAttribute' in targetElement)) {
|
|
4805
|
+
clearTimeout(tooltipTimeout);
|
|
4806
4806
|
return;
|
|
4807
|
+
}
|
|
4807
4808
|
const tooltipTarget = targetElement.getAttribute(tooltipTargetAttribute);
|
|
4808
4809
|
if (!tooltipTarget || tooltipTarget === '')
|
|
4809
4810
|
return;
|
|
@@ -4928,18 +4929,29 @@ const PostTooltip = class {
|
|
|
4928
4929
|
* @param triggeredByFocus A boolean indicating if the tooltip was triggered by a focus event.
|
|
4929
4930
|
*/
|
|
4930
4931
|
async show(target, triggeredByFocus = false) {
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4932
|
+
const showTooltip = () => {
|
|
4933
|
+
// If focus or pointer event is not on the button anymore, don't show the tooltip
|
|
4934
|
+
if (globalCurrentTarget !== target)
|
|
4935
|
+
return;
|
|
4936
|
+
// Determine if the tooltip was opened by a focus event
|
|
4937
|
+
this.wasOpenedByFocus = triggeredByFocus;
|
|
4938
|
+
// Disable pointer events if triggered by focus, otherwise enable them
|
|
4939
|
+
if (this.wasOpenedByFocus) {
|
|
4940
|
+
this.host.style.pointerEvents = 'none';
|
|
4941
|
+
}
|
|
4942
|
+
else {
|
|
4943
|
+
this.host.style.pointerEvents = 'auto';
|
|
4944
|
+
}
|
|
4945
|
+
this.popoverRef.show(target);
|
|
4946
|
+
};
|
|
4947
|
+
if (this.delayed) {
|
|
4948
|
+
tooltipTimeout = setTimeout(() => {
|
|
4949
|
+
showTooltip();
|
|
4950
|
+
}, OPEN_DELAY);
|
|
4938
4951
|
}
|
|
4939
4952
|
else {
|
|
4940
|
-
|
|
4953
|
+
showTooltip();
|
|
4941
4954
|
}
|
|
4942
|
-
this.popoverRef.show(target);
|
|
4943
4955
|
}
|
|
4944
4956
|
/**
|
|
4945
4957
|
* Programmatically hide this tooltip
|
|
@@ -4974,7 +4986,7 @@ const PostTooltip = class {
|
|
|
4974
4986
|
}
|
|
4975
4987
|
render() {
|
|
4976
4988
|
const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
|
|
4977
|
-
return (h(Host, { key: '
|
|
4989
|
+
return (h(Host, { key: 'accf9ab04bcac0d6ed46818dc00e9110f936e593', "data-version": version$1, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: 'e31610624b6833e78de7cb6ec52fb3fc5ca02d49', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: '206925925cc51d3b0eb4f2c0b1e8ca65ab3fd8c4' }))));
|
|
4978
4990
|
}
|
|
4979
4991
|
get host() { return getElement(this); }
|
|
4980
4992
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_tooltip } from './post-tooltip-
|
|
1
|
+
export { P as post_tooltip } from './post-tooltip-7101ed24.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-9cafe148.js';
|
|
4
4
|
import './attribute-observer-37fa950a.js';
|
|
5
5
|
import './index-f8a00dc0.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PostAccordion}from"./p-
|
|
1
|
+
export{P as PostAccordion}from"./p-f627744e.js";export{P as PostAccordionItem}from"./p-ece14d88.js";export{P as PostBackToTop}from"./p-4abfa65b.js";export{P as PostBanner}from"./p-00fa0152.js";export{P as PostBreadcrumbItem}from"./p-d36adfb5.js";export{P as PostAvatar}from"./p-61e79941.js";export{P as PostCardControl}from"./p-f0f8427e.js";export{P as PostClosebutton,f as PostHeader,a as PostIcon,d as PostList,e as PostListItem,b as PostLogo,g as PostMainnavigation,h as PostMegadropdown,i as PostMegadropdownTrigger,c as PostPopovercontainer}from"./p-71f03424.js";export{P as PostCollapsible,a as PostCollapsibleTrigger}from"./p-558a9849.js";export{P as PostLanguageOption}from"./p-f8d41c32.js";export{P as PostMenu}from"./p-4a647a78.js";export{P as PostMenuTrigger}from"./p-59b31557.js";export{P as PostMenuItem}from"./p-c544bb82.js";export{P as PostPopover}from"./p-282115c4.js";export{P as PostRating}from"./p-d0b8820a.js";export{P as PostTabs}from"./p-ccb6dfa1.js";export{P as PostTabHeader}from"./p-939f2ba7.js";export{P as PostTabPanel}from"./p-1b627f80.js";export{P as PostTooltip}from"./p-6cea23cd.js";export{P as PostTag}from"./p-485dafcf.js";export{P as PostTogglebutton}from"./p-24673919.js";import"./p-3eab790d.js";import"./p-f2e1b4d8.js";import"./p-247a1668.js";import"./p-611b3c41.js";import"./p-0338f9da.js";import"./p-440193f4.js";import"./p-4a3f67ab.js";import"./p-b095519d.js";import"./p-2737eaf5.js";import"./p-fc91cbc2.js";import"./p-6adeaa6c.js";
|