@ni/nimble-components 19.9.2 → 20.0.1

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.
@@ -2334,7 +2334,8 @@ const Eh=mi.tagFor(Mh),Fh={name:"add_16_x_16",data:'<svg xmlns="http://www.w3.or
2334
2334
  height: 100%;
2335
2335
  }
2336
2336
  `
2337
- class Dp extends Vt{constructor(e){super(),this.icon=e}}e([se],Dp.prototype,"severity",void 0)
2337
+ class Dp extends Vt{constructor(e){super(),this.icon=e}connectedCallback(){super.connectedCallback(),this.forwardAriaLabelToSvg()}ariaLabelChanged(){this.forwardAriaLabelToSvg()}forwardAriaLabelToSvg(){const e=this.shadowRoot?.querySelector("svg")
2338
+ e&&(null!==this.ariaLabel&&void 0!==this.ariaLabel?e.setAttribute("aria-label",this.ariaLabel):e.removeAttribute("aria-label"))}}e([se],Dp.prototype,"severity",void 0),Pt(Dp,dn)
2338
2339
  const Tp=(e,t)=>{const n=t.compose({baseName:e,template:Fp,styles:Op,baseClass:t})
2339
2340
  mi.getOrCreate().withPrefix("nimble").register(n())}
2340
2341
  class zp extends Dp{constructor(){super(Wd)}}Tp("icon-exclamation-mark",zp)
@@ -2389,7 +2390,7 @@ const qp=mi.tagFor(Np),Zp={default:void 0,error:"error",warning:"warning",inform
2389
2390
  ${Le((e=>!e.preventDismiss),G`
2390
2391
  <${Eh} appearance="ghost" content-hidden @click="${e=>e.dismissBanner()}">
2391
2392
  <${qp} slot="start"></${qp}>
2392
- ${e=>e.dismissButtonLabel??Wp.getValueFor(e)}
2393
+ ${e=>Wp.getValueFor(e)}
2393
2394
  </${Eh}>
2394
2395
  `)}
2395
2396
  </div>
@@ -2397,7 +2398,7 @@ const qp=mi.tagFor(Np),Zp={default:void 0,error:"error",warning:"warning",inform
2397
2398
  </div>
2398
2399
  `
2399
2400
  class Jp extends Vt{constructor(){super(...arguments),this.open=!1,this.severity=Zp.default,this.titleHidden=!1,this.preventDismiss=!1}openChanged(){const e={newState:this.open,oldState:!this.open}
2400
- this.$emit("toggle",e)}dismissBanner(){this.open=!1}}e([se({mode:"boolean"})],Jp.prototype,"open",void 0),e([se()],Jp.prototype,"severity",void 0),e([se({attribute:"title-hidden",mode:"boolean"})],Jp.prototype,"titleHidden",void 0),e([se({attribute:"prevent-dismiss",mode:"boolean"})],Jp.prototype,"preventDismiss",void 0),e([se({attribute:"dismiss-button-label"})],Jp.prototype,"dismissButtonLabel",void 0),Pt(Jp,dn)
2401
+ this.$emit("toggle",e)}dismissBanner(){this.open=!1}}e([se({mode:"boolean"})],Jp.prototype,"open",void 0),e([se()],Jp.prototype,"severity",void 0),e([se({attribute:"title-hidden",mode:"boolean"})],Jp.prototype,"titleHidden",void 0),e([se({attribute:"prevent-dismiss",mode:"boolean"})],Jp.prototype,"preventDismiss",void 0),Pt(Jp,dn)
2401
2402
  const Qp=Jp.compose({baseName:"banner",template:Yp,styles:Ih})
2402
2403
  mi.getOrCreate().withPrefix("nimble").register(Qp()),mi.tagFor(Jp)
2403
2404
  const eg=we`