@momentum-design/components 0.129.24 → 0.129.26
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 +1 -2
- package/dist/browser/index.js.map +2 -2
- package/dist/components/screenreaderannouncer/screenreaderannouncer.component.d.ts +1 -1
- package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +2 -2
- package/dist/components/select/select.styles.js +0 -1
- package/dist/custom-elements.json +2 -2
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2741,7 +2741,7 @@
|
|
|
2741
2741
|
white-space: nowrap;
|
|
2742
2742
|
width: 1px;
|
|
2743
2743
|
}
|
|
2744
|
-
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Yl(()=>{this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Mo.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=Mo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Yr.styles=[...q.styles,...av],p([u({type:String,reflect:!0})],Yr.prototype,"announcement",2),p([u({type:String,reflect:!0})],Yr.prototype,"identity",2),p([u({type:String,reflect:!0,attribute:"data-aria-live"})],Yr.prototype,"dataAriaLive",2),p([u({type:Number,reflect:!0})],Yr.prototype,"delay",2),p([u({type:Number,reflect:!0})],Yr.prototype,"timeout",2),p([u({type:Number,reflect:!0,attribute:"debounce-time"})],Yr.prototype,"debounceTime",2);var Qc=Yr;Qc.register(sv);var GT=Qc;Zc.register(iv);var YT=Zc;var _e=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,p([u({reflect:!0,type:String})],o.prototype,"name",2),p([u({reflect:!0,type:String})],o.prototype,"value",2),p([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),p([ye("input")],o.prototype,"inputElement",2),o};var WT=U`
|
|
2744
|
+
`,t.appendChild(r),t.classList.add("mdc-screenreaderannouncer__visually-hidden");let s=this.findModalAncestor();s!=null&&s.shadowRoot?s.shadowRoot.appendChild(t):document.body.appendChild(t)}}findModalAncestor(){let t=this;for(;t;){let r=t.closest('[aria-modal="true"]');if(r)return r;let s=t.getRootNode();if(s instanceof ShadowRoot&&s.host)t=s.host;else break}return null}setupDebouncedAnnounce(){this.debouncedAnnounce=Yl(()=>{this.announcement&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")},this.debounceTime)}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Mo.IDENTITY),this.createAnnouncementAriaLiveRegion(),this.setupDebouncedAnnounce()}disconnectedCallback(){var t;super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements(),(t=this.debouncedAnnounce)==null||t.cancel()}updated(t){var r;t.has("identity")&&this.identity.length===0&&(this.identity=Mo.IDENTITY,this.createAnnouncementAriaLiveRegion()),t.has("debounceTime")&&this.setupDebouncedAnnounce(),t.has("announcement")&&this.announcement&&this.announcement.length>0&&((r=this.debouncedAnnounce)==null||r.call(this))}};Yr.styles=[...q.styles,...av],p([u({type:String,reflect:!0})],Yr.prototype,"announcement",2),p([u({type:String,reflect:!0})],Yr.prototype,"identity",2),p([u({type:String,reflect:!0,attribute:"data-aria-live"})],Yr.prototype,"dataAriaLive",2),p([u({type:Number,reflect:!0})],Yr.prototype,"delay",2),p([u({type:Number,reflect:!0})],Yr.prototype,"timeout",2),p([u({type:Number,reflect:!0,attribute:"debounce-time"})],Yr.prototype,"debounceTime",2);var Qc=Yr;Qc.register(sv);var GT=Qc;Zc.register(iv);var YT=Zc;var _e=n=>{class o extends n{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return o.formAssociated=!0,p([u({reflect:!0,type:String})],o.prototype,"name",2),p([u({reflect:!0,type:String})],o.prototype,"value",2),p([u({reflect:!0,type:String,attribute:"validation-message"})],o.prototype,"validationMessage",2),p([ye("input")],o.prototype,"inputElement",2),o};var WT=U`
|
|
2745
2745
|
:host {
|
|
2746
2746
|
--mdc-label-font-size: var(--mds-font-apps-body-midsize-medium-font-size);
|
|
2747
2747
|
--mdc-label-font-weight: var(--mds-font-apps-body-midsize-medium-font-weight);
|
|
@@ -5275,7 +5275,6 @@
|
|
|
5275
5275
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-active);
|
|
5276
5276
|
}
|
|
5277
5277
|
:host::part(base-text) {
|
|
5278
|
-
height: 100%;
|
|
5279
5278
|
/* 2rem is the complete width of dropdown icon */
|
|
5280
5279
|
width: calc(100% - 2rem);
|
|
5281
5280
|
color: var(--mdc-select-text-color);
|