@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
|
@@ -82,9 +82,9 @@ const DBHeader = class {
|
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
84
|
var _a, _b, _c;
|
|
85
|
-
return (h("header", { key: '
|
|
85
|
+
return (h("header", { key: 'b5085e769fbc61e94b0ae0e1cca91db441efc1a5', class: cls("db-header", this.className), ref: (el) => {
|
|
86
86
|
this._ref = el;
|
|
87
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '
|
|
87
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: 'a47facce9c8108126495c77d37a487cd34fe0ecb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'cda6c2d0070ce377af2bd5ca4b77459a94350df5', class: "db-header-drawer-navigation" }, h("div", { key: '15713a6e12680039ca79f27ec4a1000b120af4fd', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: 'e553fe01864f6a23e12edb336ddfabae78ca4f74' })), h("div", { key: '73339268263f22638ce7e7cde00369f58a279d62', class: "db-header-meta-navigation" }, h("slot", { key: 'deffe76713c7ad062821f83a34ad1c0530acff6c', name: "metaNavigation" }))), h("div", { key: '42f61529aa00d9422cac6c8d5ae2588d0eb4760d', class: "db-header-secondary-action" }, h("slot", { key: '3273017c0520401367809b3e39e1d642b92bec50', name: "secondaryAction" }))), h("div", { key: '26b07d2244c291b78daa6dd2bc39ce2ee93d8674', class: "db-header-meta-navigation" }, h("slot", { key: '4adfd5ac044acbb161a26e9e033a1483991842c6', name: "metaNavigation" })), h("div", { key: '6a9709c60965315e7ecffb41ea4aac8caf986086', class: "db-header-navigation-bar" }, h("div", { key: '6eca84e588432ec968d4aed685d0dda4053b08a9', class: "db-header-brand-container" }, h("slot", { key: 'c034633ed87c6c554621e275b6d98d1d1628265c', name: "brand" })), h("div", { key: '04766e92142de2cd49a08711e7ad627b0cef14bd', class: "db-header-navigation-container" }, h("div", { key: 'fa4a5f6deab5edf3e1acf6e67d73ce06e638ae02', class: "db-header-navigation" }, h("slot", { key: '192fbdd2773ab46f2e4800d919a2ace97c9f5ef2' })), h("div", { key: '3bf503b08a862dbca679c198916da4be7228c528', class: "db-header-primary-action" }, h("slot", { key: '2ab7194da0568d92c85d47ecbf4e34aa4a734d00', name: "primaryAction" }))), h("div", { key: 'f45dbbf3346e8bf533a4af7c82e754fe0a679082', class: "db-header-action-container" }, h("div", { key: '7dfcd81988888a0595b94e15ba963abcfb1200ea', class: "db-header-burger-menu-container" }, h("db-button", { key: '52e71ba370d564b8739966643adf2ccce5e48bcb', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: '54cf3d9d67d7be42f6b06227100abb337deb396d', class: "db-header-secondary-action" }, h("slot", { key: 'fc0a9946c1fd478c57e73f4c3b5b6ae0600101b8', name: "secondaryAction" }))))));
|
|
88
88
|
}
|
|
89
89
|
static get watchers() { return {
|
|
90
90
|
"initialized": [{
|
|
@@ -46,7 +46,7 @@ const DBIcon = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("span", { key: '
|
|
49
|
+
return (h("span", { key: '3bef98de9ca12c66f7cce8e11eaa5d895a8d6750', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
51
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
|
|
52
52
|
}
|
|
@@ -46,7 +46,7 @@ const DBInfotext = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b, _c;
|
|
49
|
-
return (h("span", { key: '
|
|
49
|
+
return (h("span", { key: '49219bd5f07042ba66ee28e86aed0536e0f776eb', class: cls("db-infotext", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
51
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : h("slot", null)));
|
|
52
52
|
}
|
|
@@ -46,7 +46,7 @@ const DBLink = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b, _c, _d;
|
|
49
|
-
return (h("a", { key: '
|
|
49
|
+
return (h("a", { key: '71c5ab28a592fe182048091df4ed2d34f4cafe96', class: cls("db-link", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
51
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
|
|
52
52
|
}
|
|
@@ -115,7 +115,7 @@ const DBNavigationItem = class {
|
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
117
|
var _a, _b, _c;
|
|
118
|
-
return (h("li", { key: '
|
|
118
|
+
return (h("li", { key: '58b2c247c8dad65176a6bc037d908c81da83fc58', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
119
119
|
this._ref = el;
|
|
120
120
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", id: this.subNavigationToggleId, "aria-haspopup": this.hasAreaPopup ? "true" : undefined, "aria-expanded": this.isSubNavigationExpanded, "aria-controls": this.subNavigationId, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", id: this.subNavigationId, "aria-labelledby": this.subNavigationToggleId, "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
|
|
121
121
|
}
|
|
@@ -46,9 +46,9 @@ const DBNavigation = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("nav", { key: '
|
|
49
|
+
return (h("nav", { key: 'd35a0452fce96ed3fa6d692c8022ea4e36802626', class: cls("db-navigation", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '2b1ad0fd739f64003078bbf18535666f83487d1f' }, h("slot", { key: '0c82a0f8e78ca1489efe693ec5ba973ada355c97' }))));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -56,13 +56,13 @@ const DBNotification = class {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b, _c;
|
|
59
|
-
return (h("div", { key: '
|
|
59
|
+
return (h("div", { key: 'b7789fad4794a93805eeec0cf2740b3f592f32fa', class: cls("db-notification", this.className), ref: (el) => {
|
|
60
60
|
this._ref = el;
|
|
61
61
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: getNotificationRole({
|
|
62
62
|
semantic: this.semantic,
|
|
63
63
|
role: this.role,
|
|
64
64
|
ariaLive: this.ariaLive,
|
|
65
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '
|
|
65
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: 'cdf91c6a6cd8dd519ab235046b9ab260007a370e', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("div", { key: '97b39e4f03829ea5d1d29b2b1be3066ff4100ac7', "data-area": "content" }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: '59856484aeb4d35de524dd4fa5a11f773f6f2a84', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
|
|
@@ -63,9 +63,9 @@ const DBPage = class {
|
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
65
|
var _a, _b;
|
|
66
|
-
return (h("div", { key: '
|
|
66
|
+
return (h("div", { key: '3c52f5947a841db0fcfe81b09e37db5a59f04158', class: cls("db-page", this.className), ref: (el) => {
|
|
67
67
|
this._ref = el;
|
|
68
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '
|
|
68
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '9b5d03938d5e60f37d807b3acbeb76a1ecb24aab', name: "header" }), h("main", { key: '49b72ad7dab4cc675c1af0c684bf211affd3fa36', class: cls("db-main", this.mainClass) }, h("slot", { key: '63915bf376296bbfdd9e7f1c3f3e36331543d15c' })), h("slot", { key: 'e94f63187f9347a7377956b040d3c201aa008dd6', name: "footer" })));
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
|
|
@@ -168,9 +168,9 @@ const DBPopover = class {
|
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
170
|
var _a, _b, _c;
|
|
171
|
-
return (h("div", { key: '
|
|
171
|
+
return (h("div", { key: 'a160c72e468d3f98cf94f76193b31dea016821f5', class: cls("db-popover", this.className), ref: (el) => {
|
|
172
172
|
this._ref = el;
|
|
173
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '
|
|
173
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'bb80f944827c1a2edb671ce3572546eabdac8fe3', name: "trigger" }), h("article", { key: '5286e4c7e53558e4bdff52ab3742acf0b854cb4a', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '09822daff7336bfe9541418bcd55a8809cdaab08' }))));
|
|
174
174
|
}
|
|
175
175
|
static get watchers() { return {
|
|
176
176
|
"_ref": [{
|
|
@@ -125,7 +125,7 @@ const DBRadio = class {
|
|
|
125
125
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
126
126
|
}
|
|
127
127
|
render() {
|
|
128
|
-
return (h("label", { key: '
|
|
128
|
+
return (h("label", { key: 'b77bbb3335c0b3f3813e11c7ac7228a84a40769a', class: cls("db-radio", this.className), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, h("input", { key: '4fe82a7b57a6dd06e556e26d50df574a541129f9', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
129
129
|
this._ref = el;
|
|
130
130
|
}, id: this._id, name: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, required: getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : h("slot", null)));
|
|
131
131
|
}
|
|
@@ -46,9 +46,9 @@ const DBSection = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("section", { key: '
|
|
49
|
+
return (h("section", { key: 'd2cb50a43641ef50d901bd488c7d31911e0f5487', class: cls("db-section", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, h("slot", { key: '90ce1533ea3392317c7e271ad6d2880d0434321e' })));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -236,14 +236,14 @@ const DBSelect = class {
|
|
|
236
236
|
}
|
|
237
237
|
render() {
|
|
238
238
|
var _a, _b, _c, _d, _e, _f;
|
|
239
|
-
return (h("div", { key: '
|
|
239
|
+
return (h("div", { key: 'e083b3de98c929310348ef084f614b6115cc79cb', class: cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: 'f2dab8efe5a3c299268da1f5c58d09752b6b8ca5', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("select", { key: '610327eb481b3806f99a8d123452bcf8e7e2ca58', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
240
240
|
this._ref = el;
|
|
241
241
|
}, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
242
242
|
/* @ts-ignore */
|
|
243
243
|
value: (_c = (_b = this.value) !== null && _b !== void 0 ? _b : this._value) !== null && _c !== void 0 ? _c : undefined, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_d = this.ariaDescribedBy) !== null && _d !== void 0 ? _d : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_e = this.options) === null || _e === void 0 ? void 0 : _e.length) ? ((_f = this.options) === null || _f === void 0 ? void 0 : _f.map((option) => {
|
|
244
244
|
var _a;
|
|
245
245
|
return (h(Fragment, null, option.options ? (h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
246
|
-
})) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '
|
|
246
|
+
})) : (h("slot", null))), this.placeholder ? (h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '946099b7eaab7da894f46400e1f428de137492ba', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '723768ffcad5add62979635d354280686145ca31', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
247
247
|
}
|
|
248
248
|
static get watchers() { return {
|
|
249
249
|
"id": [{
|
|
@@ -46,9 +46,9 @@ const DBStack = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: 'e8a95918ab5412c03412b92adb3f2a2d5979d492', class: cls("db-stack", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap) }, h("slot", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": getBooleanAsString(this.wrap) }, h("slot", { key: 'b95b19d6ff1a61f416eadfb14d9e19647e4f6cb4' })));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -186,9 +186,9 @@ const DBSwitch = class {
|
|
|
186
186
|
}
|
|
187
187
|
render() {
|
|
188
188
|
var _a, _b;
|
|
189
|
-
return (h("div", { key: '
|
|
189
|
+
return (h("div", { key: '66c2badcfc403e68d44d93cd1a79d087b212bbd6', class: cls("db-switch", this.className), "data-visual-aid": getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, h("label", { key: 'c22fc86dd012f6de327f861cca3c1b4ab4f3605d', htmlFor: this._id }, h("input", { key: '3d1532eee9a137f2a1db1ba1574856ecc61833d8', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
|
|
190
190
|
this._ref = el;
|
|
191
|
-
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : h("slot", null)), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '
|
|
191
|
+
}, checked: getBoolean(this.checked, "checked"), value: this.value, disabled: getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : h("slot", null)), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'd24f80874212a9a9669d5731d9e5b6f4f3be6001', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'cb3420bd986f1398094fbac151d27a5c2f392d7d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
192
192
|
}
|
|
193
193
|
static get watchers() { return {
|
|
194
194
|
"id": [{
|
|
@@ -1,53 +1,34 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-K4o-AcjZ.js';
|
|
2
|
-
import {
|
|
2
|
+
import { g as getBooleanAsString, e as getBoolean, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBTabItem = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
|
-
this.
|
|
7
|
+
this.change = createEvent(this, "change");
|
|
8
|
+
this._selected = false;
|
|
9
|
+
this._name = undefined;
|
|
8
10
|
this.initialized = false;
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.isTruncated = false;
|
|
12
|
-
this.tooltipText = "";
|
|
13
|
-
this._resizeObserver = null;
|
|
14
|
-
this._ariaSelectedListener = null;
|
|
11
|
+
this._listenerAdded = false;
|
|
12
|
+
this.boundSetSelectedOnChange = undefined;
|
|
15
13
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
: this.internalTabIndex;
|
|
14
|
+
setSelectedOnChange(event) {
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
this._selected = getBooleanAsString(event.target === this._ref);
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
handleNameAttribute() {
|
|
19
|
+
if (this._ref) {
|
|
20
|
+
const setAttribute = this._ref.setAttribute;
|
|
21
|
+
this._ref.setAttribute = (attribute, value) => {
|
|
22
|
+
setAttribute.call(this._ref, attribute, value);
|
|
23
|
+
if (attribute === "name") {
|
|
24
|
+
this._name = value;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
if (this.
|
|
31
|
-
|
|
32
|
-
const clientWidth = Math.ceil(this._labelRef.clientWidth);
|
|
33
|
-
const truncated = scrollWidth > clientWidth + 1;
|
|
34
|
-
if (this.isTruncated !== truncated) {
|
|
35
|
-
this.isTruncated = truncated;
|
|
36
|
-
if (!truncated && this._ref) {
|
|
37
|
-
if (this._ref.hasAttribute("data-has-tooltip")) {
|
|
38
|
-
this._ref.removeAttribute("data-has-tooltip");
|
|
39
|
-
}
|
|
40
|
-
if (this._ref.hasAttribute("aria-describedby")) {
|
|
41
|
-
this._ref.removeAttribute("aria-describedby");
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
this.tooltipText = truncated
|
|
46
|
-
? this.label ||
|
|
47
|
-
this._labelRef.innerText ||
|
|
48
|
-
this._labelRef.textContent ||
|
|
49
|
-
""
|
|
50
|
-
: "";
|
|
29
|
+
handleChange(event) {
|
|
30
|
+
if (this.change) {
|
|
31
|
+
this.change.emit(event);
|
|
51
32
|
}
|
|
52
33
|
}
|
|
53
34
|
/**
|
|
@@ -87,112 +68,66 @@ const DBTabItem = class {
|
|
|
87
68
|
}
|
|
88
69
|
}
|
|
89
70
|
watch0Fn() {
|
|
90
|
-
|
|
91
|
-
|
|
71
|
+
var _a;
|
|
72
|
+
if (this._ref && this.initialized && this.boundSetSelectedOnChange) {
|
|
73
|
+
this.initialized = false;
|
|
74
|
+
// deselect this tab when another tab in tablist is selected
|
|
75
|
+
if (!this._listenerAdded) {
|
|
76
|
+
(_a = this._ref
|
|
77
|
+
.closest("[role=tablist]")) === null || _a === void 0 ? void 0 : _a.addEventListener("change", this.boundSetSelectedOnChange);
|
|
78
|
+
this._listenerAdded = true;
|
|
79
|
+
}
|
|
80
|
+
// Initialize selected state from either active prop (set by parent) or checked attribute
|
|
81
|
+
if (this.active || this._ref.checked) {
|
|
82
|
+
this._selected = getBooleanAsString(true);
|
|
83
|
+
this._ref.click();
|
|
84
|
+
}
|
|
92
85
|
}
|
|
93
86
|
}
|
|
94
87
|
watch0() {
|
|
95
88
|
this.watch0Fn();
|
|
96
89
|
}
|
|
90
|
+
watch1Fn() {
|
|
91
|
+
if (this.name) {
|
|
92
|
+
this._name = this.name;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
watch1() {
|
|
96
|
+
this.watch1Fn();
|
|
97
|
+
}
|
|
97
98
|
componentDidLoad() {
|
|
98
|
-
var _a;
|
|
99
99
|
this.enableAttributePassing(this._ref, "db-tab-item");
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
if (typeof window !== "undefined") {
|
|
103
|
-
const setupObserverAndCheck = () => {
|
|
104
|
-
requestAnimationFrame(() => {
|
|
105
|
-
this.checkTruncation();
|
|
106
|
-
const labelEl = this._labelRef;
|
|
107
|
-
if (labelEl && !labelEl.dataset.label) {
|
|
108
|
-
labelEl.dataset.label =
|
|
109
|
-
this.label || labelEl.innerText || labelEl.textContent || "";
|
|
110
|
-
}
|
|
111
|
-
if (this._labelRef) {
|
|
112
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
113
|
-
requestAnimationFrame(() => {
|
|
114
|
-
this.checkTruncation();
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
resizeObserver.observe(this._labelRef);
|
|
118
|
-
this._resizeObserver = resizeObserver;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
const hasIcon = this.showIcon && this.icon;
|
|
123
|
-
if (hasIcon && ((_a = document.fonts) === null || _a === void 0 ? void 0 : _a.ready)) {
|
|
124
|
-
document.fonts.ready.then(setupObserverAndCheck);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
setupObserverAndCheck();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
if (this._ref) {
|
|
131
|
-
const listener = (event) => {
|
|
132
|
-
this.internalActive = event.detail.selected;
|
|
133
|
-
if (this.tabIndex === undefined) {
|
|
134
|
-
if (event.detail.tabIndex !== undefined) {
|
|
135
|
-
this.internalTabIndex = event.detail.tabIndex;
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
this.internalTabIndex = event.detail.selected ? 0 : -1;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
this._ariaSelectedListener = {
|
|
143
|
-
fn: listener,
|
|
144
|
-
};
|
|
145
|
-
this._ref.addEventListener("aria-selected-changed", listener);
|
|
146
|
-
}
|
|
100
|
+
this.boundSetSelectedOnChange = this.setSelectedOnChange.bind(this);
|
|
101
|
+
this.initialized = true;
|
|
147
102
|
this.watch0Fn();
|
|
103
|
+
this.watch1Fn();
|
|
148
104
|
}
|
|
149
105
|
disconnectedCallback() {
|
|
150
106
|
var _a;
|
|
151
|
-
(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
componentDidUpdate() {
|
|
158
|
-
var _a, _b;
|
|
159
|
-
if (this._ref) {
|
|
160
|
-
const isDisabled = getBoolean(this.disabled);
|
|
161
|
-
const disabledStr = isDisabled ? "true" : "false";
|
|
162
|
-
if (((_a = this._ref) === null || _a === void 0 ? void 0 : _a.getAttribute("aria-disabled")) !== disabledStr) {
|
|
163
|
-
(_b = this._ref) === null || _b === void 0 ? void 0 : _b.setAttribute("aria-disabled", disabledStr);
|
|
164
|
-
}
|
|
165
|
-
if (!this.isTruncated) {
|
|
166
|
-
if (this._ref.hasAttribute("data-has-tooltip")) {
|
|
167
|
-
this._ref.removeAttribute("data-has-tooltip");
|
|
168
|
-
}
|
|
169
|
-
if (this._ref.hasAttribute("aria-describedby")) {
|
|
170
|
-
this._ref.removeAttribute("aria-describedby");
|
|
171
|
-
}
|
|
172
|
-
}
|
|
107
|
+
if (this._listenerAdded && this._ref && this.boundSetSelectedOnChange) {
|
|
108
|
+
(_a = this._ref
|
|
109
|
+
.closest("[role=tablist]")) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.boundSetSelectedOnChange);
|
|
110
|
+
this._listenerAdded = false;
|
|
173
111
|
}
|
|
174
112
|
}
|
|
175
113
|
render() {
|
|
176
|
-
var _a, _b, _c, _d;
|
|
177
|
-
return (h("
|
|
114
|
+
var _a, _b, _c, _d, _e, _f;
|
|
115
|
+
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) => {
|
|
178
116
|
this._ref = el;
|
|
179
|
-
},
|
|
180
|
-
? getBoolean(this.active)
|
|
181
|
-
: this.internalActive)
|
|
182
|
-
? "true"
|
|
183
|
-
: "false", "aria-controls": this.ariaControls, disabled: getBoolean(this.disabled) ? true : undefined, tabIndex: this.getCurrentTabIndex(), id: this.id, "data-active": this.active !== undefined
|
|
184
|
-
? getBoolean(this.active)
|
|
185
|
-
: 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) => {
|
|
186
|
-
this._labelRef = el;
|
|
187
|
-
}, "data-icon": getBoolean((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon)
|
|
188
|
-
? (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon
|
|
189
|
-
: 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)
|
|
190
|
-
? (_d = this.iconLeading) !== null && _d !== void 0 ? _d : this.icon
|
|
191
|
-
: undefined })) : null, this.isTruncated && this.tooltipText ? (h("db-tooltip", { placement: "right" }, this.tooltipText)) : null));
|
|
117
|
+
}, 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' }))));
|
|
192
118
|
}
|
|
193
119
|
static get watchers() { return {
|
|
194
|
-
"
|
|
120
|
+
"_ref": [{
|
|
121
|
+
"watch0": 0
|
|
122
|
+
}],
|
|
123
|
+
"initialized": [{
|
|
195
124
|
"watch0": 0
|
|
125
|
+
}],
|
|
126
|
+
"boundSetSelectedOnChange": [{
|
|
127
|
+
"watch0": 0
|
|
128
|
+
}],
|
|
129
|
+
"name": [{
|
|
130
|
+
"watch1": 0
|
|
196
131
|
}]
|
|
197
132
|
}; }
|
|
198
133
|
};
|
|
@@ -200,7 +135,6 @@ const DBTabItem = class {
|
|
|
200
135
|
const DBTabList = class {
|
|
201
136
|
constructor(hostRef) {
|
|
202
137
|
registerInstance(this, hostRef);
|
|
203
|
-
this._id = "tab-list-base-id";
|
|
204
138
|
}
|
|
205
139
|
/**
|
|
206
140
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
@@ -240,12 +174,12 @@ const DBTabList = class {
|
|
|
240
174
|
}
|
|
241
175
|
componentDidLoad() {
|
|
242
176
|
this.enableAttributePassing(this._ref, "db-tab-list");
|
|
243
|
-
this._id = this.id || "tab-list-" + uuid();
|
|
244
177
|
}
|
|
245
178
|
render() {
|
|
246
|
-
|
|
179
|
+
var _a, _b;
|
|
180
|
+
return (h("div", { key: '8f02145864a04b79d94d5d5923b6eff32346a0c3', class: cls("db-tab-list", this.className), ref: (el) => {
|
|
247
181
|
this._ref = el;
|
|
248
|
-
}, id: this.
|
|
182
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '759fdba6e69209ca915148c8b190f9311cb6f1ff', role: "tablist" }, h("slot", { key: '96bf4a10d3b422d6eb6be68c46f926b9f55eb0e6' }))));
|
|
249
183
|
}
|
|
250
184
|
};
|
|
251
185
|
|
|
@@ -294,9 +228,9 @@ const DBTabPanel = class {
|
|
|
294
228
|
}
|
|
295
229
|
render() {
|
|
296
230
|
var _a, _b;
|
|
297
|
-
return (h("
|
|
231
|
+
return (h("section", { key: 'c10873d5857be6ea8653189ab735784939c53474', class: cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
|
|
298
232
|
this._ref = el;
|
|
299
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id
|
|
233
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, h("slot", { key: '57a98a1b7e26ca61b16397b7615f71d883bfbd28' })));
|
|
300
234
|
}
|
|
301
235
|
};
|
|
302
236
|
|