@redvars/peacock 3.3.2 → 3.3.3
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/custom-elements.json +423 -0
- package/dist/index.js +1 -1
- package/dist/peacock-loader.js +4 -1
- package/dist/peacock-loader.js.map +1 -1
- package/dist/{snackbar-74YCdMPL.js → radio-b70_Ie9n.js} +545 -92
- package/dist/radio-b70_Ie9n.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/radio/index.d.ts +1 -0
- package/dist/src/radio/radio.d.ts +73 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/readme.md +2 -2
- package/src/index.ts +1 -0
- package/src/peacock-loader.ts +4 -0
- package/src/radio/index.ts +1 -0
- package/src/radio/radio.scss +181 -0
- package/src/radio/radio.ts +362 -0
- package/src/tabs/tab.ts +1 -1
- package/dist/snackbar-74YCdMPL.js.map +0 -1
|
@@ -39,7 +39,7 @@ async function fetchIcon(name, provider = 'material-symbols') {
|
|
|
39
39
|
return fetchSVG(PROVIDERS[provider](name));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
var css_248z$
|
|
42
|
+
var css_248z$L = i`* {
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -168,7 +168,7 @@ class Icon extends i$1 {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
Icon.styles = [css_248z$
|
|
171
|
+
Icon.styles = [css_248z$L];
|
|
172
172
|
__decorate([
|
|
173
173
|
n({ type: String, reflect: true })
|
|
174
174
|
], Icon.prototype, "name", void 0);
|
|
@@ -188,7 +188,7 @@ __decorate([
|
|
|
188
188
|
r()
|
|
189
189
|
], Icon.prototype, "error", void 0);
|
|
190
190
|
|
|
191
|
-
var css_248z$
|
|
191
|
+
var css_248z$K = i`* {
|
|
192
192
|
box-sizing: border-box;
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -279,7 +279,7 @@ class Avatar extends i$1 {
|
|
|
279
279
|
return `${first.charAt(0)}${last.charAt(0)}`.toUpperCase();
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
Avatar.styles = [css_248z$
|
|
282
|
+
Avatar.styles = [css_248z$K];
|
|
283
283
|
__decorate([
|
|
284
284
|
n({ type: String, reflect: true })
|
|
285
285
|
], Avatar.prototype, "name", void 0);
|
|
@@ -287,7 +287,7 @@ __decorate([
|
|
|
287
287
|
n({ type: String, reflect: true })
|
|
288
288
|
], Avatar.prototype, "src", void 0);
|
|
289
289
|
|
|
290
|
-
var css_248z$
|
|
290
|
+
var css_248z$J = i`* {
|
|
291
291
|
box-sizing: border-box;
|
|
292
292
|
}
|
|
293
293
|
|
|
@@ -359,12 +359,12 @@ class Badge extends i$1 {
|
|
|
359
359
|
</div>`;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
Badge.styles = [css_248z$
|
|
362
|
+
Badge.styles = [css_248z$J];
|
|
363
363
|
__decorate([
|
|
364
364
|
n({ type: String })
|
|
365
365
|
], Badge.prototype, "value", void 0);
|
|
366
366
|
|
|
367
|
-
var css_248z$
|
|
367
|
+
var css_248z$I = i`* {
|
|
368
368
|
box-sizing: border-box;
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -473,7 +473,7 @@ class Divider extends i$1 {
|
|
|
473
473
|
</div>`;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
Divider.styles = [css_248z$
|
|
476
|
+
Divider.styles = [css_248z$I];
|
|
477
477
|
__decorate([
|
|
478
478
|
n({ type: Boolean, reflect: true })
|
|
479
479
|
], Divider.prototype, "vertical", void 0);
|
|
@@ -481,7 +481,7 @@ __decorate([
|
|
|
481
481
|
r()
|
|
482
482
|
], Divider.prototype, "slotHasContent", void 0);
|
|
483
483
|
|
|
484
|
-
var css_248z$
|
|
484
|
+
var css_248z$H = i`/**
|
|
485
485
|
* Derived from Material Design Elevation
|
|
486
486
|
* https://github.com/material-components/material-web/blob/main/elevation/internal/_elevation.scss
|
|
487
487
|
*/
|
|
@@ -554,9 +554,9 @@ class Elevation extends i$1 {
|
|
|
554
554
|
return b `<span class="shadow"></span>`;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
Elevation.styles = [css_248z$
|
|
557
|
+
Elevation.styles = [css_248z$H];
|
|
558
558
|
|
|
559
|
-
var css_248z$
|
|
559
|
+
var css_248z$G = i`:host {
|
|
560
560
|
display: none;
|
|
561
561
|
pointer-events: none;
|
|
562
562
|
position: absolute;
|
|
@@ -651,7 +651,7 @@ class FocusRing extends i$1 {
|
|
|
651
651
|
this._control = undefined;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
FocusRing.styles = [css_248z$
|
|
654
|
+
FocusRing.styles = [css_248z$G];
|
|
655
655
|
__decorate([
|
|
656
656
|
n({ type: Boolean, reflect: true })
|
|
657
657
|
], FocusRing.prototype, "visible", void 0);
|
|
@@ -1112,7 +1112,7 @@ __decorate([
|
|
|
1112
1112
|
e$4('.surface')
|
|
1113
1113
|
], Ripple.prototype, "mdRoot", void 0);
|
|
1114
1114
|
|
|
1115
|
-
var css_248z$
|
|
1115
|
+
var css_248z$F = i`* {
|
|
1116
1116
|
box-sizing: border-box;
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
@@ -1282,7 +1282,7 @@ class AccordionItem extends i$1 {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
_AccordionItem_id = new WeakMap();
|
|
1285
|
-
AccordionItem.styles = [css_248z$
|
|
1285
|
+
AccordionItem.styles = [css_248z$F];
|
|
1286
1286
|
__decorate([
|
|
1287
1287
|
n({ type: String, reflect: true })
|
|
1288
1288
|
], AccordionItem.prototype, "heading", void 0);
|
|
@@ -1296,7 +1296,7 @@ __decorate([
|
|
|
1296
1296
|
e$4('.accordion-heading')
|
|
1297
1297
|
], AccordionItem.prototype, "buttonElement", void 0);
|
|
1298
1298
|
|
|
1299
|
-
var css_248z$
|
|
1299
|
+
var css_248z$E = i`* {
|
|
1300
1300
|
box-sizing: border-box;
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
@@ -1415,7 +1415,7 @@ class Accordion extends i$1 {
|
|
|
1415
1415
|
return b `<div class="accordion"><slot></slot></div>`;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
|
-
Accordion.styles = [css_248z$
|
|
1418
|
+
Accordion.styles = [css_248z$E];
|
|
1419
1419
|
Accordion.Item = AccordionItem;
|
|
1420
1420
|
__decorate([
|
|
1421
1421
|
n({ type: Boolean, attribute: 'allow-multiple' })
|
|
@@ -1424,7 +1424,7 @@ __decorate([
|
|
|
1424
1424
|
o$2({ selector: 'p-accordion-item' })
|
|
1425
1425
|
], Accordion.prototype, "items", void 0);
|
|
1426
1426
|
|
|
1427
|
-
var css_248z$
|
|
1427
|
+
var css_248z$D = i`* {
|
|
1428
1428
|
box-sizing: border-box;
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
@@ -1495,7 +1495,7 @@ class Link extends i$1 {
|
|
|
1495
1495
|
</a>`;
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
Link.styles = [css_248z$
|
|
1498
|
+
Link.styles = [css_248z$D];
|
|
1499
1499
|
__decorate([
|
|
1500
1500
|
n({ reflect: true })
|
|
1501
1501
|
], Link.prototype, "href", void 0);
|
|
@@ -1506,7 +1506,7 @@ __decorate([
|
|
|
1506
1506
|
r()
|
|
1507
1507
|
], Link.prototype, "tabIndexValue", void 0);
|
|
1508
1508
|
|
|
1509
|
-
var css_248z$
|
|
1509
|
+
var css_248z$C = i`* {
|
|
1510
1510
|
box-sizing: border-box;
|
|
1511
1511
|
}
|
|
1512
1512
|
|
|
@@ -1643,7 +1643,7 @@ slot::slotted(*) {
|
|
|
1643
1643
|
--_container-state-opacity: 0.08;
|
|
1644
1644
|
}`;
|
|
1645
1645
|
|
|
1646
|
-
var css_248z$
|
|
1646
|
+
var css_248z$B = i`:host([color=default]) {
|
|
1647
1647
|
--filled-tag-container-color: var(--color-surface);
|
|
1648
1648
|
--filled-tag-label-text-color: var(--color-on-surface);
|
|
1649
1649
|
--tonal-tag-container-color: var(--color-surface-container);
|
|
@@ -1709,7 +1709,7 @@ var css_248z$A = i`:host([color=default]) {
|
|
|
1709
1709
|
--outlined-tag-label-text-color: var(--color-purple);
|
|
1710
1710
|
}`;
|
|
1711
1711
|
|
|
1712
|
-
var css_248z$
|
|
1712
|
+
var css_248z$A = i`.tag {
|
|
1713
1713
|
font-family: var(--font-family-sans) !important;
|
|
1714
1714
|
}
|
|
1715
1715
|
|
|
@@ -1808,7 +1808,7 @@ class Tag extends i$1 {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
// Define styles (Lit handles Scoping via Shadow DOM by default)
|
|
1810
1810
|
// You would typically import your tag.scss.js here or use the css tag
|
|
1811
|
-
Tag.styles = [css_248z$
|
|
1811
|
+
Tag.styles = [css_248z$C, css_248z$B, css_248z$A];
|
|
1812
1812
|
__decorate([
|
|
1813
1813
|
n({ type: Boolean })
|
|
1814
1814
|
], Tag.prototype, "dismissible", void 0);
|
|
@@ -1822,7 +1822,7 @@ __decorate([
|
|
|
1822
1822
|
n()
|
|
1823
1823
|
], Tag.prototype, "size", void 0);
|
|
1824
1824
|
|
|
1825
|
-
var css_248z$
|
|
1825
|
+
var css_248z$z = i`* {
|
|
1826
1826
|
box-sizing: border-box;
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
@@ -1934,7 +1934,7 @@ var css_248z$y = i`* {
|
|
|
1934
1934
|
color: var(--background);
|
|
1935
1935
|
}`;
|
|
1936
1936
|
|
|
1937
|
-
var css_248z$
|
|
1937
|
+
var css_248z$y = i`:host([color=red]) {
|
|
1938
1938
|
--chip-container-color: var(--color-red-container);
|
|
1939
1939
|
--chip-outline-color: var(--color-on-red-container);
|
|
1940
1940
|
}
|
|
@@ -1963,7 +1963,7 @@ var css_248z$x = i`:host([color=red]) {
|
|
|
1963
1963
|
--chip-outline-color: var(--color-on-purple-container);
|
|
1964
1964
|
}`;
|
|
1965
1965
|
|
|
1966
|
-
var css_248z$
|
|
1966
|
+
var css_248z$x = i`.tag {
|
|
1967
1967
|
font-family: var(--font-family-sans) !important;
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
@@ -2101,7 +2101,7 @@ class Chip extends i$1 {
|
|
|
2101
2101
|
}
|
|
2102
2102
|
// Define styles (Lit handles Scoping via Shadow DOM by default)
|
|
2103
2103
|
// You would typically import your tag.scss.js here or use the css tag
|
|
2104
|
-
Chip.styles = [css_248z$
|
|
2104
|
+
Chip.styles = [css_248z$z, css_248z$y, css_248z$x];
|
|
2105
2105
|
__decorate([
|
|
2106
2106
|
n({ type: Boolean })
|
|
2107
2107
|
], Chip.prototype, "dismissible", void 0);
|
|
@@ -2118,7 +2118,7 @@ __decorate([
|
|
|
2118
2118
|
n({ type: String })
|
|
2119
2119
|
], Chip.prototype, "imageSrc", void 0);
|
|
2120
2120
|
|
|
2121
|
-
var css_248z$
|
|
2121
|
+
var css_248z$w = i`:host {
|
|
2122
2122
|
display: block;
|
|
2123
2123
|
--progress-height: 0.25rem;
|
|
2124
2124
|
--progress-container-color: var(--color-primary);
|
|
@@ -2324,9 +2324,9 @@ class LinearProgress extends BaseProgress {
|
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
2326
|
// Lit components use static styles for better performance
|
|
2327
|
-
LinearProgress.styles = [css_248z$
|
|
2327
|
+
LinearProgress.styles = [css_248z$w];
|
|
2328
2328
|
|
|
2329
|
-
var css_248z$
|
|
2329
|
+
var css_248z$v = i`:host {
|
|
2330
2330
|
display: inline-block;
|
|
2331
2331
|
--progress-height: 1.5rem;
|
|
2332
2332
|
--progress-line-thickness: 4px;
|
|
@@ -2489,9 +2489,9 @@ class CircularProgress extends BaseProgress {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
// Lit components use static styles for better performance
|
|
2492
|
-
CircularProgress.styles = [css_248z$
|
|
2492
|
+
CircularProgress.styles = [css_248z$v];
|
|
2493
2493
|
|
|
2494
|
-
var css_248z$
|
|
2494
|
+
var css_248z$u = i`:host {
|
|
2495
2495
|
--skeleton-container-color: var(--color-surface-container);
|
|
2496
2496
|
--skeleton-element: var(--color-on-surface);
|
|
2497
2497
|
display: inline-block;
|
|
@@ -2595,12 +2595,12 @@ class Skeleton extends i$1 {
|
|
|
2595
2595
|
return b ` <div class="skeleton"></div>`;
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
|
-
Skeleton.styles = [css_248z$
|
|
2598
|
+
Skeleton.styles = [css_248z$u];
|
|
2599
2599
|
__decorate([
|
|
2600
2600
|
n({ type: Boolean, reflect: true })
|
|
2601
2601
|
], Skeleton.prototype, "visible", void 0);
|
|
2602
2602
|
|
|
2603
|
-
var css_248z$
|
|
2603
|
+
var css_248z$t = i`* {
|
|
2604
2604
|
box-sizing: border-box;
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
@@ -2773,7 +2773,7 @@ class Input extends BaseInput {
|
|
|
2773
2773
|
`;
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
|
-
Input.styles = [css_248z$
|
|
2776
|
+
Input.styles = [css_248z$t];
|
|
2777
2777
|
__decorate([
|
|
2778
2778
|
n({ type: String })
|
|
2779
2779
|
], Input.prototype, "value", void 0);
|
|
@@ -2832,7 +2832,7 @@ __decorate([
|
|
|
2832
2832
|
e$4('.input-element')
|
|
2833
2833
|
], Input.prototype, "inputElement", void 0);
|
|
2834
2834
|
|
|
2835
|
-
var css_248z$
|
|
2835
|
+
var css_248z$s = i`* {
|
|
2836
2836
|
box-sizing: border-box;
|
|
2837
2837
|
}
|
|
2838
2838
|
|
|
@@ -3200,7 +3200,7 @@ class Field extends i$1 {
|
|
|
3200
3200
|
return b `<div class="text-count">${this.textCount}</div>`;
|
|
3201
3201
|
}
|
|
3202
3202
|
}
|
|
3203
|
-
Field.styles = [css_248z$
|
|
3203
|
+
Field.styles = [css_248z$s];
|
|
3204
3204
|
__decorate([
|
|
3205
3205
|
n({ type: String })
|
|
3206
3206
|
], Field.prototype, "label", void 0);
|
|
@@ -3256,7 +3256,7 @@ __decorate([
|
|
|
3256
3256
|
r()
|
|
3257
3257
|
], Field.prototype, "slotEndHasContent", void 0);
|
|
3258
3258
|
|
|
3259
|
-
var css_248z$
|
|
3259
|
+
var css_248z$r = i`* {
|
|
3260
3260
|
box-sizing: border-box;
|
|
3261
3261
|
}
|
|
3262
3262
|
|
|
@@ -3453,7 +3453,7 @@ class NumberField extends BaseInput {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
3455
|
_NumberField_id = new WeakMap();
|
|
3456
|
-
NumberField.styles = [css_248z$
|
|
3456
|
+
NumberField.styles = [css_248z$r];
|
|
3457
3457
|
__decorate([
|
|
3458
3458
|
n({ type: Number })
|
|
3459
3459
|
], NumberField.prototype, "value", void 0);
|
|
@@ -3515,7 +3515,7 @@ __decorate([
|
|
|
3515
3515
|
e$4('.input-element')
|
|
3516
3516
|
], NumberField.prototype, "inputElement", void 0);
|
|
3517
3517
|
|
|
3518
|
-
var css_248z$
|
|
3518
|
+
var css_248z$q = i`* {
|
|
3519
3519
|
box-sizing: border-box;
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
@@ -3682,7 +3682,7 @@ class DatePicker extends BaseInput {
|
|
|
3682
3682
|
`;
|
|
3683
3683
|
}
|
|
3684
3684
|
}
|
|
3685
|
-
DatePicker.styles = [css_248z$
|
|
3685
|
+
DatePicker.styles = [css_248z$q];
|
|
3686
3686
|
__decorate([
|
|
3687
3687
|
n({ type: String })
|
|
3688
3688
|
], DatePicker.prototype, "value", void 0);
|
|
@@ -3738,7 +3738,7 @@ __decorate([
|
|
|
3738
3738
|
e$4('.input-element')
|
|
3739
3739
|
], DatePicker.prototype, "inputElement", void 0);
|
|
3740
3740
|
|
|
3741
|
-
var css_248z$
|
|
3741
|
+
var css_248z$p = i`* {
|
|
3742
3742
|
box-sizing: border-box;
|
|
3743
3743
|
}
|
|
3744
3744
|
|
|
@@ -3905,7 +3905,7 @@ class TimePicker extends BaseInput {
|
|
|
3905
3905
|
`;
|
|
3906
3906
|
}
|
|
3907
3907
|
}
|
|
3908
|
-
TimePicker.styles = [css_248z$
|
|
3908
|
+
TimePicker.styles = [css_248z$p];
|
|
3909
3909
|
__decorate([
|
|
3910
3910
|
n({ type: String })
|
|
3911
3911
|
], TimePicker.prototype, "value", void 0);
|
|
@@ -3961,7 +3961,7 @@ __decorate([
|
|
|
3961
3961
|
e$4('.input-element')
|
|
3962
3962
|
], TimePicker.prototype, "inputElement", void 0);
|
|
3963
3963
|
|
|
3964
|
-
var css_248z$
|
|
3964
|
+
var css_248z$o = i`* {
|
|
3965
3965
|
box-sizing: border-box;
|
|
3966
3966
|
}
|
|
3967
3967
|
|
|
@@ -4121,7 +4121,7 @@ class Textarea extends BaseInput {
|
|
|
4121
4121
|
`;
|
|
4122
4122
|
}
|
|
4123
4123
|
}
|
|
4124
|
-
Textarea.styles = [css_248z$
|
|
4124
|
+
Textarea.styles = [css_248z$o];
|
|
4125
4125
|
__decorate([
|
|
4126
4126
|
n({ type: String })
|
|
4127
4127
|
], Textarea.prototype, "value", void 0);
|
|
@@ -4180,7 +4180,7 @@ __decorate([
|
|
|
4180
4180
|
e$4('.input-element')
|
|
4181
4181
|
], Textarea.prototype, "inputElement", void 0);
|
|
4182
4182
|
|
|
4183
|
-
var css_248z$
|
|
4183
|
+
var css_248z$n = i`* {
|
|
4184
4184
|
box-sizing: border-box;
|
|
4185
4185
|
}
|
|
4186
4186
|
|
|
@@ -4521,7 +4521,7 @@ class Switch extends BaseInput {
|
|
|
4521
4521
|
`;
|
|
4522
4522
|
}
|
|
4523
4523
|
}
|
|
4524
|
-
Switch.styles = [css_248z$
|
|
4524
|
+
Switch.styles = [css_248z$n];
|
|
4525
4525
|
__decorate([
|
|
4526
4526
|
n({ type: Boolean })
|
|
4527
4527
|
], Switch.prototype, "value", void 0);
|
|
@@ -4565,7 +4565,7 @@ __decorate([
|
|
|
4565
4565
|
e$4('.input-native')
|
|
4566
4566
|
], Switch.prototype, "nativeElement", void 0);
|
|
4567
4567
|
|
|
4568
|
-
var css_248z$
|
|
4568
|
+
var css_248z$m = i`* {
|
|
4569
4569
|
box-sizing: border-box;
|
|
4570
4570
|
}
|
|
4571
4571
|
|
|
@@ -5035,7 +5035,7 @@ class Checkbox extends i$1 {
|
|
|
5035
5035
|
`;
|
|
5036
5036
|
}
|
|
5037
5037
|
}
|
|
5038
|
-
Checkbox.styles = [css_248z$
|
|
5038
|
+
Checkbox.styles = [css_248z$m];
|
|
5039
5039
|
__decorate([
|
|
5040
5040
|
n({ type: String })
|
|
5041
5041
|
], Checkbox.prototype, "name", void 0);
|
|
@@ -5082,7 +5082,7 @@ __decorate([
|
|
|
5082
5082
|
e$4('.input-native')
|
|
5083
5083
|
], Checkbox.prototype, "nativeElement", void 0);
|
|
5084
5084
|
|
|
5085
|
-
var css_248z$
|
|
5085
|
+
var css_248z$l = i`* {
|
|
5086
5086
|
box-sizing: border-box;
|
|
5087
5087
|
}
|
|
5088
5088
|
|
|
@@ -5169,9 +5169,9 @@ class Spinner extends i$1 {
|
|
|
5169
5169
|
`;
|
|
5170
5170
|
}
|
|
5171
5171
|
}
|
|
5172
|
-
Spinner.styles = [css_248z$
|
|
5172
|
+
Spinner.styles = [css_248z$l];
|
|
5173
5173
|
|
|
5174
|
-
var css_248z$
|
|
5174
|
+
var css_248z$k = i`* {
|
|
5175
5175
|
box-sizing: border-box;
|
|
5176
5176
|
}
|
|
5177
5177
|
|
|
@@ -5289,12 +5289,12 @@ class Container extends i$1 {
|
|
|
5289
5289
|
`;
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
5292
|
-
Container.styles = [css_248z$
|
|
5292
|
+
Container.styles = [css_248z$k];
|
|
5293
5293
|
__decorate([
|
|
5294
5294
|
n({ type: String, reflect: true })
|
|
5295
5295
|
], Container.prototype, "size", void 0);
|
|
5296
5296
|
|
|
5297
|
-
var css_248z$
|
|
5297
|
+
var css_248z$j = i`* {
|
|
5298
5298
|
box-sizing: border-box;
|
|
5299
5299
|
}
|
|
5300
5300
|
|
|
@@ -5450,7 +5450,7 @@ class EmptyState extends i$1 {
|
|
|
5450
5450
|
}
|
|
5451
5451
|
}
|
|
5452
5452
|
// Lit handles styles in a static property for better performance
|
|
5453
|
-
EmptyState.styles = [css_248z$
|
|
5453
|
+
EmptyState.styles = [css_248z$j];
|
|
5454
5454
|
__decorate([
|
|
5455
5455
|
n({ type: String, reflect: true })
|
|
5456
5456
|
], EmptyState.prototype, "illustration", void 0);
|
|
@@ -5464,7 +5464,7 @@ __decorate([
|
|
|
5464
5464
|
r()
|
|
5465
5465
|
], EmptyState.prototype, "vertical", void 0);
|
|
5466
5466
|
|
|
5467
|
-
var css_248z$
|
|
5467
|
+
var css_248z$i = i`* {
|
|
5468
5468
|
box-sizing: border-box;
|
|
5469
5469
|
}
|
|
5470
5470
|
|
|
@@ -7290,7 +7290,7 @@ class Tooltip extends i$1 {
|
|
|
7290
7290
|
`;
|
|
7291
7291
|
}
|
|
7292
7292
|
}
|
|
7293
|
-
Tooltip.styles = [css_248z$
|
|
7293
|
+
Tooltip.styles = [css_248z$i];
|
|
7294
7294
|
Tooltip.CLOSE_OTHERS_EVENT = 'tooltip--open';
|
|
7295
7295
|
__decorate([
|
|
7296
7296
|
n()
|
|
@@ -7314,7 +7314,7 @@ __decorate([
|
|
|
7314
7314
|
e$4('#tooltip')
|
|
7315
7315
|
], Tooltip.prototype, "floatingEl", void 0);
|
|
7316
7316
|
|
|
7317
|
-
var css_248z$
|
|
7317
|
+
var css_248z$h = i`* {
|
|
7318
7318
|
box-sizing: border-box;
|
|
7319
7319
|
}
|
|
7320
7320
|
|
|
@@ -7356,7 +7356,7 @@ ol {
|
|
|
7356
7356
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7357
7357
|
*/const o=o=>o??A;
|
|
7358
7358
|
|
|
7359
|
-
var css_248z$
|
|
7359
|
+
var css_248z$g = i`* {
|
|
7360
7360
|
box-sizing: border-box;
|
|
7361
7361
|
}
|
|
7362
7362
|
|
|
@@ -7486,7 +7486,7 @@ class BreadcrumbItem extends i$1 {
|
|
|
7486
7486
|
`;
|
|
7487
7487
|
}
|
|
7488
7488
|
}
|
|
7489
|
-
BreadcrumbItem.styles = [css_248z$
|
|
7489
|
+
BreadcrumbItem.styles = [css_248z$g];
|
|
7490
7490
|
__decorate([
|
|
7491
7491
|
n({ reflect: true })
|
|
7492
7492
|
], BreadcrumbItem.prototype, "href", void 0);
|
|
@@ -7540,13 +7540,13 @@ class Breadcrumb extends i$1 {
|
|
|
7540
7540
|
</nav>`;
|
|
7541
7541
|
}
|
|
7542
7542
|
}
|
|
7543
|
-
Breadcrumb.styles = [css_248z$
|
|
7543
|
+
Breadcrumb.styles = [css_248z$h];
|
|
7544
7544
|
Breadcrumb.Item = BreadcrumbItem;
|
|
7545
7545
|
__decorate([
|
|
7546
7546
|
n({ type: String })
|
|
7547
7547
|
], Breadcrumb.prototype, "label", void 0);
|
|
7548
7548
|
|
|
7549
|
-
var css_248z$
|
|
7549
|
+
var css_248z$f = i`* {
|
|
7550
7550
|
box-sizing: border-box;
|
|
7551
7551
|
}
|
|
7552
7552
|
|
|
@@ -7630,7 +7630,7 @@ var css_248z$e = i`* {
|
|
|
7630
7630
|
--_container-color: var(--color-tertiary-container);
|
|
7631
7631
|
}`;
|
|
7632
7632
|
|
|
7633
|
-
var css_248z$
|
|
7633
|
+
var css_248z$e = i`* {
|
|
7634
7634
|
box-sizing: border-box;
|
|
7635
7635
|
}
|
|
7636
7636
|
|
|
@@ -7741,7 +7741,7 @@ var css_248z$d = i`* {
|
|
|
7741
7741
|
display: none;
|
|
7742
7742
|
}`;
|
|
7743
7743
|
|
|
7744
|
-
var css_248z$
|
|
7744
|
+
var css_248z$d = i`:host-context([variant=standard]) {
|
|
7745
7745
|
--menu-item-label-color: var(--color-on-surface-variant);
|
|
7746
7746
|
--menu-item-label-selected-color: var(--color-on-tertiary-container);
|
|
7747
7747
|
--menu-item-container-selected-color: var(--color-tertiary-container);
|
|
@@ -7909,7 +7909,7 @@ class MenuItem extends i$1 {
|
|
|
7909
7909
|
`;
|
|
7910
7910
|
}
|
|
7911
7911
|
}
|
|
7912
|
-
MenuItem.styles = [css_248z$
|
|
7912
|
+
MenuItem.styles = [css_248z$e, css_248z$d];
|
|
7913
7913
|
__decorate([
|
|
7914
7914
|
n({ type: Boolean, reflect: true })
|
|
7915
7915
|
], MenuItem.prototype, "disabled", void 0);
|
|
@@ -8309,7 +8309,7 @@ class Menu extends i$1 {
|
|
|
8309
8309
|
</div>`;
|
|
8310
8310
|
}
|
|
8311
8311
|
}
|
|
8312
|
-
Menu.styles = [css_248z$
|
|
8312
|
+
Menu.styles = [css_248z$f];
|
|
8313
8313
|
Menu.Item = MenuItem;
|
|
8314
8314
|
__decorate([
|
|
8315
8315
|
n({ type: Boolean, reflect: true })
|
|
@@ -8342,7 +8342,7 @@ __decorate([
|
|
|
8342
8342
|
e$4('.menu')
|
|
8343
8343
|
], Menu.prototype, "menuListElement", void 0);
|
|
8344
8344
|
|
|
8345
|
-
var css_248z$
|
|
8345
|
+
var css_248z$c = i`* {
|
|
8346
8346
|
box-sizing: border-box;
|
|
8347
8347
|
}
|
|
8348
8348
|
|
|
@@ -8536,7 +8536,7 @@ class SubMenu extends i$1 {
|
|
|
8536
8536
|
`;
|
|
8537
8537
|
}
|
|
8538
8538
|
}
|
|
8539
|
-
SubMenu.styles = [css_248z$
|
|
8539
|
+
SubMenu.styles = [css_248z$c];
|
|
8540
8540
|
__decorate([
|
|
8541
8541
|
n({ type: Number, attribute: 'hover-open-delay' })
|
|
8542
8542
|
], SubMenu.prototype, "hoverOpenDelay", void 0);
|
|
@@ -8556,7 +8556,7 @@ __decorate([
|
|
|
8556
8556
|
o$2({ slot: 'menu' })
|
|
8557
8557
|
], SubMenu.prototype, "_menus", void 0);
|
|
8558
8558
|
|
|
8559
|
-
var css_248z$
|
|
8559
|
+
var css_248z$b = i`@charset "UTF-8";
|
|
8560
8560
|
:host {
|
|
8561
8561
|
display: block;
|
|
8562
8562
|
height: 100%;
|
|
@@ -8713,7 +8713,7 @@ class Image extends i$1 {
|
|
|
8713
8713
|
`;
|
|
8714
8714
|
}
|
|
8715
8715
|
}
|
|
8716
|
-
Image.styles = [css_248z$
|
|
8716
|
+
Image.styles = [css_248z$b];
|
|
8717
8717
|
__decorate([
|
|
8718
8718
|
n({ reflect: true })
|
|
8719
8719
|
], Image.prototype, "src", void 0);
|
|
@@ -8736,7 +8736,7 @@ __decorate([
|
|
|
8736
8736
|
r()
|
|
8737
8737
|
], Image.prototype, "_previewOpen", void 0);
|
|
8738
8738
|
|
|
8739
|
-
var css_248z$
|
|
8739
|
+
var css_248z$a = i`* {
|
|
8740
8740
|
box-sizing: border-box;
|
|
8741
8741
|
}
|
|
8742
8742
|
|
|
@@ -9022,7 +9022,7 @@ class Tab extends i$1 {
|
|
|
9022
9022
|
}
|
|
9023
9023
|
firstUpdated() {
|
|
9024
9024
|
this.__dispatchClickWithThrottle = throttle(this.__dispatchClick, this.throttleDelay);
|
|
9025
|
-
observerSlotChangesWithCallback(this.renderRoot.querySelector('slot'), hasContent => {
|
|
9025
|
+
observerSlotChangesWithCallback(this.renderRoot.querySelector('slot:not([name])'), hasContent => {
|
|
9026
9026
|
this.slotHasContent = hasContent;
|
|
9027
9027
|
this.requestUpdate();
|
|
9028
9028
|
});
|
|
@@ -9135,7 +9135,7 @@ class Tab extends i$1 {
|
|
|
9135
9135
|
}
|
|
9136
9136
|
}
|
|
9137
9137
|
_Tab_id = new WeakMap();
|
|
9138
|
-
Tab.styles = [css_248z$
|
|
9138
|
+
Tab.styles = [css_248z$a];
|
|
9139
9139
|
__decorate([
|
|
9140
9140
|
n({ type: Boolean, reflect: true })
|
|
9141
9141
|
], Tab.prototype, "active", void 0);
|
|
@@ -9182,7 +9182,7 @@ __decorate([
|
|
|
9182
9182
|
e$4('.tab-element')
|
|
9183
9183
|
], Tab.prototype, "tabElement", void 0);
|
|
9184
9184
|
|
|
9185
|
-
var css_248z$
|
|
9185
|
+
var css_248z$9 = i`* {
|
|
9186
9186
|
box-sizing: border-box;
|
|
9187
9187
|
}
|
|
9188
9188
|
|
|
@@ -9196,7 +9196,7 @@ var css_248z$8 = i`* {
|
|
|
9196
9196
|
height: 100%;
|
|
9197
9197
|
}`;
|
|
9198
9198
|
|
|
9199
|
-
var css_248z$
|
|
9199
|
+
var css_248z$8 = i`* {
|
|
9200
9200
|
box-sizing: border-box;
|
|
9201
9201
|
}
|
|
9202
9202
|
|
|
@@ -9283,13 +9283,13 @@ class Tabs extends i$1 {
|
|
|
9283
9283
|
`;
|
|
9284
9284
|
}
|
|
9285
9285
|
}
|
|
9286
|
-
Tabs.styles = [css_248z$
|
|
9286
|
+
Tabs.styles = [css_248z$8];
|
|
9287
9287
|
Tabs.Tab = Tab;
|
|
9288
9288
|
__decorate([
|
|
9289
9289
|
n({ type: Boolean })
|
|
9290
9290
|
], Tabs.prototype, "managed", void 0);
|
|
9291
9291
|
|
|
9292
|
-
var css_248z$
|
|
9292
|
+
var css_248z$7 = i`* {
|
|
9293
9293
|
box-sizing: border-box;
|
|
9294
9294
|
}
|
|
9295
9295
|
|
|
@@ -9331,7 +9331,7 @@ class TabPanel extends i$1 {
|
|
|
9331
9331
|
return b `<slot></slot>`;
|
|
9332
9332
|
}
|
|
9333
9333
|
}
|
|
9334
|
-
TabPanel.styles = [css_248z$
|
|
9334
|
+
TabPanel.styles = [css_248z$7];
|
|
9335
9335
|
__decorate([
|
|
9336
9336
|
n({ reflect: true })
|
|
9337
9337
|
], TabPanel.prototype, "value", void 0);
|
|
@@ -9485,14 +9485,14 @@ class TabGroup extends i$1 {
|
|
|
9485
9485
|
return b `<slot></slot>`;
|
|
9486
9486
|
}
|
|
9487
9487
|
}
|
|
9488
|
-
TabGroup.styles = [css_248z$
|
|
9488
|
+
TabGroup.styles = [css_248z$9];
|
|
9489
9489
|
TabGroup.Tabs = Tabs;
|
|
9490
9490
|
TabGroup.TabPanel = TabPanel;
|
|
9491
9491
|
__decorate([
|
|
9492
9492
|
n({ reflect: true })
|
|
9493
9493
|
], TabGroup.prototype, "variant", void 0);
|
|
9494
9494
|
|
|
9495
|
-
var css_248z$
|
|
9495
|
+
var css_248z$6 = i`:host {
|
|
9496
9496
|
--_track-height: 4px;
|
|
9497
9497
|
--_thumb-size: 20px;
|
|
9498
9498
|
--thumb-half: 10px;
|
|
@@ -9765,7 +9765,7 @@ class Slider extends i$1 {
|
|
|
9765
9765
|
`;
|
|
9766
9766
|
}
|
|
9767
9767
|
}
|
|
9768
|
-
Slider.styles = [css_248z$
|
|
9768
|
+
Slider.styles = [css_248z$6];
|
|
9769
9769
|
__decorate([
|
|
9770
9770
|
n({ type: Number })
|
|
9771
9771
|
], Slider.prototype, "min", void 0);
|
|
@@ -9794,7 +9794,7 @@ __decorate([
|
|
|
9794
9794
|
e$4('.thumb')
|
|
9795
9795
|
], Slider.prototype, "thumbElement", void 0);
|
|
9796
9796
|
|
|
9797
|
-
var css_248z$
|
|
9797
|
+
var css_248z$5 = i`* {
|
|
9798
9798
|
box-sizing: border-box;
|
|
9799
9799
|
}
|
|
9800
9800
|
|
|
@@ -10328,7 +10328,7 @@ class Table extends i$1 {
|
|
|
10328
10328
|
`;
|
|
10329
10329
|
}
|
|
10330
10330
|
}
|
|
10331
|
-
Table.styles = [css_248z$
|
|
10331
|
+
Table.styles = [css_248z$5];
|
|
10332
10332
|
__decorate([
|
|
10333
10333
|
n({ type: Array })
|
|
10334
10334
|
], Table.prototype, "columns", void 0);
|
|
@@ -10387,7 +10387,7 @@ __decorate([
|
|
|
10387
10387
|
r()
|
|
10388
10388
|
], Table.prototype, "isHorizontallyScrolled", void 0);
|
|
10389
10389
|
|
|
10390
|
-
var css_248z$
|
|
10390
|
+
var css_248z$4 = i`* {
|
|
10391
10391
|
box-sizing: border-box;
|
|
10392
10392
|
}
|
|
10393
10393
|
|
|
@@ -10569,7 +10569,7 @@ class Pagination extends i$1 {
|
|
|
10569
10569
|
`;
|
|
10570
10570
|
}
|
|
10571
10571
|
}
|
|
10572
|
-
Pagination.styles = [css_248z$
|
|
10572
|
+
Pagination.styles = [css_248z$4];
|
|
10573
10573
|
__decorate([
|
|
10574
10574
|
n({ type: Number })
|
|
10575
10575
|
], Pagination.prototype, "page", void 0);
|
|
@@ -10583,7 +10583,7 @@ __decorate([
|
|
|
10583
10583
|
n({ type: Array, attribute: 'page-sizes' })
|
|
10584
10584
|
], Pagination.prototype, "pageSizes", void 0);
|
|
10585
10585
|
|
|
10586
|
-
var css_248z$
|
|
10586
|
+
var css_248z$3 = i`* {
|
|
10587
10587
|
box-sizing: border-box;
|
|
10588
10588
|
}
|
|
10589
10589
|
|
|
@@ -10898,7 +10898,7 @@ class TreeNode extends i$1 {
|
|
|
10898
10898
|
</div>`;
|
|
10899
10899
|
}
|
|
10900
10900
|
}
|
|
10901
|
-
TreeNode.styles = [css_248z$
|
|
10901
|
+
TreeNode.styles = [css_248z$3];
|
|
10902
10902
|
__decorate([
|
|
10903
10903
|
n({ type: String, reflect: true })
|
|
10904
10904
|
], TreeNode.prototype, "value", void 0);
|
|
@@ -10930,7 +10930,7 @@ __decorate([
|
|
|
10930
10930
|
e$4('.tree-node-content')
|
|
10931
10931
|
], TreeNode.prototype, "_nativeElement", void 0);
|
|
10932
10932
|
|
|
10933
|
-
var css_248z$
|
|
10933
|
+
var css_248z$2 = i`* {
|
|
10934
10934
|
box-sizing: border-box;
|
|
10935
10935
|
}
|
|
10936
10936
|
|
|
@@ -11093,13 +11093,13 @@ class TreeView extends i$1 {
|
|
|
11093
11093
|
</div>`;
|
|
11094
11094
|
}
|
|
11095
11095
|
}
|
|
11096
|
-
TreeView.styles = [css_248z$
|
|
11096
|
+
TreeView.styles = [css_248z$2];
|
|
11097
11097
|
TreeView.Node = TreeNode;
|
|
11098
11098
|
__decorate([
|
|
11099
11099
|
n({ type: String, attribute: 'selected-node', reflect: true })
|
|
11100
11100
|
], TreeView.prototype, "selectedNode", void 0);
|
|
11101
11101
|
|
|
11102
|
-
var css_248z = i`* {
|
|
11102
|
+
var css_248z$1 = i`* {
|
|
11103
11103
|
box-sizing: border-box;
|
|
11104
11104
|
}
|
|
11105
11105
|
|
|
@@ -11302,7 +11302,7 @@ class Snackbar extends i$1 {
|
|
|
11302
11302
|
`;
|
|
11303
11303
|
}
|
|
11304
11304
|
}
|
|
11305
|
-
Snackbar.styles = [css_248z];
|
|
11305
|
+
Snackbar.styles = [css_248z$1];
|
|
11306
11306
|
__decorate([
|
|
11307
11307
|
n({ type: Boolean, reflect: true })
|
|
11308
11308
|
], Snackbar.prototype, "open", void 0);
|
|
@@ -11322,5 +11322,458 @@ __decorate([
|
|
|
11322
11322
|
n({ type: Boolean, reflect: true })
|
|
11323
11323
|
], Snackbar.prototype, "multiline", void 0);
|
|
11324
11324
|
|
|
11325
|
-
|
|
11326
|
-
|
|
11325
|
+
var css_248z = i`* {
|
|
11326
|
+
box-sizing: border-box;
|
|
11327
|
+
}
|
|
11328
|
+
|
|
11329
|
+
.screen-reader-only {
|
|
11330
|
+
display: none !important;
|
|
11331
|
+
}
|
|
11332
|
+
|
|
11333
|
+
:host {
|
|
11334
|
+
display: inline-block;
|
|
11335
|
+
--radio-size: 20px;
|
|
11336
|
+
--radio-dot-size: 12px;
|
|
11337
|
+
--radio-selected-color: var(--color-primary);
|
|
11338
|
+
--radio-unselected-color: var(--color-on-surface-variant);
|
|
11339
|
+
--radio-state-layer-size: 40px;
|
|
11340
|
+
--radio-disabled-opacity: 0.38;
|
|
11341
|
+
}
|
|
11342
|
+
|
|
11343
|
+
.radio {
|
|
11344
|
+
position: relative;
|
|
11345
|
+
display: inline-flex;
|
|
11346
|
+
align-items: center;
|
|
11347
|
+
cursor: pointer;
|
|
11348
|
+
user-select: none;
|
|
11349
|
+
vertical-align: middle;
|
|
11350
|
+
gap: 8px;
|
|
11351
|
+
font-family: var(--typography-body-medium-font-family) !important;
|
|
11352
|
+
font-size: var(--typography-body-medium-font-size) !important;
|
|
11353
|
+
font-weight: var(--typography-body-medium-font-weight) !important;
|
|
11354
|
+
line-height: var(--typography-body-medium-line-height) !important;
|
|
11355
|
+
letter-spacing: var(--typography-body-medium-letter-spacing) !important;
|
|
11356
|
+
}
|
|
11357
|
+
.radio .input-native {
|
|
11358
|
+
position: absolute;
|
|
11359
|
+
width: 1px;
|
|
11360
|
+
height: 1px;
|
|
11361
|
+
padding: 0;
|
|
11362
|
+
margin: -1px;
|
|
11363
|
+
overflow: hidden;
|
|
11364
|
+
clip: rect(0, 0, 0, 0);
|
|
11365
|
+
border: 0;
|
|
11366
|
+
}
|
|
11367
|
+
.radio .container {
|
|
11368
|
+
position: relative;
|
|
11369
|
+
display: inline-flex;
|
|
11370
|
+
align-items: center;
|
|
11371
|
+
justify-content: center;
|
|
11372
|
+
width: var(--radio-state-layer-size);
|
|
11373
|
+
height: var(--radio-state-layer-size);
|
|
11374
|
+
cursor: inherit;
|
|
11375
|
+
outline: none;
|
|
11376
|
+
flex-shrink: 0;
|
|
11377
|
+
}
|
|
11378
|
+
.radio .state-layer {
|
|
11379
|
+
position: absolute;
|
|
11380
|
+
inset: 0;
|
|
11381
|
+
border-radius: 50%;
|
|
11382
|
+
opacity: 0;
|
|
11383
|
+
transition: opacity var(--duration-short2) var(--easing-standard);
|
|
11384
|
+
}
|
|
11385
|
+
.radio .outer-circle {
|
|
11386
|
+
position: absolute;
|
|
11387
|
+
width: var(--radio-size);
|
|
11388
|
+
height: var(--radio-size);
|
|
11389
|
+
border: 2px solid var(--radio-unselected-color);
|
|
11390
|
+
border-radius: 50%;
|
|
11391
|
+
box-sizing: border-box;
|
|
11392
|
+
transition: border-color var(--duration-short2) var(--easing-standard);
|
|
11393
|
+
}
|
|
11394
|
+
.radio .inner-circle {
|
|
11395
|
+
position: absolute;
|
|
11396
|
+
width: var(--radio-dot-size);
|
|
11397
|
+
height: var(--radio-dot-size);
|
|
11398
|
+
background: var(--radio-selected-color);
|
|
11399
|
+
border-radius: 50%;
|
|
11400
|
+
opacity: 0;
|
|
11401
|
+
transform: scale(0.5);
|
|
11402
|
+
transition: transform var(--duration-short2) var(--easing-standard), opacity var(--duration-short2) var(--easing-standard);
|
|
11403
|
+
}
|
|
11404
|
+
.radio .label {
|
|
11405
|
+
color: var(--color-on-surface);
|
|
11406
|
+
cursor: inherit;
|
|
11407
|
+
}
|
|
11408
|
+
.radio:hover:not(.disabled):not(.readonly) .state-layer {
|
|
11409
|
+
opacity: 0.08;
|
|
11410
|
+
background: var(--color-on-surface);
|
|
11411
|
+
}
|
|
11412
|
+
.radio:hover:not(.disabled):not(.readonly).state-checked .state-layer {
|
|
11413
|
+
background: var(--radio-selected-color);
|
|
11414
|
+
}
|
|
11415
|
+
.radio.has-focus:not(.active):not(.disabled):not(.readonly) .state-layer {
|
|
11416
|
+
opacity: 0.12;
|
|
11417
|
+
background: var(--color-on-surface);
|
|
11418
|
+
}
|
|
11419
|
+
.radio.has-focus:not(.active):not(.disabled):not(.readonly) .container {
|
|
11420
|
+
outline: 3px solid var(--color-primary);
|
|
11421
|
+
outline-offset: 2px;
|
|
11422
|
+
border-radius: 50%;
|
|
11423
|
+
}
|
|
11424
|
+
.radio.has-focus:not(.active):not(.disabled):not(.readonly).state-checked .state-layer {
|
|
11425
|
+
background: var(--radio-selected-color);
|
|
11426
|
+
}
|
|
11427
|
+
.radio.active:not(.disabled):not(.readonly) .state-layer {
|
|
11428
|
+
opacity: 0.12;
|
|
11429
|
+
background: var(--color-on-surface);
|
|
11430
|
+
}
|
|
11431
|
+
.radio.active:not(.disabled):not(.readonly).state-checked .state-layer {
|
|
11432
|
+
background: var(--radio-selected-color);
|
|
11433
|
+
}
|
|
11434
|
+
|
|
11435
|
+
.radio.state-checked .outer-circle {
|
|
11436
|
+
border-color: var(--radio-selected-color);
|
|
11437
|
+
}
|
|
11438
|
+
.radio.state-checked .inner-circle {
|
|
11439
|
+
opacity: 1;
|
|
11440
|
+
transform: scale(1);
|
|
11441
|
+
}
|
|
11442
|
+
|
|
11443
|
+
.radio.readonly {
|
|
11444
|
+
cursor: default;
|
|
11445
|
+
}
|
|
11446
|
+
.radio.readonly .state-layer {
|
|
11447
|
+
display: none;
|
|
11448
|
+
}
|
|
11449
|
+
.radio.readonly .outer-circle {
|
|
11450
|
+
border-color: var(--color-on-surface-variant);
|
|
11451
|
+
}
|
|
11452
|
+
.radio.readonly.state-checked .inner-circle {
|
|
11453
|
+
background: var(--color-on-surface-variant);
|
|
11454
|
+
}
|
|
11455
|
+
|
|
11456
|
+
.radio.disabled {
|
|
11457
|
+
cursor: not-allowed;
|
|
11458
|
+
opacity: var(--radio-disabled-opacity);
|
|
11459
|
+
}
|
|
11460
|
+
.radio.disabled .state-layer {
|
|
11461
|
+
display: none;
|
|
11462
|
+
}
|
|
11463
|
+
.radio.disabled .label {
|
|
11464
|
+
color: var(--color-on-surface);
|
|
11465
|
+
}
|
|
11466
|
+
.radio.disabled .outer-circle {
|
|
11467
|
+
border-color: var(--color-on-surface);
|
|
11468
|
+
}
|
|
11469
|
+
.radio.disabled.state-checked .inner-circle {
|
|
11470
|
+
background: var(--color-on-surface);
|
|
11471
|
+
}`;
|
|
11472
|
+
|
|
11473
|
+
class Radio extends i$1 {
|
|
11474
|
+
constructor() {
|
|
11475
|
+
super(...arguments);
|
|
11476
|
+
/**
|
|
11477
|
+
* The input field name for grouping radios.
|
|
11478
|
+
*/
|
|
11479
|
+
this.name = '';
|
|
11480
|
+
/**
|
|
11481
|
+
* The submitted value when this radio is selected.
|
|
11482
|
+
*/
|
|
11483
|
+
this.value = '';
|
|
11484
|
+
/**
|
|
11485
|
+
* The radio label.
|
|
11486
|
+
*/
|
|
11487
|
+
this.label = '';
|
|
11488
|
+
/**
|
|
11489
|
+
* Whether the radio is selected.
|
|
11490
|
+
*/
|
|
11491
|
+
this.checked = false;
|
|
11492
|
+
/**
|
|
11493
|
+
* If true, required icon is shown. Defaults to `false`.
|
|
11494
|
+
*/
|
|
11495
|
+
this.required = false;
|
|
11496
|
+
/**
|
|
11497
|
+
* If true, the radio is readonly. Defaults to `false`.
|
|
11498
|
+
*/
|
|
11499
|
+
this.readonly = false;
|
|
11500
|
+
/**
|
|
11501
|
+
* If true, the user cannot interact with the radio. Defaults to `false`.
|
|
11502
|
+
*/
|
|
11503
|
+
this.disabled = false;
|
|
11504
|
+
/**
|
|
11505
|
+
* Configuration object for aria attributes.
|
|
11506
|
+
*/
|
|
11507
|
+
this.configAria = {};
|
|
11508
|
+
this.hasFocus = false;
|
|
11509
|
+
this.isActive = false;
|
|
11510
|
+
this.slotHasContent = false;
|
|
11511
|
+
this.isGroupFocusTarget = false;
|
|
11512
|
+
this.windowMouseUp = () => {
|
|
11513
|
+
if (this.isActive) {
|
|
11514
|
+
this.isActive = false;
|
|
11515
|
+
}
|
|
11516
|
+
};
|
|
11517
|
+
this.windowKeyUp = (evt) => {
|
|
11518
|
+
if (this.isActive && evt.key === ' ') {
|
|
11519
|
+
evt.preventDefault();
|
|
11520
|
+
this.isActive = false;
|
|
11521
|
+
}
|
|
11522
|
+
};
|
|
11523
|
+
this.mouseDownHandler = () => {
|
|
11524
|
+
this.isActive = true;
|
|
11525
|
+
};
|
|
11526
|
+
this.keyDownHandler = (evt) => {
|
|
11527
|
+
if (evt.key === ' ') {
|
|
11528
|
+
evt.preventDefault();
|
|
11529
|
+
this.isActive = true;
|
|
11530
|
+
this.selectRadio(evt);
|
|
11531
|
+
}
|
|
11532
|
+
else if (evt.key === 'ArrowRight' || evt.key === 'ArrowDown') {
|
|
11533
|
+
evt.preventDefault();
|
|
11534
|
+
this.navigateGroup(Radio.DIRECTION_NEXT);
|
|
11535
|
+
}
|
|
11536
|
+
else if (evt.key === 'ArrowLeft' || evt.key === 'ArrowUp') {
|
|
11537
|
+
evt.preventDefault();
|
|
11538
|
+
this.navigateGroup(Radio.DIRECTION_PREVIOUS);
|
|
11539
|
+
}
|
|
11540
|
+
};
|
|
11541
|
+
this.clickHandler = (ev) => {
|
|
11542
|
+
this.selectRadio(ev);
|
|
11543
|
+
};
|
|
11544
|
+
this.blurHandler = (ev) => {
|
|
11545
|
+
this.hasFocus = false;
|
|
11546
|
+
this.dispatchEvent(new CustomEvent('blur', {
|
|
11547
|
+
detail: ev,
|
|
11548
|
+
bubbles: true,
|
|
11549
|
+
composed: true,
|
|
11550
|
+
}));
|
|
11551
|
+
};
|
|
11552
|
+
this.focusHandler = (ev) => {
|
|
11553
|
+
this.hasFocus = true;
|
|
11554
|
+
this.dispatchEvent(new CustomEvent('focus', {
|
|
11555
|
+
detail: ev,
|
|
11556
|
+
bubbles: true,
|
|
11557
|
+
composed: true,
|
|
11558
|
+
}));
|
|
11559
|
+
};
|
|
11560
|
+
}
|
|
11561
|
+
connectedCallback() {
|
|
11562
|
+
super.connectedCallback();
|
|
11563
|
+
this.handleInitialAttributes();
|
|
11564
|
+
window.addEventListener('mouseup', this.windowMouseUp);
|
|
11565
|
+
window.addEventListener('keyup', this.windowKeyUp);
|
|
11566
|
+
}
|
|
11567
|
+
disconnectedCallback() {
|
|
11568
|
+
super.disconnectedCallback();
|
|
11569
|
+
window.removeEventListener('mouseup', this.windowMouseUp);
|
|
11570
|
+
window.removeEventListener('keyup', this.windowKeyUp);
|
|
11571
|
+
}
|
|
11572
|
+
firstUpdated() {
|
|
11573
|
+
this.slotHasContent = this.hasChildNodes() || !!this.label;
|
|
11574
|
+
this.updateGroupFocusTarget();
|
|
11575
|
+
}
|
|
11576
|
+
updated(changedProps) {
|
|
11577
|
+
if (changedProps.has('label')) {
|
|
11578
|
+
this.slotHasContent = this.hasChildNodes() || !!this.label;
|
|
11579
|
+
}
|
|
11580
|
+
if (changedProps.has('checked') && this.checked) {
|
|
11581
|
+
this.uncheckSiblings();
|
|
11582
|
+
}
|
|
11583
|
+
if (changedProps.has('checked') || changedProps.has('name')) {
|
|
11584
|
+
this.updateGroupFocusTarget();
|
|
11585
|
+
}
|
|
11586
|
+
}
|
|
11587
|
+
handleInitialAttributes() {
|
|
11588
|
+
if (this.hasAttribute('tabindex')) {
|
|
11589
|
+
const attrValue = this.getAttribute('tabindex');
|
|
11590
|
+
if (attrValue !== null) {
|
|
11591
|
+
this.tabindex = parseInt(attrValue, 10);
|
|
11592
|
+
}
|
|
11593
|
+
this.removeAttribute('tabindex');
|
|
11594
|
+
}
|
|
11595
|
+
Array.from(this.attributes).forEach(attr => {
|
|
11596
|
+
if (attr.name.startsWith('aria-')) {
|
|
11597
|
+
this.configAria[attr.name] = attr.value;
|
|
11598
|
+
this.removeAttribute(attr.name);
|
|
11599
|
+
}
|
|
11600
|
+
});
|
|
11601
|
+
}
|
|
11602
|
+
selectRadio(ev) {
|
|
11603
|
+
if (this.disabled || this.readonly)
|
|
11604
|
+
return;
|
|
11605
|
+
if (!this.checked) {
|
|
11606
|
+
this.checked = true;
|
|
11607
|
+
this.uncheckSiblings();
|
|
11608
|
+
this.dispatchChange(ev);
|
|
11609
|
+
}
|
|
11610
|
+
this.containerElement?.focus();
|
|
11611
|
+
}
|
|
11612
|
+
dispatchChange(ev) {
|
|
11613
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
11614
|
+
detail: { value: this.value, checked: this.checked, originalEvent: ev },
|
|
11615
|
+
bubbles: true,
|
|
11616
|
+
composed: true,
|
|
11617
|
+
}));
|
|
11618
|
+
}
|
|
11619
|
+
uncheckSiblings() {
|
|
11620
|
+
if (!this.name || !this.checked)
|
|
11621
|
+
return;
|
|
11622
|
+
const radios = this.getGroupRadios();
|
|
11623
|
+
radios.forEach(radio => {
|
|
11624
|
+
if (radio === this)
|
|
11625
|
+
return;
|
|
11626
|
+
radio.checked = false;
|
|
11627
|
+
});
|
|
11628
|
+
}
|
|
11629
|
+
getGroupRadios() {
|
|
11630
|
+
if (!this.name)
|
|
11631
|
+
return [this];
|
|
11632
|
+
const scopeRoot = this.closest('form') ?? document;
|
|
11633
|
+
return Array.from(scopeRoot.querySelectorAll(`wc-radio[name="${this.name}"]`));
|
|
11634
|
+
}
|
|
11635
|
+
isRadioEnabled(radio) {
|
|
11636
|
+
return !radio.disabled && !radio.readonly;
|
|
11637
|
+
}
|
|
11638
|
+
updateGroupFocusTarget() {
|
|
11639
|
+
const group = this.getGroupRadios();
|
|
11640
|
+
if (!group.length)
|
|
11641
|
+
return;
|
|
11642
|
+
const enabledGroup = group.filter(radio => this.isRadioEnabled(radio));
|
|
11643
|
+
if (!enabledGroup.length) {
|
|
11644
|
+
group.forEach(radio => {
|
|
11645
|
+
radio.isGroupFocusTarget = false;
|
|
11646
|
+
});
|
|
11647
|
+
return;
|
|
11648
|
+
}
|
|
11649
|
+
const target = enabledGroup.find(radio => radio.checked) || enabledGroup[0];
|
|
11650
|
+
group.forEach(radio => {
|
|
11651
|
+
radio.isGroupFocusTarget = radio === target;
|
|
11652
|
+
});
|
|
11653
|
+
}
|
|
11654
|
+
navigateGroup(direction) {
|
|
11655
|
+
const group = this.getGroupRadios().filter(radio => this.isRadioEnabled(radio));
|
|
11656
|
+
if (!group.length)
|
|
11657
|
+
return;
|
|
11658
|
+
const currentIndex = group.indexOf(this);
|
|
11659
|
+
const startIndex = currentIndex >= 0 ? currentIndex : 0;
|
|
11660
|
+
const nextIndex = (startIndex + direction + group.length) % group.length;
|
|
11661
|
+
const target = group[nextIndex];
|
|
11662
|
+
target.selectRadio();
|
|
11663
|
+
target.containerElement?.focus();
|
|
11664
|
+
}
|
|
11665
|
+
/**
|
|
11666
|
+
* Sets focus on the radio.
|
|
11667
|
+
*/
|
|
11668
|
+
focus() {
|
|
11669
|
+
this.containerElement?.focus();
|
|
11670
|
+
}
|
|
11671
|
+
/**
|
|
11672
|
+
* Removes focus from the radio.
|
|
11673
|
+
*/
|
|
11674
|
+
blur() {
|
|
11675
|
+
this.containerElement?.blur();
|
|
11676
|
+
}
|
|
11677
|
+
render() {
|
|
11678
|
+
const cssClasses = {
|
|
11679
|
+
radio: true,
|
|
11680
|
+
'state-checked': this.checked,
|
|
11681
|
+
'has-focus': this.hasFocus,
|
|
11682
|
+
active: this.isActive,
|
|
11683
|
+
disabled: this.disabled,
|
|
11684
|
+
readonly: this.readonly,
|
|
11685
|
+
required: this.required,
|
|
11686
|
+
'has-content': this.slotHasContent,
|
|
11687
|
+
};
|
|
11688
|
+
return b `
|
|
11689
|
+
<label class=${e$3(cssClasses)}>
|
|
11690
|
+
<div
|
|
11691
|
+
class="container"
|
|
11692
|
+
tabindex=${this.isGroupFocusTarget
|
|
11693
|
+
? this.tabindex !== undefined
|
|
11694
|
+
? this.tabindex
|
|
11695
|
+
: 0
|
|
11696
|
+
: -1}
|
|
11697
|
+
role="radio"
|
|
11698
|
+
aria-disabled=${this.disabled}
|
|
11699
|
+
aria-required=${this.required}
|
|
11700
|
+
aria-checked=${this.checked}
|
|
11701
|
+
@click=${this.clickHandler}
|
|
11702
|
+
@mousedown=${this.mouseDownHandler}
|
|
11703
|
+
@keydown=${this.keyDownHandler}
|
|
11704
|
+
@blur=${this.blurHandler}
|
|
11705
|
+
@focus=${this.focusHandler}
|
|
11706
|
+
${spread(this.configAria)}
|
|
11707
|
+
>
|
|
11708
|
+
<div class="state-layer"></div>
|
|
11709
|
+
<div class="outer-circle"></div>
|
|
11710
|
+
<div class="inner-circle"></div>
|
|
11711
|
+
</div>
|
|
11712
|
+
|
|
11713
|
+
<input
|
|
11714
|
+
type="radio"
|
|
11715
|
+
class="input-native"
|
|
11716
|
+
name=${this.name}
|
|
11717
|
+
.value=${this.value}
|
|
11718
|
+
.checked=${this.checked}
|
|
11719
|
+
aria-hidden="true"
|
|
11720
|
+
?required=${this.required}
|
|
11721
|
+
?disabled=${this.disabled}
|
|
11722
|
+
tabindex="-1"
|
|
11723
|
+
/>
|
|
11724
|
+
|
|
11725
|
+
${this.label
|
|
11726
|
+
? b `<div class="label">${this.label}</div>`
|
|
11727
|
+
: b `<div class="label slot-container"><slot></slot></div>`}
|
|
11728
|
+
</label>
|
|
11729
|
+
`;
|
|
11730
|
+
}
|
|
11731
|
+
}
|
|
11732
|
+
Radio.DIRECTION_NEXT = 1;
|
|
11733
|
+
Radio.DIRECTION_PREVIOUS = -1;
|
|
11734
|
+
Radio.styles = [css_248z];
|
|
11735
|
+
__decorate([
|
|
11736
|
+
n({ type: String })
|
|
11737
|
+
], Radio.prototype, "name", void 0);
|
|
11738
|
+
__decorate([
|
|
11739
|
+
n({ type: String })
|
|
11740
|
+
], Radio.prototype, "value", void 0);
|
|
11741
|
+
__decorate([
|
|
11742
|
+
n({ type: String })
|
|
11743
|
+
], Radio.prototype, "label", void 0);
|
|
11744
|
+
__decorate([
|
|
11745
|
+
n({ type: Boolean, reflect: true })
|
|
11746
|
+
], Radio.prototype, "checked", void 0);
|
|
11747
|
+
__decorate([
|
|
11748
|
+
n({ type: Boolean, reflect: true })
|
|
11749
|
+
], Radio.prototype, "required", void 0);
|
|
11750
|
+
__decorate([
|
|
11751
|
+
n({ type: Boolean, reflect: true })
|
|
11752
|
+
], Radio.prototype, "readonly", void 0);
|
|
11753
|
+
__decorate([
|
|
11754
|
+
n({ type: Boolean, reflect: true })
|
|
11755
|
+
], Radio.prototype, "disabled", void 0);
|
|
11756
|
+
__decorate([
|
|
11757
|
+
n({ type: Object })
|
|
11758
|
+
], Radio.prototype, "configAria", void 0);
|
|
11759
|
+
__decorate([
|
|
11760
|
+
r()
|
|
11761
|
+
], Radio.prototype, "hasFocus", void 0);
|
|
11762
|
+
__decorate([
|
|
11763
|
+
r()
|
|
11764
|
+
], Radio.prototype, "isActive", void 0);
|
|
11765
|
+
__decorate([
|
|
11766
|
+
r()
|
|
11767
|
+
], Radio.prototype, "slotHasContent", void 0);
|
|
11768
|
+
__decorate([
|
|
11769
|
+
r()
|
|
11770
|
+
], Radio.prototype, "isGroupFocusTarget", void 0);
|
|
11771
|
+
__decorate([
|
|
11772
|
+
e$4('.container')
|
|
11773
|
+
], Radio.prototype, "containerElement", void 0);
|
|
11774
|
+
__decorate([
|
|
11775
|
+
e$4('.input-native')
|
|
11776
|
+
], Radio.prototype, "nativeElement", void 0);
|
|
11777
|
+
|
|
11778
|
+
export { Accordion as A, Badge as B, Checkbox as C, DatePicker as D, Elevation as E, Field as F, Tooltip as G, TreeNode as H, Icon as I, TreeView as J, LinearProgress as L, Menu as M, NumberField as N, Pagination as P, Radio as R, Skeleton as S, Tab as T, Avatar as a, Breadcrumb as b, BreadcrumbItem as c, Chip as d, CircularProgress as e, Container as f, Divider as g, EmptyState as h, FocusRing as i, Image as j, Input as k, Link as l, MenuItem as m, Ripple as n, Slider as o, Snackbar as p, Spinner as q, SubMenu as r, Switch as s, TabGroup as t, TabPanel as u, Table as v, Tabs as w, Tag as x, Textarea as y, TimePicker as z };
|
|
11779
|
+
//# sourceMappingURL=radio-b70_Ie9n.js.map
|