@ni/nimble-components 7.8.3 → 8.0.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.
@@ -6718,7 +6718,7 @@
6718
6718
  *
6719
6719
  * @public
6720
6720
  */
6721
- class ListboxOption$1 extends FoundationElement {
6721
+ class ListboxOption extends FoundationElement {
6722
6722
  constructor(text, value, defaultSelected, selected) {
6723
6723
  super();
6724
6724
  /**
@@ -6834,22 +6834,22 @@
6834
6834
  }
6835
6835
  __decorate$1([
6836
6836
  observable
6837
- ], ListboxOption$1.prototype, "checked", void 0);
6837
+ ], ListboxOption.prototype, "checked", void 0);
6838
6838
  __decorate$1([
6839
6839
  observable
6840
- ], ListboxOption$1.prototype, "defaultSelected", void 0);
6840
+ ], ListboxOption.prototype, "defaultSelected", void 0);
6841
6841
  __decorate$1([
6842
6842
  attr({ mode: "boolean" })
6843
- ], ListboxOption$1.prototype, "disabled", void 0);
6843
+ ], ListboxOption.prototype, "disabled", void 0);
6844
6844
  __decorate$1([
6845
6845
  attr({ attribute: "selected", mode: "boolean" })
6846
- ], ListboxOption$1.prototype, "selectedAttribute", void 0);
6846
+ ], ListboxOption.prototype, "selectedAttribute", void 0);
6847
6847
  __decorate$1([
6848
6848
  observable
6849
- ], ListboxOption$1.prototype, "selected", void 0);
6849
+ ], ListboxOption.prototype, "selected", void 0);
6850
6850
  __decorate$1([
6851
6851
  attr({ attribute: "value", mode: "fromView" })
6852
- ], ListboxOption$1.prototype, "initialValue", void 0);
6852
+ ], ListboxOption.prototype, "initialValue", void 0);
6853
6853
  /**
6854
6854
  * States and properties relating to the ARIA `option` role.
6855
6855
  *
@@ -6870,7 +6870,7 @@
6870
6870
  observable
6871
6871
  ], DelegatesARIAListboxOption.prototype, "ariaSetSize", void 0);
6872
6872
  applyMixins(DelegatesARIAListboxOption, ARIAGlobalStatesAndProperties);
6873
- applyMixins(ListboxOption$1, StartEnd, DelegatesARIAListboxOption);
6873
+ applyMixins(ListboxOption, StartEnd, DelegatesARIAListboxOption);
6874
6874
 
6875
6875
  /**
6876
6876
  * A Listbox Custom HTML Element.
@@ -17102,7 +17102,7 @@
17102
17102
  /**
17103
17103
  * A nimble-styled HTML listbox option
17104
17104
  */
17105
- class ListboxOption extends ListboxOption$1 {
17105
+ class ListOption extends ListboxOption {
17106
17106
  // Workaround for https://github.com/microsoft/fast/issues/5219
17107
17107
  get value() {
17108
17108
  return super.value;
@@ -17119,13 +17119,13 @@
17119
17119
  this.setAttribute('value', this.value);
17120
17120
  }
17121
17121
  }
17122
- const nimbleListboxOption = ListboxOption.compose({
17123
- baseName: 'listbox-option',
17124
- baseClass: ListboxOption$1,
17122
+ const nimbleListOption = ListOption.compose({
17123
+ baseName: 'list-option',
17124
+ baseClass: ListboxOption,
17125
17125
  template: listboxOptionTemplate,
17126
17126
  styles: styles$f
17127
17127
  });
17128
- DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListboxOption());
17128
+ DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
17129
17129
 
17130
17130
  const styles$e = css `
17131
17131
  ${display('grid')}
@@ -17554,11 +17554,6 @@
17554
17554
  }
17555
17555
  super.setPositioning();
17556
17556
  }
17557
- connectedCallback() {
17558
- super.connectedCallback();
17559
- // Call setPositioning() after this.forcedPosition is initialized.
17560
- this.setPositioning();
17561
- }
17562
17557
  // Workaround for https://github.com/microsoft/fast/issues/5773
17563
17558
  slottedOptionsChanged(prev, next) {
17564
17559
  const value = this.value;