@db-ux/wc-core-components 4.6.1 → 4.7.0-tabs-34782eb

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.
Files changed (168) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/agent/Tabs.md +30 -30
  3. package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
  4. package/dist/cjs/db-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/db-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/db-brand.cjs.entry.js +1 -1
  7. package/dist/cjs/db-button.cjs.entry.js +1 -1
  8. package/dist/cjs/db-card.cjs.entry.js +2 -2
  9. package/dist/cjs/db-checkbox.cjs.entry.js +2 -2
  10. package/dist/cjs/db-custom-button.cjs.entry.js +2 -2
  11. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +9 -9
  12. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -2
  13. package/dist/cjs/db-custom-select.cjs.entry.js +5 -5
  14. package/dist/cjs/db-divider.cjs.entry.js +1 -1
  15. package/dist/cjs/db-drawer.cjs.entry.js +3 -3
  16. package/dist/cjs/db-header.cjs.entry.js +2 -2
  17. package/dist/cjs/db-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/db-infotext.cjs.entry.js +1 -1
  19. package/dist/cjs/db-link.cjs.entry.js +1 -1
  20. package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
  21. package/dist/cjs/db-navigation.cjs.entry.js +2 -2
  22. package/dist/cjs/db-notification.cjs.entry.js +2 -2
  23. package/dist/cjs/db-page.cjs.entry.js +2 -2
  24. package/dist/cjs/db-popover.cjs.entry.js +2 -2
  25. package/dist/cjs/db-radio.cjs.entry.js +1 -1
  26. package/dist/cjs/db-section.cjs.entry.js +2 -2
  27. package/dist/cjs/db-select.cjs.entry.js +2 -2
  28. package/dist/cjs/db-stack.cjs.entry.js +2 -2
  29. package/dist/cjs/db-switch.cjs.entry.js +2 -2
  30. package/dist/cjs/db-tab-item_3.cjs.entry.js +133 -67
  31. package/dist/cjs/db-tabs.cjs.entry.js +373 -123
  32. package/dist/cjs/db-textarea.cjs.entry.js +2 -2
  33. package/dist/cjs/db-tooltip.cjs.entry.js +3 -4
  34. package/dist/cjs/db-ux.cjs.js +1 -1
  35. package/dist/cjs/index.cjs.js +2 -2
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/collection/components/accordion/accordion.js +1 -1
  38. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  39. package/dist/collection/components/badge/badge.js +1 -1
  40. package/dist/collection/components/brand/brand.js +1 -1
  41. package/dist/collection/components/button/button.js +1 -1
  42. package/dist/collection/components/card/card.js +2 -2
  43. package/dist/collection/components/checkbox/checkbox.js +2 -2
  44. package/dist/collection/components/custom-button/custom-button.js +2 -2
  45. package/dist/collection/components/custom-select/custom-select.js +5 -5
  46. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
  47. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  48. package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
  49. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +1 -1
  50. package/dist/collection/components/divider/divider.js +1 -1
  51. package/dist/collection/components/drawer/drawer.js +3 -3
  52. package/dist/collection/components/header/header.js +2 -2
  53. package/dist/collection/components/icon/icon.js +1 -1
  54. package/dist/collection/components/infotext/infotext.js +1 -1
  55. package/dist/collection/components/input/input.js +2 -2
  56. package/dist/collection/components/link/link.js +1 -1
  57. package/dist/collection/components/navigation/navigation.js +2 -2
  58. package/dist/collection/components/navigation-item/navigation-item.js +1 -1
  59. package/dist/collection/components/notification/notification.js +2 -2
  60. package/dist/collection/components/page/page.js +2 -2
  61. package/dist/collection/components/popover/popover.js +2 -2
  62. package/dist/collection/components/radio/radio.js +1 -1
  63. package/dist/collection/components/section/section.js +2 -2
  64. package/dist/collection/components/select/select.js +2 -2
  65. package/dist/collection/components/stack/stack.js +2 -2
  66. package/dist/collection/components/switch/switch.js +2 -2
  67. package/dist/collection/components/tab-item/tab-item.js +198 -129
  68. package/dist/collection/components/tab-list/tab-list.js +74 -12
  69. package/dist/collection/components/tab-panel/tab-panel.js +80 -2
  70. package/dist/collection/components/tabs/tabs.js +504 -167
  71. package/dist/collection/components/tag/tag.js +2 -2
  72. package/dist/collection/components/textarea/textarea.js +2 -2
  73. package/dist/collection/components/tooltip/tooltip.js +3 -4
  74. package/dist/collection/shared/model.js +1 -1
  75. package/dist/custom-elements.json +4021 -3053
  76. package/dist/db-ux/db-ux.esm.js +1 -1
  77. package/dist/db-ux/index.esm.js +1 -1
  78. package/dist/db-ux/{p-2355324e.entry.js → p-01c278b9.entry.js} +1 -1
  79. package/dist/db-ux/{p-5f5eb78d.entry.js → p-071ae423.entry.js} +1 -1
  80. package/dist/db-ux/{p-abb0885d.entry.js → p-07c7ecc9.entry.js} +1 -1
  81. package/dist/db-ux/p-10869bfa.entry.js +1 -0
  82. package/dist/db-ux/p-1427bb15.entry.js +1 -0
  83. package/dist/db-ux/{p-70823b80.entry.js → p-328faf6b.entry.js} +1 -1
  84. package/dist/db-ux/p-397bc590.entry.js +1 -0
  85. package/dist/db-ux/{p-d85b1c15.entry.js → p-43a9623f.entry.js} +1 -1
  86. package/dist/db-ux/{p-67d59d5b.entry.js → p-44a0407b.entry.js} +1 -1
  87. package/dist/db-ux/{p-12a2c502.entry.js → p-61784f7a.entry.js} +1 -1
  88. package/dist/db-ux/p-68835a75.entry.js +1 -0
  89. package/dist/db-ux/p-68a995df.entry.js +1 -0
  90. package/dist/db-ux/{p-a65d0d23.entry.js → p-6c26b0ba.entry.js} +1 -1
  91. package/dist/db-ux/p-6e898a58.entry.js +1 -0
  92. package/dist/db-ux/{p-761c9ddf.entry.js → p-70e6d32f.entry.js} +1 -1
  93. package/dist/db-ux/p-71868bb5.entry.js +1 -0
  94. package/dist/db-ux/{p-bed8d029.entry.js → p-74a45768.entry.js} +1 -1
  95. package/dist/db-ux/{p-ba8464d2.entry.js → p-9a895c18.entry.js} +1 -1
  96. package/dist/db-ux/p-9b4d0c18.entry.js +1 -0
  97. package/dist/db-ux/{p-0e0c3c72.entry.js → p-9b518eb4.entry.js} +1 -1
  98. package/dist/db-ux/p-a927fe88.entry.js +1 -0
  99. package/dist/db-ux/p-a93ca690.entry.js +1 -0
  100. package/dist/db-ux/{p-212bde1e.entry.js → p-b06fe221.entry.js} +1 -1
  101. package/dist/db-ux/{p-13157b54.entry.js → p-b7087f0b.entry.js} +1 -1
  102. package/dist/db-ux/{p-d8b38722.entry.js → p-d93b9d58.entry.js} +1 -1
  103. package/dist/db-ux/p-d97c0787.entry.js +1 -0
  104. package/dist/db-ux/{p-c76089f6.entry.js → p-ee43015b.entry.js} +1 -1
  105. package/dist/db-ux/p-efde1b6e.entry.js +1 -0
  106. package/dist/db-ux/{p-5cb74480.entry.js → p-f08b14d9.entry.js} +1 -1
  107. package/dist/db-ux/p-f92cbbae.entry.js +1 -0
  108. package/dist/db-ux/{p-980a6afe.entry.js → p-ffe614c8.entry.js} +1 -1
  109. package/dist/esm/db-accordion-item.entry.js +2 -2
  110. package/dist/esm/db-accordion.entry.js +1 -1
  111. package/dist/esm/db-badge.entry.js +1 -1
  112. package/dist/esm/db-brand.entry.js +1 -1
  113. package/dist/esm/db-button.entry.js +1 -1
  114. package/dist/esm/db-card.entry.js +2 -2
  115. package/dist/esm/db-checkbox.entry.js +2 -2
  116. package/dist/esm/db-custom-button.entry.js +2 -2
  117. package/dist/esm/db-custom-select-dropdown_5.entry.js +9 -9
  118. package/dist/esm/db-custom-select-form-field.entry.js +2 -2
  119. package/dist/esm/db-custom-select.entry.js +5 -5
  120. package/dist/esm/db-divider.entry.js +1 -1
  121. package/dist/esm/db-drawer.entry.js +3 -3
  122. package/dist/esm/db-header.entry.js +2 -2
  123. package/dist/esm/db-icon.entry.js +1 -1
  124. package/dist/esm/db-infotext.entry.js +1 -1
  125. package/dist/esm/db-link.entry.js +1 -1
  126. package/dist/esm/db-navigation-item.entry.js +1 -1
  127. package/dist/esm/db-navigation.entry.js +2 -2
  128. package/dist/esm/db-notification.entry.js +2 -2
  129. package/dist/esm/db-page.entry.js +2 -2
  130. package/dist/esm/db-popover.entry.js +2 -2
  131. package/dist/esm/db-radio.entry.js +1 -1
  132. package/dist/esm/db-section.entry.js +2 -2
  133. package/dist/esm/db-select.entry.js +2 -2
  134. package/dist/esm/db-stack.entry.js +2 -2
  135. package/dist/esm/db-switch.entry.js +2 -2
  136. package/dist/esm/db-tab-item_3.entry.js +134 -68
  137. package/dist/esm/db-tabs.entry.js +373 -123
  138. package/dist/esm/db-textarea.entry.js +2 -2
  139. package/dist/esm/db-tooltip.entry.js +4 -5
  140. package/dist/esm/db-ux.js +1 -1
  141. package/dist/esm/index.js +2 -2
  142. package/dist/esm/loader.js +1 -1
  143. package/dist/types/components/tab-item/model.d.ts +28 -11
  144. package/dist/types/components/tab-item/tab-item.d.ts +22 -20
  145. package/dist/types/components/tab-list/model.d.ts +15 -5
  146. package/dist/types/components/tab-list/tab-list.d.ts +4 -1
  147. package/dist/types/components/tab-panel/model.d.ts +13 -3
  148. package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
  149. package/dist/types/components/tabs/model.d.ts +51 -17
  150. package/dist/types/components/tabs/tabs.d.ts +35 -16
  151. package/dist/types/components.d.ts +80 -30
  152. package/dist/types/shared/model.d.ts +5 -5
  153. package/dist/vscode.html-custom-data.json +153 -59
  154. package/dist/web-types.json +297 -135
  155. package/package.json +3 -3
  156. package/dist/db-ux/p-202323c2.entry.js +0 -1
  157. package/dist/db-ux/p-21068628.entry.js +0 -1
  158. package/dist/db-ux/p-377987d0.entry.js +0 -1
  159. package/dist/db-ux/p-3d5d49ff.entry.js +0 -1
  160. package/dist/db-ux/p-452a8b6b.entry.js +0 -1
  161. package/dist/db-ux/p-4de2c697.entry.js +0 -1
  162. package/dist/db-ux/p-605013f0.entry.js +0 -1
  163. package/dist/db-ux/p-6f9e146e.entry.js +0 -1
  164. package/dist/db-ux/p-7fa91164.entry.js +0 -1
  165. package/dist/db-ux/p-8e84712d.entry.js +0 -1
  166. package/dist/db-ux/p-a9efbb0b.entry.js +0 -1
  167. package/dist/db-ux/p-bd66d144.entry.js +0 -1
  168. package/dist/db-ux/p-dd08f6e4.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { cls, getBoolean, getBooleanAsString } from "../../utils";
