@momentum-design/components 0.104.7 → 0.104.9
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 +36 -33
- package/dist/browser/index.js.map +2 -2
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +17 -15
- package/dist/components/menuitemradio/menuitemradio.component.js +17 -15
- package/dist/components/menusection/menusection.component.d.ts +1 -0
- package/dist/components/menusection/menusection.component.js +2 -1
- package/dist/components/menusection/menusection.types.d.ts +2 -0
- package/dist/components/popover/popover.component.d.ts +4 -4
- package/dist/components/popover/popover.component.js +4 -4
- package/dist/components/popover/popover.constants.d.ts +1 -1
- package/dist/components/popover/popover.constants.js +1 -1
- package/dist/components/select/select.component.js +0 -1
- package/dist/custom-elements.json +2188 -2183
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/menusection/index.d.ts +2 -0
- package/dist/react/menusection/index.js +2 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -2080,7 +2080,7 @@
|
|
2080
2080
|
background: ${this.isBackdropInvisible?"transparent":"var(--mds-color-theme-common-overlays-secondary-normal)"};
|
2081
2081
|
z-index: ${this.zIndex-1};
|
2082
2082
|
}
|
2083
|
-
`,h.appendChild(m);let N=document.getElementById(this.backdropAppendTo)||this.parentElement;N==null||N.appendChild(h),this.backdropElement=h}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(a){a&&(this.elementOriginalStyle={zIndex:a.style.zIndex,position:a.style.position},a.style.zIndex=`${this.zIndex}`,["fixed","absolute"].includes(window.getComputedStyle(a).position)||(a.style.position="relative"))}moveElementBackAfterBackdropRemoval(a){!a||!this.elementOriginalStyle||(a.style.zIndex=this.elementOriginalStyle.zIndex,a.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0)}}return i};var as=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};as.stack=new Set,as.currentKeydownListener=null;var al=l=>{class i extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),as.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),as.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:m}=a.getBoundingClientRect(),{offsetWidth:T,offsetHeight:N}=a;return T+N+m+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:m,visibility:T}=a.style;return h==="none"||m==="0"||T==="hidden"||T==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isDisabled(a){return a.disabled}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)||this.isDisabled(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a);let m=[];return a.children.length?m=Array.from(a.children):a instanceof HTMLElement&&a.shadowRoot&&(m=Array.from(a.shadowRoot.children)),m.forEach(T=>{let N=T;this.isFocusable(N)&&h.add(N),N.shadowRoot?this.findFocusable(N.shadowRoot,h):N.tagName==="SLOT"?N.assignedElements({flatten:!0}).forEach(q=>{q instanceof HTMLElement&&this.findFocusable(q,h)}):this.findFocusable(N,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,h){let{length:m}=this.focusableElements;if(a===-1)return h>0?0:m-1;let T=a+h;return this.shouldFocusTrapWrap?(T<0&&(T=m-1),T>=m&&(T=0)):(T<0&&(T=0),T>=m&&(T=m-1)),T}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);a.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let N=this.focusableElements[this.focusTrapIndex];N.tagName!=="IFRAME"&&N&&(a.preventDefault(),N.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([f({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var nl=l=>{class i extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Eu=Y.constructTagName("popover"),Ht={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"},ao={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},no={TONAL:"tonal",CONTRAST:"contrast"},kt={PLACEMENT:Ht.BOTTOM,TRIGGER:ao.CLICK,COLOR:no.TONAL,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:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,STRATEGY:"absolute",IS_BACKDROP_INVISIBLE:!
|
2083
|
+
`,h.appendChild(m);let N=document.getElementById(this.backdropAppendTo)||this.parentElement;N==null||N.appendChild(h),this.backdropElement=h}removeBackdrop(){this.backdropElement&&(this.backdropElement.remove(),this.backdropElement=null)}keepElementAboveBackdrop(a){a&&(this.elementOriginalStyle={zIndex:a.style.zIndex,position:a.style.position},a.style.zIndex=`${this.zIndex}`,["fixed","absolute"].includes(window.getComputedStyle(a).position)||(a.style.position="relative"))}moveElementBackAfterBackdropRemoval(a){!a||!this.elementOriginalStyle||(a.style.zIndex=this.elementOriginalStyle.zIndex,a.style.position=this.elementOriginalStyle.position,this.elementOriginalStyle=void 0)}}return i};var as=class{static get stackArray(){return Array.from(this.stack)}static addKeydownListener(i){this.currentKeydownListener=i,document.addEventListener("keydown",i)}static removeKeydownListener(){this.currentKeydownListener&&document.removeEventListener("keydown",this.currentKeydownListener)}static activate(i){this.stackArray.forEach(t=>{t!==i&&t.setIsFocusTrapActivated(!1)}),this.stack.add(i),this.removeKeydownListener(),this.addKeydownListener(i.handleTabKeydown.bind(i))}static deactivate(i){if(this.stack.has(i)&&(this.stack.delete(i),this.removeKeydownListener(),this.stack.size>0)){let t=this.stackArray.pop();t&&(t.setIsFocusTrapActivated(!0),this.addKeydownListener(t.handleTabKeydown.bind(t)))}}};as.stack=new Set,as.currentKeydownListener=null;var al=l=>{class i extends l{constructor(){super(...arguments);this.shouldFocusTrapWrap=!0;this.focusTrapIndex=-1;this.focusableElements=[];this.isFocusTrapActivated=!1}setIsFocusTrapActivated(a){this.isFocusTrapActivated=a}activateFocusTrap(){this.setIsFocusTrapActivated(!0),as.activate(this)}deactivateFocusTrap(){this.setIsFocusTrapActivated(!1),as.deactivate(this),this.focusTrapIndex=-1}hasNoClientRects(a){return a.getClientRects().length===0}hasZeroDimensions(a){let{width:h,height:m}=a.getBoundingClientRect(),{offsetWidth:T,offsetHeight:N}=a;return T+N+m+h===0}isNotVisible(a){return this.hasZeroDimensions(a)||this.hasNoClientRects(a)}hasHiddenStyle(a){let{display:h,opacity:m,visibility:T}=a.style;return h==="none"||m==="0"||T==="hidden"||T==="collapse"}hasComputedHidden(a){let h=getComputedStyle(a);return h.visibility==="hidden"||h.height==="0"||h.display==="none"}isHidden(a){return a.hasAttribute("hidden")||a.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(a)||this.isNotVisible(a)||this.hasComputedHidden(a)}isDisabled(a){return a.disabled}isNotTabbable(a){return a.getAttribute("tabindex")==="-1"}isInteractiveElement(a){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(a.tagName)||a instanceof HTMLAnchorElement&&a.hasAttribute("href")||a instanceof HTMLInputElement&&a.type!=="hidden"||(a instanceof HTMLAudioElement||a instanceof HTMLVideoElement)&&a.hasAttribute("controls")||(a instanceof HTMLImageElement||a instanceof HTMLObjectElement)&&a.hasAttribute("usemap")||a.hasAttribute("tabindex")&&a.tabIndex>-1)}isFocusable(a){return this.isHidden(a)||this.isNotTabbable(a)||this.isDisabled(a)?!1:this.isInteractiveElement(a)}findFocusable(a,h=new Set){a instanceof HTMLElement&&this.isFocusable(a)&&h.add(a);let m=[];return a.children.length?m=Array.from(a.children):a instanceof HTMLElement&&a.shadowRoot&&(m=Array.from(a.shadowRoot.children)),m.forEach(T=>{let N=T;this.isFocusable(N)&&h.add(N),N.shadowRoot?this.findFocusable(N.shadowRoot,h):N.tagName==="SLOT"?N.assignedElements({flatten:!0}).forEach(q=>{q instanceof HTMLElement&&this.findFocusable(q,h)}):this.findFocusable(N,h)}),[...h]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(a=0){this.setFocusableElements(),!(this.focusableElements.length===0||!this.focusTrap)&&this.focusableElements[a]&&(this.focusTrapIndex=a,this.focusableElements[a].focus({preventScroll:!0}))}calculateNextIndex(a,h){let{length:m}=this.focusableElements;if(a===-1)return h>0?0:m-1;let T=a+h;return this.shouldFocusTrapWrap?(T<0&&(T=m-1),T>=m&&(T=0)):(T<0&&(T=0),T>=m&&(T=m-1)),T}getDeepActiveElement(){var h;let a=document.activeElement||document.body;for(;a instanceof HTMLElement&&((h=a.shadowRoot)!=null&&h.activeElement);)a=a.shadowRoot.activeElement;return a||document.body}findElement(a){return this.focusableElements.findIndex(h=>this.isEqualFocusNode(a,h))}isEqualFocusNode(a,h){return a.nodeType>=0?h.isEqualNode(a)&&h===a:!1}trapFocus(a){if(this.setFocusableElements(),this.focusableElements.length===0)return;let h=this.getDeepActiveElement(),m=this.findElement(h);a.shiftKey?this.focusTrapIndex=this.calculateNextIndex(m,-1):this.focusTrapIndex=this.calculateNextIndex(m,1);let N=this.focusableElements[this.focusTrapIndex];N.tagName!=="IFRAME"&&N&&(a.preventDefault(),N.focus())}handleTabKeydown(a){this.isFocusTrapActivated&&a.key==="Tab"&&this.trapFocus(a)}}return p([f({type:Boolean,reflect:!0,attribute:"should-focus-trap-wrap"})],i.prototype,"shouldFocusTrapWrap",2),i};var nl=l=>{class i extends l{constructor(){super(...arguments);this.isPreventScrollActive=!1;this.previousDocumentBodyStyleOverflow=""}activatePreventScroll(){this.preventScroll&&!this.isPreventScrollActive&&(this.isPreventScrollActive=!0,this.previousDocumentBodyStyleOverflow=document.body.style.overflow,document.body.style.overflow="hidden")}deactivatePreventScroll(){this.isPreventScrollActive&&(this.isPreventScrollActive=!1,document.body.style.overflow=this.previousDocumentBodyStyleOverflow)}}return i};var Eu=Y.constructTagName("popover"),Ht={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"},ao={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},no={TONAL:"tonal",CONTRAST:"contrast"},kt={PLACEMENT:Ht.BOTTOM,TRIGGER:ao.CLICK,COLOR:no.TONAL,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:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,DISABLE_ARIA_HAS_POPUP:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,STRATEGY:"absolute",IS_BACKDROP_INVISIBLE:!0};var ti=class{static dispatchPopoverEvent(i,t){t.dispatchEvent(new CustomEvent(i,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(i){this.dispatchPopoverEvent("shown",i)}static onHidePopover(i){this.dispatchPopoverEvent("hidden",i)}static onCreatedPopover(i){this.dispatchPopoverEvent("created",i)}static onDestroyedPopover(i){this.dispatchPopoverEvent("destroyed",i)}static onEscapeKeyPressed(i){this.dispatchPopoverEvent("closebyescape",i)}static onClickOutside(i){this.dispatchPopoverEvent("closebyoutsideclick",i)}};var jc=class{constructor(){this.stack=[]}push(i){this.stack.push(i)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(i){this.stack=this.stack.filter(t=>t!==i)}has(i){return this.stack.includes(i)}clear(){this.stack=[]}},Te=new jc;var Yy=G`
|
2084
2084
|
:host {
|
2085
2085
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2086
2086
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -3783,23 +3783,25 @@
|
|
3783
3783
|
class=${Cr({"hidden-checkmark":!this.checked})}
|
3784
3784
|
></mdc-icon>
|
3785
3785
|
`:j}render(){return k`
|
3786
|
-
<
|
3787
|
-
|
3788
|
-
|
3789
|
-
|
3790
|
-
|
3791
|
-
|
3792
|
-
|
3786
|
+
<slot name="content">
|
3787
|
+
<div part="leading">
|
3788
|
+
${this.staticCheckbox()}
|
3789
|
+
<slot name="leading-controls"></slot>
|
3790
|
+
<div part="leading-text">
|
3791
|
+
${this.getText("leading-text-primary-label",st.BODY_MIDSIZE_REGULAR,this.label)}
|
3792
|
+
${this.getText("leading-text-secondary-label",st.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3793
|
+
${this.getText("leading-text-tertiary-label",st.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3794
|
+
</div>
|
3793
3795
|
</div>
|
3794
|
-
|
3795
|
-
|
3796
|
-
|
3797
|
-
|
3798
|
-
|
3796
|
+
<div part="trailing">
|
3797
|
+
<div part="trailing-text">
|
3798
|
+
${this.getText("trailing-text-side-header",st.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3799
|
+
${this.getText("trailing-text-subline",st.BODY_SMALL_REGULAR,this.sublineText)}
|
3800
|
+
</div>
|
3801
|
+
<slot name="trailing-controls"></slot>
|
3802
|
+
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3799
3803
|
</div>
|
3800
|
-
|
3801
|
-
${this.staticToggle()} ${this.getCheckmarkIcon()}
|
3802
|
-
</div>
|
3804
|
+
</slot>
|
3803
3805
|
`}};vs.styles=[...rr.styles,...bf],p([f({type:Boolean,reflect:!0})],vs.prototype,"checked",2),p([f({type:String,reflect:!0})],vs.prototype,"indicator",2);var yd=vs;yd.register(fl);var VE=yd;var vl=Y.constructTagName("menuitemradio"),gl={NONE:"none",RADIO:"radio",CHECKMARK:"checkmark"},yf={INDICATOR:gl.RADIO};var BE=G`
|
3804
3806
|
:host::part(checkmark-icon) {
|
3805
3807
|
--mdc-icon-fill-color: currentColor;
|
@@ -3821,23 +3823,25 @@
|
|
3821
3823
|
class=${Cr({"hidden-checkmark":!this.checked})}
|
3822
3824
|
></mdc-icon>
|
3823
3825
|
`:j}render(){return k`
|
3824
|
-
<
|
3825
|
-
|
3826
|
-
|
3827
|
-
|
3828
|
-
|
3829
|
-
|
3830
|
-
|
3826
|
+
<slot name="content">
|
3827
|
+
<div part="leading">
|
3828
|
+
${this.renderStaticRadio()}
|
3829
|
+
<slot name="leading-controls"></slot>
|
3830
|
+
<div part="leading-text">
|
3831
|
+
${this.getText("leading-text-primary-label",st.BODY_MIDSIZE_REGULAR,this.label)}
|
3832
|
+
${this.getText("leading-text-secondary-label",st.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
3833
|
+
${this.getText("leading-text-tertiary-label",st.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
3834
|
+
</div>
|
3831
3835
|
</div>
|
3832
|
-
|
3833
|
-
|
3834
|
-
|
3835
|
-
|
3836
|
-
|
3836
|
+
<div part="trailing">
|
3837
|
+
<div part="trailing-text">
|
3838
|
+
${this.getText("trailing-text-side-header",st.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
3839
|
+
${this.getText("trailing-text-subline",st.BODY_SMALL_REGULAR,this.sublineText)}
|
3840
|
+
</div>
|
3841
|
+
<slot name="trailing-controls"></slot>
|
3842
|
+
${this.renderCheckmarkIcon()}
|
3837
3843
|
</div>
|
3838
|
-
|
3839
|
-
${this.renderCheckmarkIcon()}
|
3840
|
-
</div>
|
3844
|
+
</slot>
|
3841
3845
|
`}};gs.styles=[...rr.styles,...Ef],p([f({type:Boolean,reflect:!0})],gs.prototype,"checked",2),p([f({type:String,reflect:!0})],gs.prototype,"indicator",2);var Ed=gs;Ed.register(vl);var UE=Ed;var Mi=Y.constructTagName("navmenuitem"),Tf={DOT:Xe.DOT,COUNTER:Xe.COUNTER},xf={RIGHT_ARROW:"arrow-right-bold"},Af={MAX_COUNTER:99,TEXT_TYPE:st.BODY_MIDSIZE_REGULAR,TAG_NAME:gt.SPAN,SIZE:ji[24],VARIANT:Rr.FLEXIBLE};var HE=G`
|
3842
3846
|
:host::part(popover-content) {
|
3843
3847
|
padding: 0.75rem 0.5rem;
|
@@ -3974,7 +3978,7 @@
|
|
3974
3978
|
>
|
3975
3979
|
</mdc-listheader>`:null}render(){return k`
|
3976
3980
|
${this.hideHeaderText?null:this.renderHeader()}
|
3977
|
-
<slot></slot>
|
3981
|
+
<slot part="container"></slot>
|
3978
3982
|
${this.showDivider?k`<mdc-divider variant="${this.dividerVariant}" part="divider"></mdc-divider>`:null}
|
3979
3983
|
`}};Mr.styles=[...W.styles,...If],p([f({type:String,reflect:!0,attribute:"aria-label"})],Mr.prototype,"ariaLabel",2),p([f({type:String,reflect:!0,attribute:"header-text"})],Mr.prototype,"headerText",2),p([f({type:String,attribute:"prefix-icon"})],Mr.prototype,"prefixIcon",2),p([f({type:Boolean,reflect:!0,attribute:"show-divider"})],Mr.prototype,"showDivider",2),p([f({type:String,reflect:!0,attribute:"divider-variant"})],Mr.prototype,"dividerVariant",2),p([f({type:Boolean,reflect:!0,attribute:"hide-header-text"})],Mr.prototype,"hideHeaderText",2);var Ad=Mr;Ad.register(si);var jE=Ad;var qE=[Et,G`
|
3980
3984
|
:host {
|
@@ -4765,7 +4769,6 @@
|
|
4765
4769
|
role=""
|
4766
4770
|
backdrop
|
4767
4771
|
backdrop-append-to="${ot(this.backdropAppendTo)}"
|
4768
|
-
is-backdrop-invisible
|
4769
4772
|
hide-on-outside-click
|
4770
4773
|
hide-on-escape
|
4771
4774
|
focus-back-to-trigger
|