@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.
@@ -16232,7 +16232,7 @@
16232
16232
 
16233
16233
  /**
16234
16234
  * Do not edit directly
16235
- * Generated on Tue, 23 May 2023 20:04:01 GMT
16235
+ * Generated on Thu, 01 Jun 2023 14:26:24 GMT
16236
16236
  */
16237
16237
  const Information100DarkUi = "#a46eff";
16238
16238
  const Information100LightUi = "#804ad9";
@@ -20531,6 +20531,25 @@
20531
20531
  this.errorVisible = false;
20532
20532
  this.valueUpdatedByInput = false;
20533
20533
  }
20534
+ get value() {
20535
+ return super.value;
20536
+ }
20537
+ // This override is to work around an issue in FAST where an old filter value
20538
+ // is used after programmatically setting the value property.
20539
+ // See: https://github.com/microsoft/fast/issues/6749
20540
+ set value(next) {
20541
+ super.value = next;
20542
+ if (!this.valueUpdatedByInput) {
20543
+ // Workaround using index notation to manipulate private member
20544
+ // Can remove when following resolved: https://github.com/microsoft/fast/issues/6749
20545
+ // eslint-disable-next-line @typescript-eslint/dot-notation
20546
+ this['filter'] = '';
20547
+ this.filterOptions();
20548
+ this.selectedIndex = this.options
20549
+ .map(option => option.text)
20550
+ .indexOf(this.value);
20551
+ }
20552
+ }
20534
20553
  // Workaround for https://github.com/microsoft/fast/issues/5123
20535
20554
  setPositioning() {
20536
20555
  if (!this.$fastController.isConnected) {
@@ -20591,8 +20610,8 @@
20591
20610
  if (!this.valueUpdatedByInput) {
20592
20611
  this.valueBeforeTextUpdate = this.value;
20593
20612
  }
20594
- this.value = this.control.value;
20595
20613
  this.valueUpdatedByInput = true;
20614
+ this.value = this.control.value;
20596
20615
  return returnValue;
20597
20616
  }
20598
20617
  // eslint-disable-next-line @typescript-eslint/no-invalid-void-type