@proximus/lavender-toaster 2.0.0-alpha.231 → 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 +575 -384
- 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,310 +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);
|
|
425
464
|
}
|
|
426
465
|
get shownSr() {
|
|
427
466
|
return this.hasAttribute("shown--sr");
|
|
428
467
|
}
|
|
429
468
|
set shownSr(e) {
|
|
430
|
-
|
|
469
|
+
o(this, "shown--sr", e);
|
|
431
470
|
}
|
|
432
471
|
get shownSrMobile() {
|
|
433
472
|
return this.hasAttribute("shown--sr--mobile");
|
|
434
473
|
}
|
|
435
474
|
set shownSrMobile(e) {
|
|
436
|
-
|
|
475
|
+
o(this, "shown--sr--mobile", e);
|
|
437
476
|
}
|
|
438
477
|
get shownSrTablet() {
|
|
439
478
|
return this.hasAttribute("shown--sr--tablet");
|
|
440
479
|
}
|
|
441
480
|
set shownSrTablet(e) {
|
|
442
|
-
|
|
481
|
+
o(this, "shown--sr--tablet", e);
|
|
443
482
|
}
|
|
444
483
|
get shownSrLaptop() {
|
|
445
484
|
return this.hasAttribute("shown--sr--laptop");
|
|
446
485
|
}
|
|
447
486
|
set shownSrLaptop(e) {
|
|
448
|
-
|
|
487
|
+
o(this, "shown--sr--laptop", e);
|
|
449
488
|
}
|
|
450
489
|
get shownSrDesktop() {
|
|
451
490
|
return this.hasAttribute("shown--sr--desktop");
|
|
452
491
|
}
|
|
453
492
|
set shownSrDesktop(e) {
|
|
454
|
-
|
|
493
|
+
o(this, "shown--sr--desktop", e);
|
|
455
494
|
}
|
|
456
495
|
get colSpan() {
|
|
457
496
|
return this.getAttribute("col-span");
|
|
458
497
|
}
|
|
459
498
|
set colSpan(e) {
|
|
460
|
-
|
|
499
|
+
a(this, "col-span", e);
|
|
461
500
|
}
|
|
462
501
|
get colSpanMobile() {
|
|
463
502
|
return this.getAttribute("col-span--mobile");
|
|
464
503
|
}
|
|
465
504
|
set colSpanMobile(e) {
|
|
466
|
-
|
|
505
|
+
a(this, "col-span--mobile", e);
|
|
467
506
|
}
|
|
468
507
|
get colSpanTablet() {
|
|
469
508
|
return this.getAttribute("col-span--tablet");
|
|
470
509
|
}
|
|
471
510
|
set colSpanTablet(e) {
|
|
472
|
-
|
|
511
|
+
a(this, "col-span--tablet", e);
|
|
473
512
|
}
|
|
474
513
|
get colSpanLaptop() {
|
|
475
514
|
return this.getAttribute("col-span--laptop");
|
|
476
515
|
}
|
|
477
516
|
set colSpanLaptop(e) {
|
|
478
|
-
|
|
517
|
+
a(this, "col-span--laptop", e);
|
|
479
518
|
}
|
|
480
519
|
get colSpanDesktop() {
|
|
481
520
|
return this.getAttribute("col-span--desktop");
|
|
482
521
|
}
|
|
483
522
|
set colSpanDesktop(e) {
|
|
484
|
-
|
|
523
|
+
a(this, "col-span--desktop", e);
|
|
485
524
|
}
|
|
486
525
|
get order() {
|
|
487
526
|
return this.getAttribute("order");
|
|
488
527
|
}
|
|
489
528
|
set order(e) {
|
|
490
|
-
|
|
529
|
+
a(this, "order", e);
|
|
491
530
|
}
|
|
492
531
|
get orderMobile() {
|
|
493
532
|
return this.getAttribute("order--mobile");
|
|
494
533
|
}
|
|
495
534
|
set orderMobile(e) {
|
|
496
|
-
|
|
535
|
+
a(this, "order--mobile", e);
|
|
497
536
|
}
|
|
498
537
|
get orderTablet() {
|
|
499
538
|
return this.getAttribute("order--tablet");
|
|
500
539
|
}
|
|
501
540
|
set orderTablet(e) {
|
|
502
|
-
|
|
541
|
+
a(this, "order--tablet", e);
|
|
503
542
|
}
|
|
504
543
|
get orderLaptop() {
|
|
505
544
|
return this.getAttribute("order--laptop");
|
|
506
545
|
}
|
|
507
546
|
set orderLaptop(e) {
|
|
508
|
-
|
|
547
|
+
a(this, "order--laptop", e);
|
|
509
548
|
}
|
|
510
549
|
get orderDesktop() {
|
|
511
550
|
return this.getAttribute("order--desktop");
|
|
512
551
|
}
|
|
513
552
|
set orderDesktop(e) {
|
|
514
|
-
|
|
553
|
+
a(this, "order--desktop", e);
|
|
515
554
|
}
|
|
516
555
|
get stickyTop() {
|
|
517
556
|
return this.hasAttribute("sticky-top");
|
|
518
557
|
}
|
|
519
558
|
set stickyTop(e) {
|
|
520
|
-
|
|
559
|
+
o(this, "sticky-top", e);
|
|
521
560
|
}
|
|
522
561
|
get stickyBottom() {
|
|
523
562
|
return this.hasAttribute("sticky-bottom");
|
|
524
563
|
}
|
|
525
564
|
set stickyBottom(e) {
|
|
526
|
-
|
|
565
|
+
o(this, "sticky-bottom", e);
|
|
527
566
|
}
|
|
528
567
|
get wordBreakAll() {
|
|
529
568
|
return this.hasAttribute("word-break-all");
|
|
530
569
|
}
|
|
531
570
|
set wordBreakAll(e) {
|
|
532
|
-
|
|
571
|
+
o(this, "word-break-all", e);
|
|
533
572
|
}
|
|
534
573
|
get wordBreakAllMobile() {
|
|
535
574
|
return this.hasAttribute("word-break-all--mobile");
|
|
536
575
|
}
|
|
537
576
|
set wordBreakAllMobile(e) {
|
|
538
|
-
|
|
577
|
+
o(this, "word-break-all--mobile", e);
|
|
539
578
|
}
|
|
540
579
|
get wordBreakAllTablet() {
|
|
541
580
|
return this.hasAttribute("word-break-all--tablet");
|
|
542
581
|
}
|
|
543
582
|
set wordBreakAllTablet(e) {
|
|
544
|
-
|
|
583
|
+
o(this, "word-break-all--tablet", e);
|
|
545
584
|
}
|
|
546
585
|
get wordBreakAllLaptop() {
|
|
547
586
|
return this.hasAttribute("word-break-all--laptop");
|
|
548
587
|
}
|
|
549
588
|
set wordBreakAllLaptop(e) {
|
|
550
|
-
|
|
589
|
+
o(this, "word-break-all--laptop", e);
|
|
551
590
|
}
|
|
552
591
|
get wordBreakAllDesktop() {
|
|
553
592
|
return this.hasAttribute("word-break-all--desktop");
|
|
554
593
|
}
|
|
555
594
|
set wordBreakAllDesktop(e) {
|
|
556
|
-
|
|
595
|
+
o(this, "word-break-all--desktop", e);
|
|
557
596
|
}
|
|
558
|
-
}
|
|
559
|
-
(class extends S {
|
|
597
|
+
}, ue = class extends v {
|
|
560
598
|
static {
|
|
561
599
|
this.nativeAttributes = {};
|
|
562
600
|
}
|
|
@@ -618,32 +656,32 @@ var S = class e extends HTMLElement {
|
|
|
618
656
|
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
619
657
|
}
|
|
620
658
|
_updateAttribute(e, t) {
|
|
621
|
-
|
|
659
|
+
a(this, e, t);
|
|
622
660
|
}
|
|
623
661
|
_updateBooleanAttribute(e, t) {
|
|
624
|
-
|
|
662
|
+
o(this, e, t);
|
|
625
663
|
}
|
|
626
|
-
}
|
|
664
|
+
};
|
|
627
665
|
//#endregion
|
|
628
666
|
//#region ../common/src/utilities.ts
|
|
629
|
-
function
|
|
667
|
+
function y(e, t) {
|
|
630
668
|
return t !== null && e.includes(t);
|
|
631
669
|
}
|
|
632
670
|
//#endregion
|
|
633
671
|
//#region ../common/src/nativeProperties.ts
|
|
634
|
-
var
|
|
672
|
+
var b = {
|
|
635
673
|
validity: "readonly",
|
|
636
674
|
validationMessage: "readonly",
|
|
637
675
|
willValidate: "readonly"
|
|
638
|
-
},
|
|
676
|
+
}, x = [
|
|
639
677
|
"checkValidity",
|
|
640
678
|
"reportValidity",
|
|
641
679
|
"setCustomValidity"
|
|
642
680
|
];
|
|
643
|
-
({ ...
|
|
681
|
+
({ ...b }), [...x], { ...b }, [...x], { ...b }, [...x], { ...b }, [...x], { ...b }, [...x];
|
|
644
682
|
//#endregion
|
|
645
683
|
//#region ../common/src/breakpoints.ts
|
|
646
|
-
function
|
|
684
|
+
function S(e, t, n, r = "", i, a = e) {
|
|
647
685
|
let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
|
|
648
686
|
${t(a, o)} {
|
|
649
687
|
${e}: var(--${r}-${o}-desktop);
|
|
@@ -686,7 +724,7 @@ function E(e, t, n, r = "", i, a = e) {
|
|
|
686
724
|
}`, "");
|
|
687
725
|
return o.replaceSync(s), o;
|
|
688
726
|
}
|
|
689
|
-
var
|
|
727
|
+
var de = class {
|
|
690
728
|
constructor(e, t, n, r) {
|
|
691
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), {
|
|
692
730
|
get: () => this.component.getAttribute(this.attributeName),
|
|
@@ -732,33 +770,33 @@ var ie = class {
|
|
|
732
770
|
set attributeValue(e) {
|
|
733
771
|
this._attributeValue = e, this.setCSSProperties();
|
|
734
772
|
}
|
|
735
|
-
},
|
|
736
|
-
function
|
|
773
|
+
}, C = /* @__PURE__ */ new Map(), fe = 500;
|
|
774
|
+
function w(e) {
|
|
737
775
|
let t = document.createElement("template");
|
|
738
776
|
return t.innerHTML = e, t;
|
|
739
777
|
}
|
|
740
|
-
function
|
|
741
|
-
return
|
|
778
|
+
function T(e) {
|
|
779
|
+
return w(e);
|
|
742
780
|
}
|
|
743
|
-
function
|
|
744
|
-
let t =
|
|
745
|
-
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;
|
|
746
784
|
}
|
|
747
|
-
function
|
|
748
|
-
let n = typeof t == "string" ?
|
|
785
|
+
function E(e, t) {
|
|
786
|
+
let n = typeof t == "string" ? pe(t) : t;
|
|
749
787
|
e.replaceChildren(document.importNode(n.content, !0));
|
|
750
788
|
}
|
|
751
789
|
//#endregion
|
|
752
|
-
//#region ../Container/src/
|
|
753
|
-
var j = new CSSStyleSheet();
|
|
754
|
-
|
|
755
|
-
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 = [
|
|
756
794
|
"top-patch",
|
|
757
795
|
"top-neighbor-patch",
|
|
758
796
|
"top-ribbon",
|
|
759
797
|
"top-neighbor-ribbon",
|
|
760
798
|
"top-patch-and-neighbor-ribbon"
|
|
761
|
-
],
|
|
799
|
+
], O = [
|
|
762
800
|
"1",
|
|
763
801
|
"2",
|
|
764
802
|
"3",
|
|
@@ -771,24 +809,24 @@ var M = [
|
|
|
771
809
|
"10",
|
|
772
810
|
"11",
|
|
773
811
|
"12"
|
|
774
|
-
],
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
],
|
|
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 {
|
|
784
822
|
static {
|
|
785
|
-
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>");
|
|
786
824
|
}
|
|
787
825
|
static {
|
|
788
826
|
this.nativeName = "div";
|
|
789
827
|
}
|
|
790
828
|
constructor() {
|
|
791
|
-
super(
|
|
829
|
+
super(D, ...j), this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, E(this.shadowRoot, e.template);
|
|
792
830
|
}
|
|
793
831
|
static get observedAttributes() {
|
|
794
832
|
return [
|
|
@@ -844,7 +882,7 @@ var M = [
|
|
|
844
882
|
attributeChangedCallback(e, t, n) {
|
|
845
883
|
if (t !== n) switch (e) {
|
|
846
884
|
case "border":
|
|
847
|
-
this.updateAttribute(e, t, n,
|
|
885
|
+
this.updateAttribute(e, t, n, ae);
|
|
848
886
|
break;
|
|
849
887
|
case "border-color":
|
|
850
888
|
this.updateBorderColor(e, n);
|
|
@@ -853,16 +891,16 @@ var M = [
|
|
|
853
891
|
case "border-side--mobile":
|
|
854
892
|
case "border-side--tablet":
|
|
855
893
|
case "border-side--laptop":
|
|
856
|
-
this.updateAttribute(e, t, n,
|
|
894
|
+
this.updateAttribute(e, t, n, se);
|
|
857
895
|
break;
|
|
858
896
|
case "border-radius":
|
|
859
|
-
this.updateAttribute(e, t, n,
|
|
897
|
+
this.updateAttribute(e, t, n, oe);
|
|
860
898
|
break;
|
|
861
899
|
case "no-border-radius":
|
|
862
900
|
case "no-border-radius--mobile":
|
|
863
901
|
case "no-border-radius--tablet":
|
|
864
902
|
case "no-border-radius--laptop":
|
|
865
|
-
this.updateNoBorderRadius(e, t, n,
|
|
903
|
+
this.updateNoBorderRadius(e, t, n, g);
|
|
866
904
|
break;
|
|
867
905
|
case "background-color":
|
|
868
906
|
case "background-color--mobile":
|
|
@@ -877,7 +915,7 @@ var M = [
|
|
|
877
915
|
this.updateGradient(e, n);
|
|
878
916
|
break;
|
|
879
917
|
case "background-size":
|
|
880
|
-
this.updateAttribute(e, t, n,
|
|
918
|
+
this.updateAttribute(e, t, n, ce);
|
|
881
919
|
break;
|
|
882
920
|
case "background-image":
|
|
883
921
|
case "background-image--mobile":
|
|
@@ -889,16 +927,16 @@ var M = [
|
|
|
889
927
|
n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
|
|
890
928
|
break;
|
|
891
929
|
case "box-shadow":
|
|
892
|
-
this.updateAttribute(e, t, n,
|
|
930
|
+
this.updateAttribute(e, t, n, le);
|
|
893
931
|
break;
|
|
894
932
|
case "anchor-offset":
|
|
895
|
-
this.updateAnchorOffset(t, n,
|
|
933
|
+
this.updateAnchorOffset(t, n, d);
|
|
896
934
|
break;
|
|
897
935
|
case "anchor-spacing":
|
|
898
|
-
this.updateAnchorSpacing(t, n,
|
|
936
|
+
this.updateAnchorSpacing(t, n, he);
|
|
899
937
|
break;
|
|
900
938
|
case "subgrid-rows":
|
|
901
|
-
this.updateSubgridRows(e, t, n,
|
|
939
|
+
this.updateSubgridRows(e, t, n, O);
|
|
902
940
|
break;
|
|
903
941
|
default: super.attributeChangedCallback(e, t, n);
|
|
904
942
|
}
|
|
@@ -918,28 +956,28 @@ var M = [
|
|
|
918
956
|
this.$el.style.setProperty(`--${e}`, `url("${t}")`);
|
|
919
957
|
}
|
|
920
958
|
updateGradient(e, t) {
|
|
921
|
-
let { attrName: n, breakpoint:
|
|
922
|
-
t === null ? this.$el.style.removeProperty(a) : this.checkName(
|
|
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("\", \"")}".`);
|
|
923
961
|
}
|
|
924
962
|
updateBackgroundColor(e, t) {
|
|
925
963
|
let n = t.startsWith("surface-");
|
|
926
|
-
if (this.checkName(
|
|
964
|
+
if (this.checkName(p, t)) {
|
|
927
965
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
928
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"})`);
|
|
929
|
-
} else
|
|
967
|
+
} else r(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${p.join("\", \"")}".`);
|
|
930
968
|
}
|
|
931
969
|
updateBorderColor(e, t) {
|
|
932
|
-
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("\", \"")}".`);
|
|
933
971
|
}
|
|
934
|
-
updateNoBorderRadius(e, t, n,
|
|
935
|
-
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("\", \"")}".`);
|
|
936
974
|
else {
|
|
937
975
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
938
976
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
939
977
|
}
|
|
940
978
|
}
|
|
941
|
-
updateAttribute(e, t, n,
|
|
942
|
-
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("\", \"")}".`);
|
|
943
981
|
else {
|
|
944
982
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
945
983
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
@@ -961,30 +999,30 @@ var M = [
|
|
|
961
999
|
};
|
|
962
1000
|
}
|
|
963
1001
|
updateAnchorOffset(e, t, n) {
|
|
964
|
-
if (!
|
|
965
|
-
|
|
1002
|
+
if (!y(n, t)) {
|
|
1003
|
+
r(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
966
1004
|
return;
|
|
967
1005
|
}
|
|
968
|
-
let
|
|
1006
|
+
let i = (e) => {
|
|
969
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)`));
|
|
970
1008
|
};
|
|
971
|
-
|
|
1009
|
+
i(e), i(t);
|
|
972
1010
|
}
|
|
973
1011
|
addAnchorClass() {
|
|
974
1012
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
975
1013
|
}
|
|
976
1014
|
updateAnchorSpacing(e, t, n) {
|
|
977
|
-
if (!
|
|
978
|
-
|
|
1015
|
+
if (!y(n, t)) {
|
|
1016
|
+
r(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
979
1017
|
return;
|
|
980
1018
|
}
|
|
981
|
-
let
|
|
1019
|
+
let i = (e) => {
|
|
982
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)`));
|
|
983
1021
|
};
|
|
984
|
-
|
|
1022
|
+
i(e), i(t);
|
|
985
1023
|
}
|
|
986
|
-
updateSubgridRows(e, t, n,
|
|
987
|
-
|
|
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("\", \"")}".`);
|
|
988
1026
|
}
|
|
989
1027
|
get $el() {
|
|
990
1028
|
return this?.shadowRoot?.querySelector(".container");
|
|
@@ -996,390 +1034,390 @@ var M = [
|
|
|
996
1034
|
return this.getAttribute("padding");
|
|
997
1035
|
}
|
|
998
1036
|
set padding(e) {
|
|
999
|
-
|
|
1037
|
+
a(this, "padding", e);
|
|
1000
1038
|
}
|
|
1001
1039
|
get paddingBlock() {
|
|
1002
1040
|
return this.getAttribute("padding-block");
|
|
1003
1041
|
}
|
|
1004
1042
|
set paddingBlock(e) {
|
|
1005
|
-
|
|
1043
|
+
a(this, "padding-block", e);
|
|
1006
1044
|
}
|
|
1007
1045
|
get paddingInline() {
|
|
1008
1046
|
return this.getAttribute("padding-inline");
|
|
1009
1047
|
}
|
|
1010
1048
|
set paddingInline(e) {
|
|
1011
|
-
|
|
1049
|
+
a(this, "padding-inline", e);
|
|
1012
1050
|
}
|
|
1013
1051
|
get paddingTop() {
|
|
1014
1052
|
return this.getAttribute("padding-top");
|
|
1015
1053
|
}
|
|
1016
1054
|
set paddingTop(e) {
|
|
1017
|
-
|
|
1055
|
+
a(this, "padding-top", e);
|
|
1018
1056
|
}
|
|
1019
1057
|
get paddingRight() {
|
|
1020
1058
|
return this.getAttribute("padding-right");
|
|
1021
1059
|
}
|
|
1022
1060
|
set paddingRight(e) {
|
|
1023
|
-
|
|
1061
|
+
a(this, "padding-right", e);
|
|
1024
1062
|
}
|
|
1025
1063
|
get paddingBottom() {
|
|
1026
1064
|
return this.getAttribute("padding-bottom");
|
|
1027
1065
|
}
|
|
1028
1066
|
set paddingBottom(e) {
|
|
1029
|
-
|
|
1067
|
+
a(this, "padding-bottom", e);
|
|
1030
1068
|
}
|
|
1031
1069
|
get paddingLeft() {
|
|
1032
1070
|
return this.getAttribute("padding-left");
|
|
1033
1071
|
}
|
|
1034
1072
|
set paddingLeft(e) {
|
|
1035
|
-
|
|
1073
|
+
a(this, "padding-left", e);
|
|
1036
1074
|
}
|
|
1037
1075
|
get paddingMobile() {
|
|
1038
1076
|
return this.getAttribute("padding--mobile");
|
|
1039
1077
|
}
|
|
1040
1078
|
set paddingMobile(e) {
|
|
1041
|
-
|
|
1079
|
+
a(this, "padding--mobile", e);
|
|
1042
1080
|
}
|
|
1043
1081
|
get paddingBlockMobile() {
|
|
1044
1082
|
return this.getAttribute("padding-block--mobile");
|
|
1045
1083
|
}
|
|
1046
1084
|
set paddingBlockMobile(e) {
|
|
1047
|
-
|
|
1085
|
+
a(this, "padding-block--mobile", e);
|
|
1048
1086
|
}
|
|
1049
1087
|
get paddingInlineMobile() {
|
|
1050
1088
|
return this.getAttribute("padding-inline--mobile");
|
|
1051
1089
|
}
|
|
1052
1090
|
set paddingInlineMobile(e) {
|
|
1053
|
-
|
|
1091
|
+
a(this, "padding-inline--mobile", e);
|
|
1054
1092
|
}
|
|
1055
1093
|
get paddingTopMobile() {
|
|
1056
1094
|
return this.getAttribute("padding-top--mobile");
|
|
1057
1095
|
}
|
|
1058
1096
|
set paddingTopMobile(e) {
|
|
1059
|
-
|
|
1097
|
+
a(this, "padding-top--mobile", e);
|
|
1060
1098
|
}
|
|
1061
1099
|
get paddingRightMobile() {
|
|
1062
1100
|
return this.getAttribute("padding-right--mobile");
|
|
1063
1101
|
}
|
|
1064
1102
|
set paddingRightMobile(e) {
|
|
1065
|
-
|
|
1103
|
+
a(this, "padding-right--mobile", e);
|
|
1066
1104
|
}
|
|
1067
1105
|
get paddingBottomMobile() {
|
|
1068
1106
|
return this.getAttribute("padding-bottom--mobile");
|
|
1069
1107
|
}
|
|
1070
1108
|
set paddingBottomMobile(e) {
|
|
1071
|
-
|
|
1109
|
+
a(this, "padding-bottom--mobile", e);
|
|
1072
1110
|
}
|
|
1073
1111
|
get paddingLeftMobile() {
|
|
1074
1112
|
return this.getAttribute("padding-left--mobile");
|
|
1075
1113
|
}
|
|
1076
1114
|
set paddingLeftMobile(e) {
|
|
1077
|
-
|
|
1115
|
+
a(this, "padding-left--mobile", e);
|
|
1078
1116
|
}
|
|
1079
1117
|
get paddingTablet() {
|
|
1080
1118
|
return this.getAttribute("padding--tablet");
|
|
1081
1119
|
}
|
|
1082
1120
|
set paddingTablet(e) {
|
|
1083
|
-
|
|
1121
|
+
a(this, "padding--tablet", e);
|
|
1084
1122
|
}
|
|
1085
1123
|
get paddingBlockTablet() {
|
|
1086
1124
|
return this.getAttribute("padding-block--tablet");
|
|
1087
1125
|
}
|
|
1088
1126
|
set paddingBlockTablet(e) {
|
|
1089
|
-
|
|
1127
|
+
a(this, "padding-block--tablet", e);
|
|
1090
1128
|
}
|
|
1091
1129
|
get paddingInlineTablet() {
|
|
1092
1130
|
return this.getAttribute("padding-inline--tablet");
|
|
1093
1131
|
}
|
|
1094
1132
|
set paddingInlineTablet(e) {
|
|
1095
|
-
|
|
1133
|
+
a(this, "padding-inline--tablet", e);
|
|
1096
1134
|
}
|
|
1097
1135
|
get paddingTopTablet() {
|
|
1098
1136
|
return this.getAttribute("padding-top--tablet");
|
|
1099
1137
|
}
|
|
1100
1138
|
set paddingTopTablet(e) {
|
|
1101
|
-
|
|
1139
|
+
a(this, "padding-top--tablet", e);
|
|
1102
1140
|
}
|
|
1103
1141
|
get paddingRightTablet() {
|
|
1104
1142
|
return this.getAttribute("padding-right--tablet");
|
|
1105
1143
|
}
|
|
1106
1144
|
set paddingRightTablet(e) {
|
|
1107
|
-
|
|
1145
|
+
a(this, "padding-right--tablet", e);
|
|
1108
1146
|
}
|
|
1109
1147
|
get paddingBottomTablet() {
|
|
1110
1148
|
return this.getAttribute("padding-bottom--tablet");
|
|
1111
1149
|
}
|
|
1112
1150
|
set paddingBottomTablet(e) {
|
|
1113
|
-
|
|
1151
|
+
a(this, "padding-bottom--tablet", e);
|
|
1114
1152
|
}
|
|
1115
1153
|
get paddingLeftTablet() {
|
|
1116
1154
|
return this.getAttribute("padding-left--tablet");
|
|
1117
1155
|
}
|
|
1118
1156
|
set paddingLeftTablet(e) {
|
|
1119
|
-
|
|
1157
|
+
a(this, "padding-left--tablet", e);
|
|
1120
1158
|
}
|
|
1121
1159
|
get paddingLaptop() {
|
|
1122
1160
|
return this.getAttribute("padding--laptop");
|
|
1123
1161
|
}
|
|
1124
1162
|
set paddingLaptop(e) {
|
|
1125
|
-
|
|
1163
|
+
a(this, "padding--laptop", e);
|
|
1126
1164
|
}
|
|
1127
1165
|
get paddingBlockLaptop() {
|
|
1128
1166
|
return this.getAttribute("padding-block--laptop");
|
|
1129
1167
|
}
|
|
1130
1168
|
set paddingBlockLaptop(e) {
|
|
1131
|
-
|
|
1169
|
+
a(this, "padding-block--laptop", e);
|
|
1132
1170
|
}
|
|
1133
1171
|
get paddingInlineLaptop() {
|
|
1134
1172
|
return this.getAttribute("padding-inline--laptop");
|
|
1135
1173
|
}
|
|
1136
1174
|
set paddingInlineLaptop(e) {
|
|
1137
|
-
|
|
1175
|
+
a(this, "padding-inline--laptop", e);
|
|
1138
1176
|
}
|
|
1139
1177
|
get paddingTopLaptop() {
|
|
1140
1178
|
return this.getAttribute("padding-top--laptop");
|
|
1141
1179
|
}
|
|
1142
1180
|
set paddingTopLaptop(e) {
|
|
1143
|
-
|
|
1181
|
+
a(this, "padding-top--laptop", e);
|
|
1144
1182
|
}
|
|
1145
1183
|
get paddingRightLaptop() {
|
|
1146
1184
|
return this.getAttribute("padding-right--laptop");
|
|
1147
1185
|
}
|
|
1148
1186
|
set paddingRightLaptop(e) {
|
|
1149
|
-
|
|
1187
|
+
a(this, "padding-right--laptop", e);
|
|
1150
1188
|
}
|
|
1151
1189
|
get paddingBottomLaptop() {
|
|
1152
1190
|
return this.getAttribute("padding-bottom--laptop");
|
|
1153
1191
|
}
|
|
1154
1192
|
set paddingBottomLaptop(e) {
|
|
1155
|
-
|
|
1193
|
+
a(this, "padding-bottom--laptop", e);
|
|
1156
1194
|
}
|
|
1157
1195
|
get paddingLeftLaptop() {
|
|
1158
1196
|
return this.getAttribute("padding-left--laptop");
|
|
1159
1197
|
}
|
|
1160
1198
|
set paddingLeftLaptop(e) {
|
|
1161
|
-
|
|
1199
|
+
a(this, "padding-left--laptop", e);
|
|
1162
1200
|
}
|
|
1163
1201
|
get border() {
|
|
1164
1202
|
return this.getAttribute("border");
|
|
1165
1203
|
}
|
|
1166
1204
|
set border(e) {
|
|
1167
|
-
|
|
1205
|
+
a(this, "border", e);
|
|
1168
1206
|
}
|
|
1169
1207
|
get borderColor() {
|
|
1170
1208
|
return this.getAttribute("border-color");
|
|
1171
1209
|
}
|
|
1172
1210
|
set borderColor(e) {
|
|
1173
|
-
|
|
1211
|
+
a(this, "border-color", e);
|
|
1174
1212
|
}
|
|
1175
1213
|
get borderSide() {
|
|
1176
1214
|
return this.getAttribute("border-side");
|
|
1177
1215
|
}
|
|
1178
1216
|
set borderSide(e) {
|
|
1179
|
-
|
|
1217
|
+
a(this, "border-side", e);
|
|
1180
1218
|
}
|
|
1181
1219
|
get borderSideMobile() {
|
|
1182
1220
|
return this.getAttribute("border-side--mobile");
|
|
1183
1221
|
}
|
|
1184
1222
|
set borderSideMobile(e) {
|
|
1185
|
-
|
|
1223
|
+
a(this, "border-side--mobile", e);
|
|
1186
1224
|
}
|
|
1187
1225
|
get borderSideTablet() {
|
|
1188
1226
|
return this.getAttribute("border-side--tablet");
|
|
1189
1227
|
}
|
|
1190
1228
|
set borderSideTablet(e) {
|
|
1191
|
-
|
|
1229
|
+
a(this, "border-side--tablet", e);
|
|
1192
1230
|
}
|
|
1193
1231
|
get borderSideLaptop() {
|
|
1194
1232
|
return this.getAttribute("border-side--laptop");
|
|
1195
1233
|
}
|
|
1196
1234
|
set borderSideLaptop(e) {
|
|
1197
|
-
|
|
1235
|
+
a(this, "border-side--laptop", e);
|
|
1198
1236
|
}
|
|
1199
1237
|
get borderRadius() {
|
|
1200
1238
|
return this.getAttribute("border-radius");
|
|
1201
1239
|
}
|
|
1202
1240
|
set borderRadius(e) {
|
|
1203
|
-
|
|
1241
|
+
a(this, "border-radius", e);
|
|
1204
1242
|
}
|
|
1205
1243
|
get noBorderRadius() {
|
|
1206
1244
|
return this.getAttribute("no-border-radius");
|
|
1207
1245
|
}
|
|
1208
1246
|
set noBorderRadius(e) {
|
|
1209
|
-
|
|
1247
|
+
a(this, "no-border-radius", e);
|
|
1210
1248
|
}
|
|
1211
1249
|
get noBorderRadiusMobile() {
|
|
1212
1250
|
return this.getAttribute("no-border-radius--mobile");
|
|
1213
1251
|
}
|
|
1214
1252
|
set noBorderRadiusMobile(e) {
|
|
1215
|
-
|
|
1253
|
+
a(this, "no-border-radius--mobile", e);
|
|
1216
1254
|
}
|
|
1217
1255
|
get noBorderRadiusTablet() {
|
|
1218
1256
|
return this.getAttribute("no-border-radius--tablet");
|
|
1219
1257
|
}
|
|
1220
1258
|
set noBorderRadiusTablet(e) {
|
|
1221
|
-
|
|
1259
|
+
a(this, "no-border-radius--tablet", e);
|
|
1222
1260
|
}
|
|
1223
1261
|
get noBorderRadiusLaptop() {
|
|
1224
1262
|
return this.getAttribute("no-border-radius--laptop");
|
|
1225
1263
|
}
|
|
1226
1264
|
set noBorderRadiusLaptop(e) {
|
|
1227
|
-
|
|
1265
|
+
a(this, "no-border-radius--laptop", e);
|
|
1228
1266
|
}
|
|
1229
1267
|
get backgroundColor() {
|
|
1230
1268
|
return this.getAttribute("background-color");
|
|
1231
1269
|
}
|
|
1232
1270
|
set backgroundColor(e) {
|
|
1233
|
-
|
|
1271
|
+
a(this, "background-color", e);
|
|
1234
1272
|
}
|
|
1235
1273
|
get backgroundColorMobile() {
|
|
1236
1274
|
return this.getAttribute("background-color--mobile");
|
|
1237
1275
|
}
|
|
1238
1276
|
set backgroundColorMobile(e) {
|
|
1239
|
-
|
|
1277
|
+
a(this, "background-color--mobile", e);
|
|
1240
1278
|
}
|
|
1241
1279
|
get backgroundColorTablet() {
|
|
1242
1280
|
return this.getAttribute("background-color--tablet");
|
|
1243
1281
|
}
|
|
1244
1282
|
set backgroundColorTablet(e) {
|
|
1245
|
-
|
|
1283
|
+
a(this, "background-color--tablet", e);
|
|
1246
1284
|
}
|
|
1247
1285
|
get backgroundColorLaptop() {
|
|
1248
1286
|
return this.getAttribute("background-color--laptop");
|
|
1249
1287
|
}
|
|
1250
1288
|
set backgroundColorLaptop(e) {
|
|
1251
|
-
|
|
1289
|
+
a(this, "background-color--laptop", e);
|
|
1252
1290
|
}
|
|
1253
1291
|
get gradient() {
|
|
1254
1292
|
return this.getAttribute("background-gradient");
|
|
1255
1293
|
}
|
|
1256
1294
|
set gradient(e) {
|
|
1257
|
-
|
|
1295
|
+
a(this, "background-gradient", e);
|
|
1258
1296
|
}
|
|
1259
1297
|
get gradientMobile() {
|
|
1260
1298
|
return this.getAttribute("background-gradient--mobile");
|
|
1261
1299
|
}
|
|
1262
1300
|
set gradientMobile(e) {
|
|
1263
|
-
|
|
1301
|
+
a(this, "background-gradient--mobile", e);
|
|
1264
1302
|
}
|
|
1265
1303
|
get gradientTablet() {
|
|
1266
1304
|
return this.getAttribute("background-gradient--tablet");
|
|
1267
1305
|
}
|
|
1268
1306
|
set gradientTablet(e) {
|
|
1269
|
-
|
|
1307
|
+
a(this, "background-gradient--tablet", e);
|
|
1270
1308
|
}
|
|
1271
1309
|
get gradientLaptop() {
|
|
1272
1310
|
return this.getAttribute("background-gradient--laptop");
|
|
1273
1311
|
}
|
|
1274
1312
|
set gradientLaptop(e) {
|
|
1275
|
-
|
|
1313
|
+
a(this, "background-gradient--laptop", e);
|
|
1276
1314
|
}
|
|
1277
1315
|
get backgroundImage() {
|
|
1278
1316
|
return this.getAttribute("background-image");
|
|
1279
1317
|
}
|
|
1280
1318
|
set backgroundImage(e) {
|
|
1281
|
-
|
|
1319
|
+
a(this, "background-image", e);
|
|
1282
1320
|
}
|
|
1283
1321
|
get backgroundImageMobile() {
|
|
1284
1322
|
return this.getAttribute("background-image--mobile");
|
|
1285
1323
|
}
|
|
1286
1324
|
set backgroundImageMobile(e) {
|
|
1287
|
-
|
|
1325
|
+
a(this, "background-image--mobile", e);
|
|
1288
1326
|
}
|
|
1289
1327
|
get backgroundImageTablet() {
|
|
1290
1328
|
return this.getAttribute("background-image--tablet");
|
|
1291
1329
|
}
|
|
1292
1330
|
set backgroundImageTablet(e) {
|
|
1293
|
-
|
|
1331
|
+
a(this, "background-image--tablet", e);
|
|
1294
1332
|
}
|
|
1295
1333
|
get backgroundImageLaptop() {
|
|
1296
1334
|
return this.getAttribute("background-image--laptop");
|
|
1297
1335
|
}
|
|
1298
1336
|
set backgroundImageLaptop(e) {
|
|
1299
|
-
|
|
1337
|
+
a(this, "background-image--laptop", e);
|
|
1300
1338
|
}
|
|
1301
1339
|
get backgroundSize() {
|
|
1302
1340
|
return this.getAttribute("background-size");
|
|
1303
1341
|
}
|
|
1304
1342
|
set backgroundSize(e) {
|
|
1305
|
-
|
|
1343
|
+
a(this, "background-size", e);
|
|
1306
1344
|
}
|
|
1307
1345
|
get backgroundPosition() {
|
|
1308
1346
|
return this.getAttribute("background-position");
|
|
1309
1347
|
}
|
|
1310
1348
|
set backgroundPosition(e) {
|
|
1311
|
-
|
|
1349
|
+
a(this, "background-position", e);
|
|
1312
1350
|
}
|
|
1313
1351
|
get boxShadow() {
|
|
1314
1352
|
return this.getAttribute("box-shadow");
|
|
1315
1353
|
}
|
|
1316
1354
|
set boxShadow(e) {
|
|
1317
|
-
|
|
1355
|
+
a(this, "box-shadow", e);
|
|
1318
1356
|
}
|
|
1319
1357
|
get anchorOffset() {
|
|
1320
1358
|
return this.getAttribute("anchor-offset");
|
|
1321
1359
|
}
|
|
1322
1360
|
set anchorOffset(e) {
|
|
1323
|
-
|
|
1361
|
+
a(this, "anchor-offset", e);
|
|
1324
1362
|
}
|
|
1325
1363
|
get anchorSpacing() {
|
|
1326
1364
|
return this.getAttribute("anchor-spacing");
|
|
1327
1365
|
}
|
|
1328
1366
|
set anchorSpacing(e) {
|
|
1329
|
-
|
|
1367
|
+
a(this, "anchor-spacing", e);
|
|
1330
1368
|
}
|
|
1331
1369
|
get inverted() {
|
|
1332
1370
|
return this.hasAttribute("inverted");
|
|
1333
1371
|
}
|
|
1334
1372
|
set inverted(e) {
|
|
1335
|
-
|
|
1373
|
+
o(this, "inverted", e);
|
|
1336
1374
|
}
|
|
1337
1375
|
get subgridRows() {
|
|
1338
1376
|
return this.getAttribute("subgrid-rows");
|
|
1339
1377
|
}
|
|
1340
1378
|
set subgridRows(e) {
|
|
1341
|
-
|
|
1379
|
+
a(this, "subgrid-rows", e);
|
|
1342
1380
|
}
|
|
1343
1381
|
get subgridGap() {
|
|
1344
1382
|
return this.getAttribute("subgrid-gap");
|
|
1345
1383
|
}
|
|
1346
1384
|
set subgridGap(e) {
|
|
1347
|
-
|
|
1385
|
+
a(this, "subgrid-gap", e);
|
|
1348
1386
|
}
|
|
1349
1387
|
get subgridGapMobile() {
|
|
1350
1388
|
return this.getAttribute("subgrid-gap--mobile");
|
|
1351
1389
|
}
|
|
1352
1390
|
set subgridGapMobile(e) {
|
|
1353
|
-
|
|
1391
|
+
a(this, "subgrid-gap--mobile", e);
|
|
1354
1392
|
}
|
|
1355
1393
|
get subgridGapTablet() {
|
|
1356
1394
|
return this.getAttribute("subgrid-gap--tablet");
|
|
1357
1395
|
}
|
|
1358
1396
|
set subgridGapTablet(e) {
|
|
1359
|
-
|
|
1397
|
+
a(this, "subgrid-gap--tablet", e);
|
|
1360
1398
|
}
|
|
1361
1399
|
get subgridGapLaptop() {
|
|
1362
1400
|
return this.getAttribute("subgrid-gap--laptop");
|
|
1363
1401
|
}
|
|
1364
1402
|
set subgridGapLaptop(e) {
|
|
1365
|
-
|
|
1403
|
+
a(this, "subgrid-gap--laptop", e);
|
|
1366
1404
|
}
|
|
1367
1405
|
};
|
|
1368
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1406
|
+
customElements.get("px-container") || customElements.define("px-container", M);
|
|
1369
1407
|
//#endregion
|
|
1370
1408
|
//#region ../Layout/src/Stack.css?inline
|
|
1371
|
-
var
|
|
1372
|
-
|
|
1373
|
-
var
|
|
1374
|
-
|
|
1375
|
-
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 = [
|
|
1376
1414
|
"",
|
|
1377
1415
|
"default",
|
|
1378
1416
|
"row",
|
|
1379
1417
|
"row-reverse",
|
|
1380
1418
|
"column",
|
|
1381
1419
|
"column-reverse"
|
|
1382
|
-
],
|
|
1420
|
+
], L = [
|
|
1383
1421
|
"",
|
|
1384
1422
|
"default",
|
|
1385
1423
|
"stretch",
|
|
@@ -1389,7 +1427,7 @@ var V = [
|
|
|
1389
1427
|
"end",
|
|
1390
1428
|
"center",
|
|
1391
1429
|
"baseline"
|
|
1392
|
-
],
|
|
1430
|
+
], R = [
|
|
1393
1431
|
"",
|
|
1394
1432
|
"default",
|
|
1395
1433
|
"flex-start",
|
|
@@ -1400,21 +1438,21 @@ var V = [
|
|
|
1400
1438
|
"space-between",
|
|
1401
1439
|
"space-around",
|
|
1402
1440
|
"space-evenly"
|
|
1403
|
-
],
|
|
1441
|
+
], ge = [
|
|
1404
1442
|
"",
|
|
1405
1443
|
"default",
|
|
1406
1444
|
"nowrap",
|
|
1407
1445
|
"wrap",
|
|
1408
1446
|
"wrap-reverse"
|
|
1409
|
-
],
|
|
1447
|
+
], z = [
|
|
1410
1448
|
"",
|
|
1411
1449
|
"visible",
|
|
1412
1450
|
"hidden",
|
|
1413
1451
|
"scroll",
|
|
1414
1452
|
"auto"
|
|
1415
|
-
],
|
|
1453
|
+
], B = class e extends v {
|
|
1416
1454
|
constructor() {
|
|
1417
|
-
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));
|
|
1418
1456
|
}
|
|
1419
1457
|
connectedCallback() {}
|
|
1420
1458
|
static get observedAttributes() {
|
|
@@ -1469,35 +1507,35 @@ var V = [
|
|
|
1469
1507
|
case "gap--tablet":
|
|
1470
1508
|
case "gap--laptop":
|
|
1471
1509
|
case "gap--desktop":
|
|
1472
|
-
this.updateFlexProperties(e, t, n,
|
|
1510
|
+
this.updateFlexProperties(e, t, n, h);
|
|
1473
1511
|
break;
|
|
1474
1512
|
case "justify-content":
|
|
1475
1513
|
case "justify-content--mobile":
|
|
1476
1514
|
case "justify-content--tablet":
|
|
1477
1515
|
case "justify-content--laptop":
|
|
1478
1516
|
case "justify-content--desktop":
|
|
1479
|
-
this.updateFlexProperties(e, t, n,
|
|
1517
|
+
this.updateFlexProperties(e, t, n, R);
|
|
1480
1518
|
break;
|
|
1481
1519
|
case "align-items":
|
|
1482
1520
|
case "align-items--mobile":
|
|
1483
1521
|
case "align-items--tablet":
|
|
1484
1522
|
case "align-items--laptop":
|
|
1485
1523
|
case "align-items--desktop":
|
|
1486
|
-
this.updateFlexProperties(e, t, n,
|
|
1524
|
+
this.updateFlexProperties(e, t, n, L);
|
|
1487
1525
|
break;
|
|
1488
1526
|
case "wrap":
|
|
1489
1527
|
case "wrap--mobile":
|
|
1490
1528
|
case "wrap--tablet":
|
|
1491
1529
|
case "wrap--laptop":
|
|
1492
1530
|
case "wrap--desktop":
|
|
1493
|
-
this.updateFlexProperties(e, t, n,
|
|
1531
|
+
this.updateFlexProperties(e, t, n, ge);
|
|
1494
1532
|
break;
|
|
1495
1533
|
case "direction":
|
|
1496
1534
|
case "direction--mobile":
|
|
1497
1535
|
case "direction--tablet":
|
|
1498
1536
|
case "direction--laptop":
|
|
1499
1537
|
case "direction--desktop":
|
|
1500
|
-
this.updateFlexProperties(e, t, n,
|
|
1538
|
+
this.updateFlexProperties(e, t, n, I), this.updateVerticalStyles();
|
|
1501
1539
|
break;
|
|
1502
1540
|
case "overflow-y":
|
|
1503
1541
|
case "overflow-y--mobile":
|
|
@@ -1509,20 +1547,20 @@ var V = [
|
|
|
1509
1547
|
case "max-height--tablet":
|
|
1510
1548
|
case "max-height--laptop":
|
|
1511
1549
|
case "max-height--desktop":
|
|
1512
|
-
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();
|
|
1513
1551
|
break;
|
|
1514
1552
|
case "overflow-x":
|
|
1515
1553
|
case "overflow-x--mobile":
|
|
1516
1554
|
case "overflow-x--tablet":
|
|
1517
1555
|
case "overflow-x--laptop":
|
|
1518
1556
|
case "overflow-x--desktop":
|
|
1519
|
-
this.updateOverflowX(e, t, n,
|
|
1557
|
+
this.updateOverflowX(e, t, n, z);
|
|
1520
1558
|
break;
|
|
1521
1559
|
default: super.attributeChangedCallback(e, t, n);
|
|
1522
1560
|
}
|
|
1523
1561
|
}
|
|
1524
1562
|
isValidVerticalValue(e, t) {
|
|
1525
|
-
return e.startsWith("overflow-y") ?
|
|
1563
|
+
return e.startsWith("overflow-y") ? z.includes(t) : CSS.supports("max-height", t);
|
|
1526
1564
|
}
|
|
1527
1565
|
updateVerticalStyles() {
|
|
1528
1566
|
for (let t of e.breakpoints) {
|
|
@@ -1533,16 +1571,16 @@ var V = [
|
|
|
1533
1571
|
}
|
|
1534
1572
|
}
|
|
1535
1573
|
}
|
|
1536
|
-
updateOverflowX(e, t, n,
|
|
1537
|
-
|
|
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("\", \"")}".`);
|
|
1538
1576
|
}
|
|
1539
|
-
updateFlexProperties(t, n,
|
|
1540
|
-
|
|
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("\", \"")}".`);
|
|
1541
1579
|
let o = t.indexOf("--");
|
|
1542
|
-
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);
|
|
1543
1581
|
else {
|
|
1544
1582
|
let e = t.slice(0, o), n = t.slice(o + 2);
|
|
1545
|
-
this.updateStyle(e, n,
|
|
1583
|
+
this.updateStyle(e, n, i || this.getAttribute(e), a);
|
|
1546
1584
|
}
|
|
1547
1585
|
}
|
|
1548
1586
|
updateStyle(e, t, n, r) {
|
|
@@ -1565,274 +1603,274 @@ var V = [
|
|
|
1565
1603
|
return this.getAttribute("direction") ?? "row";
|
|
1566
1604
|
}
|
|
1567
1605
|
set direction(e) {
|
|
1568
|
-
|
|
1606
|
+
a(this, "direction", e);
|
|
1569
1607
|
}
|
|
1570
1608
|
get directionMobile() {
|
|
1571
1609
|
return this.getAttribute("direction--mobile");
|
|
1572
1610
|
}
|
|
1573
1611
|
set directionMobile(e) {
|
|
1574
|
-
|
|
1612
|
+
a(this, "direction--mobile", e);
|
|
1575
1613
|
}
|
|
1576
1614
|
get directionTablet() {
|
|
1577
1615
|
return this.getAttribute("direction--tablet");
|
|
1578
1616
|
}
|
|
1579
1617
|
set directionTablet(e) {
|
|
1580
|
-
|
|
1618
|
+
a(this, "direction--tablet", e);
|
|
1581
1619
|
}
|
|
1582
1620
|
get directionLaptop() {
|
|
1583
1621
|
return this.getAttribute("direction--laptop");
|
|
1584
1622
|
}
|
|
1585
1623
|
set directionLaptop(e) {
|
|
1586
|
-
|
|
1624
|
+
a(this, "direction--laptop", e);
|
|
1587
1625
|
}
|
|
1588
1626
|
get directionDesktop() {
|
|
1589
1627
|
return this.getAttribute("direction--desktop");
|
|
1590
1628
|
}
|
|
1591
1629
|
set directionDesktop(e) {
|
|
1592
|
-
|
|
1630
|
+
a(this, "direction--desktop", e);
|
|
1593
1631
|
}
|
|
1594
1632
|
get gap() {
|
|
1595
1633
|
return this.getAttribute("gap") ?? "none";
|
|
1596
1634
|
}
|
|
1597
1635
|
set gap(e) {
|
|
1598
|
-
|
|
1636
|
+
a(this, "gap", e);
|
|
1599
1637
|
}
|
|
1600
1638
|
get gapMobile() {
|
|
1601
1639
|
return this.getAttribute("gap--mobile");
|
|
1602
1640
|
}
|
|
1603
1641
|
set gapMobile(e) {
|
|
1604
|
-
|
|
1642
|
+
a(this, "gap--mobile", e);
|
|
1605
1643
|
}
|
|
1606
1644
|
get gapTablet() {
|
|
1607
1645
|
return this.getAttribute("gap--tablet");
|
|
1608
1646
|
}
|
|
1609
1647
|
set gapTablet(e) {
|
|
1610
|
-
|
|
1648
|
+
a(this, "gap--tablet", e);
|
|
1611
1649
|
}
|
|
1612
1650
|
get gapLaptop() {
|
|
1613
1651
|
return this.getAttribute("gap--laptop");
|
|
1614
1652
|
}
|
|
1615
1653
|
set gapLaptop(e) {
|
|
1616
|
-
|
|
1654
|
+
a(this, "gap--laptop", e);
|
|
1617
1655
|
}
|
|
1618
1656
|
get gapDesktop() {
|
|
1619
1657
|
return this.getAttribute("gap--desktop");
|
|
1620
1658
|
}
|
|
1621
1659
|
set gapDesktop(e) {
|
|
1622
|
-
|
|
1660
|
+
a(this, "gap--desktop", e);
|
|
1623
1661
|
}
|
|
1624
1662
|
get justifyContent() {
|
|
1625
1663
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
1626
1664
|
}
|
|
1627
1665
|
set justifyContent(e) {
|
|
1628
|
-
|
|
1666
|
+
a(this, "justify-content", e);
|
|
1629
1667
|
}
|
|
1630
1668
|
get justifyContentMobile() {
|
|
1631
1669
|
return this.getAttribute("justify-content--mobile");
|
|
1632
1670
|
}
|
|
1633
1671
|
set justifyContentMobile(e) {
|
|
1634
|
-
|
|
1672
|
+
a(this, "justify-content--mobile", e);
|
|
1635
1673
|
}
|
|
1636
1674
|
get justifyContentTablet() {
|
|
1637
1675
|
return this.getAttribute("justify-content--tablet");
|
|
1638
1676
|
}
|
|
1639
1677
|
set justifyContentTablet(e) {
|
|
1640
|
-
|
|
1678
|
+
a(this, "justify-content--tablet", e);
|
|
1641
1679
|
}
|
|
1642
1680
|
get justifyContentLaptop() {
|
|
1643
1681
|
return this.getAttribute("justify-content--laptop");
|
|
1644
1682
|
}
|
|
1645
1683
|
set justifyContentLaptop(e) {
|
|
1646
|
-
|
|
1684
|
+
a(this, "justify-content--laptop", e);
|
|
1647
1685
|
}
|
|
1648
1686
|
get justifyContentDesktop() {
|
|
1649
1687
|
return this.getAttribute("justify-content--desktop");
|
|
1650
1688
|
}
|
|
1651
1689
|
set justifyContentDesktop(e) {
|
|
1652
|
-
|
|
1690
|
+
a(this, "justify-content--desktop", e);
|
|
1653
1691
|
}
|
|
1654
1692
|
get alignItems() {
|
|
1655
1693
|
return this.getAttribute("align-items") ?? "stretch";
|
|
1656
1694
|
}
|
|
1657
1695
|
set alignItems(e) {
|
|
1658
|
-
|
|
1696
|
+
a(this, "align-items", e);
|
|
1659
1697
|
}
|
|
1660
1698
|
get alignItemsMobile() {
|
|
1661
1699
|
return this.getAttribute("align-items--mobile");
|
|
1662
1700
|
}
|
|
1663
1701
|
set alignItemsMobile(e) {
|
|
1664
|
-
|
|
1702
|
+
a(this, "align-items--mobile", e);
|
|
1665
1703
|
}
|
|
1666
1704
|
get alignItemsTablet() {
|
|
1667
1705
|
return this.getAttribute("align-items--tablet");
|
|
1668
1706
|
}
|
|
1669
1707
|
set alignItemsTablet(e) {
|
|
1670
|
-
|
|
1708
|
+
a(this, "align-items--tablet", e);
|
|
1671
1709
|
}
|
|
1672
1710
|
get alignItemsLaptop() {
|
|
1673
1711
|
return this.getAttribute("align-items--laptop");
|
|
1674
1712
|
}
|
|
1675
1713
|
set alignItemsLaptop(e) {
|
|
1676
|
-
|
|
1714
|
+
a(this, "align-items--laptop", e);
|
|
1677
1715
|
}
|
|
1678
1716
|
get alignItemsDesktop() {
|
|
1679
1717
|
return this.getAttribute("align-items--desktop");
|
|
1680
1718
|
}
|
|
1681
1719
|
set alignItemsDesktop(e) {
|
|
1682
|
-
|
|
1720
|
+
a(this, "align-items--desktop", e);
|
|
1683
1721
|
}
|
|
1684
1722
|
get wrap() {
|
|
1685
1723
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
1686
1724
|
}
|
|
1687
1725
|
set wrap(e) {
|
|
1688
|
-
|
|
1726
|
+
a(this, "wrap", e);
|
|
1689
1727
|
}
|
|
1690
1728
|
get wrapMobile() {
|
|
1691
1729
|
return this.getAttribute("wrap--mobile");
|
|
1692
1730
|
}
|
|
1693
1731
|
set wrapMobile(e) {
|
|
1694
|
-
|
|
1732
|
+
a(this, "wrap--mobile", e);
|
|
1695
1733
|
}
|
|
1696
1734
|
get wrapTablet() {
|
|
1697
1735
|
return this.getAttribute("wrap--tablet");
|
|
1698
1736
|
}
|
|
1699
1737
|
set wrapTablet(e) {
|
|
1700
|
-
|
|
1738
|
+
a(this, "wrap--tablet", e);
|
|
1701
1739
|
}
|
|
1702
1740
|
get wrapLaptop() {
|
|
1703
1741
|
return this.getAttribute("wrap--laptop");
|
|
1704
1742
|
}
|
|
1705
1743
|
set wrapLaptop(e) {
|
|
1706
|
-
|
|
1744
|
+
a(this, "wrap--laptop", e);
|
|
1707
1745
|
}
|
|
1708
1746
|
get wrapDesktop() {
|
|
1709
1747
|
return this.getAttribute("wrap--desktop");
|
|
1710
1748
|
}
|
|
1711
1749
|
set wrapDesktop(e) {
|
|
1712
|
-
|
|
1750
|
+
a(this, "wrap--desktop", e);
|
|
1713
1751
|
}
|
|
1714
1752
|
get overflowX() {
|
|
1715
1753
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
1716
1754
|
}
|
|
1717
1755
|
set overflowX(e) {
|
|
1718
|
-
|
|
1756
|
+
a(this, "overflow-x", e);
|
|
1719
1757
|
}
|
|
1720
1758
|
get overflowXMobile() {
|
|
1721
1759
|
return this.getAttribute("overflow-x--mobile");
|
|
1722
1760
|
}
|
|
1723
1761
|
set overflowXMobile(e) {
|
|
1724
|
-
|
|
1762
|
+
a(this, "overflow-x--mobile", e);
|
|
1725
1763
|
}
|
|
1726
1764
|
get overflowXTablet() {
|
|
1727
1765
|
return this.getAttribute("overflow-x--tablet");
|
|
1728
1766
|
}
|
|
1729
1767
|
set overflowXTablet(e) {
|
|
1730
|
-
|
|
1768
|
+
a(this, "overflow-x--tablet", e);
|
|
1731
1769
|
}
|
|
1732
1770
|
get overflowXLaptop() {
|
|
1733
1771
|
return this.getAttribute("overflow-x--laptop");
|
|
1734
1772
|
}
|
|
1735
1773
|
set overflowXLaptop(e) {
|
|
1736
|
-
|
|
1774
|
+
a(this, "overflow-x--laptop", e);
|
|
1737
1775
|
}
|
|
1738
1776
|
get overflowXDesktop() {
|
|
1739
1777
|
return this.getAttribute("overflow-x--desktop");
|
|
1740
1778
|
}
|
|
1741
1779
|
set overflowXDesktop(e) {
|
|
1742
|
-
|
|
1780
|
+
a(this, "overflow-x--desktop", e);
|
|
1743
1781
|
}
|
|
1744
1782
|
get overflowY() {
|
|
1745
1783
|
return this.getAttribute("overflow-y") ?? "visible";
|
|
1746
1784
|
}
|
|
1747
1785
|
set overflowY(e) {
|
|
1748
|
-
|
|
1786
|
+
a(this, "overflow-y", e);
|
|
1749
1787
|
}
|
|
1750
1788
|
get overflowYMobile() {
|
|
1751
1789
|
return this.getAttribute("overflow-y--mobile");
|
|
1752
1790
|
}
|
|
1753
1791
|
set overflowYMobile(e) {
|
|
1754
|
-
|
|
1792
|
+
a(this, "overflow-y--mobile", e);
|
|
1755
1793
|
}
|
|
1756
1794
|
get overflowYTablet() {
|
|
1757
1795
|
return this.getAttribute("overflow-y--tablet");
|
|
1758
1796
|
}
|
|
1759
1797
|
set overflowYTablet(e) {
|
|
1760
|
-
|
|
1798
|
+
a(this, "overflow-y--tablet", e);
|
|
1761
1799
|
}
|
|
1762
1800
|
get overflowYLaptop() {
|
|
1763
1801
|
return this.getAttribute("overflow-y--laptop");
|
|
1764
1802
|
}
|
|
1765
1803
|
set overflowYLaptop(e) {
|
|
1766
|
-
|
|
1804
|
+
a(this, "overflow-y--laptop", e);
|
|
1767
1805
|
}
|
|
1768
1806
|
get overflowYDesktop() {
|
|
1769
1807
|
return this.getAttribute("overflow-y--desktop");
|
|
1770
1808
|
}
|
|
1771
1809
|
set overflowYDesktop(e) {
|
|
1772
|
-
|
|
1810
|
+
a(this, "overflow-y--desktop", e);
|
|
1773
1811
|
}
|
|
1774
1812
|
get maxHeight() {
|
|
1775
1813
|
return this.getAttribute("max-height") ?? "none";
|
|
1776
1814
|
}
|
|
1777
1815
|
set maxHeight(e) {
|
|
1778
|
-
|
|
1816
|
+
a(this, "max-height", e);
|
|
1779
1817
|
}
|
|
1780
1818
|
get maxHeightMobile() {
|
|
1781
1819
|
return this.getAttribute("max-height--mobile");
|
|
1782
1820
|
}
|
|
1783
1821
|
set maxHeightMobile(e) {
|
|
1784
|
-
|
|
1822
|
+
a(this, "max-height--mobile", e);
|
|
1785
1823
|
}
|
|
1786
1824
|
get maxHeightTablet() {
|
|
1787
1825
|
return this.getAttribute("max-height--tablet");
|
|
1788
1826
|
}
|
|
1789
1827
|
set maxHeightTablet(e) {
|
|
1790
|
-
|
|
1828
|
+
a(this, "max-height--tablet", e);
|
|
1791
1829
|
}
|
|
1792
1830
|
get maxHeightLaptop() {
|
|
1793
1831
|
return this.getAttribute("max-height--laptop");
|
|
1794
1832
|
}
|
|
1795
1833
|
set maxHeightLaptop(e) {
|
|
1796
|
-
|
|
1834
|
+
a(this, "max-height--laptop", e);
|
|
1797
1835
|
}
|
|
1798
1836
|
get maxHeightDesktop() {
|
|
1799
1837
|
return this.getAttribute("max-height--desktop");
|
|
1800
1838
|
}
|
|
1801
1839
|
set maxHeightDesktop(e) {
|
|
1802
|
-
|
|
1840
|
+
a(this, "max-height--desktop", e);
|
|
1803
1841
|
}
|
|
1804
1842
|
get $el() {
|
|
1805
1843
|
return this.shadowRoot.firstElementChild;
|
|
1806
1844
|
}
|
|
1807
1845
|
};
|
|
1808
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
1809
|
-
var
|
|
1846
|
+
customElements.get("px-stack") || customElements.define("px-stack", B);
|
|
1847
|
+
var V = (e) => e === "direction" || e.startsWith("direction--"), _e = class extends B {
|
|
1810
1848
|
get direction() {
|
|
1811
1849
|
return "column";
|
|
1812
1850
|
}
|
|
1813
1851
|
set direction(e) {
|
|
1814
|
-
|
|
1852
|
+
a(this, "direction", e);
|
|
1815
1853
|
}
|
|
1816
1854
|
attributeChangedCallback(e, t, n) {
|
|
1817
|
-
|
|
1855
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1818
1856
|
}
|
|
1819
1857
|
};
|
|
1820
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
1821
|
-
var
|
|
1858
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", _e);
|
|
1859
|
+
var ve = class extends B {
|
|
1822
1860
|
get direction() {
|
|
1823
1861
|
return "row";
|
|
1824
1862
|
}
|
|
1825
1863
|
set direction(e) {
|
|
1826
|
-
|
|
1864
|
+
a(this, "direction", e);
|
|
1827
1865
|
}
|
|
1828
1866
|
attributeChangedCallback(e, t, n) {
|
|
1829
|
-
|
|
1867
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1830
1868
|
}
|
|
1831
1869
|
};
|
|
1832
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
1870
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ve);
|
|
1833
1871
|
//#endregion
|
|
1834
1872
|
//#region ../Layout/src/Spacer.ts
|
|
1835
|
-
var
|
|
1873
|
+
var ye = class extends HTMLElement {
|
|
1836
1874
|
constructor() {
|
|
1837
1875
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1838
1876
|
}
|
|
@@ -1878,14 +1916,14 @@ var le = class extends HTMLElement {
|
|
|
1878
1916
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1879
1917
|
}
|
|
1880
1918
|
};
|
|
1881
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
1919
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ye);
|
|
1882
1920
|
//#endregion
|
|
1883
1921
|
//#region ../Layout/src/Page.css?inline
|
|
1884
|
-
var
|
|
1885
|
-
|
|
1886
|
-
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 {
|
|
1887
1925
|
constructor() {
|
|
1888
|
-
super(
|
|
1926
|
+
super(H), this.template = () => `
|
|
1889
1927
|
<px-container border-radius="none" padding="none">
|
|
1890
1928
|
<px-vstack>
|
|
1891
1929
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1978,7 +2016,7 @@ var de = class extends S {
|
|
|
1978
2016
|
</px-container>
|
|
1979
2017
|
</px-vstack>
|
|
1980
2018
|
</px-container>
|
|
1981
|
-
`,
|
|
2019
|
+
`, E(this.shadowRoot, this.template());
|
|
1982
2020
|
}
|
|
1983
2021
|
static get observedAttributes() {
|
|
1984
2022
|
return [
|
|
@@ -2047,7 +2085,7 @@ var de = class extends S {
|
|
|
2047
2085
|
this.$bodyVStackContainer.setAttribute("gap", n);
|
|
2048
2086
|
break;
|
|
2049
2087
|
case "background-color":
|
|
2050
|
-
this.$bodyContainer.setAttribute("background-color",
|
|
2088
|
+
this.$bodyContainer.setAttribute("background-color", p.indexOf(n) > 0 ? n : "none");
|
|
2051
2089
|
break;
|
|
2052
2090
|
case "padding-vertical":
|
|
2053
2091
|
this.handlePaddingVerticalChange(n);
|
|
@@ -2065,10 +2103,10 @@ var de = class extends S {
|
|
|
2065
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;
|
|
2066
2104
|
}
|
|
2067
2105
|
};
|
|
2068
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
2106
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", xe);
|
|
2069
2107
|
//#endregion
|
|
2070
2108
|
//#region ../Icon/common/src/IconSet.ts
|
|
2071
|
-
var
|
|
2109
|
+
var Se = class extends HTMLElement {
|
|
2072
2110
|
constructor() {
|
|
2073
2111
|
super();
|
|
2074
2112
|
}
|
|
@@ -2102,8 +2140,8 @@ var fe = class extends HTMLElement {
|
|
|
2102
2140
|
e && e.remove();
|
|
2103
2141
|
}
|
|
2104
2142
|
};
|
|
2105
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
2106
|
-
var
|
|
2143
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", Se);
|
|
2144
|
+
var Ce = [
|
|
2107
2145
|
"Inherit",
|
|
2108
2146
|
"Brand",
|
|
2109
2147
|
"Accent",
|
|
@@ -2117,11 +2155,11 @@ var pe = [
|
|
|
2117
2155
|
"StateHover",
|
|
2118
2156
|
"StateActive",
|
|
2119
2157
|
"StateDisabled"
|
|
2120
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
2121
|
-
|
|
2122
|
-
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 {
|
|
2123
2161
|
static {
|
|
2124
|
-
this.template =
|
|
2162
|
+
this.template = T("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
2125
2163
|
}
|
|
2126
2164
|
#e = null;
|
|
2127
2165
|
#t;
|
|
@@ -2138,7 +2176,7 @@ var he = class e extends S {
|
|
|
2138
2176
|
];
|
|
2139
2177
|
}
|
|
2140
2178
|
constructor(...t) {
|
|
2141
|
-
super(...t,
|
|
2179
|
+
super(...t, U), E(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
2142
2180
|
}
|
|
2143
2181
|
attributeChangedCallback(e, t, n) {
|
|
2144
2182
|
if (t !== n) switch (e) {
|
|
@@ -2146,10 +2184,10 @@ var he = class e extends S {
|
|
|
2146
2184
|
this.updateName(t, n);
|
|
2147
2185
|
break;
|
|
2148
2186
|
case "size":
|
|
2149
|
-
this.updateAttribute(e, t, n,
|
|
2187
|
+
this.updateAttribute(e, t, n, ie);
|
|
2150
2188
|
break;
|
|
2151
2189
|
case "color":
|
|
2152
|
-
this.updateAttribute(e, t, n,
|
|
2190
|
+
this.updateAttribute(e, t, n, Ce);
|
|
2153
2191
|
break;
|
|
2154
2192
|
case "disabled":
|
|
2155
2193
|
this.color = "state-disabled";
|
|
@@ -2166,8 +2204,8 @@ var he = class e extends S {
|
|
|
2166
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}`));
|
|
2167
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"));
|
|
2168
2206
|
}
|
|
2169
|
-
updateAttribute(e, t, n,
|
|
2170
|
-
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()}`);
|
|
2171
2209
|
}
|
|
2172
2210
|
updateName(e, t) {
|
|
2173
2211
|
this.#e && this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${t}`);
|
|
@@ -2179,83 +2217,176 @@ var he = class e extends S {
|
|
|
2179
2217
|
return this.getAttribute("name");
|
|
2180
2218
|
}
|
|
2181
2219
|
set name(e) {
|
|
2182
|
-
|
|
2220
|
+
a(this, "name", e);
|
|
2183
2221
|
}
|
|
2184
2222
|
get size() {
|
|
2185
2223
|
return this.getAttribute("size");
|
|
2186
2224
|
}
|
|
2187
2225
|
set size(e) {
|
|
2188
|
-
|
|
2226
|
+
a(this, "size", e);
|
|
2189
2227
|
}
|
|
2190
2228
|
get color() {
|
|
2191
2229
|
return this.getAttribute("color");
|
|
2192
2230
|
}
|
|
2193
2231
|
set color(e) {
|
|
2194
|
-
|
|
2232
|
+
a(this, "color", e);
|
|
2195
2233
|
}
|
|
2196
2234
|
get arialabel() {
|
|
2197
2235
|
return this.getAttribute("aria-label");
|
|
2198
2236
|
}
|
|
2199
2237
|
set arialabel(e) {
|
|
2200
|
-
|
|
2238
|
+
a(this, "aria-label", e);
|
|
2201
2239
|
}
|
|
2202
2240
|
get inverted() {
|
|
2203
2241
|
return this.hasAttribute("inverted");
|
|
2204
2242
|
}
|
|
2205
2243
|
set inverted(e) {
|
|
2206
|
-
|
|
2244
|
+
o(this, "inverted", e);
|
|
2207
2245
|
}
|
|
2208
2246
|
get from() {
|
|
2209
2247
|
return this.getAttribute("from");
|
|
2210
2248
|
}
|
|
2211
2249
|
set from(e) {
|
|
2212
|
-
|
|
2250
|
+
a(this, "from", e);
|
|
2213
2251
|
}
|
|
2214
2252
|
get disabled() {
|
|
2215
2253
|
return this.hasAttribute("disabled");
|
|
2216
2254
|
}
|
|
2217
2255
|
set disabled(e) {
|
|
2218
|
-
|
|
2256
|
+
o(this, "disabled", e);
|
|
2219
2257
|
}
|
|
2220
2258
|
};
|
|
2221
|
-
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);
|
|
2222
2346
|
//#endregion
|
|
2223
2347
|
//#region src/toaster.css?inline
|
|
2224
|
-
var
|
|
2225
|
-
|
|
2226
|
-
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 = [
|
|
2227
2351
|
"",
|
|
2228
2352
|
"info",
|
|
2229
2353
|
"success",
|
|
2230
2354
|
"error",
|
|
2231
2355
|
"warning"
|
|
2232
|
-
],
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
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 {
|
|
2236
2373
|
constructor() {
|
|
2237
|
-
super(), this.popoverButtonsCleanups = [], this.onHideClick = () => this.hide(), this.onShowClick = () => this.show()
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
this.isHovered = !1, this.resumeAutoHideTimeout();
|
|
2241
|
-
}, this.onFocusIn = (e) => {
|
|
2242
|
-
e.target !== this.$dialog && (this.isFocused = !0, this.pauseAutoHideTimeout());
|
|
2243
|
-
}, this.onFocusOut = (e) => {
|
|
2244
|
-
let t = e.relatedTarget;
|
|
2245
|
-
this.isFocused = !!t && t !== this.$dialog && (this.contains(t) || this.$dialog?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2246
|
-
};
|
|
2247
|
-
let t = this.attachShadow({ mode: "open" });
|
|
2248
|
-
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];
|
|
2249
2377
|
}
|
|
2250
2378
|
connectedCallback() {
|
|
2251
|
-
this.addEventListenersToHideButtons(), this
|
|
2379
|
+
this.addEventListenersToHideButtons(), this.hasAttribute("open") && this.show();
|
|
2380
|
+
}
|
|
2381
|
+
disconnectedCallback() {
|
|
2382
|
+
this.removePopoverButtonListeners();
|
|
2252
2383
|
}
|
|
2253
2384
|
static get observedAttributes() {
|
|
2254
2385
|
return [
|
|
2255
2386
|
"id",
|
|
2256
2387
|
"open",
|
|
2257
2388
|
"status",
|
|
2258
|
-
"
|
|
2389
|
+
"status-label",
|
|
2259
2390
|
"inverted"
|
|
2260
2391
|
];
|
|
2261
2392
|
}
|
|
@@ -2267,44 +2398,27 @@ var Z = [
|
|
|
2267
2398
|
case "open":
|
|
2268
2399
|
this.isConnected && this.handleOpenChange();
|
|
2269
2400
|
break;
|
|
2270
|
-
case "duration":
|
|
2271
|
-
this.remainingDuration = this.duration, this.startAutoHideTimeout();
|
|
2272
|
-
break;
|
|
2273
2401
|
case "status":
|
|
2274
|
-
this.handleStatusChange(n,
|
|
2402
|
+
this.handleStatusChange(n, J), this.handleStatusLabelChange();
|
|
2403
|
+
break;
|
|
2404
|
+
case "status-label":
|
|
2405
|
+
this.handleStatusLabelChange();
|
|
2275
2406
|
break;
|
|
2276
2407
|
case "inverted": this.handleInvertedChange();
|
|
2277
2408
|
}
|
|
2278
2409
|
}
|
|
2279
|
-
disconnectedCallback() {
|
|
2280
|
-
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);
|
|
2281
|
-
}
|
|
2282
2410
|
handleOpenChange() {
|
|
2283
2411
|
this.hasAttribute("open") ? this.show() : this.hide();
|
|
2284
2412
|
}
|
|
2285
2413
|
show() {
|
|
2286
|
-
this.$
|
|
2414
|
+
this.$popover?.showPopover();
|
|
2287
2415
|
}
|
|
2288
2416
|
hide() {
|
|
2289
|
-
this
|
|
2417
|
+
this.$popover?.hidePopover(), this.dispatchEvent(new CustomEvent(ke, {
|
|
2290
2418
|
bubbles: !0,
|
|
2291
2419
|
composed: !0
|
|
2292
2420
|
}));
|
|
2293
2421
|
}
|
|
2294
|
-
startAutoHideTimeout() {
|
|
2295
|
-
this.clearAutoHideTimeout(), !(!this.isVisible || this.isHovered || this.isFocused || this.remainingDuration === null || this.remainingDuration <= 0) && (this.timeoutStartedAt = Date.now(), this.autoHideTimeoutId = setTimeout(() => {
|
|
2296
|
-
this.remainingDuration = 0, this.hide();
|
|
2297
|
-
}, this.remainingDuration));
|
|
2298
|
-
}
|
|
2299
|
-
pauseAutoHideTimeout() {
|
|
2300
|
-
this.timeoutStartedAt !== null && this.remainingDuration !== null && (this.remainingDuration = Math.max(0, this.remainingDuration - (Date.now() - this.timeoutStartedAt))), this.clearAutoHideTimeout();
|
|
2301
|
-
}
|
|
2302
|
-
resumeAutoHideTimeout() {
|
|
2303
|
-
!this.isHovered && !this.isFocused && this.startAutoHideTimeout();
|
|
2304
|
-
}
|
|
2305
|
-
clearAutoHideTimeout() {
|
|
2306
|
-
this.autoHideTimeoutId !== null && (clearTimeout(this.autoHideTimeoutId), this.autoHideTimeoutId = null), this.timeoutStartedAt = null;
|
|
2307
|
-
}
|
|
2308
2422
|
showPopover() {
|
|
2309
2423
|
this.show();
|
|
2310
2424
|
}
|
|
@@ -2312,7 +2426,7 @@ var Z = [
|
|
|
2312
2426
|
this.hide();
|
|
2313
2427
|
}
|
|
2314
2428
|
handleInvertedChange() {
|
|
2315
|
-
this
|
|
2429
|
+
this.$pxContainer?.setAttribute("background-color", this.inverted ? "surface-light" : "surface-dark"), this.$statusIcon?.toggleAttribute("inverted", !this.inverted);
|
|
2316
2430
|
}
|
|
2317
2431
|
addEventListenersToHideButtons() {
|
|
2318
2432
|
this.removePopoverButtonListeners(), this.id && document.querySelectorAll(`[popovertarget="${this.id}"]`).forEach((e) => {
|
|
@@ -2323,27 +2437,36 @@ var Z = [
|
|
|
2323
2437
|
this.popoverButtonsCleanups.forEach((e) => e()), this.popoverButtonsCleanups = [];
|
|
2324
2438
|
}
|
|
2325
2439
|
handleStatusChange(e, t) {
|
|
2326
|
-
if (!
|
|
2327
|
-
|
|
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()}.
|
|
2328
2446
|
Allowed values are: "${t.join("\", \"")}".`);
|
|
2329
2447
|
return;
|
|
2330
2448
|
}
|
|
2331
|
-
this.$
|
|
2332
|
-
|
|
2333
|
-
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);
|
|
2334
2451
|
}
|
|
2335
|
-
|
|
2336
|
-
|
|
2452
|
+
handleStatusLabelChange() {
|
|
2453
|
+
this.$statusLabel && (this.$statusLabel.textContent = this.status && J.includes(this.status) ? this.statusLabel : "");
|
|
2337
2454
|
}
|
|
2338
2455
|
getIcon(e) {
|
|
2339
2456
|
return e === "success" ? "checkmark_fill" : e === "warning" ? "exclamation_mark_fill" : e === "error" ? "minus_fill" : "information_fill";
|
|
2340
2457
|
}
|
|
2341
|
-
get $
|
|
2342
|
-
return this.shadowRoot?.querySelector("
|
|
2458
|
+
get $popover() {
|
|
2459
|
+
return this.shadowRoot?.querySelector("[popover=\"manual\"]");
|
|
2343
2460
|
}
|
|
2344
2461
|
get $slotVisual() {
|
|
2345
2462
|
return this.shadowRoot?.querySelector("slot[name=\"visual\"]");
|
|
2346
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
|
+
}
|
|
2347
2470
|
get $message() {
|
|
2348
2471
|
return this.shadowRoot?.querySelector(".toaster-message");
|
|
2349
2472
|
}
|
|
@@ -2354,29 +2477,97 @@ var Z = [
|
|
|
2354
2477
|
return this.getAttribute("status") || "";
|
|
2355
2478
|
}
|
|
2356
2479
|
set status(e) {
|
|
2357
|
-
|
|
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);
|
|
2358
2487
|
}
|
|
2359
2488
|
get open() {
|
|
2360
2489
|
return this.hasAttribute("open");
|
|
2361
2490
|
}
|
|
2362
2491
|
set open(e) {
|
|
2363
|
-
|
|
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\"]");
|
|
2364
2550
|
}
|
|
2365
2551
|
get duration() {
|
|
2366
|
-
if (!this.hasAttribute("duration")) return
|
|
2552
|
+
if (!this.hasAttribute("duration")) return Z;
|
|
2367
2553
|
let e = Number(this.getAttribute("duration"));
|
|
2368
|
-
return Number.isNaN(e) ?
|
|
2554
|
+
return Number.isNaN(e) ? Z : e;
|
|
2369
2555
|
}
|
|
2370
2556
|
set duration(e) {
|
|
2371
|
-
|
|
2557
|
+
a(this, "duration", e);
|
|
2372
2558
|
}
|
|
2373
|
-
|
|
2374
|
-
|
|
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);
|
|
2375
2566
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2567
|
+
get $popover() {
|
|
2568
|
+
return this.shadowRoot?.querySelector("dialog[popover=\"manual\"]");
|
|
2378
2569
|
}
|
|
2379
2570
|
};
|
|
2380
|
-
customElements.get("px-toaster") || customElements.define("px-toaster", $);
|
|
2571
|
+
customElements.get("px-toaster-actionable") || customElements.define("px-toaster-actionable", $);
|
|
2381
2572
|
//#endregion
|
|
2382
|
-
export {
|
|
2573
|
+
export { Q as Toaster, $ as ToasterActionable, J as toasterStatusValues };
|