@proximus/lavender-toaster 2.0.0-alpha.231 → 2.0.0-alpha.233
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 +661 -388
- 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{--flex-min-width--mobile-value:auto;--flex-min-width--tablet-value:auto;--flex-min-width--laptop-value:auto;--flex-min-width--desktop-value:auto;--flex-max-width--mobile-value:none;--flex-max-width--tablet-value:none;--flex-max-width--laptop-value:none;--flex-max-width--desktop-value:none;min-width:var(--flex-min-width--mobile-value);max-width:var(--flex-max-width--mobile-value);--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){:host{min-width:var(--flex-min-width--tablet-value);max-width:var(--flex-max-width--tablet-value)}.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){:host{min-width:var(--flex-min-width--laptop-value);max-width:var(--flex-max-width--laptop-value)}.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){:host{min-width:var(--flex-min-width--desktop-value);max-width:var(--flex-max-width--desktop-value)}.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", P = new CSSStyleSheet();
|
|
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() {
|
|
@@ -1459,7 +1497,17 @@ var V = [
|
|
|
1459
1497
|
"max-height--mobile",
|
|
1460
1498
|
"max-height--tablet",
|
|
1461
1499
|
"max-height--laptop",
|
|
1462
|
-
"max-height--desktop"
|
|
1500
|
+
"max-height--desktop",
|
|
1501
|
+
"min-width",
|
|
1502
|
+
"min-width--mobile",
|
|
1503
|
+
"min-width--tablet",
|
|
1504
|
+
"min-width--laptop",
|
|
1505
|
+
"min-width--desktop",
|
|
1506
|
+
"max-width",
|
|
1507
|
+
"max-width--mobile",
|
|
1508
|
+
"max-width--tablet",
|
|
1509
|
+
"max-width--laptop",
|
|
1510
|
+
"max-width--desktop"
|
|
1463
1511
|
];
|
|
1464
1512
|
}
|
|
1465
1513
|
attributeChangedCallback(e, t, n) {
|
|
@@ -1469,35 +1517,47 @@ var V = [
|
|
|
1469
1517
|
case "gap--tablet":
|
|
1470
1518
|
case "gap--laptop":
|
|
1471
1519
|
case "gap--desktop":
|
|
1472
|
-
this.updateFlexProperties(e, t, n,
|
|
1520
|
+
this.updateFlexProperties(e, t, n, h);
|
|
1473
1521
|
break;
|
|
1474
1522
|
case "justify-content":
|
|
1475
1523
|
case "justify-content--mobile":
|
|
1476
1524
|
case "justify-content--tablet":
|
|
1477
1525
|
case "justify-content--laptop":
|
|
1478
1526
|
case "justify-content--desktop":
|
|
1479
|
-
this.updateFlexProperties(e, t, n,
|
|
1527
|
+
this.updateFlexProperties(e, t, n, R);
|
|
1480
1528
|
break;
|
|
1481
1529
|
case "align-items":
|
|
1482
1530
|
case "align-items--mobile":
|
|
1483
1531
|
case "align-items--tablet":
|
|
1484
1532
|
case "align-items--laptop":
|
|
1485
1533
|
case "align-items--desktop":
|
|
1486
|
-
this.updateFlexProperties(e, t, n,
|
|
1534
|
+
this.updateFlexProperties(e, t, n, L);
|
|
1487
1535
|
break;
|
|
1488
1536
|
case "wrap":
|
|
1489
1537
|
case "wrap--mobile":
|
|
1490
1538
|
case "wrap--tablet":
|
|
1491
1539
|
case "wrap--laptop":
|
|
1492
1540
|
case "wrap--desktop":
|
|
1493
|
-
this.updateFlexProperties(e, t, n,
|
|
1541
|
+
this.updateFlexProperties(e, t, n, ge);
|
|
1494
1542
|
break;
|
|
1495
1543
|
case "direction":
|
|
1496
1544
|
case "direction--mobile":
|
|
1497
1545
|
case "direction--tablet":
|
|
1498
1546
|
case "direction--laptop":
|
|
1499
1547
|
case "direction--desktop":
|
|
1500
|
-
this.updateFlexProperties(e, t, n,
|
|
1548
|
+
this.updateFlexProperties(e, t, n, I), this.updateVerticalStyles();
|
|
1549
|
+
break;
|
|
1550
|
+
case "min-width":
|
|
1551
|
+
case "min-width--mobile":
|
|
1552
|
+
case "min-width--tablet":
|
|
1553
|
+
case "min-width--laptop":
|
|
1554
|
+
case "min-width--desktop":
|
|
1555
|
+
case "max-width":
|
|
1556
|
+
case "max-width--mobile":
|
|
1557
|
+
case "max-width--tablet":
|
|
1558
|
+
case "max-width--laptop":
|
|
1559
|
+
case "max-width--desktop":
|
|
1560
|
+
n && !CSS.supports(e.split("--")[0], n) && r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateFlexProperties(e, t, n);
|
|
1501
1561
|
break;
|
|
1502
1562
|
case "overflow-y":
|
|
1503
1563
|
case "overflow-y--mobile":
|
|
@@ -1509,20 +1569,20 @@ var V = [
|
|
|
1509
1569
|
case "max-height--tablet":
|
|
1510
1570
|
case "max-height--laptop":
|
|
1511
1571
|
case "max-height--desktop":
|
|
1512
|
-
n && !this.isValidVerticalValue(e, n) &&
|
|
1572
|
+
n && !this.isValidVerticalValue(e, n) && r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
1513
1573
|
break;
|
|
1514
1574
|
case "overflow-x":
|
|
1515
1575
|
case "overflow-x--mobile":
|
|
1516
1576
|
case "overflow-x--tablet":
|
|
1517
1577
|
case "overflow-x--laptop":
|
|
1518
1578
|
case "overflow-x--desktop":
|
|
1519
|
-
this.updateOverflowX(e, t, n,
|
|
1579
|
+
this.updateOverflowX(e, t, n, z);
|
|
1520
1580
|
break;
|
|
1521
1581
|
default: super.attributeChangedCallback(e, t, n);
|
|
1522
1582
|
}
|
|
1523
1583
|
}
|
|
1524
1584
|
isValidVerticalValue(e, t) {
|
|
1525
|
-
return e.startsWith("overflow-y") ?
|
|
1585
|
+
return e.startsWith("overflow-y") ? z.includes(t) : CSS.supports("max-height", t);
|
|
1526
1586
|
}
|
|
1527
1587
|
updateVerticalStyles() {
|
|
1528
1588
|
for (let t of e.breakpoints) {
|
|
@@ -1533,25 +1593,25 @@ var V = [
|
|
|
1533
1593
|
}
|
|
1534
1594
|
}
|
|
1535
1595
|
}
|
|
1536
|
-
updateOverflowX(e, t, n,
|
|
1537
|
-
|
|
1596
|
+
updateOverflowX(e, t, n, i) {
|
|
1597
|
+
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
1598
|
}
|
|
1539
|
-
updateFlexProperties(t, n,
|
|
1540
|
-
|
|
1599
|
+
updateFlexProperties(t, n, i, a) {
|
|
1600
|
+
a && i !== null && !this.checkName(a, i) && r(`"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join("\", \"")}".`);
|
|
1541
1601
|
let o = t.indexOf("--");
|
|
1542
|
-
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n,
|
|
1602
|
+
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n, i, a);
|
|
1543
1603
|
else {
|
|
1544
1604
|
let e = t.slice(0, o), n = t.slice(o + 2);
|
|
1545
|
-
this.updateStyle(e, n,
|
|
1605
|
+
this.updateStyle(e, n, i || this.getAttribute(e), a);
|
|
1546
1606
|
}
|
|
1547
1607
|
}
|
|
1548
1608
|
updateStyle(e, t, n, r) {
|
|
1549
|
-
let i = `--flex-${e}--${t}-value`, a = e === "gap";
|
|
1550
|
-
if (!n)
|
|
1609
|
+
let i = `--flex-${e}--${t}-value`, a = e === "gap", o = e === "min-width" || e === "max-width", s = o ? this : this.$el;
|
|
1610
|
+
if (o && n && !CSS.supports(e, n) && (n = null), !n) s.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
|
|
1551
1611
|
else if (a && r && r.includes(n)) {
|
|
1552
1612
|
let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
|
|
1553
1613
|
this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
|
|
1554
|
-
} else
|
|
1614
|
+
} else s.style.setProperty(i, n);
|
|
1555
1615
|
}
|
|
1556
1616
|
static {
|
|
1557
1617
|
this.breakpoints = [
|
|
@@ -1565,274 +1625,334 @@ var V = [
|
|
|
1565
1625
|
return this.getAttribute("direction") ?? "row";
|
|
1566
1626
|
}
|
|
1567
1627
|
set direction(e) {
|
|
1568
|
-
|
|
1628
|
+
a(this, "direction", e);
|
|
1569
1629
|
}
|
|
1570
1630
|
get directionMobile() {
|
|
1571
1631
|
return this.getAttribute("direction--mobile");
|
|
1572
1632
|
}
|
|
1573
1633
|
set directionMobile(e) {
|
|
1574
|
-
|
|
1634
|
+
a(this, "direction--mobile", e);
|
|
1575
1635
|
}
|
|
1576
1636
|
get directionTablet() {
|
|
1577
1637
|
return this.getAttribute("direction--tablet");
|
|
1578
1638
|
}
|
|
1579
1639
|
set directionTablet(e) {
|
|
1580
|
-
|
|
1640
|
+
a(this, "direction--tablet", e);
|
|
1581
1641
|
}
|
|
1582
1642
|
get directionLaptop() {
|
|
1583
1643
|
return this.getAttribute("direction--laptop");
|
|
1584
1644
|
}
|
|
1585
1645
|
set directionLaptop(e) {
|
|
1586
|
-
|
|
1646
|
+
a(this, "direction--laptop", e);
|
|
1587
1647
|
}
|
|
1588
1648
|
get directionDesktop() {
|
|
1589
1649
|
return this.getAttribute("direction--desktop");
|
|
1590
1650
|
}
|
|
1591
1651
|
set directionDesktop(e) {
|
|
1592
|
-
|
|
1652
|
+
a(this, "direction--desktop", e);
|
|
1593
1653
|
}
|
|
1594
1654
|
get gap() {
|
|
1595
1655
|
return this.getAttribute("gap") ?? "none";
|
|
1596
1656
|
}
|
|
1597
1657
|
set gap(e) {
|
|
1598
|
-
|
|
1658
|
+
a(this, "gap", e);
|
|
1599
1659
|
}
|
|
1600
1660
|
get gapMobile() {
|
|
1601
1661
|
return this.getAttribute("gap--mobile");
|
|
1602
1662
|
}
|
|
1603
1663
|
set gapMobile(e) {
|
|
1604
|
-
|
|
1664
|
+
a(this, "gap--mobile", e);
|
|
1605
1665
|
}
|
|
1606
1666
|
get gapTablet() {
|
|
1607
1667
|
return this.getAttribute("gap--tablet");
|
|
1608
1668
|
}
|
|
1609
1669
|
set gapTablet(e) {
|
|
1610
|
-
|
|
1670
|
+
a(this, "gap--tablet", e);
|
|
1611
1671
|
}
|
|
1612
1672
|
get gapLaptop() {
|
|
1613
1673
|
return this.getAttribute("gap--laptop");
|
|
1614
1674
|
}
|
|
1615
1675
|
set gapLaptop(e) {
|
|
1616
|
-
|
|
1676
|
+
a(this, "gap--laptop", e);
|
|
1617
1677
|
}
|
|
1618
1678
|
get gapDesktop() {
|
|
1619
1679
|
return this.getAttribute("gap--desktop");
|
|
1620
1680
|
}
|
|
1621
1681
|
set gapDesktop(e) {
|
|
1622
|
-
|
|
1682
|
+
a(this, "gap--desktop", e);
|
|
1623
1683
|
}
|
|
1624
1684
|
get justifyContent() {
|
|
1625
1685
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
1626
1686
|
}
|
|
1627
1687
|
set justifyContent(e) {
|
|
1628
|
-
|
|
1688
|
+
a(this, "justify-content", e);
|
|
1629
1689
|
}
|
|
1630
1690
|
get justifyContentMobile() {
|
|
1631
1691
|
return this.getAttribute("justify-content--mobile");
|
|
1632
1692
|
}
|
|
1633
1693
|
set justifyContentMobile(e) {
|
|
1634
|
-
|
|
1694
|
+
a(this, "justify-content--mobile", e);
|
|
1635
1695
|
}
|
|
1636
1696
|
get justifyContentTablet() {
|
|
1637
1697
|
return this.getAttribute("justify-content--tablet");
|
|
1638
1698
|
}
|
|
1639
1699
|
set justifyContentTablet(e) {
|
|
1640
|
-
|
|
1700
|
+
a(this, "justify-content--tablet", e);
|
|
1641
1701
|
}
|
|
1642
1702
|
get justifyContentLaptop() {
|
|
1643
1703
|
return this.getAttribute("justify-content--laptop");
|
|
1644
1704
|
}
|
|
1645
1705
|
set justifyContentLaptop(e) {
|
|
1646
|
-
|
|
1706
|
+
a(this, "justify-content--laptop", e);
|
|
1647
1707
|
}
|
|
1648
1708
|
get justifyContentDesktop() {
|
|
1649
1709
|
return this.getAttribute("justify-content--desktop");
|
|
1650
1710
|
}
|
|
1651
1711
|
set justifyContentDesktop(e) {
|
|
1652
|
-
|
|
1712
|
+
a(this, "justify-content--desktop", e);
|
|
1653
1713
|
}
|
|
1654
1714
|
get alignItems() {
|
|
1655
1715
|
return this.getAttribute("align-items") ?? "stretch";
|
|
1656
1716
|
}
|
|
1657
1717
|
set alignItems(e) {
|
|
1658
|
-
|
|
1718
|
+
a(this, "align-items", e);
|
|
1659
1719
|
}
|
|
1660
1720
|
get alignItemsMobile() {
|
|
1661
1721
|
return this.getAttribute("align-items--mobile");
|
|
1662
1722
|
}
|
|
1663
1723
|
set alignItemsMobile(e) {
|
|
1664
|
-
|
|
1724
|
+
a(this, "align-items--mobile", e);
|
|
1665
1725
|
}
|
|
1666
1726
|
get alignItemsTablet() {
|
|
1667
1727
|
return this.getAttribute("align-items--tablet");
|
|
1668
1728
|
}
|
|
1669
1729
|
set alignItemsTablet(e) {
|
|
1670
|
-
|
|
1730
|
+
a(this, "align-items--tablet", e);
|
|
1671
1731
|
}
|
|
1672
1732
|
get alignItemsLaptop() {
|
|
1673
1733
|
return this.getAttribute("align-items--laptop");
|
|
1674
1734
|
}
|
|
1675
1735
|
set alignItemsLaptop(e) {
|
|
1676
|
-
|
|
1736
|
+
a(this, "align-items--laptop", e);
|
|
1677
1737
|
}
|
|
1678
1738
|
get alignItemsDesktop() {
|
|
1679
1739
|
return this.getAttribute("align-items--desktop");
|
|
1680
1740
|
}
|
|
1681
1741
|
set alignItemsDesktop(e) {
|
|
1682
|
-
|
|
1742
|
+
a(this, "align-items--desktop", e);
|
|
1683
1743
|
}
|
|
1684
1744
|
get wrap() {
|
|
1685
1745
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
1686
1746
|
}
|
|
1687
1747
|
set wrap(e) {
|
|
1688
|
-
|
|
1748
|
+
a(this, "wrap", e);
|
|
1689
1749
|
}
|
|
1690
1750
|
get wrapMobile() {
|
|
1691
1751
|
return this.getAttribute("wrap--mobile");
|
|
1692
1752
|
}
|
|
1693
1753
|
set wrapMobile(e) {
|
|
1694
|
-
|
|
1754
|
+
a(this, "wrap--mobile", e);
|
|
1695
1755
|
}
|
|
1696
1756
|
get wrapTablet() {
|
|
1697
1757
|
return this.getAttribute("wrap--tablet");
|
|
1698
1758
|
}
|
|
1699
1759
|
set wrapTablet(e) {
|
|
1700
|
-
|
|
1760
|
+
a(this, "wrap--tablet", e);
|
|
1701
1761
|
}
|
|
1702
1762
|
get wrapLaptop() {
|
|
1703
1763
|
return this.getAttribute("wrap--laptop");
|
|
1704
1764
|
}
|
|
1705
1765
|
set wrapLaptop(e) {
|
|
1706
|
-
|
|
1766
|
+
a(this, "wrap--laptop", e);
|
|
1707
1767
|
}
|
|
1708
1768
|
get wrapDesktop() {
|
|
1709
1769
|
return this.getAttribute("wrap--desktop");
|
|
1710
1770
|
}
|
|
1711
1771
|
set wrapDesktop(e) {
|
|
1712
|
-
|
|
1772
|
+
a(this, "wrap--desktop", e);
|
|
1713
1773
|
}
|
|
1714
1774
|
get overflowX() {
|
|
1715
1775
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
1716
1776
|
}
|
|
1717
1777
|
set overflowX(e) {
|
|
1718
|
-
|
|
1778
|
+
a(this, "overflow-x", e);
|
|
1719
1779
|
}
|
|
1720
1780
|
get overflowXMobile() {
|
|
1721
1781
|
return this.getAttribute("overflow-x--mobile");
|
|
1722
1782
|
}
|
|
1723
1783
|
set overflowXMobile(e) {
|
|
1724
|
-
|
|
1784
|
+
a(this, "overflow-x--mobile", e);
|
|
1725
1785
|
}
|
|
1726
1786
|
get overflowXTablet() {
|
|
1727
1787
|
return this.getAttribute("overflow-x--tablet");
|
|
1728
1788
|
}
|
|
1729
1789
|
set overflowXTablet(e) {
|
|
1730
|
-
|
|
1790
|
+
a(this, "overflow-x--tablet", e);
|
|
1731
1791
|
}
|
|
1732
1792
|
get overflowXLaptop() {
|
|
1733
1793
|
return this.getAttribute("overflow-x--laptop");
|
|
1734
1794
|
}
|
|
1735
1795
|
set overflowXLaptop(e) {
|
|
1736
|
-
|
|
1796
|
+
a(this, "overflow-x--laptop", e);
|
|
1737
1797
|
}
|
|
1738
1798
|
get overflowXDesktop() {
|
|
1739
1799
|
return this.getAttribute("overflow-x--desktop");
|
|
1740
1800
|
}
|
|
1741
1801
|
set overflowXDesktop(e) {
|
|
1742
|
-
|
|
1802
|
+
a(this, "overflow-x--desktop", e);
|
|
1743
1803
|
}
|
|
1744
1804
|
get overflowY() {
|
|
1745
1805
|
return this.getAttribute("overflow-y") ?? "visible";
|
|
1746
1806
|
}
|
|
1747
1807
|
set overflowY(e) {
|
|
1748
|
-
|
|
1808
|
+
a(this, "overflow-y", e);
|
|
1749
1809
|
}
|
|
1750
1810
|
get overflowYMobile() {
|
|
1751
1811
|
return this.getAttribute("overflow-y--mobile");
|
|
1752
1812
|
}
|
|
1753
1813
|
set overflowYMobile(e) {
|
|
1754
|
-
|
|
1814
|
+
a(this, "overflow-y--mobile", e);
|
|
1755
1815
|
}
|
|
1756
1816
|
get overflowYTablet() {
|
|
1757
1817
|
return this.getAttribute("overflow-y--tablet");
|
|
1758
1818
|
}
|
|
1759
1819
|
set overflowYTablet(e) {
|
|
1760
|
-
|
|
1820
|
+
a(this, "overflow-y--tablet", e);
|
|
1761
1821
|
}
|
|
1762
1822
|
get overflowYLaptop() {
|
|
1763
1823
|
return this.getAttribute("overflow-y--laptop");
|
|
1764
1824
|
}
|
|
1765
1825
|
set overflowYLaptop(e) {
|
|
1766
|
-
|
|
1826
|
+
a(this, "overflow-y--laptop", e);
|
|
1767
1827
|
}
|
|
1768
1828
|
get overflowYDesktop() {
|
|
1769
1829
|
return this.getAttribute("overflow-y--desktop");
|
|
1770
1830
|
}
|
|
1771
1831
|
set overflowYDesktop(e) {
|
|
1772
|
-
|
|
1832
|
+
a(this, "overflow-y--desktop", e);
|
|
1773
1833
|
}
|
|
1774
1834
|
get maxHeight() {
|
|
1775
1835
|
return this.getAttribute("max-height") ?? "none";
|
|
1776
1836
|
}
|
|
1777
1837
|
set maxHeight(e) {
|
|
1778
|
-
|
|
1838
|
+
a(this, "max-height", e);
|
|
1779
1839
|
}
|
|
1780
1840
|
get maxHeightMobile() {
|
|
1781
1841
|
return this.getAttribute("max-height--mobile");
|
|
1782
1842
|
}
|
|
1783
1843
|
set maxHeightMobile(e) {
|
|
1784
|
-
|
|
1844
|
+
a(this, "max-height--mobile", e);
|
|
1785
1845
|
}
|
|
1786
1846
|
get maxHeightTablet() {
|
|
1787
1847
|
return this.getAttribute("max-height--tablet");
|
|
1788
1848
|
}
|
|
1789
1849
|
set maxHeightTablet(e) {
|
|
1790
|
-
|
|
1850
|
+
a(this, "max-height--tablet", e);
|
|
1791
1851
|
}
|
|
1792
1852
|
get maxHeightLaptop() {
|
|
1793
1853
|
return this.getAttribute("max-height--laptop");
|
|
1794
1854
|
}
|
|
1795
1855
|
set maxHeightLaptop(e) {
|
|
1796
|
-
|
|
1856
|
+
a(this, "max-height--laptop", e);
|
|
1797
1857
|
}
|
|
1798
1858
|
get maxHeightDesktop() {
|
|
1799
1859
|
return this.getAttribute("max-height--desktop");
|
|
1800
1860
|
}
|
|
1801
1861
|
set maxHeightDesktop(e) {
|
|
1802
|
-
|
|
1862
|
+
a(this, "max-height--desktop", e);
|
|
1863
|
+
}
|
|
1864
|
+
get minWidth() {
|
|
1865
|
+
return this.getAttribute("min-width") ?? "auto";
|
|
1866
|
+
}
|
|
1867
|
+
set minWidth(e) {
|
|
1868
|
+
a(this, "min-width", e);
|
|
1869
|
+
}
|
|
1870
|
+
get minWidthMobile() {
|
|
1871
|
+
return this.getAttribute("min-width--mobile");
|
|
1872
|
+
}
|
|
1873
|
+
set minWidthMobile(e) {
|
|
1874
|
+
a(this, "min-width--mobile", e);
|
|
1875
|
+
}
|
|
1876
|
+
get minWidthTablet() {
|
|
1877
|
+
return this.getAttribute("min-width--tablet");
|
|
1878
|
+
}
|
|
1879
|
+
set minWidthTablet(e) {
|
|
1880
|
+
a(this, "min-width--tablet", e);
|
|
1881
|
+
}
|
|
1882
|
+
get minWidthLaptop() {
|
|
1883
|
+
return this.getAttribute("min-width--laptop");
|
|
1884
|
+
}
|
|
1885
|
+
set minWidthLaptop(e) {
|
|
1886
|
+
a(this, "min-width--laptop", e);
|
|
1887
|
+
}
|
|
1888
|
+
get minWidthDesktop() {
|
|
1889
|
+
return this.getAttribute("min-width--desktop");
|
|
1890
|
+
}
|
|
1891
|
+
set minWidthDesktop(e) {
|
|
1892
|
+
a(this, "min-width--desktop", e);
|
|
1893
|
+
}
|
|
1894
|
+
get maxWidth() {
|
|
1895
|
+
return this.getAttribute("max-width") ?? "none";
|
|
1896
|
+
}
|
|
1897
|
+
set maxWidth(e) {
|
|
1898
|
+
a(this, "max-width", e);
|
|
1899
|
+
}
|
|
1900
|
+
get maxWidthMobile() {
|
|
1901
|
+
return this.getAttribute("max-width--mobile");
|
|
1902
|
+
}
|
|
1903
|
+
set maxWidthMobile(e) {
|
|
1904
|
+
a(this, "max-width--mobile", e);
|
|
1905
|
+
}
|
|
1906
|
+
get maxWidthTablet() {
|
|
1907
|
+
return this.getAttribute("max-width--tablet");
|
|
1908
|
+
}
|
|
1909
|
+
set maxWidthTablet(e) {
|
|
1910
|
+
a(this, "max-width--tablet", e);
|
|
1911
|
+
}
|
|
1912
|
+
get maxWidthLaptop() {
|
|
1913
|
+
return this.getAttribute("max-width--laptop");
|
|
1914
|
+
}
|
|
1915
|
+
set maxWidthLaptop(e) {
|
|
1916
|
+
a(this, "max-width--laptop", e);
|
|
1917
|
+
}
|
|
1918
|
+
get maxWidthDesktop() {
|
|
1919
|
+
return this.getAttribute("max-width--desktop");
|
|
1920
|
+
}
|
|
1921
|
+
set maxWidthDesktop(e) {
|
|
1922
|
+
a(this, "max-width--desktop", e);
|
|
1803
1923
|
}
|
|
1804
1924
|
get $el() {
|
|
1805
1925
|
return this.shadowRoot.firstElementChild;
|
|
1806
1926
|
}
|
|
1807
1927
|
};
|
|
1808
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
1809
|
-
var
|
|
1928
|
+
customElements.get("px-stack") || customElements.define("px-stack", B);
|
|
1929
|
+
var V = (e) => e === "direction" || e.startsWith("direction--"), _e = class extends B {
|
|
1810
1930
|
get direction() {
|
|
1811
1931
|
return "column";
|
|
1812
1932
|
}
|
|
1813
1933
|
set direction(e) {
|
|
1814
|
-
|
|
1934
|
+
a(this, "direction", e);
|
|
1815
1935
|
}
|
|
1816
1936
|
attributeChangedCallback(e, t, n) {
|
|
1817
|
-
|
|
1937
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1818
1938
|
}
|
|
1819
1939
|
};
|
|
1820
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
1821
|
-
var
|
|
1940
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", _e);
|
|
1941
|
+
var ve = class extends B {
|
|
1822
1942
|
get direction() {
|
|
1823
1943
|
return "row";
|
|
1824
1944
|
}
|
|
1825
1945
|
set direction(e) {
|
|
1826
|
-
|
|
1946
|
+
a(this, "direction", e);
|
|
1827
1947
|
}
|
|
1828
1948
|
attributeChangedCallback(e, t, n) {
|
|
1829
|
-
|
|
1949
|
+
V(e) || super.attributeChangedCallback(e, t, n);
|
|
1830
1950
|
}
|
|
1831
1951
|
};
|
|
1832
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
1952
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", ve);
|
|
1833
1953
|
//#endregion
|
|
1834
1954
|
//#region ../Layout/src/Spacer.ts
|
|
1835
|
-
var
|
|
1955
|
+
var ye = class extends HTMLElement {
|
|
1836
1956
|
constructor() {
|
|
1837
1957
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1838
1958
|
}
|
|
@@ -1878,14 +1998,14 @@ var le = class extends HTMLElement {
|
|
|
1878
1998
|
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1879
1999
|
}
|
|
1880
2000
|
};
|
|
1881
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
2001
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", ye);
|
|
1882
2002
|
//#endregion
|
|
1883
2003
|
//#region ../Layout/src/Page.css?inline
|
|
1884
|
-
var
|
|
1885
|
-
|
|
1886
|
-
var
|
|
2004
|
+
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();
|
|
2005
|
+
H.replaceSync(be);
|
|
2006
|
+
var xe = class extends v {
|
|
1887
2007
|
constructor() {
|
|
1888
|
-
super(
|
|
2008
|
+
super(H), this.template = () => `
|
|
1889
2009
|
<px-container border-radius="none" padding="none">
|
|
1890
2010
|
<px-vstack>
|
|
1891
2011
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1978,7 +2098,7 @@ var de = class extends S {
|
|
|
1978
2098
|
</px-container>
|
|
1979
2099
|
</px-vstack>
|
|
1980
2100
|
</px-container>
|
|
1981
|
-
`,
|
|
2101
|
+
`, E(this.shadowRoot, this.template());
|
|
1982
2102
|
}
|
|
1983
2103
|
static get observedAttributes() {
|
|
1984
2104
|
return [
|
|
@@ -2047,7 +2167,7 @@ var de = class extends S {
|
|
|
2047
2167
|
this.$bodyVStackContainer.setAttribute("gap", n);
|
|
2048
2168
|
break;
|
|
2049
2169
|
case "background-color":
|
|
2050
|
-
this.$bodyContainer.setAttribute("background-color",
|
|
2170
|
+
this.$bodyContainer.setAttribute("background-color", p.indexOf(n) > 0 ? n : "none");
|
|
2051
2171
|
break;
|
|
2052
2172
|
case "padding-vertical":
|
|
2053
2173
|
this.handlePaddingVerticalChange(n);
|
|
@@ -2065,10 +2185,10 @@ var de = class extends S {
|
|
|
2065
2185
|
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
2186
|
}
|
|
2067
2187
|
};
|
|
2068
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
2188
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", xe);
|
|
2069
2189
|
//#endregion
|
|
2070
2190
|
//#region ../Icon/common/src/IconSet.ts
|
|
2071
|
-
var
|
|
2191
|
+
var Se = class extends HTMLElement {
|
|
2072
2192
|
constructor() {
|
|
2073
2193
|
super();
|
|
2074
2194
|
}
|
|
@@ -2102,8 +2222,8 @@ var fe = class extends HTMLElement {
|
|
|
2102
2222
|
e && e.remove();
|
|
2103
2223
|
}
|
|
2104
2224
|
};
|
|
2105
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
2106
|
-
var
|
|
2225
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", Se);
|
|
2226
|
+
var Ce = [
|
|
2107
2227
|
"Inherit",
|
|
2108
2228
|
"Brand",
|
|
2109
2229
|
"Accent",
|
|
@@ -2117,11 +2237,11 @@ var pe = [
|
|
|
2117
2237
|
"StateHover",
|
|
2118
2238
|
"StateActive",
|
|
2119
2239
|
"StateDisabled"
|
|
2120
|
-
].map((e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)),
|
|
2121
|
-
|
|
2122
|
-
var
|
|
2240
|
+
].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();
|
|
2241
|
+
U.replaceSync(we);
|
|
2242
|
+
var Te = class e extends v {
|
|
2123
2243
|
static {
|
|
2124
|
-
this.template =
|
|
2244
|
+
this.template = T("<svg aria-hidden=\"true\"><use></use></svg>");
|
|
2125
2245
|
}
|
|
2126
2246
|
#e = null;
|
|
2127
2247
|
#t;
|
|
@@ -2138,7 +2258,7 @@ var he = class e extends S {
|
|
|
2138
2258
|
];
|
|
2139
2259
|
}
|
|
2140
2260
|
constructor(...t) {
|
|
2141
|
-
super(...t,
|
|
2261
|
+
super(...t, U), E(this.shadowRoot, e.template), this.#t = this.attachInternals?.(), this.#t && (this.#t.role = "img");
|
|
2142
2262
|
}
|
|
2143
2263
|
attributeChangedCallback(e, t, n) {
|
|
2144
2264
|
if (t !== n) switch (e) {
|
|
@@ -2146,10 +2266,10 @@ var he = class e extends S {
|
|
|
2146
2266
|
this.updateName(t, n);
|
|
2147
2267
|
break;
|
|
2148
2268
|
case "size":
|
|
2149
|
-
this.updateAttribute(e, t, n,
|
|
2269
|
+
this.updateAttribute(e, t, n, ie);
|
|
2150
2270
|
break;
|
|
2151
2271
|
case "color":
|
|
2152
|
-
this.updateAttribute(e, t, n,
|
|
2272
|
+
this.updateAttribute(e, t, n, Ce);
|
|
2153
2273
|
break;
|
|
2154
2274
|
case "disabled":
|
|
2155
2275
|
this.color = "state-disabled";
|
|
@@ -2166,8 +2286,8 @@ var he = class e extends S {
|
|
|
2166
2286
|
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
2287
|
!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
2288
|
}
|
|
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(
|
|
2289
|
+
updateAttribute(e, t, n, i) {
|
|
2290
|
+
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
2291
|
}
|
|
2172
2292
|
updateName(e, t) {
|
|
2173
2293
|
this.#e && this.$el.firstElementChild?.setAttribute("href", `${this.#e}#icon-${t}`);
|
|
@@ -2179,83 +2299,176 @@ var he = class e extends S {
|
|
|
2179
2299
|
return this.getAttribute("name");
|
|
2180
2300
|
}
|
|
2181
2301
|
set name(e) {
|
|
2182
|
-
|
|
2302
|
+
a(this, "name", e);
|
|
2183
2303
|
}
|
|
2184
2304
|
get size() {
|
|
2185
2305
|
return this.getAttribute("size");
|
|
2186
2306
|
}
|
|
2187
2307
|
set size(e) {
|
|
2188
|
-
|
|
2308
|
+
a(this, "size", e);
|
|
2189
2309
|
}
|
|
2190
2310
|
get color() {
|
|
2191
2311
|
return this.getAttribute("color");
|
|
2192
2312
|
}
|
|
2193
2313
|
set color(e) {
|
|
2194
|
-
|
|
2314
|
+
a(this, "color", e);
|
|
2195
2315
|
}
|
|
2196
2316
|
get arialabel() {
|
|
2197
2317
|
return this.getAttribute("aria-label");
|
|
2198
2318
|
}
|
|
2199
2319
|
set arialabel(e) {
|
|
2200
|
-
|
|
2320
|
+
a(this, "aria-label", e);
|
|
2201
2321
|
}
|
|
2202
2322
|
get inverted() {
|
|
2203
2323
|
return this.hasAttribute("inverted");
|
|
2204
2324
|
}
|
|
2205
2325
|
set inverted(e) {
|
|
2206
|
-
|
|
2326
|
+
o(this, "inverted", e);
|
|
2207
2327
|
}
|
|
2208
2328
|
get from() {
|
|
2209
2329
|
return this.getAttribute("from");
|
|
2210
2330
|
}
|
|
2211
2331
|
set from(e) {
|
|
2212
|
-
|
|
2332
|
+
a(this, "from", e);
|
|
2333
|
+
}
|
|
2334
|
+
get disabled() {
|
|
2335
|
+
return this.hasAttribute("disabled");
|
|
2336
|
+
}
|
|
2337
|
+
set disabled(e) {
|
|
2338
|
+
o(this, "disabled", e);
|
|
2339
|
+
}
|
|
2340
|
+
};
|
|
2341
|
+
customElements.get("px-icon") || customElements.define("px-icon", Te);
|
|
2342
|
+
//#endregion
|
|
2343
|
+
//#region ../Span/src/span.css?inline
|
|
2344
|
+
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();
|
|
2345
|
+
W.replaceSync(Ee), G.replaceSync(De);
|
|
2346
|
+
var K = class e extends ue {
|
|
2347
|
+
static {
|
|
2348
|
+
this.template = T("<span><slot></slot></span>");
|
|
2349
|
+
}
|
|
2350
|
+
static {
|
|
2351
|
+
this.nativeName = "span";
|
|
2352
|
+
}
|
|
2353
|
+
static {
|
|
2354
|
+
this.nativeAttributes = {};
|
|
2355
|
+
}
|
|
2356
|
+
constructor() {
|
|
2357
|
+
super(W, G), E(this.shadowRoot, e.template);
|
|
2358
|
+
}
|
|
2359
|
+
static get observedAttributes() {
|
|
2360
|
+
return [
|
|
2361
|
+
...super.observedAttributes,
|
|
2362
|
+
"color",
|
|
2363
|
+
"font-size",
|
|
2364
|
+
"font-weight",
|
|
2365
|
+
"inverted",
|
|
2366
|
+
"disabled",
|
|
2367
|
+
"strikethrough"
|
|
2368
|
+
];
|
|
2369
|
+
}
|
|
2370
|
+
attributeChangedCallback(e, t, n) {
|
|
2371
|
+
if (t !== n) switch (e) {
|
|
2372
|
+
case "color":
|
|
2373
|
+
this.updateTypography(e, t, n, u);
|
|
2374
|
+
break;
|
|
2375
|
+
case "font-size":
|
|
2376
|
+
this.updateTypography(e, t, n, l);
|
|
2377
|
+
break;
|
|
2378
|
+
case "font-weight":
|
|
2379
|
+
this.updateTypography(e, t, n, re);
|
|
2380
|
+
break;
|
|
2381
|
+
case "disabled":
|
|
2382
|
+
this.color = "state-disabled";
|
|
2383
|
+
break;
|
|
2384
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
updateTypography(e, t, n, i) {
|
|
2388
|
+
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("\", \"")}".`);
|
|
2389
|
+
}
|
|
2390
|
+
get color() {
|
|
2391
|
+
return this.getAttribute("color");
|
|
2392
|
+
}
|
|
2393
|
+
set color(e) {
|
|
2394
|
+
this._updateAttribute("color", e);
|
|
2395
|
+
}
|
|
2396
|
+
get fontsize() {
|
|
2397
|
+
return this.getAttribute("font-size");
|
|
2398
|
+
}
|
|
2399
|
+
set fontsize(e) {
|
|
2400
|
+
this._updateAttribute("font-size", e);
|
|
2401
|
+
}
|
|
2402
|
+
get fontweight() {
|
|
2403
|
+
return this.getAttribute("font-weight");
|
|
2404
|
+
}
|
|
2405
|
+
set fontweight(e) {
|
|
2406
|
+
this._updateAttribute("font-weight", e);
|
|
2407
|
+
}
|
|
2408
|
+
get inverted() {
|
|
2409
|
+
return this.hasAttribute("inverted");
|
|
2410
|
+
}
|
|
2411
|
+
set inverted(e) {
|
|
2412
|
+
this._updateBooleanAttribute("inverted", e);
|
|
2413
|
+
}
|
|
2414
|
+
get strikethrough() {
|
|
2415
|
+
return this.hasAttribute("strikethrough");
|
|
2416
|
+
}
|
|
2417
|
+
set strikethrough(e) {
|
|
2418
|
+
this._updateBooleanAttribute("strikethrough", e);
|
|
2213
2419
|
}
|
|
2214
2420
|
get disabled() {
|
|
2215
2421
|
return this.hasAttribute("disabled");
|
|
2216
2422
|
}
|
|
2217
2423
|
set disabled(e) {
|
|
2218
|
-
|
|
2424
|
+
this._updateBooleanAttribute("disabled", e);
|
|
2219
2425
|
}
|
|
2220
2426
|
};
|
|
2221
|
-
customElements.get("px-
|
|
2427
|
+
customElements.get("px-span") || customElements.define("px-span", K);
|
|
2222
2428
|
//#endregion
|
|
2223
2429
|
//#region src/toaster.css?inline
|
|
2224
|
-
var
|
|
2225
|
-
|
|
2226
|
-
var
|
|
2430
|
+
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();
|
|
2431
|
+
q.replaceSync(Oe);
|
|
2432
|
+
var J = [
|
|
2227
2433
|
"",
|
|
2228
2434
|
"info",
|
|
2229
2435
|
"success",
|
|
2230
2436
|
"error",
|
|
2231
2437
|
"warning"
|
|
2232
|
-
],
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2438
|
+
], ke = "px.lavender.toaster.hide";
|
|
2439
|
+
function Y(e, t = !1) {
|
|
2440
|
+
let n = e === "dialog", r = `<px-hstack gap="s" align-items="flex-start" class="toaster-content">
|
|
2441
|
+
<slot name="visual"></slot>
|
|
2442
|
+
<div class="toaster-message" ${n ? "id=\"toaster-message\"" : ""}>
|
|
2443
|
+
<px-span shown--sr=""></px-span>
|
|
2444
|
+
<slot name="label"></slot>
|
|
2445
|
+
</div>
|
|
2446
|
+
<slot name="close-button"></slot>
|
|
2447
|
+
</px-hstack>`;
|
|
2448
|
+
return T(`<${e} popover="manual" ${n ? "aria-labelledby=\"toaster-message\"" : ""}>
|
|
2449
|
+
<px-container padding="s" background-color="surface-dark">
|
|
2450
|
+
${t ? `<px-vstack gap="s">${r}<px-hstack gap="s"><slot name="actions"></slot></px-hstack></px-vstack>` : r}
|
|
2451
|
+
</px-container>
|
|
2452
|
+
</${e}>`);
|
|
2453
|
+
}
|
|
2454
|
+
var X = class extends HTMLElement {
|
|
2236
2455
|
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]);
|
|
2456
|
+
super(), this.popoverButtonsCleanups = [], this.onHideClick = () => this.hide(), this.onShowClick = () => this.show();
|
|
2457
|
+
let e = this.attachShadow({ mode: "open" });
|
|
2458
|
+
E(e, this.constructor.template), e.adoptedStyleSheets = [q];
|
|
2249
2459
|
}
|
|
2250
2460
|
connectedCallback() {
|
|
2251
|
-
this.addEventListenersToHideButtons(), this
|
|
2461
|
+
this.addEventListenersToHideButtons(), this.hasAttribute("open") && this.show();
|
|
2462
|
+
}
|
|
2463
|
+
disconnectedCallback() {
|
|
2464
|
+
this.removePopoverButtonListeners();
|
|
2252
2465
|
}
|
|
2253
2466
|
static get observedAttributes() {
|
|
2254
2467
|
return [
|
|
2255
2468
|
"id",
|
|
2256
2469
|
"open",
|
|
2257
2470
|
"status",
|
|
2258
|
-
"
|
|
2471
|
+
"status-label",
|
|
2259
2472
|
"inverted"
|
|
2260
2473
|
];
|
|
2261
2474
|
}
|
|
@@ -2267,44 +2480,27 @@ var Z = [
|
|
|
2267
2480
|
case "open":
|
|
2268
2481
|
this.isConnected && this.handleOpenChange();
|
|
2269
2482
|
break;
|
|
2270
|
-
case "duration":
|
|
2271
|
-
this.remainingDuration = this.duration, this.startAutoHideTimeout();
|
|
2272
|
-
break;
|
|
2273
2483
|
case "status":
|
|
2274
|
-
this.handleStatusChange(n,
|
|
2484
|
+
this.handleStatusChange(n, J), this.handleStatusLabelChange();
|
|
2485
|
+
break;
|
|
2486
|
+
case "status-label":
|
|
2487
|
+
this.handleStatusLabelChange();
|
|
2275
2488
|
break;
|
|
2276
2489
|
case "inverted": this.handleInvertedChange();
|
|
2277
2490
|
}
|
|
2278
2491
|
}
|
|
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
2492
|
handleOpenChange() {
|
|
2283
2493
|
this.hasAttribute("open") ? this.show() : this.hide();
|
|
2284
2494
|
}
|
|
2285
2495
|
show() {
|
|
2286
|
-
this.$
|
|
2496
|
+
this.$popover?.showPopover();
|
|
2287
2497
|
}
|
|
2288
2498
|
hide() {
|
|
2289
|
-
this
|
|
2499
|
+
this.$popover?.hidePopover(), this.dispatchEvent(new CustomEvent(ke, {
|
|
2290
2500
|
bubbles: !0,
|
|
2291
2501
|
composed: !0
|
|
2292
2502
|
}));
|
|
2293
2503
|
}
|
|
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
2504
|
showPopover() {
|
|
2309
2505
|
this.show();
|
|
2310
2506
|
}
|
|
@@ -2312,7 +2508,7 @@ var Z = [
|
|
|
2312
2508
|
this.hide();
|
|
2313
2509
|
}
|
|
2314
2510
|
handleInvertedChange() {
|
|
2315
|
-
this
|
|
2511
|
+
this.$pxContainer?.setAttribute("background-color", this.inverted ? "surface-light" : "surface-dark"), this.$statusIcon?.toggleAttribute("inverted", !this.inverted);
|
|
2316
2512
|
}
|
|
2317
2513
|
addEventListenersToHideButtons() {
|
|
2318
2514
|
this.removePopoverButtonListeners(), this.id && document.querySelectorAll(`[popovertarget="${this.id}"]`).forEach((e) => {
|
|
@@ -2323,27 +2519,36 @@ var Z = [
|
|
|
2323
2519
|
this.popoverButtonsCleanups.forEach((e) => e()), this.popoverButtonsCleanups = [];
|
|
2324
2520
|
}
|
|
2325
2521
|
handleStatusChange(e, t) {
|
|
2326
|
-
if (!
|
|
2327
|
-
|
|
2522
|
+
if (!e) {
|
|
2523
|
+
this.$statusIcon?.remove();
|
|
2524
|
+
return;
|
|
2525
|
+
}
|
|
2526
|
+
if (!y(t, e)) {
|
|
2527
|
+
r(`"${e}" is not a valid status value for ${this.tagName.toLowerCase()}.
|
|
2328
2528
|
Allowed values are: "${t.join("\", \"")}".`);
|
|
2329
2529
|
return;
|
|
2330
2530
|
}
|
|
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);
|
|
2531
|
+
let n = this.$statusIcon ?? document.createElement("px-icon");
|
|
2532
|
+
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
2533
|
}
|
|
2335
|
-
|
|
2336
|
-
|
|
2534
|
+
handleStatusLabelChange() {
|
|
2535
|
+
this.$statusLabel && (this.$statusLabel.textContent = this.status && J.includes(this.status) ? this.statusLabel : "");
|
|
2337
2536
|
}
|
|
2338
2537
|
getIcon(e) {
|
|
2339
2538
|
return e === "success" ? "checkmark_fill" : e === "warning" ? "exclamation_mark_fill" : e === "error" ? "minus_fill" : "information_fill";
|
|
2340
2539
|
}
|
|
2341
|
-
get $
|
|
2342
|
-
return this.shadowRoot?.querySelector("
|
|
2540
|
+
get $popover() {
|
|
2541
|
+
return this.shadowRoot?.querySelector("[popover=\"manual\"]");
|
|
2343
2542
|
}
|
|
2344
2543
|
get $slotVisual() {
|
|
2345
2544
|
return this.shadowRoot?.querySelector("slot[name=\"visual\"]");
|
|
2346
2545
|
}
|
|
2546
|
+
get $statusLabel() {
|
|
2547
|
+
return this.$message?.querySelector("px-span[shown--sr]");
|
|
2548
|
+
}
|
|
2549
|
+
get $statusIcon() {
|
|
2550
|
+
return this.$slotVisual?.querySelector("px-icon");
|
|
2551
|
+
}
|
|
2347
2552
|
get $message() {
|
|
2348
2553
|
return this.shadowRoot?.querySelector(".toaster-message");
|
|
2349
2554
|
}
|
|
@@ -2354,29 +2559,97 @@ var Z = [
|
|
|
2354
2559
|
return this.getAttribute("status") || "";
|
|
2355
2560
|
}
|
|
2356
2561
|
set status(e) {
|
|
2357
|
-
|
|
2562
|
+
a(this, "status", e);
|
|
2563
|
+
}
|
|
2564
|
+
get statusLabel() {
|
|
2565
|
+
return this.getAttribute("status-label") || this.status;
|
|
2566
|
+
}
|
|
2567
|
+
set statusLabel(e) {
|
|
2568
|
+
a(this, "status-label", e);
|
|
2358
2569
|
}
|
|
2359
2570
|
get open() {
|
|
2360
2571
|
return this.hasAttribute("open");
|
|
2361
2572
|
}
|
|
2362
2573
|
set open(e) {
|
|
2363
|
-
|
|
2574
|
+
o(this, "open", e);
|
|
2575
|
+
}
|
|
2576
|
+
get inverted() {
|
|
2577
|
+
return this.hasAttribute("inverted");
|
|
2578
|
+
}
|
|
2579
|
+
set inverted(e) {
|
|
2580
|
+
o(this, "inverted", e);
|
|
2581
|
+
}
|
|
2582
|
+
}, Z = 0, Q = class extends X {
|
|
2583
|
+
constructor(...e) {
|
|
2584
|
+
super(...e), this.autoHideTimeoutId = null, this.timeoutStartedAt = null, this.remainingDuration = null, this.isVisible = !1, this.isHovered = !1, this.isFocused = !1, this.onPointerEnter = () => {
|
|
2585
|
+
this.isHovered = !0, this.pauseAutoHideTimeout();
|
|
2586
|
+
}, this.onPointerLeave = () => {
|
|
2587
|
+
this.isHovered = !1, this.resumeAutoHideTimeout();
|
|
2588
|
+
}, this.onFocusIn = (e) => {
|
|
2589
|
+
e.target !== this.$popover && (this.isFocused = !0, this.pauseAutoHideTimeout());
|
|
2590
|
+
}, this.onFocusOut = (e) => {
|
|
2591
|
+
let t = e.relatedTarget;
|
|
2592
|
+
this.isFocused = !!t && t !== this.$popover && (this.contains(t) || this.$popover?.contains(t) === !0), this.isFocused || this.resumeAutoHideTimeout();
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
static {
|
|
2596
|
+
this.template = Y("div");
|
|
2597
|
+
}
|
|
2598
|
+
connectedCallback() {
|
|
2599
|
+
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();
|
|
2600
|
+
}
|
|
2601
|
+
static get observedAttributes() {
|
|
2602
|
+
return [...super.observedAttributes, "duration"];
|
|
2603
|
+
}
|
|
2604
|
+
attributeChangedCallback(e, t, n) {
|
|
2605
|
+
super.attributeChangedCallback(e, t, n), e === "duration" && t !== n && (this.remainingDuration = this.duration, this.startAutoHideTimeout());
|
|
2606
|
+
}
|
|
2607
|
+
disconnectedCallback() {
|
|
2608
|
+
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);
|
|
2609
|
+
}
|
|
2610
|
+
show() {
|
|
2611
|
+
super.show(), this.isVisible = !0, this.remainingDuration = this.duration, this.startAutoHideTimeout();
|
|
2612
|
+
}
|
|
2613
|
+
hide() {
|
|
2614
|
+
this.isVisible = !1, this.isHovered = !1, this.isFocused = !1, this.clearAutoHideTimeout(), this.remainingDuration = null, super.hide();
|
|
2615
|
+
}
|
|
2616
|
+
startAutoHideTimeout() {
|
|
2617
|
+
this.clearAutoHideTimeout(), !(!this.isVisible || this.isHovered || this.isFocused || this.remainingDuration === null || this.remainingDuration <= 0) && (this.timeoutStartedAt = Date.now(), this.autoHideTimeoutId = setTimeout(() => {
|
|
2618
|
+
this.remainingDuration = 0, this.hide();
|
|
2619
|
+
}, this.remainingDuration));
|
|
2620
|
+
}
|
|
2621
|
+
pauseAutoHideTimeout() {
|
|
2622
|
+
this.timeoutStartedAt !== null && this.remainingDuration !== null && (this.remainingDuration = Math.max(0, this.remainingDuration - (Date.now() - this.timeoutStartedAt))), this.clearAutoHideTimeout();
|
|
2623
|
+
}
|
|
2624
|
+
resumeAutoHideTimeout() {
|
|
2625
|
+
!this.isHovered && !this.isFocused && this.startAutoHideTimeout();
|
|
2626
|
+
}
|
|
2627
|
+
clearAutoHideTimeout() {
|
|
2628
|
+
this.autoHideTimeoutId !== null && (clearTimeout(this.autoHideTimeoutId), this.autoHideTimeoutId = null), this.timeoutStartedAt = null;
|
|
2629
|
+
}
|
|
2630
|
+
get $popover() {
|
|
2631
|
+
return this.shadowRoot?.querySelector("div[popover=\"manual\"]");
|
|
2364
2632
|
}
|
|
2365
2633
|
get duration() {
|
|
2366
|
-
if (!this.hasAttribute("duration")) return
|
|
2634
|
+
if (!this.hasAttribute("duration")) return Z;
|
|
2367
2635
|
let e = Number(this.getAttribute("duration"));
|
|
2368
|
-
return Number.isNaN(e) ?
|
|
2636
|
+
return Number.isNaN(e) ? Z : e;
|
|
2369
2637
|
}
|
|
2370
2638
|
set duration(e) {
|
|
2371
|
-
|
|
2639
|
+
a(this, "duration", e);
|
|
2372
2640
|
}
|
|
2373
|
-
|
|
2374
|
-
|
|
2641
|
+
};
|
|
2642
|
+
customElements.get("px-toaster") || customElements.define("px-toaster", Q);
|
|
2643
|
+
//#endregion
|
|
2644
|
+
//#region src/ToasterActionable.ts
|
|
2645
|
+
var $ = class extends X {
|
|
2646
|
+
static {
|
|
2647
|
+
this.template = Y("dialog", !0);
|
|
2375
2648
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2649
|
+
get $popover() {
|
|
2650
|
+
return this.shadowRoot?.querySelector("dialog[popover=\"manual\"]");
|
|
2378
2651
|
}
|
|
2379
2652
|
};
|
|
2380
|
-
customElements.get("px-toaster") || customElements.define("px-toaster", $);
|
|
2653
|
+
customElements.get("px-toaster-actionable") || customElements.define("px-toaster-actionable", $);
|
|
2381
2654
|
//#endregion
|
|
2382
|
-
export {
|
|
2655
|
+
export { Q as Toaster, $ as ToasterActionable, J as toasterStatusValues };
|