1
+ import { cls, getBoolean } from "../../utils";
2
2
  import { h, } from "@stencil/core";
3
3
  /**
4
4
  * @slot children - This is a default/unnamed slot
@@ -6,30 +6,49 @@ import { h, } from "@stencil/core";
6
6
  */
7
7
  export class DBTabItem {
8
8
  constructor() {
9
- this._selected = false;
10
- this._name = undefined;
11
9
  this.initialized = false;
12
- this._listenerAdded = false;
13
- this.boundSetSelectedOnChange = undefined;
10
+ this.internalActive = false;
11
+ this.internalTabIndex = -1;
12
+ this.isTruncated = false;
13
+ this.tooltipText = "";
14
+ this._resizeObserver = null;
15
+ this._ariaSelectedListener = null;
14
16
  }
15
- setSelectedOnChange(event) {
16
- event.stopPropagation();
17
- this._selected = getBooleanAsString(event.target === this._ref);
17
+ getCurrentTabIndex() {
18
+ return this.tabIndex !== undefined
19
+ ? Number(this.tabIndex)
20
+ : this.internalTabIndex;
18
21
  }
19
- handleNameAttribute() {
20
- if (this._ref) {
21
- const setAttribute = this._ref.setAttribute;
22
- this._ref.setAttribute = (attribute, value) => {
23
- setAttribute.call(this._ref, attribute, value);
24
- if (attribute === "name") {
25
- this._name = value;
26
- }
27
- };
22
+ handleClick(event) {
23
+ if (event && event.preventDefault) {
24
+ event.preventDefault();
25
+ }
26
+ if (!getBoolean(this.disabled) && this.click) {
27
+ this.click.emit(event);
28
28
  }
29
29
  }
30
- handleChange(event) {
31
- if (this.change) {
32
- this.change.emit(event);
30
+ checkTruncation() {
31
+ if (this._labelRef) {
32
+ const scrollWidth = Math.ceil(this._labelRef.scrollWidth);
33
+ const clientWidth = Math.ceil(this._labelRef.clientWidth);
34
+ const truncated = scrollWidth > clientWidth + 1;
35
+ if (this.isTruncated !== truncated) {
36
+ this.isTruncated = truncated;
37
+ if (!truncated && this._ref) {
38
+ if (this._ref.hasAttribute("data-has-tooltip")) {
39
+ this._ref.removeAttribute("data-has-tooltip");
40
+ }
41
+ if (this._ref.hasAttribute("aria-describedby")) {
42
+ this._ref.removeAttribute("aria-describedby");
43
+ }
44
+ }
45
+ }
46
+ this.tooltipText = truncated
47
+ ? this.label ||
48
+ this._labelRef.innerText ||
49
+ this._labelRef.textContent ||
50
+ ""
51
+ : "";
33
52
  }
34
53
  }
35
54
  /**
@@ -69,53 +88,108 @@ export class DBTabItem {
69
88
  }
70
89
  }
71
90
  watch0Fn() {
72
- var _a;
73
- if (this._ref && this.initialized && this.boundSetSelectedOnChange) {
74
- this.initialized = false;
75
- // deselect this tab when another tab in tablist is selected
76
- if (!this._listenerAdded) {
77
- (_a = this._ref
78
- .closest("[role=tablist]")) === null || _a === void 0 ? void 0 : _a.addEventListener("change", this.boundSetSelectedOnChange);
79
- this._listenerAdded = true;
80
- }
81
- // Initialize selected state from either active prop (set by parent) or checked attribute
82
- if (this.active || this._ref.checked) {
83
- this._selected = getBooleanAsString(true);
84
- this._ref.click();
85
- }
91
+ if (this.active !== undefined) {
92
+ this.internalActive = getBoolean(this.active) || false;
86
93
  }
87
94
  }
88
95
  watch0() {
89
96
  this.watch0Fn();
90
97
  }
91
- watch1Fn() {
92
- if (this.name) {
93
- this._name = this.name;
94
- }
95
- }
96
- watch1() {
97
- this.watch1Fn();
98
- }
99
98
  componentDidLoad() {
99
+ var _a;
100
100
  this.enableAttributePassing(this._ref, "db-tab-item");
101
- this.boundSetSelectedOnChange = this.setSelectedOnChange.bind(this);
102
- this.initialized = true;
101
+ this.internalActive = getBoolean(this.active) || false;
102
+ this.internalTabIndex = getBoolean(this.active) ? 0 : -1;
103
+ if (typeof window !== "undefined") {
104
+ const setupObserverAndCheck = () => {
105
+ requestAnimationFrame(() => {
106
+ this.checkTruncation();
107
+ const labelEl = this._labelRef;
108
+ if (labelEl && !labelEl.dataset.label) {
109
+ labelEl.dataset.label =
110
+ this.label || labelEl.innerText || labelEl.textContent || "";
111
+ }
112
+ if (this._labelRef) {
113
+ const resizeObserver = new ResizeObserver(() => {
114
+ requestAnimationFrame(() => {
115
+ this.checkTruncation();
116
+ });
117
+ });
118
+ resizeObserver.observe(this._labelRef);
119
+ this._resizeObserver = resizeObserver;
120
+ }
121
+ });
122
+ };
123
+ const hasIcon = this.showIcon && this.icon;
124
+ if (hasIcon && ((_a = document.fonts) === null || _a === void 0 ? void 0 : _a.ready)) {
125
+ document.fonts.ready.then(setupObserverAndCheck);
126
+ }
127
+ else {
128
+ setupObserverAndCheck();
129
+ }
130
+ }
131
+ if (this._ref) {
132
+ const listener = (event) => {
133
+ this.internalActive = event.detail.selected;
134
+ if (this.tabIndex === undefined) {
135
+ if (event.detail.tabIndex !== undefined) {
136
+ this.internalTabIndex = event.detail.tabIndex;
137
+ }
138
+ else {
139
+ this.internalTabIndex = event.detail.selected ? 0 : -1;
140
+ }
141
+ }
142
+ };
143
+ this._ariaSelectedListener = {
144
+ fn: listener,
145
+ };
146
+ this._ref.addEventListener("aria-selected-changed", listener);
147
+ }
103
148
  this.watch0Fn();
104
- this.watch1Fn();
105
149
  }
106
150
  disconnectedCallback() {
107
151
  var _a;
108
- if (this._listenerAdded && this._ref && this.boundSetSelectedOnChange) {
109
- (_a = this._ref
110
- .closest("[role=tablist]")) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.boundSetSelectedOnChange);
111
- this._listenerAdded = false;
152
+ (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
153
+ const _listener = this._ariaSelectedListener;
154
+ if (this._ref && _listener) {
155
+ this._ref.removeEventListener("aria-selected-changed", _listener.fn);
156
+ }
157
+ }
158
+ componentDidUpdate() {
159
+ var _a, _b;
160
+ if (this._ref) {
161
+ const isDisabled = getBoolean(this.disabled);
162
+ const disabledStr = isDisabled ? "true" : "false";
163
+ if (((_a = this._ref) === null || _a === void 0 ? void 0 : _a.getAttribute("aria-disabled")) !== disabledStr) {
164
+ (_b = this._ref) === null || _b === void 0 ? void 0 : _b.setAttribute("aria-disabled", disabledStr);
165
+ }
166
+ if (!this.isTruncated) {
167
+ if (this._ref.hasAttribute("data-has-tooltip")) {
168
+ this._ref.removeAttribute("data-has-tooltip");
169
+ }
170
+ if (this._ref.hasAttribute("aria-describedby")) {
171
+ this._ref.removeAttribute("aria-describedby");
172
+ }
173
+ }
112
174
  }
113
175
  }
114
176
  render() {
115
- var _a, _b, _c, _d, _e, _f;
116
- return (h("li", { key: '0b8687c942d18b49bdf25249be3f0ae1ca727256', class: cls("db-tab-item", this.className), role: "none" }, h("label", { key: 'b9eaa4d53de58d78d7f968d18b021c9cfe013502', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing), "data-no-text": getBooleanAsString(this.noText) }, h("input", { key: '81cf38a1a39e88fc85282e8b82d43768ce6f70a4', type: "radio", role: "tab", disabled: getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: getBoolean(this.checked, "checked"), ref: (el) => {
177
+ var _a, _b, _c, _d;
178
+ return (h("button", { key: '87666630bffa6918a10d8b2f3539263d4dbcbc32', class: cls("db-tab-item", this.className), type: "button", role: "tab", title: "", ref: (el) => {
117
179
  this._ref = el;
118
- }, name: this._name, id: (_e = this.id) !== null && _e !== void 0 ? _e : (_f = this.propOverrides) === null || _f === void 0 ? void 0 : _f.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, h("slot", { key: '89a4ba46af36e8dcc3bc53f87d17977c5827cd12' }))));
180
+ }, "aria-label": getBoolean(this.noText) ? this.label : undefined, "aria-selected": (this.active !== undefined
181
+ ? getBoolean(this.active)
182
+ : this.internalActive)
183
+ ? "true"
184
+ : "false", "aria-controls": this.ariaControls, disabled: getBoolean(this.disabled) ? true : undefined, tabIndex: this.getCurrentTabIndex(), id: this.id, "data-active": this.active !== undefined
185
+ ? getBoolean(this.active)
186
+ : this.internalActive, "data-no-text": getBoolean(this.noText) ? "true" : undefined, "data-value": this.value, onClick: (event) => this.handleClick(event) }, !this.noText ? (h("span", { class: "db-tab-label", title: "", ref: (el) => {
187
+ this._labelRef = el;
188
+ }, "data-icon": getBoolean((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon)
189
+ ? (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon
190
+ : undefined, "data-icon-trailing": getBoolean(this.showIconTrailing) ? this.iconTrailing : undefined }, this.label ? this.label : null, !this.label ? h("slot", null) : null)) : null, getBoolean(this.noText) ? (h("span", { class: "db-tab-label", "aria-hidden": "true", "data-icon": getBoolean((_c = this.showIconLeading) !== null && _c !== void 0 ? _c : this.showIcon)
191
+ ? (_d = this.iconLeading) !== null && _d !== void 0 ? _d : this.icon
192
+ : undefined })) : null, this.isTruncated && this.tooltipText ? (h("db-tooltip", { placement: "right" }, this.tooltipText)) : null));
119
193
  }
120
194
  static get is() { return "db-tab-item"; }
121
195
  static get properties() {
@@ -146,11 +220,11 @@ export class DBTabItem {
146
220
  "reflect": false,
147
221
  "attribute": "active"
148
222
  },
149
- "name": {
223
+ "label": {
150
224
  "type": "string",
151
225
  "mutable": false,
152
226
  "complexType": {
153
- "original": "DBTabItemProps[\"name\"]",
227
+ "original": "DBTabItemProps[\"label\"]",
154
228
  "resolved": "string",
155
229
  "references": {
156
230
  "DBTabItemProps": {
@@ -170,14 +244,14 @@ export class DBTabItem {
170
244
  "getter": false,
171
245
  "setter": false,
172
246
  "reflect": false,
173
- "attribute": "name"
247
+ "attribute": "label"
174
248
  },
175
- "className": {
176
- "type": "string",
249
+ "showIcon": {
250
+ "type": "any",
177
251
  "mutable": false,
178
252
  "complexType": {
179
- "original": "DBTabItemProps[\"className\"]",
180
- "resolved": "string",
253
+ "original": "DBTabItemProps[\"showIcon\"]",
254
+ "resolved": "boolean | string",
181
255
  "references": {
182
256
  "DBTabItemProps": {
183
257
  "location": "import",
@@ -196,14 +270,14 @@ export class DBTabItem {
196
270
  "getter": false,
197
271
  "setter": false,
198
272
  "reflect": false,
199
- "attribute": "classname"
273
+ "attribute": "show-icon"
200
274
  },
201
- "id": {
275
+ "icon": {
202
276
  "type": "string",
203
277
  "mutable": false,
204
278
  "complexType": {
205
- "original": "DBTabItemProps[\"id\"]",
206
- "resolved": "string",
279
+ "original": "DBTabItemProps[\"icon\"]",
280
+ "resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
207
281
  "references": {
208
282
  "DBTabItemProps": {
209
283
  "location": "import",
@@ -222,14 +296,14 @@ export class DBTabItem {
222
296
  "getter": false,
223
297
  "setter": false,
224
298
  "reflect": false,
225
- "attribute": "id"
299
+ "attribute": "icon"
226
300
  },
227
- "propOverrides": {
228
- "type": "unknown",
301
+ "tabIndex": {
302
+ "type": "any",
229
303
  "mutable": false,
230
304
  "complexType": {
231
- "original": "DBTabItemProps[\"propOverrides\"]",
232
- "resolved": "{ id?: string; }",
305
+ "original": "DBTabItemProps[\"tabIndex\"]",
306
+ "resolved": "number | string",
233
307
  "references": {
234
308
  "DBTabItemProps": {
235
309
  "location": "import",
@@ -246,14 +320,16 @@ export class DBTabItem {
246
320
  "text": ""
247
321
  },
248
322
  "getter": false,
249
- "setter": false
323
+ "setter": false,
324
+ "reflect": false,
325
+ "attribute": "tab-index"
250
326
  },
251
- "iconLeading": {
252
- "type": "string",
327
+ "disabled": {
328
+ "type": "any",
253
329
  "mutable": false,
254
330
  "complexType": {
255
- "original": "DBTabItemProps[\"iconLeading\"]",
256
- "resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
331
+ "original": "DBTabItemProps[\"disabled\"]",
332
+ "resolved": "boolean | string",
257
333
  "references": {
258
334
  "DBTabItemProps": {
259
335
  "location": "import",
@@ -272,14 +348,14 @@ export class DBTabItem {
272
348
  "getter": false,
273
349
  "setter": false,
274
350
  "reflect": false,
275
- "attribute": "icon-leading"
351
+ "attribute": "disabled"
276
352
  },
277
- "icon": {
353
+ "className": {
278
354
  "type": "string",
279
355
  "mutable": false,
280
356
  "complexType": {
281
- "original": "DBTabItemProps[\"icon\"]",
282
- "resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
357
+ "original": "DBTabItemProps[\"className\"]",
358
+ "resolved": "string",
283
359
  "references": {
284
360
  "DBTabItemProps": {
285
361
  "location": "import",
@@ -298,14 +374,14 @@ export class DBTabItem {
298
374
  "getter": false,
299
375
  "setter": false,
300
376
  "reflect": false,
301
- "attribute": "icon"
377
+ "attribute": "classname"
302
378
  },
303
- "iconTrailing": {
304
- "type": "string",
379
+ "noText": {
380
+ "type": "any",
305
381
  "mutable": false,
306
382
  "complexType": {
307
- "original": "DBTabItemProps[\"iconTrailing\"]",
308
- "resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
383
+ "original": "DBTabItemProps[\"noText\"]",
384
+ "resolved": "boolean | string",
309
385
  "references": {
310
386
  "DBTabItemProps": {
311
387
  "location": "import",
@@ -324,14 +400,14 @@ export class DBTabItem {
324
400
  "getter": false,
325
401
  "setter": false,
326
402
  "reflect": false,
327
- "attribute": "icon-trailing"
403
+ "attribute": "no-text"
328
404
  },
329
- "showIconLeading": {
330
- "type": "any",
405
+ "ariaControls": {
406
+ "type": "string",
331
407
  "mutable": false,
332
408
  "complexType": {
333
- "original": "DBTabItemProps[\"showIconLeading\"]",
334
- "resolved": "boolean | string",
409
+ "original": "DBTabItemProps[\"ariaControls\"]",
410
+ "resolved": "string",
335
411
  "references": {
336
412
  "DBTabItemProps": {
337
413
  "location": "import",
@@ -350,14 +426,14 @@ export class DBTabItem {
350
426
  "getter": false,
351
427
  "setter": false,
352
428
  "reflect": false,
353
- "attribute": "show-icon-leading"
429
+ "attribute": "aria-controls"
354
430
  },
355
- "showIcon": {
356
- "type": "any",
431
+ "id": {
432
+ "type": "string",
357
433
  "mutable": false,
358
434
  "complexType": {
359
- "original": "DBTabItemProps[\"showIcon\"]",
360
- "resolved": "boolean | string",
435
+ "original": "DBTabItemProps[\"id\"]",
436
+ "resolved": "string",
361
437
  "references": {
362
438
  "DBTabItemProps": {
363
439
  "location": "import",
@@ -376,14 +452,14 @@ export class DBTabItem {
376
452
  "getter": false,
377
453
  "setter": false,
378
454
  "reflect": false,
379
- "attribute": "show-icon"
455
+ "attribute": "id"
380
456
  },
381
- "showIconTrailing": {
382
- "type": "any",
457
+ "value": {
458
+ "type": "string",
383
459
  "mutable": false,
384
460
  "complexType": {
385
- "original": "DBTabItemProps[\"showIconTrailing\"]",
386
- "resolved": "boolean | string",
461
+ "original": "DBTabItemProps[\"value\"]",
462
+ "resolved": "string",
387
463
  "references": {
388
464
  "DBTabItemProps": {
389
465
  "location": "import",
@@ -402,13 +478,13 @@ export class DBTabItem {
402
478
  "getter": false,
403
479
  "setter": false,
404
480
  "reflect": false,
405
- "attribute": "show-icon-trailing"
481
+ "attribute": "value"
406
482
  },
407
- "noText": {
483
+ "showIconLeading": {
408
484
  "type": "any",
409
485
  "mutable": false,
410
486
  "complexType": {
411
- "original": "DBTabItemProps[\"noText\"]",
487
+ "original": "DBTabItemProps[\"showIconLeading\"]",
412
488
  "resolved": "boolean | string",
413
489
  "references": {
414
490
  "DBTabItemProps": {
@@ -428,14 +504,14 @@ export class DBTabItem {
428
504
  "getter": false,
429
505
  "setter": false,
430
506
  "reflect": false,
431
- "attribute": "no-text"
507
+ "attribute": "show-icon-leading"
432
508
  },
433
- "disabled": {
434
- "type": "any",
509
+ "iconLeading": {
510
+ "type": "string",
435
511
  "mutable": false,
436
512
  "complexType": {
437
- "original": "DBTabItemProps[\"disabled\"]",
438
- "resolved": "boolean | string",
513
+ "original": "DBTabItemProps[\"iconLeading\"]",
514
+ "resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
439
515
  "references": {
440
516
  "DBTabItemProps": {
441
517
  "location": "import",
@@ -454,13 +530,13 @@ export class DBTabItem {
454
530
  "getter": false,
455
531
  "setter": false,
456
532
  "reflect": false,
457
- "attribute": "disabled"
533
+ "attribute": "icon-leading"
458
534
  },
459
- "checked": {
535
+ "showIconTrailing": {
460
536
  "type": "any",
461
537
  "mutable": false,
462
538
  "complexType": {
463
- "original": "DBTabItemProps[\"checked\"]",
539
+ "original": "DBTabItemProps[\"showIconTrailing\"]",
464
540
  "resolved": "boolean | string",
465
541
  "references": {
466
542
  "DBTabItemProps": {
@@ -480,14 +556,14 @@ export class DBTabItem {
480
556
  "getter": false,
481
557
  "setter": false,
482
558
  "reflect": false,
483
- "attribute": "checked"
559
+ "attribute": "show-icon-trailing"
484
560
  },
485
- "label": {
561
+ "iconTrailing": {
486
562
  "type": "string",
487
563
  "mutable": false,
488
564
  "complexType": {
489
- "original": "DBTabItemProps[\"label\"]",
490
- "resolved": "string",
565
+ "original": "DBTabItemProps[\"iconTrailing\"]",
566
+ "resolved": "\"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"arrow_up_right\" | \"brand\" | \"calendar\" | \"chat\" | \"check\" | \"check_circle\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"circle\" | \"circle_small\" | \"circular_arrows\" | \"clock\" | \"copy\" | \"cross\" | \"cross_circle\" | \"double_chevron_down\" | \"double_chevron_left\" | \"double_chevron_right\" | \"double_chevron_up\" | \"exclamation_mark_circle\" | \"exclamation_mark_triangle\" | \"eye\" | \"eye_disabled\" | \"house\" | \"information_circle\" | \"magnifying_glass\" | \"menu\" | \"minus\" | \"moon\" | \"plus\" | \"resize_handle_corner\" | \"sun\" | \"x_placeholder\" | string & Record<never, never>",
491
567
  "references": {
492
568
  "DBTabItemProps": {
493
569
  "location": "import",
@@ -506,23 +582,25 @@ export class DBTabItem {
506
582
  "getter": false,
507
583
  "setter": false,
508
584
  "reflect": false,
509
- "attribute": "label"
585
+ "attribute": "icon-trailing"
510
586
  }
511
587
  };
512
588
  }
513
589
  static get states() {
514
590
  return {
515
- "_selected": {},
516
- "_name": {},
517
591
  "initialized": {},
518
- "_listenerAdded": {},
519
- "boundSetSelectedOnChange": {}
592
+ "internalActive": {},
593
+ "internalTabIndex": {},
594
+ "isTruncated": {},
595
+ "tooltipText": {},
596
+ "_resizeObserver": {},
597
+ "_ariaSelectedListener": {}
520
598
  };
521
599
  }
522
600
  static get events() {
523
601
  return [{
524
- "method": "change",
525
- "name": "change",
602
+ "method": "click",
603
+ "name": "click",
526
604
  "bubbles": true,
527
605
  "cancelable": true,
528
606
  "composed": true,
@@ -539,17 +617,8 @@ export class DBTabItem {
539
617
  }
540
618
  static get watchers() {
541
619
  return [{
542
- "propName": "_ref",
543
- "methodName": "watch0"
544
- }, {
545
- "propName": "initialized",
546
- "methodName": "watch0"
547
- }, {
548
- "propName": "boundSetSelectedOnChange",
620
+ "propName": "active",
549
621
  "methodName": "watch0"
550
- }, {
551
- "propName": "name",
552
- "methodName": "watch1"
553
622
  }];
554
623
  }
555
624
  }