@momentum-design/components 0.120.31 → 0.120.32
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/browser/index.js +227 -367
- package/dist/browser/index.js.map +2 -2
- package/dist/components/checkbox/checkbox.component.d.ts +2 -0
- package/dist/components/checkbox/checkbox.component.js +3 -0
- package/dist/components/checkbox/checkbox.styles.js +14 -52
- package/dist/components/combobox/combobox.component.d.ts +1 -0
- package/dist/components/combobox/combobox.component.js +1 -0
- package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +1 -0
- package/dist/components/formfieldgroup/formfieldgroup.component.js +1 -0
- package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +1 -0
- package/dist/components/formfieldwrapper/formfieldwrapper.component.js +1 -0
- package/dist/components/formfieldwrapper/formfieldwrapper.styles.js +8 -4
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/input/input.component.js +1 -0
- package/dist/components/password/password.component.d.ts +1 -0
- package/dist/components/password/password.component.js +1 -0
- package/dist/components/progressbar/progressbar.component.d.ts +1 -0
- package/dist/components/progressbar/progressbar.component.js +1 -0
- package/dist/components/radio/radio.component.d.ts +5 -8
- package/dist/components/radio/radio.component.js +6 -8
- package/dist/components/radio/radio.styles.js +16 -74
- package/dist/components/searchfield/searchfield.component.d.ts +1 -0
- package/dist/components/searchfield/searchfield.component.js +1 -0
- package/dist/components/select/select.component.d.ts +1 -0
- package/dist/components/select/select.component.js +1 -0
- package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +4 -9
- package/dist/components/staticcheckbox/staticcheckbox.component.js +4 -9
- package/dist/components/staticcheckbox/staticcheckbox.styles.js +54 -56
- package/dist/components/staticradio/staticradio.component.d.ts +5 -12
- package/dist/components/staticradio/staticradio.component.js +5 -12
- package/dist/components/staticradio/staticradio.styles.js +65 -58
- package/dist/components/statictoggle/statictoggle.component.d.ts +7 -15
- package/dist/components/statictoggle/statictoggle.component.js +7 -15
- package/dist/components/statictoggle/statictoggle.styles.js +55 -64
- package/dist/components/textarea/textarea.component.d.ts +1 -0
- package/dist/components/textarea/textarea.component.js +1 -0
- package/dist/components/toggle/toggle.component.d.ts +8 -11
- package/dist/components/toggle/toggle.component.js +10 -13
- package/dist/components/toggle/toggle.styles.js +12 -58
- package/dist/custom-elements.json +1916 -1900
- package/dist/react/checkbox/index.d.ts +2 -0
- package/dist/react/checkbox/index.js +2 -0
- package/dist/react/combobox/index.d.ts +1 -0
- package/dist/react/combobox/index.js +1 -0
- package/dist/react/formfieldgroup/index.d.ts +1 -0
- package/dist/react/formfieldgroup/index.js +1 -0
- package/dist/react/formfieldwrapper/index.d.ts +1 -0
- package/dist/react/formfieldwrapper/index.js +1 -0
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/dist/react/input/index.d.ts +1 -0
- package/dist/react/input/index.js +1 -0
- package/dist/react/password/index.d.ts +1 -0
- package/dist/react/password/index.js +1 -0
- package/dist/react/progressbar/index.d.ts +1 -0
- package/dist/react/progressbar/index.js +1 -0
- package/dist/react/radio/index.d.ts +5 -8
- package/dist/react/radio/index.js +5 -8
- package/dist/react/searchfield/index.d.ts +1 -0
- package/dist/react/searchfield/index.js +1 -0
- package/dist/react/select/index.d.ts +1 -0
- package/dist/react/select/index.js +1 -0
- package/dist/react/staticcheckbox/index.d.ts +4 -9
- package/dist/react/staticcheckbox/index.js +4 -9
- package/dist/react/staticradio/index.d.ts +5 -12
- package/dist/react/staticradio/index.js +5 -12
- package/dist/react/statictoggle/index.d.ts +7 -15
- package/dist/react/statictoggle/index.js +7 -15
- package/dist/react/textarea/index.d.ts +1 -0
- package/dist/react/textarea/index.js +1 -0
- package/dist/react/toggle/index.d.ts +8 -11
- package/dist/react/toggle/index.js +8 -11
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2287,82 +2287,80 @@
|
|
|
2287
2287
|
</div>
|
|
2288
2288
|
`}};vs.styles=[...Er.styles,...Gu],p([u({type:Boolean,reflect:!0})],vs.prototype,"checked",2),p([u({type:String,attribute:"selection-type",reflect:!0})],vs.prototype,"selectionType",2);var kc=vs;var wE=[B`
|
|
2289
2289
|
:host {
|
|
2290
|
+
--mdc-checkbox-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2291
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
2292
|
+
--mdc-checkbox-icon-color: var(--mds-color-theme-inverted-text-primary-normal);
|
|
2293
|
+
--mdc-checkbox-size: 1rem;
|
|
2290
2294
|
margin: 0.125rem 0;
|
|
2291
2295
|
border-radius: 0.125rem;
|
|
2292
|
-
--mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-button-normal);
|
|
2293
|
-
--mdc-staticcheckbox-checked-background-color: var(--mds-color-theme-control-active-normal);
|
|
2294
|
-
--mdc-staticcheckbox-disabled-background-color: var(--mds-color-theme-control-inactive-disabled);
|
|
2295
|
-
--mdc-staticcheckbox-disabled-icon-color: var(--mds-color-theme-text-primary-disabled);
|
|
2296
|
-
--mdc-staticcheckbox-icon-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
2297
|
-
--mdc-staticcheckbox-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2298
|
-
--mdc-staticcheckbox-icon-color: var(--mds-color-theme-inverted-text-primary-normal);
|
|
2299
|
-
--mdc-staticcheckbox-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
2300
|
-
--mdc-staticcheckbox-disabled-checked-icon-color: var(--mds-color-theme-control-active-disabled);
|
|
2301
|
-
--mdc-staticcheckbox-readonly-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
2302
|
-
--mdc-staticcheckbox-text-normal-color: var(--mds-color-theme-text-primary-normal);
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
:host([checked])::part(icon-container),
|
|
2306
|
-
:host([indeterminate])::part(icon-container) {
|
|
2307
|
-
background-color: var(--mdc-staticcheckbox-checked-background-color);
|
|
2308
|
-
border-color: transparent;
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
:host([disabled])::part(icon-container),
|
|
2312
|
-
:host([soft-disabled])::part(icon-container),
|
|
2313
|
-
:host([disabled][readonly])::part(icon-container),
|
|
2314
|
-
:host([soft-disabled][readonly])::part(icon-container) {
|
|
2315
|
-
border-color: var(--mdc-staticcheckbox-disabled-border-color);
|
|
2316
|
-
background-color: var(--mdc-staticcheckbox-disabled-background-color);
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
-
:host([disabled][checked])::part(icon-container),
|
|
2320
|
-
:host([disabled][indeterminate])::part(icon-container),
|
|
2321
|
-
:host([soft-disabled][checked])::part(icon-container),
|
|
2322
|
-
:host([soft-disabled][indeterminate])::part(icon-container),
|
|
2323
|
-
:host([disabled][readonly][checked])::part(icon-container),
|
|
2324
|
-
:host([disabled][readonly][indeterminate])::part(icon-container),
|
|
2325
|
-
:host([soft-disabled][readonly][checked])::part(icon-container),
|
|
2326
|
-
:host([soft-disabled][readonly][indeterminate])::part(icon-container) {
|
|
2327
|
-
background-color: var(--mdc-staticcheckbox-disabled-checked-icon-color);
|
|
2328
|
-
border: 0.0625rem solid var(--mdc-staticcheckbox-disabled-border-color);
|
|
2329
2296
|
}
|
|
2330
2297
|
|
|
2331
2298
|
:host::part(icon-container) {
|
|
2332
2299
|
display: flex;
|
|
2333
2300
|
align-items: center;
|
|
2334
|
-
border: 0.0625rem solid var(--mdc-
|
|
2335
|
-
background-color: var(--mdc-
|
|
2336
|
-
width:
|
|
2337
|
-
height:
|
|
2301
|
+
border: 0.0625rem solid var(--mdc-checkbox-border-color);
|
|
2302
|
+
background-color: var(--mdc-checkbox-background-color);
|
|
2303
|
+
width: var(--mdc-checkbox-size);
|
|
2304
|
+
height: var(--mdc-checkbox-size);
|
|
2338
2305
|
border-radius: 0.125rem;
|
|
2339
2306
|
}
|
|
2340
2307
|
|
|
2341
|
-
:host
|
|
2342
|
-
|
|
2343
|
-
background-color: unset;
|
|
2308
|
+
:host::part(checkbox-icon) {
|
|
2309
|
+
--mdc-icon-fill-color: var(--mdc-checkbox-icon-color);
|
|
2344
2310
|
}
|
|
2345
2311
|
|
|
2346
|
-
:host
|
|
2347
|
-
|
|
2312
|
+
:host([checked]),
|
|
2313
|
+
:host([indeterminate]) {
|
|
2314
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-active-normal);
|
|
2315
|
+
--mdc-checkbox-border-color: transparent;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
:host([readonly]) {
|
|
2319
|
+
--mdc-checkbox-border-color: var(--mds-color-theme-outline-primary-normal);
|
|
2320
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-disabled);
|
|
2321
|
+
--mdc-checkbox-icon-color: var(--mds-color-theme-text-primary-normal);
|
|
2348
2322
|
}
|
|
2349
2323
|
|
|
2350
|
-
:host([disabled])
|
|
2351
|
-
:host([soft-disabled])
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
--mdc-icon-
|
|
2324
|
+
:host([disabled]),
|
|
2325
|
+
:host([soft-disabled]) {
|
|
2326
|
+
--mdc-checkbox-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
2327
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-disabled);
|
|
2328
|
+
--mdc-checkbox-icon-color: var(--mds-color-theme-text-primary-disabled);
|
|
2329
|
+
cursor: default;
|
|
2355
2330
|
}
|
|
2356
2331
|
|
|
2357
|
-
:host([
|
|
2358
|
-
|
|
2332
|
+
:host([disabled][checked]),
|
|
2333
|
+
:host([disabled][indeterminate]),
|
|
2334
|
+
:host([soft-disabled][checked]),
|
|
2335
|
+
:host([soft-disabled][indeterminate]) {
|
|
2336
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-active-disabled);
|
|
2337
|
+
--mdc-checkbox-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
2359
2338
|
}
|
|
2360
2339
|
|
|
2361
2340
|
/* High Contrast Mode */
|
|
2362
2341
|
@media (forced-colors: active) {
|
|
2363
|
-
:host([checked])
|
|
2364
|
-
:host([indeterminate])
|
|
2365
|
-
|
|
2342
|
+
:host([checked]),
|
|
2343
|
+
:host([indeterminate]) {
|
|
2344
|
+
--mdc-checkbox-background-color: SelectedItem;
|
|
2345
|
+
--mdc-checkbox-border-color: SelectedItemText;
|
|
2346
|
+
--mdc-checkbox-icon-color: SelectedItemText;
|
|
2347
|
+
}
|
|
2348
|
+
:host([readonly]) {
|
|
2349
|
+
--mdc-checkbox-border-color: Highlight;
|
|
2350
|
+
--mdc-checkbox-icon-color: HighlightText;
|
|
2351
|
+
}
|
|
2352
|
+
:host([disabled]),
|
|
2353
|
+
:host([soft-disabled]) {
|
|
2354
|
+
--mdc-checkbox-background-color: GrayText;
|
|
2355
|
+
--mdc-checkbox-border-color: GrayText;
|
|
2356
|
+
--mdc-checkbox-icon-color: GrayText;
|
|
2357
|
+
}
|
|
2358
|
+
:host([disabled][checked]),
|
|
2359
|
+
:host([disabled][indeterminate]),
|
|
2360
|
+
:host([soft-disabled][checked]),
|
|
2361
|
+
:host([soft-disabled][indeterminate]) {
|
|
2362
|
+
--mdc-checkbox-border-color: GrayText;
|
|
2363
|
+
--mdc-checkbox-icon-color: GrayText;
|
|
2366
2364
|
}
|
|
2367
2365
|
}
|
|
2368
2366
|
`],Yu=wE;var Wu=z.constructTagName("checkbox"),_l={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var ju=z.constructTagName("staticcheckbox");var Fi=class extends Vt(q){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.readonly=!1;this.softDisabled=!1}render(){let t=this.checked||this.indeterminate?_`
|
|
@@ -2439,69 +2437,40 @@
|
|
|
2439
2437
|
</div>
|
|
2440
2438
|
`}};gs.styles=[...Er.styles,...qu],p([u({type:Boolean,reflect:!0})],gs.prototype,"checked",2),p([u({type:String})],gs.prototype,"name",2);var Nc=gs;var Il=z.constructTagName("cardradio");var RE=[B`
|
|
2441
2439
|
:host {
|
|
2440
|
+
--mdc-radio-inner-circle-size: 0.375rem;
|
|
2441
|
+
--mdc-radio-outer-circle-size: 1rem;
|
|
2442
|
+
--mdc-radio-inner-circle-background-color: var(--mds-color-theme-inverted-text-primary-normal);
|
|
2443
|
+
--mdc-radio-outer-circle-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2444
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
2445
|
+
|
|
2442
2446
|
display: block;
|
|
2443
2447
|
position: relative;
|
|
2444
2448
|
width: 1rem;
|
|
2445
2449
|
height: 1rem;
|
|
2446
2450
|
margin: 0.125rem 0;
|
|
2447
2451
|
border-radius: 50%;
|
|
2448
|
-
|
|
2449
|
-
--mdc-staticradio-inner-circle-size: 0.375rem;
|
|
2450
|
-
--mdc-staticradio-text-normal-color: var(--mds-color-theme-text-primary-normal);
|
|
2451
|
-
--mdc-staticradio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
|
2452
|
-
--mdc-staticradio-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
2453
|
-
--mdc-staticradio-normal-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2454
|
-
--mdc-staticradio-inner-circle-normal-background: var(--mds-color-theme-inverted-text-primary-normal);
|
|
2455
|
-
--mdc-staticradio-inner-circle-disabled-background: var(--mds-color-theme-inverted-text-primary-disabled);
|
|
2456
|
-
--mdc-staticradio-control-inactive-color: var(--mds-color-theme-control-inactive-normal);
|
|
2457
|
-
--mdc-staticradio-control-inactive-disabled-background: var(--mds-color-theme-control-inactive-disabled);
|
|
2458
|
-
--mdc-staticradio-control-active-color: var(--mds-color-theme-control-active-normal);
|
|
2459
|
-
--mdc-staticradio-control-active-disabled-background: var(--mds-color-theme-control-active-disabled);
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
.radio-icon:after {
|
|
2463
|
-
content: '';
|
|
2464
|
-
position: absolute;
|
|
2465
|
-
display: none;
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
:host([disabled])::part(radio-icon),
|
|
2469
|
-
:host([soft-disabled])::part(radio-icon),
|
|
2470
|
-
:host([disabled][readonly])::part(radio-icon),
|
|
2471
|
-
:host([soft-disabled][readonly])::part(radio-icon) {
|
|
2472
|
-
border-color: var(--mdc-staticradio-disabled-border-color);
|
|
2473
|
-
background-color: var(--mdc-staticradio-control-inactive-disabled-background);
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
:host([disabled][checked])::part(radio-icon),
|
|
2477
|
-
:host([soft-disabled][checked])::part(radio-icon),
|
|
2478
|
-
:host([disabled][readonly][checked])::part(radio-icon),
|
|
2479
|
-
:host([soft-disabled][readonly][checked])::part(radio-icon) {
|
|
2480
|
-
border: var(--mdc-staticradio-control-active-disabled-background);
|
|
2481
|
-
background-color: var(--mdc-staticradio-control-active-disabled-background);
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
:host([disabled][checked]) .radio-icon:after,
|
|
2485
|
-
:host([soft-disabled][checked]) .radio-icon:after,
|
|
2486
|
-
:host([disabled][readonly][checked]) .radio-icon:after,
|
|
2487
|
-
:host([soft-disabled][readonly][checked]) .radio-icon:after {
|
|
2488
|
-
background-color: var(--mdc-staticradio-inner-circle-disabled-background);
|
|
2489
2452
|
}
|
|
2490
2453
|
|
|
2491
2454
|
:host::part(radio-icon) {
|
|
2492
2455
|
position: absolute;
|
|
2493
2456
|
top: 0;
|
|
2494
2457
|
left: 0;
|
|
2495
|
-
width:
|
|
2496
|
-
height:
|
|
2497
|
-
border: 0.0625rem solid var(--mdc-
|
|
2498
|
-
background-color: var(--mdc-
|
|
2458
|
+
width: var(--mdc-radio-outer-circle-size);
|
|
2459
|
+
height: var(--mdc-radio-outer-circle-size);
|
|
2460
|
+
border: 0.0625rem solid var(--mdc-radio-outer-circle-border-color);
|
|
2461
|
+
background-color: var(--mdc-radio-outer-circle-background-color);
|
|
2499
2462
|
border-radius: 50%;
|
|
2500
2463
|
}
|
|
2501
2464
|
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2465
|
+
.radio-icon:after {
|
|
2466
|
+
content: '';
|
|
2467
|
+
position: absolute;
|
|
2468
|
+
display: none;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
:host([checked]) {
|
|
2472
|
+
--mdc-radio-outer-circle-border-color: var(--mds-color-theme-control-active-normal);
|
|
2473
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-active-normal);
|
|
2505
2474
|
}
|
|
2506
2475
|
|
|
2507
2476
|
:host([checked]) .radio-icon:after {
|
|
@@ -2509,23 +2478,59 @@
|
|
|
2509
2478
|
top: 50%;
|
|
2510
2479
|
left: 50%;
|
|
2511
2480
|
transform: translate(-50%, -50%);
|
|
2512
|
-
width: var(--mdc-
|
|
2513
|
-
height: var(--mdc-
|
|
2481
|
+
width: var(--mdc-radio-inner-circle-size);
|
|
2482
|
+
height: var(--mdc-radio-inner-circle-size);
|
|
2514
2483
|
border-radius: 50%;
|
|
2515
|
-
background-color: var(--mdc-
|
|
2484
|
+
background-color: var(--mdc-radio-inner-circle-background-color);
|
|
2516
2485
|
}
|
|
2517
2486
|
|
|
2518
|
-
:host([readonly])
|
|
2519
|
-
border-color: var(--
|
|
2520
|
-
background-color:
|
|
2487
|
+
:host([readonly]) {
|
|
2488
|
+
--mdc-radio-outer-circle-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2489
|
+
--mdc-radio-outer-circle-background-color: transparent;
|
|
2521
2490
|
}
|
|
2522
2491
|
|
|
2523
|
-
:host([readonly][checked])
|
|
2524
|
-
|
|
2492
|
+
:host([readonly][checked]) {
|
|
2493
|
+
--mdc-radio-inner-circle-background-color: var(--mds-color-theme-text-primary-normal);
|
|
2494
|
+
--mdc-radio-outer-circle-border-color: var(--mds-color-theme-outline-input-normal);
|
|
2495
|
+
--mdc-radio-outer-circle-background-color: transparent;
|
|
2525
2496
|
}
|
|
2526
2497
|
|
|
2527
|
-
:host([
|
|
2528
|
-
|
|
2498
|
+
:host([disabled]),
|
|
2499
|
+
:host([soft-disabled]) {
|
|
2500
|
+
--mdc-radio-outer-circle-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
2501
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-inactive-disabled);
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
:host([disabled][checked]),
|
|
2505
|
+
:host([soft-disabled][checked]) {
|
|
2506
|
+
--mdc-radio-inner-circle-background-color: var(--mds-color-theme-inverted-text-primary-disabled);
|
|
2507
|
+
--mdc-radio-outer-circle-border-color: transparent;
|
|
2508
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-active-disabled);
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
@media (forced-colors: active) {
|
|
2512
|
+
:host([checked]) {
|
|
2513
|
+
--mdc-radio-outer-circle-border-color: SelectedItem;
|
|
2514
|
+
--mdc-radio-outer-circle-background-color: SelectedItem;
|
|
2515
|
+
}
|
|
2516
|
+
:host([readonly]),
|
|
2517
|
+
:host([readonly][checked]) {
|
|
2518
|
+
--mdc-radio-inner-circle-background-color: Highlight;
|
|
2519
|
+
--mdc-radio-outer-circle-border-color: Highlight;
|
|
2520
|
+
--mdc-radio-outer-circle-background-color: ButtonFace;
|
|
2521
|
+
}
|
|
2522
|
+
:host([disabled]),
|
|
2523
|
+
:host([soft-disabled]) {
|
|
2524
|
+
--mdc-radio-outer-circle-border-color: GrayText;
|
|
2525
|
+
--mdc-radio-outer-circle-background-color: GrayText;
|
|
2526
|
+
--mdc-radio-inner-circle-background-color: GrayText;
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
:host([disabled][checked]),
|
|
2530
|
+
:host([soft-disabled][checked]) {
|
|
2531
|
+
--mdc-radio-outer-circle-border-color: GrayText;
|
|
2532
|
+
--mdc-radio-outer-circle-background-color: GrayText;
|
|
2533
|
+
}
|
|
2529
2534
|
}
|
|
2530
2535
|
`],Ku=RE;var vo=class extends Vt(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
|
|
2531
2536
|
<span part="radio-icon" class="radio-icon"></span>`}};vo.styles=[...q.styles,...Ku],p([u({type:Boolean,reflect:!0})],vo.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],vo.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],vo.prototype,"softDisabled",2);var Lc=vo;var Xu=z.constructTagName("staticradio");Lc.register(Xu);var OE=Lc;Nc.register(Il);var PE=Nc;var Fr=Math.min,_e=Math.max,Na=Math.round,La=Math.floor,Tr=n=>({x:n,y:n}),DE={left:"right",right:"left",bottom:"top",top:"bottom"},$E={start:"end",end:"start"};function kl(n,o,t){return _e(n,Fr(o,t))}function go(n,o){return typeof n=="function"?n(o):n}function li(n){return n.split("-")[0]}function bo(n){return n.split("-")[1]}function Mc(n){return n==="x"?"y":"x"}function wl(n){return n==="y"?"height":"width"}var FE=new Set(["top","bottom"]);function Vr(n){return FE.has(li(n))?"y":"x"}function Nl(n){return Mc(Vr(n))}function Ju(n,o,t){t===void 0&&(t=!1);let i=bo(n),a=Nl(n),d=wl(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=wa(m)),[m,wa(m)]}function tf(n){let o=wa(n);return[Cl(n),o,Cl(o)]}function Cl(n){return n.replace(/start|end/g,o=>$E[o])}var Zu=["left","right"],Qu=["right","left"],VE=["top","bottom"],zE=["bottom","top"];function BE(n,o,t){switch(n){case"top":case"bottom":return t?o?Qu:Zu:o?Zu:Qu;case"left":case"right":return o?VE:zE;default:return[]}}function ef(n,o,t,i){let a=bo(n),d=BE(li(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(Cl)))),d}function wa(n){return n.replace(/left|right|bottom|top/g,o=>DE[o])}function UE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Rc(n){return typeof n!="number"?UE(n):{top:n,right:n,bottom:n,left:n}}function yo(n){let{x:o,y:t,width:i,height:a}=n;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function rf(n,o,t){let{reference:i,floating:a}=n,d=Vr(o),m=Nl(o),b=wl(m),C=li(o),L=d==="y",W=i.x+i.width/2-a.width/2,K=i.y+i.height/2-a.height/2,it=i[b]/2-a[b]/2,X;switch(C){case"top":X={x:W,y:i.y-a.height};break;case"bottom":X={x:W,y:i.y+i.height};break;case"right":X={x:i.x+i.width,y:K};break;case"left":X={x:i.x-a.width,y:K};break;default:X={x:i.x,y:i.y}}switch(bo(o)){case"start":X[m]-=it*(t&&L?-1:1);break;case"end":X[m]+=it*(t&&L?-1:1);break}return X}var of=async(n,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),C=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:a}),{x:W,y:K}=rf(L,i,C),it=i,X={},tt=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:gt}=b[lt],{x:At,y:wt,data:jt,reset:$t}=await gt({x:W,y:K,initialPlacement:i,placement:it,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,K=wt!=null?wt:K,X={...X,[dt]:{...X[dt],...jt}},$t&&tt<=50&&(tt++,typeof $t=="object"&&($t.placement&&(it=$t.placement),$t.rects&&(L=$t.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):$t.rects),{x:W,y:K}=rf(L,it,C)),lt=-1)}return{x:W,y:K,placement:it,strategy:a,middlewareData:X}};async function Ll(n,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:d,rects:m,elements:b,strategy:C}=n,{boundary:L="clippingAncestors",rootBoundary:W="viewport",elementContext:K="floating",altBoundary:it=!1,padding:X=0}=go(o,n),tt=Rc(X),dt=b[it?K==="floating"?"reference":"floating":K],gt=yo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(b.floating)),boundary:L,rootBoundary:W,strategy:C})),At=K==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,wt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),jt=await(d.isElement==null?void 0:d.isElement(wt))?await(d.getScale==null?void 0:d.getScale(wt))||{x:1,y:1}:{x:1,y:1},$t=yo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:wt,strategy:C}):At);return{top:(gt.top-$t.top+tt.top)/jt.y,bottom:($t.bottom-gt.bottom+tt.bottom)/jt.y,left:(gt.left-$t.left+tt.left)/jt.x,right:($t.right-gt.right+tt.right)/jt.x}}var sf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:i,placement:a,rects:d,platform:m,elements:b,middlewareData:C}=o,{element:L,padding:W=0}=go(n,o)||{};if(L==null)return{};let K=Rc(W),it={x:t,y:i},X=Nl(a),tt=wl(X),lt=await m.getDimensions(L),dt=X==="y",gt=dt?"top":"left",At=dt?"bottom":"right",wt=dt?"clientHeight":"clientWidth",jt=d.reference[tt]+d.reference[X]-it[X]-d.floating[tt],$t=it[X]-d.reference[X],Bt=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Bt?Bt[wt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Bt)))&&(Zt=b.floating[wt]||d.floating[tt]);let ae=jt/2-$t/2,ur=Zt/2-lt[tt]/2-1,ke=Fr(K[gt],ur),Xe=Fr(K[At],ur),fr=ke,vr=Zt-lt[tt]-Xe,Ct=Zt/2-lt[tt]/2+ae,me=kl(fr,Ct,vr),Ze=!C.arrow&&bo(a)!=null&&Ct!==me&&d.reference[tt]/2-(Ct<fr?ke:Xe)-lt[tt]/2<0,Qe=Ze?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:it[X]+Qe,data:{[X]:me,centerOffset:Ct-me-Qe,...Ze&&{alignmentOffset:Qe}},reset:Ze}}});var af=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,i;let{placement:a,middlewareData:d,rects:m,initialPlacement:b,platform:C,elements:L}=o,{mainAxis:W=!0,crossAxis:K=!0,fallbackPlacements:it,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:tt="none",flipAlignment:lt=!0,...dt}=go(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=li(a),At=Vr(b),wt=li(b)===b,jt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),$t=it||(wt||!lt?[wa(b)]:tf(b)),Bt=tt!=="none";!it&&Bt&&$t.push(...ef(b,lt,tt,jt));let Zt=[b,...$t],ae=await Ll(o,dt),ur=[],ke=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(ae[gt]),K){let Ct=Ju(a,m,jt);ur.push(ae[Ct[0]],ae[Ct[1]])}if(ke=[...ke,{placement:a,overflows:ur}],!ur.every(Ct=>Ct<=0)){var Xe,fr;let Ct=(((Xe=d.flip)==null?void 0:Xe.index)||0)+1,me=Zt[Ct];if(me&&(!(K==="alignment"?At!==Vr(me):!1)||ke.every(Je=>Je.overflows[0]>0&&Vr(Je.placement)===At)))return{data:{index:Ct,overflows:ke},reset:{placement:me}};let Ze=(fr=ke.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:fr.placement;if(!Ze)switch(X){case"bestFit":{var vr;let Qe=(vr=ke.filter(Je=>{if(Bt){let tr=Vr(Je.placement);return tr===At||tr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(tr=>tr>0).reduce((tr,pn)=>tr+pn,0)]).sort((Je,tr)=>Je[1]-tr[1])[0])==null?void 0:vr[0];Qe&&(Ze=Qe);break}case"initialPlacement":Ze=b;break}if(a!==Ze)return{reset:{placement:Ze}}}return{}}}};var HE=new Set(["left","top"]);async function GE(n,o){let{placement:t,platform:i,elements:a}=n,d=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=li(t),b=bo(t),C=Vr(t)==="y",L=HE.has(m)?-1:1,W=d&&C?-1:1,K=go(o,n),{mainAxis:it,crossAxis:X,alignmentAxis:tt}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return b&&typeof tt=="number"&&(X=b==="end"?tt*-1:tt),C?{x:X*W,y:it*L}:{x:it*L,y:X*W}}var nf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,i;let{x:a,y:d,placement:m,middlewareData:b}=o,C=await GE(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(i=b.arrow)!=null&&i.alignmentOffset?{}:{x:a+C.x,y:d+C.y,data:{...C,placement:m}}}}},lf=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:dt=>{let{x:gt,y:At}=dt;return{x:gt,y:At}}},...C}=go(n,o),L={x:t,y:i},W=await Ll(o,C),K=Vr(li(a)),it=Mc(K),X=L[it],tt=L[K];if(d){let dt=it==="y"?"top":"left",gt=it==="y"?"bottom":"right",At=X+W[dt],wt=X-W[gt];X=kl(At,X,wt)}if(m){let dt=K==="y"?"top":"left",gt=K==="y"?"bottom":"right",At=tt+W[dt],wt=tt-W[gt];tt=kl(At,tt,wt)}let lt=b.fn({...o,[it]:X,[K]:tt});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[it]:d,[K]:m}}}}}};var df=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,i;let{placement:a,rects:d,platform:m,elements:b}=o,{apply:C=()=>{},...L}=go(n,o),W=await Ll(o,L),K=li(a),it=bo(a),X=Vr(a)==="y",{width:tt,height:lt}=d.floating,dt,gt;K==="top"||K==="bottom"?(dt=K,gt=it===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(gt=K,dt=it==="end"?"top":"bottom");let At=lt-W.top-W.bottom,wt=tt-W.left-W.right,jt=Fr(lt-W[dt],At),$t=Fr(tt-W[gt],wt),Bt=!o.middlewareData.shift,Zt=jt,ae=$t;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ae=wt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Bt&&!it){let ke=_e(W.left,0),Xe=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?ae=tt-2*(ke!==0||Xe!==0?ke+Xe:_e(W.left,W.right)):Zt=lt-2*(fr!==0||vr!==0?fr+vr:_e(W.top,W.bottom))}await C({...o,availableWidth:ae,availableHeight:Zt});let ur=await m.getDimensions(b.floating);return tt!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Ml(){return typeof window<"u"}function Eo(n){return hf(n)?(n.nodeName||"").toLowerCase():"#document"}function Fe(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function xr(n){var o;return(o=(hf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function hf(n){return Ml()?n instanceof Node||n instanceof Fe(n).Node:!1}function nr(n){return Ml()?n instanceof Element||n instanceof Fe(n).Element:!1}function Ar(n){return Ml()?n instanceof HTMLElement||n instanceof Fe(n).HTMLElement:!1}function cf(n){return!Ml()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fe(n).ShadowRoot}var YE=new Set(["inline","contents"]);function ys(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!YE.has(a)}var WE=new Set(["table","td","th"]);function pf(n){return WE.has(Eo(n))}var jE=[":popover-open",":modal"];function Ma(n){return jE.some(o=>{try{return n.matches(o)}catch{return!1}})}var qE=["transform","translate","scale","rotate","perspective"],KE=["transform","translate","scale","rotate","perspective","filter"],XE=["paint","layout","strict","content"];function Rl(n){let o=Ol(),t=nr(n)?lr(n):n;return qE.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||KE.some(i=>(t.willChange||"").includes(i))||XE.some(i=>(t.contain||"").includes(i))}function mf(n){let o=di(n);for(;Ar(o)&&!To(o);){if(Rl(o))return o;if(Ma(o))return null;o=di(o)}return null}function Ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ZE=new Set(["html","body","#document"]);function To(n){return ZE.has(Eo(n))}function lr(n){return Fe(n).getComputedStyle(n)}function Ra(n){return nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function di(n){if(Eo(n)==="html")return n;let o=n.assignedSlot||n.parentNode||cf(n)&&n.host||xr(n);return cf(o)?o.host:o}function uf(n){let o=di(n);return To(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&ys(o)?o:uf(o)}function bs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=uf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=Fe(a);if(d){let b=Pl(m);return o.concat(m,m.visualViewport||[],ys(a)?a:[],b&&t?bs(b):[])}return o.concat(a,bs(a,[],t))}function Pl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function gf(n){let o=lr(n),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=Ar(n),d=a?n.offsetWidth:t,m=a?n.offsetHeight:i,b=Na(t)!==d||Na(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Pc(n){return nr(n)?n:n.contextElement}function Es(n){let o=Pc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=gf(o),m=(d?Na(t.width):t.width)/i,b=(d?Na(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var QE=Tr(0);function bf(n){let o=Fe(n);return!Ol()||!o.visualViewport?QE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function JE(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Fe(n)?!1:o}function xo(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Pc(n),m=Tr(1);o&&(i?nr(i)&&(m=Es(i)):m=Es(n));let b=JE(d,t,i)?bf(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,K=a.height/m.y;if(d){let it=Fe(d),X=i&&nr(i)?Fe(i):i,tt=it,lt=Pl(tt);for(;lt&&i&&X!==tt;){let dt=Es(lt),gt=lt.getBoundingClientRect(),At=lr(lt),wt=gt.left+(lt.clientLeft+parseFloat(At.paddingLeft))*dt.x,jt=gt.top+(lt.clientTop+parseFloat(At.paddingTop))*dt.y;C*=dt.x,L*=dt.y,W*=dt.x,K*=dt.y,C+=wt,L+=jt,tt=Fe(lt),lt=Pl(tt)}}return yo({width:W,height:K,x:C,y:L})}function Dc(n,o){let t=Ra(n).scrollLeft;return o?o.left+t:xo(xr(n)).left+t}function yf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:Dc(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function tT(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Ma(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),K=Ar(i);if((K||!K&&!d)&&((Eo(i)!=="body"||ys(m))&&(C=Ra(i)),Ar(i))){let X=xo(i);L=Es(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let it=m&&!K&&!d?yf(m,C,!0):Tr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-C.scrollLeft*L.x+W.x+it.x,y:t.y*L.y-C.scrollTop*L.y+W.y+it.y}}function eT(n){return Array.from(n.getClientRects())}function rT(n){let o=xr(n),t=Ra(n),i=n.ownerDocument.body,a=_e(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=_e(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+Dc(n),b=-t.scrollTop;return lr(i).direction==="rtl"&&(m+=_e(o.clientWidth,i.clientWidth)-a),{width:a,height:d,x:m,y:b}}function iT(n,o){let t=Fe(n),i=xr(n),a=t.visualViewport,d=i.clientWidth,m=i.clientHeight,b=0,C=0;if(a){d=a.width,m=a.height;let L=Ol();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var oT=new Set(["absolute","fixed"]);function sT(n,o){let t=xo(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?Es(n):Tr(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,C=a*d.x,L=i*d.y;return{width:m,height:b,x:C,y:L}}function ff(n,o,t){let i;if(o==="viewport")i=iT(n,t);else if(o==="document")i=rT(xr(n));else if(nr(o))i=sT(o,t);else{let a=bf(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return yo(i)}function Ef(n,o){let t=di(n);return t===o||!nr(t)||To(t)?!1:lr(t).position==="fixed"||Ef(t,o)}function aT(n,o){let t=o.get(n);if(t)return t;let i=bs(n,[],!1).filter(b=>nr(b)&&Eo(b)!=="body"),a=null,d=lr(n).position==="fixed",m=d?di(n):n;for(;nr(m)&&!To(m);){let b=lr(m),C=Rl(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&oT.has(a.position)||ys(m)&&!C&&Ef(n,m))?i=i.filter(W=>W!==m):a=b,m=di(m)}return o.set(n,i),i}function nT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Ma(o)?[]:aT(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let K=ff(o,W,a);return L.top=_e(K.top,L.top),L.right=Fr(K.right,L.right),L.bottom=Fr(K.bottom,L.bottom),L.left=_e(K.left,L.left),L},ff(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function lT(n){let{width:o,height:t}=gf(n);return{width:o,height:t}}function dT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=xo(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=Dc(a)}if(i||!i&&!d)if((Eo(o)!=="body"||ys(a))&&(b=Ra(o)),i){let X=xo(o,!0,d,o);C.x=X.x+o.clientLeft,C.y=X.y+o.clientTop}else a&&L();d&&!i&&a&&L();let W=a&&!i&&!d?yf(a,b):Tr(0),K=m.left+b.scrollLeft-C.x-W.x,it=m.top+b.scrollTop-C.y-W.y;return{x:K,y:it,width:m.width,height:m.height}}function Oc(n){return lr(n).position==="static"}function vf(n,o){if(!Ar(n)||lr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return xr(n)===t&&(t=t.ownerDocument.body),t}function Tf(n,o){let t=Fe(n);if(Ma(n))return t;if(!Ar(n)){let a=di(n);for(;a&&!To(a);){if(nr(a)&&!Oc(a))return a;a=di(a)}return t}let i=vf(n,o);for(;i&&pf(i)&&Oc(i);)i=vf(i,o);return i&&To(i)&&Oc(i)&&!Rl(i)?t:i||mf(n)||t}var cT=async function(n){let o=this.getOffsetParent||Tf,t=this.getDimensions,i=await t(n.floating);return{reference:dT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function hT(n){return lr(n).direction==="rtl"}var pT={convertOffsetParentRelativeRectToViewportRelativeRect:tT,getDocumentElement:xr,getClippingRect:nT,getOffsetParent:Tf,getElementRects:cT,getClientRects:eT,getDimensions:lT,getScale:Es,isElement:nr,isRTL:hT};function xf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function mT(n,o){let t=null,i,a=xr(n);function d(){var b;clearTimeout(i),(b=t)==null||b.disconnect(),t=null}function m(b,C){b===void 0&&(b=!1),C===void 0&&(C=1),d();let L=n.getBoundingClientRect(),{left:W,top:K,width:it,height:X}=L;if(b||o(),!it||!X)return;let tt=La(K),lt=La(a.clientWidth-(W+it)),dt=La(a.clientHeight-(K+X)),gt=La(W),wt={rootMargin:-tt+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:_e(0,Fr(1,C))||1},jt=!0;function $t(Bt){let Zt=Bt[0].intersectionRatio;if(Zt!==C){if(!jt)return m();Zt?m(!1,Zt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}Zt===1&&!xf(L,n.getBoundingClientRect())&&m(),jt=!1}try{t=new IntersectionObserver($t,{...wt,root:a.ownerDocument})}catch{t=new IntersectionObserver($t,wt)}t.observe(n)}return m(!0),d}function Af(n,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:C=!1}=i,L=Pc(n),W=a||d?[...L?bs(L):[],...bs(o)]:[];W.forEach(gt=>{a&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let K=L&&b?mT(L,t):null,it=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[At]=gt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{var wt;(wt=X)==null||wt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let tt,lt=C?xo(n):null;C&&dt();function dt(){let gt=xo(n);lt&&!xf(lt,gt)&&t(),lt=gt,tt=requestAnimationFrame(dt)}return t(),()=>{var gt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),K==null||K(),(gt=X)==null||gt.disconnect(),X=null,C&&cancelAnimationFrame(tt)}}var Sf=nf;var _f=lf,If=af,Cf=df;var kf=sf;var wf=(n,o,t)=>{let i=new Map,a={platform:pT,...t},d={...a.platform,_c:i};return of(n,o,{...a,platform:d})};var Nf=z.constructTagName("popover"),Wt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},ci={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Ao={TONAL:"tonal",CONTRAST:"contrast"},uT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:Wt.BOTTOM,TRIGGER:ci.CLICK,COLOR:Ao.TONAL,STRATEGY:uT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,IS_BACKDROP_INVISIBLE:!0};var hi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var $c=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ie=new $c;var fT=B`
|
|
@@ -2727,6 +2732,7 @@
|
|
|
2727
2732
|
--mdc-help-text-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
2728
2733
|
--mdc-help-text-line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
|
2729
2734
|
--mdc-help-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
2735
|
+
--mdc-required-indicator-color: var(--mds-color-theme-text-error-normal);
|
|
2730
2736
|
|
|
2731
2737
|
flex-direction: column;
|
|
2732
2738
|
align-items: flex-start;
|
|
@@ -2734,7 +2740,7 @@
|
|
|
2734
2740
|
}
|
|
2735
2741
|
|
|
2736
2742
|
:host::part(required-indicator) {
|
|
2737
|
-
color: var(--
|
|
2743
|
+
color: var(--mdc-required-indicator-color);
|
|
2738
2744
|
}
|
|
2739
2745
|
|
|
2740
2746
|
:host::part(label-text),
|
|
@@ -2786,10 +2792,13 @@
|
|
|
2786
2792
|
}
|
|
2787
2793
|
|
|
2788
2794
|
:host([disabled]),
|
|
2789
|
-
:host([disabled])
|
|
2790
|
-
|
|
2791
|
-
|
|
2795
|
+
:host([soft-disabled]) {
|
|
2796
|
+
--mdc-label-color: var(--mds-color-theme-text-primary-disabled);
|
|
2797
|
+
--mdc-help-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
2798
|
+
--mdc-required-indicator-color: var(--mds-color-theme-text-primary-disabled);
|
|
2792
2799
|
color: var(--mds-color-theme-text-primary-disabled);
|
|
2800
|
+
pointer-events: none;
|
|
2801
|
+
cursor: default;
|
|
2793
2802
|
}
|
|
2794
2803
|
`,Ff=[bt,TT];var Vf=n=>({[zt.ERROR]:"error-legacy-badge-filled",[zt.WARNING]:"warning-badge-filled",[zt.SUCCESS]:"check-circle-badge-filled",[zt.PRIORITY]:"priority-badge-filled",[zt.DEFAULT]:""})[n]||"";var ze=class extends Vt(q){constructor(){super(...arguments);this.inputId=`mdc-el-${Ee()}`;this.required=!1;this.helpTextType=Mt.VALIDATION;this.toggletipPlacement=Mt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Mt.TOGGLETIP_STRATEGY;this.readonly=!1;this.softDisabled=!1;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?_`<label for="${this.inputId}" id="${Mt.HEADING_ID}" part="label">${this.label}</label>`:_` <mdc-text
|
|
2795
2804
|
id="${Mt.HEADING_ID}"
|
|
@@ -2834,21 +2843,12 @@
|
|
|
2834
2843
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
|
2835
2844
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
|
2836
2845
|
</div>`:j}};ze.styles=[...q.styles,...Ff],p([u({reflect:!0,type:String})],ze.prototype,"label",2),p([u({type:Boolean,reflect:!0,attribute:"required"})],ze.prototype,"required",2),p([u({reflect:!0,attribute:"help-text-type"})],ze.prototype,"helpTextType",2),p([u({type:String,reflect:!0,attribute:"help-text"})],ze.prototype,"helpText",2),p([u({type:String,reflect:!0,attribute:"toggletip-text"})],ze.prototype,"toggletipText",2),p([u({type:String,reflect:!0,attribute:"toggletip-placement"})],ze.prototype,"toggletipPlacement",2),p([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],ze.prototype,"toggletipStrategy",2),p([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],ze.prototype,"infoIconAriaLabel",2),p([u({type:Boolean,reflect:!0})],ze.prototype,"readonly",2),p([u({type:Boolean,reflect:!0,attribute:"soft-disabled"})],ze.prototype,"softDisabled",2);var se=ze;var xT=[B`
|
|
2837
|
-
/* Base styles and CSS custom properties */
|
|
2838
2846
|
:host {
|
|
2839
|
-
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
|
2840
|
-
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
|
2841
|
-
--mdc-checkbox-checked-pressed-icon-color: var(--mds-color-theme-control-active-pressed);
|
|
2842
|
-
--mdc-checkbox-checked-background-color-hover: var(--mds-color-theme-control-active-hover);
|
|
2843
|
-
--mdc-checkbox-disabled-checked-icon-color: var(--mds-color-theme-control-active-disabled);
|
|
2844
|
-
--mdc-checkbox-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
|
2845
|
-
|
|
2846
2847
|
flex-direction: row;
|
|
2847
2848
|
align-items: flex-start;
|
|
2848
2849
|
}
|
|
2849
2850
|
|
|
2850
|
-
|
|
2851
|
-
:host mdc-staticcheckbox {
|
|
2851
|
+
:host::part(static-checkbox) {
|
|
2852
2852
|
position: relative;
|
|
2853
2853
|
}
|
|
2854
2854
|
|
|
@@ -2861,8 +2861,8 @@
|
|
|
2861
2861
|
opacity: 0.1%;
|
|
2862
2862
|
overflow: visible;
|
|
2863
2863
|
z-index: 1;
|
|
2864
|
-
width:
|
|
2865
|
-
height:
|
|
2864
|
+
width: var(--mdc-checkbox-size);
|
|
2865
|
+
height: var(--mdc-checkbox-size);
|
|
2866
2866
|
border-radius: 0.125rem;
|
|
2867
2867
|
}
|
|
2868
2868
|
|
|
@@ -2880,65 +2880,37 @@
|
|
|
2880
2880
|
white-space: normal;
|
|
2881
2881
|
}
|
|
2882
2882
|
|
|
2883
|
-
/* Default interactive states */
|
|
2884
2883
|
:host::part(label),
|
|
2885
2884
|
:host::part(checkbox-input) {
|
|
2886
2885
|
cursor: pointer;
|
|
2887
2886
|
}
|
|
2888
2887
|
|
|
2889
|
-
:host(:hover)
|
|
2890
|
-
background-color: var(--
|
|
2888
|
+
:host(:hover)::part(static-checkbox) {
|
|
2889
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-hover);
|
|
2891
2890
|
}
|
|
2892
2891
|
|
|
2893
|
-
:host(:active)
|
|
2894
|
-
background-color: var(--
|
|
2892
|
+
:host(:active)::part(static-checkbox) {
|
|
2893
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-pressed);
|
|
2895
2894
|
}
|
|
2896
2895
|
|
|
2897
|
-
:host([checked]:hover)::part(
|
|
2898
|
-
:host([indeterminate]:hover)::part(
|
|
2899
|
-
background-color: var(--
|
|
2896
|
+
:host([checked]:hover)::part(static-checkbox),
|
|
2897
|
+
:host([indeterminate]:hover)::part(static-checkbox) {
|
|
2898
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-active-hover);
|
|
2900
2899
|
}
|
|
2901
2900
|
|
|
2902
|
-
:host([checked]:active)::part(
|
|
2903
|
-
:host([indeterminate]:active)::part(
|
|
2904
|
-
background-color: var(--
|
|
2901
|
+
:host([checked]:active)::part(static-checkbox),
|
|
2902
|
+
:host([indeterminate]:active)::part(static-checkbox) {
|
|
2903
|
+
--mdc-checkbox-background-color: var(--mds-color-theme-control-active-pressed);
|
|
2905
2904
|
}
|
|
2906
2905
|
|
|
2907
|
-
/* Readonly state - disables pointer events */
|
|
2908
2906
|
:host([readonly]),
|
|
2907
|
+
:host([disabled]),
|
|
2909
2908
|
:host([soft-disabled]) {
|
|
2910
2909
|
pointer-events: none;
|
|
2911
2910
|
}
|
|
2912
|
-
|
|
2913
|
-
/* Disabled states override interactive styles */
|
|
2914
|
-
:host([disabled])::part(label),
|
|
2915
|
-
:host([disabled])::part(checkbox-input),
|
|
2916
|
-
:host([soft-disabled])::part(label),
|
|
2917
|
-
:host([soft-disabled])::part(checkbox-input) {
|
|
2918
|
-
cursor: default;
|
|
2919
|
-
}
|
|
2920
|
-
|
|
2921
|
-
:host([disabled]) mdc-staticcheckbox,
|
|
2922
|
-
:host([soft-disabled]) mdc-staticcheckbox {
|
|
2923
|
-
background-color: unset;
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
|
-
:host([disabled][checked])::part(icon-container),
|
|
2927
|
-
:host([disabled][indeterminate])::part(icon-container),
|
|
2928
|
-
:host([soft-disabled][checked])::part(icon-container),
|
|
2929
|
-
:host([soft-disabled][indeterminate])::part(icon-container) {
|
|
2930
|
-
background-color: var(--mdc-checkbox-disabled-checked-icon-color);
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
:host([disabled])::part(label),
|
|
2934
|
-
:host([disabled])::part(help-text),
|
|
2935
|
-
:host([soft-disabled])::part(label),
|
|
2936
|
-
:host([soft-disabled])::part(label-text),
|
|
2937
|
-
:host([soft-disabled])::part(help-text) {
|
|
2938
|
-
color: var(--mdc-checkbox-disabled-text-color);
|
|
2939
|
-
}
|
|
2940
2911
|
`,...St(!0)],zf=xT;var Io=class extends be(xe(Ht(se))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}setFormValue(){let t=null;this.checked?t=this.value?this.value:"on":t=null,this.manageRequired(),this.internals.setFormValue(t)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(t){var i;(this.readonly||this.softDisabled)&&t.key===Z.SPACE&&t.preventDefault(),t.key===Z.ENTER&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let i=t.constructor;this.dispatchEvent(new i(t.type,t))}update(t){super.update(t),t.has("checked")&&this.setFormValue()}render(){var t;return _`
|
|
2941
2912
|
<mdc-staticcheckbox
|
|
2913
|
+
part="static-checkbox"
|
|
2942
2914
|
class="mdc-focus-ring"
|
|
2943
2915
|
?checked="${this.checked}"
|
|
2944
2916
|
?indeterminate="${this.indeterminate}"
|
|
@@ -4029,34 +4001,23 @@
|
|
|
4029
4001
|
${this.arrowPosition===nh.LEADING?_`<mdc-icon name="${o}" length-unit="rem" part="leading-arrow"></mdc-icon>`:j}
|
|
4030
4002
|
`}};Gi.styles=[...mi.styles,...yv],p([u({type:String,reflect:!0,attribute:"arrow-position"})],Gi.prototype,"arrowPosition",2),p([u({type:String,reflect:!0,attribute:"arrow-direction"})],Gi.prototype,"arrowDirection",2),p([u({type:String,reflect:!0})],Gi.prototype,"name",2),p([u({type:String,reflect:!0})],Gi.prototype,"value",2);var hr=Gi;hr.register(ja);var ix=hr;var Ev=z.constructTagName("statictoggle"),ox={DEFAULT:"default",COMPACT:"compact"},lh={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Tv={compact:.75,default:1.25},xv={SIZE:ox.DEFAULT};var sx=[B`
|
|
4031
4003
|
:host {
|
|
4032
|
-
--mdc-
|
|
4033
|
-
--mdc-
|
|
4034
|
-
--mdc-
|
|
4035
|
-
--mdc-
|
|
4036
|
-
--mdc-
|
|
4037
|
-
--mdc-
|
|
4038
|
-
--mdc-
|
|
4039
|
-
--mdc-statictoggle-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
4040
|
-
|
|
4041
|
-
--mdc-statictoggle-inactive-rest-color: var(--mds-color-theme-control-inactive-normal);
|
|
4042
|
-
--mdc-statictoggle-inactive-disabled-color: var(--mds-color-theme-control-inactive-disabled);
|
|
4043
|
-
--mdc-statictoggle-active-rest-color: var(--mds-color-theme-control-active-normal);
|
|
4044
|
-
--mdc-statictoggle-active-disabled-color: var(--mds-color-theme-control-active-disabled);
|
|
4045
|
-
|
|
4046
|
-
--mdc-statictoggle-icon-color-normal: var(--mds-color-theme-common-inverted-text-primary-normal);
|
|
4047
|
-
--mdc-statictoggle-icon-color-disabled: var(--mds-color-theme-common-inverted-text-primary-disabled);
|
|
4048
|
-
--mdc-statictoggle-icon-background-color-normal: var(--mds-color-theme-common-text-primary-normal);
|
|
4049
|
-
--mdc-statictoggle-icon-background-color-disabled: var(--mds-color-theme-common-text-primary-disabled);
|
|
4004
|
+
--mdc-toggle-width: 3rem;
|
|
4005
|
+
--mdc-toggle-height: 1.5rem;
|
|
4006
|
+
--mdc-toggle-border-radius: 0.75rem;
|
|
4007
|
+
--mdc-toggle-border-color: var(--mds-color-theme-outline-input-normal);
|
|
4008
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-inactive-normal);
|
|
4009
|
+
--mdc-toggle-icon-color: var(--mds-color-theme-common-inverted-text-primary-normal);
|
|
4010
|
+
--mdc-toggle-icon-background-color: var(--mds-color-theme-common-text-primary-normal);
|
|
4050
4011
|
|
|
4051
|
-
border-radius: var(--mdc-
|
|
4012
|
+
border-radius: var(--mdc-toggle-border-radius);
|
|
4052
4013
|
}
|
|
4053
4014
|
|
|
4054
4015
|
:host::part(slider) {
|
|
4055
|
-
width: var(--mdc-
|
|
4056
|
-
height: var(--mdc-
|
|
4057
|
-
background-color: var(--mdc-
|
|
4058
|
-
border
|
|
4059
|
-
border: var(--mdc-
|
|
4016
|
+
width: var(--mdc-toggle-width);
|
|
4017
|
+
height: var(--mdc-toggle-height);
|
|
4018
|
+
background-color: var(--mdc-toggle-background-color);
|
|
4019
|
+
border: 1px solid var(--mdc-toggle-border-color);
|
|
4020
|
+
border-radius: var(--mdc-toggle-border-radius);
|
|
4060
4021
|
display: flex;
|
|
4061
4022
|
align-items: center;
|
|
4062
4023
|
justify-content: flex-start;
|
|
@@ -4065,69 +4026,71 @@
|
|
|
4065
4026
|
padding: 1px;
|
|
4066
4027
|
}
|
|
4067
4028
|
|
|
4068
|
-
:host([checked])::part(slider) {
|
|
4069
|
-
background-color: var(--mdc-statictoggle-active-rest-color);
|
|
4070
|
-
justify-content: flex-end;
|
|
4071
|
-
border-color: transparent;
|
|
4072
|
-
}
|
|
4073
|
-
|
|
4074
|
-
:host([size='compact'])::part(slider) {
|
|
4075
|
-
width: var(--mdc-statictoggle-width-compact);
|
|
4076
|
-
height: var(--mdc-statictoggle-height-compact);
|
|
4077
|
-
border-radius: var(--mdc-statictoggle-border-radius-compact);
|
|
4078
|
-
}
|
|
4079
|
-
|
|
4080
4029
|
:host::part(toggle-icon) {
|
|
4081
4030
|
padding: 0.25rem;
|
|
4082
|
-
--mdc-icon-fill-color: var(--mdc-
|
|
4083
|
-
background-color: var(--mdc-
|
|
4031
|
+
--mdc-icon-fill-color: var(--mdc-toggle-icon-color);
|
|
4032
|
+
background-color: var(--mdc-toggle-icon-background-color);
|
|
4084
4033
|
border-radius: 50%;
|
|
4085
4034
|
}
|
|
4086
4035
|
|
|
4087
|
-
:host([
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
--mdc-icon-fill-color: var(--mdc-statictoggle-icon-color-disabled);
|
|
4092
|
-
background-color: var(--mdc-statictoggle-icon-background-color-disabled);
|
|
4036
|
+
:host([size='compact'])::part(slider) {
|
|
4037
|
+
--mdc-toggle-width: 2rem;
|
|
4038
|
+
--mdc-toggle-height: 1rem;
|
|
4039
|
+
--mdc-toggle-border-radius: 0.5rem;
|
|
4093
4040
|
}
|
|
4094
4041
|
|
|
4095
4042
|
:host([size='compact'])::part(toggle-icon) {
|
|
4096
4043
|
padding: 0.125rem;
|
|
4097
4044
|
}
|
|
4098
4045
|
|
|
4099
|
-
:host([
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4046
|
+
:host([checked]) {
|
|
4047
|
+
--mdc-toggle-border-color: transparent;
|
|
4048
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-active-normal);
|
|
4049
|
+
}
|
|
4050
|
+
:host([checked])::part(slider) {
|
|
4051
|
+
justify-content: flex-end;
|
|
4104
4052
|
}
|
|
4105
4053
|
|
|
4106
|
-
:host([
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
background-color: var(--mdc-statictoggle-active-disabled-color);
|
|
4111
|
-
border-color: transparent;
|
|
4054
|
+
:host([readonly]) {
|
|
4055
|
+
--mdc-toggle-icon-background-color: var(--mds-color-theme-common-text-primary-normal);
|
|
4056
|
+
--mdc-toggle-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
4057
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-inactive-disabled);
|
|
4112
4058
|
}
|
|
4113
4059
|
|
|
4114
|
-
:host([
|
|
4115
|
-
|
|
4060
|
+
:host([disabled]),
|
|
4061
|
+
:host([soft-disabled]) {
|
|
4062
|
+
--mdc-toggle-icon-color: var(--mds-color-theme-common-inverted-text-primary-disabled);
|
|
4063
|
+
--mdc-toggle-icon-background-color: var(--mds-color-theme-common-text-primary-disabled);
|
|
4064
|
+
--mdc-toggle-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
4065
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-inactive-disabled);
|
|
4066
|
+
cursor: default;
|
|
4116
4067
|
}
|
|
4117
4068
|
|
|
4118
|
-
:host([
|
|
4119
|
-
:host([soft-disabled]
|
|
4120
|
-
|
|
4069
|
+
:host([checked][disabled]),
|
|
4070
|
+
:host([checked][soft-disabled]) {
|
|
4071
|
+
--mdc-toggle-icon-color: var(--mds-color-theme-common-inverted-text-primary-disabled);
|
|
4072
|
+
--mdc-toggle-icon-background-color: var(--mds-color-theme-common-text-primary-disabled);
|
|
4073
|
+
--mdc-toggle-border-color: transparent;
|
|
4074
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-active-disabled);
|
|
4121
4075
|
}
|
|
4122
4076
|
|
|
4123
4077
|
/* High Contrast Mode */
|
|
4124
4078
|
@media (forced-colors: active) {
|
|
4125
|
-
:host([checked])::part(slider),
|
|
4126
4079
|
:host::part(toggle-icon) {
|
|
4127
|
-
|
|
4080
|
+
--mdc-toggle-icon-color: CanvasText;
|
|
4081
|
+
border: 1px solid var(--mdc-toggle-border-color);
|
|
4128
4082
|
}
|
|
4129
|
-
|
|
4130
|
-
|
|
4083
|
+
|
|
4084
|
+
:host([checked]) {
|
|
4085
|
+
--mdc-toggle-icon-color: SelectedItemText;
|
|
4086
|
+
--mdc-toggle-border-color: SelectedItem;
|
|
4087
|
+
--mdc-toggle-background-color: SelectedItem;
|
|
4088
|
+
}
|
|
4089
|
+
|
|
4090
|
+
:host([disabled])::part(toggle-icon),
|
|
4091
|
+
:host([soft-disabled])::part(toggle-icon) {
|
|
4092
|
+
--mdc-toggle-icon-color: GrayText;
|
|
4093
|
+
border: 1px solid GrayText;
|
|
4131
4094
|
}
|
|
4132
4095
|
}
|
|
4133
4096
|
`],Av=sx;var Yi=class extends Vt(q){constructor(){super(...arguments);this.checked=!1;this.size=xv.SIZE;this.readonly=!1;this.softDisabled=!1}render(){return _`
|
|
@@ -4843,24 +4806,13 @@
|
|
|
4843
4806
|
length-unit="${ee.ICON_LENGTH_UNIT}"
|
|
4844
4807
|
></mdc-icon>
|
|
4845
4808
|
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():_` ${this.renderProgressSpinner()}`}};od.styles=[...q.styles,...qv];var _h=od;_h.register(Gv);var wx=_h;var Nx=[bt,B`
|
|
4846
|
-
/* Base styles and CSS custom properties */
|
|
4847
4809
|
:host {
|
|
4848
4810
|
display: flex;
|
|
4849
4811
|
flex-direction: row;
|
|
4850
4812
|
align-items: start;
|
|
4851
4813
|
gap: 0.5rem;
|
|
4852
|
-
|
|
4853
|
-
--mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
|
4854
|
-
--mdc-radio-control-inactive-hover: var(--mds-color-theme-control-inactive-hover);
|
|
4855
|
-
--mdc-radio-control-inactive-pressed-color: var(--mds-color-theme-control-inactive-pressed);
|
|
4856
|
-
--mdc-radio-control-active-hover-color: var(--mds-color-theme-control-active-hover);
|
|
4857
|
-
--mdc-radio-control-active-pressed-color: var(--mds-color-theme-control-active-pressed);
|
|
4858
|
-
--mdc-radio-control-active-disabled-background: var(--mds-color-theme-control-active-disabled);
|
|
4859
|
-
--mdc-radio-control-inactive-disabled-background: var(--mds-color-theme-control-inactive-disabled);
|
|
4860
|
-
--mdc-radio-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
|
4861
4814
|
}
|
|
4862
4815
|
|
|
4863
|
-
/* Component structure and layout */
|
|
4864
4816
|
:host::part(radio-input) {
|
|
4865
4817
|
position: absolute;
|
|
4866
4818
|
opacity: 0;
|
|
@@ -4868,7 +4820,7 @@
|
|
|
4868
4820
|
width: 100%;
|
|
4869
4821
|
height: 100%;
|
|
4870
4822
|
cursor: pointer;
|
|
4871
|
-
z-index:
|
|
4823
|
+
z-index: 1;
|
|
4872
4824
|
}
|
|
4873
4825
|
|
|
4874
4826
|
:host::part(text-container) {
|
|
@@ -4887,81 +4839,34 @@
|
|
|
4887
4839
|
cursor: pointer;
|
|
4888
4840
|
word-break: break-word;
|
|
4889
4841
|
white-space: normal;
|
|
4890
|
-
font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
4891
|
-
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
4892
|
-
line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
|
4893
|
-
}
|
|
4894
|
-
|
|
4895
|
-
/* Default interactive states */
|
|
4896
|
-
:host(:hover) mdc-staticradio {
|
|
4897
|
-
background-color: var(--mdc-radio-control-inactive-hover);
|
|
4898
|
-
}
|
|
4899
|
-
|
|
4900
|
-
:host(:active) mdc-staticradio {
|
|
4901
|
-
background-color: var(--mdc-radio-control-inactive-pressed-color);
|
|
4842
|
+
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
4843
|
+
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
4844
|
+
--mdc-label-line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
|
4902
4845
|
}
|
|
4903
4846
|
|
|
4904
|
-
:host(
|
|
4905
|
-
|
|
4906
|
-
background-color: var(--mdc-radio-control-active-hover-color);
|
|
4847
|
+
:host(:hover)::part(static-radio) {
|
|
4848
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-inactive-hover);
|
|
4907
4849
|
}
|
|
4908
4850
|
|
|
4909
|
-
:host(
|
|
4910
|
-
|
|
4911
|
-
background-color: var(--mdc-radio-control-active-pressed-color);
|
|
4851
|
+
:host(:active)::part(static-radio) {
|
|
4852
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-inactive-pressed);
|
|
4912
4853
|
}
|
|
4913
4854
|
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4855
|
+
:host([checked]:hover)::part(static-radio) {
|
|
4856
|
+
--mdc-radio-outer-circle-border-color: var(--mds-color-theme-control-active-hover);
|
|
4857
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-active-hover);
|
|
4917
4858
|
}
|
|
4918
4859
|
|
|
4919
|
-
:host([
|
|
4920
|
-
border-color: var(--
|
|
4921
|
-
background-color: var(--
|
|
4860
|
+
:host([checked]:active)::part(static-radio) {
|
|
4861
|
+
--mdc-radio-outer-circle-border-color: var(--mds-color-theme-control-active-pressed);
|
|
4862
|
+
--mdc-radio-outer-circle-background-color: var(--mds-color-theme-control-active-pressed);
|
|
4922
4863
|
}
|
|
4923
4864
|
|
|
4865
|
+
:host([readonly]),
|
|
4866
|
+
:host([disabled]),
|
|
4924
4867
|
:host([soft-disabled]) {
|
|
4925
4868
|
pointer-events: none;
|
|
4926
4869
|
}
|
|
4927
|
-
|
|
4928
|
-
/* Disabled states override interactive styles */
|
|
4929
|
-
:host([disabled])::part(radio-input),
|
|
4930
|
-
:host([soft-disabled])::part(radio-input),
|
|
4931
|
-
:host([readonly])::part(radio-input),
|
|
4932
|
-
:host([disabled])::part(label),
|
|
4933
|
-
:host([soft-disabled])::part(label),
|
|
4934
|
-
:host([readonly])::part(label) {
|
|
4935
|
-
cursor: default;
|
|
4936
|
-
}
|
|
4937
|
-
|
|
4938
|
-
:host([disabled]:hover) mdc-staticradio,
|
|
4939
|
-
:host([disabled]:active) mdc-staticradio,
|
|
4940
|
-
:host([soft-disabled]:hover) mdc-staticradio,
|
|
4941
|
-
:host([soft-disabled]:active) mdc-staticradio {
|
|
4942
|
-
background-color: unset;
|
|
4943
|
-
}
|
|
4944
|
-
|
|
4945
|
-
:host([disabled]:hover)::part(radio-icon),
|
|
4946
|
-
:host([soft-disabled]:hover)::part(radio-icon),
|
|
4947
|
-
:host([disabled][readonly]:hover)::part(radio-icon),
|
|
4948
|
-
:host([soft-disabled][readonly]:hover)::part(radio-icon) {
|
|
4949
|
-
border-color: var(--mdc-radio-disabled-border-color);
|
|
4950
|
-
background-color: var(--mdc-radio-control-inactive-disabled-background);
|
|
4951
|
-
}
|
|
4952
|
-
|
|
4953
|
-
:host([disabled][checked]:hover)::part(radio-icon),
|
|
4954
|
-
:host([soft-disabled][checked]:hover)::part(radio-icon) {
|
|
4955
|
-
background-color: var(--mdc-radio-control-active-disabled-background);
|
|
4956
|
-
}
|
|
4957
|
-
|
|
4958
|
-
:host([disabled])::part(label-text),
|
|
4959
|
-
:host([disabled])::part(help-text),
|
|
4960
|
-
:host([soft-disabled])::part(label),
|
|
4961
|
-
:host([soft-disabled])::part(label-text),
|
|
4962
|
-
:host([soft-disabled])::part(help-text) {
|
|
4963
|
-
color: var(--mdc-radio-text-disabled-color);
|
|
4964
|
-
}
|
|
4965
4870
|
`,...St(!0)],Kv=Nx;var rn=class extends be(xe(Ht(se))){constructor(){super(...arguments);this.checked=!1;this.renderLabelAndHelperText=()=>this.label?_`<div part="text-container">${this.renderLabel()} ${this.renderHelperText()}</div>`:j}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.updateTabIndex(),this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(i=>{i.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(i=>{this.onerror&&this.onerror(i)})}formStateRestoreCallback(t){this.value===t&&t!==""&&(this.checked=!0)}setComponentValidity(t){t?this.internals.setValidity({}):this.required&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(t,i){this.updateComplete.then(()=>{t.forEach(a=>{a.setComponentValidity(i)})}).catch(a=>{this.onerror&&this.onerror(a)})}setActualFormValue(){let t="";this.checked?t=this.value?this.value:"on":t=null;let i=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(i,!0);else{let a=i.some(b=>b.required),d=!!i.find(b=>b.checked),m=a&&!d;this.setGroupValidity(i,!m)}this.internals.setFormValue(t)}handleChange(){var a;if(this.disabled||this.readonly||this.softDisabled)return;this.getAllRadiosWithinSameGroup().forEach(d=>{var b;let m=(b=d.shadowRoot)==null?void 0:b.querySelector("input");m&&(d.checked=!1,m.checked=!1)}),this.checked=!0;let i=(a=this.shadowRoot)==null?void 0:a.querySelector("input");i&&(i.checked=!0),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}updateRadio(t,i){var a,d;(d=(a=t[i].shadowRoot)==null?void 0:a.querySelector("input"))==null||d.focus(),t[i].handleChange()}handleKeyDown(t){var m;if(this.disabled)return;(this.readonly||this.softDisabled)&&t.key===Z.SPACE&&t.preventDefault();let a=this.getAllRadiosWithinSameGroup().filter(b=>!b.disabled),d=a.indexOf(this);if(["ArrowDown","ArrowRight"].includes(t.key)){let b=(d+1)%a.length;this.updateRadio(a,b)}else if(["ArrowUp","ArrowLeft"].includes(t.key)){let b=(d-1+a.length)%a.length;this.updateRadio(a,b)}else t.key===Z.SPACE&&this.updateRadio(a,d);this.updateTabIndex(),t.key===Z.ENTER&&((m=this.form)==null||m.requestSubmit())}updateTabIndex(){let t=this.getAllRadiosWithinSameGroup(),i=t.find(d=>d.checked),a=t.find(d=>!d.disabled);t.forEach(d=>{var b;let m=(b=d.shadowRoot)==null?void 0:b.querySelector("input");m&&(m.tabIndex=-1,(d===i||!i&&d===a)&&(m.tabIndex=0))})}update(t){super.update(t),t.has("checked")&&this.setActualFormValue()}render(){var t;return _`
|
|
4966
4871
|
<mdc-staticradio
|
|
4967
4872
|
class="mdc-focus-ring"
|
|
@@ -4969,6 +4874,7 @@
|
|
|
4969
4874
|
?disabled="${this.disabled}"
|
|
4970
4875
|
?readonly="${this.readonly}"
|
|
4971
4876
|
?soft-disabled="${this.softDisabled}"
|
|
4877
|
+
part="static-radio"
|
|
4972
4878
|
>
|
|
4973
4879
|
<input
|
|
4974
4880
|
id="${this.inputId}"
|
|
@@ -6202,22 +6108,6 @@
|
|
|
6202
6108
|
</div>
|
|
6203
6109
|
${this.renderFooter()}
|
|
6204
6110
|
`}};Ce.styles=[...q.styles,...kg],p([u({type:String,reflect:!0})],Ce.prototype,"variant",2),p([u({type:String,attribute:"close-button-aria-label"})],Ce.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0,attribute:"header-text"})],Ce.prototype,"headerText",2),p([u({type:String,reflect:!0,attribute:"header-tag-name"})],Ce.prototype,"headerTagName",2),p([u({type:String,reflect:!0,attribute:"aria-label"})],Ce.prototype,"ariaLabel",2),p([u({type:String,reflect:!0,attribute:"show-more-text"})],Ce.prototype,"showMoreText",2),p([u({type:String,reflect:!0,attribute:"show-less-text"})],Ce.prototype,"showLessText",2),p([vt()],Ce.prototype,"isDetailVisible",2),p([vt()],Ce.prototype,"hasDetailedSlot",2),p([Ot({slot:"toast-body-detailed",flatten:!0})],Ce.prototype,"detailedElements",2),p([vt()],Ce.prototype,"hasFooterButtons",2);var Xh=Ce;Xh.register(Ig);var cA=Xh;var hA=[bt,B`
|
|
6205
|
-
/* Base styles and CSS custom properties */
|
|
6206
|
-
:host {
|
|
6207
|
-
--mdc-toggle-width: 3rem;
|
|
6208
|
-
--mdc-toggle-height: 1.5rem;
|
|
6209
|
-
--mdc-toggle-width-compact: 2rem;
|
|
6210
|
-
--mdc-toggle-height-compact: 1rem;
|
|
6211
|
-
|
|
6212
|
-
--mdc-toggle-label-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
|
6213
|
-
--mdc-toggle-help-text-color: var(--mds-color-theme-text-secondary-normal);
|
|
6214
|
-
|
|
6215
|
-
--mdc-toggle-active-hover-color: var(--mds-color-theme-control-active-hover);
|
|
6216
|
-
--mdc-toggle-active-pressed-color: var(--mds-color-theme-control-active-pressed);
|
|
6217
|
-
--mdc-toggle-inactive-hover-color: var(--mds-color-theme-control-inactive-hover);
|
|
6218
|
-
--mdc-toggle-inactive-pressed-color: var(--mds-color-theme-control-inactive-pressed);
|
|
6219
|
-
}
|
|
6220
|
-
|
|
6221
6111
|
/* Grid layout for labeled toggles */
|
|
6222
6112
|
:host([label]),
|
|
6223
6113
|
:host([help-text]) {
|
|
@@ -6253,13 +6143,9 @@
|
|
|
6253
6143
|
:host::part(label) {
|
|
6254
6144
|
word-break: break-word;
|
|
6255
6145
|
white-space: normal;
|
|
6256
|
-
font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
6257
|
-
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
6258
|
-
line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
|
6259
|
-
}
|
|
6260
|
-
|
|
6261
|
-
:host::part(help-text) {
|
|
6262
|
-
color: var(--mdc-toggle-help-text-color);
|
|
6146
|
+
--mdc-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
|
6147
|
+
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
|
6148
|
+
--mdc-label-line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
|
6263
6149
|
}
|
|
6264
6150
|
|
|
6265
6151
|
/* Default interactive states */
|
|
@@ -6268,54 +6154,28 @@
|
|
|
6268
6154
|
cursor: pointer;
|
|
6269
6155
|
}
|
|
6270
6156
|
|
|
6271
|
-
:host(:hover)::part(
|
|
6272
|
-
background-color: var(--
|
|
6157
|
+
:host(:hover)::part(static-toggle) {
|
|
6158
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-inactive-hover);
|
|
6273
6159
|
}
|
|
6274
6160
|
|
|
6275
|
-
:host(:active)::part(
|
|
6276
|
-
background-color: var(--
|
|
6161
|
+
:host(:active)::part(static-toggle) {
|
|
6162
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-inactive-pressed);
|
|
6277
6163
|
}
|
|
6278
6164
|
|
|
6279
|
-
:host([checked]:hover)::part(
|
|
6280
|
-
background-color: var(--
|
|
6165
|
+
:host([checked]:hover)::part(static-toggle) {
|
|
6166
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-active-hover);
|
|
6281
6167
|
}
|
|
6282
6168
|
|
|
6283
|
-
:host([checked]:active)::part(
|
|
6284
|
-
background-color: var(--
|
|
6169
|
+
:host([checked]:active)::part(static-toggle) {
|
|
6170
|
+
--mdc-toggle-background-color: var(--mds-color-theme-control-active-pressed);
|
|
6285
6171
|
}
|
|
6286
6172
|
|
|
6287
6173
|
/* Readonly state - disables pointer events */
|
|
6288
6174
|
:host([readonly]),
|
|
6175
|
+
:host([disabled]),
|
|
6289
6176
|
:host([soft-disabled]) {
|
|
6290
6177
|
pointer-events: none;
|
|
6291
6178
|
}
|
|
6292
|
-
|
|
6293
|
-
/* Disabled states override interactive styles */
|
|
6294
|
-
:host([disabled])::part(label),
|
|
6295
|
-
:host([disabled])::part(toggle-input),
|
|
6296
|
-
:host([soft-disabled])::part(label),
|
|
6297
|
-
:host([soft-disabled])::part(toggle-input) {
|
|
6298
|
-
cursor: default;
|
|
6299
|
-
}
|
|
6300
|
-
|
|
6301
|
-
:host([disabled]:hover)::part(container),
|
|
6302
|
-
:host([disabled]:active)::part(container),
|
|
6303
|
-
:host([disabled][checked]:hover)::part(container),
|
|
6304
|
-
:host([disabled][checked]:active)::part(container),
|
|
6305
|
-
:host([soft-disabled]:hover)::part(container),
|
|
6306
|
-
:host([soft-disabled]:active)::part(container),
|
|
6307
|
-
:host([soft-disabled][checked]:hover)::part(container),
|
|
6308
|
-
:host([soft-disabled][checked]:active)::part(container) {
|
|
6309
|
-
background-color: unset;
|
|
6310
|
-
}
|
|
6311
|
-
|
|
6312
|
-
:host([disabled])::part(label-text),
|
|
6313
|
-
:host([disabled])::part(help-text),
|
|
6314
|
-
:host([soft-disabled])::part(label),
|
|
6315
|
-
:host([soft-disabled])::part(label-text),
|
|
6316
|
-
:host([soft-disabled])::part(help-text) {
|
|
6317
|
-
color: var(--mdc-toggle-label-color-disabled);
|
|
6318
|
-
}
|
|
6319
6179
|
`,...St(!0)],wg=hA;var zs=class extends be(xe(Ht(cr))){constructor(){super(...arguments);this.checked=!1;this.size=hh.SIZE}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(t){this.inputElement&&this.autoFocusOnMount&&(this.elementToAutoFocus=this.inputElement),super.firstUpdated(t)}formResetCallback(){this.checked=!1}formStateRestoreCallback(t){t&&(this.checked=!0)}manageRequired(){!this.checked&&this.required?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let t=null;this.checked?t=this.value?this.value:"isActive":t=null,this.manageRequired(),this.internals.setFormValue(t)}toggleState(){!this.disabled&&!this.softDisabled&&!this.readonly&&(this.checked=!this.checked)}handleKeyDown(t){var i;(this.readonly||this.softDisabled)&&t.key===Z.SPACE&&t.preventDefault(),t.key===Z.ENTER&&((i=this.form)==null||i.requestSubmit())}handleChange(t){this.toggleState();let i=t.constructor;this.dispatchEvent(new i(t.type,t))}setToggleSize(t){this.setAttribute("size",Object.values(Xa).includes(t)?t:hh.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
|
|
6320
6180
|
<mdc-statictoggle
|
|
6321
6181
|
?checked="${this.checked}"
|
|
@@ -6324,7 +6184,7 @@
|
|
|
6324
6184
|
?soft-disabled="${this.softDisabled}"
|
|
6325
6185
|
size="${this.size}"
|
|
6326
6186
|
class="mdc-focus-ring"
|
|
6327
|
-
part="
|
|
6187
|
+
part="static-toggle"
|
|
6328
6188
|
>
|
|
6329
6189
|
<input
|
|
6330
6190
|
id="${this.inputId}"
|