@swisspost/design-system-components 8.1.0 → 8.2.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-a1440961.js → index-01f30442.js} +13 -0
- package/dist/cjs/{index-baad16da.js → index-c15bd800.js} +43 -5
- package/dist/cjs/index.cjs.js +19 -17
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-fd539ea9.js → package-69bba137.js} +1 -1
- package/dist/cjs/{post-accordion-bebb0498.js → post-accordion-3da9563f.js} +2 -2
- package/dist/cjs/{post-accordion-item-b15bcbb9.js → post-accordion-item-57046b20.js} +3 -3
- package/dist/cjs/post-accordion-item.cjs.entry.js +4 -4
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-alert-4a1ab7e3.js → post-alert-54b0ed5d.js} +3 -3
- package/dist/cjs/post-alert.cjs.entry.js +4 -4
- package/dist/cjs/post-card-control-407e03b7.js +272 -0
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-trigger-b82b368e.js → post-collapsible-trigger-68e20fe1.js} +3 -3
- package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -4
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/{post-icon-36f7a65e.js → post-icon-0fb3e3a5.js} +3 -3
- package/dist/cjs/post-icon.cjs.entry.js +4 -4
- package/dist/cjs/post-logo-f4c77b1a.js +39 -0
- package/dist/cjs/post-logo.cjs.entry.js +14 -0
- package/dist/cjs/{post-popover-eb936464.js → post-popover-01193d5f.js} +3 -3
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-ba97a4b4.js → post-popovercontainer-d462f01b.js} +4 -4
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-1df2edf5.js → post-rating-49248453.js} +3 -3
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-52ce1af4.js → post-tab-header-01d91e1c.js} +3 -3
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-e94c9c58.js → post-tab-panel-9f29af4a.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-af38f271.js → post-tabs-0952f6c0.js} +28 -7
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-1dcddcae.js → post-tag-7afb5956.js} +4 -4
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-tooltip-1e8d5f4e.js → post-tooltip-2c85c40a.js} +4 -4
- package/dist/cjs/post-tooltip.cjs.entry.js +4 -4
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +23 -25
- package/dist/collection/components/post-logo/post-logo.css +1 -0
- package/dist/collection/components/post-logo/post-logo.js +73 -0
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +2 -2
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +6 -5
- package/dist/collection/components/post-tag/post-tag.css +1 -1
- package/dist/collection/components/post-tag/post-tag.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/component-on-ready.js +20 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/property-checkers/check-url.js +10 -0
- package/dist/collection/utils/property-checkers/index.js +3 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +13 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-card-control2.js +21 -64
- package/dist/components/post-logo.d.ts +11 -0
- package/dist/components/post-logo.js +6 -0
- package/dist/components/post-logo2.js +56 -0
- package/dist/components/post-popover2.js +1 -1
- package/dist/components/post-popovercontainer2.js +2 -2
- package/dist/components/post-rating2.js +1 -1
- package/dist/components/post-tab-header2.js +1 -1
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +26 -5
- package/dist/components/post-tag2.js +2 -2
- package/dist/components/post-tooltip2.js +1 -1
- package/dist/docs.json +64 -5
- package/dist/esm/{index-189d3985.js → index-0b56fc28.js} +43 -5
- package/dist/esm/{index-d1eba94c.js → index-f41b763f.js} +13 -1
- package/dist/esm/index.js +18 -17
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-8c58ace7.js → package-cc8df0dd.js} +1 -1
- package/dist/esm/{post-accordion-6b2f2b73.js → post-accordion-0997a59a.js} +2 -2
- package/dist/esm/{post-accordion-item-c8614cda.js → post-accordion-item-6ed597ee.js} +3 -3
- package/dist/esm/post-accordion-item.entry.js +4 -4
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-alert-de5e60d3.js → post-alert-a0eeba8b.js} +3 -3
- package/dist/esm/post-alert.entry.js +4 -4
- package/dist/esm/post-card-control-453166e5.js +270 -0
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/{post-collapsible-trigger-221d58c1.js → post-collapsible-trigger-ee4b6850.js} +3 -3
- package/dist/esm/post-collapsible_2.entry.js +4 -4
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/{post-icon-0f2f4f9b.js → post-icon-91683e26.js} +3 -3
- package/dist/esm/post-icon.entry.js +4 -4
- package/dist/esm/post-logo-3f8cf707.js +37 -0
- package/dist/esm/post-logo.entry.js +6 -0
- package/dist/esm/{post-popover-2e6ada87.js → post-popover-b44d91a2.js} +3 -3
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-0c396235.js → post-popovercontainer-23860260.js} +4 -4
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/{post-rating-fcf19507.js → post-rating-dfd43afc.js} +3 -3
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-75337bbc.js → post-tab-header-42bfc542.js} +3 -3
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-1ca4f5c9.js → post-tab-panel-233c4dc3.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-77ac9eee.js → post-tabs-fdea9439.js} +28 -7
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-9741c642.js → post-tag-98651c1c.js} +4 -4
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-tooltip-c69b7162.js → post-tooltip-f46b5e51.js} +4 -4
- package/dist/esm/post-tooltip.entry.js +4 -4
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-0e04f44b.entry.js +1 -0
- package/dist/post-components/{p-88fc0fa3.js → p-17b8b241.js} +1 -1
- package/dist/post-components/p-18c01d62.js +1 -0
- package/dist/post-components/{p-e4acf838.js → p-1a4ef000.js} +1 -1
- package/dist/post-components/{p-8a781b6e.js → p-213cfa52.js} +1 -1
- package/dist/post-components/p-30af6382.entry.js +1 -0
- package/dist/post-components/p-326709cb.js +1 -0
- package/dist/post-components/{p-1e374a42.js → p-35f06c3d.js} +1 -1
- package/dist/post-components/p-3749f35b.entry.js +1 -0
- package/dist/post-components/p-444824a1.entry.js +1 -0
- package/dist/post-components/{p-d2753c4a.js → p-4aef4c0b.js} +1 -1
- package/dist/post-components/p-4c229386.js +1 -0
- package/dist/post-components/{p-32713474.js → p-50bc322d.js} +1 -1
- package/dist/post-components/p-605b64b4.entry.js +1 -0
- package/dist/post-components/p-60cc57a5.entry.js +1 -0
- package/dist/post-components/p-660594c0.js +1 -0
- package/dist/post-components/p-7bf744e9.entry.js +1 -0
- package/dist/post-components/p-94d8f3d2.entry.js +1 -0
- package/dist/post-components/{p-38abadc5.js → p-968de7fe.js} +2 -2
- package/dist/post-components/p-b41129e7.entry.js +1 -0
- package/dist/post-components/p-b545df93.entry.js +1 -0
- package/dist/post-components/p-b5fa3ba0.entry.js +1 -0
- package/dist/post-components/{p-ed2b2d33.js → p-b96c35d4.js} +1 -1
- package/dist/post-components/{p-d36a5db5.js → p-bd339c2c.js} +1 -1
- package/dist/post-components/{p-2c424cd4.js → p-c0aa6d02.js} +1 -1
- package/dist/post-components/p-c4f5fa27.entry.js +1 -0
- package/dist/post-components/p-c998fdc9.entry.js +1 -0
- package/dist/post-components/p-cb757310.js +1 -0
- package/dist/post-components/p-d2912c01.entry.js +1 -0
- package/dist/post-components/p-d2f9de94.js +2 -0
- package/dist/post-components/p-deb4131c.js +1 -0
- package/dist/post-components/p-e00b4f0d.entry.js +1 -0
- package/dist/post-components/p-f04634da.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-card-control/post-card-control.d.ts +5 -7
- package/dist/types/components/post-logo/post-logo.d.ts +14 -0
- package/dist/types/components.d.ts +29 -8
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/component-on-ready.d.ts +6 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/property-checkers/check-url.d.ts +1 -0
- package/dist/types/utils/property-checkers/index.d.ts +2 -0
- package/loaders/attribute-observer.js +25 -0
- package/loaders/check-non-empty.js +9 -0
- package/loaders/check-one-of.js +6 -0
- package/loaders/check-type.js +14 -0
- package/loaders/constants.js +3 -0
- package/loaders/fade.js +7 -0
- package/loaders/heading-levels.js +3 -0
- package/loaders/index.d.ts +68 -0
- package/loaders/index.js +18 -0
- package/loaders/index2.js +34 -0
- package/loaders/package.js +3 -0
- package/loaders/post-accordion-item.d.ts +11 -0
- package/loaders/post-accordion-item.js +86 -0
- package/loaders/post-accordion.d.ts +11 -0
- package/loaders/post-accordion.js +128 -0
- package/loaders/post-alert.d.ts +11 -0
- package/loaders/post-alert.js +139 -0
- package/loaders/post-card-control.d.ts +11 -0
- package/loaders/post-card-control.js +306 -0
- package/loaders/post-collapsible-trigger.d.ts +11 -0
- package/loaders/post-collapsible-trigger.js +6 -0
- package/loaders/post-collapsible-trigger2.js +144 -0
- package/loaders/post-collapsible.d.ts +11 -0
- package/loaders/post-collapsible.js +6 -0
- package/loaders/post-collapsible2.js +103 -0
- package/loaders/post-icon.d.ts +11 -0
- package/loaders/post-icon.js +6 -0
- package/loaders/post-icon2.js +136 -0
- package/loaders/post-logo.d.ts +11 -0
- package/loaders/post-logo.js +59 -0
- package/loaders/post-popover.d.ts +11 -0
- package/loaders/post-popover.js +133 -0
- package/loaders/post-popovercontainer.d.ts +11 -0
- package/loaders/post-popovercontainer.js +6 -0
- package/loaders/post-popovercontainer2.js +2204 -0
- package/loaders/post-rating.d.ts +11 -0
- package/loaders/post-rating.js +116 -0
- package/loaders/post-tab-header.d.ts +11 -0
- package/loaders/post-tab-header.js +53 -0
- package/loaders/post-tab-panel.d.ts +11 -0
- package/loaders/post-tab-panel.js +45 -0
- package/loaders/post-tabs.d.ts +11 -0
- package/loaders/post-tabs.js +192 -0
- package/loaders/post-tag.d.ts +11 -0
- package/loaders/post-tag.js +77 -0
- package/loaders/post-tooltip.d.ts +11 -0
- package/loaders/post-tooltip.js +5000 -0
- package/package.json +12 -11
- package/dist/cjs/post-card-control-c363c793.js +0 -315
- package/dist/esm/post-card-control-38a302fe.js +0 -313
- package/dist/post-components/p-02d1f275.js +0 -1
- package/dist/post-components/p-28e17fd1.entry.js +0 -1
- package/dist/post-components/p-6dd5d5ba.entry.js +0 -1
- package/dist/post-components/p-726fec57.js +0 -1
- package/dist/post-components/p-7301b124.entry.js +0 -1
- package/dist/post-components/p-7bdec425.js +0 -1
- package/dist/post-components/p-7fc15b07.entry.js +0 -1
- package/dist/post-components/p-80f33a98.js +0 -1
- package/dist/post-components/p-8126cca3.entry.js +0 -1
- package/dist/post-components/p-8b86cde6.entry.js +0 -1
- package/dist/post-components/p-95b7403d.entry.js +0 -1
- package/dist/post-components/p-a0187d40.entry.js +0 -1
- package/dist/post-components/p-a5c8a3de.js +0 -1
- package/dist/post-components/p-a931e3c6.entry.js +0 -1
- package/dist/post-components/p-b5f7d9e5.entry.js +0 -1
- package/dist/post-components/p-b9176139.entry.js +0 -1
- package/dist/post-components/p-c0f265c8.js +0 -2
- package/dist/post-components/p-c88f169d.entry.js +0 -1
- package/dist/post-components/p-e6bc1a0c.entry.js +0 -1
- package/dist/post-components/p-ea2954f3.entry.js +0 -1
- package/dist/post-components/p-f91c0e1b.js +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { v as version } from './package.js';
|
|
3
|
+
import { d as checkEmptyOrUrl } from './index2.js';
|
|
4
|
+
|
|
5
|
+
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}";
|
|
6
|
+
const PostLogoStyle0 = postLogoCss;
|
|
7
|
+
|
|
8
|
+
const PostLogo = /*@__PURE__*/ proxyCustomElement(class PostLogo extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.url = undefined;
|
|
14
|
+
}
|
|
15
|
+
validateUrl() {
|
|
16
|
+
checkEmptyOrUrl(this.url, 'The "url" property of the post-logo is invalid');
|
|
17
|
+
}
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
this.validateUrl();
|
|
20
|
+
this.checkDescription();
|
|
21
|
+
}
|
|
22
|
+
checkDescription() {
|
|
23
|
+
if (!this.host.textContent) {
|
|
24
|
+
console.warn('Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
|
|
29
|
+
const LogoTag = logoLink ? 'a' : 'span';
|
|
30
|
+
return (h(Host, { key: 'c1d583f828a1f35ed482f1d1894354a503d8010e', "data-version": version }, h(LogoTag, Object.assign({ key: '61886ad3e388a6286e86b49a8ab150774e9e3d19', class: "logo" }, (logoLink ? { href: logoLink } : {})), h("span", { key: '88c01bbd0e146157ff2897300199717e8da1b2f0', class: "description" }, h("slot", { key: 'dccdd781dd6b6c78d9c8775a3f91765c6c4a8449', onSlotchange: () => this.checkDescription() })), h("svg", { key: '3f66dab4ca898d245759249828508adfa0ac92ea', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: 'bb5bb34aa56362a8805f6f97562825448d4ffac7', id: "Logo" }, h("rect", { key: '8bbee198611c558653cac3b31683beb9bc17c196', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '2ca797bd9ad0861b81b953e04626abb2d5cb7323', 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: 'eefa701f5f04ba0f0c04eb51748e62209e33ff06', 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" }))))));
|
|
31
|
+
}
|
|
32
|
+
get host() { return this; }
|
|
33
|
+
static get watchers() { return {
|
|
34
|
+
"url": ["validateUrl"]
|
|
35
|
+
}; }
|
|
36
|
+
static get style() { return PostLogoStyle0; }
|
|
37
|
+
}, [1, "post-logo", {
|
|
38
|
+
"url": [1]
|
|
39
|
+
}, undefined, {
|
|
40
|
+
"url": ["validateUrl"]
|
|
41
|
+
}]);
|
|
42
|
+
function defineCustomElement() {
|
|
43
|
+
if (typeof customElements === "undefined") {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const components = ["post-logo"];
|
|
47
|
+
components.forEach(tagName => { switch (tagName) {
|
|
48
|
+
case "post-logo":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
customElements.define(tagName, PostLogo);
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
} });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { PostLogo as P, defineCustomElement as d };
|
|
@@ -96,7 +96,7 @@ const PostPopover = /*@__PURE__*/ proxyCustomElement(class PostPopover extends H
|
|
|
96
96
|
this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '6fe379d071ec88a76f99cc10f0fdce0b2f079fbd', "data-version": version }, h("post-popovercontainer", { key: '3a5e2896e87e3f2d32c0ad9b1d80327cc585f289', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '46834ef6a3893fe8823776d8feb20a2fb328e3bc', class: "popover-container" }, h("div", { key: '9d61b678c2613e84efc0df805cbb67fbe3d06991', class: "popover-content" }, h("slot", { key: '1cfef5daaea3f6370869a3ae648ff36e2dddd82a' })), h("button", { key: 'c7a2e12ece46ee63d8004d99427c8c6febc2dc17', class: "btn-close", onClick: () => this.hide() }, h("span", { key: '1aee8ffe06b5c4c9bade0185a8832328410fbe4a', class: "visually-hidden" }, this.closeButtonCaption))))));
|
|
100
100
|
}
|
|
101
101
|
get host() { return this; }
|
|
102
102
|
static get style() { return PostPopoverStyle0; }
|
|
@@ -2174,9 +2174,9 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
|
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
2176
2176
|
render() {
|
|
2177
|
-
return (h(Host, { key: '
|
|
2177
|
+
return (h(Host, { key: 'daf21d119057a14c2c2f68b8068901ab698beae3', "data-version": version }, this.arrow && (h("span", { key: '4f5cfb1422217f9ef71732cdfc0c97b6b29e4809', class: "arrow", ref: el => {
|
|
2178
2178
|
this.arrowRef = el;
|
|
2179
|
-
} })), h("slot", { key: '
|
|
2179
|
+
} })), h("slot", { key: 'f6e4beefb8e365dbf20a0a5019cceaac4ecb73a4' })));
|
|
2180
2180
|
}
|
|
2181
2181
|
get host() { return this; }
|
|
2182
2182
|
static get style() { return PostPopovercontainerStyle0; }
|
|
@@ -74,7 +74,7 @@ const PostRating = /*@__PURE__*/ proxyCustomElement(class PostRating extends HTM
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '0a4972eeedcda4d4f772db0407ba2a6279f5d797', "data-version": version }, h("div", { key: 'a9ab9daaa3f9e1e421f28267057b99a1a2e235ee', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
78
78
|
'star': true,
|
|
79
79
|
'before-hover': i < this.hoveredIndex,
|
|
80
80
|
'active': i < Math.round(this.currentRating),
|
|
@@ -20,7 +20,7 @@ const PostTabHeader = /*@__PURE__*/ proxyCustomElement(class PostTabHeader exten
|
|
|
20
20
|
this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '35077e5514ffd19a4fb27bc3a4c1d9d19072768b', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '67b09864a209c00c677e1c279240d9b4ca289faa' })));
|
|
24
24
|
}
|
|
25
25
|
get host() { return this; }
|
|
26
26
|
static get watchers() { return {
|
|
@@ -17,7 +17,7 @@ const PostTabPanel = /*@__PURE__*/ proxyCustomElement(class PostTabPanel extends
|
|
|
17
17
|
this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '2d01a8e7f06e45b4750e63584a3c52232dee4dd5', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: 'b51e2f112791ac22df43ebb537208c65aebe3d03' })));
|
|
21
21
|
}
|
|
22
22
|
get host() { return this; }
|
|
23
23
|
static get style() { return PostTabPanelStyle0; }
|
|
@@ -2,6 +2,27 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { v as version } from './package.js';
|
|
3
3
|
import { f as fadeOut, a as fadeIn } from './fade.js';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Invoke the `componentOnReady` method if it is available, simulate it otherwise
|
|
7
|
+
* @see https://stenciljs.com/docs/api#componentonready
|
|
8
|
+
*/
|
|
9
|
+
const componentOnReady = (el) => {
|
|
10
|
+
if (typeof el.componentOnReady === 'function') {
|
|
11
|
+
return el.componentOnReady();
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return new Promise(resolve => customOnReady(() => {
|
|
15
|
+
resolve(el);
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
const customOnReady = (callback) => {
|
|
20
|
+
if (typeof requestAnimationFrame === 'function') {
|
|
21
|
+
return requestAnimationFrame(callback);
|
|
22
|
+
}
|
|
23
|
+
return setTimeout(callback);
|
|
24
|
+
};
|
|
25
|
+
|
|
5
26
|
const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}";
|
|
6
27
|
const PostTabsStyle0 = postTabsCss;
|
|
7
28
|
|
|
@@ -68,7 +89,7 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
|
|
|
68
89
|
if (!this.tabs)
|
|
69
90
|
return;
|
|
70
91
|
this.tabs.forEach(async (tab) => {
|
|
71
|
-
await
|
|
92
|
+
await componentOnReady(tab);
|
|
72
93
|
// if the tab has an "aria-controls" attribute it was already linked to its panel: do nothing
|
|
73
94
|
if (tab.getAttribute('aria-controls'))
|
|
74
95
|
return;
|
|
@@ -84,9 +105,9 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
|
|
|
84
105
|
void this.show(tab.panel);
|
|
85
106
|
}
|
|
86
107
|
});
|
|
87
|
-
tab.addEventListener('keydown', (
|
|
88
|
-
if (key === 'ArrowRight' || key === 'ArrowLeft')
|
|
89
|
-
this.navigateTabs(tab, key);
|
|
108
|
+
tab.addEventListener('keydown', (e) => {
|
|
109
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft')
|
|
110
|
+
this.navigateTabs(tab, e.key);
|
|
90
111
|
});
|
|
91
112
|
});
|
|
92
113
|
// if the currently active tab was removed from the DOM then select the first one
|
|
@@ -143,7 +164,7 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
|
|
|
143
164
|
nextTab.focus();
|
|
144
165
|
}
|
|
145
166
|
render() {
|
|
146
|
-
return (h(Host, { key: '
|
|
167
|
+
return (h(Host, { key: '6a3e84a92b03d462dbff1b8fc638f7ebf8ea9d23', "data-version": version }, h("div", { key: 'e73b58f1524e70401089830b1b9b47a2c85b828a', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '9da5ce2d30d37c74dee92f2e871e56e96d07d429', class: "tabs", role: "tablist" }, h("slot", { key: '944e209f2f23b9a3469bc6b5167a0939da4c9631', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '93caabfd1a0be19df3e8be64f0965de488159526', class: "tab-content", part: "content" }, h("slot", { key: '92465fa749afad52130631cb3957fefeb40b8e9a', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
147
168
|
}
|
|
148
169
|
get host() { return this; }
|
|
149
170
|
static get style() { return PostTabsStyle0; }
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { v as version } from './package.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './post-icon2.js';
|
|
4
4
|
|
|
5
|
-
const postTagCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:
|
|
5
|
+
const postTagCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:1.5rem}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
|
|
6
6
|
const PostTagStyle0 = postTagCss;
|
|
7
7
|
|
|
8
8
|
const PostTag = /*@__PURE__*/ proxyCustomElement(class PostTag extends HTMLElement {
|
|
@@ -35,7 +35,7 @@ const PostTag = /*@__PURE__*/ proxyCustomElement(class PostTag extends HTMLEleme
|
|
|
35
35
|
this.setClasses();
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '7426002d3008de53e92edc8ec2fc759569b191bf', "data-version": version }, h("div", { key: '1cde8f5c3d2db66f45aaa64091a1b76f1d1468ee', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: 'cc63b7277ba4f4076a46f5038b24699f6818c81b', class: "tag-text" }, h("slot", { key: '37b57632add7f7c093e42302e44defef63ccc29f' })))));
|
|
39
39
|
}
|
|
40
40
|
get host() { return this; }
|
|
41
41
|
static get watchers() { return {
|
|
@@ -4958,7 +4958,7 @@ const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends H
|
|
|
4958
4958
|
}
|
|
4959
4959
|
render() {
|
|
4960
4960
|
const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
|
|
4961
|
-
return (h(Host, { key: '
|
|
4961
|
+
return (h(Host, { key: 'f543fa8f63cc6b65e1a86e34b1a59b4ca0bb9e47', "data-version": version$1, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: 'e920d62462d209ff25593f7989ca16f6177b7292', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: '607d7357cb201c7e6e62f9a241392bd5ef1f156e' }))));
|
|
4962
4962
|
}
|
|
4963
4963
|
get host() { return this; }
|
|
4964
4964
|
static get watchers() { return {
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-09-11T12:35:00",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.19.2",
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
"mutable": true,
|
|
619
619
|
"attr": "checked",
|
|
620
620
|
"reflectToAttr": false,
|
|
621
|
-
"docs": "Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms data.",
|
|
621
|
+
"docs": "Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms' data.",
|
|
622
622
|
"docsTags": [],
|
|
623
623
|
"default": "false",
|
|
624
624
|
"values": [
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
"mutable": true,
|
|
663
663
|
"attr": "disabled",
|
|
664
664
|
"reflectToAttr": false,
|
|
665
|
-
"docs": "Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms data.",
|
|
665
|
+
"docs": "Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms' data.",
|
|
666
666
|
"docsTags": [],
|
|
667
667
|
"default": "false",
|
|
668
668
|
"values": [
|
|
@@ -684,7 +684,7 @@
|
|
|
684
684
|
"mutable": false,
|
|
685
685
|
"attr": "icon",
|
|
686
686
|
"reflectToAttr": false,
|
|
687
|
-
"docs": "Defines the icon `name` inside
|
|
687
|
+
"docs": "Defines the icon `name` inside the card.\n<span className=\"alert alert-sm alert-info\">If not set the icon will not show up.</span>",
|
|
688
688
|
"docsTags": [],
|
|
689
689
|
"default": "null",
|
|
690
690
|
"values": [
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
"mutable": true,
|
|
776
776
|
"attr": "validity",
|
|
777
777
|
"reflectToAttr": false,
|
|
778
|
-
"docs": "Defines the validation `validity` of the control.\nTo reset validity to an
|
|
778
|
+
"docs": "Defines the validation `validity` of the control.\nTo reset validity to an undefined state, simply remove the attribute from the control.",
|
|
779
779
|
"docsTags": [],
|
|
780
780
|
"default": "null",
|
|
781
781
|
"values": [
|
|
@@ -1313,6 +1313,65 @@
|
|
|
1313
1313
|
]
|
|
1314
1314
|
}
|
|
1315
1315
|
},
|
|
1316
|
+
{
|
|
1317
|
+
"filePath": "src/components/post-logo/post-logo.tsx",
|
|
1318
|
+
"encapsulation": "shadow",
|
|
1319
|
+
"tag": "post-logo",
|
|
1320
|
+
"readme": "# post-logo\n\n\n",
|
|
1321
|
+
"docs": "",
|
|
1322
|
+
"docsTags": [
|
|
1323
|
+
{
|
|
1324
|
+
"name": "slot",
|
|
1325
|
+
"text": "default - Slot for placing hidden descriptive text. If `url` is set, this text will serve as the accessible name of the link; otherwise, it will be used as the title of the SVG."
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
1328
|
+
"usage": {},
|
|
1329
|
+
"props": [
|
|
1330
|
+
{
|
|
1331
|
+
"name": "url",
|
|
1332
|
+
"type": "URL | string",
|
|
1333
|
+
"complexType": {
|
|
1334
|
+
"original": "string | URL",
|
|
1335
|
+
"resolved": "URL | string",
|
|
1336
|
+
"references": {
|
|
1337
|
+
"URL": {
|
|
1338
|
+
"location": "global",
|
|
1339
|
+
"id": "global::URL"
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"mutable": false,
|
|
1344
|
+
"attr": "url",
|
|
1345
|
+
"reflectToAttr": false,
|
|
1346
|
+
"docs": "The URL to which the user is redirected upon clicking the logo.",
|
|
1347
|
+
"docsTags": [],
|
|
1348
|
+
"values": [
|
|
1349
|
+
{
|
|
1350
|
+
"type": "URL"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"type": "string"
|
|
1354
|
+
}
|
|
1355
|
+
],
|
|
1356
|
+
"optional": false,
|
|
1357
|
+
"required": false
|
|
1358
|
+
}
|
|
1359
|
+
],
|
|
1360
|
+
"methods": [],
|
|
1361
|
+
"events": [],
|
|
1362
|
+
"listeners": [],
|
|
1363
|
+
"styles": [],
|
|
1364
|
+
"slots": [
|
|
1365
|
+
{
|
|
1366
|
+
"name": "default",
|
|
1367
|
+
"docs": "Slot for placing hidden descriptive text. If `url` is set, this text will serve as the accessible name of the link; otherwise, it will be used as the title of the SVG."
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"parts": [],
|
|
1371
|
+
"dependents": [],
|
|
1372
|
+
"dependencies": [],
|
|
1373
|
+
"dependencyGraph": {}
|
|
1374
|
+
},
|
|
1316
1375
|
{
|
|
1317
1376
|
"filePath": "src/components/post-popover/post-popover.tsx",
|
|
1318
1377
|
"encapsulation": "shadow",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'post-components';
|
|
2
|
-
const BUILD = /* post-components */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg:
|
|
2
|
+
const BUILD = /* post-components */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -68,6 +68,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
68
68
|
return import(
|
|
69
69
|
/* webpackMode: "lazy" */
|
|
70
70
|
'./post-card-control.entry.js').then(processMod, consoleError);
|
|
71
|
+
case 'post-logo':
|
|
72
|
+
return import(
|
|
73
|
+
/* webpackMode: "lazy" */
|
|
74
|
+
'./post-logo.entry.js').then(processMod, consoleError);
|
|
71
75
|
case 'post-popover':
|
|
72
76
|
return import(
|
|
73
77
|
/* webpackMode: "lazy" */
|
|
@@ -128,6 +132,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
128
132
|
var styles = /* @__PURE__ */ new Map();
|
|
129
133
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
130
134
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
135
|
+
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
131
136
|
var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [
|
|
132
137
|
"formAssociatedCallback",
|
|
133
138
|
"formResetCallback",
|
|
@@ -208,6 +213,8 @@ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
|
208
213
|
|
|
209
214
|
// src/utils/constants.ts
|
|
210
215
|
var EMPTY_OBJ = {};
|
|
216
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
217
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
211
218
|
|
|
212
219
|
// src/utils/helpers.ts
|
|
213
220
|
var isDef = (v) => v != null;
|
|
@@ -567,15 +574,26 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
567
574
|
} catch (e) {
|
|
568
575
|
}
|
|
569
576
|
}
|
|
577
|
+
let xlink = false;
|
|
578
|
+
{
|
|
579
|
+
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
580
|
+
memberName = ln;
|
|
581
|
+
xlink = true;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
570
584
|
if (newValue == null || newValue === false) {
|
|
571
585
|
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
572
|
-
{
|
|
586
|
+
if (xlink) {
|
|
587
|
+
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
588
|
+
} else {
|
|
573
589
|
elm.removeAttribute(memberName);
|
|
574
590
|
}
|
|
575
591
|
}
|
|
576
592
|
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
577
593
|
newValue = newValue === true ? "" : newValue;
|
|
578
|
-
{
|
|
594
|
+
if (xlink) {
|
|
595
|
+
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
596
|
+
} else {
|
|
579
597
|
elm.setAttribute(memberName, newValue);
|
|
580
598
|
}
|
|
581
599
|
}
|
|
@@ -651,9 +669,16 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
651
669
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
652
670
|
elm = newVNode2.$elm$ = doc.createTextNode("");
|
|
653
671
|
} else {
|
|
654
|
-
|
|
672
|
+
if (!isSvgMode) {
|
|
673
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
674
|
+
}
|
|
675
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
676
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
655
677
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
656
|
-
);
|
|
678
|
+
) ;
|
|
679
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
680
|
+
isSvgMode = false;
|
|
681
|
+
}
|
|
657
682
|
{
|
|
658
683
|
updateElement(null, newVNode2, isSvgMode);
|
|
659
684
|
}
|
|
@@ -668,6 +693,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
668
693
|
}
|
|
669
694
|
}
|
|
670
695
|
}
|
|
696
|
+
{
|
|
697
|
+
if (newVNode2.$tag$ === "svg") {
|
|
698
|
+
isSvgMode = false;
|
|
699
|
+
} else if (elm.tagName === "foreignObject") {
|
|
700
|
+
isSvgMode = true;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
671
703
|
}
|
|
672
704
|
elm["s-hn"] = hostTagName;
|
|
673
705
|
{
|
|
@@ -862,6 +894,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
862
894
|
const text = newVNode2.$text$;
|
|
863
895
|
let defaultHolder;
|
|
864
896
|
if (text === null) {
|
|
897
|
+
{
|
|
898
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
899
|
+
}
|
|
865
900
|
{
|
|
866
901
|
if (tag === "slot" && !useNativeShadowDom) ; else {
|
|
867
902
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
@@ -877,6 +912,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
877
912
|
} else if (oldChildren !== null) {
|
|
878
913
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
879
914
|
}
|
|
915
|
+
if (isSvgMode && tag === "svg") {
|
|
916
|
+
isSvgMode = false;
|
|
917
|
+
}
|
|
880
918
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
881
919
|
defaultHolder.parentNode.textContent = text;
|
|
882
920
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -27,8 +27,20 @@ function checkType(value, type, error) {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
function checkUrl(value, error) {
|
|
31
|
+
if (typeof value !== 'string' && !(value instanceof URL))
|
|
32
|
+
throw new Error(error);
|
|
33
|
+
try {
|
|
34
|
+
new URL(value);
|
|
35
|
+
}
|
|
36
|
+
catch (e) {
|
|
37
|
+
throw new Error(error);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
30
41
|
const checkEmptyOrOneOf = emptyOr(checkOneOf);
|
|
31
42
|
const checkEmptyOrPattern = emptyOr(checkPattern);
|
|
32
43
|
const checkEmptyOrType = emptyOr(checkType);
|
|
44
|
+
const checkEmptyOrUrl = emptyOr(checkUrl);
|
|
33
45
|
|
|
34
|
-
export { checkType as a, checkEmptyOrPattern as b, checkEmptyOrOneOf as c, checkEmptyOrType as d };
|
|
46
|
+
export { checkType as a, checkEmptyOrPattern as b, checkEmptyOrOneOf as c, checkEmptyOrType as d, checkEmptyOrUrl as e };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
export { P as PostAccordion } from './post-accordion-
|
|
2
|
-
export { P as PostAccordionItem } from './post-accordion-item-
|
|
3
|
-
export { P as PostAlert } from './post-alert-
|
|
4
|
-
export { P as PostCardControl } from './post-card-control-
|
|
5
|
-
export { P as PostCollapsible, a as PostCollapsibleTrigger } from './post-collapsible-trigger-
|
|
6
|
-
export { P as PostIcon } from './post-icon-
|
|
7
|
-
export { P as
|
|
8
|
-
export { P as
|
|
9
|
-
export { P as
|
|
10
|
-
export { P as
|
|
11
|
-
export { P as
|
|
12
|
-
export { P as
|
|
13
|
-
export { P as
|
|
14
|
-
export { P as
|
|
15
|
-
|
|
16
|
-
import './
|
|
1
|
+
export { P as PostAccordion } from './post-accordion-0997a59a.js';
|
|
2
|
+
export { P as PostAccordionItem } from './post-accordion-item-6ed597ee.js';
|
|
3
|
+
export { P as PostAlert } from './post-alert-a0eeba8b.js';
|
|
4
|
+
export { P as PostCardControl } from './post-card-control-453166e5.js';
|
|
5
|
+
export { P as PostCollapsible, a as PostCollapsibleTrigger } from './post-collapsible-trigger-ee4b6850.js';
|
|
6
|
+
export { P as PostIcon } from './post-icon-91683e26.js';
|
|
7
|
+
export { P as PostLogo } from './post-logo-3f8cf707.js';
|
|
8
|
+
export { P as PostPopover } from './post-popover-b44d91a2.js';
|
|
9
|
+
export { P as PostPopovercontainer } from './post-popovercontainer-23860260.js';
|
|
10
|
+
export { P as PostRating } from './post-rating-dfd43afc.js';
|
|
11
|
+
export { P as PostTabs } from './post-tabs-fdea9439.js';
|
|
12
|
+
export { P as PostTabHeader } from './post-tab-header-42bfc542.js';
|
|
13
|
+
export { P as PostTabPanel } from './post-tab-panel-233c4dc3.js';
|
|
14
|
+
export { P as PostTooltip } from './post-tooltip-f46b5e51.js';
|
|
15
|
+
export { P as PostTag } from './post-tag-98651c1c.js';
|
|
16
|
+
import './index-0b56fc28.js';
|
|
17
|
+
import './package-cc8df0dd.js';
|
|
17
18
|
import './heading-levels-5b7b4349.js';
|
|
18
19
|
import './check-one-of-6b3ef8eb.js';
|
|
19
|
-
import './index-
|
|
20
|
+
import './index-f41b763f.js';
|
|
20
21
|
import './constants-8d548297.js';
|
|
21
22
|
import './fade-7fd71785.js';
|
|
22
23
|
import './check-non-empty-58bd6b17.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-0b56fc28.js';
|
|
2
|
+
export { s as setNonce } from './index-0b56fc28.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-card-control",[[65,"post-card-control",{"label":[1],"description":[1],"type":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[1028],"validity":[1025],"icon":[1],"focused":[32],"reset":[64],"groupReset":[64]},null,{"label":["validateControlLabel"],"type":["validateControlType"],"checked":["updateControlChecked"],"disabled":["
|
|
8
|
+
return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-card-control",[[65,"post-card-control",{"label":[1],"description":[1],"type":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[1028],"validity":[1025],"icon":[1],"focused":[32],"reset":[64],"groupReset":[64]},null,{"label":["validateControlLabel"],"type":["validateControlType"],"checked":["updateControlChecked"],"disabled":["updateControlDisabled"]}]]],["post-popovercontainer",[[4,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"delayed":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"delayed":["validateDelayed"]}]]],["post-accordion",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-logo",[[1,"post-logo",{"url":[1]},null,{"url":["validateUrl"]}]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible_2",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}],[0,"post-collapsible-trigger",{"for":[1],"update":[64]},null,{"for":["setAriaAttributes"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as version } from './package-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0b56fc28.js';
|
|
2
|
+
import { v as version } from './package-cc8df0dd.js';
|
|
3
3
|
import { H as HEADING_LEVELS } from './heading-levels-5b7b4349.js';
|
|
4
4
|
import { c as checkOneOf } from './check-one-of-6b3ef8eb.js';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { v as version } from './package-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-0b56fc28.js';
|
|
2
|
+
import { v as version } from './package-cc8df0dd.js';
|
|
3
3
|
import { H as HEADING_LEVELS } from './heading-levels-5b7b4349.js';
|
|
4
|
-
import { c as checkEmptyOrOneOf } from './index-
|
|
4
|
+
import { c as checkEmptyOrOneOf } from './index-f41b763f.js';
|
|
5
5
|
|
|
6
6
|
const postAccordionItemCss = "post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-bg-opacity:1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-nightblue:#004976;--post-nightblue-bright:#0076a8;--post-petrol:#006d68;--post-petrol-bright:#00968f;--post-coral:#9e2a2f;--post-coral-bright:#e03c31;--post-olive:#716135;--post-olive-bright:#aa9d2e;--post-purple:#80276c;--post-purple-bright:#c5299b;--post-aubergine:#523178;--post-aubergine-bright:#7566a0;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222;--post-nightblue-rgb:0, 73, 118;--post-nightblue-bright-rgb:0, 118, 168;--post-petrol-rgb:0, 109, 104;--post-petrol-bright-rgb:0, 150, 143;--post-coral-rgb:158, 42, 47;--post-coral-bright-rgb:224, 60, 49;--post-olive-rgb:113, 97, 53;--post-olive-bright-rgb:170, 157, 46;--post-purple-rgb:128, 39, 108;--post-purple-bright-rgb:197, 41, 155;--post-aubergine-rgb:82, 49, 120;--post-aubergine-bright-rgb:117, 102, 160}.accordion-item{--post-bg-rgb:244, 243, 241;border-block:2px solid #666}.bg-yellow .accordion-item{--post-bg-rgb:255, 255, 255}.bg-white .accordion-item{--post-bg-rgb:244, 243, 241}.bg-light .accordion-item{--post-bg-rgb:255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb:255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb:255, 255, 255}.bg-black .accordion-item{--post-bg-rgb:255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-secondary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error .accordion-item{--post-bg-rgb:255, 255, 255}.bg-info .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine-bright .accordion-item{--post-bg-rgb:255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;outline:none;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-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 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:400}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-secondary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}:host(:not(:first-of-type)) .accordion-item{border-block-start:0}";
|
|
7
7
|
const PostAccordionItemStyle0 = postAccordionItemCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { P as post_accordion_item } from './post-accordion-item-
|
|
2
|
-
import './index-
|
|
3
|
-
import './package-
|
|
1
|
+
export { P as post_accordion_item } from './post-accordion-item-6ed597ee.js';
|
|
2
|
+
import './index-0b56fc28.js';
|
|
3
|
+
import './package-cc8df0dd.js';
|
|
4
4
|
import './heading-levels-5b7b4349.js';
|
|
5
|
-
import './index-
|
|
5
|
+
import './index-f41b763f.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
7
7
|
import './check-one-of-6b3ef8eb.js';
|