@proximus/lavender-toaster 2.0.0-alpha.230 → 2.0.0-alpha.232
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 +635 -376
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
//#region ../
|
|
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 = {
|
|
1
|
+
//#region ../common/src/debug.ts
|
|
2
|
+
var e = {
|
|
3
3
|
BASE_URL: "/",
|
|
4
4
|
DEV: !0,
|
|
5
5
|
MODE: "production",
|
|
6
6
|
PROD: !1,
|
|
7
7
|
SSR: !1,
|
|
8
8
|
VITE_COMPONENT_DEBUG: "true"
|
|
9
|
-
},
|
|
10
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
11
|
-
function
|
|
12
|
-
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
13
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
14
|
+
function r(e) {
|
|
15
|
+
n() && console.error(e);
|
|
16
16
|
}
|
|
17
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
17
|
+
typeof window < "u" && (window.isComponentDebug = n);
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../common/src/common.css?inline
|
|
20
|
-
var
|
|
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
21
|
//#endregion
|
|
22
22
|
//#region ../common/src/attributeSetters.ts
|
|
23
|
-
function
|
|
23
|
+
function a(e, t, n) {
|
|
24
24
|
n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function o(e, t, n) {
|
|
27
27
|
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region ../common/src/values.ts
|
|
31
|
-
var
|
|
31
|
+
var s = [
|
|
32
32
|
"",
|
|
33
33
|
"default",
|
|
34
34
|
"auto",
|
|
@@ -39,21 +39,21 @@ var c = [
|
|
|
39
39
|
"center",
|
|
40
40
|
"baseline",
|
|
41
41
|
"stretch"
|
|
42
|
-
],
|
|
42
|
+
], ee = [
|
|
43
43
|
"",
|
|
44
44
|
"default",
|
|
45
45
|
"start",
|
|
46
46
|
"end",
|
|
47
47
|
"center",
|
|
48
48
|
"stretch"
|
|
49
|
-
],
|
|
49
|
+
], te = [
|
|
50
50
|
"",
|
|
51
51
|
"default",
|
|
52
52
|
"start",
|
|
53
53
|
"end",
|
|
54
54
|
"center",
|
|
55
55
|
"stretch"
|
|
56
|
-
],
|
|
56
|
+
], ne = [
|
|
57
57
|
"",
|
|
58
58
|
"1",
|
|
59
59
|
"2",
|
|
@@ -67,7 +67,7 @@ var c = [
|
|
|
67
67
|
"10",
|
|
68
68
|
"11",
|
|
69
69
|
"12"
|
|
70
|
-
],
|
|
70
|
+
], c = [
|
|
71
71
|
"",
|
|
72
72
|
"-1",
|
|
73
73
|
"0",
|
|
@@ -83,7 +83,46 @@ var c = [
|
|
|
83
83
|
"10",
|
|
84
84
|
"11",
|
|
85
85
|
"12"
|
|
86
|
-
],
|
|
86
|
+
], l = [
|
|
87
|
+
"",
|
|
88
|
+
"default",
|
|
89
|
+
"inherit",
|
|
90
|
+
"body-l",
|
|
91
|
+
"body-m",
|
|
92
|
+
"body-s",
|
|
93
|
+
"body-xs",
|
|
94
|
+
"heading-5xl",
|
|
95
|
+
"heading-4xl",
|
|
96
|
+
"heading-3xl",
|
|
97
|
+
"heading-2xl",
|
|
98
|
+
"heading-xl",
|
|
99
|
+
"heading-l",
|
|
100
|
+
"heading-m",
|
|
101
|
+
"heading-s"
|
|
102
|
+
], u = [
|
|
103
|
+
"",
|
|
104
|
+
"default",
|
|
105
|
+
"inherit",
|
|
106
|
+
"brand",
|
|
107
|
+
"neutral",
|
|
108
|
+
"dimmed",
|
|
109
|
+
"purpose-success",
|
|
110
|
+
"purpose-warning",
|
|
111
|
+
"purpose-error",
|
|
112
|
+
"purpose-unlimited",
|
|
113
|
+
"purpose-promo",
|
|
114
|
+
"state-hover",
|
|
115
|
+
"state-active",
|
|
116
|
+
"state-disabled"
|
|
117
|
+
], re = [
|
|
118
|
+
"",
|
|
119
|
+
"default",
|
|
120
|
+
"inherit",
|
|
121
|
+
"body",
|
|
122
|
+
"title",
|
|
123
|
+
"title-large",
|
|
124
|
+
"subtitle"
|
|
125
|
+
], ie = [
|
|
87
126
|
"",
|
|
88
127
|
"default",
|
|
89
128
|
...[
|
|
@@ -93,7 +132,7 @@ var c = [
|
|
|
93
132
|
"L",
|
|
94
133
|
"Xl"
|
|
95
134
|
].map((e) => e.toLowerCase())
|
|
96
|
-
],
|
|
135
|
+
], d = [
|
|
97
136
|
"",
|
|
98
137
|
"none",
|
|
99
138
|
"3xs",
|
|
@@ -103,18 +142,18 @@ var c = [
|
|
|
103
142
|
"m",
|
|
104
143
|
"l",
|
|
105
144
|
"xl"
|
|
106
|
-
],
|
|
145
|
+
], ae = [
|
|
107
146
|
"",
|
|
108
147
|
"none",
|
|
109
148
|
"s",
|
|
110
149
|
"m",
|
|
111
150
|
"l"
|
|
112
|
-
],
|
|
151
|
+
], oe = [
|
|
113
152
|
"",
|
|
114
153
|
"none",
|
|
115
154
|
"main",
|
|
116
155
|
"pill"
|
|
117
|
-
],
|
|
156
|
+
], f = [
|
|
118
157
|
"none",
|
|
119
158
|
"main",
|
|
120
159
|
"brand",
|
|
@@ -125,7 +164,7 @@ var c = [
|
|
|
125
164
|
"purpose-warning",
|
|
126
165
|
"purpose-error",
|
|
127
166
|
"purpose-unlimited"
|
|
128
|
-
],
|
|
167
|
+
], se = [
|
|
129
168
|
"",
|
|
130
169
|
"all",
|
|
131
170
|
"top",
|
|
@@ -134,19 +173,19 @@ var c = [
|
|
|
134
173
|
"left",
|
|
135
174
|
"block",
|
|
136
175
|
"inline"
|
|
137
|
-
],
|
|
176
|
+
], 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 = [
|
|
138
177
|
"",
|
|
139
178
|
"cover",
|
|
140
179
|
"contain",
|
|
141
180
|
"default"
|
|
142
|
-
],
|
|
181
|
+
], le = [
|
|
143
182
|
"",
|
|
144
183
|
"none",
|
|
145
184
|
"s",
|
|
146
185
|
"m",
|
|
147
186
|
"l",
|
|
148
187
|
"xl"
|
|
149
|
-
],
|
|
188
|
+
], 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 = [
|
|
150
189
|
"none",
|
|
151
190
|
"2xs",
|
|
152
191
|
"xs",
|
|
@@ -156,21 +195,21 @@ var c = [
|
|
|
156
195
|
"heading-to-subtitle",
|
|
157
196
|
"heading-to-content",
|
|
158
197
|
"page-layout-between-sections"
|
|
159
|
-
],
|
|
198
|
+
], g = [
|
|
160
199
|
"",
|
|
161
200
|
"all",
|
|
162
201
|
"top",
|
|
163
202
|
"right",
|
|
164
203
|
"bottom",
|
|
165
204
|
"left"
|
|
166
|
-
],
|
|
167
|
-
|
|
168
|
-
var
|
|
205
|
+
], _ = new CSSStyleSheet();
|
|
206
|
+
_.replaceSync(i);
|
|
207
|
+
var v = class e extends HTMLElement {
|
|
169
208
|
static get observedAttributes() {
|
|
170
209
|
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(".");
|
|
171
210
|
}
|
|
172
211
|
constructor(...e) {
|
|
173
|
-
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
212
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [_, ...e];
|
|
174
213
|
}
|
|
175
214
|
attributeChangedCallback(t, n, r) {
|
|
176
215
|
if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
|
|
@@ -196,31 +235,31 @@ var S = class e extends HTMLElement {
|
|
|
196
235
|
case "align-self--tablet":
|
|
197
236
|
case "align-self--laptop":
|
|
198
237
|
case "align-self--desktop":
|
|
199
|
-
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ?
|
|
238
|
+
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? ee : s);
|
|
200
239
|
break;
|
|
201
240
|
case "justify-self":
|
|
202
241
|
case "justify-self--mobile":
|
|
203
242
|
case "justify-self--tablet":
|
|
204
243
|
case "justify-self--laptop":
|
|
205
244
|
case "justify-self--desktop":
|
|
206
|
-
this.updateProperties(t, n, r,
|
|
245
|
+
this.updateProperties(t, n, r, te);
|
|
207
246
|
break;
|
|
208
247
|
case "col-span":
|
|
209
248
|
case "col-span--mobile":
|
|
210
249
|
case "col-span--tablet":
|
|
211
250
|
case "col-span--laptop":
|
|
212
251
|
case "col-span--desktop":
|
|
213
|
-
this.updateProperties(t, n, r,
|
|
252
|
+
this.updateProperties(t, n, r, ne);
|
|
214
253
|
break;
|
|
215
254
|
case "order":
|
|
216
255
|
case "order--mobile":
|
|
217
256
|
case "order--tablet":
|
|
218
257
|
case "order--laptop":
|
|
219
|
-
case "order--desktop": this.updateProperties(t, n, r,
|
|
258
|
+
case "order--desktop": this.updateProperties(t, n, r, c);
|
|
220
259
|
}
|
|
221
260
|
}
|
|
222
|
-
updateProperties(e, t, n,
|
|
223
|
-
|
|
261
|
+
updateProperties(e, t, n, i) {
|
|
262
|
+
i && (this.checkName(i, n) || r(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`));
|
|
224
263
|
let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
|
|
225
264
|
if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
|
|
226
265
|
else {
|
|
@@ -253,238 +292,309 @@ var S = class e extends HTMLElement {
|
|
|
253
292
|
return this.getAttribute("grow");
|
|
254
293
|
}
|
|
255
294
|
set grow(e) {
|
|
256
|
-
|
|
295
|
+
a(this, "grow", e);
|
|
257
296
|
}
|
|
258
297
|
get growMobile() {
|
|
259
298
|
return this.getAttribute("grow--mobile");
|
|
260
299
|
}
|
|
261
300
|
set growMobile(e) {
|
|
262
|
-
|
|
301
|
+
a(this, "grow--mobile", e);
|
|
263
302
|
}
|
|
264
303
|
get growTablet() {
|
|
265
304
|
return this.getAttribute("grow--tablet");
|
|
266
305
|
}
|
|
267
306
|
set growTablet(e) {
|
|
268
|
-
|
|
307
|
+
a(this, "grow--tablet", e);
|
|
269
308
|
}
|
|
270
309
|
get growLaptop() {
|
|
271
310
|
return this.getAttribute("grow--laptop");
|
|
272
311
|
}
|
|
273
312
|
set growLaptop(e) {
|
|
274
|
-
|
|
313
|
+
a(this, "grow--laptop", e);
|
|
275
314
|
}
|
|
276
315
|
get growDesktop() {
|
|
277
316
|
return this.getAttribute("grow--desktop");
|
|
278
317
|
}
|
|
279
318
|
set growDesktop(e) {
|
|
280
|
-
|
|
319
|
+
a(this, "grow--desktop", e);
|
|
281
320
|
}
|
|
282
321
|
get shrink() {
|
|
283
322
|
return this.getAttribute("shrink");
|
|
284
323
|
}
|
|
285
324
|
set shrink(e) {
|
|
286
|
-
|
|
325
|
+
a(this, "shrink", e);
|
|
287
326
|
}
|
|
288
327
|
get shrinkMobile() {
|
|
289
328
|
return this.getAttribute("shrink--mobile");
|
|
290
329
|
}
|
|
291
330
|
set shrinkMobile(e) {
|
|
292
|
-
|
|
331
|
+
a(this, "shrink--mobile", e);
|
|
293
332
|
}
|
|
294
333
|
get shrinkTablet() {
|
|
295
334
|
return this.getAttribute("shrink--tablet");
|
|
296
335
|
}
|
|
297
336
|
set shrinkTablet(e) {
|
|
298
|
-
|
|
337
|
+
a(this, "shrink--tablet", e);
|
|
299
338
|
}
|
|
300
339
|
get shrinkLaptop() {
|
|
301
340
|
return this.getAttribute("shrink--laptop");
|
|
302
341
|
}
|
|
303
342
|
set shrinkLaptop(e) {
|
|
304
|
-
|
|
343
|
+
a(this, "shrink--laptop", e);
|
|
305
344
|
}
|
|
306
345
|
get shrinkDesktop() {
|
|
307
346
|
return this.getAttribute("shrink--desktop");
|
|
308
347
|
}
|
|
309
348
|
set shrinkDesktop(e) {
|
|
310
|
-
|
|
349
|
+
a(this, "shrink--desktop", e);
|
|
311
350
|
}
|
|
312
351
|
get basis() {
|
|
313
352
|
return this.getAttribute("basis");
|
|
314
353
|
}
|
|
315
354
|
set basis(e) {
|
|
316
|
-
|
|
355
|
+
a(this, "basis", e);
|
|
317
356
|
}
|
|
318
357
|
get basisMobile() {
|
|
319
358
|
return this.getAttribute("basis--mobile");
|
|
320
359
|
}
|
|
321
360
|
set basisMobile(e) {
|
|
322
|
-
|
|
361
|
+
a(this, "basis--mobile", e);
|
|
323
362
|
}
|
|
324
363
|
get basisTablet() {
|
|
325
364
|
return this.getAttribute("basis--tablet");
|
|
326
365
|
}
|
|
327
366
|
set basisTablet(e) {
|
|
328
|
-
|
|
367
|
+
a(this, "basis--tablet", e);
|
|
329
368
|
}
|
|
330
369
|
get basisLaptop() {
|
|
331
370
|
return this.getAttribute("basis--laptop");
|
|
332
371
|
}
|
|
333
372
|
set basisLaptop(e) {
|
|
334
|
-
|
|
373
|
+
a(this, "basis--laptop", e);
|
|
335
374
|
}
|
|
336
375
|
get basisDesktop() {
|
|
337
376
|
return this.getAttribute("basis--desktop");
|
|
338
377
|
}
|
|
339
378
|
set basisDesktop(e) {
|
|
340
|
-
|
|
379
|
+
a(this, "basis--desktop", e);
|
|
341
380
|
}
|
|
342
381
|
get alignSelf() {
|
|
343
382
|
return this.getAttribute("align-self");
|
|
344
383
|
}
|
|
345
384
|
set alignSelf(e) {
|
|
346
|
-
|
|
385
|
+
a(this, "align-self", e);
|
|
347
386
|
}
|
|
348
387
|
get alignSelfMobile() {
|
|
349
388
|
return this.getAttribute("align-self--mobile");
|
|
350
389
|
}
|
|
351
390
|
set alignSelfMobile(e) {
|
|
352
|
-
|
|
391
|
+
a(this, "align-self--mobile", e);
|
|
353
392
|
}
|
|
354
393
|
get alignSelfTablet() {
|
|
355
394
|
return this.getAttribute("align-self--tablet");
|
|
356
395
|
}
|
|
357
396
|
set alignSelfTablet(e) {
|
|
358
|
-
|
|
397
|
+
a(this, "align-self--tablet", e);
|
|
359
398
|
}
|
|
360
399
|
get alignSelfLaptop() {
|
|
361
400
|
return this.getAttribute("align-self--laptop");
|
|
362
401
|
}
|
|
363
402
|
set alignSelfLaptop(e) {
|
|
364
|
-
|
|
403
|
+
a(this, "align-self--laptop", e);
|
|
365
404
|
}
|
|
366
405
|
get alignSelfDesktop() {
|
|
367
406
|
return this.getAttribute("align-self--desktop");
|
|
368
407
|
}
|
|
369
408
|
set alignSelfDesktop(e) {
|
|
370
|
-
|
|
409
|
+
a(this, "align-self--desktop", e);
|
|
371
410
|
}
|
|
372
411
|
get justifySelf() {
|
|
373
412
|
return this.getAttribute("justify-self");
|
|
374
413
|
}
|
|
375
414
|
set justifySelf(e) {
|
|
376
|
-
|
|
415
|
+
a(this, "justify-self", e);
|
|
377
416
|
}
|
|
378
417
|
get justifySelfMobile() {
|
|
379
418
|
return this.getAttribute("justify-self--mobile");
|
|
380
419
|
}
|
|
381
420
|
set justifySelfMobile(e) {
|
|
382
|
-
|
|
421
|
+
a(this, "justify-self--mobile", e);
|
|
383
422
|
}
|
|
384
423
|
get justifySelfTablet() {
|
|
385
424
|
return this.getAttribute("justify-self--tablet");
|
|
386
425
|
}
|
|
387
426
|
set justifySelfTablet(e) {
|
|
388
|
-
|
|
427
|
+
a(this, "justify-self--tablet", e);
|
|
389
428
|
}
|
|
390
429
|
get justifySelfLaptop() {
|
|
391
430
|
return this.getAttribute("justify-self--laptop");
|
|
392
431
|
}
|
|
393
432
|
set justifySelfLaptop(e) {
|
|
394
|
-
|
|
433
|
+
a(this, "justify-self--laptop", e);
|
|
395
434
|
}
|
|
396
435
|
get justifySelfDesktop() {
|
|
397
436
|
return this.getAttribute("justify-self--desktop");
|
|
398
437
|
}
|
|
399
438
|
set justifySelfDesktop(e) {
|
|
400
|
-
|
|
439
|
+
a(this, "justify-self--desktop", e);
|
|
401
440
|
}
|
|
402
441
|
get hiddenMobile() {
|
|
403
442
|
return this.hasAttribute("hidden--mobile");
|
|
404
443
|
}
|
|
405
444
|
set hiddenMobile(e) {
|
|
406
|
-
|
|
445
|
+
o(this, "hidden--mobile", e);
|
|
407
446
|
}
|
|
408
447
|
get hiddenTablet() {
|
|
409
448
|
return this.hasAttribute("hidden--tablet");
|
|
410
449
|
}
|
|
411
450
|
set hiddenTablet(e) {
|
|
412
|
-
|
|
451
|
+
o(this, "hidden--tablet", e);
|
|
413
452
|
}
|
|
414
453
|
get hiddenLaptop() {
|
|
415
454
|
return this.hasAttribute("hidden--laptop");
|
|
416
455
|
}
|
|
417
456
|
set hiddenLaptop(e) {
|
|
418
|
-
|
|
457
|
+
o(this, "hidden--laptop", e);
|
|
419
458
|
}
|
|
420
459
|
get hiddenDesktop() {
|
|
421
460
|
return this.hasAttribute("hidden--desktop");
|
|
422
461
|
}
|
|
423
462
|
set hiddenDesktop(e) {
|
|
424
|
-
|
|
463
|
+
o(this, "hidden--desktop", e);
|
|
464
|
+
}
|
|
465
|
+
get shownSr() {
|
|
466
|
+
return this.hasAttribute("shown--sr");
|
|
467
|
+
}
|
|
468
|
+
set shownSr(e) {
|
|
469
|
+
o(this, "shown--sr", e);
|
|
470
|
+
}
|
|
471
|
+
get shownSrMobile() {
|
|
472
|
+
return this.hasAttribute("shown--sr--mobile");
|
|
473
|
+
}
|
|
474
|
+
set shownSrMobile(e) {
|
|
475
|
+
o(this, "shown--sr--mobile", e);
|
|
476
|
+
}
|
|
477
|
+
get shownSrTablet() {
|
|
478
|
+
return this.hasAttribute("shown--sr--tablet");
|
|
479
|
+
}
|
|
480
|
+
set shownSrTablet(e) {
|
|
481
|
+
o(this, "shown--sr--tablet", e);
|
|
482
|
+
}
|
|
483
|
+
get shownSrLaptop() {
|
|
484
|
+
return this.hasAttribute("shown--sr--laptop");
|
|
485
|
+
}
|
|
486
|
+
set shownSrLaptop(e) {
|
|
487
|
+
o(this, "shown--sr--laptop", e);
|
|
488
|
+
}
|
|
489
|
+
get shownSrDesktop() {
|
|
490
|
+
return this.hasAttribute("shown--sr--desktop");
|
|
491
|
+
}
|
|
492
|
+
set shownSrDesktop(e) {
|
|
493
|
+
o(this, "shown--sr--desktop", e);
|
|
425
494
|
}
|
|
426
495
|
get colSpan() {
|
|
427
496
|
return this.getAttribute("col-span");
|
|
428
497
|
}
|
|
429
498
|
set colSpan(e) {
|
|
430
|
-
|
|
499
|
+
a(this, "col-span", e);
|
|
431
500
|
}
|
|
432
501
|
get colSpanMobile() {
|
|
433
502
|
return this.getAttribute("col-span--mobile");
|
|
434
503
|
}
|
|
435
504
|
set colSpanMobile(e) {
|
|
436
|
-
|
|
505
|
+
a(this, "col-span--mobile", e);
|
|
437
506
|
}
|
|
438
507
|
get colSpanTablet() {
|
|
439
508
|
return this.getAttribute("col-span--tablet");
|
|
440
509
|
}
|
|
441
510
|
set colSpanTablet(e) {
|
|
442
|
-
|
|
511
|
+
a(this, "col-span--tablet", e);
|
|
443
512
|
}
|
|
444
513
|
get colSpanLaptop() {
|
|
445
514
|
return this.getAttribute("col-span--laptop");
|
|
446
515
|
}
|
|
447
516
|
set colSpanLaptop(e) {
|
|
448
|
-
|
|
517
|
+
a(this, "col-span--laptop", e);
|
|
449
518
|
}
|
|
450
519
|
get colSpanDesktop() {
|
|
451
520
|
return this.getAttribute("col-span--desktop");
|
|
452
521
|
}
|
|
453
522
|
set colSpanDesktop(e) {
|
|
454
|
-
|
|
523
|
+
a(this, "col-span--desktop", e);
|
|
455
524
|
}
|
|
456
525
|
get order() {
|
|
457
526
|
return this.getAttribute("order");
|
|
458
527
|
}
|
|
459
528
|
set order(e) {
|
|
460
|
-
|
|
529
|
+
a(this, "order", e);
|
|
461
530
|
}
|
|
462
531
|
get orderMobile() {
|
|
463
532
|
return this.getAttribute("order--mobile");
|
|
464
533
|
}
|
|
465
534
|
set orderMobile(e) {
|
|
466
|
-
|
|
535
|
+
a(this, "order--mobile", e);
|
|
467
536
|
}
|
|
468
537
|
get orderTablet() {
|
|
469
538
|
return this.getAttribute("order--tablet");
|
|
470
539
|
}
|
|
471
540
|
set orderTablet(e) {
|
|
472
|
-
|
|
541
|
+
a(this, "order--tablet", e);
|
|
473
542
|
}
|
|
474
543
|
get orderLaptop() {
|
|
475
544
|
return this.getAttribute("order--laptop");
|
|
476
545
|
}
|
|
477
546
|
set orderLaptop(e) {
|
|
478
|
-
|
|
547
|
+
a(this, "order--laptop", e);
|
|
479
548
|
}
|
|
480
549
|
get orderDesktop() {
|
|
481
550
|
return this.getAttribute("order--desktop");
|
|
482
551
|
}
|
|
483
552
|
set orderDesktop(e) {
|
|
484
|
-
|
|
553
|
+
a(this, "order--desktop", e);
|
|
485
554
|
}
|
|
486
|
-
|
|
487
|
-
(
|
|
555
|
+
get stickyTop() {
|
|
556
|
+
return this.hasAttribute("sticky-top");
|
|
557
|
+
}
|
|
558
|
+
set stickyTop(e) {
|
|
559
|
+
o(this, "sticky-top", e);
|
|
560
|
+
}
|
|
561
|
+
get stickyBottom() {
|
|
562
|
+
return this.hasAttribute("sticky-bottom");
|
|
563
|
+
}
|
|
564
|
+
set stickyBottom(e) {
|
|
565
|
+
o(this, "sticky-bottom", e);
|
|
566
|
+
}
|
|
567
|
+
get wordBreakAll() {
|
|
568
|
+
return this.hasAttribute("word-break-all");
|
|
569
|
+
}
|
|
570
|
+
set wordBreakAll(e) {
|
|
571
|
+
o(this, "word-break-all", e);
|
|
572
|
+
}
|
|
573
|
+
get wordBreakAllMobile() {
|
|
574
|
+
return this.hasAttribute("word-break-all--mobile");
|
|
575
|
+
}
|
|
576
|
+
set wordBreakAllMobile(e) {
|
|
577
|
+
o(this, "word-break-all--mobile", e);
|
|
578
|
+
}
|
|
579
|
+
get wordBreakAllTablet() {
|
|
580
|
+
return this.hasAttribute("word-break-all--tablet");
|
|
581
|
+
}
|
|
582
|
+
set wordBreakAllTablet(e) {
|
|
583
|
+
o(this, "word-break-all--tablet", e);
|
|
584
|
+
}
|
|
585
|
+
get wordBreakAllLaptop() {
|
|
586
|
+
return this.hasAttribute("word-break-all--laptop");
|
|
587
|
+
}
|
|
588
|
+
set wordBreakAllLaptop(e) {
|
|
589
|
+
o(this, "word-break-all--laptop", e);
|
|
590
|
+
}
|
|
591
|
+
get wordBreakAllDesktop() {
|
|
592
|
+
return this.hasAttribute("word-break-all--desktop");
|
|
593
|
+
}
|
|
594
|
+
set wordBreakAllDesktop(e) {
|
|
595
|
+
o(this, "word-break-all--desktop", e);
|
|
596
|
+
}
|
|
597
|
+
}, ue = class extends v {
|
|
488
598
|
static {
|
|
489
599
|
this.nativeAttributes = {};
|
|
490
600
|
}
|
|
@@ -546,32 +656,32 @@ var S = class e extends HTMLElement {
|
|
|
546
656
|
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
547
657
|
}
|
|
548
658
|
_updateAttribute(e, t) {
|
|
549
|
-
|
|
659
|
+
a(this, e, t);
|
|
550
660
|
}
|
|
551
661
|
_updateBooleanAttribute(e, t) {
|
|
552
|
-
|
|
662
|
+
o(this, e, t);
|
|
553
663
|
}
|
|
554
|
-
}
|
|
664
|
+
};
|
|
555
665
|
//#endregion
|
|
556
666
|
//#region ../common/src/utilities.ts
|
|
557
|
-
function
|
|
667
|
+
function y(e, t) {
|
|
558
668
|
return t !== null && e.includes(t);
|
|
559
669
|
}
|
|
560
670
|
//#endregion
|
|
561
671
|
//#region ../common/src/nativeProperties.ts
|
|
562
|
-
var
|
|
672
|
+
var b = {
|
|
563
673
|
validity: "readonly",
|
|
564
674
|
validationMessage: "readonly",
|
|
565
675
|
willValidate: "readonly"
|
|
566
|
-
},
|
|
676
|
+
}, x = [
|
|
567
677
|
"checkValidity",
|
|
568
678
|
"reportValidity",
|
|
569
679
|
"setCustomValidity"
|
|
570
680
|
];
|
|
571
|
-
({ ...
|
|
681
|
+
({ ...b }), [...x], { ...b }, [...x], { ...b }, [...x], { ...b }, [...x], { ...b }, [...x];
|
|
572
682
|
//#endregion
|
|
573
683
|
//#region ../common/src/breakpoints.ts
|
|
574
|
-
function
|
|
684
|
+
function S(e, t, n, r = "", i, a = e) {
|
|
575
685
|
let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
|
|
576
686
|
${t(a, o)} {
|
|
577
687
|
${e}: var(--${r}-${o}-desktop);
|
|
@@ -614,7 +724,7 @@ function E(e, t, n, r = "", i, a = e) {
|
|
|
614
724
|
}`, "");
|
|
615
725
|
return o.replaceSync(s), o;
|
|
616
726
|
}
|
|
617
|
-
var
|
|
727
|
+
var de = class {
|
|
618
728
|
constructor(e, t, n, r) {
|
|
619
729
|
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), {
|
|
620
730
|
get: () => this.component.getAttribute(this.attributeName),
|
|
@@ -660,33 +770,33 @@ var ie = class {
|
|
|
660
770
|
set attributeValue(e) {
|
|
661
771
|
this._attributeValue = e, this.setCSSProperties();
|
|
662
772
|
}
|
|
663
|
-
},
|
|
664
|
-
function
|
|
773
|
+
}, C = /* @__PURE__ */ new Map(), fe = 500;
|
|
774
|
+
function w(e) {
|
|
665
775
|
let t = document.createElement("template");
|
|
666
776
|
return t.innerHTML = e, t;
|
|
667
777
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
778
|
+
function T(e) {
|
|
779
|
+
return w(e);
|
|
670
780
|
}
|
|
671
|
-
function
|
|
672
|
-
let t =
|
|
673
|
-
return t || (t =
|
|
781
|
+
function pe(e) {
|
|
782
|
+
let t = C.get(e);
|
|
783
|
+
return t || (t = w(e), C.size < fe && C.set(e, t)), t;
|
|
674
784
|
}
|
|
675
|
-
function
|
|
676
|
-
let n = typeof t == "string" ?
|
|
785
|
+
function E(e, t) {
|
|
786
|
+
let n = typeof t == "string" ? pe(t) : t;
|
|
677
787
|
e.replaceChildren(document.importNode(n.content, !0));
|
|
678
788
|
}
|
|
679
789
|
//#endregion
|
|
680
|
-
//#region ../Container/src/
|
|
681
|
-
var j = new CSSStyleSheet();
|
|
682
|
-
|
|
683
|
-
var
|
|
790
|
+
//#region ../Container/src/container.css?inline
|
|
791
|
+
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();
|
|
792
|
+
D.replaceSync(me);
|
|
793
|
+
var he = [
|
|
684
794
|
"top-patch",
|
|
685
795
|
"top-neighbor-patch",
|
|
686
796
|
"top-ribbon",
|
|
687
797
|
"top-neighbor-ribbon",
|
|
688
798
|
"top-patch-and-neighbor-ribbon"
|
|
689
|
-
],
|
|
799
|
+
], O = [
|
|
690
800
|
"1",
|
|
691
801
|
"2",
|
|
692
802
|
"3",
|
|
@@ -699,24 +809,24 @@ var M = [
|
|
|
699
809
|
"10",
|
|
700
810
|
"11",
|
|
701
811
|
"12"
|
|
702
|
-
],
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
],
|
|
812
|
+
], k = (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .container`, A = "px-padding", j = [
|
|
813
|
+
S("padding", k, d, A, "--container-padding"),
|
|
814
|
+
S("padding-inline", k, d, A),
|
|
815
|
+
S("padding-block", k, d, A),
|
|
816
|
+
S("padding-top", k, d, A),
|
|
817
|
+
S("padding-right", k, d, A, "--container-padding-right"),
|
|
818
|
+
S("padding-bottom", k, d, A),
|
|
819
|
+
S("padding-left", k, d, A, "--container-padding-left"),
|
|
820
|
+
S("gap", k, h, "px-spacing", void 0, "subgrid-gap")
|
|
821
|
+
], M = class e extends v {
|
|
712
822
|
static {
|
|
713
|
-
this.template =
|
|
823
|
+
this.template = T("<div class=\"container\"><slot></slot><slot name=\"anchor-left\"></slot><slot name=\"anchor-right\"></slot><slot name=\"anchor-full\"></slot></div>");
|
|
714
824
|
}
|
|
715
825
|
static {
|
|
716
826
|
this.nativeName = "div";
|
|
717
827
|
}
|
|
718
828
|
constructor() {
|
|
719
|
-
super(
|
|
829
|
+
super(D, ...j), this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, E(this.shadowRoot, e.template);
|
|
720
830
|
}
|
|
721
831
|
static get observedAttributes() {
|
|
722
832
|
return [
|
|
@@ -772,7 +882,7 @@ var M = [
|
|
|
772
882
|
attributeChangedCallback(e, t, n) {
|
|
773
883
|
if (t !== n) switch (e) {
|
|
774
884
|
case "border":
|
|
775
|
-
this.updateAttribute(e, t, n,
|
|
885
|
+
this.updateAttribute(e, t, n, ae);
|
|
776
886
|
break;
|
|
777
887
|
case "border-color":
|
|
778
888
|
this.updateBorderColor(e, n);
|
|
@@ -781,16 +891,16 @@ var M = [
|
|
|
781
891
|
case "border-side--mobile":
|
|
782
892
|
case "border-side--tablet":
|
|
783
893
|
case "border-side--laptop":
|
|
784
|
-
this.updateAttribute(e, t, n,
|
|
894
|
+
this.updateAttribute(e, t, n, se);
|
|
785
895
|
break;
|
|
786
896
|
case "border-radius":
|
|
787
|
-
this.updateAttribute(e, t, n,
|
|
897
|
+
this.updateAttribute(e, t, n, oe);
|
|
788
898
|
break;
|
|
789
899
|
case "no-border-radius":
|
|
790
900
|
case "no-border-radius--mobile":
|
|
791
901
|
case "no-border-radius--tablet":
|
|
792
902
|
case "no-border-radius--laptop":
|
|
793
|
-
this.updateNoBorderRadius(e, t, n,
|
|
903
|
+
this.updateNoBorderRadius(e, t, n, g);
|
|
794
904
|
break;
|
|
795
905
|
case "background-color":
|
|
796
906
|
case "background-color--mobile":
|
|
@@ -805,7 +915,7 @@ var M = [
|
|
|
805
915
|
this.updateGradient(e, n);
|
|
806
916
|
break;
|
|
807
917
|
case "background-size":
|
|
808
|
-
this.updateAttribute(e, t, n,
|
|
918
|
+
this.updateAttribute(e, t, n, ce);
|
|
809
919
|
break;
|
|
810
920
|
case "background-image":
|
|
811
921
|
case "background-image--mobile":
|
|
@@ -817,16 +927,16 @@ var M = [
|
|
|
817
927
|
n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
|
|
818
928
|
break;
|
|
819
929
|
case "box-shadow":
|
|
820
|
-
this.updateAttribute(e, t, n,
|
|
930
|
+
this.updateAttribute(e, t, n, le);
|
|
821
931
|
break;
|
|
822
932
|
case "anchor-offset":
|
|
823
|
-
this.updateAnchorOffset(t, n,
|
|
933
|
+
this.updateAnchorOffset(t, n, d);
|
|
824
934
|
break;
|
|
825
935
|
case "anchor-spacing":
|
|
826
|
-
this.updateAnchorSpacing(t, n,
|
|
936
|
+
this.updateAnchorSpacing(t, n, he);
|
|
827
937
|
break;
|
|
828
938
|
case "subgrid-rows":
|
|
829
|
-
this.updateSubgridRows(e, t, n,
|
|
939
|
+
this.updateSubgridRows(e, t, n, O);
|
|
830
940
|
break;
|
|
831
941
|
default: super.attributeChangedCallback(e, t, n);
|
|
832
942
|
}
|
|
@@ -846,32 +956,28 @@ var M = [
|
|
|
846
956
|
this.$el.style.setProperty(`--${e}`, `url("${t}")`);
|
|
847
957
|
}
|
|
848
958
|
updateGradient(e, t) {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
e = n.attrName;
|
|
852
|
-
let r = n.breakpoint;
|
|
853
|
-
this.$el.style.setProperty(`--${e}${r}`, `linear-gradient(var(--px-color-background-gradient-${t}))`);
|
|
854
|
-
} else i(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${y.join("\", \"")}".`);
|
|
959
|
+
let { attrName: n, breakpoint: i } = this.splitAttrNameFromBreakpoint(e), a = `--${n}${i}`;
|
|
960
|
+
t === null ? this.$el.style.removeProperty(a) : 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("\", \"")}".`);
|
|
855
961
|
}
|
|
856
962
|
updateBackgroundColor(e, t) {
|
|
857
963
|
let n = t.startsWith("surface-");
|
|
858
|
-
if (this.checkName(
|
|
964
|
+
if (this.checkName(p, t)) {
|
|
859
965
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
860
966
|
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"})`);
|
|
861
|
-
} else
|
|
967
|
+
} else r(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${p.join("\", \"")}".`);
|
|
862
968
|
}
|
|
863
969
|
updateBorderColor(e, t) {
|
|
864
|
-
this.checkName(
|
|
970
|
+
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("\", \"")}".`);
|
|
865
971
|
}
|
|
866
|
-
updateNoBorderRadius(e, t, n,
|
|
867
|
-
if (!this.checkName(
|
|
972
|
+
updateNoBorderRadius(e, t, n, i) {
|
|
973
|
+
if (!this.checkName(i, n)) r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
868
974
|
else {
|
|
869
975
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
870
976
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
871
977
|
}
|
|
872
978
|
}
|
|
873
|
-
updateAttribute(e, t, n,
|
|
874
|
-
if (!this.checkName(
|
|
979
|
+
updateAttribute(e, t, n, i) {
|
|
980
|
+
if (!this.checkName(i, n)) r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
875
981
|
else {
|
|
876
982
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
877
983
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
@@ -893,30 +999,30 @@ var M = [
|
|
|
893
999
|
};
|
|
894
1000
|
}
|
|
895
1001
|
updateAnchorOffset(e, t, n) {
|
|
896
|
-
if (!
|
|
897
|
-
|
|
1002
|
+
if (!y(n, t)) {
|
|
1003
|
+
r(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
898
1004
|
return;
|
|
899
1005
|
}
|
|
900
|
-
let
|
|
1006
|
+
let i = (e) => {
|
|
901
1007
|
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)`));
|
|
902
1008
|
};
|
|
903
|
-
|
|
1009
|
+
i(e), i(t);
|
|
904
1010
|
}
|
|
905
1011
|
addAnchorClass() {
|
|
906
1012
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
907
1013
|
}
|
|
908
1014
|
updateAnchorSpacing(e, t, n) {
|
|
909
|
-
if (!
|
|
910
|
-
|
|
1015
|
+
if (!y(n, t)) {
|
|
1016
|
+
r(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
911
1017
|
return;
|
|
912
1018
|
}
|
|
913
|
-
let
|
|
1019
|
+
let i = (e) => {
|
|
914
1020
|
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)`));
|
|
915
1021
|
};
|
|
916
|
-
|
|
1022
|
+
i(e), i(t);
|
|
917
1023
|
}
|
|
918
|
-
updateSubgridRows(e, t, n,
|
|
919
|
-
|
|
1024
|
+
updateSubgridRows(e, t, n, i) {
|
|
1025
|
+
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("\", \"")}".`);
|
|
920
1026
|
}
|
|
921
1027
|
get $el() {
|
|
922
1028
|
return this?.shadowRoot?.querySelector(".container");
|
|
@@ -928,390 +1034,390 @@ var M = [
|
|
|
928
1034
|
return this.getAttribute("padding");
|
|
929
1035
|
}
|
|
930
1036
|
set padding(e) {
|
|
931
|
-
|
|
1037
|
+
a(this, "padding", e);
|
|
932
1038
|
}
|
|
933
1039
|
get paddingBlock() {
|
|
934
1040
|
return this.getAttribute("padding-block");
|
|
935
1041
|
}
|
|
936
1042
|
set paddingBlock(e) {
|
|
937
|
-
|
|
1043
|
+
a(this, "padding-block", e);
|
|
938
1044
|
}
|
|
939
1045
|
get paddingInline() {
|
|
940
1046
|
return this.getAttribute("padding-inline");
|
|
941
1047
|
}
|
|
942
1048
|
set paddingInline(e) {
|
|
943
|
-
|
|
1049
|
+
a(this, "padding-inline", e);
|
|
944
1050
|
}
|
|
945
1051
|
get paddingTop() {
|
|
946
1052
|
return this.getAttribute("padding-top");
|
|
947
1053
|
}
|
|
948
1054
|
set paddingTop(e) {
|
|
949
|
-
|
|
1055
|
+
a(this, "padding-top", e);
|
|
950
1056
|
}
|
|
951
1057
|
get paddingRight() {
|
|
952
1058
|
return this.getAttribute("padding-right");
|
|
953
1059
|
}
|
|
954
1060
|
set paddingRight(e) {
|
|
955
|
-
|
|
1061
|
+
a(this, "padding-right", e);
|
|
956
1062
|
}
|
|
957
1063
|
get paddingBottom() {
|
|
958
1064
|
return this.getAttribute("padding-bottom");
|
|
959
1065
|
}
|
|
960
1066
|
set paddingBottom(e) {
|
|
961
|
-
|
|
1067
|
+
a(this, "padding-bottom", e);
|
|
962
1068
|
}
|
|
963
1069
|
get paddingLeft() {
|
|
964
1070
|
return this.getAttribute("padding-left");
|
|
965
1071
|
}
|
|
966
1072
|
set paddingLeft(e) {
|
|
967
|
-
|
|
1073
|
+
a(this, "padding-left", e);
|
|
968
1074
|
}
|
|
969
1075
|
get paddingMobile() {
|
|
970
1076
|
return this.getAttribute("padding--mobile");
|
|
971
1077
|
}
|
|
972
1078
|
set paddingMobile(e) {
|
|
973
|
-
|
|
1079
|
+
a(this, "padding--mobile", e);
|
|
974
1080
|
}
|
|
975
1081
|
get paddingBlockMobile() {
|
|
976
1082
|
return this.getAttribute("padding-block--mobile");
|
|
977
1083
|
}
|
|
978
1084
|
set paddingBlockMobile(e) {
|
|
979
|
-
|
|
1085
|
+
a(this, "padding-block--mobile", e);
|
|
980
1086
|
}
|
|
981
1087
|
get paddingInlineMobile() {
|
|
982
1088
|
return this.getAttribute("padding-inline--mobile");
|
|
983
1089
|
}
|
|
984
1090
|
set paddingInlineMobile(e) {
|
|
985
|
-
|
|
1091
|
+
a(this, "padding-inline--mobile", e);
|
|
986
1092
|
}
|
|
987
1093
|
get paddingTopMobile() {
|
|
988
1094
|
return this.getAttribute("padding-top--mobile");
|
|
989
1095
|
}
|
|
990
1096
|
set paddingTopMobile(e) {
|
|
991
|
-
|
|
1097
|
+
a(this, "padding-top--mobile", e);
|
|
992
1098
|
}
|
|
993
1099
|
get paddingRightMobile() {
|
|
994
1100
|
return this.getAttribute("padding-right--mobile");
|
|
995
1101
|
}
|
|
996
1102
|
set paddingRightMobile(e) {
|
|
997
|
-
|
|
1103
|
+
a(this, "padding-right--mobile", e);
|
|
998
1104
|
}
|
|
999
1105
|
get paddingBottomMobile() {
|
|
1000
1106
|
return this.getAttribute("padding-bottom--mobile");
|
|
1001
1107
|
}
|
|
1002
1108
|
set paddingBottomMobile(e) {
|
|
1003
|
-
|
|
1109
|
+
a(this, "padding-bottom--mobile", e);
|
|
1004
1110
|
}
|
|
1005
1111
|
get paddingLeftMobile() {
|
|
1006
1112
|
return this.getAttribute("padding-left--mobile");
|
|
1007
1113
|
}
|
|
1008
1114
|
set paddingLeftMobile(e) {
|
|
1009
|
-
|
|
1115
|
+
a(this, "padding-left--mobile", e);
|
|
1010
1116
|
}
|
|
1011
1117
|
get paddingTablet() {
|
|
1012
1118
|
return this.getAttribute("padding--tablet");
|
|
1013
1119
|
}
|
|
1014
1120
|
set paddingTablet(e) {
|
|
1015
|
-
|
|
1121
|
+
a(this, "padding--tablet", e);
|
|
1016
1122
|
}
|
|
1017
1123
|
get paddingBlockTablet() {
|
|
1018
1124
|
return this.getAttribute("padding-block--tablet");
|
|
1019
1125
|
}
|
|
1020
1126
|
set paddingBlockTablet(e) {
|
|
1021
|
-
|
|
1127
|
+
a(this, "padding-block--tablet", e);
|
|
1022
1128
|
}
|
|
1023
1129
|
get paddingInlineTablet() {
|
|
1024
1130
|
return this.getAttribute("padding-inline--tablet");
|
|
1025
1131
|
}
|
|
1026
1132
|
set paddingInlineTablet(e) {
|
|
1027
|
-
|
|
1133
|
+
a(this, "padding-inline--tablet", e);
|
|
1028
1134
|
}
|
|
1029
1135
|
get paddingTopTablet() {
|
|
1030
1136
|
return this.getAttribute("padding-top--tablet");
|
|
1031
1137
|
}
|
|
1032
1138
|
set paddingTopTablet(e) {
|
|
1033
|
-
|
|
1139
|
+
a(this, "padding-top--tablet", e);
|
|
1034
1140
|
}
|
|
1035
1141
|
get paddingRightTablet() {
|
|
1036
1142
|
return this.getAttribute("padding-right--tablet");
|
|
1037
1143
|
}
|
|
1038
1144
|
set paddingRightTablet(e) {
|
|
1039
|
-
|
|
1145
|
+
a(this, "padding-right--tablet", e);
|
|
1040
1146
|
}
|
|
1041
1147
|
get paddingBottomTablet() {
|
|
1042
1148
|
return this.getAttribute("padding-bottom--tablet");
|
|
1043
1149
|
}
|
|
1044
1150
|
set paddingBottomTablet(e) {
|
|
1045
|
-
|
|
1151
|
+
a(this, "padding-bottom--tablet", e);
|
|
1046
1152
|
}
|
|
1047
1153
|
get paddingLeftTablet() {
|
|
1048
1154
|
return this.getAttribute("padding-left--tablet");
|
|
1049
1155
|
}
|
|
1050
1156
|
set paddingLeftTablet(e) {
|
|
1051
|
-
|
|
1157
|
+
a(this, "padding-left--tablet", e);
|
|
1052
1158
|
}
|
|
1053
1159
|
get paddingLaptop() {
|
|
1054
1160
|
return this.getAttribute("padding--laptop");
|
|
1055
1161
|
}
|
|
1056
1162
|
set paddingLaptop(e) {
|
|
1057
|
-
|
|
1163
|
+
a(this, "padding--laptop", e);
|
|
1058
1164
|
}
|
|
1059
1165
|
get paddingBlockLaptop() {
|
|
1060
1166
|
return this.getAttribute("padding-block--laptop");
|
|
1061
1167
|
}
|
|
1062
1168
|
set paddingBlockLaptop(e) {
|
|
1063
|
-
|
|
1169
|
+
a(this, "padding-block--laptop", e);
|
|
1064
1170
|
}
|
|
1065
1171
|
get paddingInlineLaptop() {
|
|
1066
1172
|
return this.getAttribute("padding-inline--laptop");
|
|
1067
1173
|
}
|
|
1068
1174
|
set paddingInlineLaptop(e) {
|
|
1069
|
-
|
|
1175
|
+
a(this, "padding-inline--laptop", e);
|
|
1070
1176
|
}
|
|
1071
1177
|
get paddingTopLaptop() {
|
|
1072
1178
|
return this.getAttribute("padding-top--laptop");
|
|
1073
1179
|
}
|
|
1074
1180
|
set paddingTopLaptop(e) {
|
|
1075
|
-
|
|
1181
|
+
a(this, "padding-top--laptop", e);
|
|
1076
1182
|
}
|
|
1077
1183
|
get paddingRightLaptop() {
|
|
1078
1184
|
return this.getAttribute("padding-right--laptop");
|
|
1079
1185
|
}
|
|
1080
1186
|
set paddingRightLaptop(e) {
|
|
1081
|
-
|
|
1187
|
+
a(this, "padding-right--laptop", e);
|
|
1082
1188
|
}
|
|
1083
1189
|
get paddingBottomLaptop() {
|
|
1084
1190
|
return this.getAttribute("padding-bottom--laptop");
|
|
1085
1191
|
}
|
|
1086
1192
|
set paddingBottomLaptop(e) {
|
|
1087
|
-
|
|
1193
|
+
a(this, "padding-bottom--laptop", e);
|
|
1088
1194
|
}
|
|
1089
1195
|
get paddingLeftLaptop() {
|
|
1090
1196
|
return this.getAttribute("padding-left--laptop");
|
|
1091
1197
|
}
|
|
1092
1198
|
set paddingLeftLaptop(e) {
|
|
1093
|
-
|
|
1199
|
+
a(this, "padding-left--laptop", e);
|
|
1094
1200
|
}
|
|
1095
1201
|
get border() {
|
|
1096
1202
|
return this.getAttribute("border");
|
|
1097
1203
|
}
|
|
1098
1204
|
set border(e) {
|
|
1099
|
-
|
|
1205
|
+
a(this, "border", e);
|
|
1100
1206
|
}
|
|
1101
1207
|
get borderColor() {
|
|
1102
1208
|
return this.getAttribute("border-color");
|
|
1103
1209
|
}
|
|
1104
1210
|
set borderColor(e) {
|
|
1105
|
-
|
|
1211
|
+
a(this, "border-color", e);
|
|
1106
1212
|
}
|
|
1107
1213
|
get borderSide() {
|
|
1108
1214
|
return this.getAttribute("border-side");
|
|
1109
1215
|
}
|
|
1110
1216
|
set borderSide(e) {
|
|
1111
|
-
|
|
1217
|
+
a(this, "border-side", e);
|
|
1112
1218
|
}
|
|
1113
1219
|
get borderSideMobile() {
|
|
1114
1220
|
return this.getAttribute("border-side--mobile");
|
|
1115
1221
|
}
|
|
1116
1222
|
set borderSideMobile(e) {
|
|
1117
|
-
|
|
1223
|
+
a(this, "border-side--mobile", e);
|
|
1118
1224
|
}
|
|
1119
1225
|
get borderSideTablet() {
|
|
1120
1226
|
return this.getAttribute("border-side--tablet");
|
|
1121
1227
|
}
|
|
1122
1228
|
set borderSideTablet(e) {
|
|
1123
|
-
|
|
1229
|
+
a(this, "border-side--tablet", e);
|
|
1124
1230
|
}
|
|
1125
1231
|
get borderSideLaptop() {
|
|
1126
1232
|
return this.getAttribute("border-side--laptop");
|
|
1127
1233
|
}
|
|
1128
1234
|
set borderSideLaptop(e) {
|
|
1129
|
-
|
|
1235
|
+
a(this, "border-side--laptop", e);
|
|
1130
1236
|
}
|
|
1131
1237
|
get borderRadius() {
|
|
1132
1238
|
return this.getAttribute("border-radius");
|
|
1133
1239
|
}
|
|
1134
1240
|
set borderRadius(e) {
|
|
1135
|
-
|
|
1241
|
+
a(this, "border-radius", e);
|
|
1136
1242
|
}
|
|
1137
1243
|
get noBorderRadius() {
|
|
1138
1244
|
return this.getAttribute("no-border-radius");
|
|
1139
1245
|
}
|
|
1140
1246
|
set noBorderRadius(e) {
|
|
1141
|
-
|
|
1247
|
+
a(this, "no-border-radius", e);
|
|
1142
1248
|
}
|
|
1143
1249
|
get noBorderRadiusMobile() {
|
|
1144
1250
|
return this.getAttribute("no-border-radius--mobile");
|
|
1145
1251
|
}
|
|
1146
1252
|
set noBorderRadiusMobile(e) {
|
|
1147
|
-
|
|
1253
|
+
a(this, "no-border-radius--mobile", e);
|
|
1148
1254
|
}
|
|
1149
1255
|
get noBorderRadiusTablet() {
|
|
1150
1256
|
return this.getAttribute("no-border-radius--tablet");
|
|
1151
1257
|
}
|
|
1152
1258
|
set noBorderRadiusTablet(e) {
|
|
1153
|
-
|
|
1259
|
+
a(this, "no-border-radius--tablet", e);
|
|
1154
1260
|
}
|
|
1155
1261
|
get noBorderRadiusLaptop() {
|
|
1156
1262
|
return this.getAttribute("no-border-radius--laptop");
|
|
1157
1263
|
}
|
|
1158
1264
|
set noBorderRadiusLaptop(e) {
|
|
1159
|
-
|
|
1265
|
+
a(this, "no-border-radius--laptop", e);
|
|
1160
1266
|
}
|
|
1161
1267
|
get backgroundColor() {
|
|
1162
1268
|
return this.getAttribute("background-color");
|
|
1163
1269
|
}
|
|
1164
1270
|
set backgroundColor(e) {
|
|
1165
|
-
|
|
1271
|
+
a(this, "background-color", e);
|
|
1166
1272
|
}
|
|
1167
1273
|
get backgroundColorMobile() {
|
|
1168
1274
|
return this.getAttribute("background-color--mobile");
|
|
1169
1275
|
}
|
|
1170
1276
|
set backgroundColorMobile(e) {
|
|
1171
|
-
|
|
1277
|
+
a(this, "background-color--mobile", e);
|
|
1172
1278
|
}
|
|
1173
1279
|
get backgroundColorTablet() {
|
|
1174
1280
|
return this.getAttribute("background-color--tablet");
|
|
1175
1281
|
}
|
|
1176
1282
|
set backgroundColorTablet(e) {
|
|
1177
|
-
|
|
1283
|
+
a(this, "background-color--tablet", e);
|
|
1178
1284
|
}
|
|
1179
1285
|
get backgroundColorLaptop() {
|
|
1180
1286
|
return this.getAttribute("background-color--laptop");
|
|
1181
1287
|
}
|
|
1182
1288
|
set backgroundColorLaptop(e) {
|
|
1183
|
-
|
|
1289
|
+
a(this, "background-color--laptop", e);
|
|
1184
1290
|
}
|
|
1185
1291
|
get gradient() {
|
|
1186
1292
|
return this.getAttribute("background-gradient");
|
|
1187
1293
|
}
|
|
1188
1294
|
set gradient(e) {
|
|
1189
|
-
|
|
1295
|
+
a(this, "background-gradient", e);
|
|
1190
1296
|
}
|
|
1191
1297
|
get gradientMobile() {
|
|
1192
1298
|
return this.getAttribute("background-gradient--mobile");
|
|
1193
1299
|
}
|
|
1194
1300
|
set gradientMobile(e) {
|
|
1195
|
-
|
|
1301
|
+
a(this, "background-gradient--mobile", e);
|
|
1196
1302
|
}
|
|
1197
1303
|
get gradientTablet() {
|
|
1198
1304
|
return this.getAttribute("background-gradient--tablet");
|
|
1199
1305
|
}
|
|
1200
1306
|
set gradientTablet(e) {
|
|
1201
|
-
|
|
1307
|
+
a(this, "background-gradient--tablet", e);
|
|
1202
1308
|
}
|
|
1203
1309
|
get gradientLaptop() {
|
|
1204
1310
|
return this.getAttribute("background-gradient--laptop");
|
|
1205
1311
|
}
|
|
1206
1312
|
set gradientLaptop(e) {
|
|
1207
|
-
|
|
1313
|
+
a(this, "background-gradient--laptop", e);
|
|
1208
1314
|
}
|
|
1209
1315
|
get backgroundImage() {
|
|
1210
1316
|
return this.getAttribute("background-image");
|
|
1211
1317
|
}
|
|
1212
1318
|
set backgroundImage(e) {
|
|
1213
|
-
|
|
1319
|
+
a(this, "background-image", e);
|
|
1214
1320
|
}
|
|
1215
1321
|
get backgroundImageMobile() {
|
|
1216
1322
|
return this.getAttribute("background-image--mobile");
|
|
1217
1323
|
}
|
|
1218
1324
|
set backgroundImageMobile(e) {
|
|
1219
|
-
|
|
1325
|
+
a(this, "background-image--mobile", e);
|
|
1220
1326
|
}
|
|
1221
1327
|
get backgroundImageTablet() {
|
|
1222
1328
|
return this.getAttribute("background-image--tablet");
|
|
1223
1329
|
}
|
|
1224
1330
|
set backgroundImageTablet(e) {
|
|
1225
|
-
|
|
1331
|
+
a(this, "background-image--tablet", e);
|
|
1226
1332
|
}
|
|
1227
1333
|
get backgroundImageLaptop() {
|
|
1228
1334
|
return this.getAttribute("background-image--laptop");
|
|
1229
1335
|
}
|
|
1230
1336
|
set backgroundImageLaptop(e) {
|
|
1231
|
-
|
|
1337
|
+
a(this, "background-image--laptop", e);
|
|
1232
1338
|
}
|
|
1233
1339
|
get backgroundSize() {
|
|
1234
1340
|
return this.getAttribute("background-size");
|
|
1235
1341
|
}
|
|
1236
1342
|
set backgroundSize(e) {
|
|
1237
|
-
|
|
1343
|
+
a(this, "background-size", e);
|
|
1238
1344
|
}
|
|
1239
1345
|
get backgroundPosition() {
|
|
1240
1346
|
return this.getAttribute("background-position");
|
|
1241
1347
|
}
|
|
1242
1348
|
set backgroundPosition(e) {
|
|
1243
|
-
|
|
1349
|
+
a(this, "background-position", e);
|
|
1244
1350
|
}
|
|
1245
1351
|
get boxShadow() {
|
|
1246
1352
|
return this.getAttribute("box-shadow");
|
|
1247
1353
|
}
|
|
1248
1354
|
set boxShadow(e) {
|
|
1249
|
-
|
|
1355
|
+
a(this, "box-shadow", e);
|
|
1250
1356
|
}
|
|
1251
1357
|
get anchorOffset() {
|
|
1252
1358
|
return this.getAttribute("anchor-offset");
|
|
1253
1359
|
}
|
|
1254
1360
|
set anchorOffset(e) {
|
|
1255
|
-
|
|
1361
|
+
a(this, "anchor-offset", e);
|
|
1256
1362
|
}
|
|
1257
1363
|
get anchorSpacing() {
|
|
1258
1364
|
return this.getAttribute("anchor-spacing");
|
|
1259
1365
|
}
|
|
1260
1366
|
set anchorSpacing(e) {
|
|
1261
|
-
|
|
1367
|
+
a(this, "anchor-spacing", e);
|
|
1262
1368
|
}
|
|
1263
1369
|
get inverted() {
|
|
1264
1370
|
return this.hasAttribute("inverted");
|
|
1265
1371
|
}
|
|
1266
1372
|
set inverted(e) {
|
|
1267
|
-
|
|
1373
|
+
o(this, "inverted", e);
|
|
1268
1374
|
}
|
|
1269
1375
|
get subgridRows() {
|
|
1270
1376
|
return this.getAttribute("subgrid-rows");
|
|
1271
1377
|
}
|
|
1272
1378
|
set subgridRows(e) {
|
|
1273
|
-
|
|
1379
|
+
a(this, "subgrid-rows", e);
|
|
1274
1380
|
}
|
|
1275
1381
|
get subgridGap() {
|
|
1276
1382
|
return this.getAttribute("subgrid-gap");
|
|
1277
1383
|
}
|
|
1278
1384
|
set subgridGap(e) {
|
|
1279
|
-
|
|
1385
|
+
a(this, "subgrid-gap", e);
|
|
1280
1386
|
}
|
|
1281
1387
|
get subgridGapMobile() {
|
|
1282
1388
|
return this.getAttribute("subgrid-gap--mobile");
|
|
1283
1389
|
}
|
|
1284
1390
|
set subgridGapMobile(e) {
|
|
1285
|
-
|
|
1391
|
+
a(this, "subgrid-gap--mobile", e);
|
|
1286
1392
|
}
|
|
1287
1393
|
get subgridGapTablet() {
|
|
1288
1394
|
return this.getAttribute("subgrid-gap--tablet");
|
|
1289
1395
|
}
|
|
1290
1396
|
set subgridGapTablet(e) {
|
|
1291
|
-
|
|
1397
|
+
a(this, "subgrid-gap--tablet", e);
|
|
1292
1398
|
}
|
|
1293
1399
|
get subgridGapLaptop() {
|
|
1294
1400
|
return this.getAttribute("subgrid-gap--laptop");
|
|
1295
1401
|
}
|
|
1296
1402
|
set subgridGapLaptop(e) {
|
|
1297
|
-
|
|
1403
|
+
a(this, "subgrid-gap--laptop", e);
|
|
1298
1404
|
}
|
|
1299
1405
|
};
|
|
1300
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1406
|
+
customElements.get("px-container") || customElements.define("px-container", M);
|
|
1301
1407
|
//#endregion
|
|
1302
1408
|
//#region ../Layout/src/Stack.css?inline
|
|
1303
|
-
var
|
|
1304
|
-
|
|
1305
|
-
var
|
|
1306
|
-
|
|
1307
|
-
var
|
|
1409
|
+
var N = ":host{--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){.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){.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){.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();
|
|
1410
|
+
P.replaceSync(N);
|
|
1411
|
+
var F = document.createElement("template");
|
|
1412
|
+
F.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
1413
|
+
var I = [
|
|
1308
1414
|
"",
|
|
1309
1415
|
"default",
|
|
1310
1416
|
"row",
|
|
1311
1417
|
"row-reverse",
|
|
1312
1418
|
"column",
|
|
1313
1419
|
"column-reverse"
|
|
1314
|
-
],
|
|
1420
|
+
], L = [
|
|
1315
1421
|
"",
|
|
1316
1422
|
"default",
|
|
1317
1423
|
"stretch",
|
|
@@ -1321,7 +1427,7 @@ var V = [
|
|
|
1321
1427
|
"end",
|
|
1322
1428
|
"center",
|
|
1323
1429
|
"baseline"
|
|
1324
|
-
],
|
|
1430
|
+
], R = [
|
|
1325
1431
|
"",
|
|
1326
1432
|
"default",
|
|
1327
1433
|
"flex-start",
|
|
@@ -1332,21 +1438,21 @@ var V = [
|
|
|
1332
1438
|
"space-between",
|
|
1333
1439
|
"space-around",
|
|
1334
1440
|
"space-evenly"
|
|
1335
|
-
],
|
|
1441
|
+
], ge = [
|
|
1336
1442
|
"",
|
|
1337
1443
|
"default",
|
|
1338
1444
|
"nowrap",
|
|
1339
1445
|
"wrap",
|
|
1340
1446
|
"wrap-reverse"
|
|
1341
|
-
],
|
|
1447
|
+
], z = [
|
|
1342
1448
|
"",
|
|
1343
1449
|
"visible",
|
|
1344
1450
|
"hidden",
|
|
1345
1451
|
"scroll",
|
|
1346
1452
|
"auto"
|
|
1347
|
-
],
|
|
1453
|
+
], B = class e extends v {
|
|
1348
1454
|
constructor() {
|
|
1349
|
-
super(
|
|
1455
|
+
super(P), this.overflowXAttributeDelegate = new de(this, "overflow-x", (e) => e, "--overflow-x"), this.shadowRoot.firstChild || this.shadowRoot.appendChild(document.importNode(F.content, !0));
|
|
1350
1456
|
}
|
|
1351
1457
|
connectedCallback() {}
|
|
1352
1458
|
static get observedAttributes() {
|
|
@@ -1401,35 +1507,35 @@ var V = [
|
|
|
1401
1507
|
case "gap--tablet":
|
|
1402
1508
|
case "gap--laptop":
|
|
1403
1509
|
case "gap--desktop":
|
|
1404
|
-
this.updateFlexProperties(e, t, n,
|
|
1510
|
+
this.updateFlexProperties(e, t, n, h);
|
|
1405
1511
|
break;
|
|
1406
1512
|
case "justify-content":
|
|
1407
1513
|
case "justify-content--mobile":
|
|
1408
1514
|
case "justify-content--tablet":
|
|
1409
1515
|
case "justify-content--laptop":
|
|
1410
1516
|
case "justify-content--desktop":
|
|
1411
|
-
this.updateFlexProperties(e, t, n,
|
|
1517
|
+
this.updateFlexProperties(e, t, n, R);
|
|
1412
1518
|
break;
|
|
1413
1519
|
case "align-items":
|
|
1414
1520
|
case "align-items--mobile":
|
|
1415
1521
|
case "align-items--tablet":
|
|
1416
1522
|
case "align-items--laptop":
|
|
1417
1523
|
case "align-items--desktop":
|
|
1418
|
-
this.updateFlexProperties(e, t, n,
|
|
1524
|
+
this.updateFlexProperties(e, t, n, L);
|
|
1419
1525
|
break;
|
|
1420
1526
|
case "wrap":
|
|
1421
1527
|
case "wrap--mobile":
|
|
1422
1528
|
case "wrap--tablet":
|
|
1423
1529
|
case "wrap--laptop":
|
|
1424
1530
|
case "wrap--desktop":
|
|
1425
|
-
this.updateFlexProperties(e, t, n,
|
|
1531
|
+
this.updateFlexProperties(e, t, n, ge);
|
|
1426
1532
|
break;
|
|
1427
1533
|
case "direction":
|
|
1428
1534
|
case "direction--mobile":
|
|
1429
1535
|
case "direction--tablet":
|
|
1430
1536
|
case "direction--laptop":
|
|
1431
1537
|
case "direction--desktop":
|
|
1432
|
-
this.updateFlexProperties(e, t, n,
|
|
1538
|
+
this.updateFlexProperties(e, t, n, I), this.updateVerticalStyles();
|
|
1433
1539
|
break;
|
|
1434
1540
|
case "overflow-y":
|
|
1435
1541
|
case "overflow-y--mobile":
|
|
@@ -1441,20 +1547,20 @@ var V = [
|
|
|
1441
1547
|
case "max-height--tablet":
|
|
1442
1548
|
case "max-height--laptop":
|
|
1443
1549
|
case "max-height--desktop":
|
|
1444
|
-
n && !this.isValidVerticalValue(e, n) &&
|
|
1550
|
+
n && !this.isValidVerticalValue(e, n) && r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
1445
1551
|
break;
|
|
1446
1552
|
case "overflow-x":
|
|
1447
1553
|
case "overflow-x--mobile":
|
|
1448
1554
|
case "overflow-x--tablet":
|
|
1449
1555
|
case "overflow-x--laptop":
|
|
1450
1556
|
case "overflow-x--desktop":
|
|
1451
|
-
this.updateOverflowX(e, t, n,
|
|
1557
|
+
this.updateOverflowX(e, t, n, z);
|
|
1452
1558
|
break;
|
|
1453
1559
|
default: super.attributeChangedCallback(e, t, n);
|
|
1454
1560
|
}
|
|
1455
1561
|
}
|
|
1456
1562
|
isValidVerticalValue(e, t) {
|
|
1457
|
-
return e.startsWith("overflow-y") ?
|
|
1563
|
+
return e.startsWith("overflow-y") ? z.includes(t) : CSS.supports("max-height", t);
|
|
1458
1564
|
}
|
|
1459
1565
|
updateVerticalStyles() {
|
|
1460
1566
|
for (let t of e.breakpoints) {
|
|
@@ -1465,16 +1571,16 @@ var V = [
|
|
|
1465
1571
|
}
|
|
1466
1572
|
}
|
|
1467
1573
|
}
|
|
1468
|
-
updateOverflowX(e, t, n,
|
|
1469
|
-
|
|
1574
|
+
updateOverflowX(e, t, n, i) {
|
|
1575
|
+
y(i, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
1470
1576
|
}
|
|
1471
|
-
updateFlexProperties(t, n,
|
|
1472
|
-
|
|
1577
|
+
updateFlexProperties(t, n, i, a) {
|
|
1578
|
+
i !== null && !this.checkName(a, i) && r(`"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join("\", \"")}".`);
|
|
1473
1579
|
let o = t.indexOf("--");
|
|
1474
|
-
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n,
|
|
1580
|
+
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n, i, a);
|
|
1475
1581
|
else {
|
|
1476
1582
|
let e = t.slice(0, o), n = t.slice(o + 2);
|
|
1477
|
-
this.updateStyle(e, n,
|
|
1583
|
+
this.updateStyle(e, n, i || this.getAttribute(e), a);
|
|
1478
1584
|
}
|
|
1479
1585
|
}
|
|
1480
1586
|
updateStyle(e, t, n, r) {
|
|
@@ -1497,274 +1603,274 @@ var V = [
|
|
|
1497
1603
|
return this.getAttribute("direction") ?? "row";
|
|
1498
1604
|
}
|
|
1499
1605
|
set direction(e) {
|
|
1500
|
-
|
|
1606
|
+
a(this, "direction", e);
|
|
1501
1607
|
}
|
|
1502
1608
|
get directionMobile() {
|
|
1503
1609
|
return this.getAttribute("direction--mobile");
|
|
1504
1610
|
}
|
|
1505
1611
|
set directionMobile(e) {
|
|
1506
|
-
|
|
1612
|
+
a(this, "direction--mobile", e);
|
|
1507
1613
|
}
|
|
1508
1614
|
get directionTablet() {
|
|
1509
1615
|
return this.getAttribute("direction--tablet");
|
|
1510
1616
|
}
|
|
1511
1617
|
set directionTablet(e) {
|
|
1512
|
-
|
|
1618
|
+
a(this, "direction--tablet", e);
|
|
1513
1619
|
}
|
|
1514
1620
|
get directionLaptop() {
|
|
1515
1621
|
return this.getAttribute("direction--laptop");
|
|
1516
1622
|
}
|
|
1517
1623
|
set directionLaptop(e) {
|
|
1518
|
-
|
|
1624
|
+
a(this, "direction--laptop", e);
|
|
1519
1625
|
}
|
|
1520
1626
|
get directionDesktop() {
|
|
1521
1627
|
return this.getAttribute("direction--desktop");
|
|
1522
1628
|
}
|
|
1523
1629
|
set directionDesktop(e) {
|
|
1524
|
-
|
|
1630
|
+
a(this, "direction--desktop", e);
|
|
1525
1631
|
}
|
|
1526
1632
|
get gap() {
|
|
1527
1633
|
return this.getAttribute("gap") ?? "none";
|
|
1528
1634
|
}
|
|
1529
1635
|
set gap(e) {
|
|
1530
|
-
|
|
1636
|
+
a(this, "gap", e);
|
|
1531
1637
|
}
|
|
1532
1638
|
get gapMobile() {
|
|
1533
1639
|
return this.getAttribute("gap--mobile");
|
|
1534
1640
|
}
|
|
1535
1641
|
set gapMobile(e) {
|
|
1536
|
-
|
|
1642
|
+
a(this, "gap--mobile", e);
|
|
1537
1643
|
}
|
|
1538
1644
|
get gapTablet() {
|
|
1539
1645
|
return this.getAttribute("gap--tablet");
|
|
1540
1646
|
}
|
|
1541
1647
|
set gapTablet(e) {
|
|
1542
|
-
|
|
1648
|
+
a(this, "gap--tablet", e);
|
|
1543
1649
|
}
|
|
1544
1650
|
get gapLaptop() {
|
|
1545
1651
|
return this.getAttribute("gap--laptop");
|
|
1546
1652
|
}
|
|
1547
1653
|
set gapLaptop(e) {
|
|
1548
|
-
|
|
1654
|
+
a(this, "gap--laptop", e);
|
|
1549
1655
|
}
|
|
1550
1656
|
get gapDesktop() {
|
|
1551
1657
|
return this.getAttribute("gap--desktop");
|
|
1552
1658
|
}
|
|
1553
1659
|
set gapDesktop(e) {
|
|
1554
|
-
|
|
1660
|
+
a(this, "gap--desktop", e);
|
|
1555
1661
|
}
|
|
1556
1662
|
get justifyContent() {
|
|
1557
1663
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
1558
1664
|
}
|
|
1559
1665
|
set justifyContent(e) {
|
|
1560
|
-
|
|
1666
|
+
a(this, "justify-content", e);
|
|
1561
1667
|
}
|
|
1562
1668
|
get justifyContentMobile() {
|
|
1563
1669
|
return this.getAttribute("justify-content--mobile");
|
|
1564
1670
|
}
|
|
1565
1671
|
set justifyContentMobile(e) {
|
|
1566
|
-
|
|
1672
|
+
a(this, "justify-content--mobile", e);
|
|
1567
1673
|
}
|
|
1568
1674
|
get justifyContentTablet() {
|
|
1569
1675
|
return this.getAttribute("justify-content--tablet");
|
|
1570
1676
|
}
|
|
1571
1677
|
set justifyContentTablet(e) {
|
|
1572
|
-
|
|
1678
|
+
a(this, "justify-content--tablet", e);
|
|
1573
1679
|
}
|
|
1574
1680
|
get justifyContentLaptop() {
|
|
1575
1681
|
return this.getAttribute("justify-content--laptop");
|
|
1576
1682
|
}
|
|
1577
1683
|
set justifyContentLaptop(e) {
|
|
1578
|
-
|
|
1684
|
+
a(this, "justify-content--laptop", e);
|
|
1579
1685
|
}
|
|
1580
1686
|
get justifyContentDesktop() {
|
|
1581
1687
|
return this.getAttribute("justify-content--desktop");
|
|
1582
1688
|
}
|
|
1583
1689
|
set justifyContentDesktop(e) {
|
|
1584
|
-
|
|
1690
|
+
a(this, "justify-content--desktop", e);
|
|
1585
1691
|
}
|
|
1586
1692
|
get alignItems() {
|
|
1587
1693
|
return this.getAttribute("align-items") ?? "stretch";
|
|
1588
1694
|
}
|
|
1589
1695
|
set alignItems(e) {
|
|
1590
|
-
|
|
1696
|
+
a(this, "align-items", e);
|
|
1591
1697
|
}
|
|
1592
1698
|
get alignItemsMobile() {
|
|
1593
1699
|
return this.getAttribute("align-items--mobile");
|
|
1594
1700
|
}
|
|
1595
1701
|
set alignItemsMobile(e) {
|
|
1596
|
-
|
|
1702
|
+
a(this, "align-items--mobile", e);
|
|
1597
1703
|
}
|
|
1598
1704
|
get alignItemsTablet() {
|
|
1599
1705
|
return this.getAttribute("align-items--tablet");
|
|
1600
1706
|
}
|
|
1601
1707
|
set alignItemsTablet(e) {
|
|
1602
|
-
|
|
1708
|
+
a(this, "align-items--tablet", e);
|
|
1603
1709
|
}
|
|
1604
1710
|
get alignItemsLaptop() {
|
|
1605
1711
|
return this.getAttribute("align-items--laptop");
|
|
1606
1712
|
}
|
|
1607
1713
|
set alignItemsLaptop(e) {
|
|
1608
|
-
|
|
1714
|
+
a(this, "align-items--laptop", e);
|
|
1609
1715
|
}
|
|
1610
1716
|
get alignItemsDesktop() {
|
|
1611
1717
|
return this.getAttribute("align-items--desktop");
|
|
1612
1718
|
}
|
|
1613
1719
|
set alignItemsDesktop(e) {
|
|
1614
|
-
|
|
1720
|
+
a(this, "align-items--desktop", e);
|
|
1615
1721
|
}
|
|
1616
1722
|
get wrap() {
|
|
1617
1723
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
1618
1724
|
}
|
|
1619
1725
|
set wrap(e) {
|
|
1620
|
-
|
|
1726
|
+
a(this, "wrap", e);
|
|
1621
1727
|
}
|
|
1622
1728
|
get wrapMobile() {
|
|
1623
1729
|
return this.getAttribute("wrap--mobile");
|
|
1624
1730
|
}
|
|
1625
1731
|
set wrapMobile(e) {
|
|
1626
|
-
|
|
1732
|
+
a(this, "wrap--mobile", e);
|
|
1627
1733
|
}
|
|
1628
1734
|
get wrapTablet() {
|
|
1629
1735
|
return this.getAttribute("wrap--tablet");
|
|
1630
1736
|
}
|
|
1631
1737
|
set wrapTablet(e) {
|
|
1632
|
-
|
|
1738
|
+
a(this, "wrap--tablet", e);
|
|
1633
1739
|
}
|
|
1634
1740
|
get wrapLaptop() {
|
|
1635
1741
|
return this.getAttribute("wrap--laptop");
|
|
1636
1742
|
}
|
|
1637
1743
|
set wrapLaptop(e) {
|
|
1638
|
-
|
|
1744
|
+
a(this, "wrap--laptop", e);
|
|
1639
1745
|
}
|
|
1640
1746
|
get wrapDesktop() {
|
|
1641
1747
|
return this.getAttribute("wrap--desktop");
|
|
1642
1748
|
}
|
|
1643
1749
|
set wrapDesktop(e) {
|
|
1644
|
-
|
|
1750
|
+
a(this, "wrap--desktop", e);
|
|
1645
1751
|
}
|
|
1646
1752
|
get overflowX() {
|
|
1647
1753
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
1648
1754
|
}
|
|
1649
1755
|
set overflowX(e) {
|
|
1650
|
-
|
|
1756
|
+
a(this, "overflow-x", e);
|
|
1651
1757
|
}
|
|
1652
1758
|
get overflowXMobile() {
|
|
1653
1759
|
return this.getAttribute("overflow-x--mobile");
|
|
1654
1760
|
}
|
|
1655
1761
|
set overflowXMobile(e) {
|
|
1656
|
-
|
|
1762
|
+
a(this, "overflow-x--mobile", e);
|
|
1657
1763
|
}
|
|
1658
1764
|
get overflowXTablet() {
|
|
1659
1765
|
return this.getAttribute("overflow-x--tablet");
|
|
1660
1766
|
}
|
|
1661
1767
|
set overflowXTablet(e) {
|
|
1662
|
-
|
|
1768
|
+
a(this, "overflow-x--tablet", e);
|
|
1663
1769
|
}
|
|
1664
1770
|
get overflowXLaptop() {
|
|
1665
1771
|
return this.getAttribute("overflow-x--laptop");
|
|
1666
1772
|
}
|
|
1667
1773
|
set overflowXLaptop(e) {
|
|
1668
|
-
|
|
1774
|
+
a(this, "overflow-x--laptop", e);
|
|
1669
1775
|
}
|
|
1670
1776
|
get overflowXDesktop() {
|
|
1671
1777
|
return this.getAttribute("overflow-x--desktop");
|
|
1672
1778
|
}
|
|
1673
1779
|
set overflowXDesktop(e) {
|
|
1674
|
-
|
|
1780
|
+
a(this, "overflow-x--desktop", e);
|
|
1675
1781
|
}
|
|
1676
1782
|
get overflowY() {
|
|
1677
1783
|
return this.getAttribute("overflow-y") ?? "visible";
|
|
1678
1784
|
}
|
|
1679
1785
|
set overflowY(e) {
|
|
1680
|
-
|
|
1786
|
+
a(this, "overflow-y", e);
|
|
1681
1787
|
}
|
|
1682
1788
|
get overflowYMobile() {
|
|
1683
1789
|
return this.getAttribute("overflow-y--mobile");
|
|
1684
1790
|
}
|
|
1685
1791
|
set overflowYMobile(e) {
|
|
1686
|
-
|
|
1792
|
+
a(this, "overflow-y--mobile", e);
|
|
1687
1793
|
}
|
|
1688
1794
|
get overflowYTablet() {
|
|
1689
1795
|
return this.getAttribute("overflow-y--tablet");
|
|
1690
1796
|
}
|
|
1691
1797
|
set overflowYTablet(e) {
|
|
1692
|
-
|
|
1798
|
+
a(this, "overflow-y--tablet", e);
|
|
1693
1799
|
}
|
|
1694
1800
|
get overflowYLaptop() {
|
|
1695
1801
|
return this.getAttribute("overflow-y--laptop");
|
|
1696
1802
|
}
|
|
1697
1803
|
set overflowYLaptop(e) {
|
|
1698
|
-
|
|
1804
|
+
a(this, "overflow-y--laptop", e);
|
|
1699
1805
|
}
|
|
1700
1806
|
get overflowYDesktop() {
|
|
1701
1807
|
return this.getAttribute("overflow-y--desktop");
|
|
1702
1808
|
}
|
|
1703
1809
|
set overflowYDesktop(e) {
|
|
1704
|
-
|
|
1810
|
+
a(this, "overflow-y--desktop", e);
|
|
1705
1811
|
}
|
|
1706
1812
|
get maxHeight() {
|
|
1707
1813
|
return this.getAttribute("max-height") ?? "none";
|
|
1708
1814
|
}
|
|
1709
1815
|
set maxHeight(e) {
|
|
1710
|
-
|
|
1816
|
+
a(this, "max-height", e);
|
|
1711
1817
|
}
|
|
1712
1818
|
get maxHeightMobile() {
|
|
1713
1819
|
return this.getAttribute("max-height--mobile");
|
|
1714
1820
|
}
|
|
1715
1821
|
set maxHeightMobile(e) {
|
|
1716
|
-
|
|
1822
|
+
a(this, "max-height--mobile", e);
|
|
1717
1823
|
}
|
|
1718
1824
|
get maxHeightTablet() {
|
|
1719
1825
|
return this.getAttribute("max-height--tablet");
|
|
1720
1826
|
}
|
|
1721
1827
|
set maxHeightTablet(e) {
|
|
1722
|
-
|
|
1828
|
+
a(this, "max-height--tablet", e);
|
|
1723
1829
|
}
|
|
1724
1830
|
get maxHeightLaptop() {
|
|
1725
1831
|
return this.getAttribute("max-height--laptop");
|
|
1726
1832
|
}
|
|
1727
1833
|
set maxHeightLaptop(e) {
|
|
1728
|
-
|
|
1834
|
+
a(this, "max-height--laptop", e);
|
|
1729
1835
|
}
|
|
1730
1836
|
get maxHeightDesktop() {
|
|
1731
1837
|
return this.getAttribute("max-height--desktop");
|
|
1732
1838
|
}
|
|
1733
1839
|
set maxHeightDesktop(e) {
|
|
1734
|
-
|
|
1840
|
+
a(this, "max-height--desktop", e);
|
|
1735
1841
|
}
|
|
1736
1842
|
get $el() {
|
|
1737
1843
|
return this.shadowRoot.firstElementChild;
|
|
1738
1844
|
}
|
|
1739
1845
|
};
|
|
1740
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
1741
|
-
var
|
|
1846
|
+
customElements.get("px-stack") || customElements.define("px-stack", B);
|
|
1847
|
+
var V = (e) => e === "direction" || e.startsWith("direction--"), _e = class extends B {
|
|
1742
1848
|
get direction() {
|
|
1743
1849
|
return "column";
|
|
1744
1850
|
}
|
|
1745
1851
|
set direction(e) {
|
|
1746
|
-
|
|
1852
|
+
a(this, "direction", e);
|
|
1747
1853
|
}
|
|
1748
1854
|
attributeChangedCallback(e, t, n) {
|
|
1749
|
-
|
|
1855
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1750
1856
|
}
|
|
1751
1857
|
};
|
|
1752
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
1753
|
-
var
|
|
1858
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", _e);
|
|
1859
|
+
var ve = class extends B {
|
|
1754
1860
|
get direction() {
|
|
1755
1861
|
return "row";
|
|
1756
1862
|
}
|
|
1757
1863
|
set direction(e) {
|
|
1758
|
-
|
|
1864
|
+
a(this, "direction", e);
|
|
1759
1865
|
}
|
|
1760
1866
|
attributeChangedCallback(e, t, n) {
|
|
1761
|
-
|
|
1867
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1762
1868
|
}
|
|
1763
1869
|
};
|
|
1764
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
1870
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ve);
|
|
1765
1871
|
//#endregion
|
|
1766
1872
|
//#region ../Layout/src/Spacer.ts
|
|
1767
|
-
var
|
|
1873
|
+
var ye = class extends HTMLElement {
|
|
1768
1874
|
constructor() {
|
|
1769
1875
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1770
1876
|
}
|
|
@@ -1810,14 +1916,14 @@ var le = class extends HTMLElement {
|
|
|
1810
1916
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1811
1917
|
}
|
|
1812
1918
|
};
|
|
1813
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
1919
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ye);
|
|
1814
1920
|
//#endregion
|
|
1815
1921
|
//#region ../Layout/src/Page.css?inline
|
|
1816
|
-
var
|
|
1817
|
-
|
|
1818
|
-
var
|
|
1922
|
+
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();
|
|
1923
|
+
H.replaceSync(be);
|
|
1924
|
+
var xe = class extends v {
|
|
1819
1925
|
constructor() {
|
|
1820
|
-
super(
|
|
1926
|
+
super(H), this.template = () => `
|
|
1821
1927
|
<px-container border-radius="none" padding="none">
|
|
1822
1928
|
<px-vstack>
|
|
1823
1929
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1910,7 +2016,7 @@ var de = class extends S {
|
|
|
1910
2016
|
</px-container>
|
|
1911
2017
|
</px-vstack>
|
|
1912
2018
|
</px-container>
|
|
1913
|
-
`,
|
|
2019
|
+
`, E(this.shadowRoot, this.template());
|
|
1914
2020
|
}
|
|
1915
2021
|
static get observedAttributes() {
|
|
1916
2022
|
return [
|
|
@@ -1979,7 +2085,7 @@ var de = class extends S {
|
|
|
1979
2085
|
this.$bodyVStackContainer.setAttribute("gap", n);
|
|
1980
2086
|
break;
|
|
1981
2087
|
case "background-color":
|
|
1982
|
-
this.$bodyContainer.setAttribute("background-color",
|
|
2088
|
+
this.$bodyContainer.setAttribute("background-color", p.indexOf(n) > 0 ? n : "none");
|
|
1983
2089
|
break;
|
|
1984
2090
|
case "padding-vertical":
|
|
1985
2091
|
this.handlePaddingVerticalChange(n);
|
|
@@ -1997,10 +2103,10 @@ var de = class extends S {
|
|
|
1997
2103
|
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;
|
|
1998
2104
|
}
|
|
1999
2105
|
};
|
|
2000
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
2106
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", xe);
|
|
2001
2107
|
//#endregion
|
|
2002
2108
|
//#region ../Icon/common/src/IconSet.ts
|
|
2003
|
-
var
|
|
2109
|
+
var Se = class extends HTMLElement {
|
|
2004
2110
|
constructor() {
|
|
2005
2111
|
super();
|
|
2006
2112
|
}
|
|
@@ -2034,8 +2140,8 @@ var fe = class extends HTMLElement {
|
|
|
2034
2140
|
e && e.remove();
|
|
2035
2141
|
}
|
|
2036
2142
|
};
|
|
2037
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
2038
|
-
var
|
|
2143
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", Se);
|
|
2144
|
+
var Ce = [
|
|
2039
2145
|
"Inherit",
|
|
2040
2146
|
"Brand",
|
|
2041
2147
|
"Accent",
|
|
@@ -2049,11 +2155,11 @@ var pe = [
|
|
|
2049
2155
|
"StateHover",
|
|
2050
2156
|
"StateActive",
|
|
2051
2157
|
"StateDisabled"
|
|
2052
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
2053
|
-
|
|
2054
|
-
var
|
|
2158
|
+
].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();
|
|
2159
|
+
U.replaceSync(we);
|
|
2160
|
+
var Te = class e extends v {
|
|
2055
2161
|
static {
|
|
2056
|
-
this.template =
|
|
2162
|
+
this.template = T("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
2057
2163
|
}
|
|
2058
2164
|
#e = null;
|
|
2059
2165
|
#t;
|
|
@@ -2070,7 +2176,7 @@ var he = class e extends S {
|
|
|
2070
2176
|
];
|
|
2071
2177
|
}
|
|
2072
2178
|
constructor(...t) {
|
|
2073
|
-
super(...t,
|
|
2179
|
+
super(...t, U), E(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
2074
2180
|
}
|
|
2075
2181
|
attributeChangedCallback(e, t, n) {
|
|
2076
2182
|
if (t !== n) switch (e) {
|
|
@@ -2078,10 +2184,10 @@ var he = class e extends S {
|
|
|
2078
2184
|
this.updateName(t, n);
|
|
2079
2185
|
break;
|
|
2080
2186
|
case "size":
|
|
2081
|
-
this.updateAttribute(e, t, n,
|
|
2187
|
+
this.updateAttribute(e, t, n, ie);
|
|
2082
2188
|
break;
|
|
2083
2189
|
case "color":
|
|
2084
|
-
this.updateAttribute(e, t, n,
|
|
2190
|
+
this.updateAttribute(e, t, n, Ce);
|
|
2085
2191
|
break;
|
|
2086
2192
|
case "disabled":
|
|
2087
2193
|
this.color = "state-disabled";
|
|
@@ -2098,8 +2204,8 @@ var he = class e extends S {
|
|
|
2098
2204
|
for (let t of e) !t.getAttribute("name") || !t.getAttribute("src") ? console.error("Icon name or src not found") : t.getAttribute("name") === this.from && t.getAttribute("type") !== "font" && (this.#e = t.getAttribute("src"), this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${this.name}`));
|
|
2099
2205
|
!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"));
|
|
2100
2206
|
}
|
|
2101
|
-
updateAttribute(e, t, n,
|
|
2102
|
-
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(
|
|
2207
|
+
updateAttribute(e, t, n, i) {
|
|
2208
|
+
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()}`);
|
|
2103
2209
|
}
|
|
2104
2210
|
updateName(e, t) {
|
|
2105
2211
|
this.#e && this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${t}`);
|
|
@@ -2111,83 +2217,176 @@ var he = class e extends S {
|
|
|
2111
2217
|
return this.getAttribute("name");
|
|
2112
2218
|
}
|
|
2113
2219
|
set name(e) {
|
|
2114
|
-
|
|
2220
|
+
a(this, "name", e);
|
|
2115
2221
|
}
|
|
2116
2222
|
get size() {
|
|
2117
2223
|
return this.getAttribute("size");
|
|
2118
2224
|
}
|
|
2119
2225
|
set size(e) {
|
|
2120
|
-
|
|
2226
|
+
a(this, "size", e);
|
|
2121
2227
|
}
|
|
2122
2228
|
get color() {
|
|
2123
2229
|
return this.getAttribute("color");
|
|
2124
2230
|
}
|
|
2125
2231
|
set color(e) {
|
|
2126
|
-
|
|
2232
|
+
a(this, "color", e);
|
|
2127
2233
|
}
|
|
2128
2234
|
get arialabel() {
|
|
2129
2235
|
return this.getAttribute("aria-label");
|
|
2130
2236
|
}
|
|
2131
2237
|
set arialabel(e) {
|
|
2132
|
-
|
|
2238
|
+
a(this, "aria-label", e);
|
|
2133
2239
|
}
|
|
2134
2240
|
get inverted() {
|
|
2135
2241
|
return this.hasAttribute("inverted");
|
|
2136
2242
|
}
|
|
2137
2243
|
set inverted(e) {
|
|
2138
|
-
|
|
2244
|
+
o(this, "inverted", e);
|
|
2139
2245
|
}
|
|
2140
2246
|
get from() {
|
|
2141
2247
|
return this.getAttribute("from");
|
|
2142
2248
|
}
|
|
2143
2249
|
set from(e) {
|
|
2144
|
-
|
|
2250
|
+
a(this, "from", e);
|
|
2145
2251
|
}
|
|
2146
2252
|
get disabled() {
|
|
2147
2253
|
return this.hasAttribute("disabled");
|
|
2148
2254
|
}
|
|
2149
2255
|
set disabled(e) {
|
|
2150
|
-
|
|
2256
|
+
o(this, "disabled", e);
|
|
2151
2257
|
}
|
|
2152
2258
|
};
|
|
2153
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
2259
|
+
customElements.get("px-icon") || customElements.define("px-icon", Te);
|
|
2260
|
+
//#endregion
|
|
2261
|
+
//#region ../Span/src/span.css?inline
|
|
2262
|
+
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-desktop)}}@media screen and (width>=64.0625rem){span,::slotted(span){font-size:var(--px-text-size-body-m-desktop)}}", 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();
|
|
2263
|
+
W.replaceSync(Ee), G.replaceSync(De);
|
|
2264
|
+
var K = class e extends ue {
|
|
2265
|
+
static {
|
|
2266
|
+
this.template = T("<span><slot></slot></span>");
|
|
2267
|
+
}
|
|
2268
|
+
static {
|
|
2269
|
+
this.nativeName = "span";
|
|
2270
|
+
}
|
|
2271
|
+
static {
|
|
2272
|
+
this.nativeAttributes = {};
|
|
2273
|
+
}
|
|
2274
|
+
constructor() {
|
|
2275
|
+
super(W, G), E(this.shadowRoot, e.template);
|
|
2276
|
+
}
|
|
2277
|
+
static get observedAttributes() {
|
|
2278
|
+
return [
|
|
2279
|
+
...super.observedAttributes,
|
|
2280
|
+
"color",
|
|
2281
|
+
"font-size",
|
|
2282
|
+
"font-weight",
|
|
2283
|
+
"inverted",
|
|
2284
|
+
"disabled",
|
|
2285
|
+
"strikethrough"
|
|
2286
|
+
];
|
|
2287
|
+
}
|
|
2288
|
+
attributeChangedCallback(e, t, n) {
|
|
2289
|
+
if (t !== n) switch (e) {
|
|
2290
|
+
case "color":
|
|
2291
|
+
this.updateTypography(e, t, n, u);
|
|
2292
|
+
break;
|
|
2293
|
+
case "font-size":
|
|
2294
|
+
this.updateTypography(e, t, n, l);
|
|
2295
|
+
break;
|
|
2296
|
+
case "font-weight":
|
|
2297
|
+
this.updateTypography(e, t, n, re);
|
|
2298
|
+
break;
|
|
2299
|
+
case "disabled":
|
|
2300
|
+
this.color = "state-disabled";
|
|
2301
|
+
break;
|
|
2302
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
updateTypography(e, t, n, i) {
|
|
2306
|
+
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("\", \"")}".`);
|
|
2307
|
+
}
|
|
2308
|
+
get color() {
|
|
2309
|
+
return this.getAttribute("color");
|
|
2310
|
+
}
|
|
2311
|
+
set color(e) {
|
|
2312
|
+
this._updateAttribute("color", e);
|
|
2313
|
+
}
|
|
2314
|
+
get fontsize() {
|
|
2315
|
+
return this.getAttribute("font-size");
|
|
2316
|
+
}
|
|
2317
|
+
set fontsize(e) {
|
|
2318
|
+
this._updateAttribute("font-size", e);
|
|
2319
|
+
}
|
|
2320
|
+
get fontweight() {
|
|
2321
|
+
return this.getAttribute("font-weight");
|
|
2322
|
+
}
|
|
2323
|
+
set fontweight(e) {
|
|
2324
|
+
this._updateAttribute("font-weight", e);
|
|
2325
|
+
}
|
|
2326
|
+
get inverted() {
|
|
2327
|
+
return this.hasAttribute("inverted");
|
|
2328
|
+
}
|
|
2329
|
+
set inverted(e) {
|
|
2330
|
+
this._updateBooleanAttribute("inverted", e);
|
|
2331
|
+
}
|
|
2332
|
+
get strikethrough() {
|
|
2333
|
+
return this.hasAttribute("strikethrough");
|
|
2334
|
+
}
|
|
2335
|
+
set strikethrough(e) {
|
|
2336
|
+
this._updateBooleanAttribute("strikethrough", e);
|
|
2337
|
+
}
|
|
2338
|
+
get disabled() {
|
|
2339
|
+
return this.hasAttribute("disabled");
|
|
2340
|
+
}
|
|
2341
|
+
set disabled(e) {
|
|
2342
|
+
this._updateBooleanAttribute("disabled", e);
|
|
2343
|
+
}
|
|
2344
|
+
};
|
|
2345
|
+
customElements.get("px-span") || customElements.define("px-span", K);
|
|
2154
2346
|
//#endregion
|
|
2155
2347
|
//#region src/toaster.css?inline
|
|
2156
|
-
var
|
|
2157
|
-
|
|
2158
|
-
var
|
|
2348
|
+
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();
|
|
2349
|
+
q.replaceSync(Oe);
|
|
2350
|
+
var J = [
|
|
2159
2351
|
"",
|
|
2160
2352
|
"info",
|
|
2161
2353
|
"success",
|
|
2162
2354
|
"error",
|
|
2163
2355
|
"warning"
|
|
2164
|
-
],
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2356
|
+
], ke = "px.lavender.toaster.hide";
|
|
2357
|
+
function Y(e, t = !1) {
|
|
2358
|
+
let n = e === "dialog", r = `<px-hstack gap="s" align-items="flex-start" class="toaster-content">
|
|
2359
|
+
<slot name="visual"></slot>
|
|
2360
|
+
<div class="toaster-message" ${n ? "id=\"toaster-message\"" : ""}>
|
|
2361
|
+
<px-span shown--sr=""></px-span>
|
|
2362
|
+
<slot name="label"></slot>
|
|
2363
|
+
</div>
|
|
2364
|
+
<slot name="close-button"></slot>
|
|
2365
|
+
</px-hstack>`;
|
|
2366
|
+
return T(`<${e} popover="manual" ${n ? "aria-labelledby=\"toaster-message\"" : ""}>
|
|
2367
|
+
<px-container padding="s" background-color="surface-dark">
|
|
2368
|
+
${t ? `<px-vstack gap="s">${r}<px-hstack gap="s"><slot name="actions"></slot></px-hstack></px-vstack>` : r}
|
|
2369
|
+
</px-container>
|
|
2370
|
+
</${e}>`);
|
|
2371
|
+
}
|
|
2372
|
+
var X = class extends HTMLElement {
|
|
2168
2373
|
constructor() {
|
|
2169
|
-
super(), this.popoverButtonsCleanups = [], this.onHideClick = () => this.hide(), this.onShowClick = () => this.show()
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
this.isHovered = !1, this.resumeAutoHideTimeout();
|
|
2173
|
-
}, this.onFocusIn = (e) => {
|
|
2174
|
-
e.target !== this.$dialog && (this.isFocused = !0, this.pauseAutoHideTimeout());
|
|
2175
|
-
}, this.onFocusOut = (e) => {
|
|
2176
|
-
let t = e.relatedTarget;
|
|
2177
|
-
this.isFocused = !!t && t !== this.$dialog && (this.contains(t) || this.$dialog?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2178
|
-
};
|
|
2179
|
-
let t = this.attachShadow({ mode: "open" });
|
|
2180
|
-
t && (A(t, e.template), t.adoptedStyleSheets = [X]);
|
|
2374
|
+
super(), this.popoverButtonsCleanups = [], this.onHideClick = () => this.hide(), this.onShowClick = () => this.show();
|
|
2375
|
+
let e = this.attachShadow({ mode: "open" });
|
|
2376
|
+
E(e, this.constructor.template), e.adoptedStyleSheets = [q];
|
|
2181
2377
|
}
|
|
2182
2378
|
connectedCallback() {
|
|
2183
|
-
this.addEventListenersToHideButtons(), this
|
|
2379
|
+
this.addEventListenersToHideButtons(), this.hasAttribute("open") && this.show();
|
|
2380
|
+
}
|
|
2381
|
+
disconnectedCallback() {
|
|
2382
|
+
this.removePopoverButtonListeners();
|
|
2184
2383
|
}
|
|
2185
2384
|
static get observedAttributes() {
|
|
2186
2385
|
return [
|
|
2187
2386
|
"id",
|
|
2188
2387
|
"open",
|
|
2189
2388
|
"status",
|
|
2190
|
-
"
|
|
2389
|
+
"status-label",
|
|
2191
2390
|
"inverted"
|
|
2192
2391
|
];
|
|
2193
2392
|
}
|
|
@@ -2199,44 +2398,27 @@ var Z = [
|
|
|
2199
2398
|
case "open":
|
|
2200
2399
|
this.isConnected && this.handleOpenChange();
|
|
2201
2400
|
break;
|
|
2202
|
-
case "duration":
|
|
2203
|
-
this.remainingDuration = this.duration, this.startAutoHideTimeout();
|
|
2204
|
-
break;
|
|
2205
2401
|
case "status":
|
|
2206
|
-
this.handleStatusChange(n,
|
|
2402
|
+
this.handleStatusChange(n, J), this.handleStatusLabelChange();
|
|
2403
|
+
break;
|
|
2404
|
+
case "status-label":
|
|
2405
|
+
this.handleStatusLabelChange();
|
|
2207
2406
|
break;
|
|
2208
2407
|
case "inverted": this.handleInvertedChange();
|
|
2209
2408
|
}
|
|
2210
2409
|
}
|
|
2211
|
-
disconnectedCallback() {
|
|
2212
|
-
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);
|
|
2213
|
-
}
|
|
2214
2410
|
handleOpenChange() {
|
|
2215
2411
|
this.hasAttribute("open") ? this.show() : this.hide();
|
|
2216
2412
|
}
|
|
2217
2413
|
show() {
|
|
2218
|
-
this.$
|
|
2414
|
+
this.$popover?.showPopover();
|
|
2219
2415
|
}
|
|
2220
2416
|
hide() {
|
|
2221
|
-
this
|
|
2417
|
+
this.$popover?.hidePopover(), this.dispatchEvent(new CustomEvent(ke, {
|
|
2222
2418
|
bubbles: !0,
|
|
2223
2419
|
composed: !0
|
|
2224
2420
|
}));
|
|
2225
2421
|
}
|
|
2226
|
-
startAutoHideTimeout() {
|
|
2227
|
-
this.clearAutoHideTimeout(), !(!this.isVisible || this.isHovered || this.isFocused || this.remainingDuration === null || this.remainingDuration <= 0) && (this.timeoutStartedAt = Date.now(), this.autoHideTimeoutId = setTimeout(() => {
|
|
2228
|
-
this.remainingDuration = 0, this.hide();
|
|
2229
|
-
}, this.remainingDuration));
|
|
2230
|
-
}
|
|
2231
|
-
pauseAutoHideTimeout() {
|
|
2232
|
-
this.timeoutStartedAt !== null && this.remainingDuration !== null && (this.remainingDuration = Math.max(0, this.remainingDuration - (Date.now() - this.timeoutStartedAt))), this.clearAutoHideTimeout();
|
|
2233
|
-
}
|
|
2234
|
-
resumeAutoHideTimeout() {
|
|
2235
|
-
!this.isHovered && !this.isFocused && this.startAutoHideTimeout();
|
|
2236
|
-
}
|
|
2237
|
-
clearAutoHideTimeout() {
|
|
2238
|
-
this.autoHideTimeoutId !== null && (clearTimeout(this.autoHideTimeoutId), this.autoHideTimeoutId = null), this.timeoutStartedAt = null;
|
|
2239
|
-
}
|
|
2240
2422
|
showPopover() {
|
|
2241
2423
|
this.show();
|
|
2242
2424
|
}
|
|
@@ -2244,7 +2426,7 @@ var Z = [
|
|
|
2244
2426
|
this.hide();
|
|
2245
2427
|
}
|
|
2246
2428
|
handleInvertedChange() {
|
|
2247
|
-
this
|
|
2429
|
+
this.$pxContainer?.setAttribute("background-color", this.inverted ? "surface-light" : "surface-dark"), this.$statusIcon?.toggleAttribute("inverted", !this.inverted);
|
|
2248
2430
|
}
|
|
2249
2431
|
addEventListenersToHideButtons() {
|
|
2250
2432
|
this.removePopoverButtonListeners(), this.id && document.querySelectorAll(`[popovertarget="${this.id}"]`).forEach((e) => {
|
|
@@ -2255,27 +2437,36 @@ var Z = [
|
|
|
2255
2437
|
this.popoverButtonsCleanups.forEach((e) => e()), this.popoverButtonsCleanups = [];
|
|
2256
2438
|
}
|
|
2257
2439
|
handleStatusChange(e, t) {
|
|
2258
|
-
if (!
|
|
2259
|
-
|
|
2440
|
+
if (!e) {
|
|
2441
|
+
this.$statusIcon?.remove();
|
|
2442
|
+
return;
|
|
2443
|
+
}
|
|
2444
|
+
if (!y(t, e)) {
|
|
2445
|
+
r(`"${e}" is not a valid status value for ${this.tagName.toLowerCase()}.
|
|
2260
2446
|
Allowed values are: "${t.join("\", \"")}".`);
|
|
2261
2447
|
return;
|
|
2262
2448
|
}
|
|
2263
|
-
this.$
|
|
2264
|
-
|
|
2265
|
-
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);
|
|
2449
|
+
let n = this.$statusIcon ?? document.createElement("px-icon");
|
|
2450
|
+
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);
|
|
2266
2451
|
}
|
|
2267
|
-
|
|
2268
|
-
|
|
2452
|
+
handleStatusLabelChange() {
|
|
2453
|
+
this.$statusLabel && (this.$statusLabel.textContent = this.status && J.includes(this.status) ? this.statusLabel : "");
|
|
2269
2454
|
}
|
|
2270
2455
|
getIcon(e) {
|
|
2271
2456
|
return e === "success" ? "checkmark_fill" : e === "warning" ? "exclamation_mark_fill" : e === "error" ? "minus_fill" : "information_fill";
|
|
2272
2457
|
}
|
|
2273
|
-
get $
|
|
2274
|
-
return this.shadowRoot?.querySelector("
|
|
2458
|
+
get $popover() {
|
|
2459
|
+
return this.shadowRoot?.querySelector("[popover=\"manual\"]");
|
|
2275
2460
|
}
|
|
2276
2461
|
get $slotVisual() {
|
|
2277
2462
|
return this.shadowRoot?.querySelector("slot[name=\"visual\"]");
|
|
2278
2463
|
}
|
|
2464
|
+
get $statusLabel() {
|
|
2465
|
+
return this.$message?.querySelector("px-span[shown--sr]");
|
|
2466
|
+
}
|
|
2467
|
+
get $statusIcon() {
|
|
2468
|
+
return this.$slotVisual?.querySelector("px-icon");
|
|
2469
|
+
}
|
|
2279
2470
|
get $message() {
|
|
2280
2471
|
return this.shadowRoot?.querySelector(".toaster-message");
|
|
2281
2472
|
}
|
|
@@ -2286,29 +2477,97 @@ var Z = [
|
|
|
2286
2477
|
return this.getAttribute("status") || "";
|
|
2287
2478
|
}
|
|
2288
2479
|
set status(e) {
|
|
2289
|
-
|
|
2480
|
+
a(this, "status", e);
|
|
2481
|
+
}
|
|
2482
|
+
get statusLabel() {
|
|
2483
|
+
return this.getAttribute("status-label") || this.status;
|
|
2484
|
+
}
|
|
2485
|
+
set statusLabel(e) {
|
|
2486
|
+
a(this, "status-label", e);
|
|
2290
2487
|
}
|
|
2291
2488
|
get open() {
|
|
2292
2489
|
return this.hasAttribute("open");
|
|
2293
2490
|
}
|
|
2294
2491
|
set open(e) {
|
|
2295
|
-
|
|
2492
|
+
o(this, "open", e);
|
|
2493
|
+
}
|
|
2494
|
+
get inverted() {
|
|
2495
|
+
return this.hasAttribute("inverted");
|
|
2496
|
+
}
|
|
2497
|
+
set inverted(e) {
|
|
2498
|
+
o(this, "inverted", e);
|
|
2499
|
+
}
|
|
2500
|
+
}, Z = 0, Q = class extends X {
|
|
2501
|
+
constructor(...e) {
|
|
2502
|
+
super(...e), this.autoHideTimeoutId = null, this.timeoutStartedAt = null, this.remainingDuration = null, this.isVisible = !1, this.isHovered = !1, this.isFocused = !1, this.onPointerEnter = () => {
|
|
2503
|
+
this.isHovered = !0, this.pauseAutoHideTimeout();
|
|
2504
|
+
}, this.onPointerLeave = () => {
|
|
2505
|
+
this.isHovered = !1, this.resumeAutoHideTimeout();
|
|
2506
|
+
}, this.onFocusIn = (e) => {
|
|
2507
|
+
e.target !== this.$popover && (this.isFocused = !0, this.pauseAutoHideTimeout());
|
|
2508
|
+
}, this.onFocusOut = (e) => {
|
|
2509
|
+
let t = e.relatedTarget;
|
|
2510
|
+
this.isFocused = !!t && t !== this.$popover && (this.contains(t) || this.$popover?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
static {
|
|
2514
|
+
this.template = Y("div");
|
|
2515
|
+
}
|
|
2516
|
+
connectedCallback() {
|
|
2517
|
+
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();
|
|
2518
|
+
}
|
|
2519
|
+
static get observedAttributes() {
|
|
2520
|
+
return [...super.observedAttributes, "duration"];
|
|
2521
|
+
}
|
|
2522
|
+
attributeChangedCallback(e, t, n) {
|
|
2523
|
+
super.attributeChangedCallback(e, t, n), e === "duration" && t !== n && (this.remainingDuration = this.duration, this.startAutoHideTimeout());
|
|
2524
|
+
}
|
|
2525
|
+
disconnectedCallback() {
|
|
2526
|
+
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);
|
|
2527
|
+
}
|
|
2528
|
+
show() {
|
|
2529
|
+
super.show(), this.isVisible = !0, this.remainingDuration = this.duration, this.startAutoHideTimeout();
|
|
2530
|
+
}
|
|
2531
|
+
hide() {
|
|
2532
|
+
this.isVisible = !1, this.isHovered = !1, this.isFocused = !1, this.clearAutoHideTimeout(), this.remainingDuration = null, super.hide();
|
|
2533
|
+
}
|
|
2534
|
+
startAutoHideTimeout() {
|
|
2535
|
+
this.clearAutoHideTimeout(), !(!this.isVisible || this.isHovered || this.isFocused || this.remainingDuration === null || this.remainingDuration <= 0) && (this.timeoutStartedAt = Date.now(), this.autoHideTimeoutId = setTimeout(() => {
|
|
2536
|
+
this.remainingDuration = 0, this.hide();
|
|
2537
|
+
}, this.remainingDuration));
|
|
2538
|
+
}
|
|
2539
|
+
pauseAutoHideTimeout() {
|
|
2540
|
+
this.timeoutStartedAt !== null && this.remainingDuration !== null && (this.remainingDuration = Math.max(0, this.remainingDuration - (Date.now() - this.timeoutStartedAt))), this.clearAutoHideTimeout();
|
|
2541
|
+
}
|
|
2542
|
+
resumeAutoHideTimeout() {
|
|
2543
|
+
!this.isHovered && !this.isFocused && this.startAutoHideTimeout();
|
|
2544
|
+
}
|
|
2545
|
+
clearAutoHideTimeout() {
|
|
2546
|
+
this.autoHideTimeoutId !== null && (clearTimeout(this.autoHideTimeoutId), this.autoHideTimeoutId = null), this.timeoutStartedAt = null;
|
|
2547
|
+
}
|
|
2548
|
+
get $popover() {
|
|
2549
|
+
return this.shadowRoot?.querySelector("div[popover=\"manual\"]");
|
|
2296
2550
|
}
|
|
2297
2551
|
get duration() {
|
|
2298
|
-
if (!this.hasAttribute("duration")) return
|
|
2552
|
+
if (!this.hasAttribute("duration")) return Z;
|
|
2299
2553
|
let e = Number(this.getAttribute("duration"));
|
|
2300
|
-
return Number.isNaN(e) ?
|
|
2554
|
+
return Number.isNaN(e) ? Z : e;
|
|
2301
2555
|
}
|
|
2302
2556
|
set duration(e) {
|
|
2303
|
-
|
|
2557
|
+
a(this, "duration", e);
|
|
2304
2558
|
}
|
|
2305
|
-
|
|
2306
|
-
|
|
2559
|
+
};
|
|
2560
|
+
customElements.get("px-toaster") || customElements.define("px-toaster", Q);
|
|
2561
|
+
//#endregion
|
|
2562
|
+
//#region src/ToasterActionable.ts
|
|
2563
|
+
var $ = class extends X {
|
|
2564
|
+
static {
|
|
2565
|
+
this.template = Y("dialog", !0);
|
|
2307
2566
|
}
|
|
2308
|
-
|
|
2309
|
-
|
|
2567
|
+
get $popover() {
|
|
2568
|
+
return this.shadowRoot?.querySelector("dialog[popover=\"manual\"]");
|
|
2310
2569
|
}
|
|
2311
2570
|
};
|
|
2312
|
-
customElements.get("px-toaster") || customElements.define("px-toaster", $);
|
|
2571
|
+
customElements.get("px-toaster-actionable") || customElements.define("px-toaster-actionable", $);
|
|
2313
2572
|
//#endregion
|
|
2314
|
-
export {
|
|
2573
|
+
export { Q as Toaster, $ as ToasterActionable, J as toasterStatusValues };
|