@proximus/lavender-common 1.4.19-beta.2 → 1.4.20-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PxElement.d.ts +21 -0
- package/dist/WithExtraAttributes.d.ts +113 -0
- package/dist/WrappedInteractiveStateController.d.ts +8 -0
- package/dist/accessibility.d.ts +2 -0
- package/dist/attributeSetters.d.ts +10 -0
- package/dist/common.d.ts +9 -169
- package/dist/debug.d.ts +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +642 -346
- package/dist/nativeAttributes.d.ts +74 -0
- package/dist/nativeProperties.d.ts +82 -0
- package/dist/nativeTypes.d.ts +7 -0
- package/dist/utilities.d.ts +5 -0
- package/dist/values.d.ts +27 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,32 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
var e =
|
|
3
|
-
// src/common.ts
|
|
4
|
-
function t(e) {
|
|
5
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
6
|
-
return Object.getOwnPropertyNames(n);
|
|
7
|
-
}
|
|
8
|
-
function n(e) {
|
|
9
|
-
let t = document.createElement(e), n = Object.getPrototypeOf(t);
|
|
10
|
-
return Object.getOwnPropertyNames(n).map((e) => e.toLowerCase());
|
|
11
|
-
}
|
|
12
|
-
var r = new CSSStyleSheet();
|
|
13
|
-
r.replaceSync(e);
|
|
14
|
-
var i = {
|
|
1
|
+
//#region src/debug.ts
|
|
2
|
+
var e = {
|
|
15
3
|
BASE_URL: "/",
|
|
16
4
|
DEV: !0,
|
|
17
5
|
MODE: "production",
|
|
18
6
|
PROD: !1,
|
|
19
7
|
SSR: !1,
|
|
20
8
|
VITE_COMPONENT_DEBUG: "true"
|
|
21
|
-
},
|
|
22
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
23
|
-
function
|
|
24
|
-
return
|
|
9
|
+
}, t = e?.VITE_COMPONENT_DEBUG === "true" || e?.DEV === !0;
|
|
10
|
+
typeof window < "u" && (window.isComponentDebug = n);
|
|
11
|
+
function n() {
|
|
12
|
+
return t;
|
|
25
13
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
14
|
+
function r(e) {
|
|
15
|
+
n() && console.error(e);
|
|
28
16
|
}
|
|
29
|
-
|
|
17
|
+
typeof window < "u" && (window.isComponentDebug = n);
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/WrappedInteractiveStateController.ts
|
|
20
|
+
var i = class {
|
|
30
21
|
#e;
|
|
31
22
|
#t;
|
|
32
23
|
#n;
|
|
@@ -47,24 +38,262 @@ var c = class {
|
|
|
47
38
|
}
|
|
48
39
|
setInteractiveState(e) {
|
|
49
40
|
let t = this.#a;
|
|
50
|
-
this.#n()
|
|
41
|
+
if (!this.#n()) {
|
|
42
|
+
t.forEach((e) => e.removeAttribute("interactive-state"));
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
t.forEach((t) => {
|
|
51
46
|
e ? t.setAttribute("interactive-state", e) : t.removeAttribute("interactive-state");
|
|
52
|
-
})
|
|
47
|
+
});
|
|
53
48
|
}
|
|
54
49
|
get #a() {
|
|
55
|
-
return Array.from(this.#e.querySelectorAll("*")).filter(
|
|
50
|
+
return Array.from(this.#e.querySelectorAll("*")).filter(a);
|
|
56
51
|
}
|
|
57
52
|
};
|
|
58
|
-
function
|
|
53
|
+
function a(e) {
|
|
59
54
|
return e.hasAttribute("interactive-state") ? !0 : customElements.get(e.localName)?.observedAttributes?.includes("interactive-state") ?? !1;
|
|
60
55
|
}
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/common.css?inline
|
|
58
|
+
var o = "@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}}";
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/attributeSetters.ts
|
|
61
|
+
function s(e, t, n) {
|
|
62
|
+
if (n == null || n === "") {
|
|
63
|
+
e.removeAttribute(t);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
e.setAttribute(t, n.toString());
|
|
67
|
+
}
|
|
68
|
+
function c(e, t, n) {
|
|
69
|
+
if (!n) {
|
|
70
|
+
e.removeAttribute(t);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
e.setAttribute(t, "");
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/values.ts
|
|
77
|
+
var l = [
|
|
78
|
+
"",
|
|
79
|
+
"default",
|
|
80
|
+
"none",
|
|
81
|
+
"l"
|
|
82
|
+
], u = [
|
|
83
|
+
"",
|
|
84
|
+
"default",
|
|
85
|
+
"auto",
|
|
86
|
+
"flex-start",
|
|
87
|
+
"start",
|
|
88
|
+
"flex-end",
|
|
89
|
+
"end",
|
|
90
|
+
"center",
|
|
91
|
+
"baseline",
|
|
92
|
+
"stretch"
|
|
93
|
+
], d = [
|
|
94
|
+
"",
|
|
95
|
+
"default",
|
|
96
|
+
"start",
|
|
97
|
+
"end",
|
|
98
|
+
"center",
|
|
99
|
+
"stretch"
|
|
100
|
+
], f = [
|
|
101
|
+
"",
|
|
102
|
+
"default",
|
|
103
|
+
"start",
|
|
104
|
+
"end",
|
|
105
|
+
"center",
|
|
106
|
+
"stretch"
|
|
107
|
+
], p = [
|
|
108
|
+
"",
|
|
109
|
+
"1",
|
|
110
|
+
"2",
|
|
111
|
+
"3",
|
|
112
|
+
"4",
|
|
113
|
+
"5",
|
|
114
|
+
"6",
|
|
115
|
+
"7",
|
|
116
|
+
"8",
|
|
117
|
+
"9",
|
|
118
|
+
"10",
|
|
119
|
+
"11",
|
|
120
|
+
"12"
|
|
121
|
+
], m = [
|
|
122
|
+
"",
|
|
123
|
+
"-1",
|
|
124
|
+
"0",
|
|
125
|
+
"1",
|
|
126
|
+
"2",
|
|
127
|
+
"3",
|
|
128
|
+
"4",
|
|
129
|
+
"5",
|
|
130
|
+
"6",
|
|
131
|
+
"7",
|
|
132
|
+
"8",
|
|
133
|
+
"9",
|
|
134
|
+
"10",
|
|
135
|
+
"11",
|
|
136
|
+
"12"
|
|
137
|
+
], h = [
|
|
138
|
+
"",
|
|
139
|
+
"default",
|
|
140
|
+
"auto",
|
|
141
|
+
"start",
|
|
142
|
+
"end",
|
|
143
|
+
"center",
|
|
144
|
+
"stretch"
|
|
145
|
+
], g = [
|
|
146
|
+
"",
|
|
147
|
+
"default",
|
|
148
|
+
"inherit",
|
|
149
|
+
"body-l",
|
|
150
|
+
"body-m",
|
|
151
|
+
"body-s",
|
|
152
|
+
"body-xs",
|
|
153
|
+
"heading-5xl",
|
|
154
|
+
"heading-4xl",
|
|
155
|
+
"heading-3xl",
|
|
156
|
+
"heading-2xl",
|
|
157
|
+
"heading-xl",
|
|
158
|
+
"heading-l",
|
|
159
|
+
"heading-m",
|
|
160
|
+
"heading-s"
|
|
161
|
+
], _ = [
|
|
162
|
+
"",
|
|
163
|
+
"default",
|
|
164
|
+
"inherit",
|
|
165
|
+
"brand",
|
|
166
|
+
"neutral",
|
|
167
|
+
"dimmed",
|
|
168
|
+
"purpose-success",
|
|
169
|
+
"purpose-warning",
|
|
170
|
+
"purpose-error",
|
|
171
|
+
"purpose-unlimited",
|
|
172
|
+
"purpose-promo",
|
|
173
|
+
"state-hover",
|
|
174
|
+
"state-active",
|
|
175
|
+
"state-disabled"
|
|
176
|
+
], v = [
|
|
177
|
+
"",
|
|
178
|
+
"default",
|
|
179
|
+
"inherit",
|
|
180
|
+
"body",
|
|
181
|
+
"title",
|
|
182
|
+
"title-large",
|
|
183
|
+
"subtitle"
|
|
184
|
+
], y = [
|
|
185
|
+
"Xs",
|
|
186
|
+
"S",
|
|
187
|
+
"M",
|
|
188
|
+
"L",
|
|
189
|
+
"Xl"
|
|
190
|
+
], b = [
|
|
191
|
+
"",
|
|
192
|
+
"default",
|
|
193
|
+
...y.map((e) => e.toLowerCase())
|
|
194
|
+
], ee = [
|
|
195
|
+
"",
|
|
196
|
+
"default",
|
|
197
|
+
"left",
|
|
198
|
+
"center",
|
|
199
|
+
"right"
|
|
200
|
+
], te = [
|
|
201
|
+
"",
|
|
202
|
+
"none",
|
|
203
|
+
"3xs",
|
|
204
|
+
"2xs",
|
|
205
|
+
"xs",
|
|
206
|
+
"s",
|
|
207
|
+
"m",
|
|
208
|
+
"l",
|
|
209
|
+
"xl"
|
|
210
|
+
], ne = [
|
|
211
|
+
"",
|
|
212
|
+
"none",
|
|
213
|
+
"s",
|
|
214
|
+
"m",
|
|
215
|
+
"l"
|
|
216
|
+
], re = [
|
|
217
|
+
"",
|
|
218
|
+
"none",
|
|
219
|
+
"main",
|
|
220
|
+
"pill"
|
|
221
|
+
], ie = [
|
|
222
|
+
"none",
|
|
223
|
+
"main",
|
|
224
|
+
"brand",
|
|
225
|
+
"state-hover",
|
|
226
|
+
"state-active",
|
|
227
|
+
"neutral",
|
|
228
|
+
"purpose-success",
|
|
229
|
+
"purpose-warning",
|
|
230
|
+
"purpose-error",
|
|
231
|
+
"purpose-unlimited"
|
|
232
|
+
], ae = [
|
|
233
|
+
"",
|
|
234
|
+
"all",
|
|
235
|
+
"top",
|
|
236
|
+
"right",
|
|
237
|
+
"bottom",
|
|
238
|
+
"left",
|
|
239
|
+
"block",
|
|
240
|
+
"inline"
|
|
241
|
+
], oe = /* @__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("."), se = [
|
|
242
|
+
"",
|
|
243
|
+
"cover",
|
|
244
|
+
"contain",
|
|
245
|
+
"default"
|
|
246
|
+
], x = [
|
|
247
|
+
"",
|
|
248
|
+
"none",
|
|
249
|
+
"s",
|
|
250
|
+
"m",
|
|
251
|
+
"l",
|
|
252
|
+
"xl"
|
|
253
|
+
], S = [
|
|
254
|
+
"",
|
|
255
|
+
"default",
|
|
256
|
+
"title-4xl",
|
|
257
|
+
"title-3xl",
|
|
258
|
+
"title-2xl",
|
|
259
|
+
"title-xl",
|
|
260
|
+
"title-l",
|
|
261
|
+
"title-m",
|
|
262
|
+
"title-s",
|
|
263
|
+
"subtitle"
|
|
264
|
+
], C = /* @__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("."), w = [
|
|
265
|
+
"none",
|
|
266
|
+
"2xs",
|
|
267
|
+
"xs",
|
|
268
|
+
"s",
|
|
269
|
+
"default",
|
|
270
|
+
"l",
|
|
271
|
+
"heading-to-subtitle",
|
|
272
|
+
"heading-to-content",
|
|
273
|
+
"page-layout-between-sections"
|
|
274
|
+
], T = [
|
|
275
|
+
"",
|
|
276
|
+
"all",
|
|
277
|
+
"top",
|
|
278
|
+
"right",
|
|
279
|
+
"bottom",
|
|
280
|
+
"left"
|
|
281
|
+
], E = [
|
|
282
|
+
"",
|
|
283
|
+
"default",
|
|
284
|
+
"xs",
|
|
285
|
+
"s",
|
|
286
|
+
"m",
|
|
287
|
+
"l",
|
|
288
|
+
"xl"
|
|
289
|
+
], D = new CSSStyleSheet();
|
|
290
|
+
D.replaceSync(o);
|
|
291
|
+
var O = class e extends HTMLElement {
|
|
63
292
|
static get observedAttributes() {
|
|
64
293
|
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(".");
|
|
65
294
|
}
|
|
66
295
|
constructor(...e) {
|
|
67
|
-
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
296
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [D, ...e];
|
|
68
297
|
}
|
|
69
298
|
attributeChangedCallback(t, n, r) {
|
|
70
299
|
if (e.observedAttributes.indexOf(t) !== -1) switch (t) {
|
|
@@ -90,36 +319,36 @@ var u = class e extends HTMLElement {
|
|
|
90
319
|
case "align-self--tablet":
|
|
91
320
|
case "align-self--laptop":
|
|
92
321
|
case "align-self--desktop":
|
|
93
|
-
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ?
|
|
322
|
+
this.updateProperties(t, n, r, this.parentElement?.localName === "px-grid" ? d : u);
|
|
94
323
|
break;
|
|
95
324
|
case "justify-self":
|
|
96
325
|
case "justify-self--mobile":
|
|
97
326
|
case "justify-self--tablet":
|
|
98
327
|
case "justify-self--laptop":
|
|
99
328
|
case "justify-self--desktop":
|
|
100
|
-
this.updateProperties(t, n, r,
|
|
329
|
+
this.updateProperties(t, n, r, f);
|
|
101
330
|
break;
|
|
102
331
|
case "col-span":
|
|
103
332
|
case "col-span--mobile":
|
|
104
333
|
case "col-span--tablet":
|
|
105
334
|
case "col-span--laptop":
|
|
106
335
|
case "col-span--desktop":
|
|
107
|
-
this.updateProperties(t, n, r,
|
|
336
|
+
this.updateProperties(t, n, r, p);
|
|
108
337
|
break;
|
|
109
338
|
case "order":
|
|
110
339
|
case "order--mobile":
|
|
111
340
|
case "order--tablet":
|
|
112
341
|
case "order--laptop":
|
|
113
|
-
case "order--desktop": this.updateProperties(t, n, r,
|
|
342
|
+
case "order--desktop": this.updateProperties(t, n, r, m);
|
|
114
343
|
}
|
|
115
344
|
}
|
|
116
|
-
updateProperties(e, t, n,
|
|
117
|
-
|
|
118
|
-
let
|
|
119
|
-
if (!
|
|
345
|
+
updateProperties(e, t, n, i) {
|
|
346
|
+
i && (this.checkName(i, n) || r(`"${n}" is not an allowed ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`));
|
|
347
|
+
let a = e.indexOf("--") > -1, o = a ? e.split("--")[0] : e;
|
|
348
|
+
if (!a) this.style.setProperty(`--${o}-value`, t), this.style.setProperty(`--${o}-value`, n);
|
|
120
349
|
else {
|
|
121
350
|
let r = e.split("--")[1];
|
|
122
|
-
this.style.setProperty(`--${
|
|
351
|
+
this.style.setProperty(`--${o}--${r}-value`, t), this.style.setProperty(`--${o}--${r}-value`, n);
|
|
123
352
|
}
|
|
124
353
|
}
|
|
125
354
|
updateStyle(e, t, n) {
|
|
@@ -138,8 +367,11 @@ var u = class e extends HTMLElement {
|
|
|
138
367
|
let e = this.parentElement;
|
|
139
368
|
for (; e;) {
|
|
140
369
|
if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
|
|
141
|
-
if (window.getComputedStyle(e).display === "contents")
|
|
142
|
-
|
|
370
|
+
if (window.getComputedStyle(e).display === "contents") {
|
|
371
|
+
e = e.parentElement;
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
break;
|
|
143
375
|
}
|
|
144
376
|
return !1;
|
|
145
377
|
}
|
|
@@ -147,522 +379,584 @@ var u = class e extends HTMLElement {
|
|
|
147
379
|
return this.getAttribute("grow");
|
|
148
380
|
}
|
|
149
381
|
set grow(e) {
|
|
150
|
-
|
|
382
|
+
s(this, "grow", e);
|
|
151
383
|
}
|
|
152
384
|
get growMobile() {
|
|
153
385
|
return this.getAttribute("grow--mobile");
|
|
154
386
|
}
|
|
155
387
|
set growMobile(e) {
|
|
156
|
-
|
|
388
|
+
s(this, "grow--mobile", e);
|
|
157
389
|
}
|
|
158
390
|
get growTablet() {
|
|
159
391
|
return this.getAttribute("grow--tablet");
|
|
160
392
|
}
|
|
161
393
|
set growTablet(e) {
|
|
162
|
-
|
|
394
|
+
s(this, "grow--tablet", e);
|
|
163
395
|
}
|
|
164
396
|
get growLaptop() {
|
|
165
397
|
return this.getAttribute("grow--laptop");
|
|
166
398
|
}
|
|
167
399
|
set growLaptop(e) {
|
|
168
|
-
|
|
400
|
+
s(this, "grow--laptop", e);
|
|
169
401
|
}
|
|
170
402
|
get growDesktop() {
|
|
171
403
|
return this.getAttribute("grow--desktop");
|
|
172
404
|
}
|
|
173
405
|
set growDesktop(e) {
|
|
174
|
-
|
|
406
|
+
s(this, "grow--desktop", e);
|
|
175
407
|
}
|
|
176
408
|
get shrink() {
|
|
177
409
|
return this.getAttribute("shrink");
|
|
178
410
|
}
|
|
179
411
|
set shrink(e) {
|
|
180
|
-
|
|
412
|
+
s(this, "shrink", e);
|
|
181
413
|
}
|
|
182
414
|
get shrinkMobile() {
|
|
183
415
|
return this.getAttribute("shrink--mobile");
|
|
184
416
|
}
|
|
185
417
|
set shrinkMobile(e) {
|
|
186
|
-
|
|
418
|
+
s(this, "shrink--mobile", e);
|
|
187
419
|
}
|
|
188
420
|
get shrinkTablet() {
|
|
189
421
|
return this.getAttribute("shrink--tablet");
|
|
190
422
|
}
|
|
191
423
|
set shrinkTablet(e) {
|
|
192
|
-
|
|
424
|
+
s(this, "shrink--tablet", e);
|
|
193
425
|
}
|
|
194
426
|
get shrinkLaptop() {
|
|
195
427
|
return this.getAttribute("shrink--laptop");
|
|
196
428
|
}
|
|
197
429
|
set shrinkLaptop(e) {
|
|
198
|
-
|
|
430
|
+
s(this, "shrink--laptop", e);
|
|
199
431
|
}
|
|
200
432
|
get shrinkDesktop() {
|
|
201
433
|
return this.getAttribute("shrink--desktop");
|
|
202
434
|
}
|
|
203
435
|
set shrinkDesktop(e) {
|
|
204
|
-
|
|
436
|
+
s(this, "shrink--desktop", e);
|
|
205
437
|
}
|
|
206
438
|
get basis() {
|
|
207
439
|
return this.getAttribute("basis");
|
|
208
440
|
}
|
|
209
441
|
set basis(e) {
|
|
210
|
-
|
|
442
|
+
s(this, "basis", e);
|
|
211
443
|
}
|
|
212
444
|
get basisMobile() {
|
|
213
445
|
return this.getAttribute("basis--mobile");
|
|
214
446
|
}
|
|
215
447
|
set basisMobile(e) {
|
|
216
|
-
|
|
448
|
+
s(this, "basis--mobile", e);
|
|
217
449
|
}
|
|
218
450
|
get basisTablet() {
|
|
219
451
|
return this.getAttribute("basis--tablet");
|
|
220
452
|
}
|
|
221
453
|
set basisTablet(e) {
|
|
222
|
-
|
|
454
|
+
s(this, "basis--tablet", e);
|
|
223
455
|
}
|
|
224
456
|
get basisLaptop() {
|
|
225
457
|
return this.getAttribute("basis--laptop");
|
|
226
458
|
}
|
|
227
459
|
set basisLaptop(e) {
|
|
228
|
-
|
|
460
|
+
s(this, "basis--laptop", e);
|
|
229
461
|
}
|
|
230
462
|
get basisDesktop() {
|
|
231
463
|
return this.getAttribute("basis--desktop");
|
|
232
464
|
}
|
|
233
465
|
set basisDesktop(e) {
|
|
234
|
-
|
|
466
|
+
s(this, "basis--desktop", e);
|
|
235
467
|
}
|
|
236
468
|
get alignSelf() {
|
|
237
469
|
return this.getAttribute("align-self");
|
|
238
470
|
}
|
|
239
471
|
set alignSelf(e) {
|
|
240
|
-
|
|
472
|
+
s(this, "align-self", e);
|
|
241
473
|
}
|
|
242
474
|
get alignSelfMobile() {
|
|
243
475
|
return this.getAttribute("align-self--mobile");
|
|
244
476
|
}
|
|
245
477
|
set alignSelfMobile(e) {
|
|
246
|
-
|
|
478
|
+
s(this, "align-self--mobile", e);
|
|
247
479
|
}
|
|
248
480
|
get alignSelfTablet() {
|
|
249
481
|
return this.getAttribute("align-self--tablet");
|
|
250
482
|
}
|
|
251
483
|
set alignSelfTablet(e) {
|
|
252
|
-
|
|
484
|
+
s(this, "align-self--tablet", e);
|
|
253
485
|
}
|
|
254
486
|
get alignSelfLaptop() {
|
|
255
487
|
return this.getAttribute("align-self--laptop");
|
|
256
488
|
}
|
|
257
489
|
set alignSelfLaptop(e) {
|
|
258
|
-
|
|
490
|
+
s(this, "align-self--laptop", e);
|
|
259
491
|
}
|
|
260
492
|
get alignSelfDesktop() {
|
|
261
493
|
return this.getAttribute("align-self--desktop");
|
|
262
494
|
}
|
|
263
495
|
set alignSelfDesktop(e) {
|
|
264
|
-
|
|
496
|
+
s(this, "align-self--desktop", e);
|
|
265
497
|
}
|
|
266
498
|
get justifySelf() {
|
|
267
499
|
return this.getAttribute("justify-self");
|
|
268
500
|
}
|
|
269
501
|
set justifySelf(e) {
|
|
270
|
-
|
|
502
|
+
s(this, "justify-self", e);
|
|
271
503
|
}
|
|
272
504
|
get justifySelfMobile() {
|
|
273
505
|
return this.getAttribute("justify-self--mobile");
|
|
274
506
|
}
|
|
275
507
|
set justifySelfMobile(e) {
|
|
276
|
-
|
|
508
|
+
s(this, "justify-self--mobile", e);
|
|
277
509
|
}
|
|
278
510
|
get justifySelfTablet() {
|
|
279
511
|
return this.getAttribute("justify-self--tablet");
|
|
280
512
|
}
|
|
281
513
|
set justifySelfTablet(e) {
|
|
282
|
-
|
|
514
|
+
s(this, "justify-self--tablet", e);
|
|
283
515
|
}
|
|
284
516
|
get justifySelfLaptop() {
|
|
285
517
|
return this.getAttribute("justify-self--laptop");
|
|
286
518
|
}
|
|
287
519
|
set justifySelfLaptop(e) {
|
|
288
|
-
|
|
520
|
+
s(this, "justify-self--laptop", e);
|
|
289
521
|
}
|
|
290
522
|
get justifySelfDesktop() {
|
|
291
523
|
return this.getAttribute("justify-self--desktop");
|
|
292
524
|
}
|
|
293
525
|
set justifySelfDesktop(e) {
|
|
294
|
-
|
|
526
|
+
s(this, "justify-self--desktop", e);
|
|
295
527
|
}
|
|
296
528
|
get hiddenMobile() {
|
|
297
529
|
return this.hasAttribute("hidden--mobile");
|
|
298
530
|
}
|
|
299
531
|
set hiddenMobile(e) {
|
|
300
|
-
|
|
532
|
+
c(this, "hidden--mobile", e);
|
|
301
533
|
}
|
|
302
534
|
get hiddenTablet() {
|
|
303
535
|
return this.hasAttribute("hidden--tablet");
|
|
304
536
|
}
|
|
305
537
|
set hiddenTablet(e) {
|
|
306
|
-
|
|
538
|
+
c(this, "hidden--tablet", e);
|
|
307
539
|
}
|
|
308
540
|
get hiddenLaptop() {
|
|
309
541
|
return this.hasAttribute("hidden--laptop");
|
|
310
542
|
}
|
|
311
543
|
set hiddenLaptop(e) {
|
|
312
|
-
|
|
544
|
+
c(this, "hidden--laptop", e);
|
|
313
545
|
}
|
|
314
546
|
get hiddenDesktop() {
|
|
315
547
|
return this.hasAttribute("hidden--desktop");
|
|
316
548
|
}
|
|
317
549
|
set hiddenDesktop(e) {
|
|
318
|
-
|
|
550
|
+
c(this, "hidden--desktop", e);
|
|
551
|
+
}
|
|
552
|
+
get shownSr() {
|
|
553
|
+
return this.hasAttribute("shown--sr");
|
|
554
|
+
}
|
|
555
|
+
set shownSr(e) {
|
|
556
|
+
c(this, "shown--sr", e);
|
|
557
|
+
}
|
|
558
|
+
get shownSrMobile() {
|
|
559
|
+
return this.hasAttribute("shown--sr--mobile");
|
|
560
|
+
}
|
|
561
|
+
set shownSrMobile(e) {
|
|
562
|
+
c(this, "shown--sr--mobile", e);
|
|
563
|
+
}
|
|
564
|
+
get shownSrTablet() {
|
|
565
|
+
return this.hasAttribute("shown--sr--tablet");
|
|
566
|
+
}
|
|
567
|
+
set shownSrTablet(e) {
|
|
568
|
+
c(this, "shown--sr--tablet", e);
|
|
569
|
+
}
|
|
570
|
+
get shownSrLaptop() {
|
|
571
|
+
return this.hasAttribute("shown--sr--laptop");
|
|
572
|
+
}
|
|
573
|
+
set shownSrLaptop(e) {
|
|
574
|
+
c(this, "shown--sr--laptop", e);
|
|
575
|
+
}
|
|
576
|
+
get shownSrDesktop() {
|
|
577
|
+
return this.hasAttribute("shown--sr--desktop");
|
|
578
|
+
}
|
|
579
|
+
set shownSrDesktop(e) {
|
|
580
|
+
c(this, "shown--sr--desktop", e);
|
|
319
581
|
}
|
|
320
582
|
get colSpan() {
|
|
321
583
|
return this.getAttribute("col-span");
|
|
322
584
|
}
|
|
323
585
|
set colSpan(e) {
|
|
324
|
-
|
|
586
|
+
s(this, "col-span", e);
|
|
325
587
|
}
|
|
326
588
|
get colSpanMobile() {
|
|
327
589
|
return this.getAttribute("col-span--mobile");
|
|
328
590
|
}
|
|
329
591
|
set colSpanMobile(e) {
|
|
330
|
-
|
|
592
|
+
s(this, "col-span--mobile", e);
|
|
331
593
|
}
|
|
332
594
|
get colSpanTablet() {
|
|
333
595
|
return this.getAttribute("col-span--tablet");
|
|
334
596
|
}
|
|
335
597
|
set colSpanTablet(e) {
|
|
336
|
-
|
|
598
|
+
s(this, "col-span--tablet", e);
|
|
337
599
|
}
|
|
338
600
|
get colSpanLaptop() {
|
|
339
601
|
return this.getAttribute("col-span--laptop");
|
|
340
602
|
}
|
|
341
603
|
set colSpanLaptop(e) {
|
|
342
|
-
|
|
604
|
+
s(this, "col-span--laptop", e);
|
|
343
605
|
}
|
|
344
606
|
get colSpanDesktop() {
|
|
345
607
|
return this.getAttribute("col-span--desktop");
|
|
346
608
|
}
|
|
347
609
|
set colSpanDesktop(e) {
|
|
348
|
-
|
|
610
|
+
s(this, "col-span--desktop", e);
|
|
349
611
|
}
|
|
350
612
|
get order() {
|
|
351
613
|
return this.getAttribute("order");
|
|
352
614
|
}
|
|
353
615
|
set order(e) {
|
|
354
|
-
|
|
616
|
+
s(this, "order", e);
|
|
355
617
|
}
|
|
356
618
|
get orderMobile() {
|
|
357
619
|
return this.getAttribute("order--mobile");
|
|
358
620
|
}
|
|
359
621
|
set orderMobile(e) {
|
|
360
|
-
|
|
622
|
+
s(this, "order--mobile", e);
|
|
361
623
|
}
|
|
362
624
|
get orderTablet() {
|
|
363
625
|
return this.getAttribute("order--tablet");
|
|
364
626
|
}
|
|
365
627
|
set orderTablet(e) {
|
|
366
|
-
|
|
628
|
+
s(this, "order--tablet", e);
|
|
367
629
|
}
|
|
368
630
|
get orderLaptop() {
|
|
369
631
|
return this.getAttribute("order--laptop");
|
|
370
632
|
}
|
|
371
633
|
set orderLaptop(e) {
|
|
372
|
-
|
|
634
|
+
s(this, "order--laptop", e);
|
|
373
635
|
}
|
|
374
636
|
get orderDesktop() {
|
|
375
637
|
return this.getAttribute("order--desktop");
|
|
376
638
|
}
|
|
377
639
|
set orderDesktop(e) {
|
|
378
|
-
|
|
640
|
+
s(this, "order--desktop", e);
|
|
641
|
+
}
|
|
642
|
+
get stickyTop() {
|
|
643
|
+
return this.hasAttribute("sticky-top");
|
|
644
|
+
}
|
|
645
|
+
set stickyTop(e) {
|
|
646
|
+
c(this, "sticky-top", e);
|
|
647
|
+
}
|
|
648
|
+
get stickyBottom() {
|
|
649
|
+
return this.hasAttribute("sticky-bottom");
|
|
650
|
+
}
|
|
651
|
+
set stickyBottom(e) {
|
|
652
|
+
c(this, "sticky-bottom", e);
|
|
653
|
+
}
|
|
654
|
+
get wordBreakAll() {
|
|
655
|
+
return this.hasAttribute("word-break-all");
|
|
656
|
+
}
|
|
657
|
+
set wordBreakAll(e) {
|
|
658
|
+
c(this, "word-break-all", e);
|
|
659
|
+
}
|
|
660
|
+
get wordBreakAllMobile() {
|
|
661
|
+
return this.hasAttribute("word-break-all--mobile");
|
|
662
|
+
}
|
|
663
|
+
set wordBreakAllMobile(e) {
|
|
664
|
+
c(this, "word-break-all--mobile", e);
|
|
665
|
+
}
|
|
666
|
+
get wordBreakAllTablet() {
|
|
667
|
+
return this.hasAttribute("word-break-all--tablet");
|
|
668
|
+
}
|
|
669
|
+
set wordBreakAllTablet(e) {
|
|
670
|
+
c(this, "word-break-all--tablet", e);
|
|
671
|
+
}
|
|
672
|
+
get wordBreakAllLaptop() {
|
|
673
|
+
return this.hasAttribute("word-break-all--laptop");
|
|
674
|
+
}
|
|
675
|
+
set wordBreakAllLaptop(e) {
|
|
676
|
+
c(this, "word-break-all--laptop", e);
|
|
677
|
+
}
|
|
678
|
+
get wordBreakAllDesktop() {
|
|
679
|
+
return this.hasAttribute("word-break-all--desktop");
|
|
680
|
+
}
|
|
681
|
+
set wordBreakAllDesktop(e) {
|
|
682
|
+
c(this, "word-break-all--desktop", e);
|
|
683
|
+
}
|
|
684
|
+
}, k = class extends O {
|
|
685
|
+
static {
|
|
686
|
+
this.nativeAttributes = {};
|
|
687
|
+
}
|
|
688
|
+
static {
|
|
689
|
+
this.nativeProperties = {};
|
|
379
690
|
}
|
|
380
|
-
}, d = class extends u {
|
|
381
691
|
static {
|
|
382
|
-
this.
|
|
692
|
+
this.nativeMethods = [];
|
|
383
693
|
}
|
|
384
694
|
static get observedAttributes() {
|
|
385
|
-
return [...super.observedAttributes, ...
|
|
695
|
+
return [...super.observedAttributes, ...Object.keys(this.nativeAttributes)];
|
|
386
696
|
}
|
|
387
697
|
attributeChangedCallback(e, t, n) {
|
|
388
|
-
super.attributeChangedCallback(e, t, n),
|
|
698
|
+
super.attributeChangedCallback(e, t, n), t !== n && Object.prototype.hasOwnProperty.call(this.ctor.nativeAttributes, e) && this._forwardNativeAttribute(e, n);
|
|
389
699
|
}
|
|
390
700
|
get ctor() {
|
|
391
701
|
return Object.getPrototypeOf(this).constructor;
|
|
392
702
|
}
|
|
393
703
|
constructor(...e) {
|
|
394
|
-
super(...e), this.
|
|
704
|
+
super(...e), this.enhanceWithNativeProperties();
|
|
705
|
+
}
|
|
706
|
+
getNativePropertyMetadata() {
|
|
707
|
+
let e = /* @__PURE__ */ new Map(), t = this.ctor.nativeAttributes;
|
|
708
|
+
for (let [n, r] of Object.entries(t)) for (let t of r) e.set(t, n);
|
|
709
|
+
let n = new Map(Object.entries(this.ctor.nativeProperties));
|
|
710
|
+
for (let t of e.keys()) n.set(t, "writable");
|
|
711
|
+
return {
|
|
712
|
+
reflectedProperties: e,
|
|
713
|
+
properties: n
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
setNativeProperty(e, t, n) {
|
|
717
|
+
let r = n.get(e);
|
|
718
|
+
if (r !== void 0) {
|
|
719
|
+
this.$el[e] = t;
|
|
720
|
+
let n = this.$el.getAttribute(r);
|
|
721
|
+
this.getAttribute(r) !== n && (n === null ? this.removeAttribute(r) : this.setAttribute(r, n));
|
|
722
|
+
} else this.$el[e] !== t && (this.$el[e] = t);
|
|
395
723
|
}
|
|
396
724
|
enhanceWithNativeProperties() {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
set(t)
|
|
403
|
-
this.$el[e] !== t && (this.$el[e] = t);
|
|
404
|
-
}
|
|
725
|
+
let { reflectedProperties: e, properties: t } = this.getNativePropertyMetadata();
|
|
726
|
+
for (let [n, r] of t) {
|
|
727
|
+
let t = n;
|
|
728
|
+
Object.defineProperty(this, t, {
|
|
729
|
+
get: () => this.$el[t],
|
|
730
|
+
set: r === "writable" ? (n) => this.setNativeProperty(t, n, e) : void 0
|
|
405
731
|
});
|
|
406
|
-
} catch (t) {
|
|
407
|
-
console.warn(`Could not create property ${e} for`, this.$el, t);
|
|
408
732
|
}
|
|
733
|
+
for (let e of this.ctor.nativeMethods) Object.defineProperty(this, e, { value: (...t) => {
|
|
734
|
+
let n = this.$el, r = Reflect.get(n, e);
|
|
735
|
+
if (typeof r != "function") throw TypeError(`Native ${this.ctor.nativeName}.${e}() is not supported by this browser`);
|
|
736
|
+
return Reflect.apply(r, n, t);
|
|
737
|
+
} });
|
|
409
738
|
}
|
|
410
739
|
get $el() {
|
|
411
740
|
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
412
741
|
}
|
|
742
|
+
_forwardNativeAttribute(e, t) {
|
|
743
|
+
this.$el.getAttribute(e) !== t && (t === null ? this.$el.removeAttribute(e) : this.$el.setAttribute(e, t));
|
|
744
|
+
}
|
|
413
745
|
_updateAttribute(e, t) {
|
|
414
|
-
|
|
746
|
+
s(this, e, t);
|
|
415
747
|
}
|
|
416
748
|
_updateBooleanAttribute(e, t) {
|
|
417
|
-
|
|
749
|
+
c(this, e, t);
|
|
418
750
|
}
|
|
419
|
-
},
|
|
751
|
+
}, A = class extends k {
|
|
420
752
|
connectedCallback() {
|
|
421
753
|
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
422
754
|
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
"flex-start",
|
|
433
|
-
"start",
|
|
434
|
-
"flex-end",
|
|
435
|
-
"end",
|
|
436
|
-
"center",
|
|
437
|
-
"baseline",
|
|
438
|
-
"stretch"
|
|
439
|
-
], h = [
|
|
440
|
-
"",
|
|
441
|
-
"default",
|
|
442
|
-
"start",
|
|
443
|
-
"end",
|
|
444
|
-
"center",
|
|
445
|
-
"stretch"
|
|
446
|
-
], g = [
|
|
447
|
-
"",
|
|
448
|
-
"default",
|
|
449
|
-
"start",
|
|
450
|
-
"end",
|
|
451
|
-
"center",
|
|
452
|
-
"stretch"
|
|
453
|
-
], _ = [
|
|
454
|
-
"",
|
|
455
|
-
"1",
|
|
456
|
-
"2",
|
|
457
|
-
"3",
|
|
458
|
-
"4",
|
|
459
|
-
"5",
|
|
460
|
-
"6",
|
|
461
|
-
"7",
|
|
462
|
-
"8",
|
|
463
|
-
"9",
|
|
464
|
-
"10",
|
|
465
|
-
"11",
|
|
466
|
-
"12"
|
|
467
|
-
], v = [
|
|
468
|
-
"",
|
|
469
|
-
"-1",
|
|
470
|
-
"0",
|
|
471
|
-
"1",
|
|
472
|
-
"2",
|
|
473
|
-
"3",
|
|
474
|
-
"4",
|
|
475
|
-
"5",
|
|
476
|
-
"6",
|
|
477
|
-
"7",
|
|
478
|
-
"8",
|
|
479
|
-
"9",
|
|
480
|
-
"10",
|
|
481
|
-
"11",
|
|
482
|
-
"12"
|
|
483
|
-
], y = [
|
|
484
|
-
"",
|
|
485
|
-
"default",
|
|
486
|
-
"auto",
|
|
487
|
-
"start",
|
|
488
|
-
"end",
|
|
489
|
-
"center",
|
|
490
|
-
"stretch"
|
|
491
|
-
], ee = [
|
|
492
|
-
"",
|
|
493
|
-
"default",
|
|
494
|
-
"inherit",
|
|
495
|
-
"body-l",
|
|
496
|
-
"body-m",
|
|
497
|
-
"body-s",
|
|
498
|
-
"body-xs",
|
|
499
|
-
"heading-5xl",
|
|
500
|
-
"heading-4xl",
|
|
501
|
-
"heading-3xl",
|
|
502
|
-
"heading-2xl",
|
|
503
|
-
"heading-xl",
|
|
504
|
-
"heading-l",
|
|
505
|
-
"heading-m",
|
|
506
|
-
"heading-s"
|
|
507
|
-
], b = [
|
|
508
|
-
"",
|
|
509
|
-
"default",
|
|
510
|
-
"inherit",
|
|
511
|
-
"brand",
|
|
512
|
-
"neutral",
|
|
513
|
-
"dimmed",
|
|
514
|
-
"purpose-success",
|
|
515
|
-
"purpose-warning",
|
|
516
|
-
"purpose-error",
|
|
517
|
-
"purpose-unlimited",
|
|
518
|
-
"purpose-promo",
|
|
519
|
-
"state-hover",
|
|
520
|
-
"state-active",
|
|
521
|
-
"state-disabled"
|
|
522
|
-
], x = [
|
|
523
|
-
"",
|
|
524
|
-
"default",
|
|
525
|
-
"inherit",
|
|
526
|
-
"body",
|
|
527
|
-
"title",
|
|
528
|
-
"title-large",
|
|
529
|
-
"subtitle"
|
|
530
|
-
], S = [
|
|
531
|
-
"Xs",
|
|
532
|
-
"S",
|
|
533
|
-
"M",
|
|
534
|
-
"L",
|
|
535
|
-
"Xl"
|
|
536
|
-
], te = [
|
|
537
|
-
"",
|
|
538
|
-
"default",
|
|
539
|
-
...S.map((e) => e.toLowerCase())
|
|
540
|
-
], ne = [
|
|
541
|
-
"",
|
|
542
|
-
"default",
|
|
543
|
-
"left",
|
|
544
|
-
"center",
|
|
545
|
-
"right"
|
|
546
|
-
], re = [
|
|
547
|
-
"",
|
|
548
|
-
"none",
|
|
549
|
-
"3xs",
|
|
550
|
-
"2xs",
|
|
551
|
-
"xs",
|
|
552
|
-
"s",
|
|
553
|
-
"m",
|
|
554
|
-
"l",
|
|
555
|
-
"xl"
|
|
556
|
-
], C = [
|
|
557
|
-
"",
|
|
558
|
-
"none",
|
|
559
|
-
"s",
|
|
560
|
-
"m",
|
|
561
|
-
"l"
|
|
562
|
-
], w = [
|
|
563
|
-
"",
|
|
564
|
-
"none",
|
|
565
|
-
"main",
|
|
566
|
-
"pill"
|
|
567
|
-
], T = [
|
|
568
|
-
"none",
|
|
569
|
-
"main",
|
|
570
|
-
"brand",
|
|
571
|
-
"state-hover",
|
|
572
|
-
"state-active",
|
|
573
|
-
"neutral",
|
|
574
|
-
"purpose-success",
|
|
575
|
-
"purpose-warning",
|
|
576
|
-
"purpose-error",
|
|
577
|
-
"purpose-unlimited"
|
|
578
|
-
], E = [
|
|
579
|
-
"",
|
|
580
|
-
"all",
|
|
581
|
-
"top",
|
|
582
|
-
"right",
|
|
583
|
-
"bottom",
|
|
584
|
-
"left",
|
|
585
|
-
"block",
|
|
586
|
-
"inline"
|
|
587
|
-
], D = /* @__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("."), O = [
|
|
588
|
-
"",
|
|
589
|
-
"cover",
|
|
590
|
-
"contain",
|
|
591
|
-
"default"
|
|
592
|
-
], k = [
|
|
593
|
-
"",
|
|
594
|
-
"none",
|
|
595
|
-
"s",
|
|
596
|
-
"m",
|
|
597
|
-
"l",
|
|
598
|
-
"xl"
|
|
599
|
-
], A = [
|
|
600
|
-
"",
|
|
601
|
-
"default",
|
|
602
|
-
"title-4xl",
|
|
603
|
-
"title-3xl",
|
|
604
|
-
"title-2xl",
|
|
605
|
-
"title-xl",
|
|
606
|
-
"title-l",
|
|
607
|
-
"title-m",
|
|
608
|
-
"title-s",
|
|
609
|
-
"subtitle"
|
|
610
|
-
], j = /* @__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("."), M = [
|
|
611
|
-
"none",
|
|
612
|
-
"2xs",
|
|
613
|
-
"xs",
|
|
614
|
-
"s",
|
|
615
|
-
"default",
|
|
616
|
-
"l",
|
|
617
|
-
"heading-to-subtitle",
|
|
618
|
-
"heading-to-content",
|
|
619
|
-
"page-layout-between-sections"
|
|
620
|
-
], N = [
|
|
621
|
-
"",
|
|
622
|
-
"all",
|
|
623
|
-
"top",
|
|
624
|
-
"right",
|
|
625
|
-
"bottom",
|
|
626
|
-
"left"
|
|
627
|
-
], P = [
|
|
628
|
-
"",
|
|
629
|
-
"default",
|
|
630
|
-
"xs",
|
|
631
|
-
"s",
|
|
632
|
-
"m",
|
|
633
|
-
"l",
|
|
634
|
-
"xl"
|
|
635
|
-
];
|
|
636
|
-
function F(e) {
|
|
755
|
+
};
|
|
756
|
+
//#endregion
|
|
757
|
+
//#region src/utilities.ts
|
|
758
|
+
function j(e, ...t) {
|
|
759
|
+
let n = { ...e };
|
|
760
|
+
for (let e of t) delete n[e];
|
|
761
|
+
return n;
|
|
762
|
+
}
|
|
763
|
+
function M(e) {
|
|
637
764
|
let t = document.createElement("style");
|
|
638
765
|
t.innerHTML = e, document.head.appendChild(t);
|
|
639
766
|
}
|
|
640
|
-
function
|
|
767
|
+
function N(e) {
|
|
641
768
|
return typeof e == "string" && (e === "false" || e === "0" || e === "null") || typeof e == "boolean" && !e;
|
|
642
769
|
}
|
|
643
|
-
function
|
|
770
|
+
function P() {
|
|
644
771
|
return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
|
|
645
772
|
}
|
|
646
|
-
function
|
|
773
|
+
function F(e, t) {
|
|
647
774
|
return t !== null && e.includes(t);
|
|
648
775
|
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
776
|
+
//#endregion
|
|
777
|
+
//#region src/accessibility.ts
|
|
778
|
+
var I = /* @__PURE__ */ "aria-label.aria-labelledby.aria-describedby.aria-controls.aria-expanded.aria-haspopup.aria-pressed.aria-selected.aria-required.aria-disabled.aria-live.aria-atomic.aria-relevant.aria-orientation.aria-valuenow.aria-valuetext.aria-valuemin.aria-valuemax.aria-details.aria-modal.aria-autocomplete.aria-activedescendant.aria-colcount.aria-colindex.aria-colspan.aria-rowcount.aria-rowindex.aria-rowspan.aria-keyshortcuts.aria-placeholder.aria-invalid.aria-busy.aria-owns".split(".");
|
|
779
|
+
function L(e, t, n = !1) {
|
|
780
|
+
if (I.forEach((n) => {
|
|
652
781
|
e.getAttribute(n) && (t.setAttribute(n, e.getAttribute(n)), e.removeAttribute(n));
|
|
653
782
|
}), n && !e.getAttribute("aria-labelledby")) {
|
|
654
783
|
let n = `px-${t.localName?.toLowerCase() ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
655
784
|
t.setAttribute("id", n), e.setAttribute("aria-labelledby", n);
|
|
656
785
|
}
|
|
657
786
|
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
787
|
+
//#endregion
|
|
788
|
+
//#region src/nativeAttributes.ts
|
|
789
|
+
var R = {
|
|
790
|
+
disabled: ["disabled"],
|
|
791
|
+
name: ["name"],
|
|
792
|
+
value: ["value"],
|
|
793
|
+
type: ["type"],
|
|
794
|
+
formaction: ["formAction"],
|
|
795
|
+
formenctype: ["formEnctype"],
|
|
796
|
+
formmethod: ["formMethod"],
|
|
797
|
+
formnovalidate: ["formNoValidate"],
|
|
798
|
+
formtarget: ["formTarget"],
|
|
799
|
+
form: [],
|
|
800
|
+
autofocus: ["autofocus"],
|
|
801
|
+
title: ["title"],
|
|
802
|
+
popovertarget: [],
|
|
803
|
+
popovertargetaction: ["popoverTargetAction"],
|
|
804
|
+
command: ["command"],
|
|
805
|
+
commandfor: []
|
|
806
|
+
}, z = {
|
|
807
|
+
href: [
|
|
808
|
+
"href",
|
|
809
|
+
"protocol",
|
|
810
|
+
"username",
|
|
811
|
+
"password",
|
|
812
|
+
"host",
|
|
813
|
+
"hostname",
|
|
814
|
+
"port",
|
|
815
|
+
"pathname",
|
|
816
|
+
"search",
|
|
817
|
+
"hash"
|
|
818
|
+
],
|
|
819
|
+
target: ["target"],
|
|
820
|
+
rel: ["rel", "relList"],
|
|
821
|
+
download: ["download"],
|
|
822
|
+
hreflang: ["hreflang"],
|
|
823
|
+
type: ["type"],
|
|
824
|
+
ping: ["ping"],
|
|
825
|
+
referrerpolicy: ["referrerPolicy"],
|
|
826
|
+
title: ["title"],
|
|
827
|
+
charset: ["charset"],
|
|
828
|
+
coords: ["coords"],
|
|
829
|
+
name: ["name"],
|
|
830
|
+
rev: ["rev"]
|
|
831
|
+
}, B = {
|
|
832
|
+
accept: ["accept"],
|
|
833
|
+
alt: ["alt"],
|
|
834
|
+
autocomplete: ["autocomplete"],
|
|
835
|
+
autofocus: ["autofocus"],
|
|
836
|
+
capture: ["capture"],
|
|
837
|
+
checked: ["defaultChecked"],
|
|
838
|
+
dirname: ["dirName"],
|
|
839
|
+
disabled: ["disabled"],
|
|
840
|
+
form: [],
|
|
841
|
+
formaction: ["formAction"],
|
|
842
|
+
formenctype: ["formEnctype"],
|
|
843
|
+
formmethod: ["formMethod"],
|
|
844
|
+
formnovalidate: ["formNoValidate"],
|
|
845
|
+
formtarget: ["formTarget"],
|
|
846
|
+
height: ["height"],
|
|
847
|
+
inputmode: ["inputMode"],
|
|
848
|
+
enterkeyhint: ["enterKeyHint"],
|
|
849
|
+
list: [],
|
|
850
|
+
max: ["max"],
|
|
851
|
+
maxlength: ["maxLength"],
|
|
852
|
+
min: ["min"],
|
|
853
|
+
minlength: ["minLength"],
|
|
854
|
+
multiple: ["multiple"],
|
|
855
|
+
name: ["name"],
|
|
856
|
+
pattern: ["pattern"],
|
|
857
|
+
placeholder: ["placeholder"],
|
|
858
|
+
popovertarget: [],
|
|
859
|
+
popovertargetaction: ["popoverTargetAction"],
|
|
860
|
+
readonly: ["readOnly"],
|
|
861
|
+
required: ["required"],
|
|
862
|
+
size: ["size"],
|
|
863
|
+
src: ["src"],
|
|
864
|
+
step: ["step"],
|
|
865
|
+
title: ["title"],
|
|
866
|
+
type: ["type"],
|
|
867
|
+
usemap: ["useMap"],
|
|
868
|
+
value: ["defaultValue", "value"],
|
|
869
|
+
webkitdirectory: ["webkitdirectory"],
|
|
870
|
+
width: ["width"]
|
|
871
|
+
}, V = {
|
|
872
|
+
validity: "readonly",
|
|
873
|
+
validationMessage: "readonly",
|
|
874
|
+
willValidate: "readonly"
|
|
875
|
+
}, H = [
|
|
876
|
+
"checkValidity",
|
|
877
|
+
"reportValidity",
|
|
878
|
+
"setCustomValidity"
|
|
879
|
+
], U = {
|
|
880
|
+
...V,
|
|
881
|
+
form: "readonly",
|
|
882
|
+
labels: "readonly",
|
|
883
|
+
popoverTargetElement: "writable",
|
|
884
|
+
commandForElement: "writable"
|
|
885
|
+
}, W = [...H], ce = {
|
|
886
|
+
text: "writable",
|
|
887
|
+
shape: "writable",
|
|
888
|
+
origin: "readonly"
|
|
889
|
+
}, G = ["toString"], le = {
|
|
890
|
+
...V,
|
|
891
|
+
checked: "writable",
|
|
892
|
+
indeterminate: "writable",
|
|
893
|
+
files: "writable",
|
|
894
|
+
selectionStart: "writable",
|
|
895
|
+
selectionEnd: "writable",
|
|
896
|
+
selectionDirection: "writable",
|
|
897
|
+
valueAsDate: "writable",
|
|
898
|
+
valueAsNumber: "writable",
|
|
899
|
+
form: "readonly",
|
|
900
|
+
list: "readonly",
|
|
901
|
+
labels: "readonly",
|
|
902
|
+
webkitEntries: "readonly",
|
|
903
|
+
popoverTargetElement: "writable"
|
|
904
|
+
}, ue = [
|
|
905
|
+
...H,
|
|
906
|
+
"select",
|
|
907
|
+
"setRangeText",
|
|
908
|
+
"setSelectionRange",
|
|
909
|
+
"showPicker",
|
|
910
|
+
"stepDown",
|
|
911
|
+
"stepUp"
|
|
912
|
+
], de = {
|
|
913
|
+
...V,
|
|
914
|
+
value: "writable",
|
|
915
|
+
defaultValue: "writable",
|
|
916
|
+
selectionStart: "writable",
|
|
917
|
+
selectionEnd: "writable",
|
|
918
|
+
selectionDirection: "writable",
|
|
919
|
+
textLength: "readonly",
|
|
920
|
+
type: "readonly",
|
|
921
|
+
form: "readonly",
|
|
922
|
+
labels: "readonly"
|
|
923
|
+
}, fe = [
|
|
924
|
+
...H,
|
|
925
|
+
"select",
|
|
926
|
+
"setRangeText",
|
|
927
|
+
"setSelectionRange"
|
|
928
|
+
], pe = {
|
|
929
|
+
...V,
|
|
930
|
+
value: "writable",
|
|
931
|
+
selectedIndex: "writable",
|
|
932
|
+
length: "writable",
|
|
933
|
+
options: "readonly",
|
|
934
|
+
selectedOptions: "readonly",
|
|
935
|
+
type: "readonly",
|
|
936
|
+
form: "readonly",
|
|
937
|
+
labels: "readonly"
|
|
938
|
+
}, me = [
|
|
939
|
+
...H,
|
|
940
|
+
"add",
|
|
941
|
+
"item",
|
|
942
|
+
"namedItem",
|
|
943
|
+
"showPicker"
|
|
944
|
+
], he = {
|
|
945
|
+
currentSrc: "readonly",
|
|
946
|
+
naturalWidth: "readonly",
|
|
947
|
+
naturalHeight: "readonly",
|
|
948
|
+
complete: "readonly",
|
|
949
|
+
x: "readonly",
|
|
950
|
+
y: "readonly"
|
|
951
|
+
}, ge = ["decode"], _e = {
|
|
952
|
+
...V,
|
|
953
|
+
form: "readonly",
|
|
954
|
+
elements: "readonly",
|
|
955
|
+
type: "readonly"
|
|
956
|
+
}, ve = [...H];
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region src/breakpoints.ts
|
|
959
|
+
function ye(e, t, n, r = "", i, a = e) {
|
|
666
960
|
let o = new CSSStyleSheet(), s = n.reduce((n, o) => n + `
|
|
667
961
|
${t(a, o)} {
|
|
668
962
|
${e}: var(--${r}-${o}-desktop);
|
|
@@ -705,7 +999,7 @@ function U(e, t, n, r = "", i, a = e) {
|
|
|
705
999
|
}`, "");
|
|
706
1000
|
return o.replaceSync(s), o;
|
|
707
1001
|
}
|
|
708
|
-
var
|
|
1002
|
+
var be = class {
|
|
709
1003
|
constructor(e, t, n, r) {
|
|
710
1004
|
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), {
|
|
711
1005
|
get: () => this.component.getAttribute(this.attributeName),
|
|
@@ -751,31 +1045,31 @@ var W = class {
|
|
|
751
1045
|
set attributeValue(e) {
|
|
752
1046
|
this._attributeValue = e, this.setCSSProperties();
|
|
753
1047
|
}
|
|
754
|
-
},
|
|
755
|
-
function
|
|
1048
|
+
}, K = ".mgnlEditor", q = { "PX-HEADER": "editor" };
|
|
1049
|
+
function xe(e) {
|
|
756
1050
|
return !!e.shadowRoot?.querySelector("slot:not([name])");
|
|
757
1051
|
}
|
|
758
|
-
function
|
|
1052
|
+
function Se(e, t) {
|
|
759
1053
|
return t[e.tagName] ?? null;
|
|
760
1054
|
}
|
|
761
|
-
function
|
|
1055
|
+
function J(e, { selector: t = K, slotByHost: n = q } = {}) {
|
|
762
1056
|
if (!e.matches(t) || e.hasAttribute("slot")) return null;
|
|
763
1057
|
let r = e.parentElement;
|
|
764
|
-
if (!r?.shadowRoot ||
|
|
765
|
-
let i =
|
|
1058
|
+
if (!r?.shadowRoot || xe(r)) return null;
|
|
1059
|
+
let i = Se(r, n);
|
|
766
1060
|
return i ? (e.setAttribute("slot", i), i) : null;
|
|
767
1061
|
}
|
|
768
|
-
function
|
|
1062
|
+
function Y({ selector: e = K, slotByHost: t = q, root: n = document.documentElement } = {}) {
|
|
769
1063
|
let r = 0;
|
|
770
1064
|
return n.querySelectorAll(e).forEach((n) => {
|
|
771
|
-
|
|
1065
|
+
J(n, {
|
|
772
1066
|
selector: e,
|
|
773
1067
|
slotByHost: t
|
|
774
1068
|
}) && (r += 1);
|
|
775
1069
|
}), r;
|
|
776
1070
|
}
|
|
777
|
-
function
|
|
778
|
-
|
|
1071
|
+
function Ce({ selector: e = K, slotByHost: t = q, root: n = document.documentElement } = {}) {
|
|
1072
|
+
Y({
|
|
779
1073
|
selector: e,
|
|
780
1074
|
slotByHost: t,
|
|
781
1075
|
root: n
|
|
@@ -783,11 +1077,11 @@ function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentEle
|
|
|
783
1077
|
let r = new MutationObserver((n) => {
|
|
784
1078
|
n.forEach((n) => {
|
|
785
1079
|
n.addedNodes.forEach((n) => {
|
|
786
|
-
n instanceof Element && (
|
|
1080
|
+
n instanceof Element && (J(n, {
|
|
787
1081
|
selector: e,
|
|
788
1082
|
slotByHost: t
|
|
789
1083
|
}), n.querySelectorAll(e).forEach((n) => {
|
|
790
|
-
|
|
1084
|
+
J(n, {
|
|
791
1085
|
selector: e,
|
|
792
1086
|
slotByHost: t
|
|
793
1087
|
});
|
|
@@ -800,21 +1094,23 @@ function ie({ selector: e = G, slotByHost: t = K, root: n = document.documentEle
|
|
|
800
1094
|
subtree: !0
|
|
801
1095
|
}), () => r.disconnect();
|
|
802
1096
|
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region src/template.ts
|
|
1099
|
+
var X = /* @__PURE__ */ new Map(), we = 500;
|
|
1100
|
+
function Z(e) {
|
|
806
1101
|
let t = document.createElement("template");
|
|
807
1102
|
return t.innerHTML = e, t;
|
|
808
1103
|
}
|
|
809
|
-
function
|
|
810
|
-
return
|
|
1104
|
+
function Q(e) {
|
|
1105
|
+
return Z(e);
|
|
811
1106
|
}
|
|
812
1107
|
function $(e) {
|
|
813
|
-
let t =
|
|
814
|
-
return t || (t =
|
|
1108
|
+
let t = X.get(e);
|
|
1109
|
+
return t || (t = Z(e), X.size < we && X.set(e, t)), t;
|
|
815
1110
|
}
|
|
816
|
-
function
|
|
1111
|
+
function Te(e, t) {
|
|
817
1112
|
let n = typeof t == "string" ? $(t) : t;
|
|
818
1113
|
e.replaceChildren(document.importNode(n.content, !0));
|
|
819
1114
|
}
|
|
820
|
-
|
|
1115
|
+
//#endregion
|
|
1116
|
+
export { be as AttributeBreakpointHandlerDelegate, k as PxElement, A as VerticallyExtendedElement, O as WithExtraAttributes, i as WrappedInteractiveStateController, I as accessibilityAttributes, M as addGlobalStylesheet, E as assetContainerImgWidthValues, J as assignCmsEditorSlot, Y as assignCmsEditorSlots, oe as backgroundColorValues, se as backgroundSizeValues, c as booleanPropertyToAttributeSetter, ie as borderColorValues, re as borderRadiusValues, ae as borderSideValues, ne as borderValues, x as boxShadowValues, F as checkName, _ as colorValues, Q as createTemplate, d as cssGridAlignSelfValues, p as cssGridColSpanValues, f as cssGridJustifySelfValues, m as cssGridOrderValues, h as cssGridPlaceSelfValues, ye as cssTokenBreakpoints, u as flexboxAlignSelfValues, g as fontsizeValues, v as fontweightValues, w as gapValues, $ as getTemplate, P as getViewportFormat, C as gradientValues, l as gridGapValues, S as headingValues, y as iconSizeValues, b as iconSizeValuesKC, n as isComponentDebug, N as isFalsy, r as log, z as nativeAnchorAttributes, G as nativeAnchorMethods, ce as nativeAnchorProperties, R as nativeButtonAttributes, W as nativeButtonMethods, U as nativeButtonProperties, ve as nativeFieldsetMethods, _e as nativeFieldsetProperties, ge as nativeImageMethods, he as nativeImageProperties, B as nativeInputAttributes, ue as nativeInputMethods, le as nativeInputProperties, me as nativeSelectMethods, pe as nativeSelectProperties, fe as nativeTextAreaMethods, de as nativeTextAreaProperties, T as noBorderRadiusValues, Ce as observeCmsEditorSlots, j as omitKeys, te as paddingValues, s as propertyToAttributeSetter, Te as renderTemplate, ee as textalignValues, L as transferAccessibilityAttributes };
|