@ni/spright-components 1.0.12 → 1.0.14

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.
@@ -16278,7 +16278,7 @@
16278
16278
 
16279
16279
  /**
16280
16280
  * Do not edit directly
16281
- * Generated on Tue, 04 Jun 2024 17:28:01 GMT
16281
+ * Generated on Thu, 06 Jun 2024 15:42:53 GMT
16282
16282
  */
16283
16283
 
16284
16284
  const Information100DarkUi = "#a46eff";
@@ -18695,6 +18695,7 @@
18695
18695
  font-size: 12.8px;
18696
18696
  align-items: top;
18697
18697
  overflow: hidden;
18698
+ overflow-wrap: anywhere;
18698
18699
  }
18699
18700
 
18700
18701
  :host(:not([open])) {
@@ -18726,7 +18727,6 @@
18726
18727
  display: inline;
18727
18728
  font-weight: bold;
18728
18729
  padding-right: 8px;
18729
- white-space: nowrap;
18730
18730
  }
18731
18731
 
18732
18732
  :host([title-hidden]) slot[name='title'] {
@@ -59654,7 +59654,6 @@ img.ProseMirror-separator {
59654
59654
  * @internal
59655
59655
  */
59656
59656
  slottedOptionsChanged(prev, next) {
59657
- const value = this.value;
59658
59657
  this.options.forEach(o => {
59659
59658
  const notifier = Observable.getNotifier(o);
59660
59659
  notifier.unsubscribe(this, 'value');
@@ -59665,8 +59664,11 @@ img.ProseMirror-separator {
59665
59664
  const notifier = Observable.getNotifier(el);
59666
59665
  notifier.unsubscribe(this, 'hidden');
59667
59666
  notifier.unsubscribe(this, 'visuallyHidden');
59667
+ notifier.unsubscribe(this, 'listOptions');
59668
59668
  });
59669
59669
  const options = this.getSlottedOptions(next);
59670
+ // reset selectedIndex in case the selected option was removed or reordered
59671
+ this.selectedIndex = options.findIndex(o => o.selected);
59670
59672
  super.slottedOptionsChanged(prev, options);
59671
59673
  options.forEach(o => {
59672
59674
  const notifier = Observable.getNotifier(o);
@@ -59679,15 +59681,13 @@ img.ProseMirror-separator {
59679
59681
  const notifier = Observable.getNotifier(el);
59680
59682
  notifier.subscribe(this, 'hidden');
59681
59683
  notifier.subscribe(this, 'visuallyHidden');
59684
+ notifier.subscribe(this, 'listOptions');
59682
59685
  });
59683
59686
  this.setProxyOptions();
59684
59687
  this.updateValue();
59685
59688
  // We need to force an update to the filteredOptions observable
59686
59689
  // (by calling 'filterOptions()) so that the template correctly updates.
59687
59690
  this.filterOptions();
59688
- if (value) {
59689
- this.value = value;
59690
- }
59691
59691
  }
59692
59692
  /**
59693
59693
  * @internal
@@ -59766,6 +59766,11 @@ img.ProseMirror-separator {
59766
59766
  this.updateDisplayValue();
59767
59767
  break;
59768
59768
  }
59769
+ case 'listOptions': {
59770
+ // force refresh of slotted options for groups
59771
+ this.slottedOptionsChanged(this.slottedOptions, this.slottedOptions);
59772
+ break;
59773
+ }
59769
59774
  }
59770
59775
  }
59771
59776
  /**