@swisspost/design-system-components 7.3.1 → 7.4.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 -17
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-53cbf42f.js → package-71dcbbc9.js} +1 -1
- package/dist/cjs/{post-accordion-605d195b.js → post-accordion-2e943f0a.js} +1 -1
- package/dist/cjs/{post-accordion-item-7ef44a1d.js → post-accordion-item-d1fcd3f9.js} +4 -5
- 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-bd5a1e4e.js → post-alert-966b3652.js} +1 -1
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-53c3d28b.js → post-card-control-e2cf1596.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-cd75e40d.js → post-collapsible-cff3bb05.js} +11 -13
- package/dist/cjs/post-collapsible-trigger-e5616d29.js +115 -0
- package/dist/cjs/post-collapsible-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-icon-d48388ba.js → post-icon-6985373c.js} +1 -1
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-a069b3b4.js → post-popover-1282c9b2.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-6ba9ea5a.js → post-popovercontainer-776f4985.js} +1 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-8ef7415c.js → post-rating-98917b60.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-bbffefab.js → post-tab-header-63ea6bb6.js} +2 -2
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-47161846.js → post-tab-panel-01d55249.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-818dea1a.js → post-tabs-7ec0c376.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-df4341a7.js → post-tag-92eaefd1.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-79da02f1.js → post-tooltip-69ba6116.js} +11 -6
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -3
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +7 -9
- package/dist/collection/components/post-collapsible/post-collapsible.js +12 -14
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +5 -7
- package/dist/components/post-collapsible-trigger2.js +2 -188167
- package/dist/components/post-collapsible2.js +12 -14
- package/dist/components/post-tab-header2.js +1 -1
- package/dist/components/post-tooltip2.js +6 -1
- package/dist/docs.json +6 -6
- package/dist/esm/index.js +16 -17
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-69bb682d.js → package-130b6199.js} +1 -1
- package/dist/esm/{post-accordion-72c9f9ab.js → post-accordion-01612666.js} +1 -1
- package/dist/esm/{post-accordion-item-41ec1425.js → post-accordion-item-e2e83306.js} +4 -5
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-alert-8b7ad6b5.js → post-alert-e7b70927.js} +1 -1
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-card-control-cc8a0a71.js → post-card-control-262467c4.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-0843e3b2.js → post-collapsible-301ba5ad.js} +11 -13
- package/dist/esm/post-collapsible-trigger-964d5490.js +113 -0
- package/dist/esm/post-collapsible-trigger.entry.js +2 -2
- package/dist/esm/post-collapsible.entry.js +2 -2
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/{post-icon-2ece5353.js → post-icon-46602aa6.js} +1 -1
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-popover-54f23917.js → post-popover-927903a2.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-0da2336b.js → post-popovercontainer-348970cd.js} +1 -1
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/{post-rating-89feb730.js → post-rating-a1832399.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-8f531b2d.js → post-tab-header-9d6e4d52.js} +2 -2
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-5d3cf744.js → post-tab-panel-0870e77c.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-d8ffb9fc.js → post-tabs-3b8719a9.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-50b397fb.js → post-tag-695a9337.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-68e640ea.js → post-tooltip-8486e928.js} +7 -2
- package/dist/esm/post-tooltip.entry.js +2 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-0026e697.js +1 -0
- package/dist/post-components/{p-07d804f9.js → p-33dd9887.js} +1 -1
- package/dist/post-components/{p-f182a1ec.js → p-3d1fd819.js} +1 -1
- package/dist/post-components/{p-bfced2a9.js → p-458d8198.js} +3 -3
- package/dist/post-components/p-4806190f.entry.js +1 -0
- package/dist/post-components/{p-5b029cef.js → p-48fcde73.js} +1 -1
- package/dist/post-components/p-49100c44.js +1 -0
- package/dist/post-components/{p-7ae5e122.js → p-50fdd908.js} +1 -1
- package/dist/post-components/p-51bb8d8c.entry.js +1 -0
- package/dist/post-components/p-5bfe2065.entry.js +1 -0
- package/dist/post-components/p-5cdfdfed.entry.js +1 -0
- package/dist/post-components/p-627e0231.js +1 -0
- package/dist/post-components/p-6cac6cc0.entry.js +1 -0
- package/dist/post-components/p-6f325f35.entry.js +1 -0
- package/dist/post-components/p-7755c753.entry.js +1 -0
- package/dist/post-components/{p-1fdb9650.js → p-811910a2.js} +1 -1
- package/dist/post-components/p-8386ab9c.js +1 -0
- package/dist/post-components/p-8dc5e169.entry.js +1 -0
- package/dist/post-components/{p-089ae111.js → p-9828b437.js} +1 -1
- package/dist/post-components/{p-10312d6a.js → p-a747b0b7.js} +1 -1
- package/dist/post-components/{p-52689eda.js → p-acec5895.js} +1 -1
- package/dist/post-components/p-b1b2f9ee.entry.js +1 -0
- package/dist/post-components/{p-7b552d03.js → p-b91ff66f.js} +1 -1
- package/dist/post-components/p-bb764dd3.entry.js +1 -0
- package/dist/post-components/p-bdc9668f.entry.js +1 -0
- package/dist/post-components/p-c6e4522d.js +1 -0
- package/dist/post-components/p-c860a676.entry.js +1 -0
- package/dist/post-components/p-e1456b01.entry.js +1 -0
- package/dist/post-components/p-f31d7fcb.entry.js +1 -0
- package/dist/post-components/p-f52a3908.entry.js +1 -0
- package/dist/post-components/{p-c864d978.js → p-feb6ff21.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -3
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +3 -4
- package/dist/types/components.d.ts +4 -4
- package/package.json +2 -2
- package/dist/cjs/_commonjsHelpers-8f2c79cd.js +0 -31
- package/dist/cjs/post-collapsible-trigger-ed6c0795.js +0 -188280
- package/dist/components/_commonjsHelpers.js +0 -26
- package/dist/esm/_commonjsHelpers-24671825.js +0 -26
- package/dist/esm/post-collapsible-trigger-84e583ca.js +0 -188278
- package/dist/post-components/p-0c187871.entry.js +0 -1
- package/dist/post-components/p-1a5c4d94.entry.js +0 -1
- package/dist/post-components/p-3321c9c3.entry.js +0 -1
- package/dist/post-components/p-49e1201f.entry.js +0 -1
- package/dist/post-components/p-5307d14c.js +0 -1
- package/dist/post-components/p-55c84c0e.entry.js +0 -1
- package/dist/post-components/p-5a9ac1ae.entry.js +0 -1
- package/dist/post-components/p-5ab360e7.entry.js +0 -1
- package/dist/post-components/p-6b9f6348.js +0 -1
- package/dist/post-components/p-6fc42a7d.js +0 -1
- package/dist/post-components/p-711b21e6.js +0 -1
- package/dist/post-components/p-756f9aa2.entry.js +0 -1
- package/dist/post-components/p-7c38df68.entry.js +0 -1
- package/dist/post-components/p-94c3e483.js +0 -20
- package/dist/post-components/p-992dbdb4.entry.js +0 -1
- package/dist/post-components/p-b91cf0cd.entry.js +0 -1
- package/dist/post-components/p-b921895c.entry.js +0 -1
- package/dist/post-components/p-bb0366cd.entry.js +0 -1
- package/dist/post-components/p-e4ac3e01.entry.js +0 -1
- package/dist/post-components/p-f0fbe328.entry.js +0 -1
- package/dist/post-components/p-ff86b519.js +0 -1
|
@@ -37,15 +37,12 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
|
|
|
37
37
|
this.isOpen = true;
|
|
38
38
|
this.collapsed = false;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
checkEmptyOrType(
|
|
42
|
-
|
|
43
|
-
connectedCallback() {
|
|
44
|
-
this.validateCollapsed();
|
|
40
|
+
collapsedChange() {
|
|
41
|
+
checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
|
|
42
|
+
void this.toggle(!this.collapsed);
|
|
45
43
|
}
|
|
46
44
|
componentDidLoad() {
|
|
47
|
-
|
|
48
|
-
void this.toggle(false);
|
|
45
|
+
this.collapsedChange();
|
|
49
46
|
this.isLoaded = true;
|
|
50
47
|
this.updateTriggers();
|
|
51
48
|
}
|
|
@@ -57,15 +54,16 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
|
|
|
57
54
|
async toggle(open = !this.isOpen) {
|
|
58
55
|
if (open === this.isOpen)
|
|
59
56
|
return open;
|
|
60
|
-
this.isOpen =
|
|
57
|
+
this.isOpen = open;
|
|
58
|
+
this.collapsed = !open;
|
|
61
59
|
if (this.isLoaded)
|
|
62
|
-
this.postToggle.emit(
|
|
60
|
+
this.postToggle.emit(open);
|
|
63
61
|
const animation = open ? expand(this.host) : collapse(this.host);
|
|
64
62
|
if (!this.isLoaded || isMotionReduced())
|
|
65
63
|
animation.finish();
|
|
66
64
|
await animation.finished;
|
|
67
65
|
animation.commitStyles();
|
|
68
|
-
return
|
|
66
|
+
return open;
|
|
69
67
|
}
|
|
70
68
|
/**
|
|
71
69
|
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
@@ -75,18 +73,18 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
|
|
|
75
73
|
triggers.forEach(trigger => trigger.update());
|
|
76
74
|
}
|
|
77
75
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: 'b86f11ba3139c76bb077ef9f634afaaf7ab62ef5', "data-version": version }, h("slot", { key: '0f3a8275a8c6a41bfa97b59ee567c3c0da8e84d0' })));
|
|
79
77
|
}
|
|
80
78
|
get host() { return this; }
|
|
81
79
|
static get watchers() { return {
|
|
82
|
-
"collapsed": ["
|
|
80
|
+
"collapsed": ["collapsedChange"]
|
|
83
81
|
}; }
|
|
84
82
|
static get style() { return PostCollapsibleStyle0; }
|
|
85
83
|
}, [1, "post-collapsible", {
|
|
86
|
-
"collapsed": [
|
|
84
|
+
"collapsed": [1028],
|
|
87
85
|
"toggle": [64]
|
|
88
86
|
}, undefined, {
|
|
89
|
-
"collapsed": ["
|
|
87
|
+
"collapsed": ["collapsedChange"]
|
|
90
88
|
}]);
|
|
91
89
|
function defineCustomElement() {
|
|
92
90
|
if (typeof customElements === "undefined") {
|
|
@@ -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: '1919a7a1f11ac0898b16e8fa4791d93ffd1fb1c4', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '8d57e8e1883f4dd96db6edfb0e0a4519cc348a3c' })));
|
|
24
24
|
}
|
|
25
25
|
get host() { return this; }
|
|
26
26
|
static get watchers() { return {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { v as version$1 } from './package.js';
|
|
3
|
-
import { a as commonjsGlobal, b as getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
4
3
|
import { g as getAttributeObserver } from './attribute-observer.js';
|
|
5
4
|
import { b as checkEmptyOrType } from './index2.js';
|
|
6
5
|
import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
|
|
@@ -9,6 +8,12 @@ function timeout(delay) {
|
|
|
9
8
|
return new Promise(resolve => setTimeout(resolve, delay));
|
|
10
9
|
}
|
|
11
10
|
|
|
11
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
12
|
+
|
|
13
|
+
function getDefaultExportFromCjs (x) {
|
|
14
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
var focusable = {exports: {}};
|
|
13
18
|
|
|
14
19
|
var focusRelevant = {exports: {}};
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-07-
|
|
2
|
+
"timestamp": "2024-07-23T09:46:12",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.19.1",
|
|
@@ -217,10 +217,10 @@
|
|
|
217
217
|
"resolved": "boolean",
|
|
218
218
|
"references": {}
|
|
219
219
|
},
|
|
220
|
-
"mutable":
|
|
220
|
+
"mutable": true,
|
|
221
221
|
"attr": "collapsed",
|
|
222
222
|
"reflectToAttr": false,
|
|
223
|
-
"docs": "If `true`, the element is
|
|
223
|
+
"docs": "If `true`, the element is collapsed otherwise it is displayed.",
|
|
224
224
|
"docsTags": [],
|
|
225
225
|
"default": "false",
|
|
226
226
|
"values": [
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"listeners": [
|
|
328
328
|
{
|
|
329
329
|
"event": "postToggle",
|
|
330
|
-
"capture":
|
|
330
|
+
"capture": true,
|
|
331
331
|
"passive": false
|
|
332
332
|
}
|
|
333
333
|
],
|
|
@@ -933,10 +933,10 @@
|
|
|
933
933
|
"resolved": "boolean",
|
|
934
934
|
"references": {}
|
|
935
935
|
},
|
|
936
|
-
"mutable":
|
|
936
|
+
"mutable": true,
|
|
937
937
|
"attr": "collapsed",
|
|
938
938
|
"reflectToAttr": false,
|
|
939
|
-
"docs": "If `true`, the element is
|
|
939
|
+
"docs": "If `true`, the element is collapsed otherwise it is displayed.",
|
|
940
940
|
"docsTags": [],
|
|
941
941
|
"default": "false",
|
|
942
942
|
"values": [
|
package/dist/esm/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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 } from './post-collapsible-
|
|
6
|
-
export { P as PostCollapsibleTrigger } from './post-collapsible-trigger-
|
|
7
|
-
export { P as PostIcon } from './post-icon-
|
|
8
|
-
export { P as PostPopover } from './post-popover-
|
|
9
|
-
export { P as PostPopovercontainer } from './post-popovercontainer-
|
|
10
|
-
export { P as PostRating } from './post-rating-
|
|
11
|
-
export { P as PostTabs } from './post-tabs-
|
|
12
|
-
export { P as PostTabHeader } from './post-tab-header-
|
|
13
|
-
export { P as PostTabPanel } from './post-tab-panel-
|
|
14
|
-
export { P as PostTooltip } from './post-tooltip-
|
|
15
|
-
export { P as PostTag } from './post-tag-
|
|
1
|
+
export { P as PostAccordion } from './post-accordion-01612666.js';
|
|
2
|
+
export { P as PostAccordionItem } from './post-accordion-item-e2e83306.js';
|
|
3
|
+
export { P as PostAlert } from './post-alert-e7b70927.js';
|
|
4
|
+
export { P as PostCardControl } from './post-card-control-262467c4.js';
|
|
5
|
+
export { P as PostCollapsible } from './post-collapsible-301ba5ad.js';
|
|
6
|
+
export { P as PostCollapsibleTrigger } from './post-collapsible-trigger-964d5490.js';
|
|
7
|
+
export { P as PostIcon } from './post-icon-46602aa6.js';
|
|
8
|
+
export { P as PostPopover } from './post-popover-927903a2.js';
|
|
9
|
+
export { P as PostPopovercontainer } from './post-popovercontainer-348970cd.js';
|
|
10
|
+
export { P as PostRating } from './post-rating-a1832399.js';
|
|
11
|
+
export { P as PostTabs } from './post-tabs-3b8719a9.js';
|
|
12
|
+
export { P as PostTabHeader } from './post-tab-header-9d6e4d52.js';
|
|
13
|
+
export { P as PostTabPanel } from './post-tab-panel-0870e77c.js';
|
|
14
|
+
export { P as PostTooltip } from './post-tooltip-8486e928.js';
|
|
15
|
+
export { P as PostTag } from './post-tag-695a9337.js';
|
|
16
16
|
import './index-9ace3232.js';
|
|
17
|
-
import './package-
|
|
17
|
+
import './package-130b6199.js';
|
|
18
18
|
import './heading-levels-5b7b4349.js';
|
|
19
19
|
import './check-one-of-6b3ef8eb.js';
|
|
20
20
|
import './index-29d17d6d.js';
|
|
@@ -22,5 +22,4 @@ import './constants-8d548297.js';
|
|
|
22
22
|
import './check-type-8828dbe4.js';
|
|
23
23
|
import './fade-7fd71785.js';
|
|
24
24
|
import './check-non-empty-58bd6b17.js';
|
|
25
|
-
import './_commonjsHelpers-24671825.js';
|
|
26
25
|
import './attribute-observer-37fa950a.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
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":[
|
|
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":["updateControlDisbled"]}]]],["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-collapsible-trigger",[[0,"post-collapsible-trigger",{"for":[1],"update":[64]},[[4,"postToggle","setAriaExpanded"]],{"for":["setAriaAttributes"]}]]],["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",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}]]],["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
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-130b6199.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,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-130b6199.js';
|
|
3
3
|
import { H as HEADING_LEVELS } from './heading-levels-5b7b4349.js';
|
|
4
4
|
import { c as checkEmptyOrOneOf } from './index-29d17d6d.js';
|
|
5
5
|
|
|
@@ -10,7 +10,6 @@ const PostAccordionItem = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
12
|
this.id = undefined;
|
|
13
|
-
this.isOpen = undefined;
|
|
14
13
|
this.collapsed = false;
|
|
15
14
|
this.headingLevel = 2;
|
|
16
15
|
}
|
|
@@ -21,12 +20,12 @@ const PostAccordionItem = class {
|
|
|
21
20
|
this.validateHeadingLevel();
|
|
22
21
|
}
|
|
23
22
|
componentWillLoad() {
|
|
24
|
-
this.isOpen = !this.collapsed;
|
|
25
23
|
this.id = this.host.id || `a${crypto.randomUUID()}`;
|
|
26
24
|
}
|
|
25
|
+
// capture to make sure the "collapsed" property is updated before the event is consumed
|
|
27
26
|
onCollapseToggle(event) {
|
|
28
27
|
if (event.target.localName === 'post-accordion-item') {
|
|
29
|
-
this.
|
|
28
|
+
this.collapsed = !event.detail;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
/**
|
|
@@ -38,7 +37,7 @@ const PostAccordionItem = class {
|
|
|
38
37
|
render() {
|
|
39
38
|
var _a;
|
|
40
39
|
const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
|
|
41
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'd021bf895019606800fa6cf3a85a2ea0a2fea7e4', id: this.id, "data-version": version }, h("div", { key: '8a78f2511889eb90d2cbdccf00f76802e043a1e7', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '15c6f07e53179d669f71d6232dad30b77903ae15', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '59b0ac3109ab8b0da0de914898551dc453eb807e', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${!this.collapsed}`, class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '9cdac36ffca69fd85437b4eaddf1ea707b3655e3', name: "header" }))), h("post-collapsible", { key: '4c4ec07c214e972975672f6c41b3a33b418969df', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '619f81dc481230eecbc83f9078edeb6a60e6b52f', class: "accordion-body" }, h("slot", { key: '76117f156050fd17fc4acec2d429f57640d6c951' }))))));
|
|
42
41
|
}
|
|
43
42
|
get host() { return getElement(this); }
|
|
44
43
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_accordion_item } from './post-accordion-item-
|
|
1
|
+
export { P as post_accordion_item } from './post-accordion-item-e2e83306.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-130b6199.js';
|
|
4
4
|
import './heading-levels-5b7b4349.js';
|
|
5
5
|
import './index-29d17d6d.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as post_accordion } from './post-accordion-
|
|
1
|
+
export { P as post_accordion } from './post-accordion-01612666.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-130b6199.js';
|
|
4
4
|
import './heading-levels-5b7b4349.js';
|
|
5
5
|
import './check-one-of-6b3ef8eb.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-130b6199.js';
|
|
3
3
|
import { f as fadeOut } from './fade-7fd71785.js';
|
|
4
4
|
import { a as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index-29d17d6d.js';
|
|
5
5
|
import { c as checkType } from './check-type-8828dbe4.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_alert } from './post-alert-
|
|
1
|
+
export { P as post_alert } from './post-alert-e7b70927.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-130b6199.js';
|
|
4
4
|
import './fade-7fd71785.js';
|
|
5
5
|
import './index-29d17d6d.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
2
|
import { c as checkOneOf } from './check-one-of-6b3ef8eb.js';
|
|
3
3
|
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
4
|
-
import { v as version } from './package-
|
|
4
|
+
import { v as version } from './package-130b6199.js';
|
|
5
5
|
|
|
6
6
|
function parse(scss) {
|
|
7
7
|
return Object.entries(scss).reduce((object, [path, value]) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_card_control } from './post-card-control-
|
|
1
|
+
export { P as post_card_control } from './post-card-control-262467c4.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
3
|
import './check-one-of-6b3ef8eb.js';
|
|
4
4
|
import './check-non-empty-58bd6b17.js';
|
|
5
5
|
import './constants-8d548297.js';
|
|
6
|
-
import './package-
|
|
6
|
+
import './package-130b6199.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-130b6199.js';
|
|
3
3
|
import { b as checkEmptyOrType } from './index-29d17d6d.js';
|
|
4
4
|
|
|
5
5
|
function isMotionReduced() {
|
|
@@ -35,15 +35,12 @@ const PostCollapsible = class {
|
|
|
35
35
|
this.isOpen = true;
|
|
36
36
|
this.collapsed = false;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
checkEmptyOrType(
|
|
40
|
-
|
|
41
|
-
connectedCallback() {
|
|
42
|
-
this.validateCollapsed();
|
|
38
|
+
collapsedChange() {
|
|
39
|
+
checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
|
|
40
|
+
void this.toggle(!this.collapsed);
|
|
43
41
|
}
|
|
44
42
|
componentDidLoad() {
|
|
45
|
-
|
|
46
|
-
void this.toggle(false);
|
|
43
|
+
this.collapsedChange();
|
|
47
44
|
this.isLoaded = true;
|
|
48
45
|
this.updateTriggers();
|
|
49
46
|
}
|
|
@@ -55,15 +52,16 @@ const PostCollapsible = class {
|
|
|
55
52
|
async toggle(open = !this.isOpen) {
|
|
56
53
|
if (open === this.isOpen)
|
|
57
54
|
return open;
|
|
58
|
-
this.isOpen =
|
|
55
|
+
this.isOpen = open;
|
|
56
|
+
this.collapsed = !open;
|
|
59
57
|
if (this.isLoaded)
|
|
60
|
-
this.postToggle.emit(
|
|
58
|
+
this.postToggle.emit(open);
|
|
61
59
|
const animation = open ? expand(this.host) : collapse(this.host);
|
|
62
60
|
if (!this.isLoaded || isMotionReduced())
|
|
63
61
|
animation.finish();
|
|
64
62
|
await animation.finished;
|
|
65
63
|
animation.commitStyles();
|
|
66
|
-
return
|
|
64
|
+
return open;
|
|
67
65
|
}
|
|
68
66
|
/**
|
|
69
67
|
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
@@ -73,11 +71,11 @@ const PostCollapsible = class {
|
|
|
73
71
|
triggers.forEach(trigger => trigger.update());
|
|
74
72
|
}
|
|
75
73
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: 'b86f11ba3139c76bb077ef9f634afaaf7ab62ef5', "data-version": version }, h("slot", { key: '0f3a8275a8c6a41bfa97b59ee567c3c0da8e84d0' })));
|
|
77
75
|
}
|
|
78
76
|
get host() { return getElement(this); }
|
|
79
77
|
static get watchers() { return {
|
|
80
|
-
"collapsed": ["
|
|
78
|
+
"collapsed": ["collapsedChange"]
|
|
81
79
|
}; }
|
|
82
80
|
};
|
|
83
81
|
PostCollapsible.style = PostCollapsibleStyle0;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { r as registerInstance, g as getElement } from './index-9ace3232.js';
|
|
2
|
+
import { v as version } from './package-130b6199.js';
|
|
3
|
+
import { c as checkType } from './check-type-8828dbe4.js';
|
|
4
|
+
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
5
|
+
|
|
6
|
+
function debounce(callback, timeout = 200) {
|
|
7
|
+
let id;
|
|
8
|
+
return (...args) => {
|
|
9
|
+
if (id)
|
|
10
|
+
clearTimeout(id);
|
|
11
|
+
id = setTimeout(callback, timeout, ...args);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const PostCollapsibleTrigger = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
registerInstance(this, hostRef);
|
|
18
|
+
this.observer = new MutationObserver(() => this.setTrigger());
|
|
19
|
+
this.debouncedUpdate = debounce(() => {
|
|
20
|
+
var _a;
|
|
21
|
+
if (!this.trigger)
|
|
22
|
+
return;
|
|
23
|
+
// add the provided id to the aria-controls list
|
|
24
|
+
const ariaControls = this.trigger.getAttribute('aria-controls');
|
|
25
|
+
if (!(ariaControls === null || ariaControls === void 0 ? void 0 : ariaControls.includes(this.for))) {
|
|
26
|
+
const newAriaControls = ariaControls ? `${ariaControls} ${this.for}` : this.for;
|
|
27
|
+
this.trigger.setAttribute('aria-controls', newAriaControls);
|
|
28
|
+
}
|
|
29
|
+
// set the aria-expanded to `false` if the controlled collapsible is collapsed or undefined, set it to `true` otherwise
|
|
30
|
+
const isCollapsed = (_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.collapsed;
|
|
31
|
+
const newAriaExpanded = isCollapsed !== undefined ? !isCollapsed : undefined;
|
|
32
|
+
this.trigger.setAttribute('aria-expanded', `${newAriaExpanded}`);
|
|
33
|
+
});
|
|
34
|
+
this.for = undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
|
|
38
|
+
*/
|
|
39
|
+
setAriaAttributes() {
|
|
40
|
+
checkNonEmpty(this.for, 'The post-collapsible-trigger "for" prop is required.');
|
|
41
|
+
checkType(this.for, 'string', 'The post-collapsible-trigger "for" prop should be a id.');
|
|
42
|
+
void this.update();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Initiate a mutation observer that updates the trigger whenever necessary
|
|
46
|
+
*/
|
|
47
|
+
connectedCallback() {
|
|
48
|
+
this.observer.observe(this.host, { childList: true, subtree: true });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Add the "data-version" to the host element and set the trigger
|
|
52
|
+
*/
|
|
53
|
+
componentDidLoad() {
|
|
54
|
+
this.host.setAttribute('data-version', version);
|
|
55
|
+
this.setTrigger();
|
|
56
|
+
if (!this.trigger)
|
|
57
|
+
console.warn('The post-collapsible-trigger must contain a button.');
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Disconnect the mutation observer
|
|
61
|
+
*/
|
|
62
|
+
disconnectedCallback() {
|
|
63
|
+
this.observer.disconnect();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Update the "aria-expanded" attribute on the trigger anytime the controlled post-collapsible is toggled
|
|
67
|
+
*/
|
|
68
|
+
setAriaExpanded(e) {
|
|
69
|
+
if (!this.trigger || !e.target.isEqualNode(this.collapsible))
|
|
70
|
+
return;
|
|
71
|
+
this.trigger.setAttribute('aria-expanded', `${e.detail}`);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Update the "aria-controls" and "aria-expanded" attributes on the trigger button
|
|
75
|
+
*/
|
|
76
|
+
async update() {
|
|
77
|
+
this.debouncedUpdate();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Toggle the post-collapsible controlled by the trigger
|
|
81
|
+
*/
|
|
82
|
+
async toggleCollapsible() {
|
|
83
|
+
var _a;
|
|
84
|
+
await ((_a = this.collapsible) === null || _a === void 0 ? void 0 : _a.toggle());
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Retrieve the post-collapsible controlled by the trigger
|
|
88
|
+
*/
|
|
89
|
+
get collapsible() {
|
|
90
|
+
const ref = document.getElementById(this.for);
|
|
91
|
+
if (ref && ref.localName === 'post-collapsible') {
|
|
92
|
+
return ref;
|
|
93
|
+
}
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Find the button and add the proper event listener and ARIA attributes to it
|
|
98
|
+
*/
|
|
99
|
+
setTrigger() {
|
|
100
|
+
const trigger = this.host.querySelector('button');
|
|
101
|
+
if (!trigger || (this.trigger && trigger.isEqualNode(this.trigger)))
|
|
102
|
+
return;
|
|
103
|
+
this.trigger = trigger;
|
|
104
|
+
this.trigger.addEventListener('click', () => this.toggleCollapsible());
|
|
105
|
+
this.setAriaAttributes();
|
|
106
|
+
}
|
|
107
|
+
get host() { return getElement(this); }
|
|
108
|
+
static get watchers() { return {
|
|
109
|
+
"for": ["setAriaAttributes"]
|
|
110
|
+
}; }
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export { PostCollapsibleTrigger as P };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_collapsible_trigger } from './post-collapsible-trigger-
|
|
1
|
+
export { P as post_collapsible_trigger } from './post-collapsible-trigger-964d5490.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
|
-
import './
|
|
3
|
+
import './package-130b6199.js';
|
|
4
4
|
import './check-type-8828dbe4.js';
|
|
5
5
|
import './check-non-empty-58bd6b17.js';
|
|
6
6
|
import './constants-8d548297.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as post_collapsible } from './post-collapsible-
|
|
1
|
+
export { P as post_collapsible } from './post-collapsible-301ba5ad.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-130b6199.js';
|
|
4
4
|
import './index-29d17d6d.js';
|
|
5
5
|
import './constants-8d548297.js';
|
|
6
6
|
import './check-one-of-6b3ef8eb.js';
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[
|
|
19
|
+
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":["updateControlDisbled"]}]]],["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-collapsible-trigger",[[0,"post-collapsible-trigger",{"for":[1],"update":[64]},[[4,"postToggle","setAriaExpanded"]],{"for":["setAriaAttributes"]}]]],["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",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}]]],["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);
|
|
20
20
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
2
|
import { c as checkEmptyOrOneOf, b as checkEmptyOrType } from './index-29d17d6d.js';
|
|
3
|
-
import { v as version } from './package-
|
|
3
|
+
import { v as version } from './package-130b6199.js';
|
|
4
4
|
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
5
5
|
import { c as checkType } from './check-type-8828dbe4.js';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { P as post_icon } from './post-icon-
|
|
1
|
+
export { P as post_icon } from './post-icon-46602aa6.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
3
|
import './index-29d17d6d.js';
|
|
4
4
|
import './constants-8d548297.js';
|
|
5
5
|
import './check-one-of-6b3ef8eb.js';
|
|
6
6
|
import './check-type-8828dbe4.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-130b6199.js';
|
|
8
8
|
import './check-non-empty-58bd6b17.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-130b6199.js';
|
|
3
3
|
import { g as getAttributeObserver } from './attribute-observer-37fa950a.js';
|
|
4
4
|
|
|
5
5
|
const postPopoverCss = "/*!\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 */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as post_popover } from './post-popover-
|
|
1
|
+
export { P as post_popover } from './post-popover-927903a2.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-130b6199.js';
|
|
4
4
|
import './attribute-observer-37fa950a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-130b6199.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom positioning reference element.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_popovercontainer } from './post-popovercontainer-
|
|
1
|
+
export { P as post_popovercontainer } from './post-popovercontainer-348970cd.js';
|
|
2
2
|
import './index-9ace3232.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-130b6199.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9ace3232.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-130b6199.js';
|
|
3
3
|
|
|
4
4
|
const postRatingCss = "/*!\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 */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
|
|
5
5
|
const PostRatingStyle0 = postRatingCss;
|