@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.
- package/CHANGELOG.md +8 -0
- package/agent/Tabs.md +30 -30
- package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +2 -2
- package/dist/cjs/db-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-button.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +9 -9
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-select.cjs.entry.js +5 -5
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +3 -3
- package/dist/cjs/db-header.cjs.entry.js +2 -2
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +2 -2
- package/dist/cjs/db-notification.cjs.entry.js +2 -2
- package/dist/cjs/db-page.cjs.entry.js +2 -2
- package/dist/cjs/db-popover.cjs.entry.js +2 -2
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +2 -2
- package/dist/cjs/db-select.cjs.entry.js +2 -2
- package/dist/cjs/db-stack.cjs.entry.js +2 -2
- package/dist/cjs/db-switch.cjs.entry.js +2 -2
- package/dist/cjs/db-tab-item_3.cjs.entry.js +133 -67
- package/dist/cjs/db-tabs.cjs.entry.js +373 -123
- package/dist/cjs/db-textarea.cjs.entry.js +2 -2
- package/dist/cjs/db-tooltip.cjs.entry.js +3 -4
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +2 -2
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/brand/brand.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/custom-button/custom-button.js +2 -2
- package/dist/collection/components/custom-select/custom-select.js +5 -5
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +1 -1
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +3 -3
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/infotext/infotext.js +1 -1
- package/dist/collection/components/input/input.js +2 -2
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/navigation/navigation.js +2 -2
- package/dist/collection/components/navigation-item/navigation-item.js +1 -1
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/page/page.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab-item/tab-item.js +198 -129
- package/dist/collection/components/tab-list/tab-list.js +74 -12
- package/dist/collection/components/tab-panel/tab-panel.js +80 -2
- package/dist/collection/components/tabs/tabs.js +504 -167
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +3 -4
- package/dist/collection/shared/model.js +1 -1
- package/dist/custom-elements.json +4021 -3053
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-2355324e.entry.js → p-01c278b9.entry.js} +1 -1
- package/dist/db-ux/{p-5f5eb78d.entry.js → p-071ae423.entry.js} +1 -1
- package/dist/db-ux/{p-abb0885d.entry.js → p-07c7ecc9.entry.js} +1 -1
- package/dist/db-ux/p-10869bfa.entry.js +1 -0
- package/dist/db-ux/p-1427bb15.entry.js +1 -0
- package/dist/db-ux/{p-70823b80.entry.js → p-328faf6b.entry.js} +1 -1
- package/dist/db-ux/p-397bc590.entry.js +1 -0
- package/dist/db-ux/{p-d85b1c15.entry.js → p-43a9623f.entry.js} +1 -1
- package/dist/db-ux/{p-67d59d5b.entry.js → p-44a0407b.entry.js} +1 -1
- package/dist/db-ux/{p-12a2c502.entry.js → p-61784f7a.entry.js} +1 -1
- package/dist/db-ux/p-68835a75.entry.js +1 -0
- package/dist/db-ux/p-68a995df.entry.js +1 -0
- package/dist/db-ux/{p-a65d0d23.entry.js → p-6c26b0ba.entry.js} +1 -1
- package/dist/db-ux/p-6e898a58.entry.js +1 -0
- package/dist/db-ux/{p-761c9ddf.entry.js → p-70e6d32f.entry.js} +1 -1
- package/dist/db-ux/p-71868bb5.entry.js +1 -0
- package/dist/db-ux/{p-bed8d029.entry.js → p-74a45768.entry.js} +1 -1
- package/dist/db-ux/{p-ba8464d2.entry.js → p-9a895c18.entry.js} +1 -1
- package/dist/db-ux/p-9b4d0c18.entry.js +1 -0
- package/dist/db-ux/{p-0e0c3c72.entry.js → p-9b518eb4.entry.js} +1 -1
- package/dist/db-ux/p-a927fe88.entry.js +1 -0
- package/dist/db-ux/p-a93ca690.entry.js +1 -0
- package/dist/db-ux/{p-212bde1e.entry.js → p-b06fe221.entry.js} +1 -1
- package/dist/db-ux/{p-13157b54.entry.js → p-b7087f0b.entry.js} +1 -1
- package/dist/db-ux/{p-d8b38722.entry.js → p-d93b9d58.entry.js} +1 -1
- package/dist/db-ux/p-d97c0787.entry.js +1 -0
- package/dist/db-ux/{p-c76089f6.entry.js → p-ee43015b.entry.js} +1 -1
- package/dist/db-ux/p-efde1b6e.entry.js +1 -0
- package/dist/db-ux/{p-5cb74480.entry.js → p-f08b14d9.entry.js} +1 -1
- package/dist/db-ux/p-f92cbbae.entry.js +1 -0
- package/dist/db-ux/{p-980a6afe.entry.js → p-ffe614c8.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +2 -2
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +2 -2
- package/dist/esm/db-checkbox.entry.js +2 -2
- package/dist/esm/db-custom-button.entry.js +2 -2
- package/dist/esm/db-custom-select-dropdown_5.entry.js +9 -9
- package/dist/esm/db-custom-select-form-field.entry.js +2 -2
- package/dist/esm/db-custom-select.entry.js +5 -5
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +3 -3
- package/dist/esm/db-header.entry.js +2 -2
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +1 -1
- package/dist/esm/db-navigation.entry.js +2 -2
- package/dist/esm/db-notification.entry.js +2 -2
- package/dist/esm/db-page.entry.js +2 -2
- package/dist/esm/db-popover.entry.js +2 -2
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +2 -2
- package/dist/esm/db-select.entry.js +2 -2
- package/dist/esm/db-stack.entry.js +2 -2
- package/dist/esm/db-switch.entry.js +2 -2
- package/dist/esm/db-tab-item_3.entry.js +134 -68
- package/dist/esm/db-tabs.entry.js +373 -123
- package/dist/esm/db-textarea.entry.js +2 -2
- package/dist/esm/db-tooltip.entry.js +4 -5
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/tab-item/model.d.ts +28 -11
- package/dist/types/components/tab-item/tab-item.d.ts +22 -20
- package/dist/types/components/tab-list/model.d.ts +15 -5
- package/dist/types/components/tab-list/tab-list.d.ts +4 -1
- package/dist/types/components/tab-panel/model.d.ts +13 -3
- package/dist/types/components/tab-panel/tab-panel.d.ts +3 -0
- package/dist/types/components/tabs/model.d.ts +51 -17
- package/dist/types/components/tabs/tabs.d.ts +35 -16
- package/dist/types/components.d.ts +80 -30
- package/dist/types/shared/model.d.ts +5 -5
- package/dist/vscode.html-custom-data.json +153 -59
- package/dist/web-types.json +297 -135
- package/package.json +3 -3
- package/dist/db-ux/p-202323c2.entry.js +0 -1
- package/dist/db-ux/p-21068628.entry.js +0 -1
- package/dist/db-ux/p-377987d0.entry.js +0 -1
- package/dist/db-ux/p-3d5d49ff.entry.js +0 -1
- package/dist/db-ux/p-452a8b6b.entry.js +0 -1
- package/dist/db-ux/p-4de2c697.entry.js +0 -1
- package/dist/db-ux/p-605013f0.entry.js +0 -1
- package/dist/db-ux/p-6f9e146e.entry.js +0 -1
- package/dist/db-ux/p-7fa91164.entry.js +0 -1
- package/dist/db-ux/p-8e84712d.entry.js +0 -1
- package/dist/db-ux/p-a9efbb0b.entry.js +0 -1
- package/dist/db-ux/p-bd66d144.entry.js +0 -1
- package/dist/db-ux/p-dd08f6e4.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cls, getBoolean
|
|
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.
|
|
13
|
-
this.
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
getCurrentTabIndex() {
|
|
18
|
+
return this.tabIndex !== undefined
|
|
19
|
+
? Number(this.tabIndex)
|
|
20
|
+
: this.internalTabIndex;
|
|
18
21
|
}
|
|
19
|
-
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
31
|
-
if (this.
|
|
32
|
-
this.
|
|
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
|
-
|
|
73
|
-
|
|
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.
|
|
102
|
-
this.
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
this.
|
|
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
|
|
116
|
-
return (h("
|
|
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
|
-
},
|
|
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
|
-
"
|
|
223
|
+
"label": {
|
|
150
224
|
"type": "string",
|
|
151
225
|
"mutable": false,
|
|
152
226
|
"complexType": {
|
|
153
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
247
|
+
"attribute": "label"
|
|
174
248
|
},
|
|
175
|
-
"
|
|
176
|
-
"type": "
|
|
249
|
+
"showIcon": {
|
|
250
|
+
"type": "any",
|
|
177
251
|
"mutable": false,
|
|
178
252
|
"complexType": {
|
|
179
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
273
|
+
"attribute": "show-icon"
|
|
200
274
|
},
|
|
201
|
-
"
|
|
275
|
+
"icon": {
|
|
202
276
|
"type": "string",
|
|
203
277
|
"mutable": false,
|
|
204
278
|
"complexType": {
|
|
205
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
299
|
+
"attribute": "icon"
|
|
226
300
|
},
|
|
227
|
-
"
|
|
228
|
-
"type": "
|
|
301
|
+
"tabIndex": {
|
|
302
|
+
"type": "any",
|
|
229
303
|
"mutable": false,
|
|
230
304
|
"complexType": {
|
|
231
|
-
"original": "DBTabItemProps[\"
|
|
232
|
-
"resolved": "
|
|
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
|
-
"
|
|
252
|
-
"type": "
|
|
327
|
+
"disabled": {
|
|
328
|
+
"type": "any",
|
|
253
329
|
"mutable": false,
|
|
254
330
|
"complexType": {
|
|
255
|
-
"original": "DBTabItemProps[\"
|
|
256
|
-
"resolved": "
|
|
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": "
|
|
351
|
+
"attribute": "disabled"
|
|
276
352
|
},
|
|
277
|
-
"
|
|
353
|
+
"className": {
|
|
278
354
|
"type": "string",
|
|
279
355
|
"mutable": false,
|
|
280
356
|
"complexType": {
|
|
281
|
-
"original": "DBTabItemProps[\"
|
|
282
|
-
"resolved": "
|
|
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": "
|
|
377
|
+
"attribute": "classname"
|
|
302
378
|
},
|
|
303
|
-
"
|
|
304
|
-
"type": "
|
|
379
|
+
"noText": {
|
|
380
|
+
"type": "any",
|
|
305
381
|
"mutable": false,
|
|
306
382
|
"complexType": {
|
|
307
|
-
"original": "DBTabItemProps[\"
|
|
308
|
-
"resolved": "
|
|
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": "
|
|
403
|
+
"attribute": "no-text"
|
|
328
404
|
},
|
|
329
|
-
"
|
|
330
|
-
"type": "
|
|
405
|
+
"ariaControls": {
|
|
406
|
+
"type": "string",
|
|
331
407
|
"mutable": false,
|
|
332
408
|
"complexType": {
|
|
333
|
-
"original": "DBTabItemProps[\"
|
|
334
|
-
"resolved": "
|
|
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": "
|
|
429
|
+
"attribute": "aria-controls"
|
|
354
430
|
},
|
|
355
|
-
"
|
|
356
|
-
"type": "
|
|
431
|
+
"id": {
|
|
432
|
+
"type": "string",
|
|
357
433
|
"mutable": false,
|
|
358
434
|
"complexType": {
|
|
359
|
-
"original": "DBTabItemProps[\"
|
|
360
|
-
"resolved": "
|
|
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": "
|
|
455
|
+
"attribute": "id"
|
|
380
456
|
},
|
|
381
|
-
"
|
|
382
|
-
"type": "
|
|
457
|
+
"value": {
|
|
458
|
+
"type": "string",
|
|
383
459
|
"mutable": false,
|
|
384
460
|
"complexType": {
|
|
385
|
-
"original": "DBTabItemProps[\"
|
|
386
|
-
"resolved": "
|
|
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": "
|
|
481
|
+
"attribute": "value"
|
|
406
482
|
},
|
|
407
|
-
"
|
|
483
|
+
"showIconLeading": {
|
|
408
484
|
"type": "any",
|
|
409
485
|
"mutable": false,
|
|
410
486
|
"complexType": {
|
|
411
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
507
|
+
"attribute": "show-icon-leading"
|
|
432
508
|
},
|
|
433
|
-
"
|
|
434
|
-
"type": "
|
|
509
|
+
"iconLeading": {
|
|
510
|
+
"type": "string",
|
|
435
511
|
"mutable": false,
|
|
436
512
|
"complexType": {
|
|
437
|
-
"original": "DBTabItemProps[\"
|
|
438
|
-
"resolved": "
|
|
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": "
|
|
533
|
+
"attribute": "icon-leading"
|
|
458
534
|
},
|
|
459
|
-
"
|
|
535
|
+
"showIconTrailing": {
|
|
460
536
|
"type": "any",
|
|
461
537
|
"mutable": false,
|
|
462
538
|
"complexType": {
|
|
463
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
559
|
+
"attribute": "show-icon-trailing"
|
|
484
560
|
},
|
|
485
|
-
"
|
|
561
|
+
"iconTrailing": {
|
|
486
562
|
"type": "string",
|
|
487
563
|
"mutable": false,
|
|
488
564
|
"complexType": {
|
|
489
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
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
|
-
"
|
|
519
|
-
"
|
|
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": "
|
|
525
|
-
"name": "
|
|
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": "
|
|
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
|
}
|