@ni/nimble-components 19.1.2 → 19.1.3

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.
@@ -3214,12 +3214,12 @@ const eg=ro.tagFor(Jp),tg="above",ig="underline",og="outline",ng="block",sg=fe`
3214
3214
  padding-bottom: 0;
3215
3215
  }
3216
3216
  `))
3217
- class lg extends Hi{constructor(){super(...arguments),this.appearance=ig,this.errorVisible=!1,this.valueUpdatedByInput=!1}setPositioning(){this.$fastController.isConnected&&super.setPositioning()}slottedOptionsChanged(e,t){const i=this.value
3217
+ class lg extends Hi{constructor(){super(...arguments),this.appearance=ig,this.errorVisible=!1,this.valueUpdatedByInput=!1}get value(){return super.value}set value(e){super.value=e,this.valueUpdatedByInput||(this.filter="",this.filterOptions(),this.selectedIndex=this.options.map((e=>e.text)).indexOf(this.value))}setPositioning(){this.$fastController.isConnected&&super.setPositioning()}slottedOptionsChanged(e,t){const i=this.value
3218
3218
  super.slottedOptionsChanged(e,t),i&&(this.value=i)}connectedCallback(){super.connectedCallback(),this.setPositioning(),this.updateInputAriaLabel()}toggleButtonClickHandler(e){e.stopImmediatePropagation()}toggleButtonChangeHandler(e){this.open=this.dropdownButton.checked,e.stopImmediatePropagation()}toggleButtonKeyDownHandler(e){switch(e.key){case Mr:case Ir:case" ":case Ar:return this.open=!0,this.stopPropagation(e),!1
3219
3219
  default:return!0}}filterOptions(){super.filterOptions()
3220
3220
  const e=this.filteredOptions.filter((e=>!e.disabled))
3221
3221
  this.filteredOptions=e}inputHandler(e){const t=super.inputHandler(e)
3222
- return this.valueUpdatedByInput||(this.valueBeforeTextUpdate=this.value),this.value=this.control.value,this.valueUpdatedByInput=!0,t}keydownHandler(e){const t=super.keydownHandler(e)
3222
+ return this.valueUpdatedByInput||(this.valueBeforeTextUpdate=this.value),this.valueUpdatedByInput=!0,this.value=this.control.value,t}keydownHandler(e){const t=super.keydownHandler(e)
3223
3223
  if(e.ctrlKey||e.altKey)return t
3224
3224
  switch(e.key){case Ar:this.emitChangeIfValueUpdated()
3225
3225
  break