@proximus/lavender-toaster 1.4.19-beta.2 → 1.4.20-alpha.10
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/Toaster.d.ts +4 -28
- package/dist/ToasterActionable.d.ts +5 -0
- package/dist/ToasterBase.d.ts +42 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1037 -528
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,38 +1,223 @@
|
|
|
1
|
-
|
|
2
|
-
var e = ":host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-left-style:none;border-right-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-position:50%;background-size:cover}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot=anchor-right]),::slotted([slot=anchor-left]),::slotted([slot=anchor-full]){position:absolute;top:0}::slotted([slot=anchor-right]),::slotted([slot=anchor-left]){z-index:3;transform:translateY(-50%)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--mobile,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--mobile,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-full]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (width<=47.938rem){.container{background-color:var(--background-color--mobile,var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile,var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var(--background-gradient--mobile,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--mobile,var(--background-color-inverted))}.border-side-top--mobile{border-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (width>=48rem) and (width<=64rem){.container{background-color:var(--background-color--tablet,var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet,var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var(--background-gradient--tablet,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--tablet,var(--background-color-inverted))}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--tablet,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--tablet,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (width>=64.0625rem) and (width<=90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (width>=64.0625rem){.container{background-color:var(--background-color--laptop,var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop,var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var(--background-gradient--laptop,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--laptop,var(--background-color-inverted))}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--laptop,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--laptop,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (width>=90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}", t = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
|
|
3
|
-
// ../common/src/common.ts
|
|
4
|
-
function n(e) {
|
|
5
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
6
|
-
return Object.getOwnPropertyNames(n);
|
|
7
|
-
}
|
|
8
|
-
function r(e) {
|
|
9
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
10
|
-
return Object.getOwnPropertyNames(n).map((e) => e.toLowerCase());
|
|
11
|
-
}
|
|
12
|
-
var i = new CSSStyleSheet();
|
|
13
|
-
i.replaceSync(t);
|
|
14
|
-
var a = {
|
|
1
|
+
//#region ../common/src/debug.ts
|
|
2
|
+
var e = {
|
|
15
3
|
BASE_URL: "/",
|
|
16
4
|
DEV: !0,
|
|
17
5
|
MODE: "production",
|
|
18
6
|
PROD: !1,
|
|
19
7
|
SSR: !1,
|
|
20
8
|
VITE_COMPONENT_DEBUG: "true"
|
|
21
|
-
},
|
|
22
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
23
|
-
function
|
|
24
|
-
return
|
|
9
|
+
}, t = e?.VITE_COMPONENT_DEBUG === "true" || e?.DEV === !0;
|
|
10
|
+
typeof window < "u" && (window.isComponentDebug = n);
|
|
11
|
+
function n() {
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
function r(e) {
|
|
15
|
+
n() && console.error(e);
|
|
16
|
+
}
|
|
17
|
+
typeof window < "u" && (window.isComponentDebug = n);
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../common/src/common.css?inline
|
|
20
|
+
var i = "@layer px-reset{:host{font-variant:normal;font-size-adjust:none;font-kerning:auto;font-optical-sizing:auto;font-synthesis:weight style small-caps position;font-feature-settings:normal;font-variation-settings:normal;font-language-override:normal;font-palette:normal;letter-spacing:normal;word-spacing:normal;tab-size:8;text-align:start;text-indent:0;text-transform:none;text-shadow:none;text-rendering:auto;text-wrap:wrap;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual;text-underline-offset:auto;text-underline-position:auto;-webkit-font-smoothing:initial;-moz-osx-font-smoothing:auto;-webkit-text-size-adjust:auto;-moz-text-size-adjust:auto;text-size-adjust:auto;font-style:normal;font-stretch:100%;line-height:normal;text-emphasis:none}}:host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]),:host([sticky-bottom]){z-index:5}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted([shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([word-break-all]){word-break:break-all}@media screen and (width<=47.938rem){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted([shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--mobile]){word-break:break-all}@media screen and (width>=48rem) and (width<=64rem){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted([shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}}:host([word-break-all--tablet]){word-break:break-all}@media screen and (width>=64.0625rem){:host([shown--sr--laptop]),::slotted([shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}:host([word-break-all--laptop]){word-break:break-all}@media screen and (width>=90.0625rem){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}:host([word-break-all--desktop]){word-break:break-all}}";
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../common/src/attributeSetters.ts
|
|
23
|
+
function a(e, t, n) {
|
|
24
|
+
if (n == null || n === "") {
|
|
25
|
+
e.removeAttribute(t);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
e.setAttribute(t, n.toString());
|
|
25
29
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
30
|
+
function o(e, t, n) {
|
|
31
|
+
if (!n) {
|
|
32
|
+
e.removeAttribute(t);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
e.setAttribute(t, "");
|
|
28
36
|
}
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../common/src/values.ts
|
|
39
|
+
var s = [
|
|
40
|
+
"",
|
|
41
|
+
"default",
|
|
42
|
+
"auto",
|
|
43
|
+
"flex-start",
|
|
44
|
+
"start",
|
|
45
|
+
"flex-end",
|
|
46
|
+
"end",
|
|
47
|
+
"center",
|
|
48
|
+
"baseline",
|
|
49
|
+
"stretch"
|
|
50
|
+
], ee = [
|
|
51
|
+
"",
|
|
52
|
+
"default",
|
|
53
|
+
"start",
|
|
54
|
+
"end",
|
|
55
|
+
"center",
|
|
56
|
+
"stretch"
|
|
57
|
+
], te = [
|
|
58
|
+
"",
|
|
59
|
+
"default",
|
|
60
|
+
"start",
|
|
61
|
+
"end",
|
|
62
|
+
"center",
|
|
63
|
+
"stretch"
|
|
64
|
+
], ne = [
|
|
65
|
+
"",
|
|
66
|
+
"1",
|
|
67
|
+
"2",
|
|
68
|
+
"3",
|
|
69
|
+
"4",
|
|
70
|
+
"5",
|
|
71
|
+
"6",
|
|
72
|
+
"7",
|
|
73
|
+
"8",
|
|
74
|
+
"9",
|
|
75
|
+
"10",
|
|
76
|
+
"11",
|
|
77
|
+
"12"
|
|
78
|
+
], c = [
|
|
79
|
+
"",
|
|
80
|
+
"-1",
|
|
81
|
+
"0",
|
|
82
|
+
"1",
|
|
83
|
+
"2",
|
|
84
|
+
"3",
|
|
85
|
+
"4",
|
|
86
|
+
"5",
|
|
87
|
+
"6",
|
|
88
|
+
"7",
|
|
89
|
+
"8",
|
|
90
|
+
"9",
|
|
91
|
+
"10",
|
|
92
|
+
"11",
|
|
93
|
+
"12"
|
|
94
|
+
], l = [
|
|
95
|
+
"",
|
|
96
|
+
"default",
|
|
97
|
+
"inherit",
|
|
98
|
+
"body-l",
|
|
99
|
+
"body-m",
|
|
100
|
+
"body-s",
|
|
101
|
+
"body-xs",
|
|
102
|
+
"heading-5xl",
|
|
103
|
+
"heading-4xl",
|
|
104
|
+
"heading-3xl",
|
|
105
|
+
"heading-2xl",
|
|
106
|
+
"heading-xl",
|
|
107
|
+
"heading-l",
|
|
108
|
+
"heading-m",
|
|
109
|
+
"heading-s"
|
|
110
|
+
], u = [
|
|
111
|
+
"",
|
|
112
|
+
"default",
|
|
113
|
+
"inherit",
|
|
114
|
+
"brand",
|
|
115
|
+
"neutral",
|
|
116
|
+
"dimmed",
|
|
117
|
+
"purpose-success",
|
|
118
|
+
"purpose-warning",
|
|
119
|
+
"purpose-error",
|
|
120
|
+
"purpose-unlimited",
|
|
121
|
+
"purpose-promo",
|
|
122
|
+
"state-hover",
|
|
123
|
+
"state-active",
|
|
124
|
+
"state-disabled"
|
|
125
|
+
], re = [
|
|
126
|
+
"",
|
|
127
|
+
"default",
|
|
128
|
+
"inherit",
|
|
129
|
+
"body",
|
|
130
|
+
"title",
|
|
131
|
+
"title-large",
|
|
132
|
+
"subtitle"
|
|
133
|
+
], ie = [
|
|
134
|
+
"",
|
|
135
|
+
"default",
|
|
136
|
+
...[
|
|
137
|
+
"Xs",
|
|
138
|
+
"S",
|
|
139
|
+
"M",
|
|
140
|
+
"L",
|
|
141
|
+
"Xl"
|
|
142
|
+
].map((e) => e.toLowerCase())
|
|
143
|
+
], d = [
|
|
144
|
+
"",
|
|
145
|
+
"none",
|
|
146
|
+
"3xs",
|
|
147
|
+
"2xs",
|
|
148
|
+
"xs",
|
|
149
|
+
"s",
|
|
150
|
+
"m",
|
|
151
|
+
"l",
|
|
152
|
+
"xl"
|
|
153
|
+
], ae = [
|
|
154
|
+
"",
|
|
155
|
+
"none",
|
|
156
|
+
"s",
|
|
157
|
+
"m",
|
|
158
|
+
"l"
|
|
159
|
+
], oe = [
|
|
160
|
+
"",
|
|
161
|
+
"none",
|
|
162
|
+
"main",
|
|
163
|
+
"pill"
|
|
164
|
+
], f = [
|
|
165
|
+
"none",
|
|
166
|
+
"main",
|
|
167
|
+
"brand",
|
|
168
|
+
"state-hover",
|
|
169
|
+
"state-active",
|
|
170
|
+
"neutral",
|
|
171
|
+
"purpose-success",
|
|
172
|
+
"purpose-warning",
|
|
173
|
+
"purpose-error",
|
|
174
|
+
"purpose-unlimited"
|
|
175
|
+
], se = [
|
|
176
|
+
"",
|
|
177
|
+
"all",
|
|
178
|
+
"top",
|
|
179
|
+
"right",
|
|
180
|
+
"bottom",
|
|
181
|
+
"left",
|
|
182
|
+
"block",
|
|
183
|
+
"inline"
|
|
184
|
+
], p = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), ce = [
|
|
185
|
+
"",
|
|
186
|
+
"cover",
|
|
187
|
+
"contain",
|
|
188
|
+
"default"
|
|
189
|
+
], le = [
|
|
190
|
+
"",
|
|
191
|
+
"none",
|
|
192
|
+
"s",
|
|
193
|
+
"m",
|
|
194
|
+
"l",
|
|
195
|
+
"xl"
|
|
196
|
+
], m = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), h = [
|
|
197
|
+
"none",
|
|
198
|
+
"2xs",
|
|
199
|
+
"xs",
|
|
200
|
+
"s",
|
|
201
|
+
"default",
|
|
202
|
+
"l",
|
|
203
|
+
"heading-to-subtitle",
|
|
204
|
+
"heading-to-content",
|
|
205
|
+
"page-layout-between-sections"
|
|
206
|
+
], g = [
|
|
207
|
+
"",
|
|
208
|
+
"all",
|
|
209
|
+
"top",
|
|
210
|
+
"right",
|
|
211
|
+
"bottom",
|
|
212
|
+
"left"
|
|
213
|
+
], _ = new CSSStyleSheet();
|
|
214
|
+
_.replaceSync(i);
|
|
215
|
+
var v = class e extends HTMLElement {
|
|
31
216
|
static get observedAttributes() {
|
|
32
217
|
return /* @__PURE__ */ "grow.grow--mobile.grow--tablet.grow--laptop.grow--desktop.shrink.shrink--mobile.shrink--tablet.shrink--laptop.shrink--desktop.basis.basis--mobile.basis--tablet.basis--laptop.basis--desktop.align-self.align-self--mobile.align-self--tablet.align-self--laptop.align-self--desktop.justify-self.justify-self--mobile.justify-self--tablet.justify-self--laptop.justify-self--desktop.hidden.hidden--mobile.hidden--tablet.hidden--laptop.hidden--desktop.shown--sr.shown--sr--mobile.shown--sr--tablet.shown--sr--laptop.shown--sr--desktop.col-span.col-span--mobile.col-span--tablet.col-span--laptop.col-span--desktop.order.order--mobile.order--tablet.order--laptop.order--desktop.sticky-top.sticky-bottom.word-break-all.word-break-all--mobile.word-break-all--tablet.word-break-all--laptop.word-break-all--desktop".split(".");
|
|
33
218
|
}
|
|
34
219
|
constructor(...e) {
|
|
35
|
-
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
220
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [_, ...e];
|
|
36
221
|
}
|
|
37
222
|
attributeChangedCallback(t, n, r) {
|
|
38
223
|
if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
|
|
@@ -58,36 +243,36 @@ var l = class e extends HTMLElement {
|
|
|
58
243
|
case "align-self--tablet":
|
|
59
244
|
case "align-self--laptop":
|
|
60
245
|
case "align-self--desktop":
|
|
61
|
-
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ?
|
|
246
|
+
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? ee : s);
|
|
62
247
|
break;
|
|
63
248
|
case "justify-self":
|
|
64
249
|
case "justify-self--mobile":
|
|
65
250
|
case "justify-self--tablet":
|
|
66
251
|
case "justify-self--laptop":
|
|
67
252
|
case "justify-self--desktop":
|
|
68
|
-
this.updateProperties(t, n, r,
|
|
253
|
+
this.updateProperties(t, n, r, te);
|
|
69
254
|
break;
|
|
70
255
|
case "col-span":
|
|
71
256
|
case "col-span--mobile":
|
|
72
257
|
case "col-span--tablet":
|
|
73
258
|
case "col-span--laptop":
|
|
74
259
|
case "col-span--desktop":
|
|
75
|
-
this.updateProperties(t, n, r,
|
|
260
|
+
this.updateProperties(t, n, r, ne);
|
|
76
261
|
break;
|
|
77
262
|
case "order":
|
|
78
263
|
case "order--mobile":
|
|
79
264
|
case "order--tablet":
|
|
80
265
|
case "order--laptop":
|
|
81
|
-
case "order--desktop": this.updateProperties(t, n, r,
|
|
266
|
+
case "order--desktop": this.updateProperties(t, n, r, c);
|
|
82
267
|
}
|
|
83
268
|
}
|
|
84
|
-
updateProperties(e, t, n,
|
|
85
|
-
|
|
86
|
-
let
|
|
87
|
-
if (!
|
|
269
|
+
updateProperties(e, t, n, i) {
|
|
270
|
+
i && (this.checkName(i, n) || r(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`));
|
|
271
|
+
let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
|
|
272
|
+
if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
|
|
88
273
|
else {
|
|
89
274
|
let r = e.split("--")[1];
|
|
90
|
-
this.style.setProperty(`--${
|
|
275
|
+
this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
|
|
91
276
|
}
|
|
92
277
|
}
|
|
93
278
|
updateStyle(e, t, n) {
|
|
@@ -106,8 +291,11 @@ var l = class e extends HTMLElement {
|
|
|
106
291
|
let e = this.parentElement;
|
|
107
292
|
for (; e;) {
|
|
108
293
|
if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
|
|
109
|
-
if (window.getComputedStyle(e).display === "contents")
|
|
110
|
-
|
|
294
|
+
if (window.getComputedStyle(e).display === "contents") {
|
|
295
|
+
e = e.parentElement;
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
break;
|
|
111
299
|
}
|
|
112
300
|
return !1;
|
|
113
301
|
}
|
|
@@ -115,424 +303,396 @@ var l = class e extends HTMLElement {
|
|
|
115
303
|
return this.getAttribute("grow");
|
|
116
304
|
}
|
|
117
305
|
set grow(e) {
|
|
118
|
-
|
|
306
|
+
a(this, "grow", e);
|
|
119
307
|
}
|
|
120
308
|
get growMobile() {
|
|
121
309
|
return this.getAttribute("grow--mobile");
|
|
122
310
|
}
|
|
123
311
|
set growMobile(e) {
|
|
124
|
-
|
|
312
|
+
a(this, "grow--mobile", e);
|
|
125
313
|
}
|
|
126
314
|
get growTablet() {
|
|
127
315
|
return this.getAttribute("grow--tablet");
|
|
128
316
|
}
|
|
129
317
|
set growTablet(e) {
|
|
130
|
-
|
|
318
|
+
a(this, "grow--tablet", e);
|
|
131
319
|
}
|
|
132
320
|
get growLaptop() {
|
|
133
321
|
return this.getAttribute("grow--laptop");
|
|
134
322
|
}
|
|
135
323
|
set growLaptop(e) {
|
|
136
|
-
|
|
324
|
+
a(this, "grow--laptop", e);
|
|
137
325
|
}
|
|
138
326
|
get growDesktop() {
|
|
139
327
|
return this.getAttribute("grow--desktop");
|
|
140
328
|
}
|
|
141
329
|
set growDesktop(e) {
|
|
142
|
-
|
|
330
|
+
a(this, "grow--desktop", e);
|
|
143
331
|
}
|
|
144
332
|
get shrink() {
|
|
145
333
|
return this.getAttribute("shrink");
|
|
146
334
|
}
|
|
147
335
|
set shrink(e) {
|
|
148
|
-
|
|
336
|
+
a(this, "shrink", e);
|
|
149
337
|
}
|
|
150
338
|
get shrinkMobile() {
|
|
151
339
|
return this.getAttribute("shrink--mobile");
|
|
152
340
|
}
|
|
153
341
|
set shrinkMobile(e) {
|
|
154
|
-
|
|
342
|
+
a(this, "shrink--mobile", e);
|
|
155
343
|
}
|
|
156
344
|
get shrinkTablet() {
|
|
157
345
|
return this.getAttribute("shrink--tablet");
|
|
158
346
|
}
|
|
159
347
|
set shrinkTablet(e) {
|
|
160
|
-
|
|
348
|
+
a(this, "shrink--tablet", e);
|
|
161
349
|
}
|
|
162
350
|
get shrinkLaptop() {
|
|
163
351
|
return this.getAttribute("shrink--laptop");
|
|
164
352
|
}
|
|
165
353
|
set shrinkLaptop(e) {
|
|
166
|
-
|
|
354
|
+
a(this, "shrink--laptop", e);
|
|
167
355
|
}
|
|
168
356
|
get shrinkDesktop() {
|
|
169
357
|
return this.getAttribute("shrink--desktop");
|
|
170
358
|
}
|
|
171
359
|
set shrinkDesktop(e) {
|
|
172
|
-
|
|
360
|
+
a(this, "shrink--desktop", e);
|
|
173
361
|
}
|
|
174
362
|
get basis() {
|
|
175
363
|
return this.getAttribute("basis");
|
|
176
364
|
}
|
|
177
365
|
set basis(e) {
|
|
178
|
-
|
|
366
|
+
a(this, "basis", e);
|
|
179
367
|
}
|
|
180
368
|
get basisMobile() {
|
|
181
369
|
return this.getAttribute("basis--mobile");
|
|
182
370
|
}
|
|
183
371
|
set basisMobile(e) {
|
|
184
|
-
|
|
372
|
+
a(this, "basis--mobile", e);
|
|
185
373
|
}
|
|
186
374
|
get basisTablet() {
|
|
187
375
|
return this.getAttribute("basis--tablet");
|
|
188
376
|
}
|
|
189
377
|
set basisTablet(e) {
|
|
190
|
-
|
|
378
|
+
a(this, "basis--tablet", e);
|
|
191
379
|
}
|
|
192
380
|
get basisLaptop() {
|
|
193
381
|
return this.getAttribute("basis--laptop");
|
|
194
382
|
}
|
|
195
383
|
set basisLaptop(e) {
|
|
196
|
-
|
|
384
|
+
a(this, "basis--laptop", e);
|
|
197
385
|
}
|
|
198
386
|
get basisDesktop() {
|
|
199
387
|
return this.getAttribute("basis--desktop");
|
|
200
388
|
}
|
|
201
389
|
set basisDesktop(e) {
|
|
202
|
-
|
|
390
|
+
a(this, "basis--desktop", e);
|
|
203
391
|
}
|
|
204
392
|
get alignSelf() {
|
|
205
393
|
return this.getAttribute("align-self");
|
|
206
394
|
}
|
|
207
395
|
set alignSelf(e) {
|
|
208
|
-
|
|
396
|
+
a(this, "align-self", e);
|
|
209
397
|
}
|
|
210
398
|
get alignSelfMobile() {
|
|
211
399
|
return this.getAttribute("align-self--mobile");
|
|
212
400
|
}
|
|
213
401
|
set alignSelfMobile(e) {
|
|
214
|
-
|
|
402
|
+
a(this, "align-self--mobile", e);
|
|
215
403
|
}
|
|
216
404
|
get alignSelfTablet() {
|
|
217
405
|
return this.getAttribute("align-self--tablet");
|
|
218
406
|
}
|
|
219
407
|
set alignSelfTablet(e) {
|
|
220
|
-
|
|
408
|
+
a(this, "align-self--tablet", e);
|
|
221
409
|
}
|
|
222
410
|
get alignSelfLaptop() {
|
|
223
411
|
return this.getAttribute("align-self--laptop");
|
|
224
412
|
}
|
|
225
413
|
set alignSelfLaptop(e) {
|
|
226
|
-
|
|
414
|
+
a(this, "align-self--laptop", e);
|
|
227
415
|
}
|
|
228
416
|
get alignSelfDesktop() {
|
|
229
417
|
return this.getAttribute("align-self--desktop");
|
|
230
418
|
}
|
|
231
419
|
set alignSelfDesktop(e) {
|
|
232
|
-
|
|
420
|
+
a(this, "align-self--desktop", e);
|
|
233
421
|
}
|
|
234
422
|
get justifySelf() {
|
|
235
423
|
return this.getAttribute("justify-self");
|
|
236
424
|
}
|
|
237
425
|
set justifySelf(e) {
|
|
238
|
-
|
|
426
|
+
a(this, "justify-self", e);
|
|
239
427
|
}
|
|
240
428
|
get justifySelfMobile() {
|
|
241
429
|
return this.getAttribute("justify-self--mobile");
|
|
242
430
|
}
|
|
243
431
|
set justifySelfMobile(e) {
|
|
244
|
-
|
|
432
|
+
a(this, "justify-self--mobile", e);
|
|
245
433
|
}
|
|
246
434
|
get justifySelfTablet() {
|
|
247
435
|
return this.getAttribute("justify-self--tablet");
|
|
248
436
|
}
|
|
249
437
|
set justifySelfTablet(e) {
|
|
250
|
-
|
|
438
|
+
a(this, "justify-self--tablet", e);
|
|
251
439
|
}
|
|
252
440
|
get justifySelfLaptop() {
|
|
253
441
|
return this.getAttribute("justify-self--laptop");
|
|
254
442
|
}
|
|
255
443
|
set justifySelfLaptop(e) {
|
|
256
|
-
|
|
444
|
+
a(this, "justify-self--laptop", e);
|
|
257
445
|
}
|
|
258
446
|
get justifySelfDesktop() {
|
|
259
447
|
return this.getAttribute("justify-self--desktop");
|
|
260
448
|
}
|
|
261
449
|
set justifySelfDesktop(e) {
|
|
262
|
-
|
|
450
|
+
a(this, "justify-self--desktop", e);
|
|
263
451
|
}
|
|
264
452
|
get hiddenMobile() {
|
|
265
453
|
return this.hasAttribute("hidden--mobile");
|
|
266
454
|
}
|
|
267
455
|
set hiddenMobile(e) {
|
|
268
|
-
|
|
456
|
+
o(this, "hidden--mobile", e);
|
|
269
457
|
}
|
|
270
458
|
get hiddenTablet() {
|
|
271
459
|
return this.hasAttribute("hidden--tablet");
|
|
272
460
|
}
|
|
273
461
|
set hiddenTablet(e) {
|
|
274
|
-
|
|
462
|
+
o(this, "hidden--tablet", e);
|
|
275
463
|
}
|
|
276
464
|
get hiddenLaptop() {
|
|
277
465
|
return this.hasAttribute("hidden--laptop");
|
|
278
466
|
}
|
|
279
467
|
set hiddenLaptop(e) {
|
|
280
|
-
|
|
468
|
+
o(this, "hidden--laptop", e);
|
|
281
469
|
}
|
|
282
470
|
get hiddenDesktop() {
|
|
283
471
|
return this.hasAttribute("hidden--desktop");
|
|
284
472
|
}
|
|
285
473
|
set hiddenDesktop(e) {
|
|
286
|
-
|
|
474
|
+
o(this, "hidden--desktop", e);
|
|
475
|
+
}
|
|
476
|
+
get shownSr() {
|
|
477
|
+
return this.hasAttribute("shown--sr");
|
|
478
|
+
}
|
|
479
|
+
set shownSr(e) {
|
|
480
|
+
o(this, "shown--sr", e);
|
|
481
|
+
}
|
|
482
|
+
get shownSrMobile() {
|
|
483
|
+
return this.hasAttribute("shown--sr--mobile");
|
|
484
|
+
}
|
|
485
|
+
set shownSrMobile(e) {
|
|
486
|
+
o(this, "shown--sr--mobile", e);
|
|
487
|
+
}
|
|
488
|
+
get shownSrTablet() {
|
|
489
|
+
return this.hasAttribute("shown--sr--tablet");
|
|
490
|
+
}
|
|
491
|
+
set shownSrTablet(e) {
|
|
492
|
+
o(this, "shown--sr--tablet", e);
|
|
493
|
+
}
|
|
494
|
+
get shownSrLaptop() {
|
|
495
|
+
return this.hasAttribute("shown--sr--laptop");
|
|
496
|
+
}
|
|
497
|
+
set shownSrLaptop(e) {
|
|
498
|
+
o(this, "shown--sr--laptop", e);
|
|
499
|
+
}
|
|
500
|
+
get shownSrDesktop() {
|
|
501
|
+
return this.hasAttribute("shown--sr--desktop");
|
|
502
|
+
}
|
|
503
|
+
set shownSrDesktop(e) {
|
|
504
|
+
o(this, "shown--sr--desktop", e);
|
|
287
505
|
}
|
|
288
506
|
get colSpan() {
|
|
289
507
|
return this.getAttribute("col-span");
|
|
290
508
|
}
|
|
291
509
|
set colSpan(e) {
|
|
292
|
-
|
|
510
|
+
a(this, "col-span", e);
|
|
293
511
|
}
|
|
294
512
|
get colSpanMobile() {
|
|
295
513
|
return this.getAttribute("col-span--mobile");
|
|
296
514
|
}
|
|
297
515
|
set colSpanMobile(e) {
|
|
298
|
-
|
|
516
|
+
a(this, "col-span--mobile", e);
|
|
299
517
|
}
|
|
300
518
|
get colSpanTablet() {
|
|
301
519
|
return this.getAttribute("col-span--tablet");
|
|
302
520
|
}
|
|
303
521
|
set colSpanTablet(e) {
|
|
304
|
-
|
|
522
|
+
a(this, "col-span--tablet", e);
|
|
305
523
|
}
|
|
306
524
|
get colSpanLaptop() {
|
|
307
525
|
return this.getAttribute("col-span--laptop");
|
|
308
526
|
}
|
|
309
527
|
set colSpanLaptop(e) {
|
|
310
|
-
|
|
528
|
+
a(this, "col-span--laptop", e);
|
|
311
529
|
}
|
|
312
530
|
get colSpanDesktop() {
|
|
313
531
|
return this.getAttribute("col-span--desktop");
|
|
314
532
|
}
|
|
315
533
|
set colSpanDesktop(e) {
|
|
316
|
-
|
|
534
|
+
a(this, "col-span--desktop", e);
|
|
317
535
|
}
|
|
318
536
|
get order() {
|
|
319
537
|
return this.getAttribute("order");
|
|
320
538
|
}
|
|
321
539
|
set order(e) {
|
|
322
|
-
|
|
540
|
+
a(this, "order", e);
|
|
323
541
|
}
|
|
324
542
|
get orderMobile() {
|
|
325
543
|
return this.getAttribute("order--mobile");
|
|
326
544
|
}
|
|
327
545
|
set orderMobile(e) {
|
|
328
|
-
|
|
546
|
+
a(this, "order--mobile", e);
|
|
329
547
|
}
|
|
330
548
|
get orderTablet() {
|
|
331
549
|
return this.getAttribute("order--tablet");
|
|
332
550
|
}
|
|
333
551
|
set orderTablet(e) {
|
|
334
|
-
|
|
552
|
+
a(this, "order--tablet", e);
|
|
335
553
|
}
|
|
336
554
|
get orderLaptop() {
|
|
337
555
|
return this.getAttribute("order--laptop");
|
|
338
556
|
}
|
|
339
557
|
set orderLaptop(e) {
|
|
340
|
-
|
|
558
|
+
a(this, "order--laptop", e);
|
|
341
559
|
}
|
|
342
560
|
get orderDesktop() {
|
|
343
561
|
return this.getAttribute("order--desktop");
|
|
344
562
|
}
|
|
345
563
|
set orderDesktop(e) {
|
|
346
|
-
|
|
564
|
+
a(this, "order--desktop", e);
|
|
347
565
|
}
|
|
348
|
-
|
|
349
|
-
(
|
|
566
|
+
get stickyTop() {
|
|
567
|
+
return this.hasAttribute("sticky-top");
|
|
568
|
+
}
|
|
569
|
+
set stickyTop(e) {
|
|
570
|
+
o(this, "sticky-top", e);
|
|
571
|
+
}
|
|
572
|
+
get stickyBottom() {
|
|
573
|
+
return this.hasAttribute("sticky-bottom");
|
|
574
|
+
}
|
|
575
|
+
set stickyBottom(e) {
|
|
576
|
+
o(this, "sticky-bottom", e);
|
|
577
|
+
}
|
|
578
|
+
get wordBreakAll() {
|
|
579
|
+
return this.hasAttribute("word-break-all");
|
|
580
|
+
}
|
|
581
|
+
set wordBreakAll(e) {
|
|
582
|
+
o(this, "word-break-all", e);
|
|
583
|
+
}
|
|
584
|
+
get wordBreakAllMobile() {
|
|
585
|
+
return this.hasAttribute("word-break-all--mobile");
|
|
586
|
+
}
|
|
587
|
+
set wordBreakAllMobile(e) {
|
|
588
|
+
o(this, "word-break-all--mobile", e);
|
|
589
|
+
}
|
|
590
|
+
get wordBreakAllTablet() {
|
|
591
|
+
return this.hasAttribute("word-break-all--tablet");
|
|
592
|
+
}
|
|
593
|
+
set wordBreakAllTablet(e) {
|
|
594
|
+
o(this, "word-break-all--tablet", e);
|
|
595
|
+
}
|
|
596
|
+
get wordBreakAllLaptop() {
|
|
597
|
+
return this.hasAttribute("word-break-all--laptop");
|
|
598
|
+
}
|
|
599
|
+
set wordBreakAllLaptop(e) {
|
|
600
|
+
o(this, "word-break-all--laptop", e);
|
|
601
|
+
}
|
|
602
|
+
get wordBreakAllDesktop() {
|
|
603
|
+
return this.hasAttribute("word-break-all--desktop");
|
|
604
|
+
}
|
|
605
|
+
set wordBreakAllDesktop(e) {
|
|
606
|
+
o(this, "word-break-all--desktop", e);
|
|
607
|
+
}
|
|
608
|
+
}, ue = class extends v {
|
|
350
609
|
static {
|
|
351
|
-
this.
|
|
610
|
+
this.nativeAttributes = {};
|
|
611
|
+
}
|
|
612
|
+
static {
|
|
613
|
+
this.nativeProperties = {};
|
|
614
|
+
}
|
|
615
|
+
static {
|
|
616
|
+
this.nativeMethods = [];
|
|
352
617
|
}
|
|
353
618
|
static get observedAttributes() {
|
|
354
|
-
return [...super.observedAttributes, ...
|
|
619
|
+
return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
|
|
355
620
|
}
|
|
356
621
|
attributeChangedCallback(e, t, n) {
|
|
357
|
-
super.attributeChangedCallback(e, t, n),
|
|
622
|
+
super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
|
|
358
623
|
}
|
|
359
624
|
get ctor() {
|
|
360
625
|
return Object.getPrototypeOf(this).constructor;
|
|
361
626
|
}
|
|
362
627
|
constructor(...e) {
|
|
363
|
-
super(...e), this.
|
|
628
|
+
super(...e), this.enhanceWithNativeProperties();
|
|
629
|
+
}
|
|
630
|
+
getNativePropertyMetadata() {
|
|
631
|
+
let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
|
|
632
|
+
for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
|
|
633
|
+
let n = new Map(Object.entries(this.ctor.nativeProperties));
|
|
634
|
+
for (let t of e.keys()) n.set(t, "writable");
|
|
635
|
+
return {
|
|
636
|
+
reflectedProperties: e,
|
|
637
|
+
properties: n
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
setNativeProperty(e, t, n) {
|
|
641
|
+
let r = n.get(e);
|
|
642
|
+
if (r !== void 0) {
|
|
643
|
+
this.$el[e] = t;
|
|
644
|
+
let n = this.$el.getAttribute(r);
|
|
645
|
+
this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
|
|
646
|
+
} else this.$el[e] !== t && (this.$el[e] = t);
|
|
364
647
|
}
|
|
365
648
|
enhanceWithNativeProperties() {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
set(t)
|
|
372
|
-
this.$el[e] !== t && (this.$el[e] = t);
|
|
373
|
-
}
|
|
649
|
+
let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
|
|
650
|
+
for (let [n, r] of t) {
|
|
651
|
+
let t = n;
|
|
652
|
+
Object.defineProperty(this, t, {
|
|
653
|
+
get: () => this.$el[t],
|
|
654
|
+
set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
|
|
374
655
|
});
|
|
375
|
-
} catch (t) {
|
|
376
|
-
console.warn(`Could not create property ${e} for`, this.$el, t);
|
|
377
656
|
}
|
|
657
|
+
for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
|
|
658
|
+
let n = this.$el, r = Reflect.get(n, e);
|
|
659
|
+
if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
|
|
660
|
+
return Reflect.apply(r, n, t);
|
|
661
|
+
} });
|
|
378
662
|
}
|
|
379
663
|
get $el() {
|
|
380
664
|
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
381
665
|
}
|
|
666
|
+
_forwardNativeAttribute(e, t) {
|
|
667
|
+
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
668
|
+
}
|
|
382
669
|
_updateAttribute(e, t) {
|
|
383
|
-
|
|
670
|
+
a(this, e, t);
|
|
384
671
|
}
|
|
385
672
|
_updateBooleanAttribute(e, t) {
|
|
386
|
-
|
|
673
|
+
o(this, e, t);
|
|
387
674
|
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
"auto",
|
|
393
|
-
"flex-start",
|
|
394
|
-
"start",
|
|
395
|
-
"flex-end",
|
|
396
|
-
"end",
|
|
397
|
-
"center",
|
|
398
|
-
"baseline",
|
|
399
|
-
"stretch"
|
|
400
|
-
], te = [
|
|
401
|
-
"",
|
|
402
|
-
"default",
|
|
403
|
-
"start",
|
|
404
|
-
"end",
|
|
405
|
-
"center",
|
|
406
|
-
"stretch"
|
|
407
|
-
], u = [
|
|
408
|
-
"",
|
|
409
|
-
"default",
|
|
410
|
-
"start",
|
|
411
|
-
"end",
|
|
412
|
-
"center",
|
|
413
|
-
"stretch"
|
|
414
|
-
], d = [
|
|
415
|
-
"",
|
|
416
|
-
"1",
|
|
417
|
-
"2",
|
|
418
|
-
"3",
|
|
419
|
-
"4",
|
|
420
|
-
"5",
|
|
421
|
-
"6",
|
|
422
|
-
"7",
|
|
423
|
-
"8",
|
|
424
|
-
"9",
|
|
425
|
-
"10",
|
|
426
|
-
"11",
|
|
427
|
-
"12"
|
|
428
|
-
], f = [
|
|
429
|
-
"",
|
|
430
|
-
"-1",
|
|
431
|
-
"0",
|
|
432
|
-
"1",
|
|
433
|
-
"2",
|
|
434
|
-
"3",
|
|
435
|
-
"4",
|
|
436
|
-
"5",
|
|
437
|
-
"6",
|
|
438
|
-
"7",
|
|
439
|
-
"8",
|
|
440
|
-
"9",
|
|
441
|
-
"10",
|
|
442
|
-
"11",
|
|
443
|
-
"12"
|
|
444
|
-
], p = [
|
|
445
|
-
"",
|
|
446
|
-
"default",
|
|
447
|
-
...[
|
|
448
|
-
"Xs",
|
|
449
|
-
"S",
|
|
450
|
-
"M",
|
|
451
|
-
"L",
|
|
452
|
-
"Xl"
|
|
453
|
-
].map((e) => e.toLowerCase())
|
|
454
|
-
], m = [
|
|
455
|
-
"",
|
|
456
|
-
"none",
|
|
457
|
-
"3xs",
|
|
458
|
-
"2xs",
|
|
459
|
-
"xs",
|
|
460
|
-
"s",
|
|
461
|
-
"m",
|
|
462
|
-
"l",
|
|
463
|
-
"xl"
|
|
464
|
-
], ne = [
|
|
465
|
-
"",
|
|
466
|
-
"none",
|
|
467
|
-
"s",
|
|
468
|
-
"m",
|
|
469
|
-
"l"
|
|
470
|
-
], h = [
|
|
471
|
-
"",
|
|
472
|
-
"none",
|
|
473
|
-
"main",
|
|
474
|
-
"pill"
|
|
475
|
-
], g = [
|
|
476
|
-
"none",
|
|
477
|
-
"main",
|
|
478
|
-
"brand",
|
|
479
|
-
"state-hover",
|
|
480
|
-
"state-active",
|
|
481
|
-
"neutral",
|
|
482
|
-
"purpose-success",
|
|
483
|
-
"purpose-warning",
|
|
484
|
-
"purpose-error",
|
|
485
|
-
"purpose-unlimited"
|
|
486
|
-
], _ = [
|
|
487
|
-
"",
|
|
488
|
-
"all",
|
|
489
|
-
"top",
|
|
490
|
-
"right",
|
|
491
|
-
"bottom",
|
|
492
|
-
"left",
|
|
493
|
-
"block",
|
|
494
|
-
"inline"
|
|
495
|
-
], v = /* @__PURE__ */ ".none.surface-light.surface-default.surface-strong.surface-stronger.surface-dark.surface-brand.surface-brand-light.container-primary.container-secondary.container-light.container-default.container-strong.state-hover.state-hover-bordered.state-active.state-disabled.purpose-success.purpose-warning.purpose-error.purpose-unlimited.purpose-promo.purpose-info.purpose-eco.purpose-notification.footer-sitemap".split("."), re = [
|
|
496
|
-
"",
|
|
497
|
-
"cover",
|
|
498
|
-
"contain",
|
|
499
|
-
"default"
|
|
500
|
-
], ie = [
|
|
501
|
-
"",
|
|
502
|
-
"none",
|
|
503
|
-
"s",
|
|
504
|
-
"m",
|
|
505
|
-
"l",
|
|
506
|
-
"xl"
|
|
507
|
-
], y = /* @__PURE__ */ ".purple-top-red.purple-top-magenta.purple-top-orange.purple-top-blue.purple-top-turquoise.purple-top-green.purple-right-red.purple-right-magenta.purple-right-orange.purple-right-blue.purple-right-turquoise.purple-right-green.purple-top-right-red.purple-top-right-magenta.purple-top-right-orange.purple-top-right-blue.purple-top-right-turquoise.purple-top-right-green.purple-bottom-right-red.purple-bottom-right-magenta.purple-bottom-right-orange.purple-bottom-right-blue.purple-bottom-right-turquoise.purple-bottom-right-green.color-top-red.color-top-magenta.color-top-orange.color-top-blue.color-top-turquoise.color-top-green.color-right-red.color-right-magenta.color-right-orange.color-right-blue.color-right-turquoise.color-right-green.color-top-right-red.color-top-right-magenta.color-top-right-orange.color-top-right-blue.color-top-right-turquoise.color-top-right-green.color-bottom-right-red.color-bottom-right-magenta.color-bottom-right-orange.color-bottom-right-blue.color-bottom-right-turquoise.color-bottom-right-green".split("."), b = [
|
|
508
|
-
"none",
|
|
509
|
-
"2xs",
|
|
510
|
-
"xs",
|
|
511
|
-
"s",
|
|
512
|
-
"default",
|
|
513
|
-
"l",
|
|
514
|
-
"heading-to-subtitle",
|
|
515
|
-
"heading-to-content",
|
|
516
|
-
"page-layout-between-sections"
|
|
517
|
-
], ae = [
|
|
518
|
-
"",
|
|
519
|
-
"all",
|
|
520
|
-
"top",
|
|
521
|
-
"right",
|
|
522
|
-
"bottom",
|
|
523
|
-
"left"
|
|
524
|
-
];
|
|
525
|
-
function x(e, t) {
|
|
675
|
+
};
|
|
676
|
+
//#endregion
|
|
677
|
+
//#region ../common/src/utilities.ts
|
|
678
|
+
function y(e, t) {
|
|
526
679
|
return t !== null && e.includes(t);
|
|
527
680
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region ../common/src/nativeProperties.ts
|
|
683
|
+
var b = {
|
|
684
|
+
validity: "readonly",
|
|
685
|
+
validationMessage: "readonly",
|
|
686
|
+
willValidate: "readonly"
|
|
687
|
+
}, x = [
|
|
688
|
+
"checkValidity",
|
|
689
|
+
"reportValidity",
|
|
690
|
+
"setCustomValidity"
|
|
691
|
+
];
|
|
692
|
+
({ ...b }), [...x], { ...b }, [...x], { ...b }, [...x], { ...b }, [...x], { ...b }, [...x];
|
|
693
|
+
//#endregion
|
|
694
|
+
//#region ../common/src/breakpoints.ts
|
|
695
|
+
function S(e, t, n, r = "", i, a = e) {
|
|
536
696
|
let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
|
|
537
697
|
${t(a, o)} {
|
|
538
698
|
${e}: var(--${r}-${o}-desktop);
|
|
@@ -575,7 +735,7 @@ function w(e, t, n, r = "", i, a = e) {
|
|
|
575
735
|
}`, "");
|
|
576
736
|
return o.replaceSync(s), o;
|
|
577
737
|
}
|
|
578
|
-
var
|
|
738
|
+
var de = class {
|
|
579
739
|
constructor(e, t, n, r) {
|
|
580
740
|
this.component = e, this.attributeName = t, this.cssVariable = r, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = n, Object.defineProperty(this.component, this.toCamelCase(this.attributeName), {
|
|
581
741
|
get: () => this.component.getAttribute(this.attributeName),
|
|
@@ -621,32 +781,33 @@ var T = class {
|
|
|
621
781
|
set attributeValue(e) {
|
|
622
782
|
this._attributeValue = e, this.setCSSProperties();
|
|
623
783
|
}
|
|
624
|
-
},
|
|
625
|
-
function
|
|
784
|
+
}, C = /* @__PURE__ */ new Map(), fe = 500;
|
|
785
|
+
function w(e) {
|
|
626
786
|
let t = document.createElement("template");
|
|
627
787
|
return t.innerHTML = e, t;
|
|
628
788
|
}
|
|
629
|
-
function
|
|
630
|
-
return
|
|
789
|
+
function T(e) {
|
|
790
|
+
return w(e);
|
|
631
791
|
}
|
|
632
|
-
function
|
|
633
|
-
let t =
|
|
634
|
-
return t || (t =
|
|
792
|
+
function pe(e) {
|
|
793
|
+
let t = C.get(e);
|
|
794
|
+
return t || (t = w(e), C.size < fe && C.set(e, t)), t;
|
|
635
795
|
}
|
|
636
|
-
function
|
|
637
|
-
let n = typeof t == "string" ?
|
|
796
|
+
function E(e, t) {
|
|
797
|
+
let n = typeof t == "string" ? pe(t) : t;
|
|
638
798
|
e.replaceChildren(document.importNode(n.content, !0));
|
|
639
799
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
A.replaceSync(e);
|
|
643
|
-
|
|
800
|
+
//#endregion
|
|
801
|
+
//#region ../Container/src/container.css?inline
|
|
802
|
+
var me = ":host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-left-style:none;border-right-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-position:50%;background-size:cover}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot=anchor-right]),::slotted([slot=anchor-left]),::slotted([slot=anchor-full]){position:absolute;top:0}::slotted([slot=anchor-right]),::slotted([slot=anchor-left]){z-index:3;transform:translateY(-50%)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--mobile,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--mobile,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-full]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot=anchor-full]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (width<=47.938rem){.container{background-color:var(--background-color--mobile,var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile,var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var(--background-gradient--mobile,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--mobile,var(--background-color-inverted))}.border-side-top--mobile{border-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (width>=48rem) and (width<=64rem){.container{background-color:var(--background-color--tablet,var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet,var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var(--background-gradient--tablet,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--tablet,var(--background-color-inverted))}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--tablet,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--tablet,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (width>=64.0625rem) and (width<=90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (width>=64.0625rem){.container{background-color:var(--background-color--laptop,var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop,var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var(--background-gradient--laptop,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--laptop,var(--background-color-inverted))}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--laptop,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--laptop,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (width>=90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}", D = new CSSStyleSheet();
|
|
803
|
+
D.replaceSync(me);
|
|
804
|
+
var he = [
|
|
644
805
|
"top-patch",
|
|
645
806
|
"top-neighbor-patch",
|
|
646
807
|
"top-ribbon",
|
|
647
808
|
"top-neighbor-ribbon",
|
|
648
809
|
"top-patch-and-neighbor-ribbon"
|
|
649
|
-
],
|
|
810
|
+
], O = [
|
|
650
811
|
"1",
|
|
651
812
|
"2",
|
|
652
813
|
"3",
|
|
@@ -659,24 +820,24 @@ var j = [
|
|
|
659
820
|
"10",
|
|
660
821
|
"11",
|
|
661
822
|
"12"
|
|
662
|
-
],
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
],
|
|
823
|
+
], k = (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .container`, A = "px-padding", j = [
|
|
824
|
+
S("padding", k, d, A, "--container-padding"),
|
|
825
|
+
S("padding-inline", k, d, A),
|
|
826
|
+
S("padding-block", k, d, A),
|
|
827
|
+
S("padding-top", k, d, A),
|
|
828
|
+
S("padding-right", k, d, A, "--container-padding-right"),
|
|
829
|
+
S("padding-bottom", k, d, A),
|
|
830
|
+
S("padding-left", k, d, A, "--container-padding-left"),
|
|
831
|
+
S("gap", k, h, "px-spacing", void 0, "subgrid-gap")
|
|
832
|
+
], M = class e extends v {
|
|
672
833
|
static {
|
|
673
|
-
this.template =
|
|
834
|
+
this.template = T("<div class=\"container\"><slot></slot><slot name=\"anchor-left\"></slot><slot name=\"anchor-right\"></slot><slot name=\"anchor-full\"></slot></div>");
|
|
674
835
|
}
|
|
675
836
|
static {
|
|
676
837
|
this.nativeName = "div";
|
|
677
838
|
}
|
|
678
839
|
constructor() {
|
|
679
|
-
super(
|
|
840
|
+
super(D, ...j), this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, E(this.shadowRoot, e.template);
|
|
680
841
|
}
|
|
681
842
|
static get observedAttributes() {
|
|
682
843
|
return [
|
|
@@ -732,7 +893,7 @@ var j = [
|
|
|
732
893
|
attributeChangedCallback(e, t, n) {
|
|
733
894
|
if (t !== n) switch (e) {
|
|
734
895
|
case "border":
|
|
735
|
-
this.updateAttribute(e, t, n,
|
|
896
|
+
this.updateAttribute(e, t, n, ae);
|
|
736
897
|
break;
|
|
737
898
|
case "border-color":
|
|
738
899
|
this.updateBorderColor(e, n);
|
|
@@ -741,16 +902,16 @@ var j = [
|
|
|
741
902
|
case "border-side--mobile":
|
|
742
903
|
case "border-side--tablet":
|
|
743
904
|
case "border-side--laptop":
|
|
744
|
-
this.updateAttribute(e, t, n,
|
|
905
|
+
this.updateAttribute(e, t, n, se);
|
|
745
906
|
break;
|
|
746
907
|
case "border-radius":
|
|
747
|
-
this.updateAttribute(e, t, n,
|
|
908
|
+
this.updateAttribute(e, t, n, oe);
|
|
748
909
|
break;
|
|
749
910
|
case "no-border-radius":
|
|
750
911
|
case "no-border-radius--mobile":
|
|
751
912
|
case "no-border-radius--tablet":
|
|
752
913
|
case "no-border-radius--laptop":
|
|
753
|
-
this.updateNoBorderRadius(e, t, n,
|
|
914
|
+
this.updateNoBorderRadius(e, t, n, g);
|
|
754
915
|
break;
|
|
755
916
|
case "background-color":
|
|
756
917
|
case "background-color--mobile":
|
|
@@ -765,7 +926,7 @@ var j = [
|
|
|
765
926
|
this.updateGradient(e, n);
|
|
766
927
|
break;
|
|
767
928
|
case "background-size":
|
|
768
|
-
this.updateAttribute(e, t, n,
|
|
929
|
+
this.updateAttribute(e, t, n, ce);
|
|
769
930
|
break;
|
|
770
931
|
case "background-image":
|
|
771
932
|
case "background-image--mobile":
|
|
@@ -777,16 +938,16 @@ var j = [
|
|
|
777
938
|
n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
|
|
778
939
|
break;
|
|
779
940
|
case "box-shadow":
|
|
780
|
-
this.updateAttribute(e, t, n,
|
|
941
|
+
this.updateAttribute(e, t, n, le);
|
|
781
942
|
break;
|
|
782
943
|
case "anchor-offset":
|
|
783
|
-
this.updateAnchorOffset(t, n,
|
|
944
|
+
this.updateAnchorOffset(t, n, d);
|
|
784
945
|
break;
|
|
785
946
|
case "anchor-spacing":
|
|
786
|
-
this.updateAnchorSpacing(t, n,
|
|
947
|
+
this.updateAnchorSpacing(t, n, he);
|
|
787
948
|
break;
|
|
788
949
|
case "subgrid-rows":
|
|
789
|
-
this.updateSubgridRows(e, t, n,
|
|
950
|
+
this.updateSubgridRows(e, t, n, O);
|
|
790
951
|
break;
|
|
791
952
|
default: super.attributeChangedCallback(e, t, n);
|
|
792
953
|
}
|
|
@@ -806,32 +967,32 @@ var j = [
|
|
|
806
967
|
this.$el.style.setProperty(`--${e}`, `url("${t}")`);
|
|
807
968
|
}
|
|
808
969
|
updateGradient(e, t) {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
970
|
+
let { attrName: n, breakpoint: i } = this.splitAttrNameFromBreakpoint(e), a = `--${n}${i}`;
|
|
971
|
+
if (t === null) {
|
|
972
|
+
this.$el.style.removeProperty(a);
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
this.checkName(m, t) ? this.$el.style.setProperty(a, `linear-gradient(var(--px-color-background-gradient-${t}))`) : r(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${m.join("\", \"")}".`);
|
|
815
976
|
}
|
|
816
977
|
updateBackgroundColor(e, t) {
|
|
817
978
|
let n = t.startsWith("surface-");
|
|
818
|
-
if (this.checkName(
|
|
979
|
+
if (this.checkName(p, t)) {
|
|
819
980
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
820
981
|
this.$el.style.setProperty(`--${r.attrName}${i}`, `var(--px-color-background-${t}${n ? "" : "-default"})`), this.$el.style.setProperty(`--${r.attrName}-inverted${i}`, `var(--px-color-background-${t}${n ? "" : "-inverted"})`);
|
|
821
|
-
} else
|
|
982
|
+
} else r(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${p.join("\", \"")}".`);
|
|
822
983
|
}
|
|
823
984
|
updateBorderColor(e, t) {
|
|
824
|
-
this.checkName(
|
|
985
|
+
this.checkName(f, t) ? (this.$el.style.setProperty(`--${e}`, `var(--px-color-border-${t}-default)`), this.$el.style.setProperty(`--${e}-inverted`, `var(--px-color-border-${t}-inverted)`)) : r(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${f.join("\", \"")}".`);
|
|
825
986
|
}
|
|
826
|
-
updateNoBorderRadius(e, t, n,
|
|
827
|
-
if (!this.checkName(
|
|
987
|
+
updateNoBorderRadius(e, t, n, i) {
|
|
988
|
+
if (!this.checkName(i, n)) r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
828
989
|
else {
|
|
829
990
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
830
991
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
831
992
|
}
|
|
832
993
|
}
|
|
833
|
-
updateAttribute(e, t, n,
|
|
834
|
-
if (!this.checkName(
|
|
994
|
+
updateAttribute(e, t, n, i) {
|
|
995
|
+
if (!this.checkName(i, n)) r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
835
996
|
else {
|
|
836
997
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
837
998
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
@@ -853,30 +1014,30 @@ var j = [
|
|
|
853
1014
|
};
|
|
854
1015
|
}
|
|
855
1016
|
updateAnchorOffset(e, t, n) {
|
|
856
|
-
if (!
|
|
857
|
-
|
|
1017
|
+
if (!y(n, t)) {
|
|
1018
|
+
r(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
858
1019
|
return;
|
|
859
1020
|
}
|
|
860
|
-
let
|
|
1021
|
+
let i = (e) => {
|
|
861
1022
|
e !== null && e !== "" && e !== "default" && (this.$el.style.setProperty("--container-anchor-offset--mobile", `var(--px-padding-${e}-mobile)`), this.$el.style.setProperty("--container-anchor-offset--tablet", `var(--px-padding-${e}-tablet)`), this.$el.style.setProperty("--container-anchor-offset--laptop", `var(--px-padding-${e}-laptop)`));
|
|
862
1023
|
};
|
|
863
|
-
|
|
1024
|
+
i(e), i(t);
|
|
864
1025
|
}
|
|
865
1026
|
addAnchorClass() {
|
|
866
1027
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
867
1028
|
}
|
|
868
1029
|
updateAnchorSpacing(e, t, n) {
|
|
869
|
-
if (!
|
|
870
|
-
|
|
1030
|
+
if (!y(n, t)) {
|
|
1031
|
+
r(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
871
1032
|
return;
|
|
872
1033
|
}
|
|
873
|
-
let
|
|
1034
|
+
let i = (e) => {
|
|
874
1035
|
e !== null && e !== "" && e !== "default" && (this.style.setProperty("--container-anchor-spacing--mobile", `var(--px-spacing-${e}-mobile)`), this.style.setProperty("--container-anchor-spacing--tablet", `var(--px-spacing-${e}-tablet)`), this.style.setProperty("--container-anchor-spacing--laptop", `var(--px-spacing-${e}-laptop)`), this.style.setProperty("--container-anchor-spacing--desktop", `var(--px-spacing-${e}-desktop)`));
|
|
875
1036
|
};
|
|
876
|
-
|
|
1037
|
+
i(e), i(t);
|
|
877
1038
|
}
|
|
878
|
-
updateSubgridRows(e, t, n,
|
|
879
|
-
|
|
1039
|
+
updateSubgridRows(e, t, n, i) {
|
|
1040
|
+
y(i, n) ? this.style.setProperty(`--${e}`, n) : r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
880
1041
|
}
|
|
881
1042
|
get $el() {
|
|
882
1043
|
return this?.shadowRoot?.querySelector(".container");
|
|
@@ -888,389 +1049,390 @@ var j = [
|
|
|
888
1049
|
return this.getAttribute("padding");
|
|
889
1050
|
}
|
|
890
1051
|
set padding(e) {
|
|
891
|
-
|
|
1052
|
+
a(this, "padding", e);
|
|
892
1053
|
}
|
|
893
1054
|
get paddingBlock() {
|
|
894
1055
|
return this.getAttribute("padding-block");
|
|
895
1056
|
}
|
|
896
1057
|
set paddingBlock(e) {
|
|
897
|
-
|
|
1058
|
+
a(this, "padding-block", e);
|
|
898
1059
|
}
|
|
899
1060
|
get paddingInline() {
|
|
900
1061
|
return this.getAttribute("padding-inline");
|
|
901
1062
|
}
|
|
902
1063
|
set paddingInline(e) {
|
|
903
|
-
|
|
1064
|
+
a(this, "padding-inline", e);
|
|
904
1065
|
}
|
|
905
1066
|
get paddingTop() {
|
|
906
1067
|
return this.getAttribute("padding-top");
|
|
907
1068
|
}
|
|
908
1069
|
set paddingTop(e) {
|
|
909
|
-
|
|
1070
|
+
a(this, "padding-top", e);
|
|
910
1071
|
}
|
|
911
1072
|
get paddingRight() {
|
|
912
1073
|
return this.getAttribute("padding-right");
|
|
913
1074
|
}
|
|
914
1075
|
set paddingRight(e) {
|
|
915
|
-
|
|
1076
|
+
a(this, "padding-right", e);
|
|
916
1077
|
}
|
|
917
1078
|
get paddingBottom() {
|
|
918
1079
|
return this.getAttribute("padding-bottom");
|
|
919
1080
|
}
|
|
920
1081
|
set paddingBottom(e) {
|
|
921
|
-
|
|
1082
|
+
a(this, "padding-bottom", e);
|
|
922
1083
|
}
|
|
923
1084
|
get paddingLeft() {
|
|
924
1085
|
return this.getAttribute("padding-left");
|
|
925
1086
|
}
|
|
926
1087
|
set paddingLeft(e) {
|
|
927
|
-
|
|
1088
|
+
a(this, "padding-left", e);
|
|
928
1089
|
}
|
|
929
1090
|
get paddingMobile() {
|
|
930
1091
|
return this.getAttribute("padding--mobile");
|
|
931
1092
|
}
|
|
932
1093
|
set paddingMobile(e) {
|
|
933
|
-
|
|
1094
|
+
a(this, "padding--mobile", e);
|
|
934
1095
|
}
|
|
935
1096
|
get paddingBlockMobile() {
|
|
936
1097
|
return this.getAttribute("padding-block--mobile");
|
|
937
1098
|
}
|
|
938
1099
|
set paddingBlockMobile(e) {
|
|
939
|
-
|
|
1100
|
+
a(this, "padding-block--mobile", e);
|
|
940
1101
|
}
|
|
941
1102
|
get paddingInlineMobile() {
|
|
942
1103
|
return this.getAttribute("padding-inline--mobile");
|
|
943
1104
|
}
|
|
944
1105
|
set paddingInlineMobile(e) {
|
|
945
|
-
|
|
1106
|
+
a(this, "padding-inline--mobile", e);
|
|
946
1107
|
}
|
|
947
1108
|
get paddingTopMobile() {
|
|
948
1109
|
return this.getAttribute("padding-top--mobile");
|
|
949
1110
|
}
|
|
950
1111
|
set paddingTopMobile(e) {
|
|
951
|
-
|
|
1112
|
+
a(this, "padding-top--mobile", e);
|
|
952
1113
|
}
|
|
953
1114
|
get paddingRightMobile() {
|
|
954
1115
|
return this.getAttribute("padding-right--mobile");
|
|
955
1116
|
}
|
|
956
1117
|
set paddingRightMobile(e) {
|
|
957
|
-
|
|
1118
|
+
a(this, "padding-right--mobile", e);
|
|
958
1119
|
}
|
|
959
1120
|
get paddingBottomMobile() {
|
|
960
1121
|
return this.getAttribute("padding-bottom--mobile");
|
|
961
1122
|
}
|
|
962
1123
|
set paddingBottomMobile(e) {
|
|
963
|
-
|
|
1124
|
+
a(this, "padding-bottom--mobile", e);
|
|
964
1125
|
}
|
|
965
1126
|
get paddingLeftMobile() {
|
|
966
1127
|
return this.getAttribute("padding-left--mobile");
|
|
967
1128
|
}
|
|
968
1129
|
set paddingLeftMobile(e) {
|
|
969
|
-
|
|
1130
|
+
a(this, "padding-left--mobile", e);
|
|
970
1131
|
}
|
|
971
1132
|
get paddingTablet() {
|
|
972
1133
|
return this.getAttribute("padding--tablet");
|
|
973
1134
|
}
|
|
974
1135
|
set paddingTablet(e) {
|
|
975
|
-
|
|
1136
|
+
a(this, "padding--tablet", e);
|
|
976
1137
|
}
|
|
977
1138
|
get paddingBlockTablet() {
|
|
978
1139
|
return this.getAttribute("padding-block--tablet");
|
|
979
1140
|
}
|
|
980
1141
|
set paddingBlockTablet(e) {
|
|
981
|
-
|
|
1142
|
+
a(this, "padding-block--tablet", e);
|
|
982
1143
|
}
|
|
983
1144
|
get paddingInlineTablet() {
|
|
984
1145
|
return this.getAttribute("padding-inline--tablet");
|
|
985
1146
|
}
|
|
986
1147
|
set paddingInlineTablet(e) {
|
|
987
|
-
|
|
1148
|
+
a(this, "padding-inline--tablet", e);
|
|
988
1149
|
}
|
|
989
1150
|
get paddingTopTablet() {
|
|
990
1151
|
return this.getAttribute("padding-top--tablet");
|
|
991
1152
|
}
|
|
992
1153
|
set paddingTopTablet(e) {
|
|
993
|
-
|
|
1154
|
+
a(this, "padding-top--tablet", e);
|
|
994
1155
|
}
|
|
995
1156
|
get paddingRightTablet() {
|
|
996
1157
|
return this.getAttribute("padding-right--tablet");
|
|
997
1158
|
}
|
|
998
1159
|
set paddingRightTablet(e) {
|
|
999
|
-
|
|
1160
|
+
a(this, "padding-right--tablet", e);
|
|
1000
1161
|
}
|
|
1001
1162
|
get paddingBottomTablet() {
|
|
1002
1163
|
return this.getAttribute("padding-bottom--tablet");
|
|
1003
1164
|
}
|
|
1004
1165
|
set paddingBottomTablet(e) {
|
|
1005
|
-
|
|
1166
|
+
a(this, "padding-bottom--tablet", e);
|
|
1006
1167
|
}
|
|
1007
1168
|
get paddingLeftTablet() {
|
|
1008
1169
|
return this.getAttribute("padding-left--tablet");
|
|
1009
1170
|
}
|
|
1010
1171
|
set paddingLeftTablet(e) {
|
|
1011
|
-
|
|
1172
|
+
a(this, "padding-left--tablet", e);
|
|
1012
1173
|
}
|
|
1013
1174
|
get paddingLaptop() {
|
|
1014
1175
|
return this.getAttribute("padding--laptop");
|
|
1015
1176
|
}
|
|
1016
1177
|
set paddingLaptop(e) {
|
|
1017
|
-
|
|
1178
|
+
a(this, "padding--laptop", e);
|
|
1018
1179
|
}
|
|
1019
1180
|
get paddingBlockLaptop() {
|
|
1020
1181
|
return this.getAttribute("padding-block--laptop");
|
|
1021
1182
|
}
|
|
1022
1183
|
set paddingBlockLaptop(e) {
|
|
1023
|
-
|
|
1184
|
+
a(this, "padding-block--laptop", e);
|
|
1024
1185
|
}
|
|
1025
1186
|
get paddingInlineLaptop() {
|
|
1026
1187
|
return this.getAttribute("padding-inline--laptop");
|
|
1027
1188
|
}
|
|
1028
1189
|
set paddingInlineLaptop(e) {
|
|
1029
|
-
|
|
1190
|
+
a(this, "padding-inline--laptop", e);
|
|
1030
1191
|
}
|
|
1031
1192
|
get paddingTopLaptop() {
|
|
1032
1193
|
return this.getAttribute("padding-top--laptop");
|
|
1033
1194
|
}
|
|
1034
1195
|
set paddingTopLaptop(e) {
|
|
1035
|
-
|
|
1196
|
+
a(this, "padding-top--laptop", e);
|
|
1036
1197
|
}
|
|
1037
1198
|
get paddingRightLaptop() {
|
|
1038
1199
|
return this.getAttribute("padding-right--laptop");
|
|
1039
1200
|
}
|
|
1040
1201
|
set paddingRightLaptop(e) {
|
|
1041
|
-
|
|
1202
|
+
a(this, "padding-right--laptop", e);
|
|
1042
1203
|
}
|
|
1043
1204
|
get paddingBottomLaptop() {
|
|
1044
1205
|
return this.getAttribute("padding-bottom--laptop");
|
|
1045
1206
|
}
|
|
1046
1207
|
set paddingBottomLaptop(e) {
|
|
1047
|
-
|
|
1208
|
+
a(this, "padding-bottom--laptop", e);
|
|
1048
1209
|
}
|
|
1049
1210
|
get paddingLeftLaptop() {
|
|
1050
1211
|
return this.getAttribute("padding-left--laptop");
|
|
1051
1212
|
}
|
|
1052
1213
|
set paddingLeftLaptop(e) {
|
|
1053
|
-
|
|
1214
|
+
a(this, "padding-left--laptop", e);
|
|
1054
1215
|
}
|
|
1055
1216
|
get border() {
|
|
1056
1217
|
return this.getAttribute("border");
|
|
1057
1218
|
}
|
|
1058
1219
|
set border(e) {
|
|
1059
|
-
|
|
1220
|
+
a(this, "border", e);
|
|
1060
1221
|
}
|
|
1061
1222
|
get borderColor() {
|
|
1062
1223
|
return this.getAttribute("border-color");
|
|
1063
1224
|
}
|
|
1064
1225
|
set borderColor(e) {
|
|
1065
|
-
|
|
1226
|
+
a(this, "border-color", e);
|
|
1066
1227
|
}
|
|
1067
1228
|
get borderSide() {
|
|
1068
1229
|
return this.getAttribute("border-side");
|
|
1069
1230
|
}
|
|
1070
1231
|
set borderSide(e) {
|
|
1071
|
-
|
|
1232
|
+
a(this, "border-side", e);
|
|
1072
1233
|
}
|
|
1073
1234
|
get borderSideMobile() {
|
|
1074
1235
|
return this.getAttribute("border-side--mobile");
|
|
1075
1236
|
}
|
|
1076
1237
|
set borderSideMobile(e) {
|
|
1077
|
-
|
|
1238
|
+
a(this, "border-side--mobile", e);
|
|
1078
1239
|
}
|
|
1079
1240
|
get borderSideTablet() {
|
|
1080
1241
|
return this.getAttribute("border-side--tablet");
|
|
1081
1242
|
}
|
|
1082
1243
|
set borderSideTablet(e) {
|
|
1083
|
-
|
|
1244
|
+
a(this, "border-side--tablet", e);
|
|
1084
1245
|
}
|
|
1085
1246
|
get borderSideLaptop() {
|
|
1086
1247
|
return this.getAttribute("border-side--laptop");
|
|
1087
1248
|
}
|
|
1088
1249
|
set borderSideLaptop(e) {
|
|
1089
|
-
|
|
1250
|
+
a(this, "border-side--laptop", e);
|
|
1090
1251
|
}
|
|
1091
1252
|
get borderRadius() {
|
|
1092
1253
|
return this.getAttribute("border-radius");
|
|
1093
1254
|
}
|
|
1094
1255
|
set borderRadius(e) {
|
|
1095
|
-
|
|
1256
|
+
a(this, "border-radius", e);
|
|
1096
1257
|
}
|
|
1097
1258
|
get noBorderRadius() {
|
|
1098
1259
|
return this.getAttribute("no-border-radius");
|
|
1099
1260
|
}
|
|
1100
1261
|
set noBorderRadius(e) {
|
|
1101
|
-
|
|
1262
|
+
a(this, "no-border-radius", e);
|
|
1102
1263
|
}
|
|
1103
1264
|
get noBorderRadiusMobile() {
|
|
1104
1265
|
return this.getAttribute("no-border-radius--mobile");
|
|
1105
1266
|
}
|
|
1106
1267
|
set noBorderRadiusMobile(e) {
|
|
1107
|
-
|
|
1268
|
+
a(this, "no-border-radius--mobile", e);
|
|
1108
1269
|
}
|
|
1109
1270
|
get noBorderRadiusTablet() {
|
|
1110
1271
|
return this.getAttribute("no-border-radius--tablet");
|
|
1111
1272
|
}
|
|
1112
1273
|
set noBorderRadiusTablet(e) {
|
|
1113
|
-
|
|
1274
|
+
a(this, "no-border-radius--tablet", e);
|
|
1114
1275
|
}
|
|
1115
1276
|
get noBorderRadiusLaptop() {
|
|
1116
1277
|
return this.getAttribute("no-border-radius--laptop");
|
|
1117
1278
|
}
|
|
1118
1279
|
set noBorderRadiusLaptop(e) {
|
|
1119
|
-
|
|
1280
|
+
a(this, "no-border-radius--laptop", e);
|
|
1120
1281
|
}
|
|
1121
1282
|
get backgroundColor() {
|
|
1122
1283
|
return this.getAttribute("background-color");
|
|
1123
1284
|
}
|
|
1124
1285
|
set backgroundColor(e) {
|
|
1125
|
-
|
|
1286
|
+
a(this, "background-color", e);
|
|
1126
1287
|
}
|
|
1127
1288
|
get backgroundColorMobile() {
|
|
1128
1289
|
return this.getAttribute("background-color--mobile");
|
|
1129
1290
|
}
|
|
1130
1291
|
set backgroundColorMobile(e) {
|
|
1131
|
-
|
|
1292
|
+
a(this, "background-color--mobile", e);
|
|
1132
1293
|
}
|
|
1133
1294
|
get backgroundColorTablet() {
|
|
1134
1295
|
return this.getAttribute("background-color--tablet");
|
|
1135
1296
|
}
|
|
1136
1297
|
set backgroundColorTablet(e) {
|
|
1137
|
-
|
|
1298
|
+
a(this, "background-color--tablet", e);
|
|
1138
1299
|
}
|
|
1139
1300
|
get backgroundColorLaptop() {
|
|
1140
1301
|
return this.getAttribute("background-color--laptop");
|
|
1141
1302
|
}
|
|
1142
1303
|
set backgroundColorLaptop(e) {
|
|
1143
|
-
|
|
1304
|
+
a(this, "background-color--laptop", e);
|
|
1144
1305
|
}
|
|
1145
1306
|
get gradient() {
|
|
1146
1307
|
return this.getAttribute("background-gradient");
|
|
1147
1308
|
}
|
|
1148
1309
|
set gradient(e) {
|
|
1149
|
-
|
|
1310
|
+
a(this, "background-gradient", e);
|
|
1150
1311
|
}
|
|
1151
1312
|
get gradientMobile() {
|
|
1152
1313
|
return this.getAttribute("background-gradient--mobile");
|
|
1153
1314
|
}
|
|
1154
1315
|
set gradientMobile(e) {
|
|
1155
|
-
|
|
1316
|
+
a(this, "background-gradient--mobile", e);
|
|
1156
1317
|
}
|
|
1157
1318
|
get gradientTablet() {
|
|
1158
1319
|
return this.getAttribute("background-gradient--tablet");
|
|
1159
1320
|
}
|
|
1160
1321
|
set gradientTablet(e) {
|
|
1161
|
-
|
|
1322
|
+
a(this, "background-gradient--tablet", e);
|
|
1162
1323
|
}
|
|
1163
1324
|
get gradientLaptop() {
|
|
1164
1325
|
return this.getAttribute("background-gradient--laptop");
|
|
1165
1326
|
}
|
|
1166
1327
|
set gradientLaptop(e) {
|
|
1167
|
-
|
|
1328
|
+
a(this, "background-gradient--laptop", e);
|
|
1168
1329
|
}
|
|
1169
1330
|
get backgroundImage() {
|
|
1170
1331
|
return this.getAttribute("background-image");
|
|
1171
1332
|
}
|
|
1172
1333
|
set backgroundImage(e) {
|
|
1173
|
-
|
|
1334
|
+
a(this, "background-image", e);
|
|
1174
1335
|
}
|
|
1175
1336
|
get backgroundImageMobile() {
|
|
1176
1337
|
return this.getAttribute("background-image--mobile");
|
|
1177
1338
|
}
|
|
1178
1339
|
set backgroundImageMobile(e) {
|
|
1179
|
-
|
|
1340
|
+
a(this, "background-image--mobile", e);
|
|
1180
1341
|
}
|
|
1181
1342
|
get backgroundImageTablet() {
|
|
1182
1343
|
return this.getAttribute("background-image--tablet");
|
|
1183
1344
|
}
|
|
1184
1345
|
set backgroundImageTablet(e) {
|
|
1185
|
-
|
|
1346
|
+
a(this, "background-image--tablet", e);
|
|
1186
1347
|
}
|
|
1187
1348
|
get backgroundImageLaptop() {
|
|
1188
1349
|
return this.getAttribute("background-image--laptop");
|
|
1189
1350
|
}
|
|
1190
1351
|
set backgroundImageLaptop(e) {
|
|
1191
|
-
|
|
1352
|
+
a(this, "background-image--laptop", e);
|
|
1192
1353
|
}
|
|
1193
1354
|
get backgroundSize() {
|
|
1194
1355
|
return this.getAttribute("background-size");
|
|
1195
1356
|
}
|
|
1196
1357
|
set backgroundSize(e) {
|
|
1197
|
-
|
|
1358
|
+
a(this, "background-size", e);
|
|
1198
1359
|
}
|
|
1199
1360
|
get backgroundPosition() {
|
|
1200
1361
|
return this.getAttribute("background-position");
|
|
1201
1362
|
}
|
|
1202
1363
|
set backgroundPosition(e) {
|
|
1203
|
-
|
|
1364
|
+
a(this, "background-position", e);
|
|
1204
1365
|
}
|
|
1205
1366
|
get boxShadow() {
|
|
1206
1367
|
return this.getAttribute("box-shadow");
|
|
1207
1368
|
}
|
|
1208
1369
|
set boxShadow(e) {
|
|
1209
|
-
|
|
1370
|
+
a(this, "box-shadow", e);
|
|
1210
1371
|
}
|
|
1211
1372
|
get anchorOffset() {
|
|
1212
1373
|
return this.getAttribute("anchor-offset");
|
|
1213
1374
|
}
|
|
1214
1375
|
set anchorOffset(e) {
|
|
1215
|
-
|
|
1376
|
+
a(this, "anchor-offset", e);
|
|
1216
1377
|
}
|
|
1217
1378
|
get anchorSpacing() {
|
|
1218
1379
|
return this.getAttribute("anchor-spacing");
|
|
1219
1380
|
}
|
|
1220
1381
|
set anchorSpacing(e) {
|
|
1221
|
-
|
|
1382
|
+
a(this, "anchor-spacing", e);
|
|
1222
1383
|
}
|
|
1223
1384
|
get inverted() {
|
|
1224
1385
|
return this.hasAttribute("inverted");
|
|
1225
1386
|
}
|
|
1226
1387
|
set inverted(e) {
|
|
1227
|
-
|
|
1388
|
+
o(this, "inverted", e);
|
|
1228
1389
|
}
|
|
1229
1390
|
get subgridRows() {
|
|
1230
1391
|
return this.getAttribute("subgrid-rows");
|
|
1231
1392
|
}
|
|
1232
1393
|
set subgridRows(e) {
|
|
1233
|
-
|
|
1394
|
+
a(this, "subgrid-rows", e);
|
|
1234
1395
|
}
|
|
1235
1396
|
get subgridGap() {
|
|
1236
1397
|
return this.getAttribute("subgrid-gap");
|
|
1237
1398
|
}
|
|
1238
1399
|
set subgridGap(e) {
|
|
1239
|
-
|
|
1400
|
+
a(this, "subgrid-gap", e);
|
|
1240
1401
|
}
|
|
1241
1402
|
get subgridGapMobile() {
|
|
1242
1403
|
return this.getAttribute("subgrid-gap--mobile");
|
|
1243
1404
|
}
|
|
1244
1405
|
set subgridGapMobile(e) {
|
|
1245
|
-
|
|
1406
|
+
a(this, "subgrid-gap--mobile", e);
|
|
1246
1407
|
}
|
|
1247
1408
|
get subgridGapTablet() {
|
|
1248
1409
|
return this.getAttribute("subgrid-gap--tablet");
|
|
1249
1410
|
}
|
|
1250
1411
|
set subgridGapTablet(e) {
|
|
1251
|
-
|
|
1412
|
+
a(this, "subgrid-gap--tablet", e);
|
|
1252
1413
|
}
|
|
1253
1414
|
get subgridGapLaptop() {
|
|
1254
1415
|
return this.getAttribute("subgrid-gap--laptop");
|
|
1255
1416
|
}
|
|
1256
1417
|
set subgridGapLaptop(e) {
|
|
1257
|
-
|
|
1418
|
+
a(this, "subgrid-gap--laptop", e);
|
|
1258
1419
|
}
|
|
1259
1420
|
};
|
|
1260
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1421
|
+
customElements.get("px-container") || customElements.define("px-container", M);
|
|
1422
|
+
//#endregion
|
|
1423
|
+
//#region ../Layout/src/Stack.css?inline
|
|
1424
|
+
var N = ":host{--flex-min-width--mobile-value:auto;--flex-min-width--tablet-value:auto;--flex-min-width--laptop-value:auto;--flex-min-width--desktop-value:auto;--flex-max-width--mobile-value:none;--flex-max-width--tablet-value:none;--flex-max-width--laptop-value:none;--flex-max-width--desktop-value:none;min-width:var(--flex-min-width--mobile-value);max-width:var(--flex-max-width--mobile-value);--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){:host{min-width:var(--flex-min-width--tablet-value);max-width:var(--flex-max-width--tablet-value)}.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){:host{min-width:var(--flex-min-width--laptop-value);max-width:var(--flex-max-width--laptop-value)}.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){:host{min-width:var(--flex-min-width--desktop-value);max-width:var(--flex-max-width--desktop-value)}.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", P = new CSSStyleSheet();
|
|
1425
|
+
P.replaceSync(N);
|
|
1426
|
+
var F = document.createElement("template");
|
|
1427
|
+
F.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
1428
|
+
var I = [
|
|
1267
1429
|
"",
|
|
1268
1430
|
"default",
|
|
1269
1431
|
"row",
|
|
1270
1432
|
"row-reverse",
|
|
1271
1433
|
"column",
|
|
1272
1434
|
"column-reverse"
|
|
1273
|
-
],
|
|
1435
|
+
], L = [
|
|
1274
1436
|
"",
|
|
1275
1437
|
"default",
|
|
1276
1438
|
"stretch",
|
|
@@ -1280,7 +1442,7 @@ var B = [
|
|
|
1280
1442
|
"end",
|
|
1281
1443
|
"center",
|
|
1282
1444
|
"baseline"
|
|
1283
|
-
],
|
|
1445
|
+
], R = [
|
|
1284
1446
|
"",
|
|
1285
1447
|
"default",
|
|
1286
1448
|
"flex-start",
|
|
@@ -1291,21 +1453,21 @@ var B = [
|
|
|
1291
1453
|
"space-between",
|
|
1292
1454
|
"space-around",
|
|
1293
1455
|
"space-evenly"
|
|
1294
|
-
],
|
|
1456
|
+
], ge = [
|
|
1295
1457
|
"",
|
|
1296
1458
|
"default",
|
|
1297
1459
|
"nowrap",
|
|
1298
1460
|
"wrap",
|
|
1299
1461
|
"wrap-reverse"
|
|
1300
|
-
],
|
|
1462
|
+
], z = [
|
|
1301
1463
|
"",
|
|
1302
1464
|
"visible",
|
|
1303
1465
|
"hidden",
|
|
1304
1466
|
"scroll",
|
|
1305
1467
|
"auto"
|
|
1306
|
-
],
|
|
1468
|
+
], B = class e extends v {
|
|
1307
1469
|
constructor() {
|
|
1308
|
-
super(
|
|
1470
|
+
super(P), this.overflowXAttributeDelegate = new de(this, "overflow-x", (e) => e, "--overflow-x"), this.shadowRoot.firstChild || this.shadowRoot.appendChild(document.importNode(F.content, !0));
|
|
1309
1471
|
}
|
|
1310
1472
|
connectedCallback() {}
|
|
1311
1473
|
static get observedAttributes() {
|
|
@@ -1340,7 +1502,27 @@ var B = [
|
|
|
1340
1502
|
"overflow-x--mobile",
|
|
1341
1503
|
"overflow-x--tablet",
|
|
1342
1504
|
"overflow-x--laptop",
|
|
1343
|
-
"overflow-x--desktop"
|
|
1505
|
+
"overflow-x--desktop",
|
|
1506
|
+
"overflow-y",
|
|
1507
|
+
"overflow-y--mobile",
|
|
1508
|
+
"overflow-y--tablet",
|
|
1509
|
+
"overflow-y--laptop",
|
|
1510
|
+
"overflow-y--desktop",
|
|
1511
|
+
"max-height",
|
|
1512
|
+
"max-height--mobile",
|
|
1513
|
+
"max-height--tablet",
|
|
1514
|
+
"max-height--laptop",
|
|
1515
|
+
"max-height--desktop",
|
|
1516
|
+
"min-width",
|
|
1517
|
+
"min-width--mobile",
|
|
1518
|
+
"min-width--tablet",
|
|
1519
|
+
"min-width--laptop",
|
|
1520
|
+
"min-width--desktop",
|
|
1521
|
+
"max-width",
|
|
1522
|
+
"max-width--mobile",
|
|
1523
|
+
"max-width--tablet",
|
|
1524
|
+
"max-width--laptop",
|
|
1525
|
+
"max-width--desktop"
|
|
1344
1526
|
];
|
|
1345
1527
|
}
|
|
1346
1528
|
attributeChangedCallback(e, t, n) {
|
|
@@ -1350,65 +1532,108 @@ var B = [
|
|
|
1350
1532
|
case "gap--tablet":
|
|
1351
1533
|
case "gap--laptop":
|
|
1352
1534
|
case "gap--desktop":
|
|
1353
|
-
this.updateFlexProperties(e, t, n,
|
|
1535
|
+
this.updateFlexProperties(e, t, n, h);
|
|
1354
1536
|
break;
|
|
1355
1537
|
case "justify-content":
|
|
1356
1538
|
case "justify-content--mobile":
|
|
1357
1539
|
case "justify-content--tablet":
|
|
1358
1540
|
case "justify-content--laptop":
|
|
1359
1541
|
case "justify-content--desktop":
|
|
1360
|
-
this.updateFlexProperties(e, t, n,
|
|
1542
|
+
this.updateFlexProperties(e, t, n, R);
|
|
1361
1543
|
break;
|
|
1362
1544
|
case "align-items":
|
|
1363
1545
|
case "align-items--mobile":
|
|
1364
1546
|
case "align-items--tablet":
|
|
1365
1547
|
case "align-items--laptop":
|
|
1366
1548
|
case "align-items--desktop":
|
|
1367
|
-
this.updateFlexProperties(e, t, n,
|
|
1549
|
+
this.updateFlexProperties(e, t, n, L);
|
|
1368
1550
|
break;
|
|
1369
1551
|
case "wrap":
|
|
1370
1552
|
case "wrap--mobile":
|
|
1371
1553
|
case "wrap--tablet":
|
|
1372
1554
|
case "wrap--laptop":
|
|
1373
1555
|
case "wrap--desktop":
|
|
1374
|
-
this.updateFlexProperties(e, t, n,
|
|
1556
|
+
this.updateFlexProperties(e, t, n, ge);
|
|
1375
1557
|
break;
|
|
1376
1558
|
case "direction":
|
|
1377
1559
|
case "direction--mobile":
|
|
1378
1560
|
case "direction--tablet":
|
|
1379
1561
|
case "direction--laptop":
|
|
1380
1562
|
case "direction--desktop":
|
|
1381
|
-
this.updateFlexProperties(e, t, n,
|
|
1563
|
+
this.updateFlexProperties(e, t, n, I), this.updateVerticalStyles();
|
|
1564
|
+
break;
|
|
1565
|
+
case "min-width":
|
|
1566
|
+
case "min-width--mobile":
|
|
1567
|
+
case "min-width--tablet":
|
|
1568
|
+
case "min-width--laptop":
|
|
1569
|
+
case "min-width--desktop":
|
|
1570
|
+
case "max-width":
|
|
1571
|
+
case "max-width--mobile":
|
|
1572
|
+
case "max-width--tablet":
|
|
1573
|
+
case "max-width--laptop":
|
|
1574
|
+
case "max-width--desktop":
|
|
1575
|
+
n && !CSS.supports(e.split("--")[0], n) && r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateFlexProperties(e, t, n);
|
|
1576
|
+
break;
|
|
1577
|
+
case "overflow-y":
|
|
1578
|
+
case "overflow-y--mobile":
|
|
1579
|
+
case "overflow-y--tablet":
|
|
1580
|
+
case "overflow-y--laptop":
|
|
1581
|
+
case "overflow-y--desktop":
|
|
1582
|
+
case "max-height":
|
|
1583
|
+
case "max-height--mobile":
|
|
1584
|
+
case "max-height--tablet":
|
|
1585
|
+
case "max-height--laptop":
|
|
1586
|
+
case "max-height--desktop":
|
|
1587
|
+
n && !this.isValidVerticalValue(e, n) && r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
1382
1588
|
break;
|
|
1383
1589
|
case "overflow-x":
|
|
1384
1590
|
case "overflow-x--mobile":
|
|
1385
1591
|
case "overflow-x--tablet":
|
|
1386
1592
|
case "overflow-x--laptop":
|
|
1387
1593
|
case "overflow-x--desktop":
|
|
1388
|
-
this.updateOverflowX(e, t, n,
|
|
1594
|
+
this.updateOverflowX(e, t, n, z);
|
|
1389
1595
|
break;
|
|
1390
1596
|
default: super.attributeChangedCallback(e, t, n);
|
|
1391
1597
|
}
|
|
1392
1598
|
}
|
|
1393
|
-
|
|
1394
|
-
|
|
1599
|
+
isValidVerticalValue(e, t) {
|
|
1600
|
+
return e.startsWith("overflow-y") ? z.includes(t) : CSS.supports("max-height", t);
|
|
1601
|
+
}
|
|
1602
|
+
updateVerticalStyles() {
|
|
1603
|
+
for (let t of e.breakpoints) {
|
|
1604
|
+
let e = this.localName === "px-stack" && this.getAttribute(`direction--${t}`) || this.direction, n = e === "column" || e === "column-reverse";
|
|
1605
|
+
for (let e of ["overflow-y", "max-height"]) {
|
|
1606
|
+
let r = this.getAttribute(`${e}--${t}`) || this.getAttribute(e);
|
|
1607
|
+
this.updateStyle(e, t, n && r && this.isValidVerticalValue(e, r) ? r : null);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
updateOverflowX(e, t, n, i) {
|
|
1612
|
+
if (!y(i, n)) {
|
|
1613
|
+
r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
1395
1617
|
}
|
|
1396
|
-
updateFlexProperties(t, n,
|
|
1397
|
-
|
|
1398
|
-
let
|
|
1399
|
-
if (
|
|
1618
|
+
updateFlexProperties(t, n, i, a) {
|
|
1619
|
+
a && i !== null && !this.checkName(a, i) && r(`"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join("\", \"")}".`);
|
|
1620
|
+
let o = t.indexOf("--");
|
|
1621
|
+
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n, i, a);
|
|
1400
1622
|
else {
|
|
1401
|
-
let e = t.slice(0,
|
|
1402
|
-
this.updateStyle(e, n,
|
|
1623
|
+
let e = t.slice(0, o), n = t.slice(o + 2);
|
|
1624
|
+
this.updateStyle(e, n, i || this.getAttribute(e), a);
|
|
1403
1625
|
}
|
|
1404
1626
|
}
|
|
1405
1627
|
updateStyle(e, t, n, r) {
|
|
1406
|
-
let i = `--flex-${e}--${t}-value`, a = e === "gap";
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1628
|
+
let i = `--flex-${e}--${t}-value`, a = e === "gap", o = e === "min-width" || e === "max-width", s = o ? this : this.$el;
|
|
1629
|
+
if (o && n && !CSS.supports(e, n) && (n = null), !n) {
|
|
1630
|
+
s.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
if (a && r && r.includes(n)) {
|
|
1409
1634
|
let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
|
|
1410
1635
|
this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
|
|
1411
|
-
} else
|
|
1636
|
+
} else s.style.setProperty(i, n);
|
|
1412
1637
|
}
|
|
1413
1638
|
static {
|
|
1414
1639
|
this.breakpoints = [
|
|
@@ -1422,213 +1647,334 @@ var B = [
|
|
|
1422
1647
|
return this.getAttribute("direction") ?? "row";
|
|
1423
1648
|
}
|
|
1424
1649
|
set direction(e) {
|
|
1425
|
-
|
|
1650
|
+
a(this, "direction", e);
|
|
1426
1651
|
}
|
|
1427
1652
|
get directionMobile() {
|
|
1428
1653
|
return this.getAttribute("direction--mobile");
|
|
1429
1654
|
}
|
|
1430
1655
|
set directionMobile(e) {
|
|
1431
|
-
|
|
1656
|
+
a(this, "direction--mobile", e);
|
|
1432
1657
|
}
|
|
1433
1658
|
get directionTablet() {
|
|
1434
1659
|
return this.getAttribute("direction--tablet");
|
|
1435
1660
|
}
|
|
1436
1661
|
set directionTablet(e) {
|
|
1437
|
-
|
|
1662
|
+
a(this, "direction--tablet", e);
|
|
1438
1663
|
}
|
|
1439
1664
|
get directionLaptop() {
|
|
1440
1665
|
return this.getAttribute("direction--laptop");
|
|
1441
1666
|
}
|
|
1442
1667
|
set directionLaptop(e) {
|
|
1443
|
-
|
|
1668
|
+
a(this, "direction--laptop", e);
|
|
1444
1669
|
}
|
|
1445
1670
|
get directionDesktop() {
|
|
1446
1671
|
return this.getAttribute("direction--desktop");
|
|
1447
1672
|
}
|
|
1448
1673
|
set directionDesktop(e) {
|
|
1449
|
-
|
|
1674
|
+
a(this, "direction--desktop", e);
|
|
1450
1675
|
}
|
|
1451
1676
|
get gap() {
|
|
1452
1677
|
return this.getAttribute("gap") ?? "none";
|
|
1453
1678
|
}
|
|
1454
1679
|
set gap(e) {
|
|
1455
|
-
|
|
1680
|
+
a(this, "gap", e);
|
|
1456
1681
|
}
|
|
1457
1682
|
get gapMobile() {
|
|
1458
1683
|
return this.getAttribute("gap--mobile");
|
|
1459
1684
|
}
|
|
1460
1685
|
set gapMobile(e) {
|
|
1461
|
-
|
|
1686
|
+
a(this, "gap--mobile", e);
|
|
1462
1687
|
}
|
|
1463
1688
|
get gapTablet() {
|
|
1464
1689
|
return this.getAttribute("gap--tablet");
|
|
1465
1690
|
}
|
|
1466
1691
|
set gapTablet(e) {
|
|
1467
|
-
|
|
1692
|
+
a(this, "gap--tablet", e);
|
|
1468
1693
|
}
|
|
1469
1694
|
get gapLaptop() {
|
|
1470
1695
|
return this.getAttribute("gap--laptop");
|
|
1471
1696
|
}
|
|
1472
1697
|
set gapLaptop(e) {
|
|
1473
|
-
|
|
1698
|
+
a(this, "gap--laptop", e);
|
|
1474
1699
|
}
|
|
1475
1700
|
get gapDesktop() {
|
|
1476
1701
|
return this.getAttribute("gap--desktop");
|
|
1477
1702
|
}
|
|
1478
1703
|
set gapDesktop(e) {
|
|
1479
|
-
|
|
1704
|
+
a(this, "gap--desktop", e);
|
|
1480
1705
|
}
|
|
1481
1706
|
get justifyContent() {
|
|
1482
1707
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
1483
1708
|
}
|
|
1484
1709
|
set justifyContent(e) {
|
|
1485
|
-
|
|
1710
|
+
a(this, "justify-content", e);
|
|
1486
1711
|
}
|
|
1487
1712
|
get justifyContentMobile() {
|
|
1488
1713
|
return this.getAttribute("justify-content--mobile");
|
|
1489
1714
|
}
|
|
1490
1715
|
set justifyContentMobile(e) {
|
|
1491
|
-
|
|
1716
|
+
a(this, "justify-content--mobile", e);
|
|
1492
1717
|
}
|
|
1493
1718
|
get justifyContentTablet() {
|
|
1494
1719
|
return this.getAttribute("justify-content--tablet");
|
|
1495
1720
|
}
|
|
1496
1721
|
set justifyContentTablet(e) {
|
|
1497
|
-
|
|
1722
|
+
a(this, "justify-content--tablet", e);
|
|
1498
1723
|
}
|
|
1499
1724
|
get justifyContentLaptop() {
|
|
1500
1725
|
return this.getAttribute("justify-content--laptop");
|
|
1501
1726
|
}
|
|
1502
1727
|
set justifyContentLaptop(e) {
|
|
1503
|
-
|
|
1728
|
+
a(this, "justify-content--laptop", e);
|
|
1504
1729
|
}
|
|
1505
1730
|
get justifyContentDesktop() {
|
|
1506
1731
|
return this.getAttribute("justify-content--desktop");
|
|
1507
1732
|
}
|
|
1508
1733
|
set justifyContentDesktop(e) {
|
|
1509
|
-
|
|
1734
|
+
a(this, "justify-content--desktop", e);
|
|
1510
1735
|
}
|
|
1511
1736
|
get alignItems() {
|
|
1512
1737
|
return this.getAttribute("align-items") ?? "stretch";
|
|
1513
1738
|
}
|
|
1514
1739
|
set alignItems(e) {
|
|
1515
|
-
|
|
1740
|
+
a(this, "align-items", e);
|
|
1516
1741
|
}
|
|
1517
1742
|
get alignItemsMobile() {
|
|
1518
1743
|
return this.getAttribute("align-items--mobile");
|
|
1519
1744
|
}
|
|
1520
1745
|
set alignItemsMobile(e) {
|
|
1521
|
-
|
|
1746
|
+
a(this, "align-items--mobile", e);
|
|
1522
1747
|
}
|
|
1523
1748
|
get alignItemsTablet() {
|
|
1524
1749
|
return this.getAttribute("align-items--tablet");
|
|
1525
1750
|
}
|
|
1526
1751
|
set alignItemsTablet(e) {
|
|
1527
|
-
|
|
1752
|
+
a(this, "align-items--tablet", e);
|
|
1528
1753
|
}
|
|
1529
1754
|
get alignItemsLaptop() {
|
|
1530
1755
|
return this.getAttribute("align-items--laptop");
|
|
1531
1756
|
}
|
|
1532
1757
|
set alignItemsLaptop(e) {
|
|
1533
|
-
|
|
1758
|
+
a(this, "align-items--laptop", e);
|
|
1534
1759
|
}
|
|
1535
1760
|
get alignItemsDesktop() {
|
|
1536
1761
|
return this.getAttribute("align-items--desktop");
|
|
1537
1762
|
}
|
|
1538
1763
|
set alignItemsDesktop(e) {
|
|
1539
|
-
|
|
1764
|
+
a(this, "align-items--desktop", e);
|
|
1540
1765
|
}
|
|
1541
1766
|
get wrap() {
|
|
1542
1767
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
1543
1768
|
}
|
|
1544
1769
|
set wrap(e) {
|
|
1545
|
-
|
|
1770
|
+
a(this, "wrap", e);
|
|
1546
1771
|
}
|
|
1547
1772
|
get wrapMobile() {
|
|
1548
1773
|
return this.getAttribute("wrap--mobile");
|
|
1549
1774
|
}
|
|
1550
1775
|
set wrapMobile(e) {
|
|
1551
|
-
|
|
1776
|
+
a(this, "wrap--mobile", e);
|
|
1552
1777
|
}
|
|
1553
1778
|
get wrapTablet() {
|
|
1554
1779
|
return this.getAttribute("wrap--tablet");
|
|
1555
1780
|
}
|
|
1556
1781
|
set wrapTablet(e) {
|
|
1557
|
-
|
|
1782
|
+
a(this, "wrap--tablet", e);
|
|
1558
1783
|
}
|
|
1559
1784
|
get wrapLaptop() {
|
|
1560
1785
|
return this.getAttribute("wrap--laptop");
|
|
1561
1786
|
}
|
|
1562
1787
|
set wrapLaptop(e) {
|
|
1563
|
-
|
|
1788
|
+
a(this, "wrap--laptop", e);
|
|
1564
1789
|
}
|
|
1565
1790
|
get wrapDesktop() {
|
|
1566
1791
|
return this.getAttribute("wrap--desktop");
|
|
1567
1792
|
}
|
|
1568
1793
|
set wrapDesktop(e) {
|
|
1569
|
-
|
|
1794
|
+
a(this, "wrap--desktop", e);
|
|
1570
1795
|
}
|
|
1571
1796
|
get overflowX() {
|
|
1572
1797
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
1573
1798
|
}
|
|
1574
1799
|
set overflowX(e) {
|
|
1575
|
-
|
|
1800
|
+
a(this, "overflow-x", e);
|
|
1576
1801
|
}
|
|
1577
1802
|
get overflowXMobile() {
|
|
1578
1803
|
return this.getAttribute("overflow-x--mobile");
|
|
1579
1804
|
}
|
|
1580
1805
|
set overflowXMobile(e) {
|
|
1581
|
-
|
|
1806
|
+
a(this, "overflow-x--mobile", e);
|
|
1582
1807
|
}
|
|
1583
1808
|
get overflowXTablet() {
|
|
1584
1809
|
return this.getAttribute("overflow-x--tablet");
|
|
1585
1810
|
}
|
|
1586
1811
|
set overflowXTablet(e) {
|
|
1587
|
-
|
|
1812
|
+
a(this, "overflow-x--tablet", e);
|
|
1588
1813
|
}
|
|
1589
1814
|
get overflowXLaptop() {
|
|
1590
1815
|
return this.getAttribute("overflow-x--laptop");
|
|
1591
1816
|
}
|
|
1592
1817
|
set overflowXLaptop(e) {
|
|
1593
|
-
|
|
1818
|
+
a(this, "overflow-x--laptop", e);
|
|
1594
1819
|
}
|
|
1595
1820
|
get overflowXDesktop() {
|
|
1596
1821
|
return this.getAttribute("overflow-x--desktop");
|
|
1597
1822
|
}
|
|
1598
1823
|
set overflowXDesktop(e) {
|
|
1599
|
-
|
|
1824
|
+
a(this, "overflow-x--desktop", e);
|
|
1825
|
+
}
|
|
1826
|
+
get overflowY() {
|
|
1827
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
1828
|
+
}
|
|
1829
|
+
set overflowY(e) {
|
|
1830
|
+
a(this, "overflow-y", e);
|
|
1831
|
+
}
|
|
1832
|
+
get overflowYMobile() {
|
|
1833
|
+
return this.getAttribute("overflow-y--mobile");
|
|
1834
|
+
}
|
|
1835
|
+
set overflowYMobile(e) {
|
|
1836
|
+
a(this, "overflow-y--mobile", e);
|
|
1837
|
+
}
|
|
1838
|
+
get overflowYTablet() {
|
|
1839
|
+
return this.getAttribute("overflow-y--tablet");
|
|
1840
|
+
}
|
|
1841
|
+
set overflowYTablet(e) {
|
|
1842
|
+
a(this, "overflow-y--tablet", e);
|
|
1843
|
+
}
|
|
1844
|
+
get overflowYLaptop() {
|
|
1845
|
+
return this.getAttribute("overflow-y--laptop");
|
|
1846
|
+
}
|
|
1847
|
+
set overflowYLaptop(e) {
|
|
1848
|
+
a(this, "overflow-y--laptop", e);
|
|
1849
|
+
}
|
|
1850
|
+
get overflowYDesktop() {
|
|
1851
|
+
return this.getAttribute("overflow-y--desktop");
|
|
1852
|
+
}
|
|
1853
|
+
set overflowYDesktop(e) {
|
|
1854
|
+
a(this, "overflow-y--desktop", e);
|
|
1855
|
+
}
|
|
1856
|
+
get maxHeight() {
|
|
1857
|
+
return this.getAttribute("max-height") ?? "none";
|
|
1858
|
+
}
|
|
1859
|
+
set maxHeight(e) {
|
|
1860
|
+
a(this, "max-height", e);
|
|
1861
|
+
}
|
|
1862
|
+
get maxHeightMobile() {
|
|
1863
|
+
return this.getAttribute("max-height--mobile");
|
|
1864
|
+
}
|
|
1865
|
+
set maxHeightMobile(e) {
|
|
1866
|
+
a(this, "max-height--mobile", e);
|
|
1867
|
+
}
|
|
1868
|
+
get maxHeightTablet() {
|
|
1869
|
+
return this.getAttribute("max-height--tablet");
|
|
1870
|
+
}
|
|
1871
|
+
set maxHeightTablet(e) {
|
|
1872
|
+
a(this, "max-height--tablet", e);
|
|
1873
|
+
}
|
|
1874
|
+
get maxHeightLaptop() {
|
|
1875
|
+
return this.getAttribute("max-height--laptop");
|
|
1876
|
+
}
|
|
1877
|
+
set maxHeightLaptop(e) {
|
|
1878
|
+
a(this, "max-height--laptop", e);
|
|
1879
|
+
}
|
|
1880
|
+
get maxHeightDesktop() {
|
|
1881
|
+
return this.getAttribute("max-height--desktop");
|
|
1882
|
+
}
|
|
1883
|
+
set maxHeightDesktop(e) {
|
|
1884
|
+
a(this, "max-height--desktop", e);
|
|
1885
|
+
}
|
|
1886
|
+
get minWidth() {
|
|
1887
|
+
return this.getAttribute("min-width") ?? "auto";
|
|
1888
|
+
}
|
|
1889
|
+
set minWidth(e) {
|
|
1890
|
+
a(this, "min-width", e);
|
|
1891
|
+
}
|
|
1892
|
+
get minWidthMobile() {
|
|
1893
|
+
return this.getAttribute("min-width--mobile");
|
|
1894
|
+
}
|
|
1895
|
+
set minWidthMobile(e) {
|
|
1896
|
+
a(this, "min-width--mobile", e);
|
|
1897
|
+
}
|
|
1898
|
+
get minWidthTablet() {
|
|
1899
|
+
return this.getAttribute("min-width--tablet");
|
|
1900
|
+
}
|
|
1901
|
+
set minWidthTablet(e) {
|
|
1902
|
+
a(this, "min-width--tablet", e);
|
|
1903
|
+
}
|
|
1904
|
+
get minWidthLaptop() {
|
|
1905
|
+
return this.getAttribute("min-width--laptop");
|
|
1906
|
+
}
|
|
1907
|
+
set minWidthLaptop(e) {
|
|
1908
|
+
a(this, "min-width--laptop", e);
|
|
1909
|
+
}
|
|
1910
|
+
get minWidthDesktop() {
|
|
1911
|
+
return this.getAttribute("min-width--desktop");
|
|
1912
|
+
}
|
|
1913
|
+
set minWidthDesktop(e) {
|
|
1914
|
+
a(this, "min-width--desktop", e);
|
|
1915
|
+
}
|
|
1916
|
+
get maxWidth() {
|
|
1917
|
+
return this.getAttribute("max-width") ?? "none";
|
|
1918
|
+
}
|
|
1919
|
+
set maxWidth(e) {
|
|
1920
|
+
a(this, "max-width", e);
|
|
1921
|
+
}
|
|
1922
|
+
get maxWidthMobile() {
|
|
1923
|
+
return this.getAttribute("max-width--mobile");
|
|
1924
|
+
}
|
|
1925
|
+
set maxWidthMobile(e) {
|
|
1926
|
+
a(this, "max-width--mobile", e);
|
|
1927
|
+
}
|
|
1928
|
+
get maxWidthTablet() {
|
|
1929
|
+
return this.getAttribute("max-width--tablet");
|
|
1930
|
+
}
|
|
1931
|
+
set maxWidthTablet(e) {
|
|
1932
|
+
a(this, "max-width--tablet", e);
|
|
1933
|
+
}
|
|
1934
|
+
get maxWidthLaptop() {
|
|
1935
|
+
return this.getAttribute("max-width--laptop");
|
|
1936
|
+
}
|
|
1937
|
+
set maxWidthLaptop(e) {
|
|
1938
|
+
a(this, "max-width--laptop", e);
|
|
1939
|
+
}
|
|
1940
|
+
get maxWidthDesktop() {
|
|
1941
|
+
return this.getAttribute("max-width--desktop");
|
|
1942
|
+
}
|
|
1943
|
+
set maxWidthDesktop(e) {
|
|
1944
|
+
a(this, "max-width--desktop", e);
|
|
1600
1945
|
}
|
|
1601
1946
|
get $el() {
|
|
1602
1947
|
return this.shadowRoot.firstElementChild;
|
|
1603
1948
|
}
|
|
1604
1949
|
};
|
|
1605
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
1606
|
-
var
|
|
1950
|
+
customElements.get("px-stack") || customElements.define("px-stack", B);
|
|
1951
|
+
var V = (e) => e === "direction" || e.startsWith("direction--"), _e = class extends B {
|
|
1607
1952
|
get direction() {
|
|
1608
1953
|
return "column";
|
|
1609
1954
|
}
|
|
1610
1955
|
set direction(e) {
|
|
1611
|
-
|
|
1956
|
+
a(this, "direction", e);
|
|
1612
1957
|
}
|
|
1613
1958
|
attributeChangedCallback(e, t, n) {
|
|
1614
|
-
|
|
1959
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1615
1960
|
}
|
|
1616
1961
|
};
|
|
1617
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
1618
|
-
var
|
|
1962
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", _e);
|
|
1963
|
+
var ve = class extends B {
|
|
1619
1964
|
get direction() {
|
|
1620
1965
|
return "row";
|
|
1621
1966
|
}
|
|
1622
1967
|
set direction(e) {
|
|
1623
|
-
|
|
1968
|
+
a(this, "direction", e);
|
|
1624
1969
|
}
|
|
1625
1970
|
attributeChangedCallback(e, t, n) {
|
|
1626
|
-
|
|
1971
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1627
1972
|
}
|
|
1628
1973
|
};
|
|
1629
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
1630
|
-
|
|
1631
|
-
|
|
1974
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ve);
|
|
1975
|
+
//#endregion
|
|
1976
|
+
//#region ../Layout/src/Spacer.ts
|
|
1977
|
+
var ye = class extends HTMLElement {
|
|
1632
1978
|
constructor() {
|
|
1633
1979
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1634
1980
|
}
|
|
@@ -1674,13 +2020,14 @@ var ue = class extends HTMLElement {
|
|
|
1674
2020
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1675
2021
|
}
|
|
1676
2022
|
};
|
|
1677
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
2023
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ye);
|
|
2024
|
+
//#endregion
|
|
2025
|
+
//#region ../Layout/src/Page.css?inline
|
|
2026
|
+
var be = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", H = new CSSStyleSheet();
|
|
2027
|
+
H.replaceSync(be);
|
|
2028
|
+
var xe = class extends v {
|
|
1682
2029
|
constructor() {
|
|
1683
|
-
super(
|
|
2030
|
+
super(H), this.template = () => `
|
|
1684
2031
|
<px-container border-radius="none" padding="none">
|
|
1685
2032
|
<px-vstack>
|
|
1686
2033
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1773,7 +2120,7 @@ var fe = class extends l {
|
|
|
1773
2120
|
</px-container>
|
|
1774
2121
|
</px-vstack>
|
|
1775
2122
|
</px-container>
|
|
1776
|
-
`,
|
|
2123
|
+
`, E(this.shadowRoot, this.template());
|
|
1777
2124
|
}
|
|
1778
2125
|
static get observedAttributes() {
|
|
1779
2126
|
return [
|
|
@@ -1842,7 +2189,7 @@ var fe = class extends l {
|
|
|
1842
2189
|
this.$bodyVStackContainer.setAttribute("gap", n);
|
|
1843
2190
|
break;
|
|
1844
2191
|
case "background-color":
|
|
1845
|
-
this.$bodyContainer.setAttribute("background-color",
|
|
2192
|
+
this.$bodyContainer.setAttribute("background-color", p.indexOf(n) > 0 ? n : "none");
|
|
1846
2193
|
break;
|
|
1847
2194
|
case "padding-vertical":
|
|
1848
2195
|
this.handlePaddingVerticalChange(n);
|
|
@@ -1860,9 +2207,10 @@ var fe = class extends l {
|
|
|
1860
2207
|
this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
|
|
1861
2208
|
}
|
|
1862
2209
|
};
|
|
1863
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
1864
|
-
|
|
1865
|
-
|
|
2210
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", xe);
|
|
2211
|
+
//#endregion
|
|
2212
|
+
//#region ../Icon/common/src/IconSet.ts
|
|
2213
|
+
var Se = class extends HTMLElement {
|
|
1866
2214
|
constructor() {
|
|
1867
2215
|
super();
|
|
1868
2216
|
}
|
|
@@ -1896,8 +2244,8 @@ var pe = class extends HTMLElement {
|
|
|
1896
2244
|
e && e.remove();
|
|
1897
2245
|
}
|
|
1898
2246
|
};
|
|
1899
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
1900
|
-
var
|
|
2247
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", Se);
|
|
2248
|
+
var Ce = [
|
|
1901
2249
|
"Inherit",
|
|
1902
2250
|
"Brand",
|
|
1903
2251
|
"Accent",
|
|
@@ -1911,11 +2259,11 @@ var me = [
|
|
|
1911
2259
|
"StateHover",
|
|
1912
2260
|
"StateActive",
|
|
1913
2261
|
"StateDisabled"
|
|
1914
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
1915
|
-
|
|
1916
|
-
var
|
|
2262
|
+
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)), we = ":host{flex-direction:column;justify-content:center;display:inline-flex}svg{font-size:var(--px-size-icon-s);width:1em;height:1em;color:var(--px-color-icon-accent-default);line-height:1}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.accent{color:var(--px-color-icon-accent-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .accent{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", U = new CSSStyleSheet();
|
|
2263
|
+
U.replaceSync(we);
|
|
2264
|
+
var Te = class e extends v {
|
|
1917
2265
|
static {
|
|
1918
|
-
this.template =
|
|
2266
|
+
this.template = T("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
1919
2267
|
}
|
|
1920
2268
|
#e = null;
|
|
1921
2269
|
#t;
|
|
@@ -1932,7 +2280,7 @@ var Y = class e extends l {
|
|
|
1932
2280
|
];
|
|
1933
2281
|
}
|
|
1934
2282
|
constructor(...t) {
|
|
1935
|
-
super(...t,
|
|
2283
|
+
super(...t, U), E(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
1936
2284
|
}
|
|
1937
2285
|
attributeChangedCallback(e, t, n) {
|
|
1938
2286
|
if (t !== n) switch (e) {
|
|
@@ -1940,10 +2288,10 @@ var Y = class e extends l {
|
|
|
1940
2288
|
this.updateName(t, n);
|
|
1941
2289
|
break;
|
|
1942
2290
|
case "size":
|
|
1943
|
-
this.updateAttribute(e, t, n,
|
|
2291
|
+
this.updateAttribute(e, t, n, ie);
|
|
1944
2292
|
break;
|
|
1945
2293
|
case "color":
|
|
1946
|
-
this.updateAttribute(e, t, n,
|
|
2294
|
+
this.updateAttribute(e, t, n, Ce);
|
|
1947
2295
|
break;
|
|
1948
2296
|
case "disabled":
|
|
1949
2297
|
this.color = "state-disabled";
|
|
@@ -1957,11 +2305,17 @@ var Y = class e extends l {
|
|
|
1957
2305
|
this.role = "img";
|
|
1958
2306
|
let e = document.querySelectorAll("px-icon-set");
|
|
1959
2307
|
e || console.log("<px-icon-set> component not found");
|
|
1960
|
-
for (let t of e)
|
|
2308
|
+
for (let t of e) {
|
|
2309
|
+
if (!t.getAttribute("name") || !t.getAttribute("src")) {
|
|
2310
|
+
console.error("Icon name or src not found");
|
|
2311
|
+
continue;
|
|
2312
|
+
}
|
|
2313
|
+
t.getAttribute("name") === this.from && t.getAttribute("type") !== "font" && (this.#e = t.getAttribute("src"), this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${this.name}`));
|
|
2314
|
+
}
|
|
1961
2315
|
!this.ariaLabel && this.#t && (this.#t.ariaHidden = "true", this.ariaHidden = "true"), this.parentElement?.localName === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
|
|
1962
2316
|
}
|
|
1963
|
-
updateAttribute(e, t, n,
|
|
1964
|
-
t !== null && t !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${t}`) : this.$el.classList.toggle(t)), n !== null && n !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${n}`) : this.$el.classList.toggle(n)), this.checkName(
|
|
2317
|
+
updateAttribute(e, t, n, i) {
|
|
2318
|
+
t !== null && t !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${t}`) : this.$el.classList.toggle(t)), n !== null && n !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${n}`) : this.$el.classList.toggle(n)), this.checkName(i, n) || r(`${n} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`);
|
|
1965
2319
|
}
|
|
1966
2320
|
updateName(e, t) {
|
|
1967
2321
|
this.#e && this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${t}`);
|
|
@@ -1973,82 +2327,176 @@ var Y = class e extends l {
|
|
|
1973
2327
|
return this.getAttribute("name");
|
|
1974
2328
|
}
|
|
1975
2329
|
set name(e) {
|
|
1976
|
-
|
|
2330
|
+
a(this, "name", e);
|
|
1977
2331
|
}
|
|
1978
2332
|
get size() {
|
|
1979
2333
|
return this.getAttribute("size");
|
|
1980
2334
|
}
|
|
1981
2335
|
set size(e) {
|
|
1982
|
-
|
|
2336
|
+
a(this, "size", e);
|
|
1983
2337
|
}
|
|
1984
2338
|
get color() {
|
|
1985
2339
|
return this.getAttribute("color");
|
|
1986
2340
|
}
|
|
1987
2341
|
set color(e) {
|
|
1988
|
-
|
|
2342
|
+
a(this, "color", e);
|
|
1989
2343
|
}
|
|
1990
2344
|
get arialabel() {
|
|
1991
2345
|
return this.getAttribute("aria-label");
|
|
1992
2346
|
}
|
|
1993
2347
|
set arialabel(e) {
|
|
1994
|
-
|
|
2348
|
+
a(this, "aria-label", e);
|
|
1995
2349
|
}
|
|
1996
2350
|
get inverted() {
|
|
1997
2351
|
return this.hasAttribute("inverted");
|
|
1998
2352
|
}
|
|
1999
2353
|
set inverted(e) {
|
|
2000
|
-
|
|
2354
|
+
o(this, "inverted", e);
|
|
2001
2355
|
}
|
|
2002
2356
|
get from() {
|
|
2003
2357
|
return this.getAttribute("from");
|
|
2004
2358
|
}
|
|
2005
2359
|
set from(e) {
|
|
2006
|
-
|
|
2360
|
+
a(this, "from", e);
|
|
2361
|
+
}
|
|
2362
|
+
get disabled() {
|
|
2363
|
+
return this.hasAttribute("disabled");
|
|
2364
|
+
}
|
|
2365
|
+
set disabled(e) {
|
|
2366
|
+
o(this, "disabled", e);
|
|
2367
|
+
}
|
|
2368
|
+
};
|
|
2369
|
+
customElements.get("px-icon") || customElements.define("px-icon", Te);
|
|
2370
|
+
//#endregion
|
|
2371
|
+
//#region ../Span/src/span.css?inline
|
|
2372
|
+
var Ee = "span,::slotted(span){font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l)}:host([inverted]) span,:host([inverted]) ::slotted(span){color:var(--px-color-text-neutral-inverted)}:host([strikethrough]) span{text-decoration:line-through}span.link{text-decoration:underline}@media screen and (width>=48rem){span,::slotted(span){font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){span,::slotted(span){font-size:var(--px-text-size-body-m-laptop)}}", De = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media screen and (width>=48rem){.font-size-body-l{font-size:var(--px-text-size-body-l-tablet)}.font-size-body-m{font-size:var(--px-text-size-body-m-tablet)}.font-size-body-s{font-size:var(--px-text-size-body-s-tablet)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-tablet)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-tablet)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-tablet)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-tablet)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-tablet)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-tablet)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-tablet)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-tablet)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-tablet)}.font-size-link-m{font-size:var(--px-text-size-link-m-tablet)}.font-size-link-s{font-size:var(--px-text-size-link-s-tablet)}}@media screen and (width>=64.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-laptop)}.font-size-body-m{font-size:var(--px-text-size-body-m-laptop)}.font-size-body-s{font-size:var(--px-text-size-body-s-laptop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-laptop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-laptop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-laptop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-laptop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-laptop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-laptop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-laptop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-laptop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-laptop)}.font-size-link-m{font-size:var(--px-text-size-link-m-laptop)}.font-size-link-s{font-size:var(--px-text-size-link-s-laptop)}}@media screen and (width>=90.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", W = new CSSStyleSheet(), G = new CSSStyleSheet();
|
|
2373
|
+
W.replaceSync(Ee), G.replaceSync(De);
|
|
2374
|
+
var K = class e extends ue {
|
|
2375
|
+
static {
|
|
2376
|
+
this.template = T("<span><slot></slot></span>");
|
|
2377
|
+
}
|
|
2378
|
+
static {
|
|
2379
|
+
this.nativeName = "span";
|
|
2380
|
+
}
|
|
2381
|
+
static {
|
|
2382
|
+
this.nativeAttributes = {};
|
|
2383
|
+
}
|
|
2384
|
+
constructor() {
|
|
2385
|
+
super(W, G), E(this.shadowRoot, e.template);
|
|
2386
|
+
}
|
|
2387
|
+
static get observedAttributes() {
|
|
2388
|
+
return [
|
|
2389
|
+
...super.observedAttributes,
|
|
2390
|
+
"color",
|
|
2391
|
+
"font-size",
|
|
2392
|
+
"font-weight",
|
|
2393
|
+
"inverted",
|
|
2394
|
+
"disabled",
|
|
2395
|
+
"strikethrough"
|
|
2396
|
+
];
|
|
2397
|
+
}
|
|
2398
|
+
attributeChangedCallback(e, t, n) {
|
|
2399
|
+
if (t !== n) switch (e) {
|
|
2400
|
+
case "color":
|
|
2401
|
+
this.updateTypography(e, t, n, u);
|
|
2402
|
+
break;
|
|
2403
|
+
case "font-size":
|
|
2404
|
+
this.updateTypography(e, t, n, l);
|
|
2405
|
+
break;
|
|
2406
|
+
case "font-weight":
|
|
2407
|
+
this.updateTypography(e, t, n, re);
|
|
2408
|
+
break;
|
|
2409
|
+
case "disabled":
|
|
2410
|
+
this.color = "state-disabled";
|
|
2411
|
+
break;
|
|
2412
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
updateTypography(e, t, n, i) {
|
|
2416
|
+
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`${e}-${t}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${e}-${n}`), this.checkName(i, n) || r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
2417
|
+
}
|
|
2418
|
+
get color() {
|
|
2419
|
+
return this.getAttribute("color");
|
|
2420
|
+
}
|
|
2421
|
+
set color(e) {
|
|
2422
|
+
this._updateAttribute("color", e);
|
|
2423
|
+
}
|
|
2424
|
+
get fontsize() {
|
|
2425
|
+
return this.getAttribute("font-size");
|
|
2426
|
+
}
|
|
2427
|
+
set fontsize(e) {
|
|
2428
|
+
this._updateAttribute("font-size", e);
|
|
2429
|
+
}
|
|
2430
|
+
get fontweight() {
|
|
2431
|
+
return this.getAttribute("font-weight");
|
|
2432
|
+
}
|
|
2433
|
+
set fontweight(e) {
|
|
2434
|
+
this._updateAttribute("font-weight", e);
|
|
2435
|
+
}
|
|
2436
|
+
get inverted() {
|
|
2437
|
+
return this.hasAttribute("inverted");
|
|
2438
|
+
}
|
|
2439
|
+
set inverted(e) {
|
|
2440
|
+
this._updateBooleanAttribute("inverted", e);
|
|
2441
|
+
}
|
|
2442
|
+
get strikethrough() {
|
|
2443
|
+
return this.hasAttribute("strikethrough");
|
|
2444
|
+
}
|
|
2445
|
+
set strikethrough(e) {
|
|
2446
|
+
this._updateBooleanAttribute("strikethrough", e);
|
|
2007
2447
|
}
|
|
2008
2448
|
get disabled() {
|
|
2009
2449
|
return this.hasAttribute("disabled");
|
|
2010
2450
|
}
|
|
2011
2451
|
set disabled(e) {
|
|
2012
|
-
|
|
2452
|
+
this._updateBooleanAttribute("disabled", e);
|
|
2013
2453
|
}
|
|
2014
2454
|
};
|
|
2015
|
-
customElements.get("px-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2455
|
+
customElements.get("px-span") || customElements.define("px-span", K);
|
|
2456
|
+
//#endregion
|
|
2457
|
+
//#region src/toaster.css?inline
|
|
2458
|
+
var Oe = ":host{display:block}:host *{box-sizing:border-box}dialog,div[popover=manual]{box-shadow:none;margin:auto var(--px-spacing-s-mobile) var(--px-spacing-s-mobile) var(--px-spacing-s-mobile);box-sizing:border-box;max-width:30rem;width:calc(100% - var(--px-spacing-s-mobile) * 2);outline-color:var(--px-color-border-focus-outline-default);outline-width:var(--px-focus-outline-mobile);background:0 0;border:0;border-radius:0;padding:0;animation:.3s ease-out forwards modalIn}:is(dialog,div[popover=manual]) px-container{width:100%}:is(dialog,div[popover=manual]):focus-visible{outline-offset:var(--px-focus-offset-mobile);outline-style:solid}:is(dialog,div[popover=manual])[open]{justify-content:center;display:flex}::slotted([slot=label]){font-size:var(--px-text-size-label-l-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-inverted);margin-top:3px}.toaster-message{flex-grow:1}@media screen and (width>=32rem){dialog,div[popover=manual]{margin:auto auto var(--px-spacing-s-mobile) auto;width:30rem}}@media screen and (width>=48rem){dialog,div[popover=manual]{margin:auto auto var(--px-spacing-s-tablet) auto}::slotted([slot=label]){font-size:var(--px-text-size-label-l-tablet);margin-top:0}}@media screen and (width>=64.0625rem){dialog,div[popover=manual]{margin:auto auto var(--px-spacing-s-laptop) auto}::slotted([slot=label]){font-size:var(--px-text-size-label-l-laptop)}}@media screen and (width>=90.0625rem){dialog,div[popover=manual]{margin:auto auto var(--px-spacing-s-desktop) auto}::slotted([slot=label]){font-size:var(--px-text-size-label-l-desktop)}}:host([inverted]) dialog,:host([inverted]) div[popover=manual]{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) ::slotted([slot=label]){color:var(--px-color-text-neutral-default)}", q = new CSSStyleSheet();
|
|
2459
|
+
q.replaceSync(Oe);
|
|
2460
|
+
var J = [
|
|
2020
2461
|
"",
|
|
2021
2462
|
"info",
|
|
2022
2463
|
"success",
|
|
2023
2464
|
"error",
|
|
2024
2465
|
"warning"
|
|
2025
|
-
],
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2466
|
+
], ke = "px.lavender.toaster.hide";
|
|
2467
|
+
function Y(e, t = !1) {
|
|
2468
|
+
let n = e === "dialog", r = `<px-hstack gap="s" align-items="flex-start" class="toaster-content">
|
|
2469
|
+
<slot name="visual"></slot>
|
|
2470
|
+
<div class="toaster-message" ${n ? "id=\"toaster-message\"" : ""}>
|
|
2471
|
+
<px-span shown--sr=""></px-span>
|
|
2472
|
+
<slot name="label"></slot>
|
|
2473
|
+
</div>
|
|
2474
|
+
<slot name="close-button"></slot>
|
|
2475
|
+
</px-hstack>`;
|
|
2476
|
+
return T(`<${e} popover="manual" ${n ? "aria-labelledby=\"toaster-message\"" : ""}>
|
|
2477
|
+
<px-container padding="s" background-color="surface-dark">
|
|
2478
|
+
${t ? `<px-vstack gap="s">${r}<px-hstack gap="s"><slot name="actions"></slot></px-hstack></px-vstack>` : r}
|
|
2479
|
+
</px-container>
|
|
2480
|
+
</${e}>`);
|
|
2481
|
+
}
|
|
2482
|
+
var X = class extends HTMLElement {
|
|
2029
2483
|
constructor() {
|
|
2030
|
-
super(), this.popoverButtonsCleanups = [], this.onHideClick = () => this.hide(), this.onShowClick = () => this.show()
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
this.isHovered = !1, this.resumeAutoHideTimeout();
|
|
2034
|
-
}, this.onFocusIn = (e) => {
|
|
2035
|
-
e.target !== this.$dialog && (this.isFocused = !0, this.pauseAutoHideTimeout());
|
|
2036
|
-
}, this.onFocusOut = (e) => {
|
|
2037
|
-
let t = e.relatedTarget;
|
|
2038
|
-
this.isFocused = !!t && t !== this.$dialog && (this.contains(t) || this.$dialog?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2039
|
-
};
|
|
2040
|
-
let t = this.attachShadow({ mode: "open" });
|
|
2041
|
-
t && (k(t, e.template), t.adoptedStyleSheets = [X]);
|
|
2484
|
+
super(), this.popoverButtonsCleanups = [], this.onHideClick = () => this.hide(), this.onShowClick = () => this.show();
|
|
2485
|
+
let e = this.attachShadow({ mode: "open" });
|
|
2486
|
+
E(e, this.constructor.template), e.adoptedStyleSheets = [q];
|
|
2042
2487
|
}
|
|
2043
2488
|
connectedCallback() {
|
|
2044
|
-
this.addEventListenersToHideButtons(), this
|
|
2489
|
+
this.addEventListenersToHideButtons(), this.hasAttribute("open") && this.show();
|
|
2490
|
+
}
|
|
2491
|
+
disconnectedCallback() {
|
|
2492
|
+
this.removePopoverButtonListeners();
|
|
2045
2493
|
}
|
|
2046
2494
|
static get observedAttributes() {
|
|
2047
2495
|
return [
|
|
2048
2496
|
"id",
|
|
2049
2497
|
"open",
|
|
2050
2498
|
"status",
|
|
2051
|
-
"
|
|
2499
|
+
"status-label",
|
|
2052
2500
|
"inverted"
|
|
2053
2501
|
];
|
|
2054
2502
|
}
|
|
@@ -2060,44 +2508,27 @@ var Z = [
|
|
|
2060
2508
|
case "open":
|
|
2061
2509
|
this.isConnected && this.handleOpenChange();
|
|
2062
2510
|
break;
|
|
2063
|
-
case "duration":
|
|
2064
|
-
this.remainingDuration = this.duration, this.startAutoHideTimeout();
|
|
2065
|
-
break;
|
|
2066
2511
|
case "status":
|
|
2067
|
-
this.handleStatusChange(n,
|
|
2512
|
+
this.handleStatusChange(n, J), this.handleStatusLabelChange();
|
|
2513
|
+
break;
|
|
2514
|
+
case "status-label":
|
|
2515
|
+
this.handleStatusLabelChange();
|
|
2068
2516
|
break;
|
|
2069
2517
|
case "inverted": this.handleInvertedChange();
|
|
2070
2518
|
}
|
|
2071
2519
|
}
|
|
2072
|
-
disconnectedCallback() {
|
|
2073
|
-
this.removePopoverButtonListeners(), this.clearAutoHideTimeout(), this.isVisible = !1, this.$dialog?.removeEventListener("pointerenter", this.onPointerEnter), this.$dialog?.removeEventListener("pointerleave", this.onPointerLeave), this.$dialog?.removeEventListener("focusin", this.onFocusIn), this.$dialog?.removeEventListener("focusout", this.onFocusOut);
|
|
2074
|
-
}
|
|
2075
2520
|
handleOpenChange() {
|
|
2076
2521
|
this.hasAttribute("open") ? this.show() : this.hide();
|
|
2077
2522
|
}
|
|
2078
2523
|
show() {
|
|
2079
|
-
this.$
|
|
2524
|
+
this.$popover?.showPopover();
|
|
2080
2525
|
}
|
|
2081
2526
|
hide() {
|
|
2082
|
-
this
|
|
2527
|
+
this.$popover?.hidePopover(), this.dispatchEvent(new CustomEvent(ke, {
|
|
2083
2528
|
bubbles: !0,
|
|
2084
2529
|
composed: !0
|
|
2085
2530
|
}));
|
|
2086
2531
|
}
|
|
2087
|
-
startAutoHideTimeout() {
|
|
2088
|
-
this.clearAutoHideTimeout(), !this.isVisible || this.isHovered || this.isFocused || this.remainingDuration === null || this.remainingDuration <= 0 || (this.timeoutStartedAt = Date.now(), this.autoHideTimeoutId = setTimeout(() => {
|
|
2089
|
-
this.remainingDuration = 0, this.hide();
|
|
2090
|
-
}, this.remainingDuration));
|
|
2091
|
-
}
|
|
2092
|
-
pauseAutoHideTimeout() {
|
|
2093
|
-
this.timeoutStartedAt !== null && this.remainingDuration !== null && (this.remainingDuration = Math.max(0, this.remainingDuration - (Date.now() - this.timeoutStartedAt))), this.clearAutoHideTimeout();
|
|
2094
|
-
}
|
|
2095
|
-
resumeAutoHideTimeout() {
|
|
2096
|
-
!this.isHovered && !this.isFocused && this.startAutoHideTimeout();
|
|
2097
|
-
}
|
|
2098
|
-
clearAutoHideTimeout() {
|
|
2099
|
-
this.autoHideTimeoutId !== null && (clearTimeout(this.autoHideTimeoutId), this.autoHideTimeoutId = null), this.timeoutStartedAt = null;
|
|
2100
|
-
}
|
|
2101
2532
|
showPopover() {
|
|
2102
2533
|
this.show();
|
|
2103
2534
|
}
|
|
@@ -2105,7 +2536,7 @@ var Z = [
|
|
|
2105
2536
|
this.hide();
|
|
2106
2537
|
}
|
|
2107
2538
|
handleInvertedChange() {
|
|
2108
|
-
this
|
|
2539
|
+
this.$pxContainer?.setAttribute("background-color", this.inverted ? "surface-light" : "surface-dark"), this.$statusIcon?.toggleAttribute("inverted", !this.inverted);
|
|
2109
2540
|
}
|
|
2110
2541
|
addEventListenersToHideButtons() {
|
|
2111
2542
|
this.removePopoverButtonListeners(), this.id && document.querySelectorAll(`[popovertarget="${this.id}"]`).forEach((e) => {
|
|
@@ -2116,27 +2547,36 @@ var Z = [
|
|
|
2116
2547
|
this.popoverButtonsCleanups.forEach((e) => e()), this.popoverButtonsCleanups = [];
|
|
2117
2548
|
}
|
|
2118
2549
|
handleStatusChange(e, t) {
|
|
2119
|
-
if (!
|
|
2120
|
-
|
|
2550
|
+
if (!e) {
|
|
2551
|
+
this.$statusIcon?.remove();
|
|
2552
|
+
return;
|
|
2553
|
+
}
|
|
2554
|
+
if (!y(t, e)) {
|
|
2555
|
+
r(`"${e}" is not a valid status value for ${this.tagName.toLowerCase()}.
|
|
2121
2556
|
Allowed values are: "${t.join("\", \"")}".`);
|
|
2122
2557
|
return;
|
|
2123
2558
|
}
|
|
2124
|
-
this.$
|
|
2125
|
-
|
|
2126
|
-
n.setAttribute("name", this.getIcon(e)), n.setAttribute("from", "lavender"), n.setAttribute("color", `${e === "info" ? "brand" : `purpose-${e}`}`), n.setAttribute("size", "m"), this.inverted || n.setAttribute("inverted", ""), this.$slotVisual?.appendChild(n);
|
|
2559
|
+
let n = this.$statusIcon ?? document.createElement("px-icon");
|
|
2560
|
+
n.setAttribute("name", this.getIcon(e)), n.setAttribute("from", "lavender"), n.setAttribute("color", e === "info" ? "brand" : `purpose-${e}`), n.setAttribute("size", "m"), n.toggleAttribute("inverted", !this.inverted), this.$slotVisual?.appendChild(n);
|
|
2127
2561
|
}
|
|
2128
|
-
|
|
2129
|
-
|
|
2562
|
+
handleStatusLabelChange() {
|
|
2563
|
+
this.$statusLabel && (this.$statusLabel.textContent = this.status && J.includes(this.status) ? this.statusLabel : "");
|
|
2130
2564
|
}
|
|
2131
2565
|
getIcon(e) {
|
|
2132
2566
|
return e === "success" ? "checkmark_fill" : e === "warning" ? "exclamation_mark_fill" : e === "error" ? "minus_fill" : "information_fill";
|
|
2133
2567
|
}
|
|
2134
|
-
get $
|
|
2135
|
-
return this.shadowRoot?.querySelector("
|
|
2568
|
+
get $popover() {
|
|
2569
|
+
return this.shadowRoot?.querySelector("[popover=\"manual\"]");
|
|
2136
2570
|
}
|
|
2137
2571
|
get $slotVisual() {
|
|
2138
2572
|
return this.shadowRoot?.querySelector("slot[name=\"visual\"]");
|
|
2139
2573
|
}
|
|
2574
|
+
get $statusLabel() {
|
|
2575
|
+
return this.$message?.querySelector("px-span[shown--sr]");
|
|
2576
|
+
}
|
|
2577
|
+
get $statusIcon() {
|
|
2578
|
+
return this.$slotVisual?.querySelector("px-icon");
|
|
2579
|
+
}
|
|
2140
2580
|
get $message() {
|
|
2141
2581
|
return this.shadowRoot?.querySelector(".toaster-message");
|
|
2142
2582
|
}
|
|
@@ -2147,28 +2587,97 @@ var Z = [
|
|
|
2147
2587
|
return this.getAttribute("status") || "";
|
|
2148
2588
|
}
|
|
2149
2589
|
set status(e) {
|
|
2150
|
-
|
|
2590
|
+
a(this, "status", e);
|
|
2591
|
+
}
|
|
2592
|
+
get statusLabel() {
|
|
2593
|
+
return this.getAttribute("status-label") || this.status;
|
|
2594
|
+
}
|
|
2595
|
+
set statusLabel(e) {
|
|
2596
|
+
a(this, "status-label", e);
|
|
2151
2597
|
}
|
|
2152
2598
|
get open() {
|
|
2153
2599
|
return this.hasAttribute("open");
|
|
2154
2600
|
}
|
|
2155
2601
|
set open(e) {
|
|
2156
|
-
|
|
2602
|
+
o(this, "open", e);
|
|
2603
|
+
}
|
|
2604
|
+
get inverted() {
|
|
2605
|
+
return this.hasAttribute("inverted");
|
|
2606
|
+
}
|
|
2607
|
+
set inverted(e) {
|
|
2608
|
+
o(this, "inverted", e);
|
|
2609
|
+
}
|
|
2610
|
+
}, Z = 0, Q = class extends X {
|
|
2611
|
+
constructor(...e) {
|
|
2612
|
+
super(...e), this.autoHideTimeoutId = null, this.timeoutStartedAt = null, this.remainingDuration = null, this.isVisible = !1, this.isHovered = !1, this.isFocused = !1, this.onPointerEnter = () => {
|
|
2613
|
+
this.isHovered = !0, this.pauseAutoHideTimeout();
|
|
2614
|
+
}, this.onPointerLeave = () => {
|
|
2615
|
+
this.isHovered = !1, this.resumeAutoHideTimeout();
|
|
2616
|
+
}, this.onFocusIn = (e) => {
|
|
2617
|
+
e.target !== this.$popover && (this.isFocused = !0, this.pauseAutoHideTimeout());
|
|
2618
|
+
}, this.onFocusOut = (e) => {
|
|
2619
|
+
let t = e.relatedTarget;
|
|
2620
|
+
this.isFocused = !!t && t !== this.$popover && (this.contains(t) || this.$popover?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2623
|
+
static {
|
|
2624
|
+
this.template = Y("div");
|
|
2625
|
+
}
|
|
2626
|
+
connectedCallback() {
|
|
2627
|
+
this.$popover?.addEventListener("pointerenter", this.onPointerEnter), this.$popover?.addEventListener("pointerleave", this.onPointerLeave), this.$popover?.addEventListener("focusin", this.onFocusIn), this.$popover?.addEventListener("focusout", this.onFocusOut), super.connectedCallback();
|
|
2628
|
+
}
|
|
2629
|
+
static get observedAttributes() {
|
|
2630
|
+
return [...super.observedAttributes, "duration"];
|
|
2631
|
+
}
|
|
2632
|
+
attributeChangedCallback(e, t, n) {
|
|
2633
|
+
super.attributeChangedCallback(e, t, n), e === "duration" && t !== n && (this.remainingDuration = this.duration, this.startAutoHideTimeout());
|
|
2634
|
+
}
|
|
2635
|
+
disconnectedCallback() {
|
|
2636
|
+
super.disconnectedCallback(), this.clearAutoHideTimeout(), this.isVisible = !1, this.$popover?.removeEventListener("pointerenter", this.onPointerEnter), this.$popover?.removeEventListener("pointerleave", this.onPointerLeave), this.$popover?.removeEventListener("focusin", this.onFocusIn), this.$popover?.removeEventListener("focusout", this.onFocusOut);
|
|
2637
|
+
}
|
|
2638
|
+
show() {
|
|
2639
|
+
super.show(), this.isVisible = !0, this.remainingDuration = this.duration, this.startAutoHideTimeout();
|
|
2640
|
+
}
|
|
2641
|
+
hide() {
|
|
2642
|
+
this.isVisible = !1, this.isHovered = !1, this.isFocused = !1, this.clearAutoHideTimeout(), this.remainingDuration = null, super.hide();
|
|
2643
|
+
}
|
|
2644
|
+
startAutoHideTimeout() {
|
|
2645
|
+
this.clearAutoHideTimeout(), !(!this.isVisible || this.isHovered || this.isFocused || this.remainingDuration === null || this.remainingDuration <= 0) && (this.timeoutStartedAt = Date.now(), this.autoHideTimeoutId = setTimeout(() => {
|
|
2646
|
+
this.remainingDuration = 0, this.hide();
|
|
2647
|
+
}, this.remainingDuration));
|
|
2648
|
+
}
|
|
2649
|
+
pauseAutoHideTimeout() {
|
|
2650
|
+
this.timeoutStartedAt !== null && this.remainingDuration !== null && (this.remainingDuration = Math.max(0, this.remainingDuration - (Date.now() - this.timeoutStartedAt))), this.clearAutoHideTimeout();
|
|
2651
|
+
}
|
|
2652
|
+
resumeAutoHideTimeout() {
|
|
2653
|
+
!this.isHovered && !this.isFocused && this.startAutoHideTimeout();
|
|
2654
|
+
}
|
|
2655
|
+
clearAutoHideTimeout() {
|
|
2656
|
+
this.autoHideTimeoutId !== null && (clearTimeout(this.autoHideTimeoutId), this.autoHideTimeoutId = null), this.timeoutStartedAt = null;
|
|
2657
|
+
}
|
|
2658
|
+
get $popover() {
|
|
2659
|
+
return this.shadowRoot?.querySelector("div[popover=\"manual\"]");
|
|
2157
2660
|
}
|
|
2158
2661
|
get duration() {
|
|
2159
|
-
if (!this.hasAttribute("duration")) return
|
|
2662
|
+
if (!this.hasAttribute("duration")) return Z;
|
|
2160
2663
|
let e = Number(this.getAttribute("duration"));
|
|
2161
|
-
return Number.isNaN(e) ?
|
|
2664
|
+
return Number.isNaN(e) ? Z : e;
|
|
2162
2665
|
}
|
|
2163
2666
|
set duration(e) {
|
|
2164
|
-
|
|
2667
|
+
a(this, "duration", e);
|
|
2165
2668
|
}
|
|
2166
|
-
|
|
2167
|
-
|
|
2669
|
+
};
|
|
2670
|
+
customElements.get("px-toaster") || customElements.define("px-toaster", Q);
|
|
2671
|
+
//#endregion
|
|
2672
|
+
//#region src/ToasterActionable.ts
|
|
2673
|
+
var $ = class extends X {
|
|
2674
|
+
static {
|
|
2675
|
+
this.template = Y("dialog", !0);
|
|
2168
2676
|
}
|
|
2169
|
-
|
|
2170
|
-
|
|
2677
|
+
get $popover() {
|
|
2678
|
+
return this.shadowRoot?.querySelector("dialog[popover=\"manual\"]");
|
|
2171
2679
|
}
|
|
2172
2680
|
};
|
|
2173
|
-
customElements.get("px-toaster") || customElements.define("px-toaster", $);
|
|
2174
|
-
|
|
2681
|
+
customElements.get("px-toaster-actionable") || customElements.define("px-toaster-actionable", $);
|
|
2682
|
+
//#endregion
|
|
2683
|
+
export { Q as Toaster, $ as ToasterActionable, J as toasterStatusValues };
|