@proximus/lavender-selectablebox 2.0.0-alpha.19 → 2.0.0-alpha.190
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/SelectableBox.d.ts +4 -0
- package/dist/SelectableBoxCheckbox.d.ts +8 -6
- package/dist/SelectableBoxRadio.d.ts +11 -6
- package/dist/clickEventGuards.d.ts +1 -0
- package/dist/index.es.js +870 -926
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,426 +1,416 @@
|
|
|
1
|
-
import { WithExtraAttributes as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
set nogap(t) {
|
|
415
|
-
t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
customElements.get("px-spacer") || customElements.define("px-spacer", L);
|
|
419
|
-
const D = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", p = new CSSStyleSheet();
|
|
420
|
-
p.replaceSync(D);
|
|
421
|
-
class j extends n {
|
|
422
|
-
constructor() {
|
|
423
|
-
super(p), this.template = (t) => `
|
|
1
|
+
import { AttributeBreakpointHandlerDelegate as e, WithExtraAttributes as t, backgroundColorValues as n, booleanPropertyToAttributeSetter as r, checkName as i, gapValues as a, log as o, propertyToAttributeSetter as s } from "@proximus/lavender-common";
|
|
2
|
+
//#region ../Layout/src/Stack.css?inline
|
|
3
|
+
var c = ":host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}", l = new CSSStyleSheet();
|
|
4
|
+
l.replaceSync(c);
|
|
5
|
+
var u = [
|
|
6
|
+
"",
|
|
7
|
+
"default",
|
|
8
|
+
"row",
|
|
9
|
+
"row-reverse",
|
|
10
|
+
"column",
|
|
11
|
+
"column-reverse"
|
|
12
|
+
], d = [
|
|
13
|
+
"",
|
|
14
|
+
"default",
|
|
15
|
+
"stretch",
|
|
16
|
+
"flex-start",
|
|
17
|
+
"start",
|
|
18
|
+
"flex-end",
|
|
19
|
+
"end",
|
|
20
|
+
"center",
|
|
21
|
+
"baseline"
|
|
22
|
+
], f = [
|
|
23
|
+
"",
|
|
24
|
+
"default",
|
|
25
|
+
"flex-start",
|
|
26
|
+
"start",
|
|
27
|
+
"flex-end",
|
|
28
|
+
"end",
|
|
29
|
+
"center",
|
|
30
|
+
"space-between",
|
|
31
|
+
"space-around",
|
|
32
|
+
"space-evenly"
|
|
33
|
+
], p = [
|
|
34
|
+
"",
|
|
35
|
+
"default",
|
|
36
|
+
"nowrap",
|
|
37
|
+
"wrap",
|
|
38
|
+
"wrap-reverse"
|
|
39
|
+
], m = [
|
|
40
|
+
"",
|
|
41
|
+
"visible",
|
|
42
|
+
"hidden",
|
|
43
|
+
"scroll",
|
|
44
|
+
"auto"
|
|
45
|
+
], h = class extends t {
|
|
46
|
+
constructor() {
|
|
47
|
+
super(l), this.overflowXAttributeDelegate = new e(this, "overflow-x", (e) => e, "--overflow-x"), this.template = "<div class=\"flex-container\">\n <slot></slot>\n </div>", this.shadowRoot.innerHTML = this.template;
|
|
48
|
+
}
|
|
49
|
+
connectedCallback() {
|
|
50
|
+
this.hasAttribute("direction") || (this.direction = "row"), this.hasAttribute("gap") || (this.gap = "none"), this.hasAttribute("align-items") || (this.alignItems = "stretch"), this.hasAttribute("justify-content") || (this.justifyContent = "flex-start"), this.hasAttribute("wrap") || (this.wrap = "nowrap"), this.hasAttribute("overflow-x") || this.overflowXAttributeDelegate.init("visible");
|
|
51
|
+
}
|
|
52
|
+
static get observedAttributes() {
|
|
53
|
+
return [
|
|
54
|
+
...super.observedAttributes,
|
|
55
|
+
"direction",
|
|
56
|
+
"direction--mobile",
|
|
57
|
+
"direction--tablet",
|
|
58
|
+
"direction--laptop",
|
|
59
|
+
"direction--desktop",
|
|
60
|
+
"gap",
|
|
61
|
+
"gap--mobile",
|
|
62
|
+
"gap--tablet",
|
|
63
|
+
"gap--laptop",
|
|
64
|
+
"gap--desktop",
|
|
65
|
+
"justify-content",
|
|
66
|
+
"justify-content--mobile",
|
|
67
|
+
"justify-content--tablet",
|
|
68
|
+
"justify-content--laptop",
|
|
69
|
+
"justify-content--desktop",
|
|
70
|
+
"align-items",
|
|
71
|
+
"align-items--mobile",
|
|
72
|
+
"align-items--tablet",
|
|
73
|
+
"align-items--laptop",
|
|
74
|
+
"align-items--desktop",
|
|
75
|
+
"wrap",
|
|
76
|
+
"wrap--mobile",
|
|
77
|
+
"wrap--tablet",
|
|
78
|
+
"wrap--laptop",
|
|
79
|
+
"wrap--desktop",
|
|
80
|
+
"overflow-x",
|
|
81
|
+
"overflow-x--mobile",
|
|
82
|
+
"overflow-x--tablet",
|
|
83
|
+
"overflow-x--laptop",
|
|
84
|
+
"overflow-x--desktop"
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
attributeChangedCallback(e, t, n) {
|
|
88
|
+
switch (e) {
|
|
89
|
+
case "gap":
|
|
90
|
+
case "gap--mobile":
|
|
91
|
+
case "gap--tablet":
|
|
92
|
+
case "gap--laptop":
|
|
93
|
+
case "gap--desktop":
|
|
94
|
+
this.updateFlexProperties(e, t, n, a);
|
|
95
|
+
break;
|
|
96
|
+
case "justify-content":
|
|
97
|
+
case "justify-content--mobile":
|
|
98
|
+
case "justify-content--tablet":
|
|
99
|
+
case "justify-content--laptop":
|
|
100
|
+
case "justify-content--desktop":
|
|
101
|
+
this.updateFlexProperties(e, t, n, f);
|
|
102
|
+
break;
|
|
103
|
+
case "align-items":
|
|
104
|
+
case "align-items--mobile":
|
|
105
|
+
case "align-items--tablet":
|
|
106
|
+
case "align-items--laptop":
|
|
107
|
+
case "align-items--desktop":
|
|
108
|
+
this.updateFlexProperties(e, t, n, d);
|
|
109
|
+
break;
|
|
110
|
+
case "wrap":
|
|
111
|
+
case "wrap--mobile":
|
|
112
|
+
case "wrap--tablet":
|
|
113
|
+
case "wrap--laptop":
|
|
114
|
+
case "wrap--desktop":
|
|
115
|
+
this.updateFlexProperties(e, t, n, p);
|
|
116
|
+
break;
|
|
117
|
+
case "direction":
|
|
118
|
+
case "direction--mobile":
|
|
119
|
+
case "direction--tablet":
|
|
120
|
+
case "direction--laptop":
|
|
121
|
+
case "direction--desktop":
|
|
122
|
+
this.updateFlexProperties(e, t, n, u);
|
|
123
|
+
break;
|
|
124
|
+
case "overflow-x":
|
|
125
|
+
case "overflow-x--mobile":
|
|
126
|
+
case "overflow-x--tablet":
|
|
127
|
+
case "overflow-x--laptop":
|
|
128
|
+
case "overflow-x--desktop":
|
|
129
|
+
this.updateOverflowX(e, t, n, m);
|
|
130
|
+
break;
|
|
131
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
updateOverflowX(e, t, n, r) {
|
|
135
|
+
if (!i(r, n)) {
|
|
136
|
+
o(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
140
|
+
}
|
|
141
|
+
updateFlexProperties(e, t, n, r) {
|
|
142
|
+
this.checkName(r, n) || o(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
143
|
+
let i = e.indexOf("--") > -1, a = i ? e.split("--")[0] : e, s = [];
|
|
144
|
+
if (!i) this.getAttribute(a + "--mobile") || s.push("mobile"), this.getAttribute(a + "--tablet") || s.push("tablet"), this.getAttribute(a + "--laptop") || s.push("laptop"), this.getAttribute(a + "--desktop") || s.push("desktop"), s.forEach((e) => {
|
|
145
|
+
this.updateStyle(a, e, t, r), this.updateStyle(a, e, n, r);
|
|
146
|
+
});
|
|
147
|
+
else {
|
|
148
|
+
let i = e.split("--")[1];
|
|
149
|
+
this.updateStyle(a, i, t, r), this.updateStyle(a, i, n, r);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
updateStyle(e, t, n, r) {
|
|
153
|
+
n && (e === "gap" && r && r.includes(n) ? (this.$el.style.setProperty(`--flex-${e}--${t}-value`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`), this.style.setProperty(`--host-gap--${t}`, `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`)) : this.$el.style.setProperty(`--flex-${e}--${t}-value`, n));
|
|
154
|
+
}
|
|
155
|
+
get direction() {
|
|
156
|
+
return this.getAttribute("direction");
|
|
157
|
+
}
|
|
158
|
+
set direction(e) {
|
|
159
|
+
s(this, "direction", e);
|
|
160
|
+
}
|
|
161
|
+
get directionMobile() {
|
|
162
|
+
return this.getAttribute("direction--mobile");
|
|
163
|
+
}
|
|
164
|
+
set directionMobile(e) {
|
|
165
|
+
s(this, "direction--mobile", e);
|
|
166
|
+
}
|
|
167
|
+
get directionTablet() {
|
|
168
|
+
return this.getAttribute("direction--tablet");
|
|
169
|
+
}
|
|
170
|
+
set directionTablet(e) {
|
|
171
|
+
s(this, "direction--tablet", e);
|
|
172
|
+
}
|
|
173
|
+
get directionLaptop() {
|
|
174
|
+
return this.getAttribute("direction--laptop");
|
|
175
|
+
}
|
|
176
|
+
set directionLaptop(e) {
|
|
177
|
+
s(this, "direction--laptop", e);
|
|
178
|
+
}
|
|
179
|
+
get directionDesktop() {
|
|
180
|
+
return this.getAttribute("direction--desktop");
|
|
181
|
+
}
|
|
182
|
+
set directionDesktop(e) {
|
|
183
|
+
s(this, "direction--desktop", e);
|
|
184
|
+
}
|
|
185
|
+
get gap() {
|
|
186
|
+
return this.getAttribute("gap");
|
|
187
|
+
}
|
|
188
|
+
set gap(e) {
|
|
189
|
+
s(this, "gap", e);
|
|
190
|
+
}
|
|
191
|
+
get gapMobile() {
|
|
192
|
+
return this.getAttribute("gap--mobile");
|
|
193
|
+
}
|
|
194
|
+
set gapMobile(e) {
|
|
195
|
+
s(this, "gap--mobile", e);
|
|
196
|
+
}
|
|
197
|
+
get gapTablet() {
|
|
198
|
+
return this.getAttribute("gap--tablet");
|
|
199
|
+
}
|
|
200
|
+
set gapTablet(e) {
|
|
201
|
+
s(this, "gap--tablet", e);
|
|
202
|
+
}
|
|
203
|
+
get gapLaptop() {
|
|
204
|
+
return this.getAttribute("gap--laptop");
|
|
205
|
+
}
|
|
206
|
+
set gapLaptop(e) {
|
|
207
|
+
s(this, "gap--laptop", e);
|
|
208
|
+
}
|
|
209
|
+
get gapDesktop() {
|
|
210
|
+
return this.getAttribute("gap--desktop");
|
|
211
|
+
}
|
|
212
|
+
set gapDesktop(e) {
|
|
213
|
+
s(this, "gap--desktop", e);
|
|
214
|
+
}
|
|
215
|
+
get justifyContent() {
|
|
216
|
+
return this.getAttribute("justify-content");
|
|
217
|
+
}
|
|
218
|
+
set justifyContent(e) {
|
|
219
|
+
s(this, "justify-content", e);
|
|
220
|
+
}
|
|
221
|
+
get justifyContentMobile() {
|
|
222
|
+
return this.getAttribute("justify-content--mobile");
|
|
223
|
+
}
|
|
224
|
+
set justifyContentMobile(e) {
|
|
225
|
+
s(this, "justify-content--mobile", e);
|
|
226
|
+
}
|
|
227
|
+
get justifyContentTablet() {
|
|
228
|
+
return this.getAttribute("justify-content--tablet");
|
|
229
|
+
}
|
|
230
|
+
set justifyContentTablet(e) {
|
|
231
|
+
s(this, "justify-content--tablet", e);
|
|
232
|
+
}
|
|
233
|
+
get justifyContentLaptop() {
|
|
234
|
+
return this.getAttribute("justify-content--laptop");
|
|
235
|
+
}
|
|
236
|
+
set justifyContentLaptop(e) {
|
|
237
|
+
s(this, "justify-content--laptop", e);
|
|
238
|
+
}
|
|
239
|
+
get justifyContentDesktop() {
|
|
240
|
+
return this.getAttribute("justify-content--desktop");
|
|
241
|
+
}
|
|
242
|
+
set justifyContentDesktop(e) {
|
|
243
|
+
s(this, "justify-content--desktop", e);
|
|
244
|
+
}
|
|
245
|
+
get alignItems() {
|
|
246
|
+
return this.getAttribute("align-items");
|
|
247
|
+
}
|
|
248
|
+
set alignItems(e) {
|
|
249
|
+
s(this, "align-items", e);
|
|
250
|
+
}
|
|
251
|
+
get alignItemsMobile() {
|
|
252
|
+
return this.getAttribute("align-items--mobile");
|
|
253
|
+
}
|
|
254
|
+
set alignItemsMobile(e) {
|
|
255
|
+
s(this, "align-items--mobile", e);
|
|
256
|
+
}
|
|
257
|
+
get alignItemsTablet() {
|
|
258
|
+
return this.getAttribute("align-items--tablet");
|
|
259
|
+
}
|
|
260
|
+
set alignItemsTablet(e) {
|
|
261
|
+
s(this, "align-items--tablet", e);
|
|
262
|
+
}
|
|
263
|
+
get alignItemsLaptop() {
|
|
264
|
+
return this.getAttribute("align-items--laptop");
|
|
265
|
+
}
|
|
266
|
+
set alignItemsLaptop(e) {
|
|
267
|
+
s(this, "align-items--laptop", e);
|
|
268
|
+
}
|
|
269
|
+
get alignItemsDesktop() {
|
|
270
|
+
return this.getAttribute("align-items--desktop");
|
|
271
|
+
}
|
|
272
|
+
set alignItemsDesktop(e) {
|
|
273
|
+
s(this, "align-items--desktop", e);
|
|
274
|
+
}
|
|
275
|
+
get wrap() {
|
|
276
|
+
return this.getAttribute("wrap");
|
|
277
|
+
}
|
|
278
|
+
set wrap(e) {
|
|
279
|
+
s(this, "wrap", e);
|
|
280
|
+
}
|
|
281
|
+
get wrapMobile() {
|
|
282
|
+
return this.getAttribute("wrap--mobile");
|
|
283
|
+
}
|
|
284
|
+
set wrapMobile(e) {
|
|
285
|
+
s(this, "wrap--mobile", e);
|
|
286
|
+
}
|
|
287
|
+
get wrapTablet() {
|
|
288
|
+
return this.getAttribute("wrap--tablet");
|
|
289
|
+
}
|
|
290
|
+
set wrapTablet(e) {
|
|
291
|
+
s(this, "wrap--tablet", e);
|
|
292
|
+
}
|
|
293
|
+
get wrapLaptop() {
|
|
294
|
+
return this.getAttribute("wrap--laptop");
|
|
295
|
+
}
|
|
296
|
+
set wrapLaptop(e) {
|
|
297
|
+
s(this, "wrap--laptop", e);
|
|
298
|
+
}
|
|
299
|
+
get wrapDesktop() {
|
|
300
|
+
return this.getAttribute("wrap--desktop");
|
|
301
|
+
}
|
|
302
|
+
set wrapDesktop(e) {
|
|
303
|
+
s(this, "wrap--desktop", e);
|
|
304
|
+
}
|
|
305
|
+
get overflowX() {
|
|
306
|
+
return this.getAttribute("overflow-x");
|
|
307
|
+
}
|
|
308
|
+
set overflowX(e) {
|
|
309
|
+
s(this, "overflow-x", e);
|
|
310
|
+
}
|
|
311
|
+
get overflowXMobile() {
|
|
312
|
+
return this.getAttribute("overflow-x--mobile");
|
|
313
|
+
}
|
|
314
|
+
set overflowXMobile(e) {
|
|
315
|
+
s(this, "overflow-x--mobile", e);
|
|
316
|
+
}
|
|
317
|
+
get overflowXTablet() {
|
|
318
|
+
return this.getAttribute("overflow-x--tablet");
|
|
319
|
+
}
|
|
320
|
+
set overflowXTablet(e) {
|
|
321
|
+
s(this, "overflow-x--tablet", e);
|
|
322
|
+
}
|
|
323
|
+
get overflowXLaptop() {
|
|
324
|
+
return this.getAttribute("overflow-x--laptop");
|
|
325
|
+
}
|
|
326
|
+
set overflowXLaptop(e) {
|
|
327
|
+
s(this, "overflow-x--laptop", e);
|
|
328
|
+
}
|
|
329
|
+
get overflowXDesktop() {
|
|
330
|
+
return this.getAttribute("overflow-x--desktop");
|
|
331
|
+
}
|
|
332
|
+
set overflowXDesktop(e) {
|
|
333
|
+
s(this, "overflow-x--desktop", e);
|
|
334
|
+
}
|
|
335
|
+
get $el() {
|
|
336
|
+
return this.shadowRoot.querySelector(".flex-container");
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
customElements.get("px-stack") || customElements.define("px-stack", h);
|
|
340
|
+
var g = class extends h {
|
|
341
|
+
constructor() {
|
|
342
|
+
super();
|
|
343
|
+
}
|
|
344
|
+
connectedCallback() {
|
|
345
|
+
super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", g);
|
|
349
|
+
var _ = class extends h {
|
|
350
|
+
constructor() {
|
|
351
|
+
super();
|
|
352
|
+
}
|
|
353
|
+
connectedCallback() {
|
|
354
|
+
super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", _);
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region ../Layout/src/Spacer.ts
|
|
360
|
+
var v = class extends HTMLElement {
|
|
361
|
+
constructor() {
|
|
362
|
+
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
363
|
+
}
|
|
364
|
+
static get observedAttributes() {
|
|
365
|
+
return ["grow", "nogap"];
|
|
366
|
+
}
|
|
367
|
+
attributeChangedCallback(e, t, n) {
|
|
368
|
+
e === "grow" && (this.growValue = n || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
|
|
369
|
+
}
|
|
370
|
+
connectedCallback() {
|
|
371
|
+
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && this.parentElement && (this.resizeObserver = new ResizeObserver(() => {
|
|
372
|
+
this.handleSizeChange();
|
|
373
|
+
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
|
|
374
|
+
}
|
|
375
|
+
disconnectedCallback() {
|
|
376
|
+
this.resizeObserver?.disconnect(), this.recheckHandle &&= (cancelAnimationFrame(this.recheckHandle), void 0);
|
|
377
|
+
}
|
|
378
|
+
get grow() {
|
|
379
|
+
return this.getAttribute("grow");
|
|
380
|
+
}
|
|
381
|
+
set grow(e) {
|
|
382
|
+
this.setAttribute("grow", `${e}`);
|
|
383
|
+
}
|
|
384
|
+
scheduleRecheck() {
|
|
385
|
+
this.recheckHandle && cancelAnimationFrame(this.recheckHandle), this.recheckHandle = requestAnimationFrame(() => {
|
|
386
|
+
this.recheckHandle = void 0, this.recalculateVisibility();
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
recalculateVisibility() {
|
|
390
|
+
this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
|
|
391
|
+
}
|
|
392
|
+
handleSizeChange() {
|
|
393
|
+
let e = this.getBoundingClientRect(), t = e.width === 0 && !this.isVertical || e.height === 0 && this.isVertical;
|
|
394
|
+
this.isZeroSized !== t && (this.isZeroSized = t, this.updateParticipation());
|
|
395
|
+
}
|
|
396
|
+
updateParticipation() {
|
|
397
|
+
this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
|
|
398
|
+
}
|
|
399
|
+
get nogap() {
|
|
400
|
+
return this.hasAttribute("nogap");
|
|
401
|
+
}
|
|
402
|
+
set nogap(e) {
|
|
403
|
+
e ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", v);
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region ../Layout/src/Page.css?inline
|
|
409
|
+
var y = ":host{box-sizing:border-box;display:block}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", b = new CSSStyleSheet();
|
|
410
|
+
b.replaceSync(y);
|
|
411
|
+
var x = class extends t {
|
|
412
|
+
constructor() {
|
|
413
|
+
super(b), this.template = () => `
|
|
424
414
|
<px-container border-radius="none" padding="none">
|
|
425
415
|
<px-vstack>
|
|
426
416
|
<px-container id="header-container" border-radius="none">
|
|
@@ -457,15 +447,6 @@ class j extends n {
|
|
|
457
447
|
<px-spacer></px-spacer>
|
|
458
448
|
</px-hstack>
|
|
459
449
|
</px-container>
|
|
460
|
-
${t ? ` <px-hstack>
|
|
461
|
-
<px-spacer></px-spacer>
|
|
462
|
-
<px-container border-radius="none" box-shadow="xl" id="image-sticky-box" border="s" grow="${this.grow}" basis="${this.basis}" border-radius="m">
|
|
463
|
-
<px-vstack gap="s">
|
|
464
|
-
<slot name="image-sticky-container"></slot>
|
|
465
|
-
</px-vstack>
|
|
466
|
-
</px-container>
|
|
467
|
-
<px-spacer></px-spacer>
|
|
468
|
-
</px-hstack>` : ""}
|
|
469
450
|
<px-container
|
|
470
451
|
id="body-container"
|
|
471
452
|
id="main"
|
|
@@ -522,499 +503,462 @@ class j extends n {
|
|
|
522
503
|
</px-container>
|
|
523
504
|
</px-vstack>
|
|
524
505
|
</px-container>
|
|
525
|
-
`, this.shadowRoot.innerHTML = this.template(
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
class
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
<slot name="media" slot="media"></slot>
|
|
687
|
-
<px-checkbox
|
|
688
|
-
slot="action" inert
|
|
689
|
-
></px-checkbox>
|
|
690
|
-
<slot name="icon" slot="icon"></slot>
|
|
691
|
-
<slot name="logo" slot="logo"></slot>
|
|
692
|
-
<slot name="title" slot="title"></slot>
|
|
693
|
-
<slot name="description" slot="description"></slot>
|
|
694
|
-
<slot name="content" slot="content"></slot>
|
|
695
|
-
<slot name="footer" slot="footer"></slot>
|
|
696
|
-
</px-selectable-box>
|
|
697
|
-
</div>
|
|
698
|
-
`;
|
|
699
|
-
}
|
|
700
|
-
constructor() {
|
|
701
|
-
var t;
|
|
702
|
-
super(f), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
|
|
703
|
-
}
|
|
704
|
-
connectedCallback() {
|
|
705
|
-
this.name && this.$checkbox.setAttribute("name", this.name), this.value && this.$checkbox.setAttribute("value", this.value), this.role = "checkbox", this.internals && (this.internals.role = "checkbox", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`, this.tabIndex = 0, this.toggleFooterVisibility(), this.$slotFooter.addEventListener(
|
|
706
|
-
"slotchange",
|
|
707
|
-
this.toggleFooterVisibility
|
|
708
|
-
), this.addEventListener("mouseover", this.setHoverAttribute), this.addEventListener("mouseout", this.removeHoverAttribute), this.addEventListener("keypress", this.setKeypressEvent), this.addEventListener("click", this.setClickEvent), this.hasAttribute("checked") && (this.checked = !0);
|
|
709
|
-
}
|
|
710
|
-
static get observedAttributes() {
|
|
711
|
-
return [
|
|
712
|
-
...super.observedAttributes,
|
|
713
|
-
"inverted",
|
|
714
|
-
"name",
|
|
715
|
-
"value",
|
|
716
|
-
"checked",
|
|
717
|
-
"disabled"
|
|
718
|
-
];
|
|
719
|
-
}
|
|
720
|
-
attributeChangedCallback(t, e, i) {
|
|
721
|
-
if (e !== i)
|
|
722
|
-
switch (t) {
|
|
723
|
-
case "inverted":
|
|
724
|
-
this.inverted ? (this.$selectableBox.setAttribute("inverted", ""), this.$checkbox.setAttribute("inverted", "")) : (this.$selectableBox.removeAttribute("inverted"), this.$checkbox.removeAttribute("inverted"));
|
|
725
|
-
break;
|
|
726
|
-
case "name":
|
|
727
|
-
case "value":
|
|
728
|
-
this.$checkbox && this.$checkbox.setAttribute(t, i);
|
|
729
|
-
break;
|
|
730
|
-
case "disabled":
|
|
731
|
-
this.handleDisabledAttributeChange(i !== null);
|
|
732
|
-
break;
|
|
733
|
-
case "checked":
|
|
734
|
-
this.handleCheckedAttributeChange(i);
|
|
735
|
-
break;
|
|
736
|
-
default:
|
|
737
|
-
super.attributeChangedCallback(t, e, i);
|
|
738
|
-
break;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
disconnectedCallback() {
|
|
742
|
-
this.$slotFooter.removeEventListener(
|
|
743
|
-
"slotchange",
|
|
744
|
-
this.toggleFooterVisibility
|
|
745
|
-
), this.removeEventListener("mouseover", this.setHoverAttribute), this.removeEventListener("mouseout", this.removeHoverAttribute), this.removeEventListener("keypress", this.setKeypressEvent), this.removeEventListener("click", this.setClickEvent);
|
|
746
|
-
}
|
|
747
|
-
removeHoverAttribute() {
|
|
748
|
-
this.$checkbox.removeAttribute("hover");
|
|
749
|
-
}
|
|
750
|
-
setHoverAttribute() {
|
|
751
|
-
this.$checkbox.setAttribute("hover", "");
|
|
752
|
-
}
|
|
753
|
-
setKeypressEvent(t) {
|
|
754
|
-
switch (t.stopPropagation(), t.preventDefault(), t.code) {
|
|
755
|
-
case "Space":
|
|
756
|
-
this.click();
|
|
757
|
-
break;
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
setClickEvent(t) {
|
|
761
|
-
this.checked = !this.checked, t.stopPropagation(), t.preventDefault();
|
|
762
|
-
}
|
|
763
|
-
toggleFooterVisibility() {
|
|
764
|
-
this.$slottedFooter ? this.$selectableBox.removeAttribute("hide-footer") : this.$selectableBox.setAttribute("hide-footer", "");
|
|
765
|
-
}
|
|
766
|
-
handleDisabledAttributeChange(t) {
|
|
767
|
-
t ? (this.disabled = !0, this.internals && (this.internals.ariaDisabled = "true"), this.ariaDisabled = "true", this.$checkbox.setAttribute("disabled", "")) : (this.disabled = !1, this.internals && (this.internals.ariaDisabled = "false"), this.ariaDisabled = "false", this.$checkbox.removeAttribute("disabled"));
|
|
768
|
-
}
|
|
769
|
-
handleCheckedAttributeChange(t) {
|
|
770
|
-
var e;
|
|
771
|
-
(e = this.internals) == null || e.setFormValue(this.formData()), t === null ? (this.internals && (this.internals.ariaChecked = "false"), this.ariaChecked = "false", this.checked = !1, this.$checkbox && this.$checkbox.removeAttribute("checked")) : (this.internals && (this.internals.ariaChecked = "true"), this.ariaChecked = "true", this.checked = !0, this.$checkbox && this.$checkbox.setAttribute("checked", ""), this.dispatchEvent(
|
|
772
|
-
new Event("change", {
|
|
773
|
-
bubbles: !0,
|
|
774
|
-
composed: !0
|
|
775
|
-
// Allow the event to pass through shadow DOM boundaries
|
|
776
|
-
})
|
|
777
|
-
));
|
|
778
|
-
}
|
|
779
|
-
// Form-associated callbacks
|
|
780
|
-
static get formAssociated() {
|
|
781
|
-
return !0;
|
|
782
|
-
}
|
|
783
|
-
// Set default behavior when the element is attached to a form
|
|
784
|
-
formResetCallback() {
|
|
785
|
-
this.checked = !1;
|
|
786
|
-
}
|
|
787
|
-
formStateRestoreCallback(t) {
|
|
788
|
-
this.checked = t;
|
|
789
|
-
}
|
|
790
|
-
formData() {
|
|
791
|
-
if (this.name) {
|
|
792
|
-
const t = new FormData(), e = this.getAttribute("name");
|
|
793
|
-
return e && (this.checked ? t.set(e, this.value) : t.delete(e)), t;
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
get $el() {
|
|
797
|
-
return this.shadowRoot.querySelector(
|
|
798
|
-
".selectable-box-checkbox"
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
get $selectableBox() {
|
|
802
|
-
return this.shadowRoot.querySelector("px-selectable-box");
|
|
803
|
-
}
|
|
804
|
-
get $checkbox() {
|
|
805
|
-
return this.shadowRoot.querySelector("px-checkbox");
|
|
806
|
-
}
|
|
807
|
-
get $slotFooter() {
|
|
808
|
-
return this.shadowRoot.querySelector(
|
|
809
|
-
'slot[name="footer"]'
|
|
810
|
-
);
|
|
811
|
-
}
|
|
812
|
-
get $slottedFooter() {
|
|
813
|
-
return this.querySelector('[slot="footer"]');
|
|
814
|
-
}
|
|
815
|
-
get inverted() {
|
|
816
|
-
return this.hasAttribute("inverted");
|
|
817
|
-
}
|
|
818
|
-
set inverted(t) {
|
|
819
|
-
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
820
|
-
}
|
|
821
|
-
get checked() {
|
|
822
|
-
return this.hasAttribute("checked");
|
|
823
|
-
}
|
|
824
|
-
set checked(t) {
|
|
825
|
-
t ? this.setAttribute("checked", "") : this.removeAttribute("checked");
|
|
826
|
-
}
|
|
827
|
-
get name() {
|
|
828
|
-
return this.getAttribute("name");
|
|
829
|
-
}
|
|
830
|
-
set name(t) {
|
|
831
|
-
t ? this.setAttribute("name", t) : this.removeAttribute("name");
|
|
832
|
-
}
|
|
833
|
-
get disabled() {
|
|
834
|
-
return this.hasAttribute("disabled");
|
|
835
|
-
}
|
|
836
|
-
set disabled(t) {
|
|
837
|
-
t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
838
|
-
}
|
|
839
|
-
get value() {
|
|
840
|
-
return this.getAttribute("value");
|
|
841
|
-
}
|
|
842
|
-
set value(t) {
|
|
843
|
-
t ? this.setAttribute("value", t) : this.removeAttribute("value");
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
customElements.get("px-selectable-box-checkbox") || customElements.define("px-selectable-box-checkbox", H);
|
|
847
|
-
const x = new CSSStyleSheet();
|
|
848
|
-
x.replaceSync(g);
|
|
849
|
-
class q extends n {
|
|
850
|
-
template() {
|
|
851
|
-
return `
|
|
852
|
-
<div class="selectable-box-radio">
|
|
853
|
-
<px-selectable-box>
|
|
854
|
-
<slot name="media" slot="media"></slot>
|
|
855
|
-
<px-radio
|
|
856
|
-
slot="action" inert
|
|
857
|
-
></px-radio>
|
|
858
|
-
<slot name="icon" slot="icon"></slot>
|
|
859
|
-
<slot name="logo" slot="logo"></slot>
|
|
860
|
-
<slot name="title" slot="title"></slot>
|
|
861
|
-
<slot name="description" slot="description"></slot>
|
|
862
|
-
<slot name="content" slot="content"></slot>
|
|
863
|
-
<slot name="footer" slot="footer"></slot>
|
|
864
|
-
</px-selectable-box>
|
|
865
|
-
</div>
|
|
866
|
-
`;
|
|
867
|
-
}
|
|
868
|
-
constructor() {
|
|
869
|
-
var t;
|
|
870
|
-
super(x), this.shadowRoot.innerHTML = this.template(), this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
|
|
871
|
-
}
|
|
872
|
-
connectedCallback() {
|
|
873
|
-
var t;
|
|
874
|
-
this.name && this.$radio.setAttribute("name", this.name), this.value && this.$radio.setAttribute("value", this.value), this.role = "radio", this.internals && (this.internals.role = "radio", this.internals.ariaChecked = `${this.checked}`), this.ariaChecked = `${this.checked}`, this.tabIndex = ((t = this.parentElement) == null ? void 0 : t.firstElementChild) === this ? 0 : -1, this.toggleFooterVisibility(), this.$slotFooter.addEventListener(
|
|
875
|
-
"slotchange",
|
|
876
|
-
this.toggleFooterVisibility
|
|
877
|
-
), this.addEventListener("mouseover", this.setHoverAttribute), this.addEventListener("mouseout", this.removeHoverAttribute), this.addEventListener("keypress", this.setKeypressEvent), this.addEventListener("click", this.setClickEvent), this.hasAttribute("checked") && (this.checked = !0);
|
|
878
|
-
}
|
|
879
|
-
static get observedAttributes() {
|
|
880
|
-
return [
|
|
881
|
-
...super.observedAttributes,
|
|
882
|
-
"inverted",
|
|
883
|
-
"name",
|
|
884
|
-
"value",
|
|
885
|
-
"checked",
|
|
886
|
-
"disabled"
|
|
887
|
-
];
|
|
888
|
-
}
|
|
889
|
-
attributeChangedCallback(t, e, i) {
|
|
890
|
-
if (e !== i)
|
|
891
|
-
switch (t) {
|
|
892
|
-
case "inverted":
|
|
893
|
-
this.inverted ? (this.$selectableBox.setAttribute("inverted", ""), this.$radio.setAttribute("inverted", "")) : (this.$selectableBox.removeAttribute("inverted"), this.$radio.removeAttribute("inverted"));
|
|
894
|
-
break;
|
|
895
|
-
case "name":
|
|
896
|
-
case "value":
|
|
897
|
-
this.$radio && this.$radio.setAttribute(t, i);
|
|
898
|
-
break;
|
|
899
|
-
case "disabled":
|
|
900
|
-
this.handleDisabledAttributeChange(i !== null);
|
|
901
|
-
break;
|
|
902
|
-
case "checked":
|
|
903
|
-
this.handleCheckedAttributeChange(i);
|
|
904
|
-
break;
|
|
905
|
-
default:
|
|
906
|
-
super.attributeChangedCallback(t, e, i);
|
|
907
|
-
break;
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
disconnectedCallback() {
|
|
911
|
-
this.$slotFooter.removeEventListener(
|
|
912
|
-
"slotchange",
|
|
913
|
-
this.toggleFooterVisibility
|
|
914
|
-
), this.removeEventListener("mouseover", this.setHoverAttribute), this.removeEventListener("mouseout", this.removeHoverAttribute), this.removeEventListener("keypress", this.setKeypressEvent), this.removeEventListener("click", this.setClickEvent);
|
|
915
|
-
}
|
|
916
|
-
removeHoverAttribute() {
|
|
917
|
-
this.$radio.removeAttribute("hover");
|
|
918
|
-
}
|
|
919
|
-
setHoverAttribute() {
|
|
920
|
-
this.$radio.setAttribute("hover", "");
|
|
921
|
-
}
|
|
922
|
-
setKeypressEvent(t) {
|
|
923
|
-
switch (t.preventDefault(), t.code) {
|
|
924
|
-
case "Space":
|
|
925
|
-
this.click();
|
|
926
|
-
break;
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
setClickEvent(t) {
|
|
930
|
-
this.checked || (this.checked = !0), t.stopPropagation(), t.preventDefault();
|
|
931
|
-
}
|
|
932
|
-
toggleFooterVisibility() {
|
|
933
|
-
this.$slottedFooter ? this.$selectableBox.removeAttribute("hide-footer") : this.$selectableBox.setAttribute("hide-footer", "");
|
|
934
|
-
}
|
|
935
|
-
handleDisabledAttributeChange(t) {
|
|
936
|
-
t ? (this.disabled = !0, this.internals && (this.internals.ariaDisabled = "true"), this.ariaDisabled = "true", this.$radio.setAttribute("disabled", "")) : (this.disabled = !1, this.internals && (this.internals.ariaDisabled = "false"), this.ariaDisabled = "false", this.$radio.removeAttribute("disabled"));
|
|
937
|
-
}
|
|
938
|
-
handleCheckedAttributeChange(t) {
|
|
939
|
-
var e;
|
|
940
|
-
(e = this.internals) == null || e.setFormValue(this.formData()), t === null ? (this.internals && (this.internals.ariaChecked = "false"), this.ariaChecked = "false", this.tabIndex = -1, this.checked = !1, this.$radio && this.$radio.removeAttribute("checked")) : (this.internals && (this.internals.ariaChecked = "true"), this.ariaChecked = "true", this.tabIndex = 0, this.checked = !0, this.$radio && this.$radio.setAttribute("checked", ""), this.dispatchEvent(
|
|
941
|
-
new Event("change", {
|
|
942
|
-
bubbles: !0,
|
|
943
|
-
composed: !0
|
|
944
|
-
// Allow the event to pass through shadow DOM boundaries
|
|
945
|
-
})
|
|
946
|
-
));
|
|
947
|
-
}
|
|
948
|
-
// Form-associated callbacks
|
|
949
|
-
static get formAssociated() {
|
|
950
|
-
return !0;
|
|
951
|
-
}
|
|
952
|
-
// Set default behavior when the element is attached to a form
|
|
953
|
-
formResetCallback() {
|
|
954
|
-
this.checked = !1;
|
|
955
|
-
}
|
|
956
|
-
formStateRestoreCallback(t) {
|
|
957
|
-
this.checked = t;
|
|
958
|
-
}
|
|
959
|
-
formData() {
|
|
960
|
-
if (this.name) {
|
|
961
|
-
const t = new FormData(), e = this.getAttribute("name");
|
|
962
|
-
return e && (this.checked ? t.set(e, this.value) : t.delete(e)), t;
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
get $el() {
|
|
966
|
-
return this.shadowRoot.querySelector(
|
|
967
|
-
".selectable-box-radio"
|
|
968
|
-
);
|
|
969
|
-
}
|
|
970
|
-
get $selectableBox() {
|
|
971
|
-
return this.shadowRoot.querySelector("px-selectable-box");
|
|
972
|
-
}
|
|
973
|
-
get $radio() {
|
|
974
|
-
return this.shadowRoot.querySelector("px-radio");
|
|
975
|
-
}
|
|
976
|
-
get $slotFooter() {
|
|
977
|
-
return this.shadowRoot.querySelector(
|
|
978
|
-
'slot[name="footer"]'
|
|
979
|
-
);
|
|
980
|
-
}
|
|
981
|
-
get $slottedFooter() {
|
|
982
|
-
return this.querySelector('[slot="footer"]');
|
|
983
|
-
}
|
|
984
|
-
get inverted() {
|
|
985
|
-
return this.hasAttribute("inverted");
|
|
986
|
-
}
|
|
987
|
-
set inverted(t) {
|
|
988
|
-
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
989
|
-
}
|
|
990
|
-
get checked() {
|
|
991
|
-
return this.hasAttribute("checked");
|
|
992
|
-
}
|
|
993
|
-
set checked(t) {
|
|
994
|
-
t ? this.setAttribute("checked", "") : this.removeAttribute("checked");
|
|
995
|
-
}
|
|
996
|
-
get name() {
|
|
997
|
-
return this.getAttribute("name");
|
|
998
|
-
}
|
|
999
|
-
set name(t) {
|
|
1000
|
-
t ? this.setAttribute("name", t) : this.removeAttribute("name");
|
|
1001
|
-
}
|
|
1002
|
-
get disabled() {
|
|
1003
|
-
return this.hasAttribute("disabled");
|
|
1004
|
-
}
|
|
1005
|
-
set disabled(t) {
|
|
1006
|
-
t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
1007
|
-
}
|
|
1008
|
-
get value() {
|
|
1009
|
-
return this.getAttribute("value");
|
|
1010
|
-
}
|
|
1011
|
-
set value(t) {
|
|
1012
|
-
t ? this.setAttribute("value", t) : this.removeAttribute("value");
|
|
1013
|
-
}
|
|
506
|
+
`, this.shadowRoot.innerHTML = this.template();
|
|
507
|
+
}
|
|
508
|
+
static get observedAttributes() {
|
|
509
|
+
return [
|
|
510
|
+
...super.observedAttributes,
|
|
511
|
+
"background-image",
|
|
512
|
+
"gap",
|
|
513
|
+
"background-color",
|
|
514
|
+
"padding-vertical",
|
|
515
|
+
"padding-horizontal"
|
|
516
|
+
];
|
|
517
|
+
}
|
|
518
|
+
get $wideImage() {
|
|
519
|
+
return this.shadowRoot.querySelector("#image-box");
|
|
520
|
+
}
|
|
521
|
+
get $bodyVStackContainer() {
|
|
522
|
+
return this.shadowRoot.querySelector("#header-vstack-container");
|
|
523
|
+
}
|
|
524
|
+
get $bodyContainer() {
|
|
525
|
+
return this.shadowRoot.querySelector("#body-container");
|
|
526
|
+
}
|
|
527
|
+
get $contactContainer() {
|
|
528
|
+
return this.shadowRoot.querySelector("#contact-container");
|
|
529
|
+
}
|
|
530
|
+
get $footerContainer() {
|
|
531
|
+
return this.shadowRoot.querySelector("#footer-container");
|
|
532
|
+
}
|
|
533
|
+
get $headerContainer() {
|
|
534
|
+
return this.shadowRoot.querySelector("#header-container");
|
|
535
|
+
}
|
|
536
|
+
get $imageContainer() {
|
|
537
|
+
return this.shadowRoot.querySelector("#image-container");
|
|
538
|
+
}
|
|
539
|
+
get backgroundImage() {
|
|
540
|
+
return this.getAttribute("background-image");
|
|
541
|
+
}
|
|
542
|
+
get $main() {
|
|
543
|
+
return this.shadowRoot.querySelector("#main");
|
|
544
|
+
}
|
|
545
|
+
get backgroundColor() {
|
|
546
|
+
return this.getAttribute("background-color") || "none";
|
|
547
|
+
}
|
|
548
|
+
get paddingVertical() {
|
|
549
|
+
return this.getAttribute("padding-vertical");
|
|
550
|
+
}
|
|
551
|
+
get paddingHorizontal() {
|
|
552
|
+
return this.getAttribute("padding-horizontal");
|
|
553
|
+
}
|
|
554
|
+
set paddingVertical(e) {
|
|
555
|
+
this.setAttribute("padding-vertical", `${e}`);
|
|
556
|
+
}
|
|
557
|
+
set paddingHorizontal(e) {
|
|
558
|
+
this.setAttribute("padding-horizontal", `${e}`);
|
|
559
|
+
}
|
|
560
|
+
get gap() {
|
|
561
|
+
return this.getAttribute("gap");
|
|
562
|
+
}
|
|
563
|
+
connectedCallback() {
|
|
564
|
+
this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
|
|
565
|
+
}
|
|
566
|
+
attributeChangedCallback(e, t, r) {
|
|
567
|
+
if (t !== r) switch (e) {
|
|
568
|
+
case "background-image":
|
|
569
|
+
this.$imageContainer.setAttribute("background-image", r);
|
|
570
|
+
break;
|
|
571
|
+
case "gap":
|
|
572
|
+
this.$bodyVStackContainer.setAttribute("gap", r);
|
|
573
|
+
break;
|
|
574
|
+
case "background-color":
|
|
575
|
+
this.$bodyContainer.setAttribute("background-color", n.indexOf(r) > 0 ? r : "none");
|
|
576
|
+
break;
|
|
577
|
+
case "padding-vertical":
|
|
578
|
+
this.handlePaddingVerticalChange(r);
|
|
579
|
+
break;
|
|
580
|
+
case "padding-horizontal":
|
|
581
|
+
this.handlePaddingHorizontalChange(r);
|
|
582
|
+
break;
|
|
583
|
+
default: super.attributeChangedCallback(e, t, r);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
handlePaddingVerticalChange(e) {
|
|
587
|
+
this.$bodyContainer.paddingTop = e, this.$bodyContainer.paddingBottom = e;
|
|
588
|
+
}
|
|
589
|
+
handlePaddingHorizontalChange(e) {
|
|
590
|
+
this.$headerContainer.paddingLeft = e, this.$headerContainer.paddingRight = e, this.$bodyContainer.paddingLeft = e, this.$bodyContainer.paddingRight = e, this.$contactContainer.paddingLeft = e, this.$contactContainer.paddingRight = e, this.$footerContainer.paddingLeft = e, this.$footerContainer.paddingRight = e, this.$imageContainer.paddingLeft = e, this.$imageContainer.paddingRight = e;
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", x);
|
|
594
|
+
//#endregion
|
|
595
|
+
//#region src/selectable-box.css?inline
|
|
596
|
+
var S = ":host{font-family:var(--px-font-family);font-size:var(--px-font-size-base);display:block}:host *{box-sizing:border-box}.selectable-box{flex-direction:column;height:100%;display:flex}::slotted([slot=media]){width:100%;height:auto}.info{flex-grow:1;display:flex}.info .info__body{gap:var(--px-spacing-default-mobile);padding:var(--px-padding-s-mobile);flex-direction:column;flex:7 1 0;display:flex}.info .info__body .header{align-items:center;gap:var(--px-spacing-s-mobile);display:flex}.info .info__body .header ::slotted([slot=action]),.info .info__body .header ::slotted([slot=icon]),.info .info__body .header ::slotted([slot=logo]){flex-shrink:0}.info .info__body .header .titles{gap:var(--px-spacing-xs-mobile);flex-direction:column;display:flex}.info .info__body .header .titles ::slotted([slot=title]){font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-title);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default);flex-grow:1}.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-dimmed-default);flex-grow:1}.info .info__body ::slotted([slot=content]){color:var(--px-color-text-neutral-default)}.info .info__footer{padding:var(--px-padding-s-mobile);background:var(--px-color-background-container-default-default);text-align:center;flex:3 1 0;align-items:center;display:flex}:host([hide-footer]) .info .info__body{flex-basis:auto}:host([hide-footer]) .info__footer{display:none}:host([footer-position=bottom]) .info{flex-direction:column}:host([footer-position=bottom]) .info__body{flex-basis:auto}:host([footer-position=bottom]) .info__footer{flex:none;justify-content:center}:host([footer-position=right]) .info{flex-direction:row}:host([footer-position=right]) .info__body{flex:7 1 0}:host([footer-position=right]) .info__footer{flex:3 1 0;align-items:center;display:flex}@media screen and (width>=48rem){.info{flex-direction:column}.info .info__body{gap:var(--px-spacing-default-tablet);padding:var(--px-padding-s-tablet);flex-basis:auto}.info .info__body .header{gap:var(--px-spacing-s-tablet)}.info .info__body .header .titles{gap:var(--px-spacing-xs-tablet)}.info .info__body .header .titles ::slotted([slot=title]),.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-tablet)}.info .info__footer{padding:var(--px-padding-s-tablet);flex:none;justify-content:center}}@media screen and (width>=64.0625rem){.info .info__body{gap:var(--px-spacing-default-laptop);padding:var(--px-padding-s-laptop)}.info .info__body .header{gap:var(--px-spacing-s-laptop)}.info .info__body .header .titles{gap:var(--px-spacing-xs-laptop)}.info .info__body .header .titles ::slotted([slot=title]),.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-laptop)}.info .info__footer{padding:var(--px-padding-s-laptop)}}@media screen and (width>=90.0625rem){.info .info__body{gap:var(--px-spacing-default-desktop);padding:var(--px-padding-s-desktop)}.info .info__body .header{gap:var(--px-spacing-s-desktop)}.info .info__body .header .titles{gap:var(--px-spacing-xs-desktop)}.info .info__body .header .titles ::slotted([slot=title]),.info .info__body .header .titles ::slotted([slot=description]){font-size:var(--px-text-size-label-m-desktop)}.info .info__footer{padding:var(--px-padding-s-desktop)}}:host([inverted]) .info .info__body .header .titles ::slotted([slot=title]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info .info__body .header .titles ::slotted([slot=description]){color:var(--px-color-text-dimmed-inverted)}:host([inverted]) .info .info__body ::slotted([slot=content]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info .info__footer{background:var(--px-color-background-container-default-inverted)}", C = new CSSStyleSheet();
|
|
597
|
+
C.replaceSync(S);
|
|
598
|
+
var w = [
|
|
599
|
+
"",
|
|
600
|
+
"right",
|
|
601
|
+
"bottom"
|
|
602
|
+
], T = class extends t {
|
|
603
|
+
template() {
|
|
604
|
+
return "\n <div class=\"selectable-box\">\n <slot name=\"media\"></slot>\n <div class=\"info\">\n <div class=\"info__body\">\n <div class=\"header\">\n <slot name=\"action\"></slot>\n <slot name=\"icon\"></slot>\n <slot name=\"logo\"></slot>\n <div class=\"titles\">\n <slot name=\"title\"></slot>\n <slot name=\"description\"></slot>\n </div>\n </div>\n <slot name=\"content\"></slot>\n </div>\n <div class=\"info__footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n </div>\n ";
|
|
605
|
+
}
|
|
606
|
+
constructor() {
|
|
607
|
+
super(C), this.shadowRoot.innerHTML = this.template();
|
|
608
|
+
}
|
|
609
|
+
static get observedAttributes() {
|
|
610
|
+
return [
|
|
611
|
+
...super.observedAttributes,
|
|
612
|
+
"inverted",
|
|
613
|
+
"hide-footer",
|
|
614
|
+
"footer-position"
|
|
615
|
+
];
|
|
616
|
+
}
|
|
617
|
+
attributeChangedCallback(e, t, n) {
|
|
618
|
+
if (t !== n) switch (e) {
|
|
619
|
+
case "footer-position":
|
|
620
|
+
this.#e(n, w);
|
|
621
|
+
break;
|
|
622
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
#e(e, t) {
|
|
626
|
+
if (!i(t, e)) {
|
|
627
|
+
o(`
|
|
628
|
+
"${e}" is not a valid footer-position value for ${this.tagName.toLowerCase()}.
|
|
629
|
+
Allowed values are: "${t.join("\", \"")}".
|
|
630
|
+
`);
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
get $el() {
|
|
635
|
+
return this.shadowRoot.querySelector(".selectable-box");
|
|
636
|
+
}
|
|
637
|
+
get inverted() {
|
|
638
|
+
return this.hasAttribute("inverted");
|
|
639
|
+
}
|
|
640
|
+
set inverted(e) {
|
|
641
|
+
e ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
642
|
+
}
|
|
643
|
+
get hideFooter() {
|
|
644
|
+
return this.hasAttribute("hide-footer");
|
|
645
|
+
}
|
|
646
|
+
set hideFooter(e) {
|
|
647
|
+
e ? this.setAttribute("hide-footer", "") : this.removeAttribute("hide-footer");
|
|
648
|
+
}
|
|
649
|
+
get footerPosition() {
|
|
650
|
+
return this.getAttribute("footer-position") ?? "";
|
|
651
|
+
}
|
|
652
|
+
set footerPosition(e) {
|
|
653
|
+
e ? this.setAttribute("footer-position", e) : this.removeAttribute("footer-position");
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
customElements.get("px-selectable-box") || customElements.define("px-selectable-box", T);
|
|
657
|
+
//#endregion
|
|
658
|
+
//#region src/clickEventGuards.ts
|
|
659
|
+
var E = ["px-a", "px-button"];
|
|
660
|
+
function D(e, t, n = E) {
|
|
661
|
+
let r = new Set(n), i = e.composedPath();
|
|
662
|
+
for (let e of i) {
|
|
663
|
+
if (e === t) break;
|
|
664
|
+
if (e instanceof Element && r.has(e.tagName.toLowerCase())) return !0;
|
|
665
|
+
}
|
|
666
|
+
return !1;
|
|
1014
667
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
668
|
+
//#endregion
|
|
669
|
+
//#region src/common.css?inline
|
|
670
|
+
var O = ":host{outline:none;display:block}:host *{box-sizing:border-box}.selectable-box-checkbox,.selectable-box-radio{box-sizing:border-box;cursor:pointer;border-radius:var(--px-radius-main);--btn-transition:all .2s ease-in-out 0s;height:100%;transition:var(--btn-transition);border:var(--px-size-border-m) solid var(--px-color-border-main-default);outline-color:var(--px-color-border-focus-outline-default);outline-width:var(--px-focus-outline-mobile);overflow:hidden}:is(.selectable-box-checkbox,.selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-container-light-default);height:100%}:host([parent-has-anchor-full]) :is(.selectable-box-checkbox,.selectable-box-radio){border-radius:0 0 var(--px-radius-main) var(--px-radius-main)}:host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host(:not([disabled])):host(:hover) .selectable-box-radio{border-color:var(--px-color-border-state-hover-default)}:is(:host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host(:not([disabled])):host(:hover) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-hover-bordered-default)}:host(:not([disabled])):host(:focus-visible) .selectable-box-checkbox,:host(:not([disabled])):host(:focus-visible) .selectable-box-radio{outline-offset:var(--px-focus-offset-mobile);outline-style:solid}:host([checked]) .selectable-box-checkbox,:host([checked]) .selectable-box-radio{border-color:var(--px-color-border-state-active-default)}:host([disabled]) .selectable-box-checkbox,:host([disabled]) .selectable-box-radio{cursor:default;pointer-events:none;border-color:#0000}:is(:host([disabled]) .selectable-box-checkbox,:host([disabled]) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-disabled-default)}:host([disabled]) ::slotted([slot=title]),:host([disabled]) ::slotted([slot=description]),:host([disabled]) ::slotted([slot=content]){color:var(--px-color-text-state-disabled-default)}@media screen and (width>=48rem){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-tablet)}}@media screen and (width>=64.0625rem){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-laptop)}}@media screen and (width>=90.0625rem){.selectable-box-checkbox,.selectable-box-radio{outline-width:var(--px-focus-outline-desktop)}}:host([inverted]) .selectable-box-checkbox,:host([inverted]) .selectable-box-radio{border-color:var(--px-color-border-main-inverted);outline-color:var(--px-color-border-focus-outline-inverted)}:is(:host([inverted]) .selectable-box-checkbox,:host([inverted]) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-container-light-inverted)}:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-radio{border-color:var(--px-color-border-state-hover-inverted)}:is(:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-checkbox,:host([inverted]):host(:not([disabled])):host(:hover) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]):host([checked]) .selectable-box-checkbox,:host([inverted]):host([checked]) .selectable-box-radio{border-color:var(--px-color-border-state-active-inverted)}:host([inverted]):host([disabled]) .selectable-box-checkbox,:host([inverted]):host([disabled]) .selectable-box-radio{border-color:#0000}:is(:host([inverted]):host([disabled]) .selectable-box-checkbox,:host([inverted]):host([disabled]) .selectable-box-radio) px-selectable-box{background-color:var(--px-color-background-state-disabled-inverted)}:host([inverted]):host([disabled]) ::slotted([slot=title]),:host([inverted]):host([disabled]) ::slotted([slot=description]),:host([inverted]):host([disabled]) ::slotted([slot=content]){color:var(--px-color-text-state-disabled-inverted)}", k = new CSSStyleSheet();
|
|
671
|
+
k.replaceSync(O);
|
|
672
|
+
var A = class extends t {
|
|
673
|
+
template() {
|
|
674
|
+
return "\n <div class=\"selectable-box-checkbox\">\n <px-selectable-box>\n <slot name=\"media\" slot=\"media\"></slot>\n <px-checkbox \n slot=\"action\" inert \n ></px-checkbox>\n <slot name=\"icon\" slot=\"icon\"></slot>\n <slot name=\"logo\" slot=\"logo\"></slot>\n <slot name=\"title\" slot=\"title\"></slot>\n <slot name=\"description\" slot=\"description\"></slot>\n <slot name=\"content\" slot=\"content\"></slot>\n <slot name=\"footer\" slot=\"footer\"></slot>\n </px-selectable-box>\n </div>\n ";
|
|
675
|
+
}
|
|
676
|
+
constructor() {
|
|
677
|
+
super(k), this.shadowRoot.innerHTML = this.template(), this.internals = this.attachInternals?.();
|
|
678
|
+
}
|
|
679
|
+
connectedCallback() {
|
|
680
|
+
this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this), this.role = "checkbox", this.internals && (this.internals.role = "checkbox"), this.tabIndex = 0, this.ariaChecked = `${this.checked}`, this.toggleFooterVisibility(), this.$slotFooter.addEventListener("slotchange", this.toggleFooterVisibility), this.addEventListener("mouseover", this.setHoverAttribute), this.addEventListener("mouseout", this.removeHoverAttribute), this.addEventListener("keypress", this.setKeypressEvent), this.addEventListener("click", this.setClickEvent);
|
|
681
|
+
}
|
|
682
|
+
static get observedAttributes() {
|
|
683
|
+
return [
|
|
684
|
+
...super.observedAttributes,
|
|
685
|
+
"inverted",
|
|
686
|
+
"name",
|
|
687
|
+
"value",
|
|
688
|
+
"checked",
|
|
689
|
+
"disabled",
|
|
690
|
+
"footer-position"
|
|
691
|
+
];
|
|
692
|
+
}
|
|
693
|
+
attributeChangedCallback(e, t, n) {
|
|
694
|
+
if (t !== n) switch (e) {
|
|
695
|
+
case "inverted":
|
|
696
|
+
this.inverted ? (this.$selectableBox.setAttribute("inverted", ""), this.$checkbox.setAttribute("inverted", "")) : (this.$selectableBox.removeAttribute("inverted"), this.$checkbox.removeAttribute("inverted"));
|
|
697
|
+
break;
|
|
698
|
+
case "name":
|
|
699
|
+
case "value":
|
|
700
|
+
this.$checkbox && this.$checkbox.setAttribute(e, n);
|
|
701
|
+
break;
|
|
702
|
+
case "disabled":
|
|
703
|
+
this.handleDisabledAttributeChange(n !== null);
|
|
704
|
+
break;
|
|
705
|
+
case "checked":
|
|
706
|
+
this.handleCheckedAttributeChange(n);
|
|
707
|
+
break;
|
|
708
|
+
case "footer-position":
|
|
709
|
+
this.$selectableBox && this.$selectableBox.setAttribute("footer-position", n);
|
|
710
|
+
break;
|
|
711
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
disconnectedCallback() {
|
|
715
|
+
this.$slotFooter.removeEventListener("slotchange", this.toggleFooterVisibility), this.removeEventListener("mouseover", this.setHoverAttribute), this.removeEventListener("mouseout", this.removeHoverAttribute), this.removeEventListener("keypress", this.setKeypressEvent), this.removeEventListener("click", this.setClickEvent);
|
|
716
|
+
}
|
|
717
|
+
removeHoverAttribute() {
|
|
718
|
+
this.$checkbox.removeAttribute("hover");
|
|
719
|
+
}
|
|
720
|
+
setHoverAttribute() {
|
|
721
|
+
this.$checkbox.setAttribute("hover", "");
|
|
722
|
+
}
|
|
723
|
+
setKeypressEvent(e) {
|
|
724
|
+
e.stopPropagation(), e.preventDefault(), e.code === "Space" && this.click();
|
|
725
|
+
}
|
|
726
|
+
setClickEvent(e) {
|
|
727
|
+
D(e, this) || (this.checked = !this.checked, e.stopPropagation(), e.preventDefault());
|
|
728
|
+
}
|
|
729
|
+
toggleFooterVisibility() {
|
|
730
|
+
this.$slottedFooter ? this.$selectableBox.removeAttribute("hide-footer") : this.$selectableBox.setAttribute("hide-footer", "");
|
|
731
|
+
}
|
|
732
|
+
handleDisabledAttributeChange(e) {
|
|
733
|
+
e ? (this.disabled = !0, this.internals && (this.internals.ariaDisabled = "true"), this.ariaDisabled = "true", this.$checkbox.setAttribute("disabled", "")) : (this.disabled = !1, this.internals && (this.internals.ariaDisabled = "false"), this.ariaDisabled = "false", this.$checkbox.removeAttribute("disabled"));
|
|
734
|
+
}
|
|
735
|
+
handleCheckedAttributeChange(e) {
|
|
736
|
+
this.internals?.setFormValue(this.formData()), e === null ? (this.internals && (this.internals.ariaChecked = "false"), this.ariaChecked = "false", this.checked = !1, this.$checkbox && this.$checkbox.removeAttribute("checked")) : (this.internals && (this.internals.ariaChecked = "true"), this.ariaChecked = "true", this.checked = !0, this.$checkbox && this.$checkbox.setAttribute("checked", "")), this.dispatchEvent(new Event("change", {
|
|
737
|
+
bubbles: !0,
|
|
738
|
+
composed: !0
|
|
739
|
+
}));
|
|
740
|
+
}
|
|
741
|
+
static get formAssociated() {
|
|
742
|
+
return !0;
|
|
743
|
+
}
|
|
744
|
+
formResetCallback() {
|
|
745
|
+
this.checked = !1;
|
|
746
|
+
}
|
|
747
|
+
formStateRestoreCallback(e) {
|
|
748
|
+
this.checked = e;
|
|
749
|
+
}
|
|
750
|
+
formData() {
|
|
751
|
+
let e = new FormData();
|
|
752
|
+
if (this.name) {
|
|
753
|
+
let t = this.getAttribute("name");
|
|
754
|
+
t && (this.checked ? e.set(t, this.value ?? "") : e.delete(t));
|
|
755
|
+
}
|
|
756
|
+
return e;
|
|
757
|
+
}
|
|
758
|
+
get $el() {
|
|
759
|
+
return this.shadowRoot.querySelector(".selectable-box-checkbox");
|
|
760
|
+
}
|
|
761
|
+
get $selectableBox() {
|
|
762
|
+
return this.shadowRoot.querySelector("px-selectable-box");
|
|
763
|
+
}
|
|
764
|
+
get $checkbox() {
|
|
765
|
+
return this.shadowRoot.querySelector("px-checkbox");
|
|
766
|
+
}
|
|
767
|
+
get $slotFooter() {
|
|
768
|
+
return this.shadowRoot.querySelector("slot[name=\"footer\"]");
|
|
769
|
+
}
|
|
770
|
+
get $slottedFooter() {
|
|
771
|
+
return this.querySelector("[slot=\"footer\"]");
|
|
772
|
+
}
|
|
773
|
+
get inverted() {
|
|
774
|
+
return this.hasAttribute("inverted");
|
|
775
|
+
}
|
|
776
|
+
set inverted(e) {
|
|
777
|
+
r(this, "inverted", e);
|
|
778
|
+
}
|
|
779
|
+
get checked() {
|
|
780
|
+
return this.hasAttribute("checked");
|
|
781
|
+
}
|
|
782
|
+
set checked(e) {
|
|
783
|
+
r(this, "checked", e);
|
|
784
|
+
}
|
|
785
|
+
get name() {
|
|
786
|
+
return this.getAttribute("name");
|
|
787
|
+
}
|
|
788
|
+
set name(e) {
|
|
789
|
+
s(this, "name", e);
|
|
790
|
+
}
|
|
791
|
+
get disabled() {
|
|
792
|
+
return this.hasAttribute("disabled");
|
|
793
|
+
}
|
|
794
|
+
set disabled(e) {
|
|
795
|
+
r(this, "disabled", e);
|
|
796
|
+
}
|
|
797
|
+
get value() {
|
|
798
|
+
return this.getAttribute("value");
|
|
799
|
+
}
|
|
800
|
+
set value(e) {
|
|
801
|
+
s(this, "value", e);
|
|
802
|
+
}
|
|
803
|
+
get footerPosition() {
|
|
804
|
+
return this.getAttribute("footer-position") ?? "";
|
|
805
|
+
}
|
|
806
|
+
set footerPosition(e) {
|
|
807
|
+
e ? this.setAttribute("footer-position", e) : this.removeAttribute("footer-position");
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
customElements.get("px-selectable-box-checkbox") || customElements.define("px-selectable-box-checkbox", A);
|
|
811
|
+
//#endregion
|
|
812
|
+
//#region src/SelectableBoxRadio.ts
|
|
813
|
+
var j = new CSSStyleSheet();
|
|
814
|
+
j.replaceSync(O);
|
|
815
|
+
var M = "px-selectable-box-radio-connected", N = "px-selectable-box-radio-disconnected", P = class extends t {
|
|
816
|
+
template() {
|
|
817
|
+
return "\n <div class=\"selectable-box-radio\">\n <px-selectable-box>\n <slot name=\"media\" slot=\"media\"></slot>\n <px-radio \n slot=\"action\" inert \n ></px-radio>\n <slot name=\"icon\" slot=\"icon\"></slot>\n <slot name=\"logo\" slot=\"logo\"></slot>\n <slot name=\"title\" slot=\"title\"></slot>\n <slot name=\"description\" slot=\"description\"></slot>\n <slot name=\"content\" slot=\"content\"></slot>\n <slot name=\"footer\" slot=\"footer\"></slot>\n </px-selectable-box>\n </div>\n ";
|
|
818
|
+
}
|
|
819
|
+
constructor() {
|
|
820
|
+
super(j), this.shadowRoot.innerHTML = this.template(), this.internals = this.attachInternals?.();
|
|
821
|
+
}
|
|
822
|
+
connectedCallback() {
|
|
823
|
+
this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this), this.role = "radio", this.internals && (this.internals.role = "radio"), this.dispatchEvent(new CustomEvent(M, {
|
|
824
|
+
bubbles: !0,
|
|
825
|
+
composed: !0
|
|
826
|
+
})), this.ariaChecked = `${this.checked}`, this.toggleFooterVisibility(), this.$slotFooter.addEventListener("slotchange", this.toggleFooterVisibility), this.$radio.addEventListener("change", this.stopInternalRadioChange), this.addEventListener("mouseover", this.setHoverAttribute), this.addEventListener("mouseout", this.removeHoverAttribute), this.addEventListener("keypress", this.setKeypressEvent), this.addEventListener("click", this.setClickEvent);
|
|
827
|
+
}
|
|
828
|
+
static get observedAttributes() {
|
|
829
|
+
return [
|
|
830
|
+
...super.observedAttributes,
|
|
831
|
+
"inverted",
|
|
832
|
+
"name",
|
|
833
|
+
"value",
|
|
834
|
+
"checked",
|
|
835
|
+
"disabled",
|
|
836
|
+
"footer-position"
|
|
837
|
+
];
|
|
838
|
+
}
|
|
839
|
+
attributeChangedCallback(e, t, n) {
|
|
840
|
+
if (t !== n) switch (e) {
|
|
841
|
+
case "inverted":
|
|
842
|
+
this.inverted ? (this.$selectableBox.setAttribute("inverted", ""), this.$radio.setAttribute("inverted", "")) : (this.$selectableBox.removeAttribute("inverted"), this.$radio.removeAttribute("inverted"));
|
|
843
|
+
break;
|
|
844
|
+
case "name":
|
|
845
|
+
case "value":
|
|
846
|
+
this.$radio && this.$radio.setAttribute(e, n);
|
|
847
|
+
break;
|
|
848
|
+
case "disabled":
|
|
849
|
+
this.handleDisabledAttributeChange(n !== null);
|
|
850
|
+
break;
|
|
851
|
+
case "checked":
|
|
852
|
+
this.handleCheckedAttributeChange(n);
|
|
853
|
+
break;
|
|
854
|
+
case "footer-position":
|
|
855
|
+
this.$selectableBox && this.$selectableBox.setAttribute("footer-position", n);
|
|
856
|
+
break;
|
|
857
|
+
default: super.attributeChangedCallback(e, t, n);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
disconnectedCallback() {
|
|
861
|
+
this.$slotFooter.removeEventListener("slotchange", this.toggleFooterVisibility), this.$radio.removeEventListener("change", this.stopInternalRadioChange), this.removeEventListener("mouseover", this.setHoverAttribute), this.removeEventListener("mouseout", this.removeHoverAttribute), this.removeEventListener("keypress", this.setKeypressEvent), this.removeEventListener("click", this.setClickEvent), this.dispatchEvent(new CustomEvent(N, {
|
|
862
|
+
bubbles: !0,
|
|
863
|
+
composed: !0
|
|
864
|
+
}));
|
|
865
|
+
}
|
|
866
|
+
removeHoverAttribute() {
|
|
867
|
+
this.$radio.removeAttribute("hover");
|
|
868
|
+
}
|
|
869
|
+
stopInternalRadioChange(e) {
|
|
870
|
+
e.stopPropagation();
|
|
871
|
+
}
|
|
872
|
+
setHoverAttribute() {
|
|
873
|
+
this.$radio.setAttribute("hover", "");
|
|
874
|
+
}
|
|
875
|
+
setKeypressEvent(e) {
|
|
876
|
+
e.preventDefault(), e.code === "Space" && this.click();
|
|
877
|
+
}
|
|
878
|
+
setClickEvent(e) {
|
|
879
|
+
D(e, this) || (this.checked ||= !0, e.stopPropagation(), e.preventDefault());
|
|
880
|
+
}
|
|
881
|
+
toggleFooterVisibility() {
|
|
882
|
+
this.$slottedFooter ? this.$selectableBox.removeAttribute("hide-footer") : this.$selectableBox.setAttribute("hide-footer", "");
|
|
883
|
+
}
|
|
884
|
+
handleDisabledAttributeChange(e) {
|
|
885
|
+
e ? (this.disabled = !0, this.internals && (this.internals.ariaDisabled = "true"), this.ariaDisabled = "true", this.$radio.setAttribute("disabled", "")) : (this.disabled = !1, this.internals && (this.internals.ariaDisabled = "false"), this.ariaDisabled = "false", this.$radio.removeAttribute("disabled"));
|
|
886
|
+
}
|
|
887
|
+
handleCheckedAttributeChange(e) {
|
|
888
|
+
this.internals?.setFormValue(this.formData()), e == null ? (this.internals && (this.internals.ariaChecked = "false"), this.ariaChecked = "false", this.tabIndex = -1, this.checked = !1, this.$radio && this.$radio.removeAttribute("checked")) : (this.internals && (this.internals.ariaChecked = "true"), this.ariaChecked = "true", this.tabIndex = 0, this.checked = !0, this.$radio && this.$radio.setAttribute("checked", ""), this.dispatchEvent(new Event("change", {
|
|
889
|
+
bubbles: !0,
|
|
890
|
+
composed: !0
|
|
891
|
+
})));
|
|
892
|
+
}
|
|
893
|
+
static get formAssociated() {
|
|
894
|
+
return !0;
|
|
895
|
+
}
|
|
896
|
+
formResetCallback() {
|
|
897
|
+
this.checked = !1;
|
|
898
|
+
}
|
|
899
|
+
formStateRestoreCallback(e) {
|
|
900
|
+
this.checked = e;
|
|
901
|
+
}
|
|
902
|
+
formData() {
|
|
903
|
+
let e = new FormData();
|
|
904
|
+
if (this.name) {
|
|
905
|
+
let t = this.getAttribute("name");
|
|
906
|
+
t && (this.checked ? e.set(t, this.value ?? "") : e.delete(t));
|
|
907
|
+
}
|
|
908
|
+
return e;
|
|
909
|
+
}
|
|
910
|
+
get $el() {
|
|
911
|
+
return this.shadowRoot.querySelector(".selectable-box-radio");
|
|
912
|
+
}
|
|
913
|
+
get $selectableBox() {
|
|
914
|
+
return this.shadowRoot.querySelector("px-selectable-box");
|
|
915
|
+
}
|
|
916
|
+
get $radio() {
|
|
917
|
+
return this.shadowRoot.querySelector("px-radio");
|
|
918
|
+
}
|
|
919
|
+
get $slotFooter() {
|
|
920
|
+
return this.shadowRoot.querySelector("slot[name=\"footer\"]");
|
|
921
|
+
}
|
|
922
|
+
get $slottedFooter() {
|
|
923
|
+
return this.querySelector("[slot=\"footer\"]");
|
|
924
|
+
}
|
|
925
|
+
get inverted() {
|
|
926
|
+
return this.hasAttribute("inverted");
|
|
927
|
+
}
|
|
928
|
+
set inverted(e) {
|
|
929
|
+
r(this, "inverted", e);
|
|
930
|
+
}
|
|
931
|
+
get checked() {
|
|
932
|
+
return this.hasAttribute("checked");
|
|
933
|
+
}
|
|
934
|
+
set checked(e) {
|
|
935
|
+
r(this, "checked", e);
|
|
936
|
+
}
|
|
937
|
+
get name() {
|
|
938
|
+
return this.getAttribute("name");
|
|
939
|
+
}
|
|
940
|
+
set name(e) {
|
|
941
|
+
s(this, "name", e);
|
|
942
|
+
}
|
|
943
|
+
get disabled() {
|
|
944
|
+
return this.hasAttribute("disabled");
|
|
945
|
+
}
|
|
946
|
+
set disabled(e) {
|
|
947
|
+
r(this, "disabled", e);
|
|
948
|
+
}
|
|
949
|
+
get value() {
|
|
950
|
+
return this.getAttribute("value");
|
|
951
|
+
}
|
|
952
|
+
set value(e) {
|
|
953
|
+
s(this, "value", e);
|
|
954
|
+
}
|
|
955
|
+
get footerPosition() {
|
|
956
|
+
return this.getAttribute("footer-position") ?? "";
|
|
957
|
+
}
|
|
958
|
+
set footerPosition(e) {
|
|
959
|
+
e ? this.setAttribute("footer-position", e) : this.removeAttribute("footer-position");
|
|
960
|
+
}
|
|
1020
961
|
};
|
|
962
|
+
customElements.get("px-selectable-box-radio") || customElements.define("px-selectable-box-radio", P);
|
|
963
|
+
//#endregion
|
|
964
|
+
export { M as SELECTABLE_BOX_RADIO_CONNECTED_EVENT, N as SELECTABLE_BOX_RADIO_DISCONNECTED_EVENT, T as SelectableBox, A as SelectableBoxCheckbox, P as SelectableBoxRadio, w as selectableBoxFooterPosition };
|