@ni/nimble-components 29.2.3 → 29.2.4
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.
- package/dist/all-components-bundle.js +10 -5
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +8 -7
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/select/index.js +9 -4
- package/dist/esm/select/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -16278,7 +16278,7 @@
|
|
|
16278
16278
|
|
|
16279
16279
|
/**
|
|
16280
16280
|
* Do not edit directly
|
|
16281
|
-
* Generated on
|
|
16281
|
+
* Generated on Thu, 06 Jun 2024 15:42:53 GMT
|
|
16282
16282
|
*/
|
|
16283
16283
|
|
|
16284
16284
|
const Information100DarkUi = "#a46eff";
|
|
@@ -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
|
/**
|