@ni/nimble-components 7.5.0 → 7.6.0

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.
@@ -998,7 +998,7 @@ var vh,gh
998
998
  !function(t){t.Left="left",t.Right="right"}(vh||(vh={})),function(t){t.Opening="opening",t.Opened="opened",t.Closing="closing",t.Closed="closed"}(gh||(gh={}))
999
999
  class mh extends Ds{constructor(){super(...arguments),this.location=vh.Left,this.state=gh.Closed,this.preventDismiss=!1,this.propertiesToWatch=["hidden","location","state"],this.animationDurationMilliseconds=.001}connectedCallback(){this.trapFocus=!1,super.connectedCallback(),this.updateAnimationDuration(),this.animationsEnabledChangedHandler=()=>this.updateAnimationDuration(),dh.addEventListener("change",this.animationsEnabledChangedHandler),this.onStateChanged()
1000
1000
  const t=f.getNotifier(this),e={handleChange:(t,e)=>this.onPropertyChange(e)}
1001
- this.propertiesToWatch.forEach((s=>t.subscribe(e,s))),this.propertyChangeSubscriber=e,this.propertyChangeNotifier=t}disconnectedCallback(){super.disconnectedCallback(),this.cancelCurrentAnimation(),this.propertyChangeNotifier&&this.propertyChangeSubscriber&&(this.propertiesToWatch.forEach((t=>this.propertyChangeNotifier.unsubscribe(this.propertyChangeSubscriber,t))),this.propertyChangeNotifier=void 0,this.propertyChangeSubscriber=void 0),this.animationsEnabledChangedHandler&&(dh.removeEventListener("change",this.animationsEnabledChangedHandler),this.animationsEnabledChangedHandler=void 0)}show(){this.state=gh.Opening}hide(){this.state=gh.Closing}dismiss(){this.preventDismiss||(super.dismiss(),this.hide())}onPropertyChange(t){switch(t){case"hidden":this.onHiddenChanged()
1001
+ this.propertiesToWatch.forEach((s=>t.subscribe(e,s))),this.propertyChangeSubscriber=e,this.propertyChangeNotifier=t}disconnectedCallback(){super.disconnectedCallback(),this.cancelCurrentAnimation(),this.propertyChangeNotifier&&this.propertyChangeSubscriber&&(this.propertiesToWatch.forEach((t=>this.propertyChangeNotifier.unsubscribe(this.propertyChangeSubscriber,t))),this.propertyChangeNotifier=void 0,this.propertyChangeSubscriber=void 0),this.animationsEnabledChangedHandler&&(dh.removeEventListener("change",this.animationsEnabledChangedHandler),this.animationsEnabledChangedHandler=void 0)}show(){this.state=gh.Opening}hide(){this.state=gh.Closing}dismiss(){this.$emit("cancel",{},{bubbles:!1,cancelable:!0,composed:!1})&&!this.preventDismiss&&(super.dismiss(),this.hide())}onPropertyChange(t){switch(t){case"hidden":this.onHiddenChanged()
1002
1002
  break
1003
1003
  case"location":this.onLocationChanged()
1004
1004
  break