@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.
- package/CHANGELOG.md +5 -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 +67 -133
- package/dist/cjs/db-tabs.cjs.entry.js +123 -373
- package/dist/cjs/db-textarea.cjs.entry.js +2 -2
- package/dist/cjs/db-tooltip.cjs.entry.js +4 -3
- 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 +129 -198
- package/dist/collection/components/tab-list/tab-list.js +12 -74
- package/dist/collection/components/tab-panel/tab-panel.js +2 -80
- package/dist/collection/components/tabs/tabs.js +167 -504
- 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 +4 -3
- package/dist/collection/shared/model.js +1 -1
- package/dist/custom-elements.json +2998 -3898
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-9b518eb4.entry.js → p-0e0c3c72.entry.js} +1 -1
- package/dist/db-ux/{p-61784f7a.entry.js → p-12a2c502.entry.js} +1 -1
- package/dist/db-ux/{p-b7087f0b.entry.js → p-13157b54.entry.js} +1 -1
- package/dist/db-ux/p-202323c2.entry.js +1 -0
- package/dist/db-ux/p-21068628.entry.js +1 -0
- package/dist/db-ux/{p-b06fe221.entry.js → p-212bde1e.entry.js} +1 -1
- package/dist/db-ux/{p-01c278b9.entry.js → p-2355324e.entry.js} +1 -1
- package/dist/db-ux/p-377987d0.entry.js +1 -0
- package/dist/db-ux/p-3d5d49ff.entry.js +1 -0
- package/dist/db-ux/p-452a8b6b.entry.js +1 -0
- package/dist/db-ux/p-4de2c697.entry.js +1 -0
- package/dist/db-ux/{p-f08b14d9.entry.js → p-5cb74480.entry.js} +1 -1
- package/dist/db-ux/{p-071ae423.entry.js → p-5f5eb78d.entry.js} +1 -1
- package/dist/db-ux/p-605013f0.entry.js +1 -0
- package/dist/db-ux/p-6f9e146e.entry.js +1 -0
- package/dist/db-ux/{p-328faf6b.entry.js → p-70823b80.entry.js} +1 -1
- package/dist/db-ux/{p-70e6d32f.entry.js → p-761c9ddf.entry.js} +1 -1
- package/dist/db-ux/p-7fa91164.entry.js +1 -0
- package/dist/db-ux/p-8e84712d.entry.js +1 -0
- package/dist/db-ux/{p-ffe614c8.entry.js → p-980a6afe.entry.js} +1 -1
- package/dist/db-ux/{p-6c26b0ba.entry.js → p-a65d0d23.entry.js} +1 -1
- package/dist/db-ux/p-a9efbb0b.entry.js +1 -0
- package/dist/db-ux/{p-07c7ecc9.entry.js → p-abb0885d.entry.js} +1 -1
- package/dist/db-ux/{p-9a895c18.entry.js → p-ba8464d2.entry.js} +1 -1
- package/dist/db-ux/p-bd66d144.entry.js +1 -0
- package/dist/db-ux/{p-74a45768.entry.js → p-bed8d029.entry.js} +1 -1
- package/dist/db-ux/{p-ee43015b.entry.js → p-c76089f6.entry.js} +1 -1
- package/dist/db-ux/{p-44a0407b.entry.js → p-c7bf8d05.entry.js} +1 -1
- package/dist/db-ux/{p-43a9623f.entry.js → p-d85b1c15.entry.js} +1 -1
- package/dist/db-ux/{p-d93b9d58.entry.js → p-d8b38722.entry.js} +1 -1
- package/dist/db-ux/p-dd08f6e4.entry.js +1 -0
- 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 +68 -134
- package/dist/esm/db-tabs.entry.js +123 -373
- package/dist/esm/db-textarea.entry.js +2 -2
- package/dist/esm/db-tooltip.entry.js +5 -4
- 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 +11 -28
- package/dist/types/components/tab-item/tab-item.d.ts +20 -22
- package/dist/types/components/tab-list/model.d.ts +5 -15
- package/dist/types/components/tab-list/tab-list.d.ts +1 -4
- package/dist/types/components/tab-panel/model.d.ts +3 -13
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -3
- package/dist/types/components/tabs/model.d.ts +17 -51
- package/dist/types/components/tabs/tabs.d.ts +16 -35
- package/dist/types/components.d.ts +30 -80
- package/dist/types/shared/model.d.ts +5 -5
- package/dist/vscode.html-custom-data.json +59 -147
- package/dist/web-types.json +135 -289
- package/package.json +3 -3
- package/dist/db-ux/p-10869bfa.entry.js +0 -1
- package/dist/db-ux/p-1427bb15.entry.js +0 -1
- package/dist/db-ux/p-397bc590.entry.js +0 -1
- package/dist/db-ux/p-68835a75.entry.js +0 -1
- package/dist/db-ux/p-68a995df.entry.js +0 -1
- package/dist/db-ux/p-6e898a58.entry.js +0 -1
- package/dist/db-ux/p-71868bb5.entry.js +0 -1
- package/dist/db-ux/p-9b4d0c18.entry.js +0 -1
- package/dist/db-ux/p-a927fe88.entry.js +0 -1
- package/dist/db-ux/p-a93ca690.entry.js +0 -1
- package/dist/db-ux/p-d97c0787.entry.js +0 -1
- package/dist/db-ux/p-efde1b6e.entry.js +0 -1
- 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.
|
|
11
|
-
this.
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
: this.internalTabIndex;
|
|
15
|
+
setSelectedOnChange(event) {
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
this._selected = getBooleanAsString(event.target === this._ref);
|
|
21
18
|
}
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
31
|
-
if (this.
|
|
32
|
-
|
|
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
|
-
|
|
92
|
-
|
|
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.
|
|
102
|
-
this.
|
|
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
|
-
(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
this.
|
|
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("
|
|
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
|
-
},
|
|
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
|
-
"
|
|
149
|
+
"name": {
|
|
224
150
|
"type": "string",
|
|
225
151
|
"mutable": false,
|
|
226
152
|
"complexType": {
|
|
227
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
173
|
+
"attribute": "name"
|
|
248
174
|
},
|
|
249
|
-
"
|
|
250
|
-
"type": "
|
|
175
|
+
"className": {
|
|
176
|
+
"type": "string",
|
|
251
177
|
"mutable": false,
|
|
252
178
|
"complexType": {
|
|
253
|
-
"original": "DBTabItemProps[\"
|
|
254
|
-
"resolved": "
|
|
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": "
|
|
199
|
+
"attribute": "classname"
|
|
274
200
|
},
|
|
275
|
-
"
|
|
201
|
+
"id": {
|
|
276
202
|
"type": "string",
|
|
277
203
|
"mutable": false,
|
|
278
204
|
"complexType": {
|
|
279
|
-
"original": "DBTabItemProps[\"
|
|
280
|
-
"resolved": "
|
|
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": "
|
|
225
|
+
"attribute": "id"
|
|
300
226
|
},
|
|
301
|
-
"
|
|
302
|
-
"type": "
|
|
227
|
+
"propOverrides": {
|
|
228
|
+
"type": "unknown",
|
|
303
229
|
"mutable": false,
|
|
304
230
|
"complexType": {
|
|
305
|
-
"original": "DBTabItemProps[\"
|
|
306
|
-
"resolved": "
|
|
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
|
-
"
|
|
328
|
-
"type": "
|
|
251
|
+
"iconLeading": {
|
|
252
|
+
"type": "string",
|
|
329
253
|
"mutable": false,
|
|
330
254
|
"complexType": {
|
|
331
|
-
"original": "DBTabItemProps[\"
|
|
332
|
-
"resolved": "
|
|
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": "
|
|
275
|
+
"attribute": "icon-leading"
|
|
352
276
|
},
|
|
353
|
-
"
|
|
277
|
+
"icon": {
|
|
354
278
|
"type": "string",
|
|
355
279
|
"mutable": false,
|
|
356
280
|
"complexType": {
|
|
357
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
301
|
+
"attribute": "icon"
|
|
378
302
|
},
|
|
379
|
-
"
|
|
380
|
-
"type": "
|
|
303
|
+
"iconTrailing": {
|
|
304
|
+
"type": "string",
|
|
381
305
|
"mutable": false,
|
|
382
306
|
"complexType": {
|
|
383
|
-
"original": "DBTabItemProps[\"
|
|
384
|
-
"resolved": "
|
|
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": "
|
|
327
|
+
"attribute": "icon-trailing"
|
|
404
328
|
},
|
|
405
|
-
"
|
|
406
|
-
"type": "
|
|
329
|
+
"showIconLeading": {
|
|
330
|
+
"type": "any",
|
|
407
331
|
"mutable": false,
|
|
408
332
|
"complexType": {
|
|
409
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
353
|
+
"attribute": "show-icon-leading"
|
|
430
354
|
},
|
|
431
|
-
"
|
|
432
|
-
"type": "
|
|
355
|
+
"showIcon": {
|
|
356
|
+
"type": "any",
|
|
433
357
|
"mutable": false,
|
|
434
358
|
"complexType": {
|
|
435
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
379
|
+
"attribute": "show-icon"
|
|
456
380
|
},
|
|
457
|
-
"
|
|
458
|
-
"type": "
|
|
381
|
+
"showIconTrailing": {
|
|
382
|
+
"type": "any",
|
|
459
383
|
"mutable": false,
|
|
460
384
|
"complexType": {
|
|
461
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
405
|
+
"attribute": "show-icon-trailing"
|
|
482
406
|
},
|
|
483
|
-
"
|
|
407
|
+
"noText": {
|
|
484
408
|
"type": "any",
|
|
485
409
|
"mutable": false,
|
|
486
410
|
"complexType": {
|
|
487
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
431
|
+
"attribute": "no-text"
|
|
508
432
|
},
|
|
509
|
-
"
|
|
510
|
-
"type": "
|
|
433
|
+
"disabled": {
|
|
434
|
+
"type": "any",
|
|
511
435
|
"mutable": false,
|
|
512
436
|
"complexType": {
|
|
513
|
-
"original": "DBTabItemProps[\"
|
|
514
|
-
"resolved": "
|
|
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": "
|
|
457
|
+
"attribute": "disabled"
|
|
534
458
|
},
|
|
535
|
-
"
|
|
459
|
+
"checked": {
|
|
536
460
|
"type": "any",
|
|
537
461
|
"mutable": false,
|
|
538
462
|
"complexType": {
|
|
539
|
-
"original": "DBTabItemProps[\"
|
|
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": "
|
|
483
|
+
"attribute": "checked"
|
|
560
484
|
},
|
|
561
|
-
"
|
|
485
|
+
"label": {
|
|
562
486
|
"type": "string",
|
|
563
487
|
"mutable": false,
|
|
564
488
|
"complexType": {
|
|
565
|
-
"original": "DBTabItemProps[\"
|
|
566
|
-
"resolved": "
|
|
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": "
|
|
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
|
-
"
|
|
593
|
-
"
|
|
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": "
|
|
603
|
-
"name": "
|
|
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": "
|
|
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
|
}
|