@swisspost/design-system-components 10.0.0-next.49 → 10.0.0-next.51
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/{event-from-C6kpQwhw.js → event-from-CLvtSUKf.js} +20 -6
- package/dist/cjs/{get-root-CfQ2PogP.js → get-root-CyMf3Vsd.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-CR0YynRY.js → package-D1eOXW8H.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +3 -3
- package/dist/cjs/post-avatar.cjs.entry.js +3 -3
- package/dist/cjs/post-back-to-top.cjs.entry.js +2 -2
- package/dist/cjs/post-banner.cjs.entry.js +5 -5
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +4 -4
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +11 -6
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/post-closebutton_15.cjs.entry.js +173 -93
- package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -4
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/collection/components/post-avatar/post-avatar.css +1 -1
- package/dist/collection/components/post-banner/post-banner.js +2 -2
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +30 -4
- package/dist/collection/components/post-closebutton/button-types.js +1 -0
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +65 -5
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +10 -11
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-language-option/post-language-option.js +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +1 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-list/post-list.js +1 -1
- package/dist/collection/components/post-list-item/post-list-item.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +71 -19
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +15 -6
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +2 -2
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +1 -1
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/utils/event-from.js +20 -6
- package/dist/components/event-from.js +20 -6
- package/dist/components/package.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-banner.js +2 -2
- package/dist/components/post-breadcrumbs.js +13 -6
- package/dist/components/post-closebutton.js +1 -44
- package/dist/components/post-closebutton2.js +77 -0
- package/dist/components/post-header.js +8 -12
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-option.js +1 -1
- package/dist/components/post-language-switch.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-list-item.js +1 -1
- package/dist/components/post-list.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +2 -2
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +72 -20
- package/dist/components/post-menu-item2.js +2 -2
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +14 -7
- package/dist/components/post-popover.js +15 -3
- package/dist/components/post-popovercontainer2.js +2 -2
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-tab-header.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/{p-B6vPT8S3.js → p-2qJcvMt7.js} +2 -2
- package/dist/components/react/{p-DOo9tmN-.js → p-BIslNfKd.js} +3 -3
- package/dist/components/react/{p-D50E7y6E.js → p-BRBszIzq.js} +17 -10
- package/dist/components/react/{p-BS0ZqwA-.js → p-BVVgwjV0.js} +3 -3
- package/dist/components/react/{p-Amg0f2Yo.js → p-BcpJoB81.js} +2 -2
- package/dist/components/react/p-BnCGzVcR.js +78 -0
- package/dist/components/react/{p-BMdFdJWl.js → p-BsuTiCyd.js} +1 -1
- package/dist/components/react/{p-xelWyg_P.js → p-Cpz7bn7D.js} +5 -5
- package/dist/{esm/event-from-kraHE1r3.js → components/react/p-CzIKqBrS.js} +20 -6
- package/dist/components/react/{p-BDs0pvkX.js → p-D7N0KPNm.js} +2 -2
- package/dist/components/react/{p-Do9awHW7.js → p-DC3aZ-Qt.js} +2 -2
- package/dist/components/react/p-DgSkXfqW.js +3 -0
- package/dist/components/react/{p-D1oOccKr.js → p-WA0BpGMu.js} +2 -2
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-avatar.js +2 -2
- package/dist/components/react/post-back-to-top.js +2 -2
- package/dist/components/react/post-banner.js +4 -4
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +20 -13
- package/dist/components/react/post-card-control.js +2 -2
- package/dist/components/react/post-closebutton.js +1 -45
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-footer.js +6 -6
- package/dist/components/react/post-header.js +10 -14
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-option.js +2 -2
- package/dist/components/react/post-language-switch.js +7 -7
- package/dist/components/react/post-linkarea.js +2 -2
- package/dist/components/react/post-list-item.js +2 -2
- package/dist/components/react/post-list.js +2 -2
- package/dist/components/react/post-logo.js +2 -2
- package/dist/components/react/post-mainnavigation.js +4 -4
- package/dist/components/react/post-megadropdown-trigger.js +3 -3
- package/dist/components/react/post-megadropdown.js +73 -21
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-popover.js +17 -5
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-rating.js +3 -3
- package/dist/components/react/post-tab-header.js +2 -2
- package/dist/components/react/post-tab-panel.js +2 -2
- package/dist/components/react/post-tabs.js +2 -2
- package/dist/components/react/post-togglebutton.js +2 -2
- package/dist/components/react/post-tooltip-trigger.js +2 -2
- package/dist/components/react/post-tooltip.js +3 -3
- package/dist/docs.json +125 -9
- package/dist/{components/react/p-kraHE1r3.js → esm/event-from-CzIKqBrS.js} +20 -6
- package/dist/esm/{get-root-hlzxoycr.js → get-root-BkQ3CrLq.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-DgSkXfqW.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +3 -3
- package/dist/esm/post-avatar.entry.js +3 -3
- package/dist/esm/post-back-to-top.entry.js +2 -2
- package/dist/esm/post-banner.entry.js +5 -5
- package/dist/esm/post-breadcrumb-item_2.entry.js +4 -4
- package/dist/esm/post-breadcrumbs.entry.js +12 -7
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/post-closebutton_15.entry.js +173 -93
- package/dist/esm/post-collapsible_2.entry.js +4 -4
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/post-tooltip-trigger.entry.js +3 -3
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/{p-8d2e5814.entry.js → p-017fbd63.entry.js} +1 -1
- package/dist/post-components/{p-b0aaa058.entry.js → p-0b1143d4.entry.js} +1 -1
- package/dist/post-components/{p-36358cd4.entry.js → p-2440cba5.entry.js} +1 -1
- package/dist/post-components/{p-d221395c.entry.js → p-2b003617.entry.js} +1 -1
- package/dist/post-components/p-2c1e0e21.entry.js +1 -0
- package/dist/post-components/p-509ae720.entry.js +1 -0
- package/dist/post-components/{p-a982458f.entry.js → p-759510e5.entry.js} +1 -1
- package/dist/post-components/{p-BkvZk-PA.js → p-CBFgkSgY.js} +1 -1
- package/dist/post-components/p-CJ80BZ06.js +1 -0
- package/dist/post-components/p-CzIKqBrS.js +1 -0
- package/dist/post-components/p-DgSkXfqW.js +1 -0
- package/dist/post-components/{p-33008981.entry.js → p-a9d4dc7f.entry.js} +1 -1
- package/dist/post-components/p-b871aa1b.entry.js +1 -0
- package/dist/post-components/{p-26a04741.entry.js → p-d0fea1d7.entry.js} +1 -1
- package/dist/post-components/p-d25fc2d8.entry.js +1 -0
- package/dist/post-components/{p-16da91bc.entry.js → p-d377069a.entry.js} +1 -1
- package/dist/post-components/{p-bdeef760.entry.js → p-e764835b.entry.js} +1 -1
- package/dist/post-components/{p-84395e1d.entry.js → p-ea71d9fd.entry.js} +1 -1
- package/dist/post-components/{p-2f2f9b22.entry.js → p-ef38c78d.entry.js} +1 -1
- package/dist/post-components/{p-01bc39c2.entry.js → p-efa44b64.entry.js} +1 -1
- package/dist/post-components/p-f86fb192.entry.js +1 -0
- package/dist/post-components/{p-e49aa78e.entry.js → p-feed36d6.entry.js} +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +5 -0
- package/dist/types/components/post-closebutton/button-types.d.ts +2 -0
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +10 -1
- package/dist/types/components/post-header/post-header.d.ts +3 -0
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +32 -6
- package/dist/types/components/post-menu/post-menu.d.ts +3 -1
- package/dist/types/components.d.ts +22 -2
- package/dist/types/utils/event-from.d.ts +2 -1
- package/hydrate/index.js +188 -82
- package/hydrate/index.mjs +188 -82
- package/package.json +3 -3
- package/dist/components/react/p-DO48NanC.js +0 -3
- package/dist/esm/package-DO48NanC.js +0 -3
- package/dist/post-components/p-0dc1e940.entry.js +0 -1
- package/dist/post-components/p-71c48d48.entry.js +0 -1
- package/dist/post-components/p-848c10ac.entry.js +0 -1
- package/dist/post-components/p-9dbe6595.entry.js +0 -1
- package/dist/post-components/p-DO48NanC.js +0 -1
- package/dist/post-components/p-_0G7tavk.js +0 -1
- package/dist/post-components/p-eb405167.entry.js +0 -1
- package/dist/post-components/p-kraHE1r3.js +0 -1
- package/dist/cjs/{breakpoints-DmZ_BQGo.js → breakpoints-CEkeixld.js} +3 -3
- package/dist/esm/{breakpoints-_0G7tavk.js → breakpoints-CJ80BZ06.js} +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
-
import { v as version } from './p-
|
|
2
|
+
import { v as version } from './p-DgSkXfqW.js';
|
|
3
3
|
import { c as checkRequiredAndType } from './p-CV7fm1rW.js';
|
|
4
4
|
import './p-CJ80BZ06.js';
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-
|
|
5
|
+
import { d as defineCustomElement$2 } from './p-BcpJoB81.js';
|
|
6
6
|
|
|
7
7
|
const postRatingCss = ":host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);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:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) 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%)}";
|
|
8
8
|
|
|
@@ -101,7 +101,7 @@ const PostRating$1 = /*@__PURE__*/ proxyCustomElement(class PostRating extends H
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: 'befb055aff44467d2da231043db28797f843c239', "data-version": version }, h("div", { key: 'c231944ad2638c2b69b6ae9e8ad92a962aa50139', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
105
105
|
'star': true,
|
|
106
106
|
'before-hover': i < this.hoveredIndex,
|
|
107
107
|
'active': i < Math.round(this.currentRating),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
|
-
import { v as version } from './p-
|
|
2
|
+
import { v as version } from './p-DgSkXfqW.js';
|
|
3
3
|
import { c as checkRequiredAndType } from './p-CV7fm1rW.js';
|
|
4
4
|
import './p-CJ80BZ06.js';
|
|
5
5
|
import { n as nanoid } from './p-BLchVpF6.js';
|
|
@@ -19,7 +19,7 @@ const PostTabHeader$1 = /*@__PURE__*/ proxyCustomElement(class PostTabHeader ext
|
|
|
19
19
|
this.tabId = `tab-${this.host.id || nanoid(6)}`;
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '387d9db0111153ca4a7da1a9ad600daeafa3b7a1', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '62126f05530776ca45b151b00834fa0c68c5b26e' })));
|
|
23
23
|
}
|
|
24
24
|
get host() { return this; }
|
|
25
25
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
|
-
import { v as version } from './p-
|
|
2
|
+
import { v as version } from './p-DgSkXfqW.js';
|
|
3
3
|
import { n as nanoid } from './p-BLchVpF6.js';
|
|
4
4
|
import { c as checkRequiredAndType } from './p-CV7fm1rW.js';
|
|
5
5
|
import './p-CJ80BZ06.js';
|
|
@@ -21,7 +21,7 @@ const PostTabPanel$1 = /*@__PURE__*/ proxyCustomElement(class PostTabPanel exten
|
|
|
21
21
|
this.panelId = `panel-${this.host.id || nanoid(6)}`;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '97ae92b05f495a63bd5ec5f57eb196fdf6772ca8', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '8b36e0849fcd65662a27bc62ac29cec0d8db4f41' })));
|
|
25
25
|
}
|
|
26
26
|
get host() { return this; }
|
|
27
27
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
|
|
2
|
-
import { v as version } from './p-
|
|
2
|
+
import { v as version } from './p-DgSkXfqW.js';
|
|
3
3
|
import { f as fadeOut, a as fadeIn } from './p-SbIC4aZX.js';
|
|
4
4
|
import './p-CJ80BZ06.js';
|
|
5
5
|
|
|
@@ -167,7 +167,7 @@ const PostTabs$1 = /*@__PURE__*/ proxyCustomElement(class PostTabs extends H {
|
|
|
167
167
|
nextTab.focus();
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (h(Host, { key: '
|
|
170
|
+
return (h(Host, { key: 'eb30ee19d073caf4f32e255045eff58c0cb511f5', "data-version": version }, h("div", { key: '0920e0cbb6565ff8a9ff663e938291c050d6c93c', class: "tabs-wrapper", part: "tabs" }, h("div", { key: 'df3a5a698a77719b371879effba16e11709b2c22', class: "tabs", role: "tablist" }, h("slot", { key: 'e6c9592b39e999369eb1b6f43b08e7130872add9', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '14cdae926ce10f854577de34b713c8e269568dbb', class: "tab-content", part: "content" }, h("slot", { key: 'f2aaff6a23f8dd2683963cb25c95d41953e708f5', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
171
171
|
}
|
|
172
172
|
get host() { return this; }
|
|
173
173
|
static get style() { return postTabsCss; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
|
-
import { v as version } from './p-
|
|
2
|
+
import { v as version } from './p-DgSkXfqW.js';
|
|
3
3
|
|
|
4
4
|
const postTogglebuttonCss = ":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}";
|
|
5
5
|
|
|
@@ -29,7 +29,7 @@ const PostTogglebutton$1 = /*@__PURE__*/ proxyCustomElement(class PostTogglebutt
|
|
|
29
29
|
this.host.addEventListener('keydown', (e) => this.handleKeydown(e));
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '190c53c4bbada662698addcb288bcb50a8d179b3', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: '544bf7d937386a6e65be75e249f3dcc080054d74' })));
|
|
33
33
|
}
|
|
34
34
|
get host() { return this; }
|
|
35
35
|
static get style() { return postTogglebuttonCss; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
2
|
import { I as IS_BROWSER } from './p-CJ80BZ06.js';
|
|
3
3
|
import { e as checkEmptyOrType } from './p-CV7fm1rW.js';
|
|
4
|
-
import { v as version$1 } from './p-
|
|
4
|
+
import { v as version$1 } from './p-DgSkXfqW.js';
|
|
5
5
|
|
|
6
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
7
|
|
|
@@ -5189,7 +5189,7 @@ const PostTooltipTrigger$1 = /*@__PURE__*/ proxyCustomElement(class PostTooltipT
|
|
|
5189
5189
|
this.tooltip?.hide();
|
|
5190
5190
|
}
|
|
5191
5191
|
render() {
|
|
5192
|
-
return (h(Host, { key: '
|
|
5192
|
+
return (h(Host, { key: '49529a68fdcc56e8967cdd147ac4c5c35177e70f', "data-version": version$1 }, h("slot", { key: '2b38e3412393f39dd6b2da480f591e4bec38ba34', onSlotchange: () => this.handleSlotChange() })));
|
|
5193
5193
|
}
|
|
5194
5194
|
get host() { return this; }
|
|
5195
5195
|
static get watchers() { return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
|
-
import { v as version } from './p-
|
|
2
|
+
import { v as version } from './p-DgSkXfqW.js';
|
|
3
3
|
import { d as checkEmptyOrOneOf } from './p-CV7fm1rW.js';
|
|
4
4
|
import './p-CJ80BZ06.js';
|
|
5
|
-
import { d as defineCustomElement$2, a as PLACEMENT_TYPES } from './p-
|
|
5
|
+
import { d as defineCustomElement$2, a as PLACEMENT_TYPES } from './p-BVVgwjV0.js';
|
|
6
6
|
|
|
7
7
|
const postTooltipCss = ":host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:\"\";inset:-13px;z-index:-1}post-popovercontainer>div{color:var(--post-current-fg);background-color:var(--post-current-bg);padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:280px;min-height:32px;word-wrap:break-word;white-space:normal}";
|
|
8
8
|
|
|
@@ -71,7 +71,7 @@ const PostTooltip$1 = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: 'cdde276f07efb0916bb3b0cd7cf761788421e251', "data-version": version }, h("post-popovercontainer", { key: '06b4d472448d4083f717ce13e73ff9426f422ec4', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, animation: this.animation, placement: this.placement, onPostToggle: e => this.handleToggle(e), ref: (el) => (this.popoverRef = el) }, h("slot", { key: 'c5efcac53b6c0fa207ceee34ee86580c7566f8a8' }))));
|
|
75
75
|
}
|
|
76
76
|
get host() { return this; }
|
|
77
77
|
static get watchers() { return {
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-10-
|
|
2
|
+
"timestamp": "2025-10-27T16:15:20",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.35.0",
|
|
@@ -886,6 +886,29 @@
|
|
|
886
886
|
"required": true,
|
|
887
887
|
"getter": false,
|
|
888
888
|
"setter": false
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "menuLabel",
|
|
892
|
+
"type": "string",
|
|
893
|
+
"complexType": {
|
|
894
|
+
"original": "string",
|
|
895
|
+
"resolved": "string",
|
|
896
|
+
"references": {}
|
|
897
|
+
},
|
|
898
|
+
"mutable": false,
|
|
899
|
+
"attr": "menu-label",
|
|
900
|
+
"reflectToAttr": false,
|
|
901
|
+
"docs": "The accessible label for the breadcrumb menu when breadcrumb items are concatenated.",
|
|
902
|
+
"docsTags": [],
|
|
903
|
+
"values": [
|
|
904
|
+
{
|
|
905
|
+
"type": "string"
|
|
906
|
+
}
|
|
907
|
+
],
|
|
908
|
+
"optional": false,
|
|
909
|
+
"required": true,
|
|
910
|
+
"getter": false,
|
|
911
|
+
"setter": false
|
|
889
912
|
}
|
|
890
913
|
],
|
|
891
914
|
"methods": [],
|
|
@@ -1266,7 +1289,7 @@
|
|
|
1266
1289
|
},
|
|
1267
1290
|
{
|
|
1268
1291
|
"filePath": "src/components/post-closebutton/post-closebutton.tsx",
|
|
1269
|
-
"encapsulation": "
|
|
1292
|
+
"encapsulation": "none",
|
|
1270
1293
|
"tag": "post-closebutton",
|
|
1271
1294
|
"readme": "# post-closebutton\n\n\n",
|
|
1272
1295
|
"docs": "",
|
|
@@ -1277,7 +1300,52 @@
|
|
|
1277
1300
|
}
|
|
1278
1301
|
],
|
|
1279
1302
|
"usage": {},
|
|
1280
|
-
"props": [
|
|
1303
|
+
"props": [
|
|
1304
|
+
{
|
|
1305
|
+
"name": "buttonType",
|
|
1306
|
+
"type": "\"button\" | \"reset\" | \"submit\"",
|
|
1307
|
+
"complexType": {
|
|
1308
|
+
"original": "ButtonType",
|
|
1309
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
1310
|
+
"references": {
|
|
1311
|
+
"ButtonType": {
|
|
1312
|
+
"location": "import",
|
|
1313
|
+
"path": "./button-types",
|
|
1314
|
+
"id": "src/components/post-closebutton/button-types.ts::ButtonType"
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
"mutable": false,
|
|
1319
|
+
"attr": "button-type",
|
|
1320
|
+
"reflectToAttr": false,
|
|
1321
|
+
"docs": "Overrides the close button's type (\"button\" by default)",
|
|
1322
|
+
"docsTags": [
|
|
1323
|
+
{
|
|
1324
|
+
"name": "default",
|
|
1325
|
+
"text": "'button'"
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
1328
|
+
"default": "'button'",
|
|
1329
|
+
"values": [
|
|
1330
|
+
{
|
|
1331
|
+
"value": "button",
|
|
1332
|
+
"type": "string"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"value": "reset",
|
|
1336
|
+
"type": "string"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"value": "submit",
|
|
1340
|
+
"type": "string"
|
|
1341
|
+
}
|
|
1342
|
+
],
|
|
1343
|
+
"optional": true,
|
|
1344
|
+
"required": false,
|
|
1345
|
+
"getter": false,
|
|
1346
|
+
"setter": false
|
|
1347
|
+
}
|
|
1348
|
+
],
|
|
1281
1349
|
"methods": [],
|
|
1282
1350
|
"events": [],
|
|
1283
1351
|
"listeners": [],
|
|
@@ -1289,13 +1357,18 @@
|
|
|
1289
1357
|
}
|
|
1290
1358
|
],
|
|
1291
1359
|
"parts": [],
|
|
1292
|
-
"dependents": [
|
|
1360
|
+
"dependents": [
|
|
1361
|
+
"post-popover"
|
|
1362
|
+
],
|
|
1293
1363
|
"dependencies": [
|
|
1294
1364
|
"post-icon"
|
|
1295
1365
|
],
|
|
1296
1366
|
"dependencyGraph": {
|
|
1297
1367
|
"post-closebutton": [
|
|
1298
1368
|
"post-icon"
|
|
1369
|
+
],
|
|
1370
|
+
"post-popover": [
|
|
1371
|
+
"post-closebutton"
|
|
1299
1372
|
]
|
|
1300
1373
|
}
|
|
1301
1374
|
},
|
|
@@ -1611,6 +1684,10 @@
|
|
|
1611
1684
|
"name": "slot",
|
|
1612
1685
|
"text": "post-logo - Should be used together with the `<post-logo>` component."
|
|
1613
1686
|
},
|
|
1687
|
+
{
|
|
1688
|
+
"name": "slot",
|
|
1689
|
+
"text": "global-controls - Holds search button in the global header."
|
|
1690
|
+
},
|
|
1614
1691
|
{
|
|
1615
1692
|
"name": "slot",
|
|
1616
1693
|
"text": "meta-navigation - Holds an `<ul>` with meta navigation links."
|
|
@@ -1638,6 +1715,14 @@
|
|
|
1638
1715
|
{
|
|
1639
1716
|
"name": "slot",
|
|
1640
1717
|
"text": "target-group - Holds the list of buttons to choose the target group."
|
|
1718
|
+
},
|
|
1719
|
+
{
|
|
1720
|
+
"name": "slot",
|
|
1721
|
+
"text": "global-login - Holds the user menu or login button in the global header."
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"name": "slot",
|
|
1725
|
+
"text": "navigation-controls - Custom controls, right aligned with the main navigation."
|
|
1641
1726
|
}
|
|
1642
1727
|
],
|
|
1643
1728
|
"usage": {},
|
|
@@ -1690,10 +1775,22 @@
|
|
|
1690
1775
|
"name": "default",
|
|
1691
1776
|
"docs": "Custom controls or content, right aligned in the local header."
|
|
1692
1777
|
},
|
|
1778
|
+
{
|
|
1779
|
+
"name": "global-controls",
|
|
1780
|
+
"docs": "Holds search button in the global header."
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"name": "global-login",
|
|
1784
|
+
"docs": "Holds the user menu or login button in the global header."
|
|
1785
|
+
},
|
|
1693
1786
|
{
|
|
1694
1787
|
"name": "meta-navigation",
|
|
1695
1788
|
"docs": "Holds an `<ul>` with meta navigation links."
|
|
1696
1789
|
},
|
|
1790
|
+
{
|
|
1791
|
+
"name": "navigation-controls",
|
|
1792
|
+
"docs": "Custom controls, right aligned with the main navigation."
|
|
1793
|
+
},
|
|
1697
1794
|
{
|
|
1698
1795
|
"name": "post-language-switch",
|
|
1699
1796
|
"docs": "Should be used with the `<post-language-switch>` component."
|
|
@@ -2765,6 +2862,10 @@
|
|
|
2765
2862
|
{
|
|
2766
2863
|
"name": "part",
|
|
2767
2864
|
"text": "menu - The container element that holds the list of menu items."
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
"name": "slot",
|
|
2868
|
+
"text": "header - Holds the header part of the menu."
|
|
2768
2869
|
}
|
|
2769
2870
|
],
|
|
2770
2871
|
"usage": {},
|
|
@@ -2787,8 +2888,8 @@
|
|
|
2787
2888
|
"type": "string"
|
|
2788
2889
|
}
|
|
2789
2890
|
],
|
|
2790
|
-
"optional":
|
|
2791
|
-
"required":
|
|
2891
|
+
"optional": false,
|
|
2892
|
+
"required": true,
|
|
2792
2893
|
"getter": false,
|
|
2793
2894
|
"setter": false
|
|
2794
2895
|
},
|
|
@@ -2996,7 +3097,12 @@
|
|
|
2996
3097
|
],
|
|
2997
3098
|
"listeners": [],
|
|
2998
3099
|
"styles": [],
|
|
2999
|
-
"slots": [
|
|
3100
|
+
"slots": [
|
|
3101
|
+
{
|
|
3102
|
+
"name": "header",
|
|
3103
|
+
"docs": "Holds the header part of the menu."
|
|
3104
|
+
}
|
|
3105
|
+
],
|
|
3000
3106
|
"parts": [
|
|
3001
3107
|
{
|
|
3002
3108
|
"name": "menu",
|
|
@@ -3373,11 +3479,16 @@
|
|
|
3373
3479
|
"parts": [],
|
|
3374
3480
|
"dependents": [],
|
|
3375
3481
|
"dependencies": [
|
|
3376
|
-
"post-popovercontainer"
|
|
3482
|
+
"post-popovercontainer",
|
|
3483
|
+
"post-closebutton"
|
|
3377
3484
|
],
|
|
3378
3485
|
"dependencyGraph": {
|
|
3379
3486
|
"post-popover": [
|
|
3380
|
-
"post-popovercontainer"
|
|
3487
|
+
"post-popovercontainer",
|
|
3488
|
+
"post-closebutton"
|
|
3489
|
+
],
|
|
3490
|
+
"post-closebutton": [
|
|
3491
|
+
"post-icon"
|
|
3381
3492
|
]
|
|
3382
3493
|
}
|
|
3383
3494
|
},
|
|
@@ -4695,6 +4806,11 @@
|
|
|
4695
4806
|
"docstring": "",
|
|
4696
4807
|
"path": "src/components/post-banner/banner-types.ts"
|
|
4697
4808
|
},
|
|
4809
|
+
"src/components/post-closebutton/button-types.ts::ButtonType": {
|
|
4810
|
+
"declaration": "\"button\" | \"submit\" | \"reset\"",
|
|
4811
|
+
"docstring": "",
|
|
4812
|
+
"path": "src/components/post-closebutton/button-types.ts"
|
|
4813
|
+
},
|
|
4698
4814
|
"src/components/post-language-switch/switch-variants.ts::SwitchVariant": {
|
|
4699
4815
|
"declaration": "\"list\" | \"menu\"",
|
|
4700
4816
|
"docstring": "",
|
|
@@ -6,12 +6,20 @@
|
|
|
6
6
|
* @param ignoreNestedComponents - Whether to ignore events from nested components
|
|
7
7
|
* @returns true if the event should be processed, false otherwise
|
|
8
8
|
*/
|
|
9
|
-
function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
|
|
9
|
+
function shouldProcessEvent(event, tag, host, ignoreNestedComponents, allowDescendants = false) {
|
|
10
10
|
if (!(event instanceof Event && event.target instanceof HTMLElement))
|
|
11
11
|
return false;
|
|
12
12
|
const eventTarget = event.target;
|
|
13
|
-
if (
|
|
14
|
-
|
|
13
|
+
if (allowDescendants) {
|
|
14
|
+
// Accept event if target or any ancestor matches tag
|
|
15
|
+
if (!eventTarget.closest(tag))
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
// Only accept event if target exactly matches tag
|
|
20
|
+
if (eventTarget.localName !== tag)
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
15
23
|
if (ignoreNestedComponents) {
|
|
16
24
|
// Find the closest parent with the same tag as the host
|
|
17
25
|
const closestParentWithSameTag = findClosestParentWithTag(eventTarget, host.localName);
|
|
@@ -26,12 +34,18 @@ function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
|
|
|
26
34
|
* @param option - Configuration options for the event guard
|
|
27
35
|
* @param option.ignoreNestedComponents - Whether to ignore events from nested components
|
|
28
36
|
*/
|
|
29
|
-
function EventFrom(tag, option
|
|
37
|
+
function EventFrom(tag, option) {
|
|
38
|
+
// Set default values here
|
|
39
|
+
const opts = {
|
|
40
|
+
ignoreNestedComponents: true,
|
|
41
|
+
allowDescendants: false,
|
|
42
|
+
...option,
|
|
43
|
+
};
|
|
30
44
|
return function (target, propertyKey, descriptor) {
|
|
31
45
|
if (descriptor) {
|
|
32
46
|
const originalMethod = descriptor.value;
|
|
33
47
|
descriptor.value = function (event) {
|
|
34
|
-
if (!shouldProcessEvent(event, tag, this.host,
|
|
48
|
+
if (!shouldProcessEvent(event, tag, this.host, opts.ignoreNestedComponents, opts.allowDescendants)) {
|
|
35
49
|
return;
|
|
36
50
|
}
|
|
37
51
|
return originalMethod.call(this, event);
|
|
@@ -57,7 +71,7 @@ function EventFrom(tag, option = { ignoreNestedComponents: true }) {
|
|
|
57
71
|
if (typeof originalFunction === 'function') {
|
|
58
72
|
// Store original and add new behavior
|
|
59
73
|
this[privateKey] = (event) => {
|
|
60
|
-
if (!shouldProcessEvent(event, tag, this.host,
|
|
74
|
+
if (!shouldProcessEvent(event, tag, this.host, opts.ignoreNestedComponents)) {
|
|
61
75
|
return;
|
|
62
76
|
}
|
|
63
77
|
return originalFunction.call(this, event);
|
package/dist/esm/loader.js
CHANGED
|
@@ -4,7 +4,7 @@ export { s as setNonce } from './index-C8a0ddDa.js';
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["post-breadcrumbs",[[1,"post-breadcrumbs",{"homeUrl":[1,"home-url"],"homeText":[1,"home-text"],"breadcrumbItems":[32],"isConcatenated":[32],"lastWindowWidth":[32]},null,{"homeUrl":["validateHomeUrl"],"homeText":["validateHomeText"]}]]],["post-footer",[[1,"post-footer",{"label":[1],"device":[32],"gridSlotDisplayed":[32]},null,{"label":["validateLabel"]}]]],["post-back-to-top",[[1,"post-back-to-top",{"label":[513],"belowFold":[32]},null,{"label":["validateLabel"],"belowFold":["watchBelowFold"]}]]],["post-card-control",[[65,"post-card-control",{"label":[513],"description":[1],"type":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[1028],"validity":[1028],"icon":[1],"focused":[32],"reset":[64],"groupReset":[64]},null,{"label":["validateControlLabel"],"description":["validateControlDescription"],"type":["validateControlType"],"name":["validateControlName"],"value":["validateControlValue"],"icon":["validateControlIcon"],"checked":["updateControlChecked"],"disabled":["updateControlDisabled"]}]]],["post-
|
|
7
|
+
return bootstrapLazy([["post-breadcrumbs",[[1,"post-breadcrumbs",{"homeUrl":[1,"home-url"],"homeText":[1,"home-text"],"menuLabel":[1,"menu-label"],"breadcrumbItems":[32],"isConcatenated":[32],"lastWindowWidth":[32]},null,{"homeUrl":["validateHomeUrl"],"homeText":["validateHomeText"],"menuLabel":["validateLabel"]}]]],["post-footer",[[1,"post-footer",{"label":[1],"device":[32],"gridSlotDisplayed":[32]},null,{"label":["validateLabel"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]},null,{"placement":["validatePlacement"],"closeButtonCaption":["validateCloseButtonCaption"]}]]],["post-back-to-top",[[1,"post-back-to-top",{"label":[513],"belowFold":[32]},null,{"label":["validateLabel"],"belowFold":["watchBelowFold"]}]]],["post-card-control",[[65,"post-card-control",{"label":[513],"description":[1],"type":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[1028],"validity":[1028],"icon":[1],"focused":[32],"reset":[64],"groupReset":[64]},null,{"label":["validateControlLabel"],"description":["validateControlDescription"],"type":["validateControlType"],"name":["validateControlName"],"value":["validateControlValue"],"icon":["validateControlIcon"],"checked":["updateControlChecked"],"disabled":["updateControlDisabled"]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]},null,{"label":["validateLabel"],"stars":["validateStars"],"currentRating":["validateCurrentRating"]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"animation":[1],"open":[1540],"show":[64],"hide":[64],"toggle":[64]},null,{"placement":["validatePlacement"]}]]],["post-avatar",[[1,"post-avatar",{"firstname":[513],"lastname":[1],"userid":[1],"email":[1],"description":[1],"slottedImage":[32],"avatarType":[32],"imageUrl":[32],"imageAlt":[32],"initials":[32],"storageKey":[32]},null,{"firstname":["validateFirstname"],"lastname":["validateLastname"],"userid":["updateUserid"],"email":["updateEmail"],"description":["validateDescription"]}]]],["post-banner",[[1,"post-banner",{"type":[513],"hasActions":[32],"dismiss":[64]},[[0,"click","onCloseButtonClick"]],{"type":["validateType"]}]]],["post-linkarea",[[1,"post-linkarea",{"interactiveElements":[32]}]]],["post-tab-header",[[1,"post-tab-header",{"panel":[513],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[513],"panelId":[32]},null,{"name":["validateName"]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"fullWidth":[516,"full-width"],"show":[64]}]]],["post-tooltip-trigger",[[1,"post-tooltip-trigger",{"for":[513],"delay":[2]},null,{"for":["validateControlFor"]}]]],["post-collapsible_2",[[1,"post-collapsible",{"collapsed":[1028],"toggle":[64]},null,{"collapsed":["collapsedChange"]}],[1,"post-collapsible-trigger",{"for":[513],"update":[64]},null,{"for":["validateAriaAttributes"]}]]],["post-closebutton_15",[[1,"post-language-switch",{"caption":[1],"description":[1],"variant":[1],"activeLang":[32]},[[0,"postChange","handlePostChange"],[0,"postLanguageOptionInitiallyActive","handleInitiallyActive"]],{"caption":["validateCaption"],"description":["validateDescription"],"variant":["validateVariant"]}],[4,"post-mainnavigation",{"canScrollLeft":[32],"canScrollRight":[32]},[[9,"mouseup","stopScrolling"],[9,"mouseleave","stopScrolling"]]],[1,"post-header",{"device":[32],"hasNavigation":[32],"hasTitle":[32],"mobileMenuExtended":[32],"megadropdownOpen":[32],"toggleMobileMenu":[64]},null,{"device":["lockBody"],"mobileMenuExtended":["lockBody"]}],[4,"post-language-option",{"code":[1],"active":[1540],"variant":[1],"name":[1],"url":[1],"select":[64]},null,{"code":["validateCode"],"variant":["validateVariant"],"name":["validateName"],"url":["validateUrl"]}],[4,"post-list",{"titleHidden":[4,"title-hidden"],"horizontal":[516],"titleId":[32]}],[1,"post-list-item"],[1,"post-logo",{"url":[1]},null,{"url":["validateUrl"]}],[4,"post-megadropdown",{"device":[32],"isVisible":[32],"trigger":[32],"animationClass":[32],"toggle":[64],"show":[64],"hide":[64],"focusFirst":[64]}],[4,"post-megadropdown-trigger",{"for":[1],"ariaExpanded":[32]},null,{"for":["validateControlFor"]}],[1,"post-togglebutton",{"toggled":[1028]}],[4,"post-closebutton",{"buttonType":[1,"button-type"]},null,{"buttonType":["validateButtonType"]}],[1,"post-menu",{"placement":[1],"label":[1],"isVisible":[32],"toggle":[64],"show":[64],"hide":[64]},null,{"placement":["validatePlacement"],"label":["validateLabel"]}],[4,"post-menu-trigger",{"for":[513],"ariaExpanded":[32]},null,{"for":["validateControlFor"]}],[4,"post-popovercontainer",{"placement":[1],"edgeGap":[2,"edge-gap"],"animation":[1],"arrow":[4],"manualClose":[4,"manual-close"],"safeSpace":[513,"safe-space"],"show":[64],"hide":[64],"toggle":[64]},null,{"placement":["validatePlacement"],"edgeGap":["validateEdgeGap"],"safeSpace":["validateSafeSpace"]}],[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[513],"rotate":[2],"scale":[2]},null,{"animation":["validateAnimation"],"base":["validateBase"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-accordion_2",[[1,"post-accordion-item",{"collapsed":[1028],"headingLevel":[2,"heading-level"],"id":[32],"slottedLogo":[32],"toggle":[64]},[[2,"postToggle","onCollapseToggle"]],{"headingLevel":["validateHeadingLevel"]}],[1,"post-accordion",{"headingLevel":[2,"heading-level"],"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"postToggle","collapseToggleHandler"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-breadcrumb-item_2",[[1,"post-breadcrumb-item",{"url":[1],"fullUrl":[32]},null,{"url":["validateUrl"]}],[4,"post-menu-item"]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-C8a0ddDa.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-DgSkXfqW.js';
|
|
3
3
|
import { b as checkRequiredAndOneOf, d as checkEmptyOrOneOf } from './index-VmK3ABCB.js';
|
|
4
|
-
import './breakpoints-
|
|
5
|
-
import { E as EventFrom } from './event-from-
|
|
4
|
+
import './breakpoints-CJ80BZ06.js';
|
|
5
|
+
import { E as EventFrom } from './event-from-CzIKqBrS.js';
|
|
6
6
|
import { n as nanoid } from './index.browser-BLchVpF6.js';
|
|
7
7
|
|
|
8
8
|
const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-C8a0ddDa.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-DgSkXfqW.js';
|
|
3
3
|
import { c as checkRequiredAndType, a as checkEmptyOrType, e as checkEmptyOrPattern } from './index-VmK3ABCB.js';
|
|
4
|
-
import './breakpoints-
|
|
4
|
+
import './breakpoints-CJ80BZ06.js';
|
|
5
5
|
|
|
6
6
|
// https://docs.gravatar.com/api/avatars/images/
|
|
7
7
|
const GRAVATAR_DEFAULT = '404';
|
|
@@ -16,7 +16,7 @@ async function cryptify(key) {
|
|
|
16
16
|
}
|
|
17
17
|
const GRAVATAR_BASE_URL = `https://www.gravatar.com/avatar/{email}?s=${GRAVATAR_SIZE}&d=${GRAVATAR_DEFAULT}&r=${GRAVATAR_RATING}`;
|
|
18
18
|
|
|
19
|
-
const postAvatarCss = ":host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:\"\";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
19
|
+
const postAvatarCss = ":host{--post-avatar-bg:var(--post-scheme-color-interactive-primary-enabled-bg2);--post-avatar-fg:var(--post-scheme-color-interactive-primary-enabled-fg3);display:inline-flex;position:relative;width:var(--post-device-sizing-interactive-icon-size3);height:var(--post-device-sizing-interactive-icon-size3);background-color:var(--post-scheme-color-interactive-primary-enabled-stroke3);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3);border-radius:var(--post-device-border-radius-round);font-size:var(--post-device-font-size-8);vertical-align:top;line-height:1}:host::after{display:block;content:\"\";position:absolute;inset:0;z-index:1;border-radius:inherit}*,*::before,*::after{box-sizing:border-box}slot,img,::slotted(img){display:block;width:100%;height:100%}img,::slotted(img){border-radius:var(--post-device-border-radius-round)}::slotted(:not(img)){display:none !important}.initials{display:flex;justify-content:center;align-items:center;position:relative;z-index:2;width:100%;height:100%;background-color:var(--post-avatar-bg);border-radius:var(--post-device-border-radius-round);color:var(--post-avatar-fg);text-transform:uppercase;font-weight:400}.initials span{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
|
|
20
20
|
|
|
21
21
|
const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
|
22
22
|
var AvatarType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-C8a0ddDa.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-DgSkXfqW.js';
|
|
3
3
|
import { c as checkRequiredAndType } from './index-VmK3ABCB.js';
|
|
4
|
-
import './breakpoints-
|
|
4
|
+
import './breakpoints-CJ80BZ06.js';
|
|
5
5
|
|
|
6
6
|
// Define common animation options
|
|
7
7
|
const easing = 'ease';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-C8a0ddDa.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-DgSkXfqW.js';
|
|
3
3
|
import { f as fadeOut } from './fade-SbIC4aZX.js';
|
|
4
4
|
import { d as checkEmptyOrOneOf } from './index-VmK3ABCB.js';
|
|
5
|
-
import './breakpoints-
|
|
6
|
-
import { E as EventFrom } from './event-from-
|
|
5
|
+
import './breakpoints-CJ80BZ06.js';
|
|
6
|
+
import { E as EventFrom } from './event-from-CzIKqBrS.js';
|
|
7
7
|
|
|
8
8
|
const BANNER_TYPES = ['success', 'warning', 'error', 'info'];
|
|
9
9
|
|
|
@@ -59,7 +59,7 @@ const PostBanner = class {
|
|
|
59
59
|
this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: 'fbaf407e5bb79e3e9ab141fe7e8c9cd30c623020', "data-version": version, role: "alert" }, h("slot", { key: 'c33efd8785392e5ffb037cded176f0c9d15405df', name: "close-button" }), h("slot", { key: '762de4f8c6996f43c88ca02968b70dbd980cde00', name: "heading" }), h("slot", { key: 'e46bb26c3b85795cbd3fcb854efcba7456062d56' }), this.hasActions && (h("div", { key: '7c38eb6721cf1a0e427d6e096260d9b4a0523295', class: "actions" }, h("slot", { key: '7ae6ecbb21f63629ed779373ce60c7cedfb988a4', name: "actions" })))));
|
|
63
63
|
}
|
|
64
64
|
get host() { return getElement(this); }
|
|
65
65
|
static get watchers() { return {
|
|
@@ -67,7 +67,7 @@ const PostBanner = class {
|
|
|
67
67
|
}; }
|
|
68
68
|
};
|
|
69
69
|
__decorate([
|
|
70
|
-
EventFrom('post-closebutton')
|
|
70
|
+
EventFrom('post-closebutton', { allowDescendants: true })
|
|
71
71
|
], PostBanner.prototype, "onCloseButtonClick", null);
|
|
72
72
|
PostBanner.style = postBannerCss;
|
|
73
73
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-C8a0ddDa.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-DgSkXfqW.js';
|
|
3
3
|
import { g as checkEmptyOrUrl } from './index-VmK3ABCB.js';
|
|
4
|
-
import './breakpoints-
|
|
4
|
+
import './breakpoints-CJ80BZ06.js';
|
|
5
5
|
|
|
6
6
|
const postBreadcrumbItemCss = ":host{display:flex;align-items:center;justify-content:start;gap:var(--post-device-spacing-gap-inline-5)}:host post-icon{box-sizing:border-box;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);padding-block:var(--post-core-dimension-4);padding-inline:var(--post-core-dimension-4)}.breadcrumb-item{white-space:nowrap;line-height:150%;padding-block:var(--post-device-spacing-padding-block-7);color:var(--post-scheme-color-interactive-primary-enabled-fg1);text-decoration:var(--post-core-text-decoration-none)}.breadcrumb-item{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.breadcrumb-item:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1);text-decoration:var(--post-core-text-decoration-underline)}.breadcrumb-item:focus-visible{border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.breadcrumb-item,.breadcrumb-item:focus,.breadcrumb-item:hover{color:LinkText !important}.breadcrumb-item:visited{color:VisitedText !important}}";
|
|
7
7
|
|
|
@@ -50,14 +50,14 @@ const PostBreadcrumbItem = class {
|
|
|
50
50
|
};
|
|
51
51
|
PostBreadcrumbItem.style = postBreadcrumbItemCss;
|
|
52
52
|
|
|
53
|
-
const postMenuItemCss = "post-menu-item button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item a{text-decoration:none}post-menu-item button,post-menu-item a{position:relative;display:flex;width:100%;align-items:center;padding:.5rem 1rem;gap:.
|
|
53
|
+
const postMenuItemCss = "post-menu-item button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item a{text-decoration:none}post-menu-item button,post-menu-item a{position:relative;display:flex;width:100%;align-items:center;padding:.5rem .75rem .5rem 1rem;gap:.75rem;font-size:.875rem;color:#050400;border-radius:0}post-menu-item button post-icon,post-menu-item a post-icon{width:1rem;height:1rem;margin-block:.25rem}@media screen and (min-width: 780px){post-menu-item button,post-menu-item a{font-size:1rem;padding-block:.75rem;gap:1rem}post-menu-item button post-icon,post-menu-item a post-icon{width:1.5rem;height:1.5rem;margin:0}}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem;padding-block:.8125rem}}post-menu-item button:focus-visible,post-menu-item a:focus-visible{outline-offset:2px !important;border-radius:4px}post-menu-item button:hover,post-menu-item a:hover{background-color:#504f4b;color:#fff}";
|
|
54
54
|
|
|
55
55
|
const PostMenuItem = class {
|
|
56
56
|
constructor(hostRef) {
|
|
57
57
|
registerInstance(this, hostRef);
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '6b2c8542aed22132c627fadb6be036124e37853e', "data-version": version }, h("slot", { key: '8059cb5112270641ef7ba860cdacb2cdaa75fd59' })));
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
PostMenuItem.style = postMenuItemCss;
|