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

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 +5 -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 +67 -133
  31. package/dist/cjs/db-tabs.cjs.entry.js +123 -373
  32. package/dist/cjs/db-textarea.cjs.entry.js +2 -2
  33. package/dist/cjs/db-tooltip.cjs.entry.js +4 -3
  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 +129 -198
  68. package/dist/collection/components/tab-list/tab-list.js +12 -74
  69. package/dist/collection/components/tab-panel/tab-panel.js +2 -80
  70. package/dist/collection/components/tabs/tabs.js +167 -504
  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 +4 -3
  74. package/dist/collection/shared/model.js +1 -1
  75. package/dist/custom-elements.json +2998 -3898
  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-9b518eb4.entry.js → p-0e0c3c72.entry.js} +1 -1
  79. package/dist/db-ux/{p-61784f7a.entry.js → p-12a2c502.entry.js} +1 -1
  80. package/dist/db-ux/{p-b7087f0b.entry.js → p-13157b54.entry.js} +1 -1
  81. package/dist/db-ux/p-202323c2.entry.js +1 -0
  82. package/dist/db-ux/p-21068628.entry.js +1 -0
  83. package/dist/db-ux/{p-b06fe221.entry.js → p-212bde1e.entry.js} +1 -1
  84. package/dist/db-ux/{p-01c278b9.entry.js → p-2355324e.entry.js} +1 -1
  85. package/dist/db-ux/p-377987d0.entry.js +1 -0
  86. package/dist/db-ux/p-3d5d49ff.entry.js +1 -0
  87. package/dist/db-ux/p-452a8b6b.entry.js +1 -0
  88. package/dist/db-ux/p-4de2c697.entry.js +1 -0
  89. package/dist/db-ux/{p-f08b14d9.entry.js → p-5cb74480.entry.js} +1 -1
  90. package/dist/db-ux/{p-071ae423.entry.js → p-5f5eb78d.entry.js} +1 -1
  91. package/dist/db-ux/p-605013f0.entry.js +1 -0
  92. package/dist/db-ux/p-6f9e146e.entry.js +1 -0
  93. package/dist/db-ux/{p-328faf6b.entry.js → p-70823b80.entry.js} +1 -1
  94. package/dist/db-ux/{p-70e6d32f.entry.js → p-761c9ddf.entry.js} +1 -1
  95. package/dist/db-ux/p-7fa91164.entry.js +1 -0
  96. package/dist/db-ux/p-8e84712d.entry.js +1 -0
  97. package/dist/db-ux/{p-ffe614c8.entry.js → p-980a6afe.entry.js} +1 -1
  98. package/dist/db-ux/{p-6c26b0ba.entry.js → p-a65d0d23.entry.js} +1 -1
  99. package/dist/db-ux/p-a9efbb0b.entry.js +1 -0
  100. package/dist/db-ux/{p-07c7ecc9.entry.js → p-abb0885d.entry.js} +1 -1
  101. package/dist/db-ux/{p-9a895c18.entry.js → p-ba8464d2.entry.js} +1 -1
  102. package/dist/db-ux/p-bd66d144.entry.js +1 -0
  103. package/dist/db-ux/{p-74a45768.entry.js → p-bed8d029.entry.js} +1 -1
  104. package/dist/db-ux/{p-ee43015b.entry.js → p-c76089f6.entry.js} +1 -1
  105. package/dist/db-ux/{p-44a0407b.entry.js → p-c7bf8d05.entry.js} +1 -1
  106. package/dist/db-ux/{p-43a9623f.entry.js → p-d85b1c15.entry.js} +1 -1
  107. package/dist/db-ux/{p-d93b9d58.entry.js → p-d8b38722.entry.js} +1 -1
  108. package/dist/db-ux/p-dd08f6e4.entry.js +1 -0
  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 +68 -134
  137. package/dist/esm/db-tabs.entry.js +123 -373
  138. package/dist/esm/db-textarea.entry.js +2 -2
  139. package/dist/esm/db-tooltip.entry.js +5 -4
  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 +11 -28
  144. package/dist/types/components/tab-item/tab-item.d.ts +20 -22
  145. package/dist/types/components/tab-list/model.d.ts +5 -15
  146. package/dist/types/components/tab-list/tab-list.d.ts +1 -4
  147. package/dist/types/components/tab-panel/model.d.ts +3 -13
  148. package/dist/types/components/tab-panel/tab-panel.d.ts +0 -3
  149. package/dist/types/components/tabs/model.d.ts +17 -51
  150. package/dist/types/components/tabs/tabs.d.ts +16 -35
  151. package/dist/types/components.d.ts +30 -80
  152. package/dist/types/shared/model.d.ts +5 -5
  153. package/dist/vscode.html-custom-data.json +59 -147
  154. package/dist/web-types.json +135 -289
  155. package/package.json +3 -3
  156. package/dist/db-ux/p-10869bfa.entry.js +0 -1
  157. package/dist/db-ux/p-1427bb15.entry.js +0 -1
  158. package/dist/db-ux/p-397bc590.entry.js +0 -1
  159. package/dist/db-ux/p-68835a75.entry.js +0 -1
  160. package/dist/db-ux/p-68a995df.entry.js +0 -1
  161. package/dist/db-ux/p-6e898a58.entry.js +0 -1
  162. package/dist/db-ux/p-71868bb5.entry.js +0 -1
  163. package/dist/db-ux/p-9b4d0c18.entry.js +0 -1
  164. package/dist/db-ux/p-a927fe88.entry.js +0 -1
  165. package/dist/db-ux/p-a93ca690.entry.js +0 -1
  166. package/dist/db-ux/p-d97c0787.entry.js +0 -1
  167. package/dist/db-ux/p-efde1b6e.entry.js +0 -1
  168. package/dist/db-ux/p-f92cbbae.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { cls, getBoolean } from "../../utils";
