@swisspost/design-system-components 2.0.1 → 2.0.2
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 +12 -12
- package/dist/cjs/{package-0645dd08.js → package-e8091039.js} +1 -1
- package/dist/cjs/{post-accordion-64aa88cf.js → post-accordion-eebf7827.js} +1 -1
- package/dist/cjs/{post-accordion-item-51df1dfa.js → post-accordion-item-b2977ca5.js} +2 -2
- 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-af7728e6.js +98 -0
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-84416953.js → post-collapsible-15f79667.js} +1 -1
- package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/{post-icon-5fc20211.js → post-icon-b80d7e24.js} +2 -2
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-be868244.js → post-popover-392b0554.js} +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-cc5fa030.js → post-popovercontainer-130193cf.js} +5 -3
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-header-454cc178.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-1143ea40.js → post-tab-panel-fc0bfcbe.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-7ef36ff6.js → post-tabs-3f909e1c.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-45784e17.js → post-tooltip-e5b22230.js} +141 -42
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-alert/post-alert.css +2 -2
- package/dist/collection/components/post-icon/post-icon.css +1 -1
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -2
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +137 -42
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-alert2.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-popover2.js +1 -1
- package/dist/components/post-popovercontainer2.js +4 -2
- package/dist/components/post-tab-header2.js +1 -1
- package/dist/components/post-tooltip2.js +140 -41
- package/dist/docs.json +3 -13
- package/dist/esm/index.js +12 -12
- package/dist/esm/{package-37a68f71.js → package-aa903c40.js} +1 -1
- package/dist/esm/{post-accordion-8872dc1b.js → post-accordion-82b49f7b.js} +1 -1
- package/dist/esm/{post-accordion-item-02b9f01c.js → post-accordion-item-3deff76a.js} +2 -2
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/post-alert-c88451ba.js +96 -0
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-collapsible-1f23fe7d.js → post-collapsible-87ce4e6e.js} +1 -1
- package/dist/esm/post-collapsible.entry.js +2 -2
- package/dist/esm/{post-icon-2ec2127e.js → post-icon-e0536000.js} +2 -2
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-popover-f6029c96.js → post-popover-00b006b4.js} +2 -2
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-4a48161f.js → post-popovercontainer-6d1d7f76.js} +5 -3
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/post-tab-header-0f7866f9.js +30 -0
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-da24046f.js → post-tab-panel-b41d5d0f.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-21a5dfeb.js → post-tabs-97868e9c.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tooltip-4f4f87b4.js → post-tooltip-531b569d.js} +141 -42
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-0ef425cd.entry.js +1 -0
- package/dist/post-components/p-202a23d3.js +1 -0
- package/dist/post-components/p-23d55894.entry.js +1 -0
- package/dist/post-components/{p-c1c8f2ec.js → p-25766de1.js} +1 -1
- package/dist/post-components/{p-aee1750c.js → p-284ca5da.js} +1 -1
- package/dist/post-components/p-2b5a940c.entry.js +1 -0
- package/dist/post-components/p-31c06741.entry.js +1 -0
- package/dist/post-components/p-320a90d8.entry.js +1 -0
- package/dist/post-components/p-3b8a1f9d.entry.js +1 -0
- package/dist/post-components/p-61ad6181.entry.js +1 -0
- package/dist/post-components/p-71a57911.js +1 -0
- package/dist/post-components/p-b111a381.js +1 -0
- package/dist/post-components/p-ba40e160.js +1 -0
- package/dist/post-components/p-be08f39f.entry.js +1 -0
- package/dist/post-components/{p-e836df41.js → p-bf1293e1.js} +1 -1
- package/dist/post-components/{p-8aa01298.js → p-c3dd84af.js} +1 -1
- package/dist/post-components/p-c9ecada7.entry.js +1 -0
- package/dist/post-components/{p-21557c34.js → p-cdd7ad0a.js} +3 -3
- package/dist/post-components/{p-82facb04.js → p-d7863a77.js} +1 -1
- package/dist/post-components/p-d8ac8ae9.js +1 -0
- package/dist/post-components/{p-73a7d4f9.js → p-dc9ffe1d.js} +1 -1
- package/dist/post-components/p-fbf645c4.entry.js +1 -0
- package/dist/post-components/p-ff9016ce.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +14 -9
- package/package.json +3 -3
- package/dist/cjs/post-alert-ac59385a.js +0 -98
- package/dist/cjs/post-tab-header-5a7070e9.js +0 -32
- package/dist/esm/post-alert-1a766c15.js +0 -96
- package/dist/esm/post-tab-header-63676360.js +0 -30
- package/dist/post-components/p-0b46c9ba.entry.js +0 -1
- package/dist/post-components/p-2b67b933.js +0 -1
- package/dist/post-components/p-47fd6eb0.js +0 -1
- package/dist/post-components/p-548ee455.entry.js +0 -1
- package/dist/post-components/p-63b6c589.entry.js +0 -1
- package/dist/post-components/p-66f346fb.entry.js +0 -1
- package/dist/post-components/p-7973e3e4.js +0 -1
- package/dist/post-components/p-829f9eaf.entry.js +0 -1
- package/dist/post-components/p-9170d84d.entry.js +0 -1
- package/dist/post-components/p-959f83c0.entry.js +0 -1
- package/dist/post-components/p-9bc7ed9e.entry.js +0 -1
- package/dist/post-components/p-a3fc7eaf.js +0 -1
- package/dist/post-components/p-a762b512.entry.js +0 -1
- package/dist/post-components/p-ccd827a1.js +0 -1
- package/dist/post-components/p-d25e401c.entry.js +0 -1
- package/dist/post-components/p-f655856d.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-aa903c40.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom positioning reference element.
|
|
@@ -1864,6 +1864,7 @@ const PostPopovercontainer = class {
|
|
|
1864
1864
|
*/
|
|
1865
1865
|
async show(target) {
|
|
1866
1866
|
this.eventTarget = target;
|
|
1867
|
+
this.calculatePosition();
|
|
1867
1868
|
this.popoverRef.showPopover();
|
|
1868
1869
|
}
|
|
1869
1870
|
/**
|
|
@@ -1880,6 +1881,7 @@ const PostPopovercontainer = class {
|
|
|
1880
1881
|
*/
|
|
1881
1882
|
async toggle(target, force) {
|
|
1882
1883
|
this.eventTarget = target;
|
|
1884
|
+
this.calculatePosition();
|
|
1883
1885
|
this.popoverRef.togglePopover(force);
|
|
1884
1886
|
return this.popoverRef.matches(':popover-open');
|
|
1885
1887
|
}
|
|
@@ -1953,9 +1955,9 @@ const PostPopovercontainer = class {
|
|
|
1953
1955
|
}
|
|
1954
1956
|
}
|
|
1955
1957
|
render() {
|
|
1956
|
-
return (h(Host, { key: '
|
|
1958
|
+
return (h(Host, { key: '684e4cc286af23b25ca15f0ca3fd86ad017a16f1', "data-version": version }, h("div", { key: '6c34a3008e50b6aecfd176e9ca7fef08946ab18d', class: "popover", part: "popover", ref: (el) => (this.popoverRef = el) }, this.arrow && (h("span", { class: "arrow", ref: el => {
|
|
1957
1959
|
this.arrowRef = el;
|
|
1958
|
-
} })), h("slot", { key: '
|
|
1960
|
+
} })), h("slot", { key: 'a79f799160b2cda12517ccd684e190304d4eb4ae' }))));
|
|
1959
1961
|
}
|
|
1960
1962
|
get host() { return getElement(this); }
|
|
1961
1963
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_popovercontainer } from './post-popovercontainer-
|
|
1
|
+
export { P as post_popovercontainer } from './post-popovercontainer-6d1d7f76.js';
|
|
2
2
|
import './index-1708db56.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-aa903c40.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
|
|
2
|
+
import { v as version } from './package-aa903c40.js';
|
|
3
|
+
import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
|
|
4
|
+
|
|
5
|
+
const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:#fff;color:var(--post-contrast-color)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:#fff;color:var(--post-contrast-color);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:\"\";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:\"\";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success .tab-title{background-color:#2c911c}.bg-success .tab-title.active{background-color:#2c911c}.bg-success .nav-item{background-color:#2c911c}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-danger .tab-title{background-color:#a51728}.bg-danger .tab-title.active{background-color:#a51728}.bg-danger .nav-item{background-color:#a51728}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}.bg-success-green .tab-title{background-color:#2c871d}.bg-success-green .tab-title.active{background-color:#2c871d}.bg-success-green .nav-item{background-color:#2c871d}.bg-error-red .tab-title{background-color:#a51728}.bg-error-red .tab-title.active{background-color:#a51728}.bg-error-red .nav-item{background-color:#a51728}.bg-warning-orange .tab-title{background-color:#f49e00}.bg-warning-orange .tab-title.active{background-color:#f49e00}.bg-warning-orange .nav-item{background-color:#f49e00}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button}";
|
|
6
|
+
const PostTabHeaderStyle0 = postTabHeaderCss;
|
|
7
|
+
|
|
8
|
+
const PostTabHeader = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.tabId = undefined;
|
|
12
|
+
this.panel = undefined;
|
|
13
|
+
}
|
|
14
|
+
validateFor(newValue) {
|
|
15
|
+
checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (h(Host, { key: '5685ea424c0e59351a7df7e6b990740067f7e986', "data-version": version }, h("button", { key: 'f32ebddafa7450b081c88e44405f59396a0e6b97', "aria-selected": "false", class: "tab-title", id: this.tabId, role: "tab", tabindex: "-1", type: "button" }, h("slot", { key: '95022af953bbbaf41b5eac4594bf00dc4b12fb37' }))));
|
|
22
|
+
}
|
|
23
|
+
get host() { return getElement(this); }
|
|
24
|
+
static get watchers() { return {
|
|
25
|
+
"panel": ["validateFor"]
|
|
26
|
+
}; }
|
|
27
|
+
};
|
|
28
|
+
PostTabHeader.style = PostTabHeaderStyle0;
|
|
29
|
+
|
|
30
|
+
export { PostTabHeader as P };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as post_tab_header } from './post-tab-header-
|
|
1
|
+
export { P as post_tab_header } from './post-tab-header-0f7866f9.js';
|
|
2
2
|
import './index-1708db56.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-aa903c40.js';
|
|
4
4
|
import './check-non-empty-58bd6b17.js';
|
|
5
5
|
import './constants-8d548297.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-aa903c40.js';
|
|
3
3
|
|
|
4
4
|
const postTabPanelCss = ":host{display:none}";
|
|
5
5
|
const PostTabPanelStyle0 = postTabPanelCss;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_tab_panel } from './post-tab-panel-
|
|
1
|
+
export { P as post_tab_panel } from './post-tab-panel-b41d5d0f.js';
|
|
2
2
|
import './index-1708db56.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-aa903c40.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1708db56.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-aa903c40.js';
|
|
3
3
|
import { f as fadeOut, a as fadeIn } from './fade-7fd71785.js';
|
|
4
4
|
|
|
5
5
|
const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:#faf9f8}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{margin-block:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-primary .tabs-wrapper{background-color:#333}.bg-white .tabs-wrapper{background-color:#fff}.bg-black .tabs-wrapper{background-color:#000}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success .tabs-wrapper{background-color:#2c911c}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-danger .tabs-wrapper{background-color:#a51728}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}.bg-success-green .tabs-wrapper{background-color:#2c871d}.bg-error-red .tabs-wrapper{background-color:#a51728}.bg-warning-orange .tabs-wrapper{background-color:#f49e00}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}:host{display:block}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
|
|
2
|
-
import { v as version$1 } from './package-
|
|
2
|
+
import { v as version$1 } from './package-aa903c40.js';
|
|
3
3
|
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
5
|
|
|
@@ -4769,18 +4769,105 @@ const isFocusable = /*@__PURE__*/getDefaultExportFromCjs(focusable.exports);
|
|
|
4769
4769
|
|
|
4770
4770
|
}(window, document));
|
|
4771
4771
|
|
|
4772
|
-
const postTooltipCss = ":host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}post-popovercontainer::part(popover){padding:.25rem .5rem;max-width:13.5rem;min-height:1rem}";
|
|
4772
|
+
const postTooltipCss = ":host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}post-popovercontainer::part(popover){padding:.25rem .5rem;max-width:13.5rem;min-height:1rem}post-popovercontainer.has-arrow::part(popover)::after{position:absolute;content:\"\";inset:-13px;z-index:-1}";
|
|
4773
4773
|
const PostTooltipStyle0 = postTooltipCss;
|
|
4774
4774
|
|
|
4775
|
+
/**
|
|
4776
|
+
* @slot default - Slot for the content of the tooltip.
|
|
4777
|
+
*/
|
|
4778
|
+
/**
|
|
4779
|
+
* Track how many instances remain on the page. Used for removing global event listeners
|
|
4780
|
+
*/
|
|
4781
|
+
let tooltipInstances = 0;
|
|
4782
|
+
let hideTooltipTimeout = null;
|
|
4783
|
+
/**
|
|
4784
|
+
* Global event listener to show tooltips. This is globalized so that triggers that are rendered
|
|
4785
|
+
* async will still work without the need to set listeners on the element itself
|
|
4786
|
+
* @param e Event
|
|
4787
|
+
* @returns
|
|
4788
|
+
*/
|
|
4789
|
+
const globalInterestHandler = (e) => {
|
|
4790
|
+
const target = e.target;
|
|
4791
|
+
if (!(e === null || e === void 0 ? void 0 : e.target) || !('getAttribute' in e.target))
|
|
4792
|
+
return;
|
|
4793
|
+
const tooltipTarget = target.getAttribute('data-tooltip-target');
|
|
4794
|
+
if (!tooltipTarget || tooltipTarget === '')
|
|
4795
|
+
return;
|
|
4796
|
+
const tooltip = document.getElementById(tooltipTarget);
|
|
4797
|
+
tooltip === null || tooltip === void 0 ? void 0 : tooltip.show(target);
|
|
4798
|
+
if (hideTooltipTimeout) {
|
|
4799
|
+
window.clearTimeout(hideTooltipTimeout);
|
|
4800
|
+
hideTooltipTimeout = null;
|
|
4801
|
+
}
|
|
4802
|
+
};
|
|
4803
|
+
/**
|
|
4804
|
+
* Global event listener to hide tooltips. This is globalized so that triggers that are rendered
|
|
4805
|
+
* async will still work without the need to set listeners on the element itself
|
|
4806
|
+
* @param e Event
|
|
4807
|
+
* @returns
|
|
4808
|
+
*/
|
|
4809
|
+
const globalInterestLostHandler = (e) => {
|
|
4810
|
+
const target = e.target;
|
|
4811
|
+
const tooltipTarget = target.getAttribute('data-tooltip-target');
|
|
4812
|
+
if (!tooltipTarget || tooltipTarget === '')
|
|
4813
|
+
return;
|
|
4814
|
+
const tooltip = document.getElementById(tooltipTarget);
|
|
4815
|
+
globalHideTooltip(tooltip);
|
|
4816
|
+
};
|
|
4817
|
+
/**
|
|
4818
|
+
* Start the hiding process through a timeout to give other interest events a chance to
|
|
4819
|
+
* intervene and cancel the hide event.
|
|
4820
|
+
* @param {HTMLPostTooltipElement} tooltip
|
|
4821
|
+
*/
|
|
4822
|
+
const globalHideTooltip = (tooltip) => {
|
|
4823
|
+
hideTooltipTimeout = window.setTimeout(() => {
|
|
4824
|
+
tooltip.hide();
|
|
4825
|
+
hideTooltipTimeout = null;
|
|
4826
|
+
}, 42);
|
|
4827
|
+
};
|
|
4828
|
+
/**
|
|
4829
|
+
* Patch some accessibility features that are hard to remember or understand
|
|
4830
|
+
* @param {HTMLElement} trigger
|
|
4831
|
+
*/
|
|
4832
|
+
const patchAccessibilityFeatures = (trigger) => {
|
|
4833
|
+
const describedBy = trigger.getAttribute('aria-describedby');
|
|
4834
|
+
const id = trigger.getAttribute('data-tooltip-target');
|
|
4835
|
+
// Add tooltip to aria-describedby
|
|
4836
|
+
if (!(describedBy === null || describedBy === void 0 ? void 0 : describedBy.includes(id))) {
|
|
4837
|
+
const newDescribedBy = describedBy ? `${describedBy} ${id}` : id;
|
|
4838
|
+
trigger.setAttribute('aria-describedby', newDescribedBy);
|
|
4839
|
+
}
|
|
4840
|
+
// Make element focusable
|
|
4841
|
+
if (!isFocusable(trigger)) {
|
|
4842
|
+
trigger.setAttribute('tabindex', '0');
|
|
4843
|
+
}
|
|
4844
|
+
};
|
|
4845
|
+
/**
|
|
4846
|
+
* Handle attribute changes and childList changes from the observer
|
|
4847
|
+
* @param {MutationRecord[]} mutationList
|
|
4848
|
+
*/
|
|
4849
|
+
const triggerObserverHandler = mutationList => {
|
|
4850
|
+
mutationList.forEach(mutation => {
|
|
4851
|
+
if (mutation.type === 'attributes' && mutation.attributeName === 'data-tooltip-target') {
|
|
4852
|
+
patchAccessibilityFeatures(mutation.target);
|
|
4853
|
+
}
|
|
4854
|
+
if (mutation.type === 'childList') {
|
|
4855
|
+
mutation.addedNodes.forEach(node => {
|
|
4856
|
+
if (node.nodeType === Node.ELEMENT_NODE &&
|
|
4857
|
+
node.hasAttribute('data-tooltip-target')) {
|
|
4858
|
+
patchAccessibilityFeatures(node);
|
|
4859
|
+
}
|
|
4860
|
+
});
|
|
4861
|
+
}
|
|
4862
|
+
});
|
|
4863
|
+
};
|
|
4864
|
+
// Initialize a mutation observer for patching accessibility features
|
|
4865
|
+
const triggerObserver = new MutationObserver(triggerObserverHandler);
|
|
4775
4866
|
const PostTooltip = class {
|
|
4776
4867
|
constructor(hostRef) {
|
|
4777
4868
|
registerInstance(this, hostRef);
|
|
4778
4869
|
this.placement = 'top';
|
|
4779
4870
|
this.arrow = true;
|
|
4780
|
-
// Create local versions of event handlers for de-registration
|
|
4781
|
-
// https://stackoverflow.com/questions/33859113/javascript-removeeventlistener-not-working-inside-a-class
|
|
4782
|
-
this.localShowTooltip = e => this.show(e.target);
|
|
4783
|
-
this.localHideTooltip = this.hide.bind(this);
|
|
4784
4871
|
}
|
|
4785
4872
|
connectedCallback() {
|
|
4786
4873
|
if (!this.host.id) {
|
|
@@ -4788,29 +4875,45 @@ const PostTooltip = class {
|
|
|
4788
4875
|
/*prettier-ignore*/
|
|
4789
4876
|
'No id set: <post-tooltip> must have an id, linking it to it\'s target element using the data-tooltip-target attribute.');
|
|
4790
4877
|
}
|
|
4791
|
-
|
|
4792
|
-
|
|
4878
|
+
}
|
|
4879
|
+
/**
|
|
4880
|
+
* Add interest event listeners, but only once, and start
|
|
4881
|
+
* the accessibility patcher
|
|
4882
|
+
*/
|
|
4883
|
+
componentWillLoad() {
|
|
4884
|
+
if (tooltipInstances === 0) {
|
|
4885
|
+
// This is the first tooltip on the page, add event listeners
|
|
4886
|
+
document.addEventListener('pointerover', globalInterestHandler);
|
|
4887
|
+
document.addEventListener('pointerout', globalInterestLostHandler);
|
|
4888
|
+
document.addEventListener('focusin', globalInterestHandler);
|
|
4889
|
+
document.addEventListener('focusout', globalInterestLostHandler);
|
|
4890
|
+
document.addEventListener('long-press', globalInterestHandler);
|
|
4891
|
+
// Initially run the accessibility patcher on all triggers
|
|
4892
|
+
document.querySelectorAll('[data-tooltip-target]').forEach(patchAccessibilityFeatures);
|
|
4893
|
+
// Start watching for future triggers
|
|
4894
|
+
triggerObserver.observe(document.body, {
|
|
4895
|
+
subtree: true,
|
|
4896
|
+
childList: true,
|
|
4897
|
+
attributeFilter: ['data-tooltip-target'],
|
|
4898
|
+
});
|
|
4793
4899
|
}
|
|
4794
|
-
|
|
4795
|
-
// https://github.com/openui/open-ui/issues/767#issuecomment-1654177227
|
|
4796
|
-
this.triggers.forEach(trigger => this.patchPopoverTargetActionInterest(trigger));
|
|
4900
|
+
tooltipInstances++;
|
|
4797
4901
|
}
|
|
4798
4902
|
/**
|
|
4799
4903
|
* Remove a bunch of event listeners if the tooltip gets removed from the DOM
|
|
4904
|
+
* and disconnect the accessibility patcher
|
|
4800
4905
|
*/
|
|
4801
4906
|
disconnectedCallback() {
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
// for browsers that don't support popover yet
|
|
4813
|
-
document.body.appendChild(this.host);
|
|
4907
|
+
tooltipInstances--;
|
|
4908
|
+
if (tooltipInstances <= 0) {
|
|
4909
|
+
// The last tooltip has been removed, stop listening for these kind of events
|
|
4910
|
+
document.removeEventListener('pointerover', globalInterestHandler);
|
|
4911
|
+
document.removeEventListener('pointerout', globalInterestLostHandler);
|
|
4912
|
+
document.removeEventListener('focusin', globalInterestHandler);
|
|
4913
|
+
document.removeEventListener('focusout', globalInterestLostHandler);
|
|
4914
|
+
document.removeEventListener('long-press', globalInterestHandler);
|
|
4915
|
+
triggerObserver.disconnect();
|
|
4916
|
+
}
|
|
4814
4917
|
}
|
|
4815
4918
|
/**
|
|
4816
4919
|
* Programmatically display the tooltip
|
|
@@ -4833,28 +4936,24 @@ const PostTooltip = class {
|
|
|
4833
4936
|
async toggle(target, force) {
|
|
4834
4937
|
this.popoverRef.toggle(target, force);
|
|
4835
4938
|
}
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
trigger.addEventListener('blur', this.localHideTooltip);
|
|
4844
|
-
trigger.addEventListener('long-press', this.localShowTooltip);
|
|
4845
|
-
// Patch missing aria-describedby attribute on the trigger without overriding existing values
|
|
4846
|
-
const describedBy = trigger.getAttribute('aria-describedby');
|
|
4847
|
-
if (!(describedBy === null || describedBy === void 0 ? void 0 : describedBy.includes(this.host.id))) {
|
|
4848
|
-
const newDescribedBy = describedBy ? `${describedBy} ${this.host.id}` : this.host.id;
|
|
4849
|
-
trigger.setAttribute('aria-describedby', newDescribedBy);
|
|
4850
|
-
}
|
|
4851
|
-
// Patch missing focus ability on the trigger element
|
|
4852
|
-
if (!isFocusable(trigger)) {
|
|
4853
|
-
trigger.setAttribute('tabindex', '0');
|
|
4939
|
+
/**
|
|
4940
|
+
* Pointer or focus is on the tooltip, stop the tooltip from disappearing
|
|
4941
|
+
*/
|
|
4942
|
+
handleInterest() {
|
|
4943
|
+
if (hideTooltipTimeout) {
|
|
4944
|
+
window.clearTimeout(hideTooltipTimeout);
|
|
4945
|
+
hideTooltipTimeout = null;
|
|
4854
4946
|
}
|
|
4855
4947
|
}
|
|
4948
|
+
/**
|
|
4949
|
+
* Pointer or focus left the tooltip, initiate the hiding process
|
|
4950
|
+
*/
|
|
4951
|
+
handleInterestLost() {
|
|
4952
|
+
globalHideTooltip(this);
|
|
4953
|
+
}
|
|
4856
4954
|
render() {
|
|
4857
|
-
|
|
4955
|
+
const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
|
|
4956
|
+
return (h(Host, { key: 'd773ddc0ce1a4dc682dfd05aea2191edb592a1a9', "data-version": version$1, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: '4465e819738b663ef9961e61b2b58a4a0a3a1039', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: 'c97e4c780acf110048b8415d2714273abbe5e479' }))));
|
|
4858
4957
|
}
|
|
4859
4958
|
get host() { return getElement(this); }
|
|
4860
4959
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_tooltip } from './post-tooltip-
|
|
1
|
+
export { P as post_tooltip } from './post-tooltip-531b569d.js';
|
|
2
2
|
import './index-1708db56.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-aa903c40.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PostAccordion}from"./p-
|
|
1
|
+
export{P as PostAccordion}from"./p-25766de1.js";export{P as PostAccordionItem}from"./p-d7863a77.js";export{P as PostAlert}from"./p-202a23d3.js";export{P as PostCollapsible}from"./p-284ca5da.js";export{P as PostIcon}from"./p-d8ac8ae9.js";export{P as PostPopover}from"./p-c3dd84af.js";export{P as PostPopovercontainer}from"./p-bf1293e1.js";export{P as PostTabs}from"./p-dc9ffe1d.js";export{P as PostTabHeader}from"./p-b111a381.js";export{P as PostTabPanel}from"./p-ba40e160.js";export{P as PostTooltip}from"./p-cdd7ad0a.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";import"./p-f0e82e63.js";import"./p-440193f4.js";import"./p-2737eaf5.js";import"./p-b095519d.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion_item}from"./p-d7863a77.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";import"./p-f0e82e63.js";import"./p-440193f4.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as e,H as r,g as i}from"./p-10b4cf7a.js";import{v as a}from"./p-71a57911.js";import{f as s}from"./p-2737eaf5.js";import{a as n,b as l,c}from"./p-f0e82e63.js";import{c as g}from"./p-b095519d.js";const p=["primary","success","danger","warning","info","gray"],h=class{constructor(e){t(this,e),this.dismissed=o(this,"dismissed",7),this.alertId=crypto.randomUUID(),this.classes=void 0,this.hasActions=void 0,this.hasHeading=void 0,this.onDismissButtonClick=()=>this.dismiss(),this.dismissible=!1,this.dismissLabel=void 0,this.fixed=!1,this.icon=void 0,this.type="primary"}validateDismissible(t=this.dismissible){n(t,"boolean",'The post-alert "dismissible" prop should be a boolean.'),setTimeout((()=>this.validateDismissLabel()))}validateDismissLabel(t=this.dismissLabel){this.dismissible&&g(t,'Dismissible post-alert\'s require a "dismiss-label" prop.')}validateFixed(t=this.fixed){n(t,"boolean",'The post-alert "fixed" prop should be a boolean.')}validateIcon(t=this.icon){l(t,/\d{4}|none/,'The post-alert "icon" prop should be a 4-digits string.')}validateType(t=this.type){c(t,p,`The post-alert requires a type form: ${p.join(", ")}`)}connectedCallback(){this.validateDismissible(),this.validateFixed(),this.validateIcon(),this.validateType()}componentWillRender(){var t;this.hasHeading=this.host.querySelectorAll("[slot=heading]").length>0,this.hasActions=this.host.querySelectorAll("[slot=actions]").length>0,this.classes=`alert alert-${null!==(t=this.type)&&void 0!==t?t:"primary"}`,this.dismissible&&(this.classes+=" alert-dismissible"),this.hasActions&&(this.classes+=" alert-action"),this.fixed&&(this.classes+=" alert-fixed-bottom"),"none"===this.icon&&(this.classes+=" no-icon")}async dismiss(){const t=s(this.host);await t.finished,this.host.remove(),this.dismissed.emit()}render(){const t=[this.hasHeading&&e("div",{key:`${this.alertId}-heading`,class:"alert-heading"},e("slot",{key:"b151a1b8d49d08bd15b4a6661f7ecd25660971f8",name:"heading"})),e("slot",{key:`${this.alertId}-message`})],o=[e("div",{key:`${this.alertId}-content`,class:"alert-content"},t),e("div",{key:`${this.alertId}-buttons`,class:"alert-buttons"},e("slot",{key:"6855a0e7c42527b628f3d76aeb13c86a1f708f38",name:"actions"}))];return e(r,{key:"959f326cf08711d6639678bfba195b8089b5cf6f","data-version":a},e("div",{key:"011f13e08ebc25fcec404c316b3b74d0f588e0fc",role:"alert",class:this.classes},this.dismissible&&e("button",{class:"btn-close",onClick:this.onDismissButtonClick},e("span",{class:"visually-hidden"},this.dismissLabel)),this.icon&&"none"!==this.icon&&e("post-icon",{key:`${this.alertId}-icon`,name:this.icon}),this.hasActions?o:t))}get host(){return i(this)}static get watchers(){return{dismissible:["validateDismissible"],dismissLabel:["validateDismissLabel"],fixed:["validateFixed"],icon:["validateIcon"],type:["validateType"]}}};h.style="/*!\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 */.alert-primary,.alert-success,.alert-danger,.alert-warning,.alert-info,.alert-gray,.alert-notification,.alert-error{background-color:rgb(var(--post-bg-rgb)) !important;color:var(--post-contrast-color) !important}.alert-success,.alert-warning,.alert-info,.alert-gray{--post-contrast-color:#000;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-primary:hsl(0, 0%, 20%);--post-white:#fff;--post-black:#000;--post-info:#cce4ee;--post-success:#2c911c;--post-warning:#f49e00;--post-danger:#a51728;--post-nightblue:#004976;--post-nightblue-bright:#0076a8;--post-petrol:#006d68;--post-petrol-bright:#00968f;--post-coral:#9e2a2f;--post-coral-bright:#e03c31;--post-olive:#716135;--post-olive-bright:#aa9d2e;--post-purple:#80276c;--post-purple-bright:#c5299b;--post-aubergine:#523178;--post-aubergine-bright:#7566a0;--post-success-green:#2c871d;--post-error-red:#a51728;--post-warning-orange:#f49e00;--post-success-background:#c0debb;--post-error-background:#ffdade;--post-warning-background:#fce2b2;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-yellow-rgb:255, 204, 0;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-primary-rgb:51, 51, 51;--post-white-rgb:255, 255, 255;--post-black-rgb:0, 0, 0;--post-info-rgb:204, 228, 238;--post-success-rgb:44, 145, 28;--post-warning-rgb:244, 158, 0;--post-danger-rgb:165, 23, 40;--post-nightblue-rgb:0, 73, 118;--post-nightblue-bright-rgb:0, 118, 168;--post-petrol-rgb:0, 109, 104;--post-petrol-bright-rgb:0, 150, 143;--post-coral-rgb:158, 42, 47;--post-coral-bright-rgb:224, 60, 49;--post-olive-rgb:113, 97, 53;--post-olive-bright-rgb:170, 157, 46;--post-purple-rgb:128, 39, 108;--post-purple-bright-rgb:197, 41, 155;--post-aubergine-rgb:82, 49, 120;--post-aubergine-bright-rgb:117, 102, 160;--post-success-green-rgb:44, 135, 29;--post-error-red-rgb:165, 23, 40;--post-warning-orange-rgb:244, 158, 0;--post-success-background-rgb:192, 222, 187;--post-error-background-rgb:255, 218, 222;--post-warning-background-rgb:252, 226, 178}.alert-primary,.alert-danger,.alert-notification,.alert-error{--post-contrast-color:#fff;--post-contrast-color-inverted:#000;--post-dark:#faf9f8;--post-light:hsl(0, 0%, 20%);--post-gray-80:hsl(0, 0%, 90%);--post-gray-60:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-20:hsl(0, 0%, 40%);--post-gray-10:hsl(0, 0%, 20%);--post-contrast-color-rgb:255, 255, 255;--post-contrast-color-inverted-rgb:0, 0, 0;--post-dark-rgb:250, 249, 248;--post-light-rgb:51, 51, 51;--post-gray-80-rgb:230, 230, 230;--post-gray-60-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-20-rgb:102, 102, 102;--post-gray-10-rgb:51, 51, 51}.alert{position:relative;box-sizing:border-box;min-height:5rem;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);border-radius:4px;padding:1rem 1.25rem;padding-inline-start:5.5rem;margin-block-end:1rem;font-size:1rem;font-weight:300}.alert.no-icon{min-height:3.5rem;padding-inline-start:1.25rem}.alert[class^=pi-],.alert[class*=\" pi-\"]{background-size:3rem;background-position:1.25rem 1rem;background-repeat:no-repeat}.alert[class^=pi-].no-icon,.alert[class*=\" pi-\"].no-icon{background-image:none}.alert::before{content:\"\";display:block}.alert::before,.alert>post-icon{position:absolute;height:3rem;width:3rem;left:1.25rem;top:1rem}.alert.no-icon::before,.alert[class^=pi-]::before,.alert[class*=\" pi-\"]::before{content:unset}.alert.no-icon>post-icon,.alert[class^=pi-]>post-icon,.alert[class*=\" pi-\"]>post-icon{display:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.alert{filter:none !important;border:2px solid CanvasText}}.alert:not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert:not(.alert-action) a{font-weight:400}.alert:not(.alert-action) hr{margin-block:.5rem .75rem !important}.alert:not(.alert-action)>:only-child,.alert:not(.alert-action)>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert:not(.alert-action)>*{margin:0}.alert-heading{font-size:1.0625rem;font-weight:700}.alert-dismissible{pointer-events:auto;position:relative;padding-inline-end:4rem}.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:1.25rem}.alert-dismissible>.btn-close:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action{display:flex;flex-direction:row;align-items:center;gap:1.25rem}.alert-action>.alert-content{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert-action>.alert-content a{font-weight:400}.alert-action>.alert-content hr{margin-block:.5rem .75rem !important}.alert-action>.alert-content>:only-child,.alert-action>.alert-content>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action>.alert-content>*{margin:0}.alert-action>.alert-buttons{flex:0 0 auto;display:flex;align-items:center;gap:.5rem}@media (min-width: 780px){.alert-action.alert-dismissible>.btn-close{inset-block-start:calc(50% - 0.75rem)}}@media (max-width: 779.98px){.alert-action{flex-direction:column;align-items:stretch;padding-inline:1.25rem}.alert-action>.alert-content{padding-inline-start:4.25rem;padding-inline-end:2.75rem}.alert-action>.alert-buttons{display:flex}.alert-action>.alert-buttons>.btn{flex:1 0 0;width:100%}.alert-action>.alert-buttons>.btn:first-child{margin-inline-start:0}}.alert-fixed-bottom{position:fixed;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;margin-bottom:0;border-radius:0;z-index:1030}@media (min-width: 1441px){.alert-fixed-bottom{padding-inline-end:calc((100% - 1440px) / 2 + 120px + 1.25rem);padding-inline-start:calc(\n (100% - 1440px) / 2 + 120px + 1.25rem + 3rem + 1.25rem\n );background-position-x:calc((100% - 1440px) / 2 + 120px + 1.25rem + 1.5rem)}.alert-fixed-bottom::before{left:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.no-icon{padding-inline-start:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.alert-dismissible{padding-inline-end:calc(\n (100% - 1440px) / 2 + 120px + 1.25rem + 1.25rem + 1.5rem\n )}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1440px) / 2 + 120px + 1.25rem)}}.alert-primary{--post-bg-rgb:51, 51, 51}.alert-primary:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb:44, 145, 28}.alert-success:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c911c}.alert-danger{--post-bg-rgb:165, 23, 40}.alert-danger:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.alert-warning{--post-bg-rgb:244, 158, 0}.alert-warning:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.alert-info{--post-bg-rgb:204, 228, 238}.alert-info:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-info:has(>post-icon)::before{content:none}.alert-info>post-icon{background-color:#cce4ee}.alert-gray{--post-bg-rgb:244, 243, 241}.alert-gray:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-gray:has(>post-icon)::before{content:none}.alert-gray>post-icon{background-color:#f4f3f1}.alert-notification{--post-bg-rgb:51, 51, 51}.alert-notification:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-notification:has(>post-icon)::before{content:none}.alert-notification>post-icon{background-color:#333}.alert-error{--post-bg-rgb:165, 23, 40}.alert-error:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-error:has(>post-icon)::before{content:none}.alert-error>post-icon{background-color:#a51728}.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}.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-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}:host ::slotted(*){margin:0 !important}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}.alert-heading>::slotted(h1){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h2){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h3){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h4){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h5){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h6){font-size:inherit !important;font-weight:inherit !important}";export{h as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tooltip}from"./p-cdd7ad0a.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,H as i,g as a}from"./p-10b4cf7a.js";import{v as o}from"./p-
|
|
1
|
+
import{r as s,h as t,H as i,g as a}from"./p-10b4cf7a.js";import{v as o}from"./p-71a57911.js";const e=class{constructor(t){s(this,t),this.expandedItems=new Set,this.multiple=!1}componentWillLoad(){this.registerAccordionItems()}async toggle(s){const t=this.accordionItems.find((t=>t.id===s));if(!t)throw new Error(`No post-accordion-item found with id #${s}.`);await t.toggle()}collapseChangeHandler(s){s.stopPropagation();const t=s.target,i=this.expandedItems.has(t);i?this.expandedItems.delete(t):this.expandedItems.add(t),this.multiple||i||Array.from(this.expandedItems.values()).filter((s=>s!==t)).forEach((s=>{s.toggle(!1)}))}async expandAll(){this.multiple?await Promise.all(this.accordionItems.map((s=>s.toggle(!0)))):this.expandedItems.size||await this.accordionItems[0].toggle(!0)}async collapseAll(){await Promise.all(this.accordionItems.map((s=>s.toggle(!1))))}registerAccordionItems(){this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item")),this.accordionItems.filter((s=>!s.collapsed||this.expandedItems.has(s))).forEach(((s,t)=>{this.multiple||0===t?this.expandedItems.add(s):s.setAttribute("collapsed","")}))}render(){return t(i,{key:"08d0661a81fef59f3b74cbceceff49920cbfda0c","data-version":o},t("div",{key:"2625963e5f2952fd5bd5b4f05a14142a501b272c",class:"accordion"},t("slot",{key:"f2514ed051562c17fe852bd2bf39c10282915bfb",onSlotchange:()=>this.registerAccordionItems()})))}get host(){return a(this)}};e.style=":host{display:block}";export{e as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i,g as a}from"./p-10b4cf7a.js";import{v as o}from"./p-
|
|
1
|
+
import{r as t,c as s,h as e,H as i,g as a}from"./p-10b4cf7a.js";import{v as o}from"./p-71a57911.js";import{d as h}from"./p-f0e82e63.js";const r={height:"0",overflow:"hidden"},c={duration:350,easing:"ease",fill:"forwards"},l=class{constructor(e){t(this,e),this.collapseChange=s(this,"collapseChange",7),this.isLoaded=!1,this.id=void 0,this.isOpen=!0,this.collapsed=!1}validateCollapsed(t=this.collapsed){h(t,"boolean","The `collapsed` property of the `post-collapsible` must be a boolean.")}connectedCallback(){this.validateCollapsed()}componentWillRender(){this.id=this.host.id||`c${crypto.randomUUID()}`}componentDidLoad(){this.collapsed&&this.toggle(!1),this.isLoaded=!0}async toggle(t=!this.isOpen){if(t===this.isOpen)return t;this.isOpen=!this.isOpen,this.isLoaded&&this.collapseChange.emit(this.isOpen);const s=t?(e=this.collapsible).animate([r,{height:`${e.scrollHeight}px`,offset:1},{height:"auto"}],c):(t=>{const s={height:window.getComputedStyle(t).height};return t.animate([s,r],c)})(this.collapsible);var e;return this.isLoaded&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches||s.finish(),await s.finished,s.commitStyles(),this.isOpen}render(){return e(i,{key:"cf0622c0844054ac31023781a393b174ac263397",id:this.id,"data-version":o},e("div",{key:"4138a3402559b59bc2994eace597bbf27623f806",class:"collapse",id:`${this.id}--collapse`,ref:t=>this.collapsible=t},e("slot",{key:"9a6fd61dcc0925b8ac1bf2353c4a093ae23fac22"})))}get host(){return a(this)}static get watchers(){return{collapsed:["validateCollapsed"]}}};l.style=":host{display:block}";export{l as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_header}from"./p-b111a381.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_alert}from"./p-202a23d3.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";import"./p-2737eaf5.js";import"./p-f0e82e63.js";import"./p-440193f4.js";import"./p-b095519d.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_popovercontainer}from"./p-bf1293e1.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tabs}from"./p-dc9ffe1d.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";import"./p-2737eaf5.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion}from"./p-25766de1.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="2.0.2";export{o as v}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as t,H as r,g as b}from"./p-10b4cf7a.js";import{v as a}from"./p-71a57911.js";import{c as e}from"./p-b095519d.js";const c=class{constructor(t){o(this,t),this.tabId=void 0,this.panel=void 0}validateFor(o){e(o,'The "panel" prop is required for the post-tab-header.')}componentWillLoad(){this.tabId=`tab-${this.host.id||crypto.randomUUID()}`}render(){return t(r,{key:"5685ea424c0e59351a7df7e6b990740067f7e986","data-version":a},t("button",{key:"f32ebddafa7450b081c88e44405f59396a0e6b97","aria-selected":"false",class:"tab-title",id:this.tabId,role:"tab",tabindex:"-1",type:"button"},t("slot",{key:"95022af953bbbaf41b5eac4594bf00dc4b12fb37"})))}get host(){return b(this)}static get watchers(){return{panel:["validateFor"]}}};c.style='.tab-title[role=tab]{display:inline-block;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:#fff;color:var(--post-contrast-color)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:#fff;color:var(--post-contrast-color);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:"";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:"";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success .tab-title{background-color:#2c911c}.bg-success .tab-title.active{background-color:#2c911c}.bg-success .nav-item{background-color:#2c911c}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-danger .tab-title{background-color:#a51728}.bg-danger .tab-title.active{background-color:#a51728}.bg-danger .nav-item{background-color:#a51728}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}.bg-success-green .tab-title{background-color:#2c871d}.bg-success-green .tab-title.active{background-color:#2c871d}.bg-success-green .nav-item{background-color:#2c871d}.bg-error-red .tab-title{background-color:#a51728}.bg-error-red .tab-title.active{background-color:#a51728}.bg-error-red .nav-item{background-color:#a51728}.bg-warning-orange .tab-title{background-color:#f49e00}.bg-warning-orange .tab-title.active{background-color:#f49e00}.bg-warning-orange .nav-item{background-color:#f49e00}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button}';export{c as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as s,H as e,g as t}from"./p-10b4cf7a.js";import{v as o}from"./p-71a57911.js";const c=class{constructor(s){a(this,s),this.panelId=void 0,this.name=void 0}componentWillLoad(){this.panelId=`panel-${this.host.id||crypto.randomUUID()}`}render(){return s(e,{key:"95b6c12c52ef3aa66235d9c10e9c00730e1eb438","data-version":o},s("div",{key:"57dac4559c79ac5db11d6b945273b7126564f2d5",class:"tab-pane",id:this.panelId,role:"tabpanel"},s("slot",{key:"ee9c6c82a6e9cadb56d914c483bae83907709a17"})))}get host(){return t(this)}};c.style=":host{display:none}";export{c as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_popover}from"./p-c3dd84af.js";import"./p-10b4cf7a.js";import"./p-71a57911.js";
|