@proximus/lavender-common 1.4.14-beta.3 → 1.4.14
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/common.d.ts +82 -92
- package/dist/index.es.js +1005 -738
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,773 +1,1040 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var S = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
3
|
+
};
|
|
4
|
+
var $ = (i, t, s) => t.has(i) || S("Cannot " + s);
|
|
5
|
+
var a = (i, t, s) => ($(i, t, "read from private field"), s ? s.call(i) : t.get(i)), d = (i, t, s) => t.has(i) ? S("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), p = (i, t, s, e) => ($(i, t, "write to private field"), e ? e.call(i, s) : t.set(i, s), s);
|
|
6
|
+
const M = ":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%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:host([word-break-all]){word-break:break-all}@media screen and (max-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%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}:host([word-break-all--mobile]){word-break:break-all!important}@media screen and (min-width: 48rem) and (max-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%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}:host([word-break-all--tablet]){word-break:break-all!important}@media screen and (min-width: 64.0625rem){:host([shown--sr--laptop]),::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}: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!important}@media screen and (min-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!important}}", x = { DEV: !0, VITE_COMPONENT_DEBUG: "false" };
|
|
7
|
+
function N(i) {
|
|
8
|
+
const t = document.createElement(i), s = Object.getPrototypeOf(t);
|
|
9
|
+
return Object.getOwnPropertyNames(s);
|
|
10
|
+
}
|
|
11
|
+
function D(i) {
|
|
12
|
+
const t = document.createElement(i), s = Object.getPrototypeOf(t);
|
|
13
|
+
return Object.getOwnPropertyNames(s).map(
|
|
14
|
+
(e) => e.toLowerCase()
|
|
15
|
+
);
|
|
8
16
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
const j = new CSSStyleSheet();
|
|
18
|
+
j.replaceSync(M);
|
|
19
|
+
const c = typeof import.meta < "u" && typeof x < "u" ? x : void 0, T = (c == null ? void 0 : c.VITE_COMPONENT_DEBUG) === "true" || (c == null ? void 0 : c.DEV) === !0;
|
|
20
|
+
typeof window < "u" && (window.isComponentDebug = w);
|
|
21
|
+
function w() {
|
|
22
|
+
return T;
|
|
12
23
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var i = {
|
|
16
|
-
BASE_URL: "/",
|
|
17
|
-
DEV: !0,
|
|
18
|
-
MODE: "production",
|
|
19
|
-
PROD: !1,
|
|
20
|
-
SSR: !1,
|
|
21
|
-
VITE_COMPONENT_DEBUG: "true"
|
|
22
|
-
}, a = i?.VITE_COMPONENT_DEBUG === "true" || i?.DEV === !0;
|
|
23
|
-
typeof window < "u" && (window.isComponentDebug = o);
|
|
24
|
-
function o() {
|
|
25
|
-
return a;
|
|
24
|
+
function E(i) {
|
|
25
|
+
w() && console.error(i);
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
var g, n, f, h, u, k, C;
|
|
28
|
+
class U {
|
|
29
|
+
constructor(t, s, e) {
|
|
30
|
+
d(this, k);
|
|
31
|
+
d(this, g);
|
|
32
|
+
d(this, n);
|
|
33
|
+
d(this, f);
|
|
34
|
+
d(this, h);
|
|
35
|
+
d(this, u);
|
|
36
|
+
p(this, h, !1), p(this, u, () => {
|
|
37
|
+
this.setInteractiveState("hover");
|
|
38
|
+
}), this.clearInteractiveState = () => {
|
|
39
|
+
this.setInteractiveState(null);
|
|
40
|
+
}, p(this, g, t), p(this, n, s), p(this, f, e);
|
|
41
|
+
}
|
|
42
|
+
connect() {
|
|
43
|
+
a(this, h) || (a(this, n).addEventListener(
|
|
44
|
+
"pointerenter",
|
|
45
|
+
a(this, u)
|
|
46
|
+
), a(this, n).addEventListener(
|
|
47
|
+
"pointerleave",
|
|
48
|
+
this.clearInteractiveState
|
|
49
|
+
), a(this, n).addEventListener(
|
|
50
|
+
"focusin",
|
|
51
|
+
a(this, u)
|
|
52
|
+
), a(this, n).addEventListener(
|
|
53
|
+
"focusout",
|
|
54
|
+
this.clearInteractiveState
|
|
55
|
+
), p(this, h, !0));
|
|
56
|
+
}
|
|
57
|
+
disconnect() {
|
|
58
|
+
a(this, h) && (a(this, n).removeEventListener(
|
|
59
|
+
"pointerenter",
|
|
60
|
+
a(this, u)
|
|
61
|
+
), a(this, n).removeEventListener(
|
|
62
|
+
"pointerleave",
|
|
63
|
+
this.clearInteractiveState
|
|
64
|
+
), a(this, n).removeEventListener(
|
|
65
|
+
"focusin",
|
|
66
|
+
a(this, u)
|
|
67
|
+
), a(this, n).removeEventListener(
|
|
68
|
+
"focusout",
|
|
69
|
+
this.clearInteractiveState
|
|
70
|
+
), p(this, h, !1));
|
|
71
|
+
}
|
|
72
|
+
setInteractiveState(t) {
|
|
73
|
+
const s = a(this, k, C);
|
|
74
|
+
if (!a(this, f).call(this)) {
|
|
75
|
+
s.forEach((e) => e.removeAttribute("interactive-state"));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
s.forEach((e) => {
|
|
79
|
+
t ? e.setAttribute("interactive-state", t) : e.removeAttribute("interactive-state");
|
|
80
|
+
});
|
|
81
|
+
}
|
|
29
82
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
#r;
|
|
35
|
-
constructor(e, t, n) {
|
|
36
|
-
this.#r = !1, this.#i = () => {
|
|
37
|
-
this.setInteractiveState("hover");
|
|
38
|
-
}, this.clearInteractiveState = () => {
|
|
39
|
-
this.setInteractiveState(null);
|
|
40
|
-
}, this.#e = e, this.#t = t, this.#n = n;
|
|
41
|
-
}
|
|
42
|
-
#i;
|
|
43
|
-
connect() {
|
|
44
|
-
this.#r ||= (this.#t.addEventListener("pointerenter", this.#i), this.#t.addEventListener("pointerleave", this.clearInteractiveState), this.#t.addEventListener("focusin", this.#i), this.#t.addEventListener("focusout", this.clearInteractiveState), !0);
|
|
45
|
-
}
|
|
46
|
-
disconnect() {
|
|
47
|
-
this.#r &&= (this.#t.removeEventListener("pointerenter", this.#i), this.#t.removeEventListener("pointerleave", this.clearInteractiveState), this.#t.removeEventListener("focusin", this.#i), this.#t.removeEventListener("focusout", this.clearInteractiveState), !1);
|
|
48
|
-
}
|
|
49
|
-
setInteractiveState(e) {
|
|
50
|
-
let t = this.#a;
|
|
51
|
-
if (!this.#n()) {
|
|
52
|
-
t.forEach((e) => e.removeAttribute("interactive-state"));
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
t.forEach((t) => {
|
|
56
|
-
e ? t.setAttribute("interactive-state", e) : t.removeAttribute("interactive-state");
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
get #a() {
|
|
60
|
-
return Array.from(this.#e.querySelectorAll("*")).filter(l);
|
|
61
|
-
}
|
|
83
|
+
g = new WeakMap(), n = new WeakMap(), f = new WeakMap(), h = new WeakMap(), u = new WeakMap(), k = new WeakSet(), C = function() {
|
|
84
|
+
return Array.from(a(this, g).querySelectorAll("*")).filter(
|
|
85
|
+
O
|
|
86
|
+
);
|
|
62
87
|
};
|
|
63
|
-
function
|
|
64
|
-
|
|
88
|
+
function O(i) {
|
|
89
|
+
var s;
|
|
90
|
+
if (i.hasAttribute("interactive-state"))
|
|
91
|
+
return !0;
|
|
92
|
+
const t = customElements.get(
|
|
93
|
+
i.localName
|
|
94
|
+
);
|
|
95
|
+
return ((s = t == null ? void 0 : t.observedAttributes) == null ? void 0 : s.includes("interactive-state")) ?? !1;
|
|
65
96
|
}
|
|
66
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
"0",
|
|
479
|
-
"1",
|
|
480
|
-
"2",
|
|
481
|
-
"3",
|
|
482
|
-
"4",
|
|
483
|
-
"5",
|
|
484
|
-
"6",
|
|
485
|
-
"7",
|
|
486
|
-
"8",
|
|
487
|
-
"9",
|
|
488
|
-
"10",
|
|
489
|
-
"11",
|
|
490
|
-
"12"
|
|
491
|
-
], y = [
|
|
492
|
-
"",
|
|
493
|
-
"default",
|
|
494
|
-
"auto",
|
|
495
|
-
"start",
|
|
496
|
-
"end",
|
|
497
|
-
"center",
|
|
498
|
-
"stretch"
|
|
499
|
-
], b = [
|
|
500
|
-
"",
|
|
501
|
-
"default",
|
|
502
|
-
"inherit",
|
|
503
|
-
"body-l",
|
|
504
|
-
"body-m",
|
|
505
|
-
"body-s",
|
|
506
|
-
"body-xs",
|
|
507
|
-
"heading-5xl",
|
|
508
|
-
"heading-4xl",
|
|
509
|
-
"heading-3xl",
|
|
510
|
-
"heading-2xl",
|
|
511
|
-
"heading-xl",
|
|
512
|
-
"heading-l",
|
|
513
|
-
"heading-m",
|
|
514
|
-
"heading-s"
|
|
515
|
-
], x = [
|
|
516
|
-
"",
|
|
517
|
-
"default",
|
|
518
|
-
"inherit",
|
|
519
|
-
"brand",
|
|
520
|
-
"neutral",
|
|
521
|
-
"dimmed",
|
|
522
|
-
"purpose-success",
|
|
523
|
-
"purpose-warning",
|
|
524
|
-
"purpose-error",
|
|
525
|
-
"purpose-unlimited",
|
|
526
|
-
"purpose-promo",
|
|
527
|
-
"state-hover",
|
|
528
|
-
"state-active",
|
|
529
|
-
"state-disabled"
|
|
530
|
-
], S = [
|
|
531
|
-
"",
|
|
532
|
-
"default",
|
|
533
|
-
"inherit",
|
|
534
|
-
"body",
|
|
535
|
-
"title",
|
|
536
|
-
"title-large",
|
|
537
|
-
"subtitle"
|
|
538
|
-
], C = [
|
|
539
|
-
"Xs",
|
|
540
|
-
"S",
|
|
541
|
-
"M",
|
|
542
|
-
"L",
|
|
543
|
-
"Xl"
|
|
544
|
-
], w = [
|
|
545
|
-
"",
|
|
546
|
-
"default",
|
|
547
|
-
...C.map((e) => e.toLowerCase())
|
|
548
|
-
], T = [
|
|
549
|
-
"",
|
|
550
|
-
"default",
|
|
551
|
-
"left",
|
|
552
|
-
"center",
|
|
553
|
-
"right"
|
|
554
|
-
], E = [
|
|
555
|
-
"",
|
|
556
|
-
"none",
|
|
557
|
-
"3xs",
|
|
558
|
-
"2xs",
|
|
559
|
-
"xs",
|
|
560
|
-
"s",
|
|
561
|
-
"m",
|
|
562
|
-
"l",
|
|
563
|
-
"xl"
|
|
564
|
-
], D = [
|
|
565
|
-
"",
|
|
566
|
-
"none",
|
|
567
|
-
"s",
|
|
568
|
-
"m",
|
|
569
|
-
"l"
|
|
570
|
-
], O = [
|
|
571
|
-
"",
|
|
572
|
-
"none",
|
|
573
|
-
"main",
|
|
574
|
-
"pill"
|
|
575
|
-
], k = [
|
|
576
|
-
"none",
|
|
577
|
-
"main",
|
|
578
|
-
"brand",
|
|
579
|
-
"state-hover",
|
|
580
|
-
"state-active",
|
|
581
|
-
"neutral",
|
|
582
|
-
"purpose-success",
|
|
583
|
-
"purpose-warning",
|
|
584
|
-
"purpose-error",
|
|
585
|
-
"purpose-unlimited"
|
|
586
|
-
], A = [
|
|
587
|
-
"",
|
|
588
|
-
"all",
|
|
589
|
-
"top",
|
|
590
|
-
"right",
|
|
591
|
-
"bottom",
|
|
592
|
-
"left",
|
|
593
|
-
"block",
|
|
594
|
-
"inline"
|
|
595
|
-
], j = /* @__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("."), M = [
|
|
596
|
-
"",
|
|
597
|
-
"cover",
|
|
598
|
-
"contain",
|
|
599
|
-
"default"
|
|
600
|
-
], N = [
|
|
601
|
-
"",
|
|
602
|
-
"none",
|
|
603
|
-
"s",
|
|
604
|
-
"m",
|
|
605
|
-
"l",
|
|
606
|
-
"xl"
|
|
607
|
-
], P = [
|
|
608
|
-
"",
|
|
609
|
-
"default",
|
|
610
|
-
"title-4xl",
|
|
611
|
-
"title-3xl",
|
|
612
|
-
"title-2xl",
|
|
613
|
-
"title-xl",
|
|
614
|
-
"title-l",
|
|
615
|
-
"title-m",
|
|
616
|
-
"title-s",
|
|
617
|
-
"subtitle"
|
|
618
|
-
], F = /* @__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("."), I = [
|
|
619
|
-
"none",
|
|
620
|
-
"2xs",
|
|
621
|
-
"xs",
|
|
622
|
-
"s",
|
|
623
|
-
"default",
|
|
624
|
-
"l",
|
|
625
|
-
"heading-to-subtitle",
|
|
626
|
-
"heading-to-content",
|
|
627
|
-
"page-layout-between-sections"
|
|
628
|
-
], L = [
|
|
629
|
-
"",
|
|
630
|
-
"all",
|
|
631
|
-
"top",
|
|
632
|
-
"right",
|
|
633
|
-
"bottom",
|
|
634
|
-
"left"
|
|
635
|
-
], R = [
|
|
636
|
-
"",
|
|
637
|
-
"default",
|
|
638
|
-
"xs",
|
|
639
|
-
"s",
|
|
640
|
-
"m",
|
|
641
|
-
"l",
|
|
642
|
-
"xl"
|
|
643
|
-
];
|
|
644
|
-
function z(e) {
|
|
645
|
-
let t = document.createElement("style");
|
|
646
|
-
t.innerHTML = e, document.head.appendChild(t);
|
|
97
|
+
typeof window < "u" && (window.isComponentDebug = w);
|
|
98
|
+
class y extends HTMLElement {
|
|
99
|
+
static get observedAttributes() {
|
|
100
|
+
return [
|
|
101
|
+
"grow",
|
|
102
|
+
"grow--mobile",
|
|
103
|
+
"grow--tablet",
|
|
104
|
+
"grow--laptop",
|
|
105
|
+
"grow--desktop",
|
|
106
|
+
"shrink",
|
|
107
|
+
"shrink--mobile",
|
|
108
|
+
"shrink--tablet",
|
|
109
|
+
"shrink--laptop",
|
|
110
|
+
"shrink--desktop",
|
|
111
|
+
"basis",
|
|
112
|
+
"basis--mobile",
|
|
113
|
+
"basis--tablet",
|
|
114
|
+
"basis--laptop",
|
|
115
|
+
"basis--desktop",
|
|
116
|
+
"align-self",
|
|
117
|
+
"align-self--mobile",
|
|
118
|
+
"align-self--tablet",
|
|
119
|
+
"align-self--laptop",
|
|
120
|
+
"align-self--desktop",
|
|
121
|
+
"justify-self",
|
|
122
|
+
"justify-self--mobile",
|
|
123
|
+
"justify-self--tablet",
|
|
124
|
+
"justify-self--laptop",
|
|
125
|
+
"justify-self--desktop",
|
|
126
|
+
"hidden",
|
|
127
|
+
"hidden--mobile",
|
|
128
|
+
"hidden--tablet",
|
|
129
|
+
"hidden--laptop",
|
|
130
|
+
"hidden--desktop",
|
|
131
|
+
"shown--sr",
|
|
132
|
+
"shown--sr--mobile",
|
|
133
|
+
"shown--sr--tablet",
|
|
134
|
+
"shown--sr--laptop",
|
|
135
|
+
"shown--sr--desktop",
|
|
136
|
+
"col-span",
|
|
137
|
+
"col-span--mobile",
|
|
138
|
+
"col-span--tablet",
|
|
139
|
+
"col-span--laptop",
|
|
140
|
+
"col-span--desktop",
|
|
141
|
+
"order",
|
|
142
|
+
"order--mobile",
|
|
143
|
+
"order--tablet",
|
|
144
|
+
"order--laptop",
|
|
145
|
+
"order--desktop",
|
|
146
|
+
"sticky-top",
|
|
147
|
+
"sticky-bottom",
|
|
148
|
+
"word-break-all",
|
|
149
|
+
"word-break-all--mobile",
|
|
150
|
+
"word-break-all--tablet",
|
|
151
|
+
"word-break-all--laptop",
|
|
152
|
+
"word-break-all--desktop"
|
|
153
|
+
];
|
|
154
|
+
}
|
|
155
|
+
constructor(...t) {
|
|
156
|
+
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
157
|
+
j,
|
|
158
|
+
...t
|
|
159
|
+
];
|
|
160
|
+
}
|
|
161
|
+
attributeChangedCallback(t, s, e) {
|
|
162
|
+
var o;
|
|
163
|
+
if (y.observedAttributes.indexOf(t) !== -1)
|
|
164
|
+
switch (t) {
|
|
165
|
+
case "grow":
|
|
166
|
+
case "grow--mobile":
|
|
167
|
+
case "grow--tablet":
|
|
168
|
+
case "grow--laptop":
|
|
169
|
+
case "grow--desktop":
|
|
170
|
+
case "shrink":
|
|
171
|
+
case "shrink--mobile":
|
|
172
|
+
case "shrink--tablet":
|
|
173
|
+
case "shrink--laptop":
|
|
174
|
+
case "shrink--desktop":
|
|
175
|
+
case "basis":
|
|
176
|
+
case "basis--mobile":
|
|
177
|
+
case "basis--tablet":
|
|
178
|
+
case "basis--laptop":
|
|
179
|
+
case "basis--desktop":
|
|
180
|
+
this.style.setProperty(`--${t}-value`, e);
|
|
181
|
+
break;
|
|
182
|
+
case "align-self":
|
|
183
|
+
case "align-self--mobile":
|
|
184
|
+
case "align-self--tablet":
|
|
185
|
+
case "align-self--laptop":
|
|
186
|
+
case "align-self--desktop":
|
|
187
|
+
this.updateProperties(
|
|
188
|
+
t,
|
|
189
|
+
s,
|
|
190
|
+
e,
|
|
191
|
+
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? I : _
|
|
192
|
+
);
|
|
193
|
+
break;
|
|
194
|
+
case "justify-self":
|
|
195
|
+
case "justify-self--mobile":
|
|
196
|
+
case "justify-self--tablet":
|
|
197
|
+
case "justify-self--laptop":
|
|
198
|
+
case "justify-self--desktop":
|
|
199
|
+
this.updateProperties(
|
|
200
|
+
t,
|
|
201
|
+
s,
|
|
202
|
+
e,
|
|
203
|
+
P
|
|
204
|
+
);
|
|
205
|
+
break;
|
|
206
|
+
case "col-span":
|
|
207
|
+
case "col-span--mobile":
|
|
208
|
+
case "col-span--tablet":
|
|
209
|
+
case "col-span--laptop":
|
|
210
|
+
case "col-span--desktop":
|
|
211
|
+
this.updateProperties(t, s, e, G);
|
|
212
|
+
break;
|
|
213
|
+
case "order":
|
|
214
|
+
case "order--mobile":
|
|
215
|
+
case "order--tablet":
|
|
216
|
+
case "order--laptop":
|
|
217
|
+
case "order--desktop":
|
|
218
|
+
this.updateProperties(t, s, e, q);
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
updateProperties(t, s, e, o) {
|
|
223
|
+
o && (this.checkName(o, e) || E(
|
|
224
|
+
`"${e}" is not an allowed ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
225
|
+
));
|
|
226
|
+
const l = t.indexOf("--") > -1, b = l ? t.split("--")[0] : t;
|
|
227
|
+
if (!l)
|
|
228
|
+
this.style.setProperty(
|
|
229
|
+
`--${b}-value`,
|
|
230
|
+
s
|
|
231
|
+
), this.style.setProperty(
|
|
232
|
+
`--${b}-value`,
|
|
233
|
+
e
|
|
234
|
+
);
|
|
235
|
+
else {
|
|
236
|
+
const m = t.split("--")[1];
|
|
237
|
+
this.style.setProperty(
|
|
238
|
+
`--${b}--${m}-value`,
|
|
239
|
+
s
|
|
240
|
+
), this.style.setProperty(
|
|
241
|
+
`--${b}--${m}-value`,
|
|
242
|
+
e
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
updateStyle(t, s, e) {
|
|
247
|
+
e !== null && e !== "" && e !== "default" && this.style.setProperty(
|
|
248
|
+
`--${t}--${s}-value`,
|
|
249
|
+
e
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
checkName(t, s) {
|
|
253
|
+
return t.includes(s);
|
|
254
|
+
}
|
|
255
|
+
get $el() {
|
|
256
|
+
return this;
|
|
257
|
+
}
|
|
258
|
+
get $parentElementName() {
|
|
259
|
+
var t;
|
|
260
|
+
return (t = this.parentElement) == null ? void 0 : t.tagName.toLowerCase();
|
|
261
|
+
}
|
|
262
|
+
get isInsideGridOrStack() {
|
|
263
|
+
let t = this.parentElement;
|
|
264
|
+
for (; t; ) {
|
|
265
|
+
if (t.localName === "px-grid" || t.localName === "px-stack" && (t == null ? void 0 : t.getAttribute("direction")) === "row")
|
|
266
|
+
return !0;
|
|
267
|
+
if (window.getComputedStyle(t).display === "contents") {
|
|
268
|
+
t = t.parentElement;
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
return !1;
|
|
274
|
+
}
|
|
275
|
+
get grow() {
|
|
276
|
+
return this.getAttribute("grow");
|
|
277
|
+
}
|
|
278
|
+
set grow(t) {
|
|
279
|
+
this.setAttribute("grow", t);
|
|
280
|
+
}
|
|
281
|
+
get growMobile() {
|
|
282
|
+
return this.getAttribute("grow--mobile");
|
|
283
|
+
}
|
|
284
|
+
set growMobile(t) {
|
|
285
|
+
this.setAttribute("grow--mobile", t);
|
|
286
|
+
}
|
|
287
|
+
get growTablet() {
|
|
288
|
+
return this.getAttribute("grow--tablet");
|
|
289
|
+
}
|
|
290
|
+
set growTablet(t) {
|
|
291
|
+
this.setAttribute("grow--tablet", t);
|
|
292
|
+
}
|
|
293
|
+
get growLaptop() {
|
|
294
|
+
return this.getAttribute("grow--laptop");
|
|
295
|
+
}
|
|
296
|
+
set growLaptop(t) {
|
|
297
|
+
this.setAttribute("grow--laptop", t);
|
|
298
|
+
}
|
|
299
|
+
get growDesktop() {
|
|
300
|
+
return this.getAttribute("grow--desktop");
|
|
301
|
+
}
|
|
302
|
+
set growDesktop(t) {
|
|
303
|
+
this.setAttribute("grow--desktop", t);
|
|
304
|
+
}
|
|
305
|
+
get shrink() {
|
|
306
|
+
return this.getAttribute("shrink");
|
|
307
|
+
}
|
|
308
|
+
set shrink(t) {
|
|
309
|
+
this.setAttribute("shrink", t);
|
|
310
|
+
}
|
|
311
|
+
get shrinkMobile() {
|
|
312
|
+
return this.getAttribute("shrink--mobile");
|
|
313
|
+
}
|
|
314
|
+
set shrinkMobile(t) {
|
|
315
|
+
this.setAttribute("shrink--mobile", t);
|
|
316
|
+
}
|
|
317
|
+
get shrinkTablet() {
|
|
318
|
+
return this.getAttribute("shrink--tablet");
|
|
319
|
+
}
|
|
320
|
+
set shrinkTablet(t) {
|
|
321
|
+
this.setAttribute("shrink--tablet", t);
|
|
322
|
+
}
|
|
323
|
+
get shrinkLaptop() {
|
|
324
|
+
return this.getAttribute("shrink--laptop");
|
|
325
|
+
}
|
|
326
|
+
set shrinkLaptop(t) {
|
|
327
|
+
this.setAttribute("shrink--laptop", t);
|
|
328
|
+
}
|
|
329
|
+
get shrinkDesktop() {
|
|
330
|
+
return this.getAttribute("shrink--desktop");
|
|
331
|
+
}
|
|
332
|
+
set shrinkDesktop(t) {
|
|
333
|
+
this.setAttribute("shrink--desktop", t);
|
|
334
|
+
}
|
|
335
|
+
get basis() {
|
|
336
|
+
return this.getAttribute("basis");
|
|
337
|
+
}
|
|
338
|
+
set basis(t) {
|
|
339
|
+
this.setAttribute("basis", t);
|
|
340
|
+
}
|
|
341
|
+
get basisMobile() {
|
|
342
|
+
return this.getAttribute("basis--mobile");
|
|
343
|
+
}
|
|
344
|
+
set basisMobile(t) {
|
|
345
|
+
this.setAttribute("basis--mobile", t);
|
|
346
|
+
}
|
|
347
|
+
get basisTablet() {
|
|
348
|
+
return this.getAttribute("basis--tablet");
|
|
349
|
+
}
|
|
350
|
+
set basisTablet(t) {
|
|
351
|
+
this.setAttribute("basis--tablet", t);
|
|
352
|
+
}
|
|
353
|
+
get basisLaptop() {
|
|
354
|
+
return this.getAttribute("basis--laptop");
|
|
355
|
+
}
|
|
356
|
+
set basisLaptop(t) {
|
|
357
|
+
this.setAttribute("basis--laptop", t);
|
|
358
|
+
}
|
|
359
|
+
get basisDesktop() {
|
|
360
|
+
return this.getAttribute("basis--desktop");
|
|
361
|
+
}
|
|
362
|
+
set basisDesktop(t) {
|
|
363
|
+
this.setAttribute("basis--desktop", t);
|
|
364
|
+
}
|
|
365
|
+
get alignSelf() {
|
|
366
|
+
return this.getAttribute("align-self");
|
|
367
|
+
}
|
|
368
|
+
set alignSelf(t) {
|
|
369
|
+
this.setAttribute("align-self", t);
|
|
370
|
+
}
|
|
371
|
+
get alignSelfMobile() {
|
|
372
|
+
return this.getAttribute("align-self--mobile");
|
|
373
|
+
}
|
|
374
|
+
set alignSelfMobile(t) {
|
|
375
|
+
this.setAttribute("align-self--mobile", t);
|
|
376
|
+
}
|
|
377
|
+
get alignSelfTablet() {
|
|
378
|
+
return this.getAttribute("align-self--tablet");
|
|
379
|
+
}
|
|
380
|
+
set alignSelfTablet(t) {
|
|
381
|
+
this.setAttribute("align-self--tablet", t);
|
|
382
|
+
}
|
|
383
|
+
get alignSelfLaptop() {
|
|
384
|
+
return this.getAttribute("align-self--laptop");
|
|
385
|
+
}
|
|
386
|
+
set alignSelfLaptop(t) {
|
|
387
|
+
this.setAttribute("align-self--laptop", t);
|
|
388
|
+
}
|
|
389
|
+
get alignSelfDesktop() {
|
|
390
|
+
return this.getAttribute("align-self--desktop");
|
|
391
|
+
}
|
|
392
|
+
set alignSelfDesktop(t) {
|
|
393
|
+
this.setAttribute("align-self--desktop", t);
|
|
394
|
+
}
|
|
395
|
+
get justifySelf() {
|
|
396
|
+
return this.getAttribute("justify-self");
|
|
397
|
+
}
|
|
398
|
+
set justifySelf(t) {
|
|
399
|
+
this.setAttribute("justify-self", t);
|
|
400
|
+
}
|
|
401
|
+
get justifySelfMobile() {
|
|
402
|
+
return this.getAttribute("justify-self--mobile");
|
|
403
|
+
}
|
|
404
|
+
set justifySelfMobile(t) {
|
|
405
|
+
this.setAttribute("justify-self--mobile", t);
|
|
406
|
+
}
|
|
407
|
+
get justifySelfTablet() {
|
|
408
|
+
return this.getAttribute("justify-self--tablet");
|
|
409
|
+
}
|
|
410
|
+
set justifySelfTablet(t) {
|
|
411
|
+
this.setAttribute("justify-self--tablet", t);
|
|
412
|
+
}
|
|
413
|
+
get justifySelfLaptop() {
|
|
414
|
+
return this.getAttribute("justify-self--laptop");
|
|
415
|
+
}
|
|
416
|
+
set justifySelfLaptop(t) {
|
|
417
|
+
this.setAttribute("justify-self--laptop", t);
|
|
418
|
+
}
|
|
419
|
+
get justifySelfDesktop() {
|
|
420
|
+
return this.getAttribute("justify-self--desktop");
|
|
421
|
+
}
|
|
422
|
+
set justifySelfDesktop(t) {
|
|
423
|
+
this.setAttribute("justify-self--desktop", t);
|
|
424
|
+
}
|
|
425
|
+
get hiddenMobile() {
|
|
426
|
+
return this.getAttribute("hidden--mobile");
|
|
427
|
+
}
|
|
428
|
+
set hiddenMobile(t) {
|
|
429
|
+
this.setAttribute("hidden--mobile", t);
|
|
430
|
+
}
|
|
431
|
+
get hiddenTablet() {
|
|
432
|
+
return this.getAttribute("hidden--tablet");
|
|
433
|
+
}
|
|
434
|
+
set hiddenTablet(t) {
|
|
435
|
+
this.setAttribute("hidden--tablet", t);
|
|
436
|
+
}
|
|
437
|
+
get hiddenLaptop() {
|
|
438
|
+
return this.getAttribute("hidden--laptop");
|
|
439
|
+
}
|
|
440
|
+
set hiddenLaptop(t) {
|
|
441
|
+
this.setAttribute("hidden--laptop", t);
|
|
442
|
+
}
|
|
443
|
+
get hiddenDesktop() {
|
|
444
|
+
return this.getAttribute("hidden--desktop");
|
|
445
|
+
}
|
|
446
|
+
set hiddenDesktop(t) {
|
|
447
|
+
this.setAttribute("hidden--desktop", t);
|
|
448
|
+
}
|
|
449
|
+
get colSpan() {
|
|
450
|
+
return this.getAttribute("col-span");
|
|
451
|
+
}
|
|
452
|
+
set colSpan(t) {
|
|
453
|
+
this.setAttribute("col-span", t);
|
|
454
|
+
}
|
|
455
|
+
get colSpanMobile() {
|
|
456
|
+
return this.getAttribute("col-span--mobile");
|
|
457
|
+
}
|
|
458
|
+
set colSpanMobile(t) {
|
|
459
|
+
this.setAttribute("col-span--mobile", t);
|
|
460
|
+
}
|
|
461
|
+
get colSpanTablet() {
|
|
462
|
+
return this.getAttribute("col-span--tablet");
|
|
463
|
+
}
|
|
464
|
+
set colSpanTablet(t) {
|
|
465
|
+
this.setAttribute("col-span--tablet", t);
|
|
466
|
+
}
|
|
467
|
+
get colSpanLaptop() {
|
|
468
|
+
return this.getAttribute("col-span--laptop");
|
|
469
|
+
}
|
|
470
|
+
set colSpanLaptop(t) {
|
|
471
|
+
this.setAttribute("col-span--laptop", t);
|
|
472
|
+
}
|
|
473
|
+
get colSpanDesktop() {
|
|
474
|
+
return this.getAttribute("col-span--desktop");
|
|
475
|
+
}
|
|
476
|
+
set colSpanDesktop(t) {
|
|
477
|
+
this.setAttribute("col-span--desktop", t);
|
|
478
|
+
}
|
|
479
|
+
get order() {
|
|
480
|
+
return this.getAttribute("order");
|
|
481
|
+
}
|
|
482
|
+
set order(t) {
|
|
483
|
+
this.setAttribute("order", t);
|
|
484
|
+
}
|
|
485
|
+
get orderMobile() {
|
|
486
|
+
return this.getAttribute("order--mobile");
|
|
487
|
+
}
|
|
488
|
+
set orderMobile(t) {
|
|
489
|
+
this.setAttribute("order--mobile", t);
|
|
490
|
+
}
|
|
491
|
+
get orderTablet() {
|
|
492
|
+
return this.getAttribute("order--tablet");
|
|
493
|
+
}
|
|
494
|
+
set orderTablet(t) {
|
|
495
|
+
this.setAttribute("order--tablet", t);
|
|
496
|
+
}
|
|
497
|
+
get orderLaptop() {
|
|
498
|
+
return this.getAttribute("order--laptop");
|
|
499
|
+
}
|
|
500
|
+
set orderLaptop(t) {
|
|
501
|
+
this.setAttribute("order--laptop", t);
|
|
502
|
+
}
|
|
503
|
+
get orderDesktop() {
|
|
504
|
+
return this.getAttribute("order--desktop");
|
|
505
|
+
}
|
|
506
|
+
set orderDesktop(t) {
|
|
507
|
+
this.setAttribute("order--desktop", t);
|
|
508
|
+
}
|
|
647
509
|
}
|
|
648
|
-
|
|
649
|
-
|
|
510
|
+
const A = class A extends y {
|
|
511
|
+
// nativeName: string;
|
|
512
|
+
static get observedAttributes() {
|
|
513
|
+
return [
|
|
514
|
+
...super.observedAttributes,
|
|
515
|
+
...D(this.nativeName)
|
|
516
|
+
];
|
|
517
|
+
}
|
|
518
|
+
attributeChangedCallback(t, s, e) {
|
|
519
|
+
super.attributeChangedCallback(t, s, e), e === null ? this.$el.toggleAttribute(t) : this.$el.setAttribute(t, e);
|
|
520
|
+
}
|
|
521
|
+
get ctor() {
|
|
522
|
+
return Object.getPrototypeOf(this).constructor;
|
|
523
|
+
}
|
|
524
|
+
constructor(...t) {
|
|
525
|
+
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = N(
|
|
526
|
+
this.ctor.nativeName
|
|
527
|
+
)), this.enhanceWithNativeProperties();
|
|
528
|
+
}
|
|
529
|
+
enhanceWithNativeProperties() {
|
|
530
|
+
var t;
|
|
531
|
+
for (const s of this.ctor.supportedPropertyNames)
|
|
532
|
+
if (!(s === "constructor" || (((t = this.ctor) == null ? void 0 : t.accessorExclusions) ?? []).includes(s)))
|
|
533
|
+
try {
|
|
534
|
+
Object.defineProperty(this, s, {
|
|
535
|
+
get() {
|
|
536
|
+
return this.$el[s];
|
|
537
|
+
},
|
|
538
|
+
set(e) {
|
|
539
|
+
this.$el[s] !== e && (this.$el[s] = e);
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
} catch (e) {
|
|
543
|
+
console.warn(`Could not create property ${s} for`, this.$el, e);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
get $el() {
|
|
547
|
+
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
548
|
+
}
|
|
549
|
+
_updateAttribute(t, s) {
|
|
550
|
+
s ? this.setAttribute(t, s) : this.removeAttribute(t);
|
|
551
|
+
}
|
|
552
|
+
_updateBooleanAttribute(t, s) {
|
|
553
|
+
s ? this.setAttribute(t, "") : this.removeAttribute(t);
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
A.accessorExclusions = [];
|
|
557
|
+
let v = A;
|
|
558
|
+
class V extends v {
|
|
559
|
+
connectedCallback() {
|
|
560
|
+
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
561
|
+
}
|
|
650
562
|
}
|
|
651
|
-
|
|
652
|
-
|
|
563
|
+
const W = ["", "default", "none", "l"], _ = [
|
|
564
|
+
"",
|
|
565
|
+
"default",
|
|
566
|
+
"auto",
|
|
567
|
+
"flex-start",
|
|
568
|
+
"start",
|
|
569
|
+
"flex-end",
|
|
570
|
+
"end",
|
|
571
|
+
"center",
|
|
572
|
+
"baseline",
|
|
573
|
+
"stretch"
|
|
574
|
+
], I = [
|
|
575
|
+
"",
|
|
576
|
+
"default",
|
|
577
|
+
"start",
|
|
578
|
+
"end",
|
|
579
|
+
"center",
|
|
580
|
+
"stretch"
|
|
581
|
+
], P = [
|
|
582
|
+
"",
|
|
583
|
+
"default",
|
|
584
|
+
"start",
|
|
585
|
+
"end",
|
|
586
|
+
"center",
|
|
587
|
+
"stretch"
|
|
588
|
+
], G = [
|
|
589
|
+
"",
|
|
590
|
+
"1",
|
|
591
|
+
"2",
|
|
592
|
+
"3",
|
|
593
|
+
"4",
|
|
594
|
+
"5",
|
|
595
|
+
"6",
|
|
596
|
+
"7",
|
|
597
|
+
"8",
|
|
598
|
+
"9",
|
|
599
|
+
"10",
|
|
600
|
+
"11",
|
|
601
|
+
"12"
|
|
602
|
+
], q = [
|
|
603
|
+
"",
|
|
604
|
+
"-1",
|
|
605
|
+
"0",
|
|
606
|
+
"1",
|
|
607
|
+
"2",
|
|
608
|
+
"3",
|
|
609
|
+
"4",
|
|
610
|
+
"5",
|
|
611
|
+
"6",
|
|
612
|
+
"7",
|
|
613
|
+
"8",
|
|
614
|
+
"9",
|
|
615
|
+
"10",
|
|
616
|
+
"11",
|
|
617
|
+
"12"
|
|
618
|
+
], H = [
|
|
619
|
+
"",
|
|
620
|
+
"default",
|
|
621
|
+
"auto",
|
|
622
|
+
"start",
|
|
623
|
+
"end",
|
|
624
|
+
"center",
|
|
625
|
+
"stretch"
|
|
626
|
+
], X = [
|
|
627
|
+
"",
|
|
628
|
+
"default",
|
|
629
|
+
"inherit",
|
|
630
|
+
"body-l",
|
|
631
|
+
"body-m",
|
|
632
|
+
"body-s",
|
|
633
|
+
"body-xs",
|
|
634
|
+
"heading-5xl",
|
|
635
|
+
"heading-4xl",
|
|
636
|
+
"heading-3xl",
|
|
637
|
+
"heading-2xl",
|
|
638
|
+
"heading-xl",
|
|
639
|
+
"heading-l",
|
|
640
|
+
"heading-m",
|
|
641
|
+
"heading-s"
|
|
642
|
+
], F = [
|
|
643
|
+
"",
|
|
644
|
+
"default",
|
|
645
|
+
"inherit",
|
|
646
|
+
"brand",
|
|
647
|
+
"neutral",
|
|
648
|
+
"dimmed",
|
|
649
|
+
"purpose-success",
|
|
650
|
+
"purpose-warning",
|
|
651
|
+
"purpose-error",
|
|
652
|
+
"purpose-unlimited",
|
|
653
|
+
"purpose-promo",
|
|
654
|
+
"state-hover",
|
|
655
|
+
"state-active",
|
|
656
|
+
"state-disabled"
|
|
657
|
+
], J = [
|
|
658
|
+
"",
|
|
659
|
+
"default",
|
|
660
|
+
"inherit",
|
|
661
|
+
"body",
|
|
662
|
+
"title",
|
|
663
|
+
"title-large",
|
|
664
|
+
"subtitle"
|
|
665
|
+
], B = ["Xs", "S", "M", "L", "Xl"], K = [
|
|
666
|
+
"",
|
|
667
|
+
"default",
|
|
668
|
+
...B.map((i) => i.toLowerCase())
|
|
669
|
+
], Q = ["", "default", "left", "center", "right"], Y = [
|
|
670
|
+
"",
|
|
671
|
+
"none",
|
|
672
|
+
"3xs",
|
|
673
|
+
"2xs",
|
|
674
|
+
"xs",
|
|
675
|
+
"s",
|
|
676
|
+
"m",
|
|
677
|
+
"l",
|
|
678
|
+
"xl"
|
|
679
|
+
], Z = ["", "none", "s", "m", "l"], tt = ["", "none", "main", "pill"], et = [
|
|
680
|
+
"none",
|
|
681
|
+
"main",
|
|
682
|
+
"brand",
|
|
683
|
+
"state-hover",
|
|
684
|
+
"state-active",
|
|
685
|
+
"neutral",
|
|
686
|
+
"purpose-success",
|
|
687
|
+
"purpose-warning",
|
|
688
|
+
"purpose-error",
|
|
689
|
+
"purpose-unlimited"
|
|
690
|
+
], st = [
|
|
691
|
+
"",
|
|
692
|
+
"all",
|
|
693
|
+
"top",
|
|
694
|
+
"right",
|
|
695
|
+
"bottom",
|
|
696
|
+
"left",
|
|
697
|
+
"block",
|
|
698
|
+
"inline"
|
|
699
|
+
], it = [
|
|
700
|
+
"",
|
|
701
|
+
"none",
|
|
702
|
+
"surface-light",
|
|
703
|
+
"surface-default",
|
|
704
|
+
"surface-strong",
|
|
705
|
+
"surface-stronger",
|
|
706
|
+
"surface-dark",
|
|
707
|
+
"surface-brand",
|
|
708
|
+
"surface-brand-light",
|
|
709
|
+
"container-primary",
|
|
710
|
+
"container-secondary",
|
|
711
|
+
"container-light",
|
|
712
|
+
"container-default",
|
|
713
|
+
"container-strong",
|
|
714
|
+
"state-hover",
|
|
715
|
+
"state-hover-bordered",
|
|
716
|
+
"state-active",
|
|
717
|
+
"state-disabled",
|
|
718
|
+
"purpose-success",
|
|
719
|
+
"purpose-warning",
|
|
720
|
+
"purpose-error",
|
|
721
|
+
"purpose-unlimited",
|
|
722
|
+
"purpose-promo",
|
|
723
|
+
"purpose-info",
|
|
724
|
+
"purpose-eco",
|
|
725
|
+
"purpose-notification",
|
|
726
|
+
"footer-sitemap"
|
|
727
|
+
], ot = ["", "cover", "contain", "default"], rt = ["", "none", "s", "m", "l", "xl"], at = [
|
|
728
|
+
"",
|
|
729
|
+
"default",
|
|
730
|
+
"title-4xl",
|
|
731
|
+
"title-3xl",
|
|
732
|
+
"title-2xl",
|
|
733
|
+
"title-xl",
|
|
734
|
+
"title-l",
|
|
735
|
+
"title-m",
|
|
736
|
+
"title-s",
|
|
737
|
+
"subtitle"
|
|
738
|
+
], lt = [
|
|
739
|
+
"",
|
|
740
|
+
"purple-top-red",
|
|
741
|
+
"purple-top-magenta",
|
|
742
|
+
"purple-top-orange",
|
|
743
|
+
"purple-top-blue",
|
|
744
|
+
"purple-top-turquoise",
|
|
745
|
+
"purple-top-green",
|
|
746
|
+
"purple-right-red",
|
|
747
|
+
"purple-right-magenta",
|
|
748
|
+
"purple-right-orange",
|
|
749
|
+
"purple-right-blue",
|
|
750
|
+
"purple-right-turquoise",
|
|
751
|
+
"purple-right-green",
|
|
752
|
+
"purple-top-right-red",
|
|
753
|
+
"purple-top-right-magenta",
|
|
754
|
+
"purple-top-right-orange",
|
|
755
|
+
"purple-top-right-blue",
|
|
756
|
+
"purple-top-right-turquoise",
|
|
757
|
+
"purple-top-right-green",
|
|
758
|
+
"purple-bottom-right-red",
|
|
759
|
+
"purple-bottom-right-magenta",
|
|
760
|
+
"purple-bottom-right-orange",
|
|
761
|
+
"purple-bottom-right-blue",
|
|
762
|
+
"purple-bottom-right-turquoise",
|
|
763
|
+
"purple-bottom-right-green",
|
|
764
|
+
"color-top-red",
|
|
765
|
+
"color-top-magenta",
|
|
766
|
+
"color-top-orange",
|
|
767
|
+
"color-top-blue",
|
|
768
|
+
"color-top-turquoise",
|
|
769
|
+
"color-top-green",
|
|
770
|
+
"color-right-red",
|
|
771
|
+
"color-right-magenta",
|
|
772
|
+
"color-right-orange",
|
|
773
|
+
"color-right-blue",
|
|
774
|
+
"color-right-turquoise",
|
|
775
|
+
"color-right-green",
|
|
776
|
+
"color-top-right-red",
|
|
777
|
+
"color-top-right-magenta",
|
|
778
|
+
"color-top-right-orange",
|
|
779
|
+
"color-top-right-blue",
|
|
780
|
+
"color-top-right-turquoise",
|
|
781
|
+
"color-top-right-green",
|
|
782
|
+
"color-bottom-right-red",
|
|
783
|
+
"color-bottom-right-magenta",
|
|
784
|
+
"color-bottom-right-orange",
|
|
785
|
+
"color-bottom-right-blue",
|
|
786
|
+
"color-bottom-right-turquoise",
|
|
787
|
+
"color-bottom-right-green"
|
|
788
|
+
], nt = [
|
|
789
|
+
"none",
|
|
790
|
+
"2xs",
|
|
791
|
+
"xs",
|
|
792
|
+
"s",
|
|
793
|
+
"default",
|
|
794
|
+
"l",
|
|
795
|
+
"heading-to-subtitle",
|
|
796
|
+
"heading-to-content",
|
|
797
|
+
"page-layout-between-sections"
|
|
798
|
+
], pt = [
|
|
799
|
+
"",
|
|
800
|
+
"all",
|
|
801
|
+
"top",
|
|
802
|
+
"right",
|
|
803
|
+
"bottom",
|
|
804
|
+
"left"
|
|
805
|
+
], ht = [
|
|
806
|
+
"",
|
|
807
|
+
"default",
|
|
808
|
+
"xs",
|
|
809
|
+
"s",
|
|
810
|
+
"m",
|
|
811
|
+
"l",
|
|
812
|
+
"xl"
|
|
813
|
+
];
|
|
814
|
+
function ut(i) {
|
|
815
|
+
const t = document.createElement("style");
|
|
816
|
+
t.innerHTML = i, document.head.appendChild(t);
|
|
653
817
|
}
|
|
654
|
-
function
|
|
655
|
-
|
|
818
|
+
function bt(i) {
|
|
819
|
+
return typeof i == "string" && (i === "false" || i === "0" || i === "null") || typeof i == "boolean" && !i;
|
|
656
820
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
if (U.forEach((n) => {
|
|
660
|
-
e.getAttribute(n) && (t.setAttribute(n, e.getAttribute(n)), e.removeAttribute(n));
|
|
661
|
-
}), n && !e.getAttribute("aria-labelledby")) {
|
|
662
|
-
let n = `px-${t.localName?.toLowerCase() ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
663
|
-
t.setAttribute("id", n), e.setAttribute("aria-labelledby", n);
|
|
664
|
-
}
|
|
821
|
+
function dt() {
|
|
822
|
+
return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
|
|
665
823
|
}
|
|
666
|
-
function
|
|
667
|
-
|
|
668
|
-
e.removeAttribute(t);
|
|
669
|
-
return;
|
|
670
|
-
}
|
|
671
|
-
e.setAttribute(t, n.toString());
|
|
824
|
+
function ct(i, t) {
|
|
825
|
+
return i.includes(t);
|
|
672
826
|
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
827
|
+
const z = [
|
|
828
|
+
"aria-label",
|
|
829
|
+
"aria-labelledby",
|
|
830
|
+
"aria-describedby",
|
|
831
|
+
"aria-controls",
|
|
832
|
+
"aria-expanded",
|
|
833
|
+
"aria-haspopup",
|
|
834
|
+
"aria-pressed",
|
|
835
|
+
"aria-selected",
|
|
836
|
+
"aria-required",
|
|
837
|
+
"aria-disabled",
|
|
838
|
+
"aria-live",
|
|
839
|
+
"aria-atomic",
|
|
840
|
+
"aria-relevant",
|
|
841
|
+
"aria-orientation",
|
|
842
|
+
"aria-valuenow",
|
|
843
|
+
"aria-valuetext",
|
|
844
|
+
"aria-valuemin",
|
|
845
|
+
"aria-valuemax",
|
|
846
|
+
"aria-details",
|
|
847
|
+
"aria-modal",
|
|
848
|
+
"aria-autocomplete",
|
|
849
|
+
"aria-activedescendant",
|
|
850
|
+
"aria-colcount",
|
|
851
|
+
"aria-colindex",
|
|
852
|
+
"aria-colspan",
|
|
853
|
+
"aria-rowcount",
|
|
854
|
+
"aria-rowindex",
|
|
855
|
+
"aria-rowspan",
|
|
856
|
+
"aria-keyshortcuts",
|
|
857
|
+
"aria-placeholder",
|
|
858
|
+
"aria-invalid",
|
|
859
|
+
"aria-busy",
|
|
860
|
+
"aria-owns"
|
|
861
|
+
];
|
|
862
|
+
function gt(i, t, s = !1) {
|
|
863
|
+
var e;
|
|
864
|
+
if (z.forEach((o) => {
|
|
865
|
+
i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
|
|
866
|
+
}), s && !i.getAttribute("aria-labelledby")) {
|
|
867
|
+
const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
868
|
+
t.setAttribute("id", o), i.setAttribute("aria-labelledby", o);
|
|
869
|
+
}
|
|
679
870
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
${
|
|
686
|
-
${i ? `${i}:var(--${r}-${o}-desktop)` : ""}
|
|
871
|
+
function ft(i, t, s, e = "", o, l = i) {
|
|
872
|
+
const b = new CSSStyleSheet(), m = s.reduce(
|
|
873
|
+
(L, r) => L + `
|
|
874
|
+
${t(l, r)} {
|
|
875
|
+
${i}: var(--${e}-${r}-desktop);
|
|
876
|
+
${o ? `${o}:var(--${e}-${r}-desktop)` : ""}
|
|
687
877
|
}
|
|
688
878
|
/* Mobile only - max 767px */
|
|
689
879
|
@media only screen and (max-width: 47.938rem) {
|
|
690
|
-
${t(
|
|
691
|
-
${
|
|
692
|
-
${
|
|
880
|
+
${t(l, r)} {
|
|
881
|
+
${i}: var(--${e}-${r}-mobile);
|
|
882
|
+
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
693
883
|
}
|
|
694
884
|
}
|
|
695
|
-
${t(
|
|
885
|
+
${t(l, r, "mobile")} {
|
|
696
886
|
/* Mobile only - max 767px */
|
|
697
887
|
@media only screen and (max-width: 47.938rem) {
|
|
698
|
-
${
|
|
699
|
-
${
|
|
888
|
+
${i}: var(--${e}-${r}-mobile) !important;
|
|
889
|
+
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
700
890
|
}
|
|
701
891
|
}
|
|
702
|
-
${t(
|
|
892
|
+
${t(l, r, "tablet")} {
|
|
703
893
|
/* Tablet - min 768px max 1024px */
|
|
704
894
|
@media only screen and (min-width: 48rem) and (max-width: 64rem) {
|
|
705
|
-
${
|
|
706
|
-
${
|
|
895
|
+
${i}: var(--${e}-${r}-desktop) !important;
|
|
896
|
+
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
707
897
|
}
|
|
708
898
|
}
|
|
709
|
-
${t(
|
|
899
|
+
${t(l, r, "laptop")} {
|
|
710
900
|
/* Laptop - 1025px*/
|
|
711
901
|
@media only screen and (min-width: 64.0625rem) {
|
|
712
|
-
${
|
|
713
|
-
${
|
|
902
|
+
${i}: var(--${e}-${r}-desktop) !important;
|
|
903
|
+
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
714
904
|
}
|
|
715
905
|
}
|
|
716
|
-
${t(
|
|
906
|
+
${t(l, r, "desktop")} {
|
|
717
907
|
/* Desktop - 1025px*/
|
|
718
908
|
@media only screen and (min-width: 64.0625rem) {
|
|
719
|
-
${
|
|
720
|
-
${
|
|
909
|
+
${i}: var(--${e}-${r}-desktop) !important;
|
|
910
|
+
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
721
911
|
}
|
|
722
|
-
}`,
|
|
723
|
-
|
|
912
|
+
}`,
|
|
913
|
+
""
|
|
914
|
+
);
|
|
915
|
+
return b.replaceSync(m), b;
|
|
916
|
+
}
|
|
917
|
+
class mt {
|
|
918
|
+
constructor(t, s, e, o) {
|
|
919
|
+
this.component = t, this.attributeName = s, this.cssVariable = o, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e, Object.defineProperty(
|
|
920
|
+
this.component,
|
|
921
|
+
this.toCamelCase(this.attributeName),
|
|
922
|
+
{
|
|
923
|
+
get: () => this.component.getAttribute(this.attributeName),
|
|
924
|
+
set: (l) => {
|
|
925
|
+
this.component.setAttribute(this.attributeName, l);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
);
|
|
929
|
+
}
|
|
930
|
+
toCamelCase(t) {
|
|
931
|
+
return t.replace(/[-_]+(.)?/g, (s, e) => e ? e.toUpperCase() : "");
|
|
932
|
+
}
|
|
933
|
+
init(t) {
|
|
934
|
+
this.setCSSProperty(this.attributeName, t), this.setCSSProperties();
|
|
935
|
+
}
|
|
936
|
+
attributeChangedCallback(t, s, e) {
|
|
937
|
+
if (s !== e)
|
|
938
|
+
switch (!0) {
|
|
939
|
+
case t === this.attributeName:
|
|
940
|
+
case t === `${this.attributeName}--mobile`:
|
|
941
|
+
case t === `${this.attributeName}--tablet`:
|
|
942
|
+
case t === `${this.attributeName}--laptop`:
|
|
943
|
+
case t === `${this.attributeName}--desktop`:
|
|
944
|
+
this.setCSSProperty(t, e);
|
|
945
|
+
break;
|
|
946
|
+
default:
|
|
947
|
+
return;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
setCSSProperty(t, s, e = !0) {
|
|
951
|
+
const [, o = ""] = t.split("--");
|
|
952
|
+
this.component.style.setProperty(
|
|
953
|
+
`${this.cssVariable}${e ? "-all" : ""}${o ? `-${o}` : ""}`,
|
|
954
|
+
`${this._attributeValue(s, o)}`
|
|
955
|
+
);
|
|
956
|
+
}
|
|
957
|
+
setCSSProperties() {
|
|
958
|
+
const t = this.component.getAttribute(this.attributeName);
|
|
959
|
+
t && (this.setCSSProperty(this.attributeName, t), this.setCSSProperty(this.attributeNameMobile, t), this.setCSSProperty(this.attributeNameTablet, t), this.setCSSProperty(this.attributeNameLaptop, t), this.setCSSProperty(this.attributeNameDesktop, t));
|
|
960
|
+
const s = this.component.getAttribute(
|
|
961
|
+
this.attributeNameMobile
|
|
962
|
+
);
|
|
963
|
+
s && this.setCSSProperty(
|
|
964
|
+
this.attributeNameMobile,
|
|
965
|
+
s,
|
|
966
|
+
!1
|
|
967
|
+
);
|
|
968
|
+
const e = this.component.getAttribute(
|
|
969
|
+
this.attributeNameTablet
|
|
970
|
+
);
|
|
971
|
+
e && this.setCSSProperty(
|
|
972
|
+
this.attributeNameTablet,
|
|
973
|
+
e,
|
|
974
|
+
!1
|
|
975
|
+
);
|
|
976
|
+
const o = this.component.getAttribute(
|
|
977
|
+
this.attributeNameLaptop
|
|
978
|
+
);
|
|
979
|
+
o && this.setCSSProperty(
|
|
980
|
+
this.attributeNameLaptop,
|
|
981
|
+
o,
|
|
982
|
+
!1
|
|
983
|
+
);
|
|
984
|
+
const l = this.component.getAttribute(
|
|
985
|
+
this.attributeNameDesktop
|
|
986
|
+
);
|
|
987
|
+
l && this.setCSSProperty(
|
|
988
|
+
this.attributeNameDesktop,
|
|
989
|
+
l,
|
|
990
|
+
!1
|
|
991
|
+
);
|
|
992
|
+
}
|
|
993
|
+
set attributeValue(t) {
|
|
994
|
+
this._attributeValue = t, this.setCSSProperties();
|
|
995
|
+
}
|
|
724
996
|
}
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
set attributeValue(e) {
|
|
769
|
-
this._attributeValue = e, this.setCSSProperties();
|
|
770
|
-
}
|
|
997
|
+
export {
|
|
998
|
+
mt as AttributeBreakpointHandlerDelegate,
|
|
999
|
+
v as PxElement,
|
|
1000
|
+
V as VerticallyExtendedElement,
|
|
1001
|
+
y as WithExtraAttributes,
|
|
1002
|
+
U as WrappedInteractiveStateController,
|
|
1003
|
+
z as accessibilityAttributes,
|
|
1004
|
+
ut as addGlobalStylesheet,
|
|
1005
|
+
ht as assetContainerImgWidthValues,
|
|
1006
|
+
it as backgroundColorValues,
|
|
1007
|
+
ot as backgroundSizeValues,
|
|
1008
|
+
et as borderColorValues,
|
|
1009
|
+
tt as borderRadiusValues,
|
|
1010
|
+
st as borderSideValues,
|
|
1011
|
+
Z as borderValues,
|
|
1012
|
+
rt as boxShadowValues,
|
|
1013
|
+
ct as checkName,
|
|
1014
|
+
F as colorValues,
|
|
1015
|
+
I as cssGridAlignSelfValues,
|
|
1016
|
+
G as cssGridColSpanValues,
|
|
1017
|
+
P as cssGridJustifySelfValues,
|
|
1018
|
+
q as cssGridOrderValues,
|
|
1019
|
+
H as cssGridPlaceSelfValues,
|
|
1020
|
+
ft as cssTokenBreakpoints,
|
|
1021
|
+
_ as flexboxAlignSelfValues,
|
|
1022
|
+
X as fontsizeValues,
|
|
1023
|
+
J as fontweightValues,
|
|
1024
|
+
nt as gapValues,
|
|
1025
|
+
D as getSupportedAttributeNames,
|
|
1026
|
+
N as getSupportedPropertyNames,
|
|
1027
|
+
dt as getViewportFormat,
|
|
1028
|
+
lt as gradientValues,
|
|
1029
|
+
W as gridGapValues,
|
|
1030
|
+
at as headingValues,
|
|
1031
|
+
B as iconSizeValues,
|
|
1032
|
+
K as iconSizeValuesKC,
|
|
1033
|
+
w as isComponentDebug,
|
|
1034
|
+
bt as isFalsy,
|
|
1035
|
+
E as log,
|
|
1036
|
+
pt as noBorderRadiusValues,
|
|
1037
|
+
Y as paddingValues,
|
|
1038
|
+
Q as textalignValues,
|
|
1039
|
+
gt as transferAccessibilityAttributes
|
|
771
1040
|
};
|
|
772
|
-
//#endregion
|
|
773
|
-
export { J as AttributeBreakpointHandlerDelegate, d as PxElement, f as VerticallyExtendedElement, u as WithExtraAttributes, c as WrappedInteractiveStateController, U as accessibilityAttributes, z as addGlobalStylesheet, R as assetContainerImgWidthValues, j as backgroundColorValues, M as backgroundSizeValues, K as booleanPropertyToAttributeSetter, k as borderColorValues, O as borderRadiusValues, A as borderSideValues, D as borderValues, N as boxShadowValues, H as checkName, x as colorValues, h as cssGridAlignSelfValues, _ as cssGridColSpanValues, g as cssGridJustifySelfValues, v as cssGridOrderValues, y as cssGridPlaceSelfValues, q as cssTokenBreakpoints, m as flexboxAlignSelfValues, b as fontsizeValues, S as fontweightValues, I as gapValues, n as getSupportedAttributeNames, t as getSupportedPropertyNames, V as getViewportFormat, F as gradientValues, p as gridGapValues, P as headingValues, C as iconSizeValues, w as iconSizeValuesKC, o as isComponentDebug, B as isFalsy, s as log, L as noBorderRadiusValues, E as paddingValues, G as propertyToAttributeSetter, T as textalignValues, W as transferAccessibilityAttributes };
|