@ni/nimble-components 20.0.1 → 20.0.2

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.
@@ -16288,7 +16288,7 @@
16288
16288
 
16289
16289
  /**
16290
16290
  * Do not edit directly
16291
- * Generated on Wed, 26 Jul 2023 20:58:13 GMT
16291
+ * Generated on Mon, 31 Jul 2023 22:33:28 GMT
16292
16292
  */
16293
16293
 
16294
16294
  const Information100DarkUi = "#a46eff";
@@ -17978,8 +17978,11 @@
17978
17978
  this.isDisabledElement = (el) => {
17979
17979
  return el.getAttribute('aria-disabled') === 'true';
17980
17980
  };
17981
+ this.isHiddenElement = (el) => {
17982
+ return el.hasAttribute('hidden');
17983
+ };
17981
17984
  this.isFocusableElement = (el) => {
17982
- return !this.isDisabledElement(el);
17985
+ return !this.isDisabledElement(el) && !this.isHiddenElement(el);
17983
17986
  };
17984
17987
  this.setTabs = () => {
17985
17988
  const gridHorizontalProperty = 'gridColumn';
@@ -18137,7 +18140,7 @@
18137
18140
  });
18138
18141
  }
18139
18142
  focusFirstOrLast(focusLast) {
18140
- const focusableTabs = this.tabs.filter(t => !this.isDisabledElement(t));
18143
+ const focusableTabs = this.tabs.filter(t => this.isFocusableElement(t));
18141
18144
  const focusableIndex = focusLast ? focusableTabs.length - 1 : 0;
18142
18145
  const index = this.tabs.indexOf(focusableTabs[focusableIndex]);
18143
18146
  if (index > -1) {