1
+ import { cls, getBoolean, getBooleanAsString } from "../../utils";
2
2
  import { h, } from "@stencil/core";
3
3
  /**
4
4
  * @slot children - This is a default/unnamed slot
@@ -6,49 +6,30 @@ import { h, } from "@stencil/core";
6
6
  */
7
7
  export class DBTabItem {
8
8
  constructor() {
9
+ this._selected = false;
10
+ this._name = undefined;
9
11
  this.initialized = false;
10
- this.internalActive = false;
11
- this.internalTabIndex = -1;
12
- this.isTruncated = false;
13
- this.tooltipText = "";
14
- this._resizeObserver = null;
15
- this._ariaSelectedListener = null;
12
+ this._listenerAdded = false;
13
+ this.boundSetSelectedOnChange = undefined;
16
14
  }
17
- getCurrentTabIndex() {
18
- return this.tabIndex !== undefined
19
- ? Number(this.tabIndex)
20
- : this.internalTabIndex;
15
+ setSelectedOnChange(event) {
16
+ event.stopPropagation();
17
+ this._selected = getBooleanAsString(event.target === this._ref);
21
18
  }
22
- handleClick(event) {
23
- if (event && event.preventDefault) {
24
- event.preventDefault();
25
- }
26
- if (!getBoolean(this.disabled) && this.click) {
27
- this.click.emit(event);
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
+ };
28
28
  }
29
29
  }
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
- : "";
30
+ handleChange(event) {
31
+ if (this.change) {
32
+ this.change.emit(event);
52
33
  }
53
34
  }
54
35
  /**
@@ -88,108 +69,53 @@ export class DBTabItem {
88
69
  }
89
70
  }
90
71
  watch0Fn() {
91
- if (this.active !== undefined) {
92
- this.internalActive = getBoolean(this.active) || false;
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
+ }
93
86
  }
94
87
  }
95
88
  watch0() {
96
89
  this.watch0Fn();
97
90
  }
91
+ watch1Fn() {
92
+ if (this.name) {
93
+ this._name = this.name;
94
+ }
95
+ }
96
+ watch1() {
97
+ this.watch1Fn();
98
+ }
98
99
  componentDidLoad() {
99
- var _a;
100
100
  this.enableAttributePassing(this._ref, "db-tab-item");
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
- }
101
+ this.boundSetSelectedOnChange = this.setSelectedOnChange.bind(this);
102
+ this.initialized = true;
148
103
  this.watch0Fn();
104
+ this.watch1Fn();
149
105
  }
150
106
  disconnectedCallback() {
151
107
  var _a;
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
- }
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;
174
112
  }
175
113
  }
176
114
  render() {
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) => {
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) => {
179
117
  this._ref = el;
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));
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' }))));
193
119
  }
194
120
  static get is() { return "db-tab-item"; }
195
121
  static get properties() {
@@ -220,11 +146,11 @@ export class DBTabItem {
220
146
  "reflect": false,
221
147
  "attribute": "active"
222
148
  },
223
- "label": {
149
+ "name": {
224
150
  "type": "string",
225
151
  "mutable": false,
226
152
  "complexType": {
227
- "original": "DBTabItemProps[\"label\"]",
153
+ "original": "DBTabItemProps[\"name\"]",
228
154
  "resolved": "string",
229
155
  "references": {
230
156
  "DBTabItemProps": {
@@ -244,14 +170,14 @@ export class DBTabItem {
244
170
  "getter": false,
245
171
  "setter": false,
246
172
  "reflect": false,
247
- "attribute": "label"
173
+ "attribute": "name"
248
174
  },
249
- "showIcon": {
250
- "type": "any",
175
+ "className": {
176
+ "type": "string",
251
177
  "mutable": false,
252
178
  "complexType": {
253
- "original": "DBTabItemProps[\"showIcon\"]",
254
- "resolved": "boolean | string",
179
+ "original": "DBTabItemProps[\"className\"]",
180
+ "resolved": "string",
255
181
  "references": {
256
182
  "DBTabItemProps": {
257
183
  "location": "import",
@@ -270,14 +196,14 @@ export class DBTabItem {
270
196
  "getter": false,
271
197
  "setter": false,
272
198
  "reflect": false,
273
- "attribute": "show-icon"
199
+ "attribute": "classname"
274
200
  },
275
- "icon": {
201
+ "id": {
276
202
  "type": "string",
277
203
  "mutable": false,
278
204
  "complexType": {
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>",
205
+ "original": "DBTabItemProps[\"id\"]",
206
+ "resolved": "string",
281
207
  "references": {
282
208
  "DBTabItemProps": {
283
209
  "location": "import",
@@ -296,14 +222,14 @@ export class DBTabItem {
296
222
  "getter": false,
297
223
  "setter": false,
298
224
  "reflect": false,
299
- "attribute": "icon"
225
+ "attribute": "id"
300
226
  },
301
- "tabIndex": {
302
- "type": "any",
227
+ "propOverrides": {
228
+ "type": "unknown",
303
229
  "mutable": false,
304
230
  "complexType": {
305
- "original": "DBTabItemProps[\"tabIndex\"]",
306
- "resolved": "number | string",
231
+ "original": "DBTabItemProps[\"propOverrides\"]",
232
+ "resolved": "{ id?: string; }",
307
233
  "references": {
308
234
  "DBTabItemProps": {
309
235
  "location": "import",
@@ -320,16 +246,14 @@ export class DBTabItem {
320
246
  "text": ""
321
247
  },
322
248
  "getter": false,
323
- "setter": false,
324
- "reflect": false,
325
- "attribute": "tab-index"
249
+ "setter": false
326
250
  },
327
- "disabled": {
328
- "type": "any",
251
+ "iconLeading": {
252
+ "type": "string",
329
253
  "mutable": false,
330
254
  "complexType": {
331
- "original": "DBTabItemProps[\"disabled\"]",
332
- "resolved": "boolean | string",
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>",
333
257
  "references": {
334
258
  "DBTabItemProps": {
335
259
  "location": "import",
@@ -348,14 +272,14 @@ export class DBTabItem {
348
272
  "getter": false,
349
273
  "setter": false,
350
274
  "reflect": false,
351
- "attribute": "disabled"
275
+ "attribute": "icon-leading"
352
276
  },
353
- "className": {
277
+ "icon": {
354
278
  "type": "string",
355
279
  "mutable": false,
356
280
  "complexType": {
357
- "original": "DBTabItemProps[\"className\"]",
358
- "resolved": "string",
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>",
359
283
  "references": {
360
284
  "DBTabItemProps": {
361
285
  "location": "import",
@@ -374,14 +298,14 @@ export class DBTabItem {
374
298
  "getter": false,
375
299
  "setter": false,
376
300
  "reflect": false,
377
- "attribute": "classname"
301
+ "attribute": "icon"
378
302
  },
379
- "noText": {
380
- "type": "any",
303
+ "iconTrailing": {
304
+ "type": "string",
381
305
  "mutable": false,
382
306
  "complexType": {
383
- "original": "DBTabItemProps[\"noText\"]",
384
- "resolved": "boolean | string",
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>",
385
309
  "references": {
386
310
  "DBTabItemProps": {
387
311
  "location": "import",
@@ -400,14 +324,14 @@ export class DBTabItem {
400
324
  "getter": false,
401
325
  "setter": false,
402
326
  "reflect": false,
403
- "attribute": "no-text"
327
+ "attribute": "icon-trailing"
404
328
  },
405
- "ariaControls": {
406
- "type": "string",
329
+ "showIconLeading": {
330
+ "type": "any",
407
331
  "mutable": false,
408
332
  "complexType": {
409
- "original": "DBTabItemProps[\"ariaControls\"]",
410
- "resolved": "string",
333
+ "original": "DBTabItemProps[\"showIconLeading\"]",
334
+ "resolved": "boolean | string",
411
335
  "references": {
412
336
  "DBTabItemProps": {
413
337
  "location": "import",
@@ -426,14 +350,14 @@ export class DBTabItem {
426
350
  "getter": false,
427
351
  "setter": false,
428
352
  "reflect": false,
429
- "attribute": "aria-controls"
353
+ "attribute": "show-icon-leading"
430
354
  },
431
- "id": {
432
- "type": "string",
355
+ "showIcon": {
356
+ "type": "any",
433
357
  "mutable": false,
434
358
  "complexType": {
435
- "original": "DBTabItemProps[\"id\"]",
436
- "resolved": "string",
359
+ "original": "DBTabItemProps[\"showIcon\"]",
360
+ "resolved": "boolean | string",
437
361
  "references": {
438
362
  "DBTabItemProps": {
439
363
  "location": "import",
@@ -452,14 +376,14 @@ export class DBTabItem {
452
376
  "getter": false,
453
377
  "setter": false,
454
378
  "reflect": false,
455
- "attribute": "id"
379
+ "attribute": "show-icon"
456
380
  },
457
- "value": {
458
- "type": "string",
381
+ "showIconTrailing": {
382
+ "type": "any",
459
383
  "mutable": false,
460
384
  "complexType": {
461
- "original": "DBTabItemProps[\"value\"]",
462
- "resolved": "string",
385
+ "original": "DBTabItemProps[\"showIconTrailing\"]",
386
+ "resolved": "boolean | string",
463
387
  "references": {
464
388
  "DBTabItemProps": {
465
389
  "location": "import",
@@ -478,13 +402,13 @@ export class DBTabItem {
478
402
  "getter": false,
479
403
  "setter": false,
480
404
  "reflect": false,
481
- "attribute": "value"
405
+ "attribute": "show-icon-trailing"
482
406
  },
483
- "showIconLeading": {
407
+ "noText": {
484
408
  "type": "any",
485
409
  "mutable": false,
486
410
  "complexType": {
487
- "original": "DBTabItemProps[\"showIconLeading\"]",
411
+ "original": "DBTabItemProps[\"noText\"]",
488
412
  "resolved": "boolean | string",
489
413
  "references": {
490
414
  "DBTabItemProps": {
@@ -504,14 +428,14 @@ export class DBTabItem {
504
428
  "getter": false,
505
429
  "setter": false,
506
430
  "reflect": false,
507
- "attribute": "show-icon-leading"
431
+ "attribute": "no-text"
508
432
  },
509
- "iconLeading": {
510
- "type": "string",
433
+ "disabled": {
434
+ "type": "any",
511
435
  "mutable": false,
512
436
  "complexType": {
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>",
437
+ "original": "DBTabItemProps[\"disabled\"]",
438
+ "resolved": "boolean | string",
515
439
  "references": {
516
440
  "DBTabItemProps": {
517
441
  "location": "import",
@@ -530,13 +454,13 @@ export class DBTabItem {
530
454
  "getter": false,
531
455
  "setter": false,
532
456
  "reflect": false,
533
- "attribute": "icon-leading"
457
+ "attribute": "disabled"
534
458
  },
535
- "showIconTrailing": {
459
+ "checked": {
536
460
  "type": "any",
537
461
  "mutable": false,
538
462
  "complexType": {
539
- "original": "DBTabItemProps[\"showIconTrailing\"]",
463
+ "original": "DBTabItemProps[\"checked\"]",
540
464
  "resolved": "boolean | string",
541
465
  "references": {
542
466
  "DBTabItemProps": {
@@ -556,14 +480,14 @@ export class DBTabItem {
556
480
  "getter": false,
557
481
  "setter": false,
558
482
  "reflect": false,
559
- "attribute": "show-icon-trailing"
483
+ "attribute": "checked"
560
484
  },
561
- "iconTrailing": {
485
+ "label": {
562
486
  "type": "string",
563
487
  "mutable": false,
564
488
  "complexType": {
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>",
489
+ "original": "DBTabItemProps[\"label\"]",
490
+ "resolved": "string",
567
491
  "references": {
568
492
  "DBTabItemProps": {
569
493
  "location": "import",
@@ -582,25 +506,23 @@ export class DBTabItem {
582
506
  "getter": false,
583
507
  "setter": false,
584
508
  "reflect": false,
585
- "attribute": "icon-trailing"
509
+ "attribute": "label"
586
510
  }
587
511
  };
588
512
  }
589
513
  static get states() {
590
514
  return {
515
+ "_selected": {},
516
+ "_name": {},
591
517
  "initialized": {},
592
- "internalActive": {},
593
- "internalTabIndex": {},
594
- "isTruncated": {},
595
- "tooltipText": {},
596
- "_resizeObserver": {},
597
- "_ariaSelectedListener": {}
518
+ "_listenerAdded": {},
519
+ "boundSetSelectedOnChange": {}
598
520
  };
599
521
  }
600
522
  static get events() {
601
523
  return [{
602
- "method": "click",
603
- "name": "click",
524
+ "method": "change",
525
+ "name": "change",
604
526
  "bubbles": true,
605
527
  "cancelable": true,
606
528
  "composed": true,
@@ -617,8 +539,17 @@ export class DBTabItem {
617
539
  }
618
540
  static get watchers() {
619
541
  return [{
620
- "propName": "active",
542
+ "propName": "_ref",
543
+ "methodName": "watch0"
544
+ }, {
545
+ "propName": "initialized",
546
+ "methodName": "watch0"
547
+ }, {
548
+ "propName": "boundSetSelectedOnChange",
621
549
  "methodName": "watch0"
550
+ }, {
551
+ "propName": "name",
552
+ "methodName": "watch1"
622
553
  }];
623
554
  }
624
555
  }