@proximus/lavender-input 1.0.0-alpha.13 → 1.0.0-alpha.15
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/index.js +364 -84
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
const e = document.createElement(
|
|
1
|
+
const w = "::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--mobile-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--mobile-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--mobile-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--mobile-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--mobile-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--mobile-value)}::slotted(*[hidden]),::slotted(*[hidden--mobile]){display:none}::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (min-width: 768px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--tablet-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--tablet-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--tablet-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--tablet-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--tablet-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--tablet-value)}::slotted(*[hidden]),::slotted(*[hidden--tablet]){display:none}}@media screen and (min-width: 1025px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--laptop-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--laptop-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--laptop-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--laptop-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--laptop-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--laptop-value)}::slotted(*[hidden]),::slotted(*[hidden--laptop]){display:none}}@media screen and (min-width: 1441px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--desktop-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--desktop-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--desktop-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--desktop-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--desktop-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--desktop-value)}::slotted(*[hidden]),::slotted(*[hidden--desktop]){display:none}}";
|
|
2
|
+
function k(n) {
|
|
3
|
+
const e = document.createElement(n), t = Object.getPrototypeOf(e);
|
|
4
4
|
return Object.getOwnPropertyNames(t);
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
class
|
|
6
|
+
const v = new CSSStyleSheet();
|
|
7
|
+
v.replaceSync(w);
|
|
8
|
+
class r extends HTMLElement {
|
|
9
9
|
static get observedAttributes() {
|
|
10
10
|
return [
|
|
11
11
|
"grow",
|
|
12
|
+
"grow--mobile",
|
|
12
13
|
"grow--tablet",
|
|
13
14
|
"grow--laptop",
|
|
14
15
|
"grow--desktop",
|
|
@@ -23,61 +24,161 @@ class l extends HTMLElement {
|
|
|
23
24
|
"basis--laptop",
|
|
24
25
|
"basis--desktop",
|
|
25
26
|
"align-self",
|
|
27
|
+
"align-self--mobile",
|
|
28
|
+
"align-self--tablet",
|
|
29
|
+
"align-self--laptop",
|
|
30
|
+
"align-self--desktop",
|
|
31
|
+
"justify-self",
|
|
32
|
+
"justify-self--mobile",
|
|
33
|
+
"justify-self--tablet",
|
|
34
|
+
"justify-self--laptop",
|
|
35
|
+
"justify-self--desktop",
|
|
36
|
+
"hidden",
|
|
26
37
|
"hidden--mobile",
|
|
27
38
|
"hidden--tablet",
|
|
28
39
|
"hidden--laptop",
|
|
29
|
-
"hidden--desktop"
|
|
40
|
+
"hidden--desktop",
|
|
41
|
+
"shown--sr",
|
|
42
|
+
"col-span",
|
|
43
|
+
"col-span--mobile",
|
|
44
|
+
"col-span--tablet",
|
|
45
|
+
"col-span--laptop",
|
|
46
|
+
"col-span--desktop",
|
|
47
|
+
"order",
|
|
48
|
+
"order--mobile",
|
|
49
|
+
"order--tablet",
|
|
50
|
+
"order--laptop",
|
|
51
|
+
"order--desktop"
|
|
30
52
|
];
|
|
31
53
|
}
|
|
32
54
|
constructor(...e) {
|
|
33
55
|
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
34
|
-
|
|
56
|
+
v,
|
|
35
57
|
...e
|
|
36
58
|
];
|
|
37
59
|
}
|
|
38
|
-
attributeChangedCallback(e, t,
|
|
39
|
-
if (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
attributeChangedCallback(e, t, s) {
|
|
61
|
+
if (r.observedAttributes.indexOf(e) !== -1)
|
|
62
|
+
switch (e) {
|
|
63
|
+
case "grow":
|
|
64
|
+
case "grow--mobile":
|
|
65
|
+
case "grow--tablet":
|
|
66
|
+
case "grow--laptop":
|
|
67
|
+
case "grow--desktop":
|
|
68
|
+
case "shrink":
|
|
69
|
+
case "shrink--mobile":
|
|
70
|
+
case "shrink--tablet":
|
|
71
|
+
case "shrink--laptop":
|
|
72
|
+
case "shrink--desktop":
|
|
73
|
+
case "basis":
|
|
74
|
+
case "basis--mobile":
|
|
75
|
+
case "basis--tablet":
|
|
76
|
+
case "basis--laptop":
|
|
77
|
+
case "basis--desktop":
|
|
78
|
+
this.updateProperties(e, t, s, null);
|
|
79
|
+
break;
|
|
80
|
+
case "align-self":
|
|
81
|
+
case "align-self--mobile":
|
|
82
|
+
case "align-self--tablet":
|
|
83
|
+
case "align-self--laptop":
|
|
84
|
+
case "align-self--desktop":
|
|
85
|
+
this.updateProperties(
|
|
86
|
+
e,
|
|
87
|
+
t,
|
|
88
|
+
s,
|
|
89
|
+
this.isGrid ? S : A
|
|
90
|
+
);
|
|
91
|
+
break;
|
|
92
|
+
case "justify-self":
|
|
93
|
+
case "justify-self--mobile":
|
|
94
|
+
case "justify-self--tablet":
|
|
95
|
+
case "justify-self--laptop":
|
|
96
|
+
case "justify-self--desktop":
|
|
97
|
+
this.updateProperties(
|
|
98
|
+
e,
|
|
99
|
+
t,
|
|
100
|
+
s,
|
|
101
|
+
D
|
|
102
|
+
);
|
|
103
|
+
break;
|
|
104
|
+
case "col-span":
|
|
105
|
+
case "col-span--mobile":
|
|
106
|
+
case "col-span--tablet":
|
|
107
|
+
case "col-span--laptop":
|
|
108
|
+
case "col-span--desktop":
|
|
109
|
+
this.updateProperties(e, t, s, $);
|
|
110
|
+
break;
|
|
111
|
+
case "order":
|
|
112
|
+
case "order--mobile":
|
|
113
|
+
case "order--tablet":
|
|
114
|
+
case "order--laptop":
|
|
115
|
+
case "order--desktop":
|
|
116
|
+
this.updateProperties(e, t, s, j);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
updateProperties(e, t, s, y) {
|
|
121
|
+
if (y && !this.checkName(y, s)) {
|
|
122
|
+
console.error(`Bad ${e} value for`, this.$el);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const m = e.indexOf("--") > -1, i = m ? e.split("--")[0] : e, o = [];
|
|
126
|
+
if (!m)
|
|
127
|
+
this.getAttribute(i + "--mobile") || o.push("mobile"), this.getAttribute(i + "--tablet") || o.push("tablet"), this.getAttribute(i + "--laptop") || o.push("laptop"), this.getAttribute(i + "--desktop") || o.push("desktop"), o.forEach((a) => {
|
|
128
|
+
r.prototype.updateStyle.call(
|
|
129
|
+
this,
|
|
130
|
+
i,
|
|
131
|
+
a,
|
|
132
|
+
t
|
|
133
|
+
), r.prototype.updateStyle.call(
|
|
134
|
+
this,
|
|
135
|
+
i,
|
|
136
|
+
a,
|
|
137
|
+
s
|
|
138
|
+
);
|
|
139
|
+
});
|
|
140
|
+
else {
|
|
141
|
+
const a = e.split("--")[1];
|
|
142
|
+
r.prototype.updateStyle.call(
|
|
143
|
+
this,
|
|
144
|
+
i,
|
|
145
|
+
a,
|
|
146
|
+
t
|
|
147
|
+
), r.prototype.updateStyle.call(
|
|
148
|
+
this,
|
|
149
|
+
i,
|
|
150
|
+
a,
|
|
151
|
+
s
|
|
152
|
+
);
|
|
153
|
+
}
|
|
63
154
|
}
|
|
64
|
-
|
|
65
|
-
|
|
155
|
+
updateStyle(e, t, s) {
|
|
156
|
+
s !== null && s !== "" && s !== "default" && this.style.setProperty(
|
|
157
|
+
`--${e}--${t}-value`,
|
|
158
|
+
s
|
|
159
|
+
);
|
|
66
160
|
}
|
|
67
|
-
|
|
68
|
-
|
|
161
|
+
checkName(e, t) {
|
|
162
|
+
return e.includes(t);
|
|
69
163
|
}
|
|
70
|
-
get
|
|
71
|
-
return this
|
|
164
|
+
get $el() {
|
|
165
|
+
return this;
|
|
72
166
|
}
|
|
73
|
-
|
|
74
|
-
|
|
167
|
+
get $parentElementName() {
|
|
168
|
+
var e;
|
|
169
|
+
return (e = this.parentElement) == null ? void 0 : e.tagName.toLowerCase();
|
|
75
170
|
}
|
|
76
|
-
get
|
|
77
|
-
return this
|
|
171
|
+
get isGrid() {
|
|
172
|
+
return this.$parentElementName === "px-grid";
|
|
78
173
|
}
|
|
79
|
-
|
|
80
|
-
this
|
|
174
|
+
get isStack() {
|
|
175
|
+
return this.$parentElementName === "px-stack";
|
|
176
|
+
}
|
|
177
|
+
get grow() {
|
|
178
|
+
return this.getAttribute("grow");
|
|
179
|
+
}
|
|
180
|
+
set grow(e) {
|
|
181
|
+
this.setAttribute("grow", e);
|
|
81
182
|
}
|
|
82
183
|
get growMobile() {
|
|
83
184
|
return this.getAttribute("grow--mobile");
|
|
@@ -103,6 +204,12 @@ class l extends HTMLElement {
|
|
|
103
204
|
set growDesktop(e) {
|
|
104
205
|
this.setAttribute("grow--desktop", e);
|
|
105
206
|
}
|
|
207
|
+
get shrink() {
|
|
208
|
+
return this.getAttribute("shrink");
|
|
209
|
+
}
|
|
210
|
+
set shrink(e) {
|
|
211
|
+
this.setAttribute("shrink", e);
|
|
212
|
+
}
|
|
106
213
|
get shrinkMobile() {
|
|
107
214
|
return this.getAttribute("shrink--mobile");
|
|
108
215
|
}
|
|
@@ -127,6 +234,12 @@ class l extends HTMLElement {
|
|
|
127
234
|
set shrinkDesktop(e) {
|
|
128
235
|
this.setAttribute("shrink--desktop", e);
|
|
129
236
|
}
|
|
237
|
+
get basis() {
|
|
238
|
+
return this.getAttribute("basis");
|
|
239
|
+
}
|
|
240
|
+
set basis(e) {
|
|
241
|
+
this.setAttribute("basis", e);
|
|
242
|
+
}
|
|
130
243
|
get basisMobile() {
|
|
131
244
|
return this.getAttribute("basis--mobile");
|
|
132
245
|
}
|
|
@@ -157,8 +270,59 @@ class l extends HTMLElement {
|
|
|
157
270
|
set alignSelf(e) {
|
|
158
271
|
this.setAttribute("align-self", e);
|
|
159
272
|
}
|
|
160
|
-
get
|
|
161
|
-
return this;
|
|
273
|
+
get alignSelfMobile() {
|
|
274
|
+
return this.getAttribute("align-self--mobile");
|
|
275
|
+
}
|
|
276
|
+
set alignSelfMobile(e) {
|
|
277
|
+
this.setAttribute("align-self--mobile", e);
|
|
278
|
+
}
|
|
279
|
+
get alignSelfTablet() {
|
|
280
|
+
return this.getAttribute("align-self--tablet");
|
|
281
|
+
}
|
|
282
|
+
set alignSelfTablet(e) {
|
|
283
|
+
this.setAttribute("align-self--tablet", e);
|
|
284
|
+
}
|
|
285
|
+
get alignSelfLaptop() {
|
|
286
|
+
return this.getAttribute("align-self--laptop");
|
|
287
|
+
}
|
|
288
|
+
set alignSelfLaptop(e) {
|
|
289
|
+
this.setAttribute("align-self--laptop", e);
|
|
290
|
+
}
|
|
291
|
+
get alignSelfDesktop() {
|
|
292
|
+
return this.getAttribute("align-self--desktop");
|
|
293
|
+
}
|
|
294
|
+
set alignSelfDesktop(e) {
|
|
295
|
+
this.setAttribute("align-self--desktop", e);
|
|
296
|
+
}
|
|
297
|
+
get justifySelf() {
|
|
298
|
+
return this.getAttribute("justify-self");
|
|
299
|
+
}
|
|
300
|
+
set justifySelf(e) {
|
|
301
|
+
this.setAttribute("justify-self", e);
|
|
302
|
+
}
|
|
303
|
+
get justifySelfMobile() {
|
|
304
|
+
return this.getAttribute("justify-self--mobile");
|
|
305
|
+
}
|
|
306
|
+
set justifySelfMobile(e) {
|
|
307
|
+
this.setAttribute("justify-self--mobile", e);
|
|
308
|
+
}
|
|
309
|
+
get justifySelfTablet() {
|
|
310
|
+
return this.getAttribute("justify-self--tablet");
|
|
311
|
+
}
|
|
312
|
+
set justifySelfTablet(e) {
|
|
313
|
+
this.setAttribute("justify-self--tablet", e);
|
|
314
|
+
}
|
|
315
|
+
get justifySelfLaptop() {
|
|
316
|
+
return this.getAttribute("justify-self--laptop");
|
|
317
|
+
}
|
|
318
|
+
set justifySelfLaptop(e) {
|
|
319
|
+
this.setAttribute("justify-self--laptop", e);
|
|
320
|
+
}
|
|
321
|
+
get justifySelfDesktop() {
|
|
322
|
+
return this.getAttribute("justify-self--desktop");
|
|
323
|
+
}
|
|
324
|
+
set justifySelfDesktop(e) {
|
|
325
|
+
this.setAttribute("justify-self--desktop", e);
|
|
162
326
|
}
|
|
163
327
|
get hiddenMobile() {
|
|
164
328
|
return this.getAttribute("hidden--mobile");
|
|
@@ -184,41 +348,157 @@ class l extends HTMLElement {
|
|
|
184
348
|
set hiddenDesktop(e) {
|
|
185
349
|
this.setAttribute("hidden--desktop", e);
|
|
186
350
|
}
|
|
351
|
+
get colSpan() {
|
|
352
|
+
return this.getAttribute("col-span");
|
|
353
|
+
}
|
|
354
|
+
set colSpan(e) {
|
|
355
|
+
this.setAttribute("col-span", e);
|
|
356
|
+
}
|
|
357
|
+
get colSpanMobile() {
|
|
358
|
+
return this.getAttribute("col-span--mobile");
|
|
359
|
+
}
|
|
360
|
+
set colSpanMobile(e) {
|
|
361
|
+
this.setAttribute("col-span--mobile", e);
|
|
362
|
+
}
|
|
363
|
+
get colSpanTablet() {
|
|
364
|
+
return this.getAttribute("col-span--tablet");
|
|
365
|
+
}
|
|
366
|
+
set colSpanTablet(e) {
|
|
367
|
+
this.setAttribute("col-span--tablet", e);
|
|
368
|
+
}
|
|
369
|
+
get colSpanLaptop() {
|
|
370
|
+
return this.getAttribute("col-span--laptop");
|
|
371
|
+
}
|
|
372
|
+
set colSpanLaptop(e) {
|
|
373
|
+
this.setAttribute("col-span--laptop", e);
|
|
374
|
+
}
|
|
375
|
+
get colSpanDesktop() {
|
|
376
|
+
return this.getAttribute("col-span--desktop");
|
|
377
|
+
}
|
|
378
|
+
set colSpanDesktop(e) {
|
|
379
|
+
this.setAttribute("col-span--desktop", e);
|
|
380
|
+
}
|
|
381
|
+
get order() {
|
|
382
|
+
return this.getAttribute("order");
|
|
383
|
+
}
|
|
384
|
+
set order(e) {
|
|
385
|
+
this.setAttribute("order", e);
|
|
386
|
+
}
|
|
387
|
+
get orderMobile() {
|
|
388
|
+
return this.getAttribute("order--mobile");
|
|
389
|
+
}
|
|
390
|
+
set orderMobile(e) {
|
|
391
|
+
this.setAttribute("order--mobile", e);
|
|
392
|
+
}
|
|
393
|
+
get orderTablet() {
|
|
394
|
+
return this.getAttribute("order--tablet");
|
|
395
|
+
}
|
|
396
|
+
set orderTablet(e) {
|
|
397
|
+
this.setAttribute("order--tablet", e);
|
|
398
|
+
}
|
|
399
|
+
get orderLaptop() {
|
|
400
|
+
return this.getAttribute("order--laptop");
|
|
401
|
+
}
|
|
402
|
+
set orderLaptop(e) {
|
|
403
|
+
this.setAttribute("order--laptop", e);
|
|
404
|
+
}
|
|
405
|
+
get orderDesktop() {
|
|
406
|
+
return this.getAttribute("order--desktop");
|
|
407
|
+
}
|
|
408
|
+
set orderDesktop(e) {
|
|
409
|
+
this.setAttribute("order--desktop", e);
|
|
410
|
+
}
|
|
187
411
|
}
|
|
188
|
-
class
|
|
412
|
+
class C extends r {
|
|
189
413
|
static get observedAttributes() {
|
|
190
414
|
return [
|
|
191
415
|
...super.observedAttributes,
|
|
192
|
-
...
|
|
416
|
+
...k(this.nativeName)
|
|
193
417
|
];
|
|
194
418
|
}
|
|
195
|
-
attributeChangedCallback(e, t,
|
|
196
|
-
super.attributeChangedCallback(e, t,
|
|
419
|
+
attributeChangedCallback(e, t, s) {
|
|
420
|
+
super.attributeChangedCallback(e, t, s), s === null ? this.$el.toggleAttribute(e) : this.$el.setAttribute(e, s);
|
|
197
421
|
}
|
|
198
422
|
constructor(...e) {
|
|
199
423
|
super(...e), this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
|
|
200
424
|
}
|
|
201
425
|
connectedCallback() {
|
|
202
|
-
|
|
203
|
-
|
|
426
|
+
var e;
|
|
427
|
+
for (const t of k(this.nativeName))
|
|
428
|
+
t !== "constructor" && Object.defineProperty(this, t, {
|
|
204
429
|
get() {
|
|
205
|
-
return this.$el[
|
|
430
|
+
return this.$el[t];
|
|
206
431
|
},
|
|
207
|
-
set(
|
|
208
|
-
this.$el[
|
|
432
|
+
set(s) {
|
|
433
|
+
this.$el[t] !== s && (this.$el[t] = s);
|
|
209
434
|
}
|
|
210
435
|
});
|
|
436
|
+
if (this.isGrid || this.isStack) {
|
|
437
|
+
const t = (e = this.parentElement) == null ? void 0 : e.getAttribute("direction");
|
|
438
|
+
this.$el.style.display = "block", (this.isGrid || this.isStack && t === "row") && (this.$el.style.height = "100%");
|
|
439
|
+
}
|
|
211
440
|
}
|
|
212
441
|
get $el() {
|
|
213
442
|
return this.shadowRoot.querySelector(this.nativeName);
|
|
214
443
|
}
|
|
215
444
|
}
|
|
216
|
-
const x = `input:not([type=file]),textarea,select,#input-file-container{margin:0;outline:0;vertical-align:baseline;align-items:center;padding:0 1rem;gap:20px;width:345px;height:44px;border:2px solid rgba(0,0,0,.44);border-radius:5px;color:#0a0a0a;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-desktop);font-weight:400;line-height:var(--px-line-height-m);text-align:left;box-sizing:border-box;--icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23B30000;%7D%3C/style%3E%3C/defs%3E%3Cg id='forms-error'%3E%3Cpath id='Error' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0ZM7.42,4.65a1.08,1.08,0,1,1,2.16,0V8.79a1.08,1.08,0,0,1-2.16,0Zm1.93,8.44a1.2,1.2,0,0,1-1.7-1.69,1.15,1.15,0,0,1,.85-.35,1.11,1.11,0,0,1,.84.35h0A1.21,1.21,0,0,1,9.35,13.09Z'/%3E%3C/g%3E%3C/svg%3E");--icon-success: url("data:image/svg+xml,%3Csvg id='forms-success' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23008000;%7D%3C/style%3E%3C/defs%3E%3Cpath id='Success' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0Zm3.69,7.08-4.29,4a.81.81,0,0,1-.56.22.84.84,0,0,1-.59-.24L4.67,9A.81.81,0,0,1,5.81,7.85L7.35,9.4,11.1,5.91a.8.8,0,0,1,1.09,1.17Z'/%3E%3C/svg%3E");--icon-search: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20x%3D%2233%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.6274%2013.1821L12.0195%209.57348C11.6158%209.17402%2010.9657%209.11032%2010.1453%209.17402L10.1707%208.96567C10.481%206.74275%2010.9058%203.69927%208.69623%201.48483C8.58141%201.37061%208.46125%201.26204%208.33608%201.15912C6.15976%20-0.628879%202.94659%20-0.313517%201.15898%201.86327C-0.628629%204.04005%20-0.313335%207.25424%201.86298%209.04192C4.03866%2010.8569%206.88604%2010.4615%208.96823%2010.1725L9.17215%2010.1427C9.10847%2010.9674%209.15082%2011.5962%209.57592%2012.0214L13.1794%2015.6256C13.4181%2015.8647%2013.7422%2015.9993%2014.0804%2015.9997C14.4183%2015.9993%2014.7424%2015.8647%2014.9814%2015.6256L15.6274%2014.9839C16.1243%2014.4865%2016.1243%2013.6798%2015.6274%2013.1821ZM9.32933%208.84674C9.31239%208.99548%209.27411%209.13574%209.27411%209.27193L8.84902%209.33155C6.83051%209.61208%204.28086%209.96478%202.41106%208.38797C1.50376%207.65558%200.937175%206.58272%200.843999%205.42043C0.656391%203.07984%202.4007%201.03077%204.74016%200.843125C4.85749%200.83685%204.97545%200.83685%205.09278%200.843125C6.22314%200.838418%207.30863%201.28683%208.1058%202.08857C10.0051%204.00114%209.63113%206.68753%209.32933%208.84674ZM15.0238%2014.3977L14.3822%2015.0394C14.3813%2015.0404%2014.3806%2015.041%2014.3797%2015.042C14.2131%2015.2073%2013.9439%2015.2061%2013.7786%2015.0394L10.1751%2011.4352C9.97529%2011.2353%209.97529%2010.6956%2010.0393%2010.0495V10.0366C10.6853%209.97294%2011.2208%209.97702%2011.4203%2010.1769L15.0238%2013.794C15.1034%2013.8743%2015.1477%2013.9829%2015.1471%2014.0959C15.1477%2014.2088%2015.1034%2014.3174%2015.0238%2014.3977Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%20%20%20%20%3C%2Fsvg%3E);--icon-cancel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -60 30 30'%3E%3Cpath d='M22.4707,-50.0977l-5.09766,5.09766l5.09766,5.09766c0.332031,0.332031 0.498047,0.732421 0.498047,1.20117c0,0.46875 -0.166016,0.86914 -0.498047,1.20117c-0.3125,0.332031 -0.708007,0.498047 -1.18652,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047l-5.09766,-5.09766l-5.09766,5.09766c-0.332031,0.332031 -0.737305,0.498047 -1.21582,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.86914 0.498047,-1.20117l5.09766,-5.09766l-5.09766,-5.09766c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.859377 0.498047,-1.17188c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.883789,0.166016 1.21582,0.498047l5.09766,5.09766l5.09766,-5.09766c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.874022,0.166016 1.18652,0.498047c0.175781,0.15625 0.302734,0.336914 0.380859,0.541992c0.0781253,0.205078 0.117188,0.415039 0.117188,0.629883c0,0.234375 -0.0390627,0.454101 -0.117188,0.65918c-0.0781253,0.205078 -0.205078,0.385742 -0.380859,0.541992Zm-7.4707,-9.90234c-2.07031,0 -4.01367,0.390627 -5.83008,1.17188c-1.81641,0.80078 -3.40332,1.87988 -4.76074,3.2373c-1.35742,1.35742 -2.43652,2.94433 -3.2373,4.76074c-0.781253,1.81641 -1.17188,3.75977 -1.17188,5.83008c0,2.07031 0.390627,4.01367 1.17188,5.83008c0.80078,1.81641 1.87988,3.40332 3.2373,4.76074c1.35742,1.35742 2.94433,2.43652 4.76074,3.2373c1.81641,0.781253 3.75977,1.17188 5.83008,1.17188c2.07031,0 4.01367,-0.390627 5.83008,-1.17188c1.81641,-0.80078 3.40332,-1.87988 4.76074,-3.2373c1.35742,-1.35742 2.43652,-2.94433 3.2373,-4.76074c0.781253,-1.81641 1.17188,-3.75977 1.17188,-5.83008c0,-2.07031 -0.390627,-4.01367 -1.17188,-5.83008c-0.80078,-1.81641 -1.87988,-3.40332 -3.2373,-4.76074c-1.35742,-1.35742 -2.94433,-2.43652 -4.76074,-3.2373c-1.81641,-0.781253 -3.75977,-1.17188 -5.83008,-1.17188Z' fill='%235c2d91'/%3E%3C/svg%3E");--icon-calendar: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M14.7369%201.68408H12.779V0.42102C12.779%200.188549%2012.5904%200%2012.358%200C12.1255%200%2011.9369%200.188549%2011.9369%200.42102V1.68408H9.92439V0.42102C9.92439%200.188549%209.73584%200%209.50337%200C9.2709%200%209.08235%200.188549%209.08235%200.42102V1.68408H7.0698V0.42102C7.0698%200.188549%206.88126%200%206.64878%200C6.41631%200%206.22777%200.188549%206.22777%200.42102V1.68408H4.21082V0.42102C4.21051%200.188549%204.02196%200%203.78949%200C3.55702%200%203.36847%200.188549%203.36847%200.42102V1.68408H2.52643C1.13098%201.68408%200%202.81537%200%204.21051V14.7369C0%2015.4344%200.565647%2016%201.26306%2016H13.4736C14.8687%2016%2016%2014.869%2016%2013.4736V2.94745C16%202.24973%2015.4344%201.68408%2014.7369%201.68408ZM15.158%2013.4736C15.158%2014.4038%2014.4041%2015.1576%2013.4739%2015.1576H1.26306C1.03059%2015.1576%200.842039%2014.9691%200.842039%2014.7366V6.73663H15.158V13.4736ZM15.158%205.89459H0.842039V4.21051C0.842039%203.28031%201.59592%202.52643%202.52612%202.52643H3.36816V3.78949C3.36816%204.02196%203.55671%204.21051%203.78918%204.21051C4.02165%204.21051%204.2102%204.02196%204.2102%203.78949V2.52643H6.22714V3.78949C6.22714%204.02196%206.41569%204.21051%206.64816%204.21051C6.88063%204.21051%207.06918%204.02196%207.06918%203.78949V2.52643H9.08173V3.78949C9.08173%204.02196%209.27028%204.21051%209.50275%204.21051C9.73522%204.21051%209.92377%204.02196%209.92377%203.78949V2.52643H11.9363V3.78949C11.9363%204.02196%2012.1249%204.21051%2012.3573%204.21051C12.5898%204.21051%2012.7784%204.02196%2012.7784%203.78949V2.52643H14.7363C14.9688%202.52643%2015.1573%202.71498%2015.1573%202.94745V5.89459H15.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--icon-clock: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8%200C3.5818%200%200%203.5818%200%208C0%2012.4182%203.5818%2016%208%2016C12.4182%2016%2016%2012.4182%2016%208C16%203.5818%2012.4182%200%208%200ZM8%2015.158C4.04675%2015.158%200.842039%2011.9533%200.842039%208C0.842039%204.04675%204.04675%200.842039%208%200.842039C11.9533%200.842039%2015.158%204.04675%2015.158%208C15.158%2011.9533%2011.9533%2015.158%208%2015.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M7.99929%202.81256C7.76682%202.81256%207.57827%203.00111%207.57827%203.23358V7.76818C7.57607%207.89963%207.46972%208.00599%207.33827%208.00818H2.78235C2.54988%208.00818%202.36133%208.19673%202.36133%208.4292C2.36133%208.66167%202.54988%208.85022%202.78235%208.85022H7.32133C7.92117%208.85713%208.41309%208.3765%208.42031%207.77665C8.42031%207.77383%208.42031%207.771%208.42031%207.76818V3.23358C8.42031%203.00111%208.23176%202.81256%207.99929%202.81256Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E%0A);--icon-select: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M4%206.6665L8%2010.6665L12%206.6665%22%20stroke%3D%22%235C2D91%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E);--icon-upload: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M18.7284%2020H6.54327C5.14071%2020%204%2018.816%204%2017.3603V16.102C4%2015.8589%204.18949%2015.6622%204.42374%2015.6622C4.65799%2015.6622%204.84748%2015.8589%204.84748%2016.102V17.3603C4.84748%2018.3311%205.60795%2019.1204%206.54327%2019.1204H18.7279C18.9618%2019.1204%2019.1517%2018.9233%2019.1517%2018.6806V16.0738C19.1517%2015.8307%2019.3412%2015.634%2019.5754%2015.634C19.8097%2015.634%2019.9992%2015.8307%2019.9992%2016.0738V18.6806C20%2019.4074%2019.4294%2020%2018.7284%2020Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M12.4435%204.29306C12.0671%203.90231%2011.4576%203.90231%2011.0811%204.29306L11.0774%204.29697L7.39173%208.122C7.01526%208.51275%207.01526%209.14534%207.39173%209.53609C7.7682%209.92684%208.37766%209.92684%208.75413%209.53609L10.7929%207.41951H10.7967V15.0414C10.7967%2015.4799%2011.1397%2015.8354%2011.5622%2015.8354H11.9579C12.3808%2015.8354%2012.7234%2015.4799%2012.7234%2015.0414V7.41821H12.7292L14.7659%209.53218C15.1424%209.92293%2015.7523%209.92293%2016.1284%209.53218C16.5048%209.14186%2016.5048%208.50884%2016.1284%208.11853L12.4435%204.29306Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--cancel-icon-width: 3rem;--cancel-icon-height: 1rem;--search-icon-datalist-width: 2rem;--search-icon-focus-width: var(--search-icon-datalist-width);background:#0000000a no-repeat center right 1rem}input:not([type=file]).extended,textarea.extended,select.extended,#input-file-container.extended{width:100%}input:not([type=file]):focus,input:not([type=file]):hover,input:not([type=file]).error:focus,input:not([type=file]).error:hover,input:not([type=file]).success:focus,input:not([type=file]).success:hover,textarea:focus,textarea:hover,textarea.error:focus,textarea.error:hover,textarea.success:focus,textarea.success:hover,select:focus,select:hover,select.error:focus,select.error:hover,select.success:focus,select.success:hover,#input-file-container:focus,#input-file-container:hover,#input-file-container.error:focus,#input-file-container.error:hover,#input-file-container.success:focus,#input-file-container.success:hover{border:2px solid rgba(92,45,145,1);outline:1px solid rgba(92,45,145,1)}input:not([type=file]):active,textarea:active,select:active,#input-file-container:active{border:2px solid rgba(92,45,145,1)}input:not([type=file]):disabled,textarea:disabled,select:disabled,#input-file-container:disabled{border-width:0;background:transparent;padding:0;font-weight:700;text-align:left;height:24px}input:not([type=file])[type=date].success,input:not([type=file])[type=date].error,input:not([type=file])[type=time].success,input:not([type=file])[type=time].error,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].success,input:not([type=file])[type=month].error,input:not([type=file])[type=week].success,input:not([type=file])[type=week].error,input:not([type=file])[type=search].success,input:not([type=file])[type=search].error,input:not([type=file]):is(select).success,input:not([type=file]):is(select).error,input:not([type=file])#input-file-container.success,input:not([type=file])#input-file-container.error,textarea[type=date].success,textarea[type=date].error,textarea[type=time].success,textarea[type=time].error,textarea[type=datetime-local].success,textarea[type=datetime-local].error,textarea[type=month].success,textarea[type=month].error,textarea[type=week].success,textarea[type=week].error,textarea[type=search].success,textarea[type=search].error,textarea:is(select).success,textarea:is(select).error,textarea#input-file-container.success,textarea#input-file-container.error,select[type=date].success,select[type=date].error,select[type=time].success,select[type=time].error,select[type=datetime-local].success,select[type=datetime-local].error,select[type=month].success,select[type=month].error,select[type=week].success,select[type=week].error,select[type=search].success,select[type=search].error,select:is(select).success,select:is(select).error,select#input-file-container.success,select#input-file-container.error,#input-file-container[type=date].success,#input-file-container[type=date].error,#input-file-container[type=time].success,#input-file-container[type=time].error,#input-file-container[type=datetime-local].success,#input-file-container[type=datetime-local].error,#input-file-container[type=month].success,#input-file-container[type=month].error,#input-file-container[type=week].success,#input-file-container[type=week].error,#input-file-container[type=search].success,#input-file-container[type=search].error,#input-file-container:is(select).success,#input-file-container:is(select).error,#input-file-container#input-file-container.success,#input-file-container#input-file-container.error{background-position:center right 2.7rem,center right 1rem}input:not([type=file]).error,textarea.error,select.error,#input-file-container.error{border:2px solid rgba(179,0,0,1);background-repeat:no-repeat;background-image:var(--icon-error)}input:not([type=file]).success,textarea.success,select.success,#input-file-container.success{border:2px solid rgba(0,128,0,1);background-image:var(--icon-success)}input:not([type=file])[type=time],textarea[type=time],select[type=time],#input-file-container[type=time]{background-image:var(--icon-clock)}input:not([type=file])[type=time].success,textarea[type=time].success,select[type=time].success,#input-file-container[type=time].success{background-image:var(--icon-success),var(--icon-clock)}input:not([type=file])[type=time].error,textarea[type=time].error,select[type=time].error,#input-file-container[type=time].error{background-image:var(--icon-error),var(--icon-clock)}input:not([type=file])[type=date],input:not([type=file])[type=datetime-local],input:not([type=file])[type=month],input:not([type=file])[type=week],textarea[type=date],textarea[type=datetime-local],textarea[type=month],textarea[type=week],select[type=date],select[type=datetime-local],select[type=month],select[type=week],#input-file-container[type=date],#input-file-container[type=datetime-local],#input-file-container[type=month],#input-file-container[type=week]{background-image:var(--icon-calendar)}input:not([type=file])[type=date].success,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=month].success,input:not([type=file])[type=week].success,textarea[type=date].success,textarea[type=datetime-local].success,textarea[type=month].success,textarea[type=week].success,select[type=date].success,select[type=datetime-local].success,select[type=month].success,select[type=week].success,#input-file-container[type=date].success,#input-file-container[type=datetime-local].success,#input-file-container[type=month].success,#input-file-container[type=week].success{background-image:var(--icon-success),var(--icon-calendar)}input:not([type=file])[type=date].error,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].error,input:not([type=file])[type=week].error,textarea[type=date].error,textarea[type=datetime-local].error,textarea[type=month].error,textarea[type=week].error,select[type=date].error,select[type=datetime-local].error,select[type=month].error,select[type=week].error,#input-file-container[type=date].error,#input-file-container[type=datetime-local].error,#input-file-container[type=month].error,#input-file-container[type=week].error{background-image:var(--icon-error),var(--icon-calendar)}input:not([type=file])[type=date]::-webkit-calendar-picker-indicator,input:not([type=file])[type=datetime-local]::-webkit-calendar-picker-indicator,input:not([type=file])[type=month]::-webkit-calendar-picker-indicator,input:not([type=file])[type=week]::-webkit-calendar-picker-indicator,input:not([type=file])[type=time]::-webkit-calendar-picker-indicator,textarea[type=date]::-webkit-calendar-picker-indicator,textarea[type=datetime-local]::-webkit-calendar-picker-indicator,textarea[type=month]::-webkit-calendar-picker-indicator,textarea[type=week]::-webkit-calendar-picker-indicator,textarea[type=time]::-webkit-calendar-picker-indicator,select[type=date]::-webkit-calendar-picker-indicator,select[type=datetime-local]::-webkit-calendar-picker-indicator,select[type=month]::-webkit-calendar-picker-indicator,select[type=week]::-webkit-calendar-picker-indicator,select[type=time]::-webkit-calendar-picker-indicator,#input-file-container[type=date]::-webkit-calendar-picker-indicator,#input-file-container[type=datetime-local]::-webkit-calendar-picker-indicator,#input-file-container[type=month]::-webkit-calendar-picker-indicator,#input-file-container[type=week]::-webkit-calendar-picker-indicator,#input-file-container[type=time]::-webkit-calendar-picker-indicator{-webkit-appearance:none;opacity:0}input:not([type=file])[type=search],textarea[type=search],select[type=search],#input-file-container[type=search]{background-position:center right 1rem;background-image:var(--icon-search)}input:not([type=file])[type=search]:focus::-webkit-search-cancel-button,input:not([type=file])[type=search]:hover::-webkit-search-cancel-button,textarea[type=search]:focus::-webkit-search-cancel-button,textarea[type=search]:hover::-webkit-search-cancel-button,select[type=search]:focus::-webkit-search-cancel-button,select[type=search]:hover::-webkit-search-cancel-button,#input-file-container[type=search]:focus::-webkit-search-cancel-button,#input-file-container[type=search]:hover::-webkit-search-cancel-button{-webkit-appearance:none;background-image:var(--icon-cancel);height:var(--cancel-icon-height);width:var(--cancel-icon-width);background-repeat:no-repeat}input:not([type=file])[type=search][list=suggestions],textarea[type=search][list=suggestions],select[type=search][list=suggestions],#input-file-container[type=search][list=suggestions]{background-position:center right var(--search-icon-datalist-width)}input:not([type=file])[type=search][list=suggestions]:focus,input:not([type=file])[type=search][list=suggestions]:hover,textarea[type=search][list=suggestions]:focus,textarea[type=search][list=suggestions]:hover,select[type=search][list=suggestions]:focus,select[type=search][list=suggestions]:hover,#input-file-container[type=search][list=suggestions]:focus,#input-file-container[type=search][list=suggestions]:hover{background-position:center right var(--search-icon-focus-width)}input:not([type=file])[type=search].success:focus,input:not([type=file])[type=search].success:hover,input:not([type=file])[type=search].error:focus,input:not([type=file])[type=search].error:hover,textarea[type=search].success:focus,textarea[type=search].success:hover,textarea[type=search].error:focus,textarea[type=search].error:hover,select[type=search].success:focus,select[type=search].success:hover,select[type=search].error:focus,select[type=search].error:hover,#input-file-container[type=search].success:focus,#input-file-container[type=search].success:hover,#input-file-container[type=search].error:focus,#input-file-container[type=search].error:hover{background-position:center right 1rem;background-image:var(--icon-search)}input:not([type=file])[type=search].success,textarea[type=search].success,select[type=search].success,#input-file-container[type=search].success{background-image:var(--icon-success),var(--icon-search)}input:not([type=file])[type=search].error,textarea[type=search].error,select[type=search].error,#input-file-container[type=search].error{background-image:var(--icon-error),var(--icon-search)}input:not([type=file]):is(select),textarea:is(select),select:is(select),#input-file-container:is(select){background-image:var(--icon-select);-webkit-appearance:none}input:not([type=file]):is(select).success,textarea:is(select).success,select:is(select).success,#input-file-container:is(select).success{background-image:var(--icon-success),var(--icon-select)}input:not([type=file]):is(select).error,textarea:is(select).error,select:is(select).error,#input-file-container:is(select).error{background-image:var(--icon-error),var(--icon-select)}input:not([type=file]):is(textarea),textarea:is(textarea),select:is(textarea),#input-file-container:is(textarea){padding-top:.5rem;height:10rem}input:not([type=file]):is(textarea).success,input:not([type=file]):is(textarea).error,textarea:is(textarea).success,textarea:is(textarea).error,select:is(textarea).success,select:is(textarea).error,#input-file-container:is(textarea).success,#input-file-container:is(textarea).error{background-position:top .5rem right 1rem}input:not([type=file])#input-file-container,textarea#input-file-container,select#input-file-container,#input-file-container#input-file-container{background-repeat:no-repeat;background-position:center right 1rem;background-image:var(--icon-upload);display:flex;align-items:center}input:not([type=file])#input-file-container span,textarea#input-file-container span,select#input-file-container span,#input-file-container#input-file-container span{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}input:not([type=file])#input-file-container.success>span,input:not([type=file])#input-file-container.error>span,textarea#input-file-container.success>span,textarea#input-file-container.error>span,select#input-file-container.success>span,select#input-file-container.error>span,#input-file-container#input-file-container.success>span,#input-file-container#input-file-container.error>span{width:85%}input:not([type=file])#input-file-container.success,textarea#input-file-container.success,select#input-file-container.success,#input-file-container#input-file-container.success{background-image:var(--icon-success),var(--icon-upload)}input:not([type=file])#input-file-container.error,textarea#input-file-container.error,select#input-file-container.error,#input-file-container#input-file-container.error{background-image:var(--icon-error),var(--icon-upload)}slot{font-family:var(--px-font-family);font-size:var(--px-text-size-s-desktop);font-weight:400;line-height:var(--px-line-height-m);text-align:left;color:#0a0a0a}slot.error{color:#b30000}slot.success{color:green}slot[name=helper]{color:#0000008f}#container{display:flex;flex-direction:column;gap:6px}#label-helper{display:flex;flex-direction:column;gap:8px}input[type=file]{-webkit-appearance:none;opacity:0;height:0;width:0}`, b = new CSSStyleSheet();
|
|
217
|
-
|
|
218
|
-
|
|
445
|
+
const A = [
|
|
446
|
+
"",
|
|
447
|
+
"default",
|
|
448
|
+
"auto",
|
|
449
|
+
"flex-start",
|
|
450
|
+
"flex-end",
|
|
451
|
+
"center",
|
|
452
|
+
"baseline",
|
|
453
|
+
"stretch"
|
|
454
|
+
], S = [
|
|
455
|
+
"",
|
|
456
|
+
"default",
|
|
457
|
+
"start",
|
|
458
|
+
"end",
|
|
459
|
+
"center",
|
|
460
|
+
"stretch"
|
|
461
|
+
], D = [
|
|
462
|
+
"",
|
|
463
|
+
"default",
|
|
464
|
+
"start",
|
|
465
|
+
"end",
|
|
466
|
+
"center",
|
|
467
|
+
"stretch"
|
|
468
|
+
], $ = [
|
|
469
|
+
"",
|
|
470
|
+
"1",
|
|
471
|
+
"2",
|
|
472
|
+
"3",
|
|
473
|
+
"4",
|
|
474
|
+
"5",
|
|
475
|
+
"6",
|
|
476
|
+
"7",
|
|
477
|
+
"8",
|
|
478
|
+
"9",
|
|
479
|
+
"10",
|
|
480
|
+
"11",
|
|
481
|
+
"12"
|
|
482
|
+
], j = [
|
|
483
|
+
"",
|
|
484
|
+
"1",
|
|
485
|
+
"2",
|
|
486
|
+
"3",
|
|
487
|
+
"4",
|
|
488
|
+
"5",
|
|
489
|
+
"6",
|
|
490
|
+
"7",
|
|
491
|
+
"8",
|
|
492
|
+
"9",
|
|
493
|
+
"10",
|
|
494
|
+
"11",
|
|
495
|
+
"12"
|
|
496
|
+
], E = `input:not([type=file]),textarea,select,#input-file-container{margin:0;outline:0;vertical-align:baseline;align-items:center;gap:var(--px-spacing-after-element-default-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);height:var(--px-action-size-l);background:var(--px-background-color-action-neutral-default) no-repeat;background-position:center right var(--px-padding-s-mobile);border:var(--px-border-size-m) solid var(--px-border-color-action-neutral-default);border-radius:var(--px-radius-main);color:var(--px-text-color-body-neutral-strong-default);font-family:var(--px-font-family);font-size:var(--px-text-size-label-l-mobile);font-weight:400;text-align:left;box-sizing:border-box;--icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23B30000;%7D%3C/style%3E%3C/defs%3E%3Cg id='forms-error'%3E%3Cpath id='Error' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0ZM7.42,4.65a1.08,1.08,0,1,1,2.16,0V8.79a1.08,1.08,0,0,1-2.16,0Zm1.93,8.44a1.2,1.2,0,0,1-1.7-1.69,1.15,1.15,0,0,1,.85-.35,1.11,1.11,0,0,1,.84.35h0A1.21,1.21,0,0,1,9.35,13.09Z'/%3E%3C/g%3E%3C/svg%3E");--icon-success: url("data:image/svg+xml,%3Csvg id='forms-success' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' width='17' height='17'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23008000;%7D%3C/style%3E%3C/defs%3E%3Cpath id='Success' class='cls-1' d='M8.5,0A8.5,8.5,0,1,0,17,8.5,8.51,8.51,0,0,0,8.5,0Zm3.69,7.08-4.29,4a.81.81,0,0,1-.56.22.84.84,0,0,1-.59-.24L4.67,9A.81.81,0,0,1,5.81,7.85L7.35,9.4,11.1,5.91a.8.8,0,0,1,1.09,1.17Z'/%3E%3C/svg%3E");--icon-search: url(data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.6451%2016.6649L12.5811%2011.7844C13.4371%2010.7503%2013.9122%209.46601%2013.9282%208.10498C13.9463%206.53112%2013.351%205.04391%2012.251%203.91824C11.1511%202.79211%209.67878%202.16202%208.10492%202.14352C8.081%202.14352%208.05753%202.14307%208.03406%202.14307C6.48637%202.14307%205.02715%202.7375%203.9182%203.82074C2.79208%204.92069%202.16199%206.393%202.14349%207.96687C2.12498%209.54118%202.72031%2011.0279%203.82026%2012.1536C4.97344%2013.3339%206.50442%2013.9261%208.03677%2013.9261C9.28408%2013.9261%2010.5303%2013.528%2011.5758%2012.7405L16.6828%2017.6633C16.8173%2017.7928%2016.9906%2017.8574%2017.164%2017.8574C17.3454%2017.8574%2017.5273%2017.7865%2017.6632%2017.6452C17.929%2017.3694%2017.9209%2016.9307%2017.6451%2016.6649ZM11.1849%2011.2595C10.3237%2012.1008%209.18546%2012.5707%207.98305%2012.5418C6.7793%2012.5278%205.65317%2012.0457%204.8123%2011.185C3.97101%2010.3238%203.5156%209.18687%203.53004%207.98312C3.54403%206.77981%204.02608%205.65369%204.88678%204.81282C5.73487%203.98413%206.85106%203.52962%208.03451%203.52962C8.05256%203.52962%208.07062%203.53007%208.08867%203.53007C9.29198%203.54406%2010.4181%204.02611%2011.2589%204.88684C12.1003%205.74802%2012.5557%206.88498%2012.5417%208.08873C12.5277%209.29249%2012.0456%2010.4186%2011.1849%2011.2595Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--icon-cancel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -60 30 30'%3E%3Cpath d='M22.4707,-50.0977l-5.09766,5.09766l5.09766,5.09766c0.332031,0.332031 0.498047,0.732421 0.498047,1.20117c0,0.46875 -0.166016,0.86914 -0.498047,1.20117c-0.3125,0.332031 -0.708007,0.498047 -1.18652,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047l-5.09766,-5.09766l-5.09766,5.09766c-0.332031,0.332031 -0.737305,0.498047 -1.21582,0.498047c-0.478515,0 -0.874022,-0.166016 -1.18652,-0.498047c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.86914 0.498047,-1.20117l5.09766,-5.09766l-5.09766,-5.09766c-0.332031,-0.332031 -0.498047,-0.732421 -0.498047,-1.20117c0,-0.46875 0.166016,-0.859377 0.498047,-1.17188c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.883789,0.166016 1.21582,0.498047l5.09766,5.09766l5.09766,-5.09766c0.3125,-0.332031 0.708007,-0.498047 1.18652,-0.498047c0.478515,0 0.874022,0.166016 1.18652,0.498047c0.175781,0.15625 0.302734,0.336914 0.380859,0.541992c0.0781253,0.205078 0.117188,0.415039 0.117188,0.629883c0,0.234375 -0.0390627,0.454101 -0.117188,0.65918c-0.0781253,0.205078 -0.205078,0.385742 -0.380859,0.541992Zm-7.4707,-9.90234c-2.07031,0 -4.01367,0.390627 -5.83008,1.17188c-1.81641,0.80078 -3.40332,1.87988 -4.76074,3.2373c-1.35742,1.35742 -2.43652,2.94433 -3.2373,4.76074c-0.781253,1.81641 -1.17188,3.75977 -1.17188,5.83008c0,2.07031 0.390627,4.01367 1.17188,5.83008c0.80078,1.81641 1.87988,3.40332 3.2373,4.76074c1.35742,1.35742 2.94433,2.43652 4.76074,3.2373c1.81641,0.781253 3.75977,1.17188 5.83008,1.17188c2.07031,0 4.01367,-0.390627 5.83008,-1.17188c1.81641,-0.80078 3.40332,-1.87988 4.76074,-3.2373c1.35742,-1.35742 2.43652,-2.94433 3.2373,-4.76074c0.781253,-1.81641 1.17188,-3.75977 1.17188,-5.83008c0,-2.07031 -0.390627,-4.01367 -1.17188,-5.83008c-0.80078,-1.81641 -1.87988,-3.40332 -3.2373,-4.76074c-1.35742,-1.35742 -2.94433,-2.43652 -4.76074,-3.2373c-1.81641,-0.781253 -3.75977,-1.17188 -5.83008,-1.17188Z' fill='%235c2d91'/%3E%3C/svg%3E");--icon-calendar: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M14.7369%201.68408H12.779V0.42102C12.779%200.188549%2012.5904%200%2012.358%200C12.1255%200%2011.9369%200.188549%2011.9369%200.42102V1.68408H9.92439V0.42102C9.92439%200.188549%209.73584%200%209.50337%200C9.2709%200%209.08235%200.188549%209.08235%200.42102V1.68408H7.0698V0.42102C7.0698%200.188549%206.88126%200%206.64878%200C6.41631%200%206.22777%200.188549%206.22777%200.42102V1.68408H4.21082V0.42102C4.21051%200.188549%204.02196%200%203.78949%200C3.55702%200%203.36847%200.188549%203.36847%200.42102V1.68408H2.52643C1.13098%201.68408%200%202.81537%200%204.21051V14.7369C0%2015.4344%200.565647%2016%201.26306%2016H13.4736C14.8687%2016%2016%2014.869%2016%2013.4736V2.94745C16%202.24973%2015.4344%201.68408%2014.7369%201.68408ZM15.158%2013.4736C15.158%2014.4038%2014.4041%2015.1576%2013.4739%2015.1576H1.26306C1.03059%2015.1576%200.842039%2014.9691%200.842039%2014.7366V6.73663H15.158V13.4736ZM15.158%205.89459H0.842039V4.21051C0.842039%203.28031%201.59592%202.52643%202.52612%202.52643H3.36816V3.78949C3.36816%204.02196%203.55671%204.21051%203.78918%204.21051C4.02165%204.21051%204.2102%204.02196%204.2102%203.78949V2.52643H6.22714V3.78949C6.22714%204.02196%206.41569%204.21051%206.64816%204.21051C6.88063%204.21051%207.06918%204.02196%207.06918%203.78949V2.52643H9.08173V3.78949C9.08173%204.02196%209.27028%204.21051%209.50275%204.21051C9.73522%204.21051%209.92377%204.02196%209.92377%203.78949V2.52643H11.9363V3.78949C11.9363%204.02196%2012.1249%204.21051%2012.3573%204.21051C12.5898%204.21051%2012.7784%204.02196%2012.7784%203.78949V2.52643H14.7363C14.9688%202.52643%2015.1573%202.71498%2015.1573%202.94745V5.89459H15.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--icon-clock: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8%200C3.5818%200%200%203.5818%200%208C0%2012.4182%203.5818%2016%208%2016C12.4182%2016%2016%2012.4182%2016%208C16%203.5818%2012.4182%200%208%200ZM8%2015.158C4.04675%2015.158%200.842039%2011.9533%200.842039%208C0.842039%204.04675%204.04675%200.842039%208%200.842039C11.9533%200.842039%2015.158%204.04675%2015.158%208C15.158%2011.9533%2011.9533%2015.158%208%2015.158Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M7.99929%202.81256C7.76682%202.81256%207.57827%203.00111%207.57827%203.23358V7.76818C7.57607%207.89963%207.46972%208.00599%207.33827%208.00818H2.78235C2.54988%208.00818%202.36133%208.19673%202.36133%208.4292C2.36133%208.66167%202.54988%208.85022%202.78235%208.85022H7.32133C7.92117%208.85713%208.41309%208.3765%208.42031%207.77665C8.42031%207.77383%208.42031%207.771%208.42031%207.76818V3.23358C8.42031%203.00111%208.23176%202.81256%207.99929%202.81256Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E%0A);--icon-select: url(data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M4%206.6665L8%2010.6665L12%206.6665%22%20stroke%3D%22%235C2D91%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E);--icon-upload: url(data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M18.7284%2020H6.54327C5.14071%2020%204%2018.816%204%2017.3603V16.102C4%2015.8589%204.18949%2015.6622%204.42374%2015.6622C4.65799%2015.6622%204.84748%2015.8589%204.84748%2016.102V17.3603C4.84748%2018.3311%205.60795%2019.1204%206.54327%2019.1204H18.7279C18.9618%2019.1204%2019.1517%2018.9233%2019.1517%2018.6806V16.0738C19.1517%2015.8307%2019.3412%2015.634%2019.5754%2015.634C19.8097%2015.634%2019.9992%2015.8307%2019.9992%2016.0738V18.6806C20%2019.4074%2019.4294%2020%2018.7284%2020Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3Cpath%20d%3D%22M12.4435%204.29306C12.0671%203.90231%2011.4576%203.90231%2011.0811%204.29306L11.0774%204.29697L7.39173%208.122C7.01526%208.51275%207.01526%209.14534%207.39173%209.53609C7.7682%209.92684%208.37766%209.92684%208.75413%209.53609L10.7929%207.41951H10.7967V15.0414C10.7967%2015.4799%2011.1397%2015.8354%2011.5622%2015.8354H11.9579C12.3808%2015.8354%2012.7234%2015.4799%2012.7234%2015.0414V7.41821H12.7292L14.7659%209.53218C15.1424%209.92293%2015.7523%209.92293%2016.1284%209.53218C16.5048%209.14186%2016.5048%208.50884%2016.1284%208.11853L12.4435%204.29306Z%22%20fill%3D%22%235C2D91%22%2F%3E%0A%3C%2Fsvg%3E);--cancel-icon-width: 3rem;--cancel-icon-height: 1rem;--search-icon-datalist-width: 2rem;--search-icon-focus-width: var(--search-icon-datalist-width)}@media screen and (min-width: 768px){input:not([type=file]),textarea,select,#input-file-container{gap:var(--px-spacing-after-element-default-tablet);padding:var(--px-padding-xs-tablet) var(--px-padding-s-tablet);font-size:var(--px-text-size-label-l-tablet);background-position:center right var(--px-padding-s-tablet)}}@media screen and (min-width: 1024px){input:not([type=file]),textarea,select,#input-file-container{gap:var(--px-spacing-after-element-default-desktop);padding:var(--px-padding-xs-desktop) var(--px-padding-s-desktop);font-size:var(--px-text-size-label-l-desktop);background-position:center right var(--px-padding-s-desktop)}}input:not([type=file]).extended,textarea.extended,select.extended,#input-file-container.extended{width:100%}input:not([type=file]):focus,input:not([type=file]):hover,input:not([type=file]).error:focus,input:not([type=file]).error:hover,input:not([type=file]).success:focus,input:not([type=file]).success:hover,textarea:focus,textarea:hover,textarea.error:focus,textarea.error:hover,textarea.success:focus,textarea.success:hover,select:focus,select:hover,select.error:focus,select.error:hover,select.success:focus,select.success:hover,#input-file-container:focus,#input-file-container:hover,#input-file-container.error:focus,#input-file-container.error:hover,#input-file-container.success:focus,#input-file-container.success:hover{border:var(--px-border-size-l) solid var(--px-border-color-action-hover-default);outline:1px solid var(--px-border-color-action-hover-default)}input:not([type=file]):active,textarea:active,select:active,#input-file-container:active{border:var(--px-border-size-l) solid var(--px-border-color-action-hover-default)}input:not([type=file]):disabled,textarea:disabled,select:disabled,#input-file-container:disabled{border-width:0;background:transparent;padding:0;font-weight:700;text-align:left;height:24px}input:not([type=file]).error,textarea.error,select.error,#input-file-container.error{border-color:var(--px-border-color-purpose-error-default);background-repeat:no-repeat;background-image:var(--icon-error)}input:not([type=file]).success,textarea.success,select.success,#input-file-container.success{border-color:var(--px-border-color-purpose-success-default);background-image:var(--icon-success)}input:not([type=file])[type=date].success,input:not([type=file])[type=date].error,input:not([type=file])[type=time].success,input:not([type=file])[type=time].error,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].success,input:not([type=file])[type=month].error,input:not([type=file])[type=week].success,input:not([type=file])[type=week].error,input:not([type=file])[type=search].success,input:not([type=file])[type=search].error,input:not([type=file]):is(select).success,input:not([type=file]):is(select).error,input:not([type=file])#input-file-container.success,input:not([type=file])#input-file-container.error,textarea[type=date].success,textarea[type=date].error,textarea[type=time].success,textarea[type=time].error,textarea[type=datetime-local].success,textarea[type=datetime-local].error,textarea[type=month].success,textarea[type=month].error,textarea[type=week].success,textarea[type=week].error,textarea[type=search].success,textarea[type=search].error,textarea:is(select).success,textarea:is(select).error,textarea#input-file-container.success,textarea#input-file-container.error,select[type=date].success,select[type=date].error,select[type=time].success,select[type=time].error,select[type=datetime-local].success,select[type=datetime-local].error,select[type=month].success,select[type=month].error,select[type=week].success,select[type=week].error,select[type=search].success,select[type=search].error,select:is(select).success,select:is(select).error,select#input-file-container.success,select#input-file-container.error,#input-file-container[type=date].success,#input-file-container[type=date].error,#input-file-container[type=time].success,#input-file-container[type=time].error,#input-file-container[type=datetime-local].success,#input-file-container[type=datetime-local].error,#input-file-container[type=month].success,#input-file-container[type=month].error,#input-file-container[type=week].success,#input-file-container[type=week].error,#input-file-container[type=search].success,#input-file-container[type=search].error,#input-file-container:is(select).success,#input-file-container:is(select).error,#input-file-container#input-file-container.success,#input-file-container#input-file-container.error{background-position:center right 2.7rem,center right 1rem}input:not([type=file])[type=time],textarea[type=time],select[type=time],#input-file-container[type=time]{background-image:var(--icon-clock)}input:not([type=file])[type=time].success,textarea[type=time].success,select[type=time].success,#input-file-container[type=time].success{background-image:var(--icon-success),var(--icon-clock)}input:not([type=file])[type=time].error,textarea[type=time].error,select[type=time].error,#input-file-container[type=time].error{background-image:var(--icon-error),var(--icon-clock)}input:not([type=file])[type=date],input:not([type=file])[type=datetime-local],input:not([type=file])[type=month],input:not([type=file])[type=week],textarea[type=date],textarea[type=datetime-local],textarea[type=month],textarea[type=week],select[type=date],select[type=datetime-local],select[type=month],select[type=week],#input-file-container[type=date],#input-file-container[type=datetime-local],#input-file-container[type=month],#input-file-container[type=week]{background-image:var(--icon-calendar)}input:not([type=file])[type=date].success,input:not([type=file])[type=datetime-local].success,input:not([type=file])[type=month].success,input:not([type=file])[type=week].success,textarea[type=date].success,textarea[type=datetime-local].success,textarea[type=month].success,textarea[type=week].success,select[type=date].success,select[type=datetime-local].success,select[type=month].success,select[type=week].success,#input-file-container[type=date].success,#input-file-container[type=datetime-local].success,#input-file-container[type=month].success,#input-file-container[type=week].success{background-image:var(--icon-success),var(--icon-calendar)}input:not([type=file])[type=date].error,input:not([type=file])[type=datetime-local].error,input:not([type=file])[type=month].error,input:not([type=file])[type=week].error,textarea[type=date].error,textarea[type=datetime-local].error,textarea[type=month].error,textarea[type=week].error,select[type=date].error,select[type=datetime-local].error,select[type=month].error,select[type=week].error,#input-file-container[type=date].error,#input-file-container[type=datetime-local].error,#input-file-container[type=month].error,#input-file-container[type=week].error{background-image:var(--icon-error),var(--icon-calendar)}input:not([type=file])[type=date]::-webkit-calendar-picker-indicator,input:not([type=file])[type=datetime-local]::-webkit-calendar-picker-indicator,input:not([type=file])[type=month]::-webkit-calendar-picker-indicator,input:not([type=file])[type=week]::-webkit-calendar-picker-indicator,input:not([type=file])[type=time]::-webkit-calendar-picker-indicator,textarea[type=date]::-webkit-calendar-picker-indicator,textarea[type=datetime-local]::-webkit-calendar-picker-indicator,textarea[type=month]::-webkit-calendar-picker-indicator,textarea[type=week]::-webkit-calendar-picker-indicator,textarea[type=time]::-webkit-calendar-picker-indicator,select[type=date]::-webkit-calendar-picker-indicator,select[type=datetime-local]::-webkit-calendar-picker-indicator,select[type=month]::-webkit-calendar-picker-indicator,select[type=week]::-webkit-calendar-picker-indicator,select[type=time]::-webkit-calendar-picker-indicator,#input-file-container[type=date]::-webkit-calendar-picker-indicator,#input-file-container[type=datetime-local]::-webkit-calendar-picker-indicator,#input-file-container[type=month]::-webkit-calendar-picker-indicator,#input-file-container[type=week]::-webkit-calendar-picker-indicator,#input-file-container[type=time]::-webkit-calendar-picker-indicator{-webkit-appearance:none;opacity:0}input:not([type=file])[type=search],textarea[type=search],select[type=search],#input-file-container[type=search]{background-image:var(--icon-search)}input:not([type=file])[type=search]:focus::-webkit-search-cancel-button,input:not([type=file])[type=search]:hover::-webkit-search-cancel-button,textarea[type=search]:focus::-webkit-search-cancel-button,textarea[type=search]:hover::-webkit-search-cancel-button,select[type=search]:focus::-webkit-search-cancel-button,select[type=search]:hover::-webkit-search-cancel-button,#input-file-container[type=search]:focus::-webkit-search-cancel-button,#input-file-container[type=search]:hover::-webkit-search-cancel-button{-webkit-appearance:none;background-image:var(--icon-cancel);height:var(--cancel-icon-height);width:var(--cancel-icon-width);background-repeat:no-repeat}input:not([type=file])[type=search][list=suggestions],textarea[type=search][list=suggestions],select[type=search][list=suggestions],#input-file-container[type=search][list=suggestions]{background-position:center right var(--search-icon-datalist-width)}input:not([type=file])[type=search][list=suggestions]:focus,input:not([type=file])[type=search][list=suggestions]:hover,textarea[type=search][list=suggestions]:focus,textarea[type=search][list=suggestions]:hover,select[type=search][list=suggestions]:focus,select[type=search][list=suggestions]:hover,#input-file-container[type=search][list=suggestions]:focus,#input-file-container[type=search][list=suggestions]:hover{background-position:center right var(--search-icon-focus-width)}input:not([type=file])[type=search].success:focus,input:not([type=file])[type=search].success:hover,input:not([type=file])[type=search].error:focus,input:not([type=file])[type=search].error:hover,textarea[type=search].success:focus,textarea[type=search].success:hover,textarea[type=search].error:focus,textarea[type=search].error:hover,select[type=search].success:focus,select[type=search].success:hover,select[type=search].error:focus,select[type=search].error:hover,#input-file-container[type=search].success:focus,#input-file-container[type=search].success:hover,#input-file-container[type=search].error:focus,#input-file-container[type=search].error:hover{background-position:center right 1rem;background-image:var(--icon-search)}input:not([type=file])[type=search].success,textarea[type=search].success,select[type=search].success,#input-file-container[type=search].success{background-image:var(--icon-success),var(--icon-search)}input:not([type=file])[type=search].error,textarea[type=search].error,select[type=search].error,#input-file-container[type=search].error{background-image:var(--icon-error),var(--icon-search)}input:not([type=file]):is(select),textarea:is(select),select:is(select),#input-file-container:is(select){background-image:var(--icon-select);-webkit-appearance:none}input:not([type=file]):is(select).success,textarea:is(select).success,select:is(select).success,#input-file-container:is(select).success{background-image:var(--icon-success),var(--icon-select)}input:not([type=file]):is(select).error,textarea:is(select).error,select:is(select).error,#input-file-container:is(select).error{background-image:var(--icon-error),var(--icon-select)}input:not([type=file]):is(textarea),textarea:is(textarea),select:is(textarea),#input-file-container:is(textarea){height:auto;flex-grow:0}input:not([type=file]):is(textarea).success,input:not([type=file]):is(textarea).error,textarea:is(textarea).success,textarea:is(textarea).error,select:is(textarea).success,select:is(textarea).error,#input-file-container:is(textarea).success,#input-file-container:is(textarea).error{background-position:top .5rem right 1rem}input:not([type=file])#input-file-container,textarea#input-file-container,select#input-file-container,#input-file-container#input-file-container{background-repeat:no-repeat;background-position:center right var(--px-padding-s-mobile);background-image:var(--icon-upload);display:flex;align-items:center}input:not([type=file])#input-file-container span,textarea#input-file-container span,select#input-file-container span,#input-file-container#input-file-container span{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}input:not([type=file])#input-file-container.success>span,input:not([type=file])#input-file-container.error>span,textarea#input-file-container.success>span,textarea#input-file-container.error>span,select#input-file-container.success>span,select#input-file-container.error>span,#input-file-container#input-file-container.success>span,#input-file-container#input-file-container.error>span{width:85%}input:not([type=file])#input-file-container.success,textarea#input-file-container.success,select#input-file-container.success,#input-file-container#input-file-container.success{background-image:var(--icon-success),var(--icon-upload)}input:not([type=file])#input-file-container.error,textarea#input-file-container.error,select#input-file-container.error,#input-file-container#input-file-container.error{background-image:var(--icon-error),var(--icon-upload)}slot{font-family:var(--px-font-family);font-size:var(--px-text-size-s-desktop);font-weight:400;line-height:var(--px-line-height-m);text-align:left}slot.error{color:var(--px-text-color-purpose-error-default)}slot.success{color:var(--px-text-color-purpose-success-default)}slot[name=helper]{color:#0000008f}#container{display:inline-flex;flex-direction:column;gap:6px}#label-helper{display:flex;flex-direction:column;gap:8px}input[type=file]{-webkit-appearance:none;opacity:0;height:0;width:0}`, x = new CSSStyleSheet();
|
|
497
|
+
x.replaceSync(E);
|
|
498
|
+
class l extends C {
|
|
219
499
|
constructor() {
|
|
220
500
|
var e;
|
|
221
|
-
super(
|
|
501
|
+
super(x), this.containerTemplate = () => `
|
|
222
502
|
<div id="container">
|
|
223
503
|
<div id="label-helper">
|
|
224
504
|
<label><slot name="label"></slot></label>
|
|
@@ -232,15 +512,15 @@ class s extends m {
|
|
|
232
512
|
static get observedAttributes() {
|
|
233
513
|
return [...super.observedAttributes, "state", "extended"];
|
|
234
514
|
}
|
|
235
|
-
attributeChangedCallback(e, t,
|
|
236
|
-
e === "state" && t !==
|
|
515
|
+
attributeChangedCallback(e, t, s) {
|
|
516
|
+
e === "state" && t !== s ? this.stateChangeCallback(t, s) : e === "extended" && t !== s ? this.$el.classList.toggle("extended") : super.attributeChangedCallback(e, t, s);
|
|
237
517
|
}
|
|
238
518
|
stateChangeCallback(e, t) {
|
|
239
519
|
this.$el.classList.toggle(e), this.$el.classList.toggle(t), t === "error" ? (this.$validationSlot.classList.toggle("error"), this.$validationSlot.classList.remove("success")) : t === "success" ? (this.$validationSlot.classList.remove("error"), this.$validationSlot.classList.toggle("success")) : (this.$el.removeAttribute("aria-invalid"), this.$validationSlot.classList.remove("error", "success"), this.$labelSlot.classList.remove("error", "success"), this.$el.style.backgroundImage = ""), this.swapLabels(e, t);
|
|
240
520
|
}
|
|
241
521
|
swapLabels(e, t) {
|
|
242
|
-
const
|
|
243
|
-
e !== "error" && t === "error" ?
|
|
522
|
+
const s = this.shadowRoot.querySelector("#container");
|
|
523
|
+
e !== "error" && t === "error" ? s.insertBefore(this.$validationSlot, this.$labelHelper) : e === "error" && t !== "error" && s.insertBefore(this.$labelHelper, this.$validationSlot);
|
|
244
524
|
}
|
|
245
525
|
formData() {
|
|
246
526
|
if (this.$el.name) {
|
|
@@ -299,7 +579,7 @@ class s extends m {
|
|
|
299
579
|
return this.shadowRoot.querySelector("#label-helper");
|
|
300
580
|
}
|
|
301
581
|
}
|
|
302
|
-
const
|
|
582
|
+
const h = class h extends l {
|
|
303
583
|
constructor() {
|
|
304
584
|
super();
|
|
305
585
|
}
|
|
@@ -332,10 +612,10 @@ const p = class p extends s {
|
|
|
332
612
|
return this.shadowRoot.querySelector("div");
|
|
333
613
|
}
|
|
334
614
|
};
|
|
335
|
-
|
|
336
|
-
let
|
|
337
|
-
customElements.get("px-input") || customElements.define("px-input",
|
|
338
|
-
const
|
|
615
|
+
h.nativeName = "input";
|
|
616
|
+
let c = h;
|
|
617
|
+
customElements.get("px-input") || customElements.define("px-input", c);
|
|
618
|
+
const f = class f extends l {
|
|
339
619
|
constructor() {
|
|
340
620
|
super();
|
|
341
621
|
}
|
|
@@ -343,10 +623,10 @@ const u = class u extends s {
|
|
|
343
623
|
return "<textarea></textarea>";
|
|
344
624
|
}
|
|
345
625
|
};
|
|
346
|
-
|
|
347
|
-
let
|
|
348
|
-
customElements.get("px-textarea") || customElements.define("px-textarea",
|
|
349
|
-
const
|
|
626
|
+
f.nativeName = "textarea";
|
|
627
|
+
let p = f;
|
|
628
|
+
customElements.get("px-textarea") || customElements.define("px-textarea", p);
|
|
629
|
+
const b = class b extends l {
|
|
350
630
|
template() {
|
|
351
631
|
return '<select><slot name="options"></slot></select>';
|
|
352
632
|
}
|
|
@@ -366,10 +646,10 @@ const h = class h extends s {
|
|
|
366
646
|
this.observer.disconnect();
|
|
367
647
|
}
|
|
368
648
|
};
|
|
369
|
-
|
|
370
|
-
let
|
|
371
|
-
customElements.get("px-select") || customElements.define("px-select",
|
|
372
|
-
const
|
|
649
|
+
b.nativeName = "select";
|
|
650
|
+
let d = b;
|
|
651
|
+
customElements.get("px-select") || customElements.define("px-select", d);
|
|
652
|
+
const g = class g extends l {
|
|
373
653
|
constructor() {
|
|
374
654
|
super();
|
|
375
655
|
}
|
|
@@ -396,12 +676,12 @@ const d = class d extends s {
|
|
|
396
676
|
return this.shadowRoot.querySelector('input[type="file"]');
|
|
397
677
|
}
|
|
398
678
|
};
|
|
399
|
-
|
|
400
|
-
let
|
|
401
|
-
customElements.get("px-fileupload") || customElements.define("px-fileupload",
|
|
679
|
+
g.nativeName = "input";
|
|
680
|
+
let u = g;
|
|
681
|
+
customElements.get("px-fileupload") || customElements.define("px-fileupload", u);
|
|
402
682
|
export {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
683
|
+
c as Input,
|
|
684
|
+
d as Select,
|
|
685
|
+
p as TextArea,
|
|
686
|
+
u as Upload
|
|
407
687
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-input",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.15",
|
|
4
4
|
"description": "Input component for the Proximus Design System",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "1a700b0912bd0d66df40a9177fb5ea7692d5596a",
|
|
31
31
|
"lerna": {
|
|
32
32
|
"command": {
|
|
33
33
|
"publish": {
|
|
@@ -35,7 +35,9 @@
|
|
|
35
35
|
"CHANGELOG.md",
|
|
36
36
|
"package.json",
|
|
37
37
|
"dist/*.js",
|
|
38
|
-
"dist
|
|
38
|
+
"dist/*.cjs",
|
|
39
|
+
"dist/css/**/*.css",
|
|
40
|
+
"dist/js/**/*.js"
|
|
39
41
|
]
|
|
40
42
|
}
|
|
41
43
|
}
|