@momentum-design/components 0.118.4 → 0.118.5
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 +65 -69
- package/dist/browser/index.js.map +2 -2
- package/dist/components/checkbox/checkbox.component.js +2 -2
- package/dist/components/checkbox/checkbox.styles.js +13 -8
- package/dist/components/combobox/combobox.component.js +1 -1
- package/dist/components/formfieldgroup/formfieldgroup.styles.js +0 -4
- package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +2 -2
- package/dist/components/formfieldwrapper/formfieldwrapper.component.js +5 -7
- package/dist/components/formfieldwrapper/formfieldwrapper.styles.js +22 -16
- package/dist/components/progressbar/progressbar.styles.js +3 -5
- package/dist/components/radio/radio.component.js +2 -2
- package/dist/components/radio/radio.styles.js +8 -12
- package/dist/components/toggle/toggle.component.d.ts +0 -3
- package/dist/components/toggle/toggle.component.js +0 -3
- package/dist/components/toggle/toggle.styles.js +11 -14
- package/dist/custom-elements.json +205 -217
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/toggle/index.d.ts +0 -3
- package/dist/react/toggle/index.js +0 -3
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -2645,13 +2645,13 @@
|
|
2645
2645
|
gap: 0.5rem;
|
2646
2646
|
}
|
2647
2647
|
:host([disabled]),
|
2648
|
-
:host([disabled])
|
2649
|
-
:host([disabled])
|
2648
|
+
:host([disabled])::part(label),
|
2649
|
+
:host([disabled])::part(help-text-container),
|
2650
2650
|
:host([disabled])::part(required-indicator),
|
2651
|
-
:host([disabled][help-text-type='error'])
|
2652
|
-
:host([disabled][help-text-type='success'])
|
2653
|
-
:host([disabled][help-text-type='warning'])
|
2654
|
-
:host([disabled][help-text-type='priority'])
|
2651
|
+
:host([disabled][help-text-type='error'])::part(help-text-container),
|
2652
|
+
:host([disabled][help-text-type='success'])::part(help-text-container),
|
2653
|
+
:host([disabled][help-text-type='warning'])::part(help-text-container),
|
2654
|
+
:host([disabled][help-text-type='priority'])::part(help-text-container) {
|
2655
2655
|
color: var(--mds-color-theme-text-primary-disabled);
|
2656
2656
|
}
|
2657
2657
|
|
@@ -2659,29 +2659,35 @@
|
|
2659
2659
|
color: var(--mds-color-theme-text-error-normal);
|
2660
2660
|
}
|
2661
2661
|
|
2662
|
-
|
2663
|
-
|
2662
|
+
:host::part(label-text),
|
2663
|
+
:host::part(help-text-container) {
|
2664
2664
|
display: flex;
|
2665
2665
|
align-items: center;
|
2666
2666
|
gap: 0.5rem;
|
2667
2667
|
width: 100%;
|
2668
2668
|
}
|
2669
2669
|
|
2670
|
-
|
2671
|
-
|
2670
|
+
:host::part(label) {
|
2671
|
+
font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
2672
|
+
font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
2673
|
+
line-height: var(--mds-font-apps-body-midsize-medium-line-height);
|
2674
|
+
}
|
2675
|
+
|
2676
|
+
:host::part(help-text),
|
2677
|
+
:host::part(help-text-container) {
|
2672
2678
|
font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
2673
2679
|
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
2674
2680
|
line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
2675
2681
|
}
|
2676
2682
|
|
2677
|
-
|
2683
|
+
:host::part(label) {
|
2678
2684
|
color: var(--mds-color-theme-text-primary-normal);
|
2679
2685
|
overflow: hidden;
|
2680
2686
|
text-overflow: ellipsis;
|
2681
2687
|
white-space: nowrap;
|
2682
2688
|
}
|
2683
2689
|
|
2684
|
-
|
2690
|
+
:host::part(help-text-container) {
|
2685
2691
|
color: var(--mds-color-theme-text-secondary-normal);
|
2686
2692
|
}
|
2687
2693
|
|
@@ -2689,21 +2695,19 @@
|
|
2689
2695
|
align-self: flex-start;
|
2690
2696
|
}
|
2691
2697
|
|
2692
|
-
:host([help-text-type='error'])
|
2698
|
+
:host([help-text-type='error'])::part(help-text-container) {
|
2693
2699
|
color: var(--mds-color-theme-text-error-normal);
|
2694
2700
|
}
|
2695
|
-
:host([help-text-type='warning'])
|
2701
|
+
:host([help-text-type='warning'])::part(help-text-container) {
|
2696
2702
|
color: var(--mds-color-theme-text-warning-normal);
|
2697
2703
|
}
|
2698
|
-
:host([help-text-type='success'])
|
2704
|
+
:host([help-text-type='success'])::part(help-text-container) {
|
2699
2705
|
color: var(--mds-color-theme-text-success-normal);
|
2700
2706
|
}
|
2701
|
-
:host([help-text-type='priority'])
|
2707
|
+
:host([help-text-type='priority'])::part(help-text-container) {
|
2702
2708
|
color: var(--mds-color-theme-text-accent-normal);
|
2703
2709
|
}
|
2704
|
-
`],wf=pT;var Nf=n=>({[Vt.ERROR]:"error-legacy-badge-filled",[Vt.WARNING]:"warning-badge-filled",[Vt.SUCCESS]:"check-circle-badge-filled",[Vt.PRIORITY]:"priority-badge-filled",[Vt.DEFAULT]:""})[n]||"";var lr=class extends zt(K){constructor(){super(...arguments);this.inputId=`mdc-el-${ye()}`;this.required=!1;this.helpTextType=Mt.VALIDATION;this.toggletipPlacement=Mt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Mt.TOGGLETIP_STRATEGY;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?_`<label for="${this.inputId}" id="${Mt.HEADING_ID}"
|
2705
|
-
>${this.label}</label
|
2706
|
-
>`:_` <mdc-text
|
2710
|
+
`],wf=pT;var Nf=n=>({[Vt.ERROR]:"error-legacy-badge-filled",[Vt.WARNING]:"warning-badge-filled",[Vt.SUCCESS]:"check-circle-badge-filled",[Vt.PRIORITY]:"priority-badge-filled",[Vt.DEFAULT]:""})[n]||"";var lr=class extends zt(K){constructor(){super(...arguments);this.inputId=`mdc-el-${ye()}`;this.required=!1;this.helpTextType=Mt.VALIDATION;this.toggletipPlacement=Mt.TOGGLETIP_PLACEMENT;this.toggletipStrategy=Mt.TOGGLETIP_STRATEGY;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?_`<label for="${this.inputId}" id="${Mt.HEADING_ID}" part="label">${this.label}</label>`:_` <mdc-text
|
2707
2711
|
id="${Mt.HEADING_ID}"
|
2708
2712
|
tagname="${Da.TAGNAME}"
|
2709
2713
|
type="${Da.HEADER_TYPE}"
|
@@ -2718,7 +2722,7 @@
|
|
2718
2722
|
>
|
2719
2723
|
${this.helpText}
|
2720
2724
|
</mdc-text>
|
2721
|
-
`:j}renderLabel(){if(!this.label)return j;let t=`toggletip-trigger-${ye()}`;return _`<div
|
2725
|
+
`:j}renderLabel(){if(!this.label)return j;let t=`toggletip-trigger-${ye()}`;return _`<div part="label-text">
|
2722
2726
|
<slot name="label">${this.renderLabelElement()}</slot>
|
2723
2727
|
${this.required?_`<span part="required-indicator">*</span>`:j}
|
2724
2728
|
<slot name="toggletip">
|
@@ -2741,7 +2745,7 @@
|
|
2741
2745
|
>${this.toggletipText}</mdc-toggletip
|
2742
2746
|
>`:j}
|
2743
2747
|
</slot>
|
2744
|
-
</div>`}renderHelperText(){return this.helpText?_`<div
|
2748
|
+
</div>`}renderHelperText(){return this.helpText?_`<div part="help-text-container">
|
2745
2749
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
2746
2750
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
2747
2751
|
</div>`:j}};lr.styles=[...K.styles,...wf],p([u({reflect:!0,type:String})],lr.prototype,"label",2),p([u({type:Boolean,reflect:!0,attribute:"required"})],lr.prototype,"required",2),p([u({reflect:!0,attribute:"help-text-type"})],lr.prototype,"helpTextType",2),p([u({type:String,reflect:!0,attribute:"help-text"})],lr.prototype,"helpText",2),p([u({type:String,reflect:!0,attribute:"toggletip-text"})],lr.prototype,"toggletipText",2),p([u({type:String,reflect:!0,attribute:"toggletip-placement"})],lr.prototype,"toggletipPlacement",2),p([u({type:String,reflect:!0,attribute:"toggletip-strategy"})],lr.prototype,"toggletipStrategy",2),p([u({type:String,reflect:!0,attribute:"info-icon-aria-label"})],lr.prototype,"infoIconAriaLabel",2);var se=lr;var mT=[V`
|
@@ -2755,13 +2759,18 @@
|
|
2755
2759
|
flex-direction: row;
|
2756
2760
|
align-items: flex-start;
|
2757
2761
|
}
|
2758
|
-
|
2759
|
-
|
2762
|
+
|
2763
|
+
:host::part(label) {
|
2764
|
+
font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
2765
|
+
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
2766
|
+
line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
2767
|
+
}
|
2768
|
+
|
2769
|
+
:host::part(label) :host::part(checkbox-input) {
|
2760
2770
|
cursor: pointer;
|
2761
2771
|
}
|
2762
2772
|
|
2763
|
-
:host([disabled])
|
2764
|
-
:host([disabled]) .input {
|
2773
|
+
:host([disabled])::part(label) :host([disabled])::part(checkbox-input) {
|
2765
2774
|
cursor: default;
|
2766
2775
|
}
|
2767
2776
|
|
@@ -2794,7 +2803,7 @@
|
|
2794
2803
|
position: relative;
|
2795
2804
|
}
|
2796
2805
|
|
2797
|
-
|
2806
|
+
:host::part(checkbox-input) {
|
2798
2807
|
margin: 0;
|
2799
2808
|
padding: 0;
|
2800
2809
|
position: absolute;
|
@@ -2805,23 +2814,23 @@
|
|
2805
2814
|
z-index: 1;
|
2806
2815
|
}
|
2807
2816
|
|
2808
|
-
|
2817
|
+
:host::part(checkbox-input) {
|
2809
2818
|
width: 1rem;
|
2810
2819
|
height: 1rem;
|
2811
2820
|
border-radius: 0.125rem;
|
2812
2821
|
}
|
2813
2822
|
|
2814
|
-
|
2823
|
+
:host::part(text-container) {
|
2815
2824
|
display: flex;
|
2816
2825
|
flex-direction: column;
|
2817
2826
|
gap: 0.25rem;
|
2818
2827
|
}
|
2819
2828
|
|
2820
|
-
|
2829
|
+
:host::part(label) {
|
2821
2830
|
word-break: break-word;
|
2822
2831
|
white-space: normal;
|
2823
2832
|
}
|
2824
|
-
`,...St(!0)],Lf=mT;var xo=class extends ge(Te(Ht(se))){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?_`<div
|
2833
|
+
`,...St(!0)],Lf=mT;var xo=class extends ge(Te(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.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(t){var i;t.key===Q.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 _`
|
2825
2834
|
<mdc-staticcheckbox
|
2826
2835
|
class="mdc-focus-ring"
|
2827
2836
|
?checked="${this.checked}"
|
@@ -2831,7 +2840,7 @@
|
|
2831
2840
|
<input
|
2832
2841
|
id="${this.inputId}"
|
2833
2842
|
type="checkbox"
|
2834
|
-
|
2843
|
+
part="checkbox-input"
|
2835
2844
|
name="${rt(this.name)}"
|
2836
2845
|
value="${rt(this.value)}"
|
2837
2846
|
?required="${this.required}"
|
@@ -3252,10 +3261,6 @@
|
|
3252
3261
|
flex-direction: column;
|
3253
3262
|
gap: 0.25rem;
|
3254
3263
|
}
|
3255
|
-
|
3256
|
-
:host::part(label-text) {
|
3257
|
-
font-weight: bold;
|
3258
|
-
}
|
3259
3264
|
`,Vf=[ST];var Vl=class extends Ht(se){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.disabled=void 0}render(){var t;return _`
|
3260
3265
|
<div
|
3261
3266
|
part="container"
|
@@ -4549,9 +4554,9 @@
|
|
4549
4554
|
--mdc-progressbar-border-radius: var(--mdc-progressbar-height);
|
4550
4555
|
|
4551
4556
|
--mdc-progressbar-label-color: var(--mds-color-theme-text-primary-normal);
|
4552
|
-
--mdc-progressbar-label-line-height: var(--mds-font-
|
4553
|
-
--mdc-progressbar-label-font-size: var(--mds-font-
|
4554
|
-
--mdc-progressbar-label-font-weight: var(--mds-font-
|
4557
|
+
--mdc-progressbar-label-line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
4558
|
+
--mdc-progressbar-label-font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
4559
|
+
--mdc-progressbar-label-font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
4555
4560
|
--mdc-progressbar-help-text-color: var(--mds-color-theme-text-secondary-normal);
|
4556
4561
|
|
4557
4562
|
width: 100%;
|
@@ -4607,8 +4612,6 @@
|
|
4607
4612
|
border-radius: var(--mdc-progressbar-border-radius);
|
4608
4613
|
}
|
4609
4614
|
|
4610
|
-
:host::part(label-text),
|
4611
|
-
:host::part(help-text),
|
4612
4615
|
:host::part(percentage) {
|
4613
4616
|
font-size: var(--mdc-progressbar-label-font-size);
|
4614
4617
|
font-weight: var(--mdc-progressbar-label-font-weight);
|
@@ -4788,25 +4791,21 @@
|
|
4788
4791
|
background-color: var(--mdc-radio-control-active-disabled-background);
|
4789
4792
|
}
|
4790
4793
|
|
4791
|
-
:host([readonly])
|
4792
|
-
:host([
|
4793
|
-
:host([disabled]) .mdc-label,
|
4794
|
-
:host([readonly]) .mdc-label {
|
4794
|
+
:host([readonly])::part(radio-input) :host([disabled])::part(radio-input) :host([disabled])::part(label),
|
4795
|
+
:host([readonly])::part(label) {
|
4795
4796
|
cursor: default;
|
4796
4797
|
}
|
4797
4798
|
|
4798
|
-
|
4799
|
+
:host::part(label) {
|
4799
4800
|
cursor: pointer;
|
4800
4801
|
word-break: break-word;
|
4801
4802
|
white-space: normal;
|
4803
|
+
font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
4804
|
+
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
4805
|
+
line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
4802
4806
|
}
|
4803
4807
|
|
4804
|
-
:host(
|
4805
|
-
:host([disabled]) .mdc-radio__help-text {
|
4806
|
-
color: var(--mdc-radio-text-disabled-color);
|
4807
|
-
}
|
4808
|
-
|
4809
|
-
.mdc-radio__input {
|
4808
|
+
:host::part(radio-input) {
|
4810
4809
|
position: absolute;
|
4811
4810
|
opacity: 0;
|
4812
4811
|
margin: 0;
|
@@ -4816,7 +4815,7 @@
|
|
4816
4815
|
z-index: 2;
|
4817
4816
|
}
|
4818
4817
|
|
4819
|
-
|
4818
|
+
:host::part(text-container) {
|
4820
4819
|
display: flex;
|
4821
4820
|
flex-direction: column;
|
4822
4821
|
justify-content: center;
|
@@ -4826,7 +4825,7 @@
|
|
4826
4825
|
:host::part(required-indicator) {
|
4827
4826
|
display: none;
|
4828
4827
|
}
|
4829
|
-
`,...St(!0)],Vv=Ex;var Ps=class extends ge(Te(Ht(se))){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.renderLabelAndHelperText=()=>this.label?_`<div
|
4828
|
+
`,...St(!0)],Vv=Ex;var Ps=class extends ge(Te(Ht(se))){constructor(){super(...arguments);this.checked=!1;this.readonly=!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)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;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===Q.SPACE&&this.updateRadio(a,d);this.updateTabIndex(),t.key===Q.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 _`
|
4830
4829
|
<mdc-staticradio
|
4831
4830
|
class="mdc-focus-ring"
|
4832
4831
|
?checked="${this.checked}"
|
@@ -4835,6 +4834,7 @@
|
|
4835
4834
|
>
|
4836
4835
|
<input
|
4837
4836
|
id="${this.inputId}"
|
4837
|
+
part="radio-input"
|
4838
4838
|
type="radio"
|
4839
4839
|
role="${et.RADIO}"
|
4840
4840
|
?autofocus="${this.autofocus}"
|
@@ -4846,7 +4846,6 @@
|
|
4846
4846
|
?checked=${this.checked}
|
4847
4847
|
?readonly=${this.readonly}
|
4848
4848
|
?disabled=${this.disabled}
|
4849
|
-
class="mdc-radio__input"
|
4850
4849
|
aria-checked="${this.checked}"
|
4851
4850
|
aria-describedby="${rt(this.helpText?Mt.HELPER_TEXT_ID:"")}"
|
4852
4851
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
@@ -6088,9 +6087,6 @@
|
|
6088
6087
|
--mdc-toggle-width-compact: 2rem;
|
6089
6088
|
--mdc-toggle-height-compact: 1rem;
|
6090
6089
|
|
6091
|
-
--mdc-toggle-label-lineheight: var(--mds-font-lineheight-body-midsize);
|
6092
|
-
--mdc-toggle-label-fontsize: var(--mds-font-size-body-midsize);
|
6093
|
-
--mdc-toggle-label-fontweight: 400;
|
6094
6090
|
--mdc-toggle-label-color-disabled: var(--mds-color-theme-text-primary-disabled);
|
6095
6091
|
--mdc-toggle-help-text-color: var(--mds-color-theme-text-secondary-normal);
|
6096
6092
|
|
@@ -6125,30 +6121,30 @@
|
|
6125
6121
|
height: var(--mdc-toggle-height);
|
6126
6122
|
}
|
6127
6123
|
|
6128
|
-
|
6129
|
-
|
6130
|
-
font-size: var(--mdc-toggle-label-fontsize);
|
6131
|
-
font-weight: var(--mdc-toggle-label-fontweight);
|
6132
|
-
line-height: var(--mdc-toggle-label-lineheight);
|
6124
|
+
:host::part(label-text),
|
6125
|
+
:host::part(help-text-container) {
|
6133
6126
|
grid-column: 2;
|
6134
6127
|
}
|
6135
6128
|
|
6136
|
-
|
6129
|
+
:host::part(label),
|
6137
6130
|
:host::part(toggle-input) {
|
6138
6131
|
cursor: pointer;
|
6139
6132
|
}
|
6140
6133
|
|
6141
|
-
|
6134
|
+
:host::part(label) {
|
6142
6135
|
word-break: break-word;
|
6143
6136
|
white-space: normal;
|
6137
|
+
font-size: var(--mds-font-apps-body-midsize-regular-font-size);
|
6138
|
+
font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
|
6139
|
+
line-height: var(--mds-font-apps-body-midsize-regular-line-height);
|
6144
6140
|
}
|
6145
6141
|
|
6146
|
-
:host([disabled])
|
6142
|
+
:host([disabled])::part(label),
|
6147
6143
|
:host([disabled])::part(toggle-input) {
|
6148
6144
|
cursor: default;
|
6149
6145
|
}
|
6150
6146
|
|
6151
|
-
|
6147
|
+
:host::part(help-text) {
|
6152
6148
|
color: var(--mdc-toggle-help-text-color);
|
6153
6149
|
}
|
6154
6150
|
|
@@ -6168,8 +6164,8 @@
|
|
6168
6164
|
background-color: var(--mdc-toggle-active-pressed-color);
|
6169
6165
|
}
|
6170
6166
|
|
6171
|
-
:host([disabled])
|
6172
|
-
:host([disabled])
|
6167
|
+
:host([disabled])::part(label-text),
|
6168
|
+
:host([disabled])::part(help-text) {
|
6173
6169
|
color: var(--mdc-toggle-label-color-disabled);
|
6174
6170
|
}
|
6175
6171
|
`,...St(!0)],Eg=eA;var Vs=class extends ge(Te(Ht(cr))){constructor(){super(...arguments);this.checked=!1;this.size=ih.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.checked=!this.checked)}handleKeyDown(t){var i;t.key===Q.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(Qa).includes(t)?t:ih.SIZE)}update(t){super.update(t),t.has("checked")&&this.setFormValue(),t.has("size")&&this.setToggleSize(this.size)}render(){var t;return _`
|
@@ -6436,7 +6432,7 @@
|
|
6436
6432
|
</mdc-popover>
|
6437
6433
|
</div>
|
6438
6434
|
${this.renderHelperText()}
|
6439
|
-
`}};ne.styles=[...
|
6435
|
+
`}};ne.styles=[...Sr.styles,...se.styles,...Rg],p([u({type:String})],ne.prototype,"placeholder",2),p([u({type:Boolean})],ne.prototype,"readonly",2),p([u({type:String,reflect:!0})],ne.prototype,"placement",2),p([u({type:String,attribute:"no-result-text",reflect:!0})],ne.prototype,"noResultText",2),p([u({type:String,attribute:"invalid-custom-value-text",reflect:!0})],ne.prototype,"invalidCustomValueText",2),p([u({type:String,reflect:!0})],ne.prototype,"boundary",2),p([u({type:String,reflect:!0})],ne.prototype,"strategy",2),p([u({type:Number,reflect:!0,attribute:"popover-z-index"})],ne.prototype,"popoverZIndex",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],ne.prototype,"backdropAppendTo",2),p([tr(`[role="${et.COMBOBOX}"]`)],ne.prototype,"visualCombobox",2),p([tr('[part="combobox__button"]')],ne.prototype,"dropDownButton",2),p([Ot({selector:id})],ne.prototype,"slottedListboxes",2),p([gt()],ne.prototype,"isOpen",2),p([gt()],ne.prototype,"filteredValue",2);var Kh=ne;Kh.register(Lg);var hA=Kh;var Og=(n,o,t)=>{let i=new Map;for(let a=o;a<=t;a++)i.set(n[a],a);return i},Pg=ii(class extends Pr{constructor(n){if(super(n),n.type!==He.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,o,t){let i;t===void 0?t=o:o!==void 0&&(i=o);let a=[],d=[],m=0;for(let b of n)a[m]=i?i(b,m):m,d[m]=t(b,m),m++;return{values:d,keys:a}}render(n,o,t){return this.dt(n,o,t).values}update(n,[o,t,i]){var lt;let a=Bm(n),{values:d,keys:m}=this.dt(o,t,i);if(!Array.isArray(a))return this.ut=m,d;let b=(lt=this.ut)!=null?lt:this.ut=[],C=[],L,W,q=0,it=a.length-1,X=0,tt=d.length-1;for(;q<=it&&X<=tt;)if(a[q]===null)q++;else if(a[it]===null)it--;else if(b[q]===m[X])C[X]=Oi(a[q],d[X]),q++,X++;else if(b[it]===m[tt])C[tt]=Oi(a[it],d[tt]),it--,tt--;else if(b[q]===m[tt])C[tt]=Oi(a[q],d[tt]),rs(n,C[tt+1],a[q]),q++,tt--;else if(b[it]===m[X])C[X]=Oi(a[it],d[X]),rs(n,a[q],a[it]),it--,X++;else if(L===void 0&&(L=Og(m,X,tt),W=Og(b,q,it)),L.has(b[q]))if(L.has(b[it])){let dt=W.get(m[X]),vt=dt!==void 0?a[dt]:null;if(vt===null){let At=rs(n,a[q]);Oi(At,d[X]),C[X]=At}else C[X]=Oi(vt,d[X]),rs(n,a[q],vt),a[dt]=null;X++}else rl(a[it]),it--;else rl(a[q]),q++;for(;X<=tt;){let dt=rs(n,C[tt+1]);Oi(dt,d[X]),C[X++]=dt}for(;q<=it;){let dt=a[q++];dt!==null&&rl(dt)}return this.ut=m,el(n,C),ve}});var Dg=B.constructTagName("slider"),pA={START:"start",END:"end",UNDEFINED:void 0},Ki={MIN:0,MAX:100,STEP:1,STATE:pA.UNDEFINED,ICON_SIZE:1.25,ICON_LENGTH_UNIT:"rem"};var mA=V`
|
6440
6436
|
:host {
|
6441
6437
|
width: 100%;
|
6442
6438
|
--mdc-slider-tooltip-left: 0;
|