@ni/nimble-components 20.17.4 → 20.17.5

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.
@@ -16301,7 +16301,7 @@
16301
16301
 
16302
16302
  /**
16303
16303
  * Do not edit directly
16304
- * Generated on Wed, 10 Jan 2024 13:29:56 GMT
16304
+ * Generated on Tue, 16 Jan 2024 20:46:46 GMT
16305
16305
  */
16306
16306
 
16307
16307
  const Information100DarkUi = "#a46eff";
@@ -17820,7 +17820,7 @@
17820
17820
  // The following two handlers are workarounds for issues with anchor menu items in submenus.
17821
17821
  // Events can bubble up the DOM and get handled by the menu item in the parent menu. When that happens,
17822
17822
  // the menu item's handlers (FAST) return false and prevent the default action, i.e. navigation.
17823
- // FAST has this issue about supporting links in menus: https://github.com/microsoft/fast/issues/5415
17823
+ // See tech debt issue: https://github.com/ni/nimble/issues/1740
17824
17824
  /**
17825
17825
  * @internal
17826
17826
  */
@@ -17842,13 +17842,10 @@
17842
17842
  }
17843
17843
  return true;
17844
17844
  }
17845
- // The FAST Menu manages the `tabindex` of its menu items. Because of a bug in Chromium
17846
- // (https://bugs.chromium.org/p/chromium/issues/detail?id=1346606), setting the tabindex on an element
17847
- // with `delegatesFocus=true` causes the element to lose focus. This causes the menu to close, preventing
17848
- // arrowing through the items or navigating to the url. As a workaround, we intercept attempts to
17849
- // set the tabindex on the host and instead set it on the inner anchor.
17850
- // The referenced Chromium bug is actually fixed, but it hasn't been pulled into Edge yet (it is in
17851
- // Chrome). Issue https://github.com/ni/nimble/issues/1118 tracks removal of this workaround.
17845
+ // The FAST Menu manages the `tabindex` of its menu items.
17846
+ // When keyboard navigating to an item, it sets that item's `tabindex` to 0.
17847
+ // We need to pass this on to the anchor, otherwise an anchor without an href
17848
+ // will not be focusable and will prevent arrowing through the menu.
17852
17849
  setAttribute(qualifiedName, value) {
17853
17850
  if (qualifiedName === 'tabindex') {
17854
17851
  this.anchor.setAttribute(qualifiedName, value);
@@ -17857,11 +17854,9 @@
17857
17854
  super.setAttribute(qualifiedName, value);
17858
17855
  }
17859
17856
  }
17860
- // This is part of the bug workaround described above (in setAttribute)
17861
17857
  get tabIndex() {
17862
17858
  return this.anchor.tabIndex;
17863
17859
  }
17864
- // This is part of the bug workaround described above (in setAttribute)
17865
17860
  set tabIndex(value) {
17866
17861
  this.anchor.tabIndex = value;
17867
17862
  }
@@ -23815,6 +23810,7 @@
23815
23810
  this.propertyNotifier.subscribe(this);
23816
23811
  }
23817
23812
  disconnectedCallback() {
23813
+ super.disconnectedCallback();
23818
23814
  this.propertyNotifier.unsubscribe(this);
23819
23815
  if (this.themeProvider) {
23820
23816
  for (const token of Object.values(this.supportedLabels)) {
@@ -63464,11 +63460,11 @@ img.ProseMirror-separator {
63464
63460
  }
63465
63461
  });
63466
63462
  }
63467
- connectedCallback() {
63463
+ connect() {
63468
63464
  this.viewportResizeObserver.observe(this.table.viewport);
63469
63465
  this.updateVirtualizer();
63470
63466
  }
63471
- disconnectedCallback() {
63467
+ disconnect() {
63472
63468
  this.viewportResizeObserver.disconnect();
63473
63469
  }
63474
63470
  dataChanged() {
@@ -64443,7 +64439,7 @@ img.ProseMirror-separator {
64443
64439
  connectedCallback() {
64444
64440
  super.connectedCallback();
64445
64441
  this.initialize();
64446
- this.virtualizer.connectedCallback();
64442
+ this.virtualizer.connect();
64447
64443
  this.viewport.addEventListener('scroll', this.onViewPortScroll, {
64448
64444
  passive: true
64449
64445
  });
@@ -64452,7 +64448,7 @@ img.ProseMirror-separator {
64452
64448
  }
64453
64449
  disconnectedCallback() {
64454
64450
  super.disconnectedCallback();
64455
- this.virtualizer.disconnectedCallback();
64451
+ this.virtualizer.disconnect();
64456
64452
  this.viewport.removeEventListener('scroll', this.onViewPortScroll);
64457
64453
  document.removeEventListener('keydown', this.onKeyDown);
64458
64454
  document.removeEventListener('keyup', this.onKeyUp);
@@ -67334,6 +67330,7 @@ img.ProseMirror-separator {
67334
67330
  * @internal
67335
67331
  */
67336
67332
  disconnectedCallback() {
67333
+ super.disconnectedCallback();
67337
67334
  this.resizeObserver?.disconnect();
67338
67335
  }
67339
67336
  /**