@swisspost/design-system-components 8.7.1 → 8.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +16 -16
- package/dist/cjs/{package-13394b4e.js → package-7cd94cc1.js} +1 -1
- package/dist/cjs/{post-accordion-9a4a7955.js → post-accordion-209311b2.js} +1 -1
- package/dist/cjs/{post-accordion-item-cebff6cb.js → post-accordion-item-30e8de69.js} +1 -1
- 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-alert-8a994650.js → post-alert-42f38d0e.js} +1 -1
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-fe9fca39.js → post-card-control-2a0c2b0e.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-70b92c3d.js → post-collapsible-trigger-a9b648df.js} +1 -1
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
- package/dist/cjs/{post-icon-5d4e7029.js → post-icon-bf7f72ea.js} +18 -4
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-logo-d8dff083.js → post-logo-83e587ec.js} +1 -1
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-0fc24f59.js → post-popover-10479850.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-24460ecb.js → post-popovercontainer-fc148d89.js} +2 -2
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-5fc4469e.js → post-rating-4260a089.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-43aaa7d4.js → post-tab-header-ffda553c.js} +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-a48a9d37.js → post-tab-panel-06d573ec.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-706cb1af.js → post-tabs-c1d050d2.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-ee0d9c18.js → post-tag-ba9f59d1.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-4df8a465.js → post-tooltip-a98bdf98.js} +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/post-icon/post-icon.js +17 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-icon2.js +17 -3
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +16 -16
- package/dist/esm/{package-5db3f46b.js → package-23a37332.js} +1 -1
- package/dist/esm/{post-accordion-83b64dd0.js → post-accordion-dbcdd859.js} +1 -1
- package/dist/esm/{post-accordion-item-62700b33.js → post-accordion-item-bfedb160.js} +1 -1
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-alert-12987f97.js → post-alert-93078740.js} +1 -1
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-card-control-4c7a4726.js → post-card-control-41b0a1fe.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-04630b84.js → post-collapsible-trigger-e6a0ade2.js} +1 -1
- package/dist/esm/post-collapsible_2.entry.js +2 -2
- package/dist/esm/{post-icon-a28a6f4b.js → post-icon-4569eb21.js} +18 -4
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-logo-d06fa936.js → post-logo-6d90082f.js} +1 -1
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/{post-popover-d1080b80.js → post-popover-8e0233b3.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-ba4a67e9.js → post-popovercontainer-84b97b76.js} +2 -2
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/{post-rating-85de433d.js → post-rating-3d01cdbb.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-854c62e0.js → post-tab-header-7f03e707.js} +1 -1
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-49e02027.js → post-tab-panel-441f13aa.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-f639954d.js → post-tabs-3b1ca219.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-2a104825.js → post-tag-cc6b1316.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-f7b993fd.js → post-tooltip-6dffcef3.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-0cb9ade1.js → p-0469b617.js} +1 -1
- package/dist/post-components/{p-5224849a.js → p-0642e538.js} +1 -1
- package/dist/post-components/p-18a1b6aa.entry.js +1 -0
- package/dist/post-components/p-31b1c158.entry.js +1 -0
- package/dist/post-components/p-326ddd97.entry.js +1 -0
- package/dist/post-components/p-36e197f4.js +1 -0
- package/dist/post-components/{p-75fbd75c.js → p-3a9ea683.js} +1 -1
- package/dist/post-components/p-3e67d7b3.js +1 -0
- package/dist/post-components/p-453d2b59.entry.js +1 -0
- package/dist/post-components/p-51f07a27.entry.js +1 -0
- package/dist/post-components/p-53b727b2.entry.js +1 -0
- package/dist/post-components/p-56dfc056.entry.js +1 -0
- package/dist/post-components/{p-6dac153a.js → p-5ccdb402.js} +1 -1
- package/dist/post-components/{p-8294e4cb.js → p-6442b545.js} +1 -1
- package/dist/post-components/p-7be9ddcb.entry.js +1 -0
- package/dist/post-components/p-8479b48c.entry.js +1 -0
- package/dist/post-components/{p-2a6389ed.js → p-85b9b6ec.js} +1 -1
- package/dist/post-components/p-949984b1.entry.js +1 -0
- package/dist/post-components/p-950c543c.entry.js +1 -0
- package/dist/post-components/{p-97db1e5d.js → p-98a2eebf.js} +1 -1
- package/dist/post-components/{p-4b11552d.js → p-a2020cf0.js} +1 -1
- package/dist/post-components/p-ad17494f.entry.js +1 -0
- package/dist/post-components/p-b5b33d21.js +1 -0
- package/dist/post-components/{p-c45c94e1.js → p-bfbc2d0f.js} +1 -1
- package/dist/post-components/{p-306945b3.entry.js → p-d7b94e9a.entry.js} +1 -1
- package/dist/post-components/p-dbf4049e.entry.js +1 -0
- package/dist/post-components/{p-bd1e63f2.js → p-df113888.js} +1 -1
- package/dist/post-components/{p-e509b0dd.js → p-e14579cb.js} +1 -1
- package/dist/post-components/p-f4d3207d.entry.js +1 -0
- package/dist/post-components/{p-c4529b2a.js → p-f7478b7d.js} +1 -1
- package/dist/post-components/{p-335b61b5.js → p-fbe0c51a.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/loaders/package.js +1 -1
- package/loaders/post-icon2.js +17 -3
- package/loaders/post-popovercontainer2.js +1 -1
- package/package.json +2 -2
- package/dist/post-components/p-17d062b4.entry.js +0 -1
- package/dist/post-components/p-3f36c01e.entry.js +0 -1
- package/dist/post-components/p-6589bec1.entry.js +0 -1
- package/dist/post-components/p-7254e4e8.entry.js +0 -1
- package/dist/post-components/p-7788e32b.js +0 -1
- package/dist/post-components/p-7c7f11c5.entry.js +0 -1
- package/dist/post-components/p-89c6fdd0.entry.js +0 -1
- package/dist/post-components/p-98015d10.entry.js +0 -1
- package/dist/post-components/p-99fcb50b.entry.js +0 -1
- package/dist/post-components/p-9bbb4b31.js +0 -1
- package/dist/post-components/p-b3e5d0c0.entry.js +0 -1
- package/dist/post-components/p-bae78eb4.entry.js +0 -1
- package/dist/post-components/p-c59fe975.entry.js +0 -1
- package/dist/post-components/p-c73fc274.entry.js +0 -1
- package/dist/post-components/p-c98b56c4.entry.js +0 -1
- package/dist/post-components/p-ca3368b1.entry.js +0 -1
- package/dist/post-components/p-f355bf9c.js +0 -1
package/loaders/package.js
CHANGED
package/loaders/post-icon2.js
CHANGED
|
@@ -68,12 +68,26 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
68
68
|
this.setPath();
|
|
69
69
|
}
|
|
70
70
|
setPath() {
|
|
71
|
-
var _a, _b, _c, _d, _e
|
|
71
|
+
var _a, _b, _c, _d, _e;
|
|
72
72
|
// Construct icon path from different possible sources
|
|
73
73
|
const metaBase = (_b = (_a = document.head
|
|
74
74
|
.querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
|
|
75
75
|
const baseHref = (_c = document.getElementsByTagName('base')[0]) === null || _c === void 0 ? void 0 : _c.href;
|
|
76
|
-
|
|
76
|
+
let calculatedBase;
|
|
77
|
+
// If this.base or metaBase are relative, prefix them with the baseHref if it exists
|
|
78
|
+
const absolutePathReg = /^(?:[a-z+]+:)?\/\//i;
|
|
79
|
+
if (baseHref) {
|
|
80
|
+
if (this.base && !absolutePathReg.test(this.base)) {
|
|
81
|
+
calculatedBase = baseHref + this.base;
|
|
82
|
+
}
|
|
83
|
+
else if (metaBase && !absolutePathReg.test(metaBase)) {
|
|
84
|
+
calculatedBase = baseHref + metaBase;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
calculatedBase = (_d = this.base) !== null && _d !== void 0 ? _d : metaBase;
|
|
89
|
+
}
|
|
90
|
+
const fileBase = `${(_e = calculatedBase !== null && calculatedBase !== void 0 ? calculatedBase : baseHref) !== null && _e !== void 0 ? _e : CDN_URL}/`.replace(/\/\/$/, '/');
|
|
77
91
|
const fileName = `${this.name}.svg`;
|
|
78
92
|
const filePath = `${fileBase}${fileName}`;
|
|
79
93
|
this.path = new URL(filePath, window.location.origin).toString();
|
|
@@ -88,7 +102,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
88
102
|
})
|
|
89
103
|
.filter(([_key, value]) => value !== null)
|
|
90
104
|
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
91
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: '5703c51eda06d34af250a182b100a6bb85ce1dfb', "data-version": version }, h("span", { key: '918921da2a4ef82154d27d4a988c524deecb627b', style: svgStyles })));
|
|
92
106
|
}
|
|
93
107
|
get host() { return this; }
|
|
94
108
|
static get watchers() { return {
|
|
@@ -2039,7 +2039,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
`,E=null;function I(e){if(E===null)try{E=new CSSStyleSheet,E.replaceSync(C);}catch{E=!1;}if(E===!1){let t=document.createElement("style");t.textContent=C,e instanceof Document?e.head.prepend(t):e.prepend(t);}else e.adoptedStyleSheets=[E,...e.adoptedStyleSheets];}function K(){window.ToggleEvent=window.ToggleEvent||c;function e(n){return n?.includes(":popover-open")&&(n=n.replace(J,"$1.\\:popover-open")),n}f(Document.prototype,"querySelector",e),f(Document.prototype,"querySelectorAll",e),f(Element.prototype,"querySelector",e),f(Element.prototype,"querySelectorAll",e),f(Element.prototype,"matches",e),f(Element.prototype,"closest",e),f(DocumentFragment.prototype,"querySelectorAll",e),f(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let n=(this.getAttribute("popover")||"").toLowerCase();return n===""||n=="auto"?"auto":"manual"},set(n){this.setAttribute("popover",n);}},showPopover:{enumerable:!0,configurable:!0,value(){S(this);}},hidePopover:{enumerable:!0,configurable:!0,value(){m(this,!0,!0);}},togglePopover:{enumerable:!0,configurable:!0,value(n){h.get(this)==="showing"&&n===void 0||n===!1?m(this,!0,!0):(n===void 0||n===!0)&&S(this);}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(n){let s=t.call(this,n);return I(s),s}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let n=o.call(this);return n.shadowRoot&&I(n.shadowRoot),n}}});let r=new WeakMap;function i(n){Object.defineProperties(n.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(s){if(s===null)this.removeAttribute("popovertarget"),r.delete(this);else if(s instanceof Element)this.setAttribute("popovertarget",""),r.set(this,s);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let s=r.get(this);if(s&&s.isConnected)return s;if(s&&!s.isConnected)return r.delete(this),null;let u=v(this),w=this.getAttribute("popovertarget");return (u instanceof Document||u instanceof B)&&w&&u.getElementById(w)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let s=(this.getAttribute("popovertargetaction")||"").toLowerCase();return s==="show"||s==="hide"?s:"toggle"},set(s){this.setAttribute("popovertargetaction",s);}}});}i(HTMLButtonElement),i(HTMLInputElement);let l=n=>{if(!n.isTrusted)return;let s=n.composedPath()[0];if(!(s instanceof Element)||s?.shadowRoot)return;let u=v(s);if(!(u instanceof B||u instanceof Document))return;let w=s.closest("[popovertargetaction],[popovertarget]");if(w){O(w),n.preventDefault();return}},a=n=>{let s=n.key,u=n.target;!n.defaultPrevented&&u&&(s==="Escape"||s==="Esc")&&T(u.ownerDocument,!0,!0);};(n=>{n.addEventListener("click",l),n.addEventListener("keydown",a),n.addEventListener("pointerdown",x),n.addEventListener("pointerup",x);})(document),I(document);}j()||K();})();
|
|
2041
2041
|
|
|
2042
|
-
const postPopovercontainerCss = "@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";
|
|
2042
|
+
const postPopovercontainerCss = "@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer):not(:has(.arrow)){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12)}:where(post-popovercontainer):has(.arrow){filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.top){filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.left){filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.right){filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";
|
|
2043
2043
|
const PostPopovercontainerStyle0 = postPopovercontainerCss;
|
|
2044
2044
|
|
|
2045
2045
|
const SIDE_MAP = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.8.1",
|
|
4
4
|
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@floating-ui/dom": "1.6.8",
|
|
28
28
|
"@oddbird/popover-polyfill": "0.3.7",
|
|
29
|
-
"@swisspost/design-system-styles": "8.
|
|
29
|
+
"@swisspost/design-system-styles": "8.8.1",
|
|
30
30
|
"ally.js": "1.4.1",
|
|
31
31
|
"long-press-event": "2.5.0"
|
|
32
32
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tooltip}from"./p-4b11552d.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-6adeaa6c.js";import"./p-deb4131c.js";import"./p-440193f4.js";import"./p-611b3c41.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_accordion_item}from"./p-8294e4cb.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-247a1668.js";import"./p-deb4131c.js";import"./p-440193f4.js";import"./p-611b3c41.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_accordion}from"./p-9bbb4b31.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-247a1668.js";import"./p-611b3c41.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_alert}from"./p-335b61b5.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-2737eaf5.js";import"./p-deb4131c.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-b095519d.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,h as t,H as a,g as e}from"./p-343f6de1.js";import{c as o,d as n,a as s}from"./p-deb4131c.js";import{v as r}from"./p-f355bf9c.js";import{c as l}from"./p-b095519d.js";const c=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],m=class{constructor(t){i(this,t),this.svgStyles=void 0,this.svgOutput=void 0,this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(i=this.animation){void 0!==i&&o(i,c,`The post-icon "animation" prop requires one of the following values: ${c.join(", ")}.`)}validateBase(i=this.base){n(i,"string",'The post-icon "base" prop should be a string.')}validateFlipH(i=this.flipH){n(i,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(i=this.flipV){n(i,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(i=this.name){l(i,'The post-icon "name" prop is required!.'),s(i,"string",'The post-icon "name" prop should be a string.')}validateRotate(i=this.rotate){n(i,"number",'The post-icon "rotate" prop should be a number.')}validateScale(i=this.scale){n(i,"number",'The post-icon "scale" prop should be a number.')}componentDidLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}componentWillRender(){this.setPath()}setPath(){var i,t,a,e,o,n;const s=null!==(t=null===(i=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===i?void 0:i.getAttribute("data-post-icon-base"))&&void 0!==t?t:null,r=null===(a=document.getElementsByTagName("base")[0])||void 0===a?void 0:a.href,l=`${null!==(n=null!==(o=null!==(e=this.base)&&void 0!==e?e:s)&&void 0!==o?o:r)&&void 0!==n?n:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");this.path=new URL(`${l}${this.name}.svg`,window.location.origin).toString()}render(){const i=Object.entries({"-webkit-mask-image":`url('${this.path}')`,"mask-image":`url('${this.path}')`,transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([i,t])=>null!==t)).reduce(((i,[t,a])=>Object.assign(i,{[t]:a})),{});return t(a,{key:"4eff0b8a359adccaa1957983f24dd9d2b5cc465d","data-version":r},t("span",{key:"b84e20e26b501bb3c03a31beb908ece1c9dddfa5",style:i}))}get host(){return e(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};m.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";export{m as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tab_panel}from"./p-5224849a.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_icon}from"./p-7788e32b.js";import"./p-343f6de1.js";import"./p-deb4131c.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-f355bf9c.js";import"./p-b095519d.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_popovercontainer}from"./p-c45c94e1.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_popover}from"./p-75fbd75c.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-6adeaa6c.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,H as e,g as i}from"./p-343f6de1.js";import{v as o}from"./p-f355bf9c.js";import{H as a}from"./p-247a1668.js";import{c as r}from"./p-611b3c41.js";const c=class{constructor(s){t(this,s),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((s=>{s.setAttribute("heading-level",String(t))})))}componentWillLoad(){this.registerAccordionItems(),this.validateHeadingLevel()}collapseToggleHandler(t){t.stopPropagation();const s=t.target;if(s.closest("post-accordion")===this.host&&"post-accordion-item"===s.localName){const s=t.target,e=this.expandedItems.has(s);if(e?this.expandedItems.delete(s):this.expandedItems.add(s),this.multiple||e)return;Array.from(this.expandedItems.values()).filter((t=>t!==s)).forEach((t=>{t.toggle(!1)}))}}async toggle(t){const s=this.accordionItems.find((s=>s.id===t));if(!s)throw new Error(`No post-accordion-item found with id #${t}.`);await s.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,s)=>{this.multiple||0===s?this.expandedItems.add(t):t.setAttribute("collapsed","")}))}render(){return s(e,{key:"cfc6280e052937f50bc481fe73cf25ede6e40314","data-version":o},s("div",{key:"090539a2ebe9d216609a7e56597c5f379d439fb8",class:"accordion"},s("slot",{key:"4ae4095b14b6b9233f1d66c8543d625a77a77e09",onSlotchange:()=>this.registerAccordionItems()})))}get host(){return i(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};c.style=":host{display:block}";export{c as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tabs}from"./p-bd1e63f2.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-2737eaf5.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_card_control}from"./p-0cb9ade1.js";import"./p-343f6de1.js";import"./p-611b3c41.js";import"./p-b095519d.js";import"./p-440193f4.js";import"./p-f355bf9c.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_logo}from"./p-2a6389ed.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-deb4131c.js";import"./p-440193f4.js";import"./p-611b3c41.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tab_header}from"./p-6dac153a.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_tag}from"./p-97db1e5d.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{P as post_rating}from"./p-e509b0dd.js";import"./p-343f6de1.js";import"./p-f355bf9c.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o="8.7.1";export{o as v}
|