@swisspost/design-system-components 7.0.0 → 7.1.0
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/heading-levels-608d432e.js +5 -0
- package/dist/cjs/index-de783b23.js +1394 -0
- package/dist/cjs/index.cjs.js +18 -17
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-45af106a.js → package-dacf5ec2.js} +1 -1
- package/dist/cjs/{post-accordion-7507f838.js → post-accordion-225de951.js} +28 -13
- package/dist/cjs/{post-accordion-item-5bf4d98b.js → post-accordion-item-935e122a.js} +7 -8
- package/dist/cjs/post-accordion-item.cjs.entry.js +4 -3
- package/dist/cjs/post-accordion.cjs.entry.js +5 -3
- package/dist/cjs/{post-alert-9c39c854.js → post-alert-6041a34c.js} +6 -6
- package/dist/cjs/post-alert.cjs.entry.js +3 -3
- package/dist/cjs/post-card-control-3c089d8e.js +314 -0
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-00319f1f.js → post-collapsible-562268e9.js} +3 -3
- package/dist/cjs/post-collapsible.cjs.entry.js +3 -3
- package/dist/cjs/post-components.cjs.js +10 -10
- package/dist/cjs/{post-icon-09845341.js → post-icon-973d5c46.js} +3 -3
- package/dist/cjs/post-icon.cjs.entry.js +3 -3
- package/dist/cjs/{post-popover-3b6aaeae.js → post-popover-b0844e71.js} +4 -4
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-0b8343ac.js → post-popovercontainer-5bb6a804.js} +236 -18
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-285f966e.js → post-rating-d2845096.js} +3 -3
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-f1c16656.js → post-tab-header-6496a51b.js} +4 -4
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-9c20a84e.js → post-tab-panel-25bd8c74.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-75e71078.js → post-tabs-4e4ee252.js} +3 -3
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-942085fd.js → post-tag-cbc458ed.js} +8 -4
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-tooltip-94d4f21f.js → post-tooltip-805bc0c0.js} +4 -3
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/post-accordion/post-accordion.js +54 -13
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +12 -9
- package/dist/collection/components/post-alert/post-alert.css +1 -1
- package/dist/collection/components/post-alert/post-alert.js +6 -6
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +14 -11
- package/dist/collection/components/post-collapsible/post-collapsible.js +3 -3
- package/dist/collection/components/post-icon/post-icon.js +3 -3
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +3 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -4
- package/dist/collection/components/post-rating/post-rating.js +2 -2
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +3 -3
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +2 -2
- package/dist/collection/components/post-tabs/post-tabs.js +3 -3
- package/dist/collection/components/post-tag/post-tag.js +9 -5
- package/dist/collection/components/post-tooltip/post-tooltip.js +3 -3
- package/dist/collection/types/heading-levels.js +1 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/components/check-one-of.js +6 -0
- package/dist/components/heading-levels.js +3 -0
- package/dist/components/index2.js +2 -6
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +5 -6
- package/dist/components/post-accordion2.js +30 -12
- package/dist/components/post-alert2.js +4 -4
- package/dist/components/post-card-control2.js +12 -9
- package/dist/components/post-collapsible2.js +2 -2
- package/dist/components/post-icon2.js +2 -2
- package/dist/components/post-popover2.js +2 -2
- package/dist/components/post-popovercontainer2.js +234 -16
- package/dist/components/post-rating2.js +1 -1
- package/dist/components/post-tab-header2.js +2 -2
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +1 -1
- package/dist/components/post-tag2.js +6 -2
- package/dist/components/post-tooltip2.js +2 -1
- package/dist/docs.d.ts +34 -0
- package/dist/docs.json +76 -22
- package/dist/esm/heading-levels-5b7b4349.js +3 -0
- package/dist/esm/index-cf1d5611.js +1365 -0
- package/dist/esm/index.js +18 -17
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-1242b80d.js → package-a837c1ad.js} +1 -1
- package/dist/esm/{post-accordion-bfd058bc.js → post-accordion-fdd22c1d.js} +28 -13
- package/dist/esm/{post-accordion-item-4fa44842.js → post-accordion-item-336f568c.js} +7 -8
- package/dist/esm/post-accordion-item.entry.js +4 -3
- package/dist/esm/post-accordion.entry.js +5 -3
- package/dist/esm/{post-alert-192d0176.js → post-alert-f48527d8.js} +6 -6
- package/dist/esm/post-alert.entry.js +3 -3
- package/dist/esm/post-card-control-3e6a5855.js +312 -0
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/{post-collapsible-d848eb2a.js → post-collapsible-486ab980.js} +3 -3
- package/dist/esm/post-collapsible.entry.js +3 -3
- package/dist/esm/post-components.js +11 -11
- package/dist/esm/{post-icon-811654f7.js → post-icon-19fdfc4d.js} +3 -3
- package/dist/esm/post-icon.entry.js +3 -3
- package/dist/esm/{post-popover-b48a9d7c.js → post-popover-17164186.js} +4 -4
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-7413bb41.js → post-popovercontainer-d19f9646.js} +236 -18
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/{post-rating-806de800.js → post-rating-ea204778.js} +3 -3
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-95f0dc6a.js → post-tab-header-a97cdef2.js} +4 -4
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-d7145a70.js → post-tab-panel-e6999395.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-f130a7d8.js → post-tabs-524c699a.js} +3 -3
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-7c329d6c.js → post-tag-e2035a81.js} +8 -4
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-tooltip-942bd014.js → post-tooltip-e4fc9c0c.js} +4 -3
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-07cc4853.entry.js +1 -0
- package/dist/post-components/p-0e410cec.entry.js +1 -0
- package/dist/post-components/p-14e22434.entry.js +1 -0
- package/dist/post-components/p-18a2ef27.js +1 -0
- package/dist/post-components/p-18b571e3.js +2 -0
- package/dist/post-components/p-247a1668.js +1 -0
- package/dist/post-components/p-2f4c40ee.js +1 -0
- package/dist/post-components/p-39a1dcb8.entry.js +1 -0
- package/dist/post-components/p-3b0988a1.js +1 -0
- package/dist/post-components/p-3ee18d14.entry.js +1 -0
- package/dist/post-components/{p-c9004503.js → p-4575a570.js} +1 -1
- package/dist/post-components/p-59da0b80.js +1 -0
- package/dist/post-components/p-63277771.entry.js +1 -0
- package/dist/post-components/p-67df1075.js +1 -0
- package/dist/post-components/p-74db9b35.entry.js +1 -0
- package/dist/post-components/p-7bb79254.entry.js +1 -0
- package/dist/post-components/p-8398de7b.entry.js +1 -0
- package/dist/post-components/{p-579f55af.js → p-9a59f2c7.js} +1 -1
- package/dist/post-components/p-c4a7208a.js +1 -0
- package/dist/post-components/{p-93ba2827.js → p-c85913ed.js} +3 -3
- package/dist/post-components/p-caaa5b4c.entry.js +1 -0
- package/dist/post-components/p-cf10d355.js +1 -0
- package/dist/post-components/{p-d4cd7bb0.js → p-d1f516dd.js} +1 -1
- package/dist/post-components/{p-b4abbb28.js → p-d2eb0f0b.js} +1 -1
- package/dist/post-components/p-d70f33cd.js +1 -0
- package/dist/post-components/p-da049db2.entry.js +1 -0
- package/dist/post-components/p-db114d1d.entry.js +1 -0
- package/dist/post-components/{p-41c9c59f.js → p-e929ddbc.js} +1 -1
- package/dist/post-components/p-ebb54756.entry.js +1 -0
- package/dist/post-components/p-ed22dec0.js +1 -0
- package/dist/post-components/p-f5d8f3fe.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion/post-accordion.d.ts +8 -2
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -1
- package/dist/types/components/post-card-control/post-card-control.d.ts +5 -2
- package/dist/types/components/post-tag/post-tag.d.ts +2 -2
- package/dist/types/components.d.ts +15 -5
- package/dist/types/types/heading-levels.d.ts +2 -0
- package/dist/types/types/index.d.ts +1 -0
- package/package.json +14 -14
- package/dist/cjs/index-3b732d59.js +0 -2111
- package/dist/cjs/post-card-control-4a16b3d7.js +0 -311
- package/dist/esm/index-961099d2.js +0 -2082
- package/dist/esm/post-card-control-b23e1e6f.js +0 -309
- package/dist/post-components/p-0d4e50a9.js +0 -1
- package/dist/post-components/p-1c780bac.entry.js +0 -1
- package/dist/post-components/p-2524b6b9.entry.js +0 -1
- package/dist/post-components/p-2ee23269.entry.js +0 -1
- package/dist/post-components/p-416426cc.js +0 -1
- package/dist/post-components/p-46cea7ee.js +0 -1
- package/dist/post-components/p-4aa14704.js +0 -1
- package/dist/post-components/p-5b2cdcf0.js +0 -2
- package/dist/post-components/p-60b02cbb.entry.js +0 -1
- package/dist/post-components/p-62407836.entry.js +0 -1
- package/dist/post-components/p-6308fd47.js +0 -1
- package/dist/post-components/p-6fba8cb2.entry.js +0 -1
- package/dist/post-components/p-86acda91.entry.js +0 -1
- package/dist/post-components/p-94b5c41e.entry.js +0 -1
- package/dist/post-components/p-a3b54b5f.js +0 -1
- package/dist/post-components/p-a4b6b950.js +0 -1
- package/dist/post-components/p-c0f8e385.entry.js +0 -1
- package/dist/post-components/p-c4fe5052.entry.js +0 -1
- package/dist/post-components/p-cd9c10dd.entry.js +0 -1
- package/dist/post-components/p-d8d76dd1.entry.js +0 -1
- package/dist/post-components/p-e819d5fb.entry.js +0 -1
- package/dist/post-components/p-f44c172a.js +0 -1
- package/dist/post-components/p-f9e58309.js +0 -1
- package/dist/post-components/p-ffb9a651.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-de783b23.js');
|
|
4
|
+
const _package = require('./package-dacf5ec2.js');
|
|
5
5
|
const index$1 = require('./index-a1440961.js');
|
|
6
6
|
|
|
7
7
|
function isMotionReduced() {
|
|
@@ -71,7 +71,7 @@ const PostCollapsible = class {
|
|
|
71
71
|
return this.isOpen;
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
|
-
return (index.h(index.Host, { key: '
|
|
74
|
+
return (index.h(index.Host, { key: 'ae26c034e446105728047e8636d9cc2b81ce56f8', id: this.id, "data-version": _package.version }, index.h("div", { key: 'ed041dbf2c64e15863edeba34e524d3eb685f562', class: "collapse", id: `${this.id}--collapse`, ref: el => (this.collapsible = el) }, index.h("slot", { key: 'd579a77be3d99d52a15bc9da00669d8be27a92cf' }))));
|
|
75
75
|
}
|
|
76
76
|
get host() { return index.getElement(this); }
|
|
77
77
|
static get watchers() { return {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postCollapsible = require('./post-collapsible-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postCollapsible = require('./post-collapsible-562268e9.js');
|
|
6
|
+
require('./index-de783b23.js');
|
|
7
|
+
require('./package-dacf5ec2.js');
|
|
8
8
|
require('./index-a1440961.js');
|
|
9
9
|
require('./constants-238701d3.js');
|
|
10
10
|
require('./check-one-of-f4f5d0c0.js');
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-de783b23.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.18.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
var patchBrowser = () => {
|
|
12
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('post-components.cjs.js', document.baseURI).href));
|
|
13
|
+
const opts = {};
|
|
14
|
+
if (importMeta !== "") {
|
|
15
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
16
|
+
}
|
|
17
|
+
return index.promiseResolve(opts);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["post-accordion-item.cjs",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert.cjs",[[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.cjs",[[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.cjs",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover.cjs",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-icon.cjs",[[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"]}]]],["post-rating.cjs",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag.cjs",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip.cjs",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion.cjs",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]]]]],["post-tab-header.cjs",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel.cjs",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs.cjs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible.cjs",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["post-accordion-item.cjs",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert.cjs",[[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.cjs",[[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.cjs",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-popover.cjs",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-icon.cjs",[[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"]}]]],["post-rating.cjs",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tag.cjs",[[1,"post-tag",{"variant":[1],"size":[1],"icon":[1],"classes":[32]},null,{"variant":["variantChanged"],"size":["sizeChanged"]}]]],["post-tooltip.cjs",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion.cjs",[[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-tab-header.cjs",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel.cjs",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs.cjs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible.cjs",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-de783b23.js');
|
|
4
4
|
const index$1 = require('./index-a1440961.js');
|
|
5
|
-
const _package = require('./package-
|
|
5
|
+
const _package = require('./package-dacf5ec2.js');
|
|
6
6
|
const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
|
|
7
7
|
|
|
8
8
|
const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
|
|
@@ -86,7 +86,7 @@ const PostIcon = class {
|
|
|
86
86
|
})
|
|
87
87
|
.filter(([_key, value]) => value !== null)
|
|
88
88
|
.reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
|
|
89
|
-
return (index.h(index.Host, { key: '
|
|
89
|
+
return (index.h(index.Host, { key: '95fa0f7a09d3430bb5d621e01b57188742920eb4', "data-version": _package.version }, index.h("span", { key: 'c824e3705dc83665bb6f7649381654e6d1e07dfb', style: svgStyles })));
|
|
90
90
|
}
|
|
91
91
|
get host() { return index.getElement(this); }
|
|
92
92
|
static get watchers() { return {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postIcon = require('./post-icon-
|
|
6
|
-
require('./index-
|
|
5
|
+
const postIcon = require('./post-icon-973d5c46.js');
|
|
6
|
+
require('./index-de783b23.js');
|
|
7
7
|
require('./index-a1440961.js');
|
|
8
8
|
require('./constants-238701d3.js');
|
|
9
9
|
require('./check-one-of-f4f5d0c0.js');
|
|
10
|
-
require('./package-
|
|
10
|
+
require('./package-dacf5ec2.js');
|
|
11
11
|
require('./check-non-empty-eeaa8f77.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-de783b23.js');
|
|
4
|
+
const _package = require('./package-dacf5ec2.js');
|
|
5
5
|
const attributeObserver = require('./attribute-observer-10f08c04.js');
|
|
6
6
|
|
|
7
|
-
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
|
|
7
|
+
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}:is(.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}";
|
|
8
8
|
const PostPopoverStyle0 = postPopoverCss;
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -95,7 +95,7 @@ const PostPopover = class {
|
|
|
95
95
|
this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (index.h(index.Host, { key: '
|
|
98
|
+
return (index.h(index.Host, { key: '97db4a92db81f3a84ca272af8f79981cf181024d', "data-version": _package.version }, index.h("post-popovercontainer", { key: '291247845dc11572a5722aa949c1dfa74e521edd', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, index.h("div", { key: '92137bf8c92633c8578c89c7b0c8252b0b59e2fa', class: "popover-container" }, index.h("div", { key: '06f79f59e90ca439b552380af0e151084adadf03', class: "popover-content" }, index.h("slot", { key: 'c37c742ac7cf24f9440ac3b862761fcd937f7658' })), index.h("button", { key: '0e6f316574720e0f901af56e0dbb99f86e36c5b4', class: "btn-close", onClick: () => this.hide() }, index.h("span", { key: '77c41e8e8df74649ce9ca21740c77e78336905e6', class: "visually-hidden" }, this.closeButtonCaption))))));
|
|
99
99
|
}
|
|
100
100
|
get host() { return index.getElement(this); }
|
|
101
101
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postPopover = require('./post-popover-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postPopover = require('./post-popover-b0844e71.js');
|
|
6
|
+
require('./index-de783b23.js');
|
|
7
|
+
require('./package-dacf5ec2.js');
|
|
8
8
|
require('./attribute-observer-10f08c04.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-de783b23.js');
|
|
4
|
+
const _package = require('./package-dacf5ec2.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Custom positioning reference element.
|
|
8
8
|
* @see https://floating-ui.com/docs/virtual-elements
|
|
9
9
|
*/
|
|
10
|
+
|
|
11
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
12
|
+
const alignments = ['start', 'end'];
|
|
13
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
10
14
|
const min = Math.min;
|
|
11
15
|
const max = Math.max;
|
|
12
16
|
const round = Math.round;
|
|
@@ -420,6 +424,109 @@ const arrow$1 = options => ({
|
|
|
420
424
|
}
|
|
421
425
|
});
|
|
422
426
|
|
|
427
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
428
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
429
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
430
|
+
if (alignment) {
|
|
431
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
432
|
+
}
|
|
433
|
+
return true;
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
438
|
+
* that has the most space available automatically, without needing to specify a
|
|
439
|
+
* preferred placement. Alternative to `flip`.
|
|
440
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
441
|
+
*/
|
|
442
|
+
const autoPlacement = function (options) {
|
|
443
|
+
if (options === void 0) {
|
|
444
|
+
options = {};
|
|
445
|
+
}
|
|
446
|
+
return {
|
|
447
|
+
name: 'autoPlacement',
|
|
448
|
+
options,
|
|
449
|
+
async fn(state) {
|
|
450
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
451
|
+
const {
|
|
452
|
+
rects,
|
|
453
|
+
middlewareData,
|
|
454
|
+
placement,
|
|
455
|
+
platform,
|
|
456
|
+
elements
|
|
457
|
+
} = state;
|
|
458
|
+
const {
|
|
459
|
+
crossAxis = false,
|
|
460
|
+
alignment,
|
|
461
|
+
allowedPlacements = placements,
|
|
462
|
+
autoAlignment = true,
|
|
463
|
+
...detectOverflowOptions
|
|
464
|
+
} = evaluate(options, state);
|
|
465
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
466
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
467
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
468
|
+
const currentPlacement = placements$1[currentIndex];
|
|
469
|
+
if (currentPlacement == null) {
|
|
470
|
+
return {};
|
|
471
|
+
}
|
|
472
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
473
|
+
|
|
474
|
+
// Make `computeCoords` start from the right place.
|
|
475
|
+
if (placement !== currentPlacement) {
|
|
476
|
+
return {
|
|
477
|
+
reset: {
|
|
478
|
+
placement: placements$1[0]
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
483
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
484
|
+
placement: currentPlacement,
|
|
485
|
+
overflows: currentOverflows
|
|
486
|
+
}];
|
|
487
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
|
488
|
+
|
|
489
|
+
// There are more placements to check.
|
|
490
|
+
if (nextPlacement) {
|
|
491
|
+
return {
|
|
492
|
+
data: {
|
|
493
|
+
index: currentIndex + 1,
|
|
494
|
+
overflows: allOverflows
|
|
495
|
+
},
|
|
496
|
+
reset: {
|
|
497
|
+
placement: nextPlacement
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
502
|
+
const alignment = getAlignment(d.placement);
|
|
503
|
+
return [d.placement, alignment && crossAxis ?
|
|
504
|
+
// Check along the mainAxis and main crossAxis side.
|
|
505
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
506
|
+
// Check only the mainAxis.
|
|
507
|
+
d.overflows[0], d.overflows];
|
|
508
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
509
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
510
|
+
// Aligned placements should not check their opposite crossAxis
|
|
511
|
+
// side.
|
|
512
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
513
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
514
|
+
if (resetPlacement !== placement) {
|
|
515
|
+
return {
|
|
516
|
+
data: {
|
|
517
|
+
index: currentIndex + 1,
|
|
518
|
+
overflows: allOverflows
|
|
519
|
+
},
|
|
520
|
+
reset: {
|
|
521
|
+
placement: resetPlacement
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
return {};
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
|
|
423
530
|
/**
|
|
424
531
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
425
532
|
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
@@ -535,6 +642,75 @@ const flip$1 = function (options) {
|
|
|
535
642
|
};
|
|
536
643
|
};
|
|
537
644
|
|
|
645
|
+
function getSideOffsets(overflow, rect) {
|
|
646
|
+
return {
|
|
647
|
+
top: overflow.top - rect.height,
|
|
648
|
+
right: overflow.right - rect.width,
|
|
649
|
+
bottom: overflow.bottom - rect.height,
|
|
650
|
+
left: overflow.left - rect.width
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
function isAnySideFullyClipped(overflow) {
|
|
654
|
+
return sides.some(side => overflow[side] >= 0);
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
658
|
+
* when it is not in the same clipping context as the reference element.
|
|
659
|
+
* @see https://floating-ui.com/docs/hide
|
|
660
|
+
*/
|
|
661
|
+
const hide = function (options) {
|
|
662
|
+
if (options === void 0) {
|
|
663
|
+
options = {};
|
|
664
|
+
}
|
|
665
|
+
return {
|
|
666
|
+
name: 'hide',
|
|
667
|
+
options,
|
|
668
|
+
async fn(state) {
|
|
669
|
+
const {
|
|
670
|
+
rects
|
|
671
|
+
} = state;
|
|
672
|
+
const {
|
|
673
|
+
strategy = 'referenceHidden',
|
|
674
|
+
...detectOverflowOptions
|
|
675
|
+
} = evaluate(options, state);
|
|
676
|
+
switch (strategy) {
|
|
677
|
+
case 'referenceHidden':
|
|
678
|
+
{
|
|
679
|
+
const overflow = await detectOverflow(state, {
|
|
680
|
+
...detectOverflowOptions,
|
|
681
|
+
elementContext: 'reference'
|
|
682
|
+
});
|
|
683
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
|
684
|
+
return {
|
|
685
|
+
data: {
|
|
686
|
+
referenceHiddenOffsets: offsets,
|
|
687
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
case 'escaped':
|
|
692
|
+
{
|
|
693
|
+
const overflow = await detectOverflow(state, {
|
|
694
|
+
...detectOverflowOptions,
|
|
695
|
+
altBoundary: true
|
|
696
|
+
});
|
|
697
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
|
698
|
+
return {
|
|
699
|
+
data: {
|
|
700
|
+
escapedOffsets: offsets,
|
|
701
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
default:
|
|
706
|
+
{
|
|
707
|
+
return {};
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
|
|
538
714
|
function getBoundingRect(rects) {
|
|
539
715
|
const minX = min(...rects.map(rect => rect.left));
|
|
540
716
|
const minY = min(...rects.map(rect => rect.top));
|
|
@@ -715,7 +891,7 @@ async function convertValueToCoords(state, options) {
|
|
|
715
891
|
* object may be passed.
|
|
716
892
|
* @see https://floating-ui.com/docs/offset
|
|
717
893
|
*/
|
|
718
|
-
const offset = function (options) {
|
|
894
|
+
const offset$1 = function (options) {
|
|
719
895
|
if (options === void 0) {
|
|
720
896
|
options = 0;
|
|
721
897
|
}
|
|
@@ -1228,10 +1404,10 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
1228
1404
|
}
|
|
1229
1405
|
|
|
1230
1406
|
const topLayerSelectors = [':popover-open', ':modal'];
|
|
1231
|
-
function isTopLayer(
|
|
1407
|
+
function isTopLayer(element) {
|
|
1232
1408
|
return topLayerSelectors.some(selector => {
|
|
1233
1409
|
try {
|
|
1234
|
-
return
|
|
1410
|
+
return element.matches(selector);
|
|
1235
1411
|
} catch (e) {
|
|
1236
1412
|
return false;
|
|
1237
1413
|
}
|
|
@@ -1419,7 +1595,7 @@ function getClippingRect(_ref) {
|
|
|
1419
1595
|
rootBoundary,
|
|
1420
1596
|
strategy
|
|
1421
1597
|
} = _ref;
|
|
1422
|
-
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1598
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1423
1599
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1424
1600
|
const firstClippingAncestor = clippingAncestors[0];
|
|
1425
1601
|
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
@@ -1481,6 +1657,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
1481
1657
|
};
|
|
1482
1658
|
}
|
|
1483
1659
|
|
|
1660
|
+
function isStaticPositioned(element) {
|
|
1661
|
+
return getComputedStyle(element).position === 'static';
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1484
1664
|
function getTrueOffsetParent(element, polyfill) {
|
|
1485
1665
|
if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
|
|
1486
1666
|
return null;
|
|
@@ -1494,29 +1674,41 @@ function getTrueOffsetParent(element, polyfill) {
|
|
|
1494
1674
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
1495
1675
|
// such as table ancestors and cross browser bugs.
|
|
1496
1676
|
function getOffsetParent(element, polyfill) {
|
|
1497
|
-
const
|
|
1498
|
-
if (
|
|
1499
|
-
return
|
|
1677
|
+
const win = getWindow(element);
|
|
1678
|
+
if (isTopLayer(element)) {
|
|
1679
|
+
return win;
|
|
1680
|
+
}
|
|
1681
|
+
if (!isHTMLElement(element)) {
|
|
1682
|
+
let svgOffsetParent = getParentNode(element);
|
|
1683
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
1684
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
1685
|
+
return svgOffsetParent;
|
|
1686
|
+
}
|
|
1687
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
1688
|
+
}
|
|
1689
|
+
return win;
|
|
1500
1690
|
}
|
|
1501
1691
|
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1502
|
-
while (offsetParent && isTableElement(offsetParent) &&
|
|
1692
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
1503
1693
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1504
1694
|
}
|
|
1505
|
-
if (offsetParent && (
|
|
1506
|
-
return
|
|
1695
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
1696
|
+
return win;
|
|
1507
1697
|
}
|
|
1508
|
-
return offsetParent || getContainingBlock(element) ||
|
|
1698
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
1509
1699
|
}
|
|
1510
1700
|
|
|
1511
1701
|
const getElementRects = async function (data) {
|
|
1512
1702
|
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1513
1703
|
const getDimensionsFn = this.getDimensions;
|
|
1704
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
1514
1705
|
return {
|
|
1515
1706
|
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
1516
1707
|
floating: {
|
|
1517
1708
|
x: 0,
|
|
1518
1709
|
y: 0,
|
|
1519
|
-
|
|
1710
|
+
width: floatingDimensions.width,
|
|
1711
|
+
height: floatingDimensions.height
|
|
1520
1712
|
}
|
|
1521
1713
|
};
|
|
1522
1714
|
};
|
|
@@ -1586,9 +1778,11 @@ function observeMove(element, onMove) {
|
|
|
1586
1778
|
return refresh();
|
|
1587
1779
|
}
|
|
1588
1780
|
if (!ratio) {
|
|
1781
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
1782
|
+
// to prevent an infinite loop of updates.
|
|
1589
1783
|
timeoutId = setTimeout(() => {
|
|
1590
1784
|
refresh(false, 1e-7);
|
|
1591
|
-
},
|
|
1785
|
+
}, 1000);
|
|
1592
1786
|
} else {
|
|
1593
1787
|
refresh(false, ratio);
|
|
1594
1788
|
}
|
|
@@ -1692,6 +1886,23 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1692
1886
|
};
|
|
1693
1887
|
}
|
|
1694
1888
|
|
|
1889
|
+
/**
|
|
1890
|
+
* Modifies the placement by translating the floating element along the
|
|
1891
|
+
* specified axes.
|
|
1892
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
1893
|
+
* object may be passed.
|
|
1894
|
+
* @see https://floating-ui.com/docs/offset
|
|
1895
|
+
*/
|
|
1896
|
+
const offset = offset$1;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
1900
|
+
* that has the most space available automatically, without needing to specify a
|
|
1901
|
+
* preferred placement. Alternative to `flip`.
|
|
1902
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
1903
|
+
*/
|
|
1904
|
+
autoPlacement;
|
|
1905
|
+
|
|
1695
1906
|
/**
|
|
1696
1907
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1697
1908
|
* keep it in view when it will overflow the clipping boundary.
|
|
@@ -1715,6 +1926,13 @@ const flip = flip$1;
|
|
|
1715
1926
|
*/
|
|
1716
1927
|
const size = size$1;
|
|
1717
1928
|
|
|
1929
|
+
/**
|
|
1930
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
1931
|
+
* when it is not in the same clipping context as the reference element.
|
|
1932
|
+
* @see https://floating-ui.com/docs/hide
|
|
1933
|
+
*/
|
|
1934
|
+
hide;
|
|
1935
|
+
|
|
1718
1936
|
/**
|
|
1719
1937
|
* Provides data to position an inner element of the floating element so that it
|
|
1720
1938
|
* appears centered to the reference element.
|
|
@@ -1815,7 +2033,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
1815
2033
|
}
|
|
1816
2034
|
`,E=null;function I(e){if(E===null)try{E=new CSSStyleSheet,E.replaceSync(C);}catch{E=!1;}if(E===!1){let t=document.createElement("style");t.textContent=C,e instanceof Document?e.head.prepend(t):e.prepend(t);}else e.adoptedStyleSheets=[E,...e.adoptedStyleSheets];}function K(){window.ToggleEvent=window.ToggleEvent||c;function e(n){return n?.includes(":popover-open")&&(n=n.replace(J,"$1.\\:popover-open")),n}f(Document.prototype,"querySelector",e),f(Document.prototype,"querySelectorAll",e),f(Element.prototype,"querySelector",e),f(Element.prototype,"querySelectorAll",e),f(Element.prototype,"matches",e),f(Element.prototype,"closest",e),f(DocumentFragment.prototype,"querySelectorAll",e),f(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let n=(this.getAttribute("popover")||"").toLowerCase();return n===""||n=="auto"?"auto":"manual"},set(n){this.setAttribute("popover",n);}},showPopover:{enumerable:!0,configurable:!0,value(){S(this);}},hidePopover:{enumerable:!0,configurable:!0,value(){m(this,!0,!0);}},togglePopover:{enumerable:!0,configurable:!0,value(n){h.get(this)==="showing"&&n===void 0||n===!1?m(this,!0,!0):(n===void 0||n===!0)&&S(this);}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(n){let s=t.call(this,n);return I(s),s}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let n=o.call(this);return n.shadowRoot&&I(n.shadowRoot),n}}});let r=new WeakMap;function i(n){Object.defineProperties(n.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(s){if(s===null)this.removeAttribute("popovertarget"),r.delete(this);else if(s instanceof Element)this.setAttribute("popovertarget",""),r.set(this,s);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let s=r.get(this);if(s&&s.isConnected)return s;if(s&&!s.isConnected)return r.delete(this),null;let u=v(this),w=this.getAttribute("popovertarget");return (u instanceof Document||u instanceof B)&&w&&u.getElementById(w)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let s=(this.getAttribute("popovertargetaction")||"").toLowerCase();return s==="show"||s==="hide"?s:"toggle"},set(s){this.setAttribute("popovertargetaction",s);}}});}i(HTMLButtonElement),i(HTMLInputElement);let l=n=>{if(!n.isTrusted)return;let s=n.composedPath()[0];if(!(s instanceof Element)||s?.shadowRoot)return;let u=v(s);if(!(u instanceof B||u instanceof Document))return;let w=s.closest("[popovertargetaction],[popovertarget]");if(w){O(w),n.preventDefault();return}},a=n=>{let s=n.key,u=n.target;!n.defaultPrevented&&u&&(s==="Escape"||s==="Esc")&&T(u.ownerDocument,!0,!0);};(n=>{n.addEventListener("click",l),n.addEventListener("keydown",a),n.addEventListener("pointerdown",x),n.addEventListener("pointerup",x);})(document),I(document);}j()||K();})();
|
|
1817
2035
|
|
|
1818
|
-
const postPopovercontainerCss = "@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}.popover{box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}.arrow{position:absolute;width:.
|
|
2036
|
+
const postPopovercontainerCss = "@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}.popover{box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}.arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}.arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}.arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}.arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}.arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";
|
|
1819
2037
|
const PostPopovercontainerStyle0 = postPopovercontainerCss;
|
|
1820
2038
|
|
|
1821
2039
|
const SIDE_MAP = {
|
|
@@ -1951,9 +2169,9 @@ const PostPopovercontainer = class {
|
|
|
1951
2169
|
}
|
|
1952
2170
|
}
|
|
1953
2171
|
render() {
|
|
1954
|
-
return (index.h(index.Host, { key: '
|
|
2172
|
+
return (index.h(index.Host, { key: '1707db71258eef7c95c13d738561d9d55df540fc', "data-version": _package.version }, index.h("div", { key: 'd1d89bfc31529c803b04f2395509fe96b38d7d7a', class: "popover", part: "popover", ref: (el) => (this.popoverRef = el) }, this.arrow && (index.h("span", { key: 'd85fc5f68be0ff8060b3be823e22744873395775', class: "arrow", ref: el => {
|
|
1955
2173
|
this.arrowRef = el;
|
|
1956
|
-
} })), index.h("slot", { key: '
|
|
2174
|
+
} })), index.h("slot", { key: '7bd455d61d270b9d6cdc132ffb7a00f0259164e7' }))));
|
|
1957
2175
|
}
|
|
1958
2176
|
get host() { return index.getElement(this); }
|
|
1959
2177
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postPopovercontainer = require('./post-popovercontainer-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postPopovercontainer = require('./post-popovercontainer-5bb6a804.js');
|
|
6
|
+
require('./index-de783b23.js');
|
|
7
|
+
require('./package-dacf5ec2.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const _package = require('./package-
|
|
3
|
+
const index = require('./index-de783b23.js');
|
|
4
|
+
const _package = require('./package-dacf5ec2.js');
|
|
5
5
|
|
|
6
6
|
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%)}";
|
|
7
7
|
const PostRatingStyle0 = postRatingCss;
|
|
@@ -73,7 +73,7 @@ const PostRating = class {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (index.h(index.Host, { key: '
|
|
76
|
+
return (index.h(index.Host, { key: '64081561d0b0819ed5fbe31c0bc7974b996ec582', "data-version": _package.version }, index.h("div", { key: 'eaed95cef70f1dfa815a77e3d630ac933d2c1eff', 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) => (index.h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
77
77
|
'star': true,
|
|
78
78
|
'before-hover': i < this.hoveredIndex,
|
|
79
79
|
'active': i < Math.round(this.currentRating),
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const postRating = require('./post-rating-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./package-
|
|
5
|
+
const postRating = require('./post-rating-d2845096.js');
|
|
6
|
+
require('./index-de783b23.js');
|
|
7
|
+
require('./package-dacf5ec2.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|