@swisspost/design-system-components 9.0.0-next.10 → 9.0.0-next.12
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.cjs.js +19 -19
- package/dist/cjs/{package-aaec3cba.js → package-0bd6fb0d.js} +1 -1
- package/dist/cjs/{post-accordion-85bf5e0a.js → post-accordion-7aadd881.js} +1 -1
- package/dist/cjs/{post-accordion-item-957b3464.js → post-accordion-item-bd033c7f.js} +4 -4
- 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-58540591.js → post-avatar-5dbdf70d.js} +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +2 -2
- package/dist/cjs/{post-back-to-top-db5c7d01.js → post-back-to-top-71bc912c.js} +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +2 -2
- package/dist/cjs/post-banner-d4e0c73c.js +91 -0
- package/dist/cjs/post-banner.cjs.entry.js +2 -2
- package/dist/cjs/{post-breadcrumb-cacca682.js → post-breadcrumb-531c4f79.js} +1 -1
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +2 -2
- package/dist/cjs/post-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/post-card-control-332f6f1f.js +272 -0
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/post-closebutton_15.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-067d1f4c.js → post-collapsible-trigger-02924200.js} +2 -2
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
- package/dist/cjs/{post-footer-beeb36c8.js → post-footer-96d7bd47.js} +1 -1
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/{post-menu-item-e0e214b9.js → post-menu-item-3f73fb4d.js} +1 -1
- package/dist/cjs/{post-popover-7acbdf17.js → post-popover-64195ffd.js} +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-ac1b9b3c.js → post-rating-bd27ebfc.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-a3d28719.js → post-tab-header-1f057694.js} +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-4562e265.js → post-tab-panel-3eedcd19.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-80f65e1d.js → post-tabs-ea94b243.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-5741a78d.js → post-tag-1d75024b.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-togglebutton-245e33f1.js → post-togglebutton-876f7892.js} +89 -25
- package/dist/cjs/{post-tooltip-cefce5e1.js → post-tooltip-e4ef3c7e.js} +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +3 -3
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
- package/dist/collection/components/post-logo/post-logo.css +1 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +1 -1
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +3 -3
- package/dist/components/post-banner2.js +1 -1
- package/dist/components/post-card-control2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-logo2.js +2 -2
- package/dist/components/post-mainnavigation2.js +1 -1
- package/dist/components/post-popover2.js +1 -1
- package/dist/components/post-popovercontainer2.js +85 -21
- package/dist/docs.json +7 -7
- package/dist/esm/index.js +19 -19
- package/dist/esm/package-f8f7bb40.js +3 -0
- package/dist/esm/{post-accordion-3bf30525.js → post-accordion-ca48eb18.js} +1 -1
- package/dist/esm/{post-accordion-item-6683fbed.js → post-accordion-item-a461f2a7.js} +4 -4
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-avatar-3ddb4c79.js → post-avatar-0da1a2e8.js} +1 -1
- package/dist/esm/post-avatar.entry.js +2 -2
- package/dist/esm/{post-back-to-top-15ee2771.js → post-back-to-top-77471a90.js} +1 -1
- package/dist/esm/post-back-to-top.entry.js +2 -2
- package/dist/esm/post-banner-b0af5bd3.js +89 -0
- package/dist/esm/post-banner.entry.js +2 -2
- package/dist/esm/{post-breadcrumb-6252b112.js → post-breadcrumb-85ffd02f.js} +1 -1
- package/dist/esm/post-breadcrumb-item_2.entry.js +2 -2
- package/dist/esm/post-breadcrumb.entry.js +2 -2
- package/dist/esm/post-card-control-3225eb57.js +270 -0
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/post-closebutton_15.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-b727bf7e.js → post-collapsible-trigger-883db3bf.js} +2 -2
- package/dist/esm/post-collapsible_2.entry.js +2 -2
- package/dist/esm/{post-footer-7a03a9bb.js → post-footer-7b0eb067.js} +1 -1
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/{post-menu-item-3e168ecd.js → post-menu-item-37f637a3.js} +1 -1
- package/dist/esm/{post-popover-bff5cffd.js → post-popover-c24ecd38.js} +2 -2
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-rating-ce595a65.js → post-rating-e1c66e5c.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-c864586f.js → post-tab-header-6a9b0153.js} +1 -1
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-800425b8.js → post-tab-panel-73b56a16.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-e5aa8b08.js → post-tabs-02e523b8.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-fc3df50a.js → post-tag-43aba068.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-togglebutton-101dd3bd.js → post-togglebutton-c2231709.js} +89 -25
- package/dist/esm/{post-tooltip-e8484aea.js → post-tooltip-8271950c.js} +1 -1
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-02bb5231.js → p-025688e5.js} +1 -1
- package/dist/post-components/p-08b51b35.entry.js +1 -0
- package/dist/post-components/{p-27ad2d1f.js → p-24c92608.js} +1 -1
- package/dist/post-components/p-25a57971.js +1 -0
- package/dist/post-components/{p-3de1151e.js → p-2cb4a8f1.js} +1 -1
- package/dist/post-components/{p-86a1ad40.js → p-33b64e0c.js} +1 -1
- package/dist/post-components/{p-fc09ac69.js → p-34d70cd5.js} +1 -1
- package/dist/post-components/p-350f3900.entry.js +1 -0
- package/dist/post-components/{p-eed26f43.js → p-35bc4554.js} +1 -1
- package/dist/post-components/p-38b259a4.entry.js +1 -0
- package/dist/post-components/p-3c6cef1e.entry.js +1 -0
- package/dist/post-components/{p-a3694196.js → p-4a713cf8.js} +1 -1
- package/dist/post-components/p-4b5e2b24.js +1 -0
- package/dist/post-components/p-54e58fc2.entry.js +1 -0
- package/dist/post-components/p-637759d6.js +1 -0
- package/dist/post-components/{p-bec07e51.js → p-7589a19f.js} +1 -1
- package/dist/post-components/p-7cce7342.entry.js +1 -0
- package/dist/post-components/p-819e19de.js +1 -0
- package/dist/post-components/p-82d48128.js +1 -0
- package/dist/post-components/{p-f35d5d4a.entry.js → p-85171893.entry.js} +1 -1
- package/dist/post-components/p-882fdd0c.entry.js +1 -0
- package/dist/post-components/{p-d1d9c9a5.js → p-94399c69.js} +1 -1
- package/dist/post-components/p-9a02b162.entry.js +1 -0
- package/dist/post-components/{p-9e287cb5.js → p-b1f5bc26.js} +1 -1
- package/dist/post-components/p-b2f239a1.entry.js +1 -0
- package/dist/post-components/{p-24476696.js → p-b571e5c8.js} +1 -1
- package/dist/post-components/{p-1d3acbfd.js → p-ba530822.js} +1 -1
- package/dist/post-components/p-bae1c85f.entry.js +1 -0
- package/dist/post-components/p-bdabdec5.js +1 -0
- package/dist/post-components/p-c1225174.entry.js +1 -0
- package/dist/post-components/p-c372a141.entry.js +1 -0
- package/dist/post-components/{p-6e6e5447.entry.js → p-c510d968.entry.js} +1 -1
- package/dist/post-components/p-c87c5d59.entry.js +1 -0
- package/dist/post-components/p-d04c1b7f.entry.js +1 -0
- package/dist/post-components/p-da300843.entry.js +1 -0
- package/dist/post-components/{p-faf15ec1.js → p-e2f886ab.js} +1 -1
- package/dist/post-components/p-fec04a15.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item2.js +3 -3
- package/loaders/post-banner.js +1 -1
- package/loaders/post-card-control.js +1 -1
- package/loaders/post-collapsible2.js +1 -1
- package/loaders/post-logo.js +2 -2
- package/loaders/post-mainnavigation.js +1 -1
- package/loaders/post-popover.js +1 -1
- package/loaders/post-popovercontainer2.js +85 -21
- package/package.json +10 -10
- package/dist/cjs/post-banner-727866d5.js +0 -91
- package/dist/cjs/post-card-control-f5d72ddc.js +0 -272
- package/dist/esm/package-2ee42825.js +0 -3
- package/dist/esm/post-banner-fc407f6e.js +0 -89
- package/dist/esm/post-card-control-cb3dfc60.js +0 -270
- package/dist/post-components/p-11880d55.js +0 -1
- package/dist/post-components/p-1489d777.entry.js +0 -1
- package/dist/post-components/p-19707347.entry.js +0 -1
- package/dist/post-components/p-25f6efab.entry.js +0 -1
- package/dist/post-components/p-29626238.entry.js +0 -1
- package/dist/post-components/p-339488ba.entry.js +0 -1
- package/dist/post-components/p-413d1fff.js +0 -1
- package/dist/post-components/p-47095b84.entry.js +0 -1
- package/dist/post-components/p-5b0703a4.entry.js +0 -1
- package/dist/post-components/p-618b8929.js +0 -1
- package/dist/post-components/p-66c8d0a2.entry.js +0 -1
- package/dist/post-components/p-80b282a2.js +0 -1
- package/dist/post-components/p-97647d03.entry.js +0 -1
- package/dist/post-components/p-98f1d284.js +0 -1
- package/dist/post-components/p-adc79d26.entry.js +0 -1
- package/dist/post-components/p-bcf94111.entry.js +0 -1
- package/dist/post-components/p-bd87a2b5.entry.js +0 -1
- package/dist/post-components/p-bec09df9.entry.js +0 -1
- package/dist/post-components/p-db2ac0a2.entry.js +0 -1
- package/dist/post-components/p-e93a4bd0.entry.js +0 -1
- package/dist/post-components/p-fa6c79b8.entry.js +0 -1
- package/dist/post-components/p-ffcd735f.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-6bfe6554.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-f8f7bb40.js';
|
|
3
3
|
import { s as slideUp, a as slideDown } from './slide-3422b8a3.js';
|
|
4
4
|
import { c as checkEmptyOrOneOf, d as checkEmptyOrType, b as checkEmptyOrUrl } from './index-b49c9904.js';
|
|
5
5
|
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
@@ -558,7 +558,7 @@ const PostListItem = class {
|
|
|
558
558
|
};
|
|
559
559
|
PostListItem.style = PostListItemStyle0;
|
|
560
560
|
|
|
561
|
-
const postLogoCss = ":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
561
|
+
const postLogoCss = ":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.logo-link{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}.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.logo-link:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.logo-link :focus,:focus-visible{border-radius:2px}";
|
|
562
562
|
const PostLogoStyle0 = postLogoCss;
|
|
563
563
|
|
|
564
564
|
const PostLogo = class {
|
|
@@ -581,7 +581,7 @@ const PostLogo = class {
|
|
|
581
581
|
render() {
|
|
582
582
|
const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
|
|
583
583
|
const LogoTag = logoLink ? 'a' : 'span';
|
|
584
|
-
return (h(Host, { key: 'c20cf7b8d3684d33cf9b85448a560a93cd4df118', "data-version": version }, h(LogoTag, Object.assign({ key: '
|
|
584
|
+
return (h(Host, { key: 'c20cf7b8d3684d33cf9b85448a560a93cd4df118', "data-version": version }, h(LogoTag, Object.assign({ key: '16f5f647935c87124d7bf1be5dd5fb4c6d56a76f', class: `logo ${logoLink ? 'logo-link' : ''}` }, (logoLink ? { href: logoLink } : {})), h("span", { key: '1373265c0c2271069c1ee540fb6d5576e67dd923', class: "description" }, h("slot", { key: 'd52c8c0d28e8292f7a30733dc195e1e1e32edf2a', onSlotchange: () => this.checkDescription() })), h("svg", { key: 'ad1c0ff356325415a1f99c4bc941895d1448801a', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: 'ca8015671b16c192d44a1b48699e45ff7adc6123', id: "Logo" }, h("rect", { key: 'e862e2ea34630326ca6f6eea164f227b138d44c1', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: 'd25e571bd67524c33c343312826e37dafedf918c', 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: 'a053c52cf9de963d52bc6a0f078a986c836b6038', 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" }))))));
|
|
585
585
|
}
|
|
586
586
|
get host() { return getElement(this); }
|
|
587
587
|
static get watchers() { return {
|
|
@@ -590,7 +590,7 @@ const PostLogo = class {
|
|
|
590
590
|
};
|
|
591
591
|
PostLogo.style = PostLogoStyle0;
|
|
592
592
|
|
|
593
|
-
const postMainnavigationCss = "post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-align:start}post-mainnavigation post-list-item post-megadropdown-trigger button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item>button:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:var(--post-core-dimension-4);z-index:1}@media screen and (min-width: 1024px){post-mainnavigation nav{position:relative;max-width:100vw;max-height:var(--post-core-dimension-56);user-select:none}post-mainnavigation post-list{margin-inline:var(--post-core-dimension-4)}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline:var(--post-core-dimension-12);height:var(--post-core-dimension-56);gap:var(--post-core-dimension-4);font-size:var(--post-core-font-size-16);border-block:0 solid rgba(0,0,0,0);border-block-end-color:currentColor}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{border-block-width:var(--post-core-dimension-2)}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{border-block-width:var(--post-core-dimension-4);font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:var(--post-core-dimension-12);transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{content:\"\"
|
|
593
|
+
const postMainnavigationCss = "post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-align:start}post-mainnavigation post-list-item post-megadropdown-trigger button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item>button:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:var(--post-core-dimension-4);z-index:1}@media screen and (min-width: 1024px){post-mainnavigation nav{position:relative;max-width:100vw;max-height:var(--post-core-dimension-56);user-select:none}post-mainnavigation post-list{margin-inline:var(--post-core-dimension-4)}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline:var(--post-core-dimension-12);height:var(--post-core-dimension-56);gap:var(--post-core-dimension-4);font-size:var(--post-core-font-size-16);border-block:0 solid rgba(0,0,0,0);border-block-end-color:currentColor}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{border-block-width:var(--post-core-dimension-2)}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{border-block-width:var(--post-core-dimension-4);font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:var(--post-core-dimension-12);transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{content:\"\";mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button.selected::after,post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button.selected::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}post-mainnavigation [slot=back-button]{display:none}}@media screen and (max-width: 1023.99px){post-mainnavigation post-list>[role=list]{transform:none !important}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;height:var(--post-core-dimension-48);padding-inline-end:var(--post-core-dimension-6);gap:var(--post-core-dimension-16);border-block:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-block-end-color:currentColor;font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button.selected{border-block-width:var(--post-core-dimension-3)}post-mainnavigation post-list-item>a:hover::after,post-mainnavigation post-list-item>button:hover::after,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::after{content:\"\";display:block;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.667 5.333H18.8L29.467 16H0v1.333h29.467L18.8 28h1.867L32 16.667z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;width:var(--post-core-dimension-24);height:var(--post-core-dimension-24)}}post-mainnavigation .back-button .btn{padding-inline:0}";
|
|
594
594
|
const PostMainnavigationStyle0 = postMainnavigationCss;
|
|
595
595
|
|
|
596
596
|
const PostMainnavigation = class {
|
|
@@ -2164,6 +2164,9 @@ const size$1 = function (options) {
|
|
|
2164
2164
|
};
|
|
2165
2165
|
};
|
|
2166
2166
|
|
|
2167
|
+
function hasWindow() {
|
|
2168
|
+
return typeof window !== 'undefined';
|
|
2169
|
+
}
|
|
2167
2170
|
function getNodeName(node) {
|
|
2168
2171
|
if (isNode(node)) {
|
|
2169
2172
|
return (node.nodeName || '').toLowerCase();
|
|
@@ -2182,17 +2185,25 @@ function getDocumentElement(node) {
|
|
|
2182
2185
|
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
2183
2186
|
}
|
|
2184
2187
|
function isNode(value) {
|
|
2188
|
+
if (!hasWindow()) {
|
|
2189
|
+
return false;
|
|
2190
|
+
}
|
|
2185
2191
|
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
2186
2192
|
}
|
|
2187
2193
|
function isElement(value) {
|
|
2194
|
+
if (!hasWindow()) {
|
|
2195
|
+
return false;
|
|
2196
|
+
}
|
|
2188
2197
|
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
2189
2198
|
}
|
|
2190
2199
|
function isHTMLElement(value) {
|
|
2200
|
+
if (!hasWindow()) {
|
|
2201
|
+
return false;
|
|
2202
|
+
}
|
|
2191
2203
|
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
2192
2204
|
}
|
|
2193
2205
|
function isShadowRoot(value) {
|
|
2194
|
-
|
|
2195
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2206
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
2196
2207
|
return false;
|
|
2197
2208
|
}
|
|
2198
2209
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
@@ -2223,7 +2234,8 @@ function isContainingBlock(elementOrCss) {
|
|
|
2223
2234
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
2224
2235
|
|
|
2225
2236
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2226
|
-
|
|
2237
|
+
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
2238
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
2227
2239
|
}
|
|
2228
2240
|
function getContainingBlock(element) {
|
|
2229
2241
|
let currentNode = getParentNode(element);
|
|
@@ -2296,10 +2308,14 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
2296
2308
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
2297
2309
|
const win = getWindow(scrollableAncestor);
|
|
2298
2310
|
if (isBody) {
|
|
2299
|
-
|
|
2311
|
+
const frameElement = getFrameElement(win);
|
|
2312
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
2300
2313
|
}
|
|
2301
2314
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
2302
2315
|
}
|
|
2316
|
+
function getFrameElement(win) {
|
|
2317
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
2318
|
+
}
|
|
2303
2319
|
|
|
2304
2320
|
function getCssDimensions(element) {
|
|
2305
2321
|
const css = getComputedStyle$1(element);
|
|
@@ -2403,7 +2419,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
2403
2419
|
const win = getWindow(domElement);
|
|
2404
2420
|
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
2405
2421
|
let currentWin = win;
|
|
2406
|
-
let currentIFrame = currentWin
|
|
2422
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
2407
2423
|
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
2408
2424
|
const iframeScale = getScale(currentIFrame);
|
|
2409
2425
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
@@ -2417,7 +2433,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
2417
2433
|
x += left;
|
|
2418
2434
|
y += top;
|
|
2419
2435
|
currentWin = getWindow(currentIFrame);
|
|
2420
|
-
currentIFrame = currentWin
|
|
2436
|
+
currentIFrame = getFrameElement(currentWin);
|
|
2421
2437
|
}
|
|
2422
2438
|
}
|
|
2423
2439
|
return rectToClientRect({
|
|
@@ -2428,6 +2444,31 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
2428
2444
|
});
|
|
2429
2445
|
}
|
|
2430
2446
|
|
|
2447
|
+
// If <html> has a CSS width greater than the viewport, then this will be
|
|
2448
|
+
// incorrect for RTL.
|
|
2449
|
+
function getWindowScrollBarX(element, rect) {
|
|
2450
|
+
const leftScroll = getNodeScroll(element).scrollLeft;
|
|
2451
|
+
if (!rect) {
|
|
2452
|
+
return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
|
|
2453
|
+
}
|
|
2454
|
+
return rect.left + leftScroll;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
|
|
2458
|
+
if (ignoreScrollbarX === void 0) {
|
|
2459
|
+
ignoreScrollbarX = false;
|
|
2460
|
+
}
|
|
2461
|
+
const htmlRect = documentElement.getBoundingClientRect();
|
|
2462
|
+
const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
|
|
2463
|
+
// RTL <body> scrollbar.
|
|
2464
|
+
getWindowScrollBarX(documentElement, htmlRect));
|
|
2465
|
+
const y = htmlRect.top + scroll.scrollTop;
|
|
2466
|
+
return {
|
|
2467
|
+
x,
|
|
2468
|
+
y
|
|
2469
|
+
};
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2431
2472
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
2432
2473
|
let {
|
|
2433
2474
|
elements,
|
|
@@ -2459,11 +2500,12 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
2459
2500
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2460
2501
|
}
|
|
2461
2502
|
}
|
|
2503
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
|
|
2462
2504
|
return {
|
|
2463
2505
|
width: rect.width * scale.x,
|
|
2464
2506
|
height: rect.height * scale.y,
|
|
2465
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
2466
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
2507
|
+
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
|
|
2508
|
+
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
|
|
2467
2509
|
};
|
|
2468
2510
|
}
|
|
2469
2511
|
|
|
@@ -2471,12 +2513,6 @@ function getClientRects(element) {
|
|
|
2471
2513
|
return Array.from(element.getClientRects());
|
|
2472
2514
|
}
|
|
2473
2515
|
|
|
2474
|
-
function getWindowScrollBarX(element) {
|
|
2475
|
-
// If <html> has a CSS width greater than the viewport, then this will be
|
|
2476
|
-
// incorrect for RTL.
|
|
2477
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
2516
|
// Gets the entire size of the scrollable document area, even extending outside
|
|
2481
2517
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
|
|
2482
2518
|
function getDocumentRect(element) {
|
|
@@ -2551,9 +2587,10 @@ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy)
|
|
|
2551
2587
|
} else {
|
|
2552
2588
|
const visualOffsets = getVisualOffsets(element);
|
|
2553
2589
|
rect = {
|
|
2554
|
-
...clippingAncestor,
|
|
2555
2590
|
x: clippingAncestor.x - visualOffsets.x,
|
|
2556
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
2591
|
+
y: clippingAncestor.y - visualOffsets.y,
|
|
2592
|
+
width: clippingAncestor.width,
|
|
2593
|
+
height: clippingAncestor.height
|
|
2557
2594
|
};
|
|
2558
2595
|
}
|
|
2559
2596
|
return rectToClientRect(rect);
|
|
@@ -2658,11 +2695,14 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2658
2695
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
2659
2696
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2660
2697
|
} else if (documentElement) {
|
|
2698
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2699
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2661
2700
|
offsets.x = getWindowScrollBarX(documentElement);
|
|
2662
2701
|
}
|
|
2663
2702
|
}
|
|
2664
|
-
const
|
|
2665
|
-
const
|
|
2703
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2704
|
+
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
2705
|
+
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
2666
2706
|
return {
|
|
2667
2707
|
x,
|
|
2668
2708
|
y,
|
|
@@ -2682,7 +2722,16 @@ function getTrueOffsetParent(element, polyfill) {
|
|
|
2682
2722
|
if (polyfill) {
|
|
2683
2723
|
return polyfill(element);
|
|
2684
2724
|
}
|
|
2685
|
-
|
|
2725
|
+
let rawOffsetParent = element.offsetParent;
|
|
2726
|
+
|
|
2727
|
+
// Firefox returns the <html> element as the offsetParent if it's non-static,
|
|
2728
|
+
// while Chrome and Safari return the <body> element. The <body> element must
|
|
2729
|
+
// be used to perform the correct calculations even if the <html> element is
|
|
2730
|
+
// non-static.
|
|
2731
|
+
if (getDocumentElement(element) === rawOffsetParent) {
|
|
2732
|
+
rawOffsetParent = rawOffsetParent.ownerDocument.body;
|
|
2733
|
+
}
|
|
2734
|
+
return rawOffsetParent;
|
|
2686
2735
|
}
|
|
2687
2736
|
|
|
2688
2737
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
@@ -2744,6 +2793,10 @@ const platform = {
|
|
|
2744
2793
|
isRTL
|
|
2745
2794
|
};
|
|
2746
2795
|
|
|
2796
|
+
function rectsAreEqual(a, b) {
|
|
2797
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2747
2800
|
// https://samthor.au/2021/observing-dom/
|
|
2748
2801
|
function observeMove(element, onMove) {
|
|
2749
2802
|
let io = null;
|
|
@@ -2763,12 +2816,13 @@ function observeMove(element, onMove) {
|
|
|
2763
2816
|
threshold = 1;
|
|
2764
2817
|
}
|
|
2765
2818
|
cleanup();
|
|
2819
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
2766
2820
|
const {
|
|
2767
2821
|
left,
|
|
2768
2822
|
top,
|
|
2769
2823
|
width,
|
|
2770
2824
|
height
|
|
2771
|
-
} =
|
|
2825
|
+
} = elementRectForRootMargin;
|
|
2772
2826
|
if (!skip) {
|
|
2773
2827
|
onMove();
|
|
2774
2828
|
}
|
|
@@ -2801,6 +2855,16 @@ function observeMove(element, onMove) {
|
|
|
2801
2855
|
refresh(false, ratio);
|
|
2802
2856
|
}
|
|
2803
2857
|
}
|
|
2858
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
2859
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
2860
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
2861
|
+
// area anymore. This can happen under performance constraints. This may
|
|
2862
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
2863
|
+
// work around this, we compare the element's bounding rect now with
|
|
2864
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
2865
|
+
// are not equal then the element moved, so we refresh.
|
|
2866
|
+
refresh();
|
|
2867
|
+
}
|
|
2804
2868
|
isFirstUpdate = false;
|
|
2805
2869
|
}
|
|
2806
2870
|
|
|
@@ -2878,7 +2942,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
2878
2942
|
}
|
|
2879
2943
|
function frameLoop() {
|
|
2880
2944
|
const nextRefRect = getBoundingClientRect(reference);
|
|
2881
|
-
if (prevRefRect && (
|
|
2945
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
2882
2946
|
update();
|
|
2883
2947
|
}
|
|
2884
2948
|
prevRefRect = nextRefRect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-6bfe6554.js';
|
|
2
|
-
import { v as version$1 } from './package-
|
|
2
|
+
import { v as version$1 } from './package-f8f7bb40.js';
|
|
3
3
|
import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
|
|
4
4
|
import { d as checkEmptyOrType } from './index-b49c9904.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_tooltip } from './post-tooltip-
|
|
1
|
+
export { P as post_tooltip } from './post-tooltip-8271950c.js';
|
|
2
2
|
import './index-6bfe6554.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-f8f7bb40.js';
|
|
4
4
|
import './attribute-observer-37fa950a.js';
|
|
5
5
|
import './index-b49c9904.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PostAccordion}from"./p-
|
|
1
|
+
export{P as PostAccordion}from"./p-4a713cf8.js";export{P as PostAccordionItem}from"./p-637759d6.js";export{P as PostAvatar}from"./p-b571e5c8.js";export{P as PostBackToTop}from"./p-35bc4554.js";export{P as PostBanner}from"./p-25a57971.js";export{P as PostBreadcrumb}from"./p-2cb4a8f1.js";export{P as PostBreadcrumbItem,a as PostMenuItem}from"./p-34d70cd5.js";export{P as PostCardControl}from"./p-819e19de.js";export{P as PostClosebutton,a as PostHeader,b as PostIcon,c as PostLanguageOption,d as PostLanguageSwitch,e as PostList,f as PostListItem,g as PostLogo,h as PostMainnavigation,i as PostMegadropdown,j as PostMegadropdownTrigger,k as PostMenu,l as PostMenuTrigger,m as PostPopovercontainer,n as PostTogglebutton}from"./p-4b5e2b24.js";export{P as PostCollapsible,a as PostCollapsibleTrigger}from"./p-bdabdec5.js";export{P as PostFooter}from"./p-94399c69.js";export{P as PostPopover}from"./p-7589a19f.js";export{P as PostRating}from"./p-ba530822.js";export{P as PostTabs}from"./p-b1f5bc26.js";export{P as PostTabHeader}from"./p-24c92608.js";export{P as PostTabPanel}from"./p-025688e5.js";export{P as PostTag}from"./p-33b64e0c.js";export{P as PostTooltip}from"./p-e2f886ab.js";import"./p-0e216cc4.js";import"./p-82d48128.js";import"./p-247a1668.js";import"./p-611b3c41.js";import"./p-5467b223.js";import"./p-440193f4.js";import"./p-4a3f67ab.js";import"./p-b22656b1.js";import"./p-5959f2bd.js";import"./p-b095519d.js";import"./p-515e0f96.js";import"./p-2737eaf5.js";import"./p-d4f93f2b.js";import"./p-fc91cbc2.js";import"./p-6adeaa6c.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,H as e,g as o}from"./p-0e216cc4.js";import{v as a}from"./p-
|
|
1
|
+
import{r as s,h as t,H as e,g as o}from"./p-0e216cc4.js";import{v as a}from"./p-82d48128.js";import{n as r}from"./p-5959f2bd.js";const c=class{constructor(t){s(this,t),this.panelId=void 0,this.name=void 0}componentWillLoad(){this.panelId=`panel-${this.host.id||r(6)}`}render(){return t(e,{key:"9e8f9c5dc0c1c3d1b7e63cbb9e9cbb0cf116da9b","data-version":a,id:this.panelId,role:"tabpanel"},t("slot",{key:"3ece42346845324cfa0fb9af5721efab2b71e2f1"}))}get host(){return o(this)}};c.style=":host{display:none}";export{c as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_breadcrumb_item,a as post_menu_item}from"./p-34d70cd5.js";import"./p-0e216cc4.js";import"./p-82d48128.js";import"./p-5467b223.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b22656b1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as t,H as r,g as e}from"./p-0e216cc4.js";import{v as a}from"./p-
|
|
1
|
+
import{r as o,h as t,H as r,g as e}from"./p-0e216cc4.js";import{v as a}from"./p-82d48128.js";import{c as i}from"./p-b095519d.js";import{n as l}from"./p-5959f2bd.js";const c=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){i(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||l(6)}`}render(){return t(r,{key:"9b12878498f63da83113c081f81a749b4ee47ef4",id:this.tabId,role:"tab","data-version":a,"aria-selected":"false",tabindex:"-1",class:"tab-title",slot:"tabs"},t("slot",{key:"3a2e7f3657110d707b49af911e9dd3a4ef323e36"}))}get host(){return e(this)}static get watchers(){return{panel:["validateFor"]}}};c.style='.tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color: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:var(--post-core-dimension-4);background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:var(--post-core-dimension-2) solid Highlight;outline-offset:calc(var(--post-core-dimension-4)*-1)}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}/*!\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}';export{c as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,c as n,h as e,H as t,g as r}from"./p-0e216cc4.js";import{v as a}from"./p-82d48128.js";import{f as i}from"./p-2737eaf5.js";import{a as c,c as s}from"./p-5467b223.js";import{n as l}from"./p-5959f2bd.js";import{c as b}from"./p-4a3f67ab.js";import{c as d}from"./p-b095519d.js";const h=["neutral","success","warning","danger","info"],p=class{constructor(e){o(this,e),this.postDismissed=n(this,"postDismissed",7),this.bannerId=`p${l(6)}`,this.classes=void 0,this.hasActions=void 0,this.hasHeading=void 0,this.onDismissButtonClick=()=>this.dismiss(),this.dismissible=!1,this.dismissLabel=void 0,this.icon=void 0,this.type="neutral"}validateDismissible(o=this.dismissible){b(o,"boolean",'The post-banner "dismissible" prop should be a boolean.'),setTimeout((()=>this.validateDismissLabel()))}validateDismissLabel(o=this.dismissLabel){this.dismissible&&d(o,'Dismissible post-banner\'s require a "dismiss-label" prop.')}validateIcon(o=this.icon){c(o,/\d{4}|none/,'The post-banner "icon" prop should be a 4-digits string.')}validateType(o=this.type){s(o,h,`The post-banner requires a type form: ${h.join(", ")}`)}componentDidLoad(){this.validateDismissible(),this.validateIcon(),this.validateType()}componentWillRender(){this.hasHeading=this.host.querySelectorAll("[slot=heading]").length>0,this.hasActions=this.host.querySelectorAll("[slot=actions]").length>0,this.classes="banner "+(this.type?"banner-"+this.type:""),this.dismissible&&(this.classes+=" banner-dismissible"),this.hasActions&&(this.classes+=" banner-action"),"none"===this.icon&&(this.classes+=" no-icon")}async dismiss(){const o=i(this.host);await o.finished,this.host.remove(),this.postDismissed.emit()}render(){const o=[this.hasHeading&&e("div",{key:`${this.bannerId}-heading`,class:"banner-heading"},e("slot",{key:"ac8774db27af4057a85f04f5864534c14f387cd7",name:"heading"})),e("slot",{key:`${this.bannerId}-message`})],n=[e("div",{key:`${this.bannerId}-content`,class:"banner-content"},o),e("div",{key:`${this.bannerId}-buttons`,class:"banner-buttons"},e("slot",{key:"e3652af90a4b54bf1297e4c78a32d64305674ff7",name:"actions"}))];return e(t,{key:"21bfb98ce6f38c03dca18877cd99d5ac2ebbafaf","data-version":a},e("div",{key:"728c307293908b86d6951d9edc420d8cf9074bc8",role:"alert",class:this.classes,part:this.classes},this.dismissible&&e("button",{key:"6ac2f33805ae8dfc8f4a9444fa98153ce5009c72",class:"btn-close",onClick:this.onDismissButtonClick},e("span",{key:"ad9dd25cc1c43555115192ec04ce05ec54b793d4",class:"visually-hidden"},this.dismissLabel)),this.icon&&"none"!==this.icon&&e("post-icon",{key:`${this.bannerId}-icon`,name:this.icon}),this.hasActions?n:o))}get host(){return r(this)}static get watchers(){return{dismissible:["validateDismissible"],dismissLabel:["validateDismissLabel"],icon:["validateIcon"],type:["validateType"]}}};p.style=".banner,.alert{min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));box-sizing:border-box;box-shadow:var(--post-device-elevation-100);border-radius:var(--post-device-border-radius-2);padding:var(--post-device-spacing-padding-10) var(--post-device-spacing-padding-10);padding-inline-start:calc(var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6));font-weight:400;border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);position:relative;color:var(--post-scheme-color-surface-default-fg);background-color:var(--post-scheme-color-signal-neutral);border-color:var(--post-scheme-color-signal-neutral-dark);color-scheme:var(--post-core-bg-scheme-light)}.banner:not(.no-icon)::before,.alert:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-signal-neutral-dark)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner:not(.no-icon)::before,.alert:not(.no-icon)::before{color:CanvasText}}.banner:has(>post-icon)::before,.alert:has(>post-icon)::before{content:none}.banner>post-icon,.alert>post-icon{background-color:var(--post-scheme-color-signal-neutral);color:var(--post-scheme-color-signal-neutral-dark)}.banner::before,.alert::before{content:\"\";display:block}.banner::before,.banner>post-icon,.alert::before,.alert>post-icon{position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);left:var(--post-device-spacing-padding-10);top:var(--post-device-spacing-padding-10)}.banner.no-icon,.alert.no-icon{min-height:calc(2*var(--post-device-spacing-padding-10) + var(--post-core-dimension-24));padding-inline-start:var(--post-device-spacing-padding-10)}.banner.no-icon::before,.alert.no-icon::before{content:unset}.banner.no-icon>post-icon,.alert.no-icon>post-icon{display:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner,.alert{filter:none !important;border:2px solid CanvasText}}.banner:not(.banner-action):not(.alert-action),.alert:not(.banner-action):not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:var(--post-core-dimension-4)}.banner:not(.banner-action):not(.alert-action) a,.alert:not(.banner-action):not(.alert-action) a{font-weight:400}.banner:not(.banner-action):not(.alert-action) hr,.alert:not(.banner-action):not(.alert-action) hr{margin-block:var(--post-core-dimension-8) var(--post-core-dimension-12) !important}.banner:not(.banner-action):not(.alert-action)>*,.alert:not(.banner-action):not(.alert-action)>*{margin:0}.banner-container{border:unset;background-color:rgba(0,0,0,0)}.banner-dismissible,.alert-dismissible{pointer-events:auto;position:relative}.banner-dismissible:not(.banner-action):not(.alert-action),.alert-dismissible:not(.banner-action):not(.alert-action){padding-inline-end:calc(var(--post-device-spacing-padding-10) + var(--post-device-spacing-gap-inline-6) + var(--post-core-dimension-24))}.banner-dismissible>.btn-close,.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:var(--post-device-spacing-padding-10)}.banner-buttons,.alert-buttons{display:flex;align-items:center;justify-content:flex-start;flex-direction:row-reverse;margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media (max-width: 779.98px){.banner-buttons,.alert-buttons{flex-direction:column}}.banner-action>.banner-content,.banner-action>.alert-content,.alert-action>.banner-content,.alert-action>.alert-content{display:flex;flex-direction:column;justify-content:center;gap:var(--post-core-dimension-4)}.banner-action>.banner-content a,.banner-action>.alert-content a,.alert-action>.banner-content a,.alert-action>.alert-content a{font-weight:400}.banner-action>.banner-content hr,.banner-action>.alert-content hr,.alert-action>.banner-content hr,.alert-action>.alert-content hr{margin-block:var(--post-core-dimension-8) var(--post-core-dimension-12) !important}.banner-action>.banner-content>*,.banner-action>.alert-content>*,.alert-action>.banner-content>*,.alert-action>.alert-content>*{margin:0}@media (max-width: 779.98px){.banner-action,.alert-action{flex-direction:column;align-items:stretch}.banner-action>.banner-content,.banner-action>.alert-content,.alert-action>.banner-content,.alert-action>.alert-content{padding-inline-start:var(--post-device-spacing-gap-inline-6)var(--post-device-sizing-notification-icon-2);padding-inline-end:var(--post-device-spacing-gap-inline-6)var(--post-core-dimension-24)}.banner-action.no-icon>.banner-content,.banner-action.no-icon>.alert-content,.alert-action.no-icon>.banner-content,.alert-action.no-icon>.alert-content{padding-inline-start:0}.banner-action>.banner-buttons,.banner-action>.alert-buttons,.alert-action>.banner-buttons,.alert-action>.alert-buttons{display:flex}.banner-action>.banner-buttons>.btn,.banner-action>.banner-buttons>::slotted(.btn),.banner-action>.alert-buttons>.btn,.banner-action>.alert-buttons>::slotted(.btn),.alert-action>.banner-buttons>.btn,.alert-action>.banner-buttons>::slotted(.btn),.alert-action>.alert-buttons>.btn,.alert-action>.alert-buttons>::slotted(.btn){flex:1 0 0;width:100%}.banner-action>.banner-buttons>.btn:first-child,.banner-action>.banner-buttons>::slotted(.btn:first-child),.banner-action>.alert-buttons>.btn:first-child,.banner-action>.alert-buttons>::slotted(.btn:first-child),.alert-action>.banner-buttons>.btn:first-child,.alert-action>.banner-buttons>::slotted(.btn:first-child),.alert-action>.alert-buttons>.btn:first-child,.alert-action>.alert-buttons>::slotted(.btn:first-child){margin-inline-start:0}}.banner-neutral,.alert-neutral{background-color:var(--post-scheme-color-signal-neutral);border-color:var(--post-scheme-color-signal-neutral-dark);color-scheme:var(--post-core-bg-scheme-light)}.banner-neutral:not(.no-icon)::before,.alert-neutral:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-signal-neutral-dark)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-neutral:not(.no-icon)::before,.alert-neutral:not(.no-icon)::before{color:CanvasText}}.banner-neutral:has(>post-icon)::before,.alert-neutral:has(>post-icon)::before{content:none}.banner-neutral>post-icon,.alert-neutral>post-icon{background-color:var(--post-scheme-color-signal-neutral);color:var(--post-scheme-color-signal-neutral-dark)}.banner-success,.alert-success{background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-success:not(.no-icon)::before,.alert-success:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-success-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-success:not(.no-icon)::before,.alert-success:not(.no-icon)::before{color:CanvasText}}.banner-success:has(>post-icon)::before,.alert-success:has(>post-icon)::before{content:none}.banner-success>post-icon,.alert-success>post-icon{background-color:var(--post-scheme-color-interactive-notification-success-bg);color:var(--post-scheme-color-interactive-notification-success-icon)}.banner-warning,.alert-warning{background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-warning:not(.no-icon)::before,.alert-warning:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-warning-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-warning:not(.no-icon)::before,.alert-warning:not(.no-icon)::before{color:CanvasText}}.banner-warning:has(>post-icon)::before,.alert-warning:has(>post-icon)::before{content:none}.banner-warning>post-icon,.alert-warning>post-icon{background-color:var(--post-scheme-color-interactive-notification-warning-bg);color:var(--post-scheme-color-interactive-notification-warning-icon)}.banner-error,.alert-error{background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-error:not(.no-icon)::before,.alert-error:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-error-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-error:not(.no-icon)::before,.alert-error:not(.no-icon)::before{color:CanvasText}}.banner-error:has(>post-icon)::before,.alert-error:has(>post-icon)::before{content:none}.banner-error>post-icon,.alert-error>post-icon{background-color:var(--post-scheme-color-interactive-notification-error-bg);color:var(--post-scheme-color-interactive-notification-error-icon)}.banner-info,.alert-info{background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-info:not(.no-icon)::before,.alert-info:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-info-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-info:not(.no-icon)::before,.alert-info:not(.no-icon)::before{color:CanvasText}}.banner-info:has(>post-icon)::before,.alert-info:has(>post-icon)::before{content:none}.banner-info>post-icon,.alert-info>post-icon{background-color:var(--post-scheme-color-interactive-notification-info-bg);color:var(--post-scheme-color-interactive-notification-info-icon)}.banner-danger,.alert-danger{background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-danger:not(.no-icon)::before,.alert-danger:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-error-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-danger:not(.no-icon)::before,.alert-danger:not(.no-icon)::before{color:CanvasText}}.banner-danger:has(>post-icon)::before,.alert-danger:has(>post-icon)::before{content:none}.banner-danger>post-icon,.alert-danger>post-icon{background-color:var(--post-scheme-color-interactive-notification-error-bg);color:var(--post-scheme-color-interactive-notification-error-icon)}.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{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color: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}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}:host ::slotted(*){margin:0 !important}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}";export{p as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,H as t,g as o}from"./p-0e216cc4.js";import{v as r}from"./p-80b282a2.js";import{c as s}from"./p-b22656b1.js";import{d as a}from"./p-d4f93f2b.js";const c=class{constructor(i){e(this,i),this.waitForBreadcrumbRef=a((()=>{var e;(null===(e=this.breadcrumbNavRef)||void 0===e?void 0:e.clientWidth)>0?this.checkConcatenation():this.waitForBreadcrumbRef()}),50),this.handleResize=()=>{window.innerWidth!==this.lastWindowWidth&&(this.lastWindowWidth=window.innerWidth,this.checkConcatenation())},this.homeUrl=void 0,this.homeText="Home",this.breadcrumbItems=[],this.isConcatenated=void 0,this.lastWindowWidth=void 0}validateUrl(){s(this.homeUrl,'The "url" property of the home-icon is invalid')}componentWillLoad(){this.updateBreadcrumbItems()}componentDidLoad(){window.addEventListener("resize",this.handleResize),this.waitForBreadcrumbRef()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateBreadcrumbItems(){this.breadcrumbItems=Array.from(this.host.querySelectorAll("post-breadcrumb-item")).map((e=>({text:e.textContent||"",url:e.getAttribute("url")||""}))),this.lastItem=this.breadcrumbItems[this.breadcrumbItems.length-1]}getParentWidth(){let e=this.host.parentNode;for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e instanceof HTMLElement?e.clientWidth:window.innerWidth}checkConcatenation(){var e;if(!this.breadcrumbNavRef)return;const i=this.getParentWidth(),t=Array.from((null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".hidden-breadcrumb-item"))||[]).reduce(((e,i)=>e+i.getBoundingClientRect().width),0);this.isConcatenated=t>i}handleBreadcrumbItemClick(){var e,i;if(this.host.shadowRoot){const t=null===(i=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".menu-trigger-wrapper"))||void 0===i?void 0:i.querySelector("button");t&&t.click()}}render(){const e=this.breadcrumbItems.slice(0,-1);return i(t,{key:"1baffcf05840127383931baec809e2b94e402e5e","data-version":r},i("nav",{key:"c6725b8aa970f35f15f31ecc56280e7518b2dba9","aria-label":"Breadcrumb",class:"breadcrumbs-nav",ref:e=>this.breadcrumbNavRef=e},i("ol",{key:"3166f345dde9f7003b23f5e7a1ddbe587b3fb4be",class:"no-list breadcrumbs-list"},i("li",{key:"2efcbd6502cc5245ee63fd344a28c8aea4561cde"},i("a",{key:"b727c3d880ca9ebb7fc8527263a142662e4d42fd",href:this.homeUrl,class:"breadcrumb-link"},i("span",{key:"d683d05bce032759aa224e7a36ef5d7fb3883187",class:"visually-hidden"},this.homeText),i("post-icon",{key:"f17d5f56a49f0525d64414c079968d80b0c7eca3",name:"home",class:"home-icon"}))),this.isConcatenated?i("div",{class:"menu-trigger-wrapper","aria-label":"More breadcrumbs",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleBreadcrumbItemClick())}},i("post-icon",{name:"2111",class:"breadcrumb-item-icon"}),i("div",{class:"actual-menu"},i("post-menu-trigger",{for:"breadcrumb-menu",tabIndex:0},i("button",{class:"btn test",tabIndex:-1},"...")),i("post-menu",{id:"breadcrumb-menu"},e.map((e=>i("post-menu-item",{key:e.url||e.text,class:"breadcrumb-item",onKeyDown:e=>{if("Enter"===e.key||" "===e.key){const i=e.currentTarget.querySelector("a");null==i||i.click(),e.preventDefault()}}},e.url?i("a",{href:e.url},e.text):i("span",null,e.text))))))):e.map((e=>i("post-breadcrumb-item",{url:e.url,key:e.url||e.text},e.text))),this.lastItem&&i("post-breadcrumb-item",{key:"674dd84e23c325f874f57b92b0171b47d600d463",url:this.lastItem.url,"aria-current":"page",tabindex:-1},this.lastItem.text)),i("div",{key:"b4131833874403a8166446991510a36003a21aed",class:"hidden-items"},i("a",{key:"aa31950651d486afdb97974c24929cc80e0c3f53",href:this.homeUrl,class:"hidden-breadcrumb-item"},i("span",{key:"e9d1f5e225220a5942f8844dc26014f1278f935f",class:"visually-hidden"},this.homeText),i("post-icon",{key:"493a91739d10c3e536da52d636aca4b305f88273",name:"home",class:"home-icon"})),this.breadcrumbItems.map((e=>i("post-breadcrumb-item",{url:e.url,key:`hidden-${e.url||e.text}`,class:"hidden-breadcrumb-item"},e.text))))))}get host(){return o(this)}static get watchers(){return{homeUrl:["validateUrl"]}}};c.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:flex;align-items:center}.breadcrumbs-nav{display:flex;align-items:center}.hidden-items{gap:var(--post-device-spacing-gap-inline-4);position:absolute;height:0;overflow:hidden;white-space:nowrap}.breadcrumbs-list{display:flex;flex-wrap:nowrap;position:relative;margin:0;padding:0;list-style:none;align-items:center;height:100%;gap:var(--post-device-spacing-gap-inline-4)}post-icon{display:inline-block;box-sizing:border-box;color:var(--post-scheme-color-interactive-primary-enabled-fg1);height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.breadcrumb-item-icon{padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}li a{display:flex;align-items:center}li a{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}li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}li a:focus{border-radius:var(--post-device-border-radius-focus)}li a .home-icon{padding-block:var(--post-device-spacing-padding-4);padding-inline:var(--post-device-spacing-padding-4)}li a .home-icon:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a .home-icon a,li a .home-icon:focus,li a .home-icon:hover{color:CanvasText !important}}.menu-trigger-wrapper{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}.actual-menu{display:flex;align-items:center}post-menu-trigger{display:flex;align-items:center;padding-block:var(--post-device-spacing-padding-block-7)}post-menu-trigger{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}post-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-menu-trigger:focus{border-radius:var(--post-device-border-radius-focus)}post-menu-trigger button{background:none;border:none;line-height:150%;font-size:var(--post-device-font-size-6);cursor:pointer;padding:0;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}post-menu-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger button a,post-menu-trigger button:focus,post-menu-trigger button:hover{color:LinkText !important}}post-menu::part(popover-container){display:flex;flex-direction:column;align-items:start;padding:.6rem;gap:var(--post-device-spacing-gap-inline-4)}post-menu::part(popover-container) ::slotted(post-menu-item:not(:last-child)){margin-bottom:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;justify-content:center;gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item a{text-decoration:none;color:inherit;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);font-size:var(--post-device-font-size-6)}.breadcrumb-item a{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}.breadcrumb-item a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item a:focus-visible{border-radius:var(--post-device-border-radius-focus)}.breadcrumb-item span:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item span:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}post-breadcrumb-item:last-of-type{pointer-events:none;color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumb-item:last-of-type:hover{color:var(--post-scheme-color-interactive-primary-selected-fg1);text-decoration:none}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}";export{c as P}
|
|
1
|
+
import{r as e,h as i,H as t,g as o}from"./p-0e216cc4.js";import{v as r}from"./p-82d48128.js";import{c as s}from"./p-b22656b1.js";import{d as a}from"./p-d4f93f2b.js";const c=class{constructor(i){e(this,i),this.waitForBreadcrumbRef=a((()=>{var e;(null===(e=this.breadcrumbNavRef)||void 0===e?void 0:e.clientWidth)>0?this.checkConcatenation():this.waitForBreadcrumbRef()}),50),this.handleResize=()=>{window.innerWidth!==this.lastWindowWidth&&(this.lastWindowWidth=window.innerWidth,this.checkConcatenation())},this.homeUrl=void 0,this.homeText="Home",this.breadcrumbItems=[],this.isConcatenated=void 0,this.lastWindowWidth=void 0}validateUrl(){s(this.homeUrl,'The "url" property of the home-icon is invalid')}componentWillLoad(){this.updateBreadcrumbItems()}componentDidLoad(){window.addEventListener("resize",this.handleResize),this.waitForBreadcrumbRef()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateBreadcrumbItems(){this.breadcrumbItems=Array.from(this.host.querySelectorAll("post-breadcrumb-item")).map((e=>({text:e.textContent||"",url:e.getAttribute("url")||""}))),this.lastItem=this.breadcrumbItems[this.breadcrumbItems.length-1]}getParentWidth(){let e=this.host.parentNode;for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e instanceof HTMLElement?e.clientWidth:window.innerWidth}checkConcatenation(){var e;if(!this.breadcrumbNavRef)return;const i=this.getParentWidth(),t=Array.from((null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".hidden-breadcrumb-item"))||[]).reduce(((e,i)=>e+i.getBoundingClientRect().width),0);this.isConcatenated=t>i}handleBreadcrumbItemClick(){var e,i;if(this.host.shadowRoot){const t=null===(i=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".menu-trigger-wrapper"))||void 0===i?void 0:i.querySelector("button");t&&t.click()}}render(){const e=this.breadcrumbItems.slice(0,-1);return i(t,{key:"1baffcf05840127383931baec809e2b94e402e5e","data-version":r},i("nav",{key:"c6725b8aa970f35f15f31ecc56280e7518b2dba9","aria-label":"Breadcrumb",class:"breadcrumbs-nav",ref:e=>this.breadcrumbNavRef=e},i("ol",{key:"3166f345dde9f7003b23f5e7a1ddbe587b3fb4be",class:"no-list breadcrumbs-list"},i("li",{key:"2efcbd6502cc5245ee63fd344a28c8aea4561cde"},i("a",{key:"b727c3d880ca9ebb7fc8527263a142662e4d42fd",href:this.homeUrl,class:"breadcrumb-link"},i("span",{key:"d683d05bce032759aa224e7a36ef5d7fb3883187",class:"visually-hidden"},this.homeText),i("post-icon",{key:"f17d5f56a49f0525d64414c079968d80b0c7eca3",name:"home",class:"home-icon"}))),this.isConcatenated?i("div",{class:"menu-trigger-wrapper","aria-label":"More breadcrumbs",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleBreadcrumbItemClick())}},i("post-icon",{name:"2111",class:"breadcrumb-item-icon"}),i("div",{class:"actual-menu"},i("post-menu-trigger",{for:"breadcrumb-menu",tabIndex:0},i("button",{class:"btn test",tabIndex:-1},"...")),i("post-menu",{id:"breadcrumb-menu"},e.map((e=>i("post-menu-item",{key:e.url||e.text,class:"breadcrumb-item",onKeyDown:e=>{if("Enter"===e.key||" "===e.key){const i=e.currentTarget.querySelector("a");null==i||i.click(),e.preventDefault()}}},e.url?i("a",{href:e.url},e.text):i("span",null,e.text))))))):e.map((e=>i("post-breadcrumb-item",{url:e.url,key:e.url||e.text},e.text))),this.lastItem&&i("post-breadcrumb-item",{key:"674dd84e23c325f874f57b92b0171b47d600d463",url:this.lastItem.url,"aria-current":"page",tabindex:-1},this.lastItem.text)),i("div",{key:"b4131833874403a8166446991510a36003a21aed",class:"hidden-items"},i("a",{key:"aa31950651d486afdb97974c24929cc80e0c3f53",href:this.homeUrl,class:"hidden-breadcrumb-item"},i("span",{key:"e9d1f5e225220a5942f8844dc26014f1278f935f",class:"visually-hidden"},this.homeText),i("post-icon",{key:"493a91739d10c3e536da52d636aca4b305f88273",name:"home",class:"home-icon"})),this.breadcrumbItems.map((e=>i("post-breadcrumb-item",{url:e.url,key:`hidden-${e.url||e.text}`,class:"hidden-breadcrumb-item"},e.text))))))}get host(){return o(this)}static get watchers(){return{homeUrl:["validateUrl"]}}};c.style="/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:flex;align-items:center}.breadcrumbs-nav{display:flex;align-items:center}.hidden-items{gap:var(--post-device-spacing-gap-inline-4);position:absolute;height:0;overflow:hidden;white-space:nowrap}.breadcrumbs-list{display:flex;flex-wrap:nowrap;position:relative;margin:0;padding:0;list-style:none;align-items:center;height:100%;gap:var(--post-device-spacing-gap-inline-4)}post-icon{display:inline-block;box-sizing:border-box;color:var(--post-scheme-color-interactive-primary-enabled-fg1);height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.breadcrumb-item-icon{padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}li a{display:flex;align-items:center}li a{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}li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}li a:focus{border-radius:var(--post-device-border-radius-focus)}li a .home-icon{padding-block:var(--post-device-spacing-padding-4);padding-inline:var(--post-device-spacing-padding-4)}li a .home-icon:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){li a .home-icon a,li a .home-icon:focus,li a .home-icon:hover{color:CanvasText !important}}.menu-trigger-wrapper{display:flex;align-items:center;gap:var(--post-device-spacing-gap-inline-5)}.actual-menu{display:flex;align-items:center}post-menu-trigger{display:flex;align-items:center;padding-block:var(--post-device-spacing-padding-block-7)}post-menu-trigger{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}post-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-menu-trigger:focus{border-radius:var(--post-device-border-radius-focus)}post-menu-trigger button{background:none;border:none;line-height:150%;font-size:var(--post-device-font-size-6);cursor:pointer;padding:0;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}post-menu-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-trigger button a,post-menu-trigger button:focus,post-menu-trigger button:hover{color:LinkText !important}}post-menu::part(popover-container){display:flex;flex-direction:column;align-items:start;padding:.6rem;gap:var(--post-device-spacing-gap-inline-4)}post-menu::part(popover-container) ::slotted(post-menu-item:not(:last-child)){margin-bottom:var(--post-device-spacing-gap-inline-4)}.breadcrumb-item{display:flex;align-items:center;justify-content:center;gap:var(--post-device-spacing-gap-inline-5)}.breadcrumb-item a{text-decoration:none;color:inherit;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);font-size:var(--post-device-font-size-6)}.breadcrumb-item a{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}.breadcrumb-item a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item a:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item a:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item a:focus-visible{border-radius:var(--post-device-border-radius-focus)}.breadcrumb-item span:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item span:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item a,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}post-breadcrumb-item:last-of-type{pointer-events:none;color:var(--post-scheme-color-interactive-primary-selected-fg1);font-weight:var(--post-device-font-weight-bold);text-decoration:var(--post-core-text-decoration-none)}post-breadcrumb-item:last-of-type:hover{color:var(--post-scheme-color-interactive-primary-selected-fg1);text-decoration:none}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}";export{c as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as
|
|
1
|
+
import{r as t,h as e,H as a,g as i}from"./p-0e216cc4.js";import{v as s}from"./p-82d48128.js";const g=class{constructor(e){t(this,e),this.classes=void 0,this.variant=void 0,this.size=null,this.icon=null,this.setClasses=this.setClasses.bind(this)}variantChanged(){this.setClasses()}sizeChanged(){this.setClasses()}setClasses(){this.classes=["tag",this.size?`tag-${this.size}`:null,this.variant?`tag-${this.variant}`:null].filter((t=>null!==t)).join(" ")}connectedCallback(){this.setClasses()}render(){return e(a,{key:"cda93c397ec81e289c843eaae7694bbba6f3c297","data-version":s},e("div",{key:"7fa71d9c0ca5393bc188e5e09107ec931943ed66",class:this.classes},this.icon?e("post-icon",{name:this.icon}):null,e("div",{key:"8d36933c00910e9f36759d101f43b628c0fbf185",class:"tag-text"},e("slot",{key:"49e2e9dd66cb85df4615c512d8dc0d7cad6606b8"}))))}get host(){return i(this)}static get watchers(){return{variant:["variantChanged"],size:["sizeChanged"]}}};g.style="/*!\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:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);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:var(--post-core-dimension-24)}.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}";export{g as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as i,g as o}from"./p-0e216cc4.js";import{v as r}from"./p-
|
|
1
|
+
import{r as e,h as t,H as i,g as o}from"./p-0e216cc4.js";import{v as r}from"./p-82d48128.js";import{b as s}from"./p-5467b223.js";const c=class{constructor(t){e(this,t),this.url=void 0}validateUrl(){try{this.validUrl=this.constructUrl(this.url)}catch(e){this.validUrl=void 0}}constructUrl(e){const t=/^https?:\/\//.test(String(this.url));if("string"==typeof e){const i=t?e:`${window.location.origin}${e}`;return s(i,'The "url" property of the post-breadcrumb-item is invalid'),i}}connectedCallback(){this.validateUrl()}handleKeyDown(e){var t;if("Enter"===e.key||" "===e.key){const i=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("a");i&&(e.preventDefault(),i.click())}}render(){const e=this.validUrl?"a":"span";return t(i,{key:"b64295c6b59c2e200fe0eae5483e60b733f5eb8c","data-version":r},t("post-icon",{key:"0e8a0712f03b551206e8cfeef51446f318d60f20",name:"2111",class:"breadcrumb-item-icon"}),t(e,Object.assign({key:"d3e218f0b3b8feab97cbce6a8190dcddc0b92c92",class:"breadcrumb-item"},this.validUrl?{href:this.validUrl}:{},{onKeyDown:e=>this.handleKeyDown(e)}),t("slot",{key:"dea5990614b38fcaab1fae46aafa6c2ed652cf9a"})))}get host(){return o(this)}static get watchers(){return{url:["validateUrl"]}}};c.style=":host{display:flex;align-items:center;justify-content:start;gap:var(--post-device-spacing-gap-inline-5)}:host post-icon{box-sizing:border-box;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}.breadcrumb-item{white-space:nowrap;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item{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}.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}";const a=class{constructor(t){e(this,t)}render(){return t(i,{key:"1cd717c2bbc991b33acba0bbfa5d5a2412f6dcc7",role:"menuitem","data-version":r},t("slot",{key:"fe09373b79d299f21ebfdf596bab4d4bc30a9060"}))}};export{c as P,a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tooltip}from"./p-e2f886ab.js";import"./p-0e216cc4.js";import"./p-82d48128.js";import"./p-6adeaa6c.js";import"./p-5467b223.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";import"./p-b22656b1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as e,g as i}from"./p-0e216cc4.js";import{s,a as r}from"./p-515e0f96.js";import{v as a}from"./p-
|
|
1
|
+
import{r as t,h as o,H as e,g as i}from"./p-0e216cc4.js";import{s,a as r}from"./p-515e0f96.js";import{v as a}from"./p-82d48128.js";import{c}from"./p-4a3f67ab.js";import{c as n}from"./p-b095519d.js";const d=class{constructor(o){t(this,o),this.handleScroll=()=>{this.belowFold=this.isBelowFold()},this.label=void 0,this.belowFold=!1}isBelowFold(){return window.scrollY>window.innerHeight}watchBelowFold(t){t?s(this.el,this.translateY):r(this.el,this.translateY)}scrollToTop(){window.scrollTo({top:0})}validateLabel(){c(this.label,"string","The label property of the Back to Top component is required for accessibility purposes. Please ensure it is set."),n(this.label,"The label property of the Back to Top component must not be empty. Please provide a proper text for the label")}componentWillLoad(){this.belowFold=this.isBelowFold()}componentDidLoad(){window.addEventListener("scroll",this.handleScroll,!1),this.translateY=window.getComputedStyle(this.el).getPropertyValue("--post-floating-button-translate-y"),this.belowFold||(this.el.style.transform=`translateY(${this.translateY})`),this.belowFold&&s(this.el,this.translateY),this.validateLabel()}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll)}render(){return o(e,{key:"92d56ff9055c2af38ae47b28c3af20771eed9a39","data-version":a},o("button",{key:"ae305dd5b5a3f8d97553945e547ad45e824e6b7d",class:"back-to-top","aria-hidden":this.belowFold?"false":"true",tabindex:this.belowFold?"0":"-1",onClick:this.scrollToTop},o("post-icon",{key:"37792f99d6ef79df4260f6ad1c5780e545f7870a","aria-hidden":"true",name:"3026"}),o("span",{key:"8768101a26e259c2bd0695a97e6bb4077ad31ae6",class:"visually-hidden"},this.label)))}get el(){return i(this)}static get watchers(){return{belowFold:["watchBelowFold"],label:["validateLabel"]}}};d.style=":host{--post-floating-button-translate-y:calc(-1 * var(--post-core-dimension-112));position:fixed;top:var(--post-device-position-1);right:var(--post-device-position-1)}:host .back-to-top{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);cursor:pointer;border-radius:var(--post-device-border-radius-round);width:var(--post-device-sizing-interactive-button-height-2);height:var(--post-device-sizing-interactive-button-height-2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-button-secondary-enabled-stroke);color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-secondary-enabled-bg);display:flex;align-items:center;justify-content:center}:host .back-to-top{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host .back-to-top:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}:host .back-to-top:hover{border-color:var(--post-scheme-color-interactive-button-secondary-hover-stroke);color:var(--post-scheme-color-interactive-button-secondary-hover-fg);background-color:var(--post-scheme-color-interactive-button-secondary-hover-bg)}:host .back-to-top post-icon{height:var(--post-device-sizing-interactive-button-icon-3);width:var(--post-device-sizing-interactive-button-icon-3)}:host .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{d as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion}from"./p-4a713cf8.js";import"./p-0e216cc4.js";import"./p-82d48128.js";import"./p-247a1668.js";import"./p-611b3c41.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_header}from"./p-24c92608.js";import"./p-0e216cc4.js";import"./p-82d48128.js";import"./p-b095519d.js";import"./p-440193f4.js";import"./p-5959f2bd.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as o,g as s}from"./p-0e216cc4.js";import{v as i}from"./p-
|
|
1
|
+
import{r as t,h as e,H as o,g as s}from"./p-0e216cc4.js";import{v as i}from"./p-82d48128.js";import{H as a}from"./p-247a1668.js";import{c as r}from"./p-611b3c41.js";const c=class{constructor(e){t(this,e),this.expandedItems=new Set,this.headingLevel=void 0,this.multiple=!1}validateHeadingLevel(t=this.headingLevel){t&&(r(t,a,"The `heading-level` property of the `post-accordion` must be a number between 1 and 6."),this.accordionItems.forEach((e=>{e.setAttribute("heading-level",String(t))})))}componentWillLoad(){this.registerAccordionItems(),this.validateHeadingLevel()}collapseToggleHandler(t){t.stopPropagation();const e=t.target;if(e.closest("post-accordion")===this.host&&"post-accordion-item"===e.localName){const e=t.target,o=this.expandedItems.has(e);if(o?this.expandedItems.delete(e):this.expandedItems.add(e),this.multiple||o)return;Array.from(this.expandedItems.values()).filter((t=>t!==e)).forEach((t=>{t.toggle(!1)}))}}async toggle(t){const e=this.accordionItems.find((e=>e.id===t));if(!e)throw new Error(`No post-accordion-item found with id #${t}.`);await e.toggle()}async expandAll(){this.multiple?await Promise.all(this.accordionItems.map((t=>t.toggle(!0)))):this.expandedItems.size||await this.accordionItems[0].toggle(!0)}async collapseAll(){await Promise.all(this.accordionItems.map((t=>t.toggle(!1))))}registerAccordionItems(){this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item")),this.accordionItems.filter((t=>!t.collapsed||this.expandedItems.has(t))).forEach(((t,e)=>{this.multiple||0===e?this.expandedItems.add(t):t.setAttribute("collapsed","")}))}render(){return e(o,{key:"cfc6280e052937f50bc481fe73cf25ede6e40314","data-version":i},e("div",{key:"090539a2ebe9d216609a7e56597c5f379d439fb8",class:"accordion"},e("slot",{key:"4ae4095b14b6b9233f1d66c8543d625a77a77e09",onSlotchange:()=>this.registerAccordionItems()})))}get host(){return s(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};c.style=":host{display:block}::slotted(post-accordion-item){display:block}::slotted(post-accordion-item:not(:only-of-type:first-of-type)){margin-top:calc(var(--post-device-border-width-default)*-1)}::slotted(post-accordion-item:not(:only-of-type):first-of-type){--post-accordion-button-border-top:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}";export{c as P}
|