@db-ux/wc-core-components 4.9.1 → 4.10.0-esm-94516f3
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 +11 -1
- package/README.md +114 -25
- package/bundle/db-accordion-item.d.ts +11 -0
- package/bundle/db-accordion-item.js +1 -0
- package/bundle/db-accordion.d.ts +11 -0
- package/bundle/db-accordion.js +1 -0
- package/bundle/db-badge.d.ts +11 -0
- package/bundle/db-badge.js +1 -0
- package/bundle/db-brand.d.ts +11 -0
- package/bundle/db-brand.js +1 -0
- package/bundle/db-button.d.ts +11 -0
- package/bundle/db-button.js +1 -0
- package/bundle/db-card.d.ts +11 -0
- package/bundle/db-card.js +1 -0
- package/bundle/db-checkbox.d.ts +11 -0
- package/bundle/db-checkbox.js +1 -0
- package/bundle/db-custom-button.d.ts +11 -0
- package/bundle/db-custom-button.js +1 -0
- package/bundle/db-custom-select-dropdown.d.ts +11 -0
- package/bundle/db-custom-select-dropdown.js +1 -0
- package/bundle/db-custom-select-form-field.d.ts +11 -0
- package/bundle/db-custom-select-form-field.js +1 -0
- package/bundle/db-custom-select-list-item.d.ts +11 -0
- package/bundle/db-custom-select-list-item.js +1 -0
- package/bundle/db-custom-select-list.d.ts +11 -0
- package/bundle/db-custom-select-list.js +1 -0
- package/bundle/db-custom-select.d.ts +11 -0
- package/bundle/db-custom-select.js +1 -0
- package/bundle/db-divider.d.ts +11 -0
- package/bundle/db-divider.js +1 -0
- package/bundle/db-drawer.d.ts +11 -0
- package/bundle/db-drawer.js +1 -0
- package/bundle/db-header.d.ts +11 -0
- package/bundle/db-header.js +1 -0
- package/bundle/db-icon.d.ts +11 -0
- package/bundle/db-icon.js +1 -0
- package/bundle/db-infotext.d.ts +11 -0
- package/bundle/db-infotext.js +1 -0
- package/bundle/db-input.d.ts +11 -0
- package/bundle/db-input.js +1 -0
- package/bundle/db-link.d.ts +11 -0
- package/bundle/db-link.js +1 -0
- package/bundle/db-navigation-item.d.ts +11 -0
- package/bundle/db-navigation-item.js +1 -0
- package/bundle/db-navigation.d.ts +11 -0
- package/bundle/db-navigation.js +1 -0
- package/bundle/db-notification.d.ts +11 -0
- package/bundle/db-notification.js +1 -0
- package/bundle/db-page.d.ts +11 -0
- package/bundle/db-page.js +1 -0
- package/bundle/db-popover.d.ts +11 -0
- package/bundle/db-popover.js +1 -0
- package/bundle/db-radio.d.ts +11 -0
- package/bundle/db-radio.js +1 -0
- package/bundle/db-section.d.ts +11 -0
- package/bundle/db-section.js +1 -0
- package/bundle/db-select.d.ts +11 -0
- package/bundle/db-select.js +1 -0
- package/bundle/db-stack.d.ts +11 -0
- package/bundle/db-stack.js +1 -0
- package/bundle/db-switch.d.ts +11 -0
- package/bundle/db-switch.js +1 -0
- package/bundle/db-tab-item.d.ts +11 -0
- package/bundle/db-tab-item.js +1 -0
- package/bundle/db-tab-list.d.ts +11 -0
- package/bundle/db-tab-list.js +1 -0
- package/bundle/db-tab-panel.d.ts +11 -0
- package/bundle/db-tab-panel.js +1 -0
- package/bundle/db-tabs.d.ts +11 -0
- package/bundle/db-tabs.js +1 -0
- package/bundle/db-tag.d.ts +11 -0
- package/bundle/db-tag.js +1 -0
- package/bundle/db-textarea.d.ts +11 -0
- package/bundle/db-textarea.js +1 -0
- package/bundle/db-tooltip.d.ts +11 -0
- package/bundle/db-tooltip.js +1 -0
- package/bundle/index.d.ts +47 -0
- package/bundle/index.js +1 -0
- package/bundle/p-4TaCoruo.js +1 -0
- package/bundle/p-4nwUOzw7.js +1 -0
- package/bundle/p-BJJFATCC.js +1 -0
- package/bundle/p-BdL-nI5y.js +1 -0
- package/bundle/p-BuBrj57D.js +1 -0
- package/bundle/p-CCbaTFJ9.js +1 -0
- package/bundle/p-CEiQBevg.js +1 -0
- package/bundle/p-CV8l9qaA.js +1 -0
- package/bundle/p-CmqAwQNR.js +1 -0
- package/bundle/p-D4Ym01qf.js +1 -0
- package/bundle/p-DE_eDJiD.js +1 -0
- package/bundle/p-DOPXnIzL.js +1 -0
- package/bundle/p-DS39nEhJ.js +1 -0
- package/bundle/p-DVYa1bHg.js +1 -0
- package/bundle/p-DwwxAylo.js +1 -0
- package/bundle/p-QNp8H1KD.js +1 -0
- package/bundle/p-_2t1bnPD.js +1 -0
- package/bundle/p-bzxfqhtq.js +1 -0
- package/bundle/p-e18AQLns.js +1 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +26 -4
- package/dist/cjs/db-accordion.cjs.entry.js +10 -3
- package/dist/cjs/db-badge.cjs.entry.js +10 -3
- package/dist/cjs/db-brand.cjs.entry.js +10 -3
- package/dist/cjs/db-button.cjs.entry.js +10 -3
- package/dist/cjs/db-card.cjs.entry.js +10 -3
- package/dist/cjs/db-checkbox.cjs.entry.js +10 -3
- package/dist/cjs/db-custom-button.cjs.entry.js +10 -3
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +45 -10
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +10 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +13 -6
- package/dist/cjs/db-divider.cjs.entry.js +9 -2
- package/dist/cjs/db-drawer.cjs.entry.js +14 -7
- package/dist/cjs/db-header.cjs.entry.js +10 -3
- package/dist/cjs/db-icon.cjs.entry.js +10 -3
- package/dist/cjs/db-infotext.cjs.entry.js +10 -3
- package/dist/cjs/db-link.cjs.entry.js +10 -3
- package/dist/cjs/db-navigation-item.cjs.entry.js +11 -3
- package/dist/cjs/db-navigation.cjs.entry.js +10 -3
- package/dist/cjs/db-notification.cjs.entry.js +10 -3
- package/dist/cjs/db-page.cjs.entry.js +10 -3
- package/dist/cjs/db-popover.cjs.entry.js +10 -3
- package/dist/cjs/db-radio.cjs.entry.js +10 -3
- package/dist/cjs/db-section.cjs.entry.js +10 -3
- package/dist/cjs/db-select.cjs.entry.js +10 -3
- package/dist/cjs/db-stack.cjs.entry.js +10 -3
- package/dist/cjs/db-switch.cjs.entry.js +10 -3
- package/dist/cjs/db-tab-item_3.cjs.entry.js +28 -7
- package/dist/cjs/db-tabs.cjs.entry.js +10 -3
- package/dist/cjs/db-textarea.cjs.entry.js +10 -3
- package/dist/cjs/db-tooltip.cjs.entry.js +10 -3
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{index-BoC-BWt4.js → index-DLuhzJ0p.js} +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/accordion/accordion.js +9 -2
- package/dist/collection/components/accordion-item/accordion-item.js +53 -5
- package/dist/collection/components/badge/badge.js +9 -2
- package/dist/collection/components/brand/brand.js +9 -2
- package/dist/collection/components/button/button.js +10 -3
- package/dist/collection/components/card/card.js +10 -3
- package/dist/collection/components/checkbox/checkbox.js +10 -3
- package/dist/collection/components/custom-button/custom-button.js +9 -2
- package/dist/collection/components/custom-select/custom-select.js +13 -6
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +9 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +9 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +9 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +9 -2
- package/dist/collection/components/divider/divider.js +8 -1
- package/dist/collection/components/drawer/drawer.js +15 -8
- package/dist/collection/components/header/header.js +20 -13
- package/dist/collection/components/icon/icon.js +9 -2
- package/dist/collection/components/infotext/infotext.js +9 -2
- package/dist/collection/components/input/input.js +10 -3
- package/dist/collection/components/link/link.js +9 -2
- package/dist/collection/components/navigation/navigation.js +9 -2
- package/dist/collection/components/navigation-item/navigation-item.js +37 -3
- package/dist/collection/components/notification/notification.js +10 -3
- package/dist/collection/components/page/page.js +9 -2
- package/dist/collection/components/popover/popover.js +9 -2
- package/dist/collection/components/radio/radio.js +10 -3
- package/dist/collection/components/section/section.js +9 -2
- package/dist/collection/components/select/select.js +10 -3
- package/dist/collection/components/stack/stack.js +9 -2
- package/dist/collection/components/switch/switch.js +10 -3
- package/dist/collection/components/tab-item/tab-item.js +10 -3
- package/dist/collection/components/tab-list/tab-list.js +9 -2
- package/dist/collection/components/tab-panel/tab-panel.js +9 -2
- package/dist/collection/components/tabs/tabs.js +10 -3
- package/dist/collection/components/tag/tag.js +10 -3
- package/dist/collection/components/textarea/textarea.js +10 -3
- package/dist/collection/components/tooltip/tooltip.js +9 -2
- package/dist/custom-elements.json +2276 -36
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/p-0ae85978.entry.js +1 -0
- package/dist/db-ux/p-13afb969.entry.js +1 -0
- package/dist/db-ux/p-174d2486.entry.js +1 -0
- package/dist/db-ux/p-28c257d5.entry.js +1 -0
- package/dist/db-ux/p-293510ca.entry.js +1 -0
- package/dist/db-ux/p-331ad11c.entry.js +1 -0
- package/dist/db-ux/p-339a6ca0.entry.js +1 -0
- package/dist/db-ux/p-34e21986.entry.js +1 -0
- package/dist/db-ux/p-368d25ab.entry.js +1 -0
- package/dist/db-ux/p-4580938f.entry.js +1 -0
- package/dist/db-ux/p-47910fdc.entry.js +1 -0
- package/dist/db-ux/p-5d2e2a8d.entry.js +1 -0
- package/dist/db-ux/p-691ae341.entry.js +1 -0
- package/dist/db-ux/p-7c58337d.entry.js +1 -0
- package/dist/db-ux/p-7f4d00df.entry.js +1 -0
- package/dist/db-ux/p-9712c9c9.entry.js +1 -0
- package/dist/db-ux/p-9b907b56.entry.js +1 -0
- package/dist/db-ux/p-9c3ff50e.entry.js +1 -0
- package/dist/db-ux/p-Cr2cgn5B.js +2 -0
- package/dist/db-ux/p-a56886ea.entry.js +1 -0
- package/dist/db-ux/p-a617da42.entry.js +1 -0
- package/dist/db-ux/p-aad0c4ef.entry.js +1 -0
- package/dist/db-ux/p-ae3183f0.entry.js +1 -0
- package/dist/db-ux/p-ae457f95.entry.js +1 -0
- package/dist/db-ux/p-b1e7ba0f.entry.js +1 -0
- package/dist/db-ux/p-cac5b161.entry.js +1 -0
- package/dist/db-ux/p-dcf02351.entry.js +1 -0
- package/dist/db-ux/p-e46dc907.entry.js +1 -0
- package/dist/db-ux/p-f27c6655.entry.js +1 -0
- package/dist/db-ux/p-f583f756.entry.js +1 -0
- package/dist/db-ux/p-f65e1db8.entry.js +1 -0
- package/dist/db-ux/p-fe5d3eb6.entry.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +27 -5
- package/dist/esm/db-accordion.entry.js +10 -3
- package/dist/esm/db-badge.entry.js +10 -3
- package/dist/esm/db-brand.entry.js +10 -3
- package/dist/esm/db-button.entry.js +10 -3
- package/dist/esm/db-card.entry.js +10 -3
- package/dist/esm/db-checkbox.entry.js +10 -3
- package/dist/esm/db-custom-button.entry.js +10 -3
- package/dist/esm/db-custom-select-dropdown_5.entry.js +45 -10
- package/dist/esm/db-custom-select-form-field.entry.js +10 -3
- package/dist/esm/db-custom-select.entry.js +13 -6
- package/dist/esm/db-divider.entry.js +9 -2
- package/dist/esm/db-drawer.entry.js +15 -8
- package/dist/esm/db-header.entry.js +10 -3
- package/dist/esm/db-icon.entry.js +10 -3
- package/dist/esm/db-infotext.entry.js +10 -3
- package/dist/esm/db-link.entry.js +10 -3
- package/dist/esm/db-navigation-item.entry.js +11 -3
- package/dist/esm/db-navigation.entry.js +10 -3
- package/dist/esm/db-notification.entry.js +10 -3
- package/dist/esm/db-page.entry.js +10 -3
- package/dist/esm/db-popover.entry.js +10 -3
- package/dist/esm/db-radio.entry.js +10 -3
- package/dist/esm/db-section.entry.js +10 -3
- package/dist/esm/db-select.entry.js +10 -3
- package/dist/esm/db-stack.entry.js +10 -3
- package/dist/esm/db-switch.entry.js +10 -3
- package/dist/esm/db-tab-item_3.entry.js +28 -7
- package/dist/esm/db-tabs.entry.js +10 -3
- package/dist/esm/db-textarea.entry.js +10 -3
- package/dist/esm/db-tooltip.entry.js +10 -3
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{index-K4o-AcjZ.js → index-Cr2cgn5B.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +1 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +4 -0
- package/dist/types/components/accordion-item/model.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +1 -0
- package/dist/types/components/brand/brand.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -0
- package/dist/types/components/custom-button/custom-button.d.ts +1 -0
- package/dist/types/components/custom-select/custom-select.d.ts +1 -0
- package/dist/types/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -0
- package/dist/types/components/custom-select-form-field/custom-select-form-field.d.ts +1 -0
- package/dist/types/components/custom-select-list/custom-select-list.d.ts +1 -0
- package/dist/types/components/custom-select-list-item/custom-select-list-item.d.ts +1 -0
- package/dist/types/components/divider/divider.d.ts +1 -0
- package/dist/types/components/drawer/drawer.d.ts +1 -0
- package/dist/types/components/header/header.d.ts +3 -2
- package/dist/types/components/icon/icon.d.ts +1 -0
- package/dist/types/components/infotext/infotext.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +1 -0
- package/dist/types/components/link/link.d.ts +1 -0
- package/dist/types/components/navigation/navigation.d.ts +1 -0
- package/dist/types/components/navigation-item/model.d.ts +4 -0
- package/dist/types/components/navigation-item/navigation-item.d.ts +2 -0
- package/dist/types/components/notification/notification.d.ts +1 -0
- package/dist/types/components/page/page.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +1 -0
- package/dist/types/components/radio/radio.d.ts +1 -0
- package/dist/types/components/section/section.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +1 -0
- package/dist/types/components/stack/stack.d.ts +1 -0
- package/dist/types/components/switch/switch.d.ts +1 -0
- package/dist/types/components/tab-item/tab-item.d.ts +1 -0
- package/dist/types/components/tab-list/tab-list.d.ts +1 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +1 -0
- package/dist/types/components/tabs/tabs.d.ts +1 -0
- package/dist/types/components/tag/tag.d.ts +1 -0
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +1 -0
- package/dist/types/components.d.ts +7 -1
- package/dist/types/shared/figma.d.ts +12 -6
- package/dist/vscode.html-custom-data.json +16 -6
- package/dist/web-types.json +1032 -248
- package/package.json +15 -9
- package/dist/db-ux/p-1b5d76a8.entry.js +0 -1
- package/dist/db-ux/p-296f989b.entry.js +0 -1
- package/dist/db-ux/p-3ae13ff1.entry.js +0 -1
- package/dist/db-ux/p-43f94079.entry.js +0 -1
- package/dist/db-ux/p-54508bad.entry.js +0 -1
- package/dist/db-ux/p-55e8b0b4.entry.js +0 -1
- package/dist/db-ux/p-69a59559.entry.js +0 -1
- package/dist/db-ux/p-6e7126c6.entry.js +0 -1
- package/dist/db-ux/p-7bed4611.entry.js +0 -1
- package/dist/db-ux/p-8ce816c0.entry.js +0 -1
- package/dist/db-ux/p-8e080864.entry.js +0 -1
- package/dist/db-ux/p-K4o-AcjZ.js +0 -2
- package/dist/db-ux/p-a0eccc08.entry.js +0 -1
- package/dist/db-ux/p-a7c6ec23.entry.js +0 -1
- package/dist/db-ux/p-a82c9875.entry.js +0 -1
- package/dist/db-ux/p-ae445d5d.entry.js +0 -1
- package/dist/db-ux/p-b33abf8d.entry.js +0 -1
- package/dist/db-ux/p-b8ab2bd4.entry.js +0 -1
- package/dist/db-ux/p-bb7c59d2.entry.js +0 -1
- package/dist/db-ux/p-bc510135.entry.js +0 -1
- package/dist/db-ux/p-c85d4be6.entry.js +0 -1
- package/dist/db-ux/p-d206ac6f.entry.js +0 -1
- package/dist/db-ux/p-e22b3725.entry.js +0 -1
- package/dist/db-ux/p-e432c81f.entry.js +0 -1
- package/dist/db-ux/p-e64606e2.entry.js +0 -1
- package/dist/db-ux/p-e8ee154f.entry.js +0 -1
- package/dist/db-ux/p-efb9d9bc.entry.js +0 -1
- package/dist/db-ux/p-f35229a1.entry.js +0 -1
- package/dist/db-ux/p-f582c886.entry.js +0 -1
- package/dist/db-ux/p-f6be9a48.entry.js +0 -1
- package/dist/db-ux/p-fb39506f.entry.js +0 -1
- package/dist/db-ux/p-fb9500ba.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_REMOVE } from "../../shared/constants";
|
|
2
2
|
import { cls, getBooleanAsString } from "../../utils";
|
|
3
|
-
import { h
|
|
3
|
+
import { h } from "@stencil/core";
|
|
4
4
|
/**
|
|
5
5
|
* @slot children - This is a default/unnamed slot
|
|
6
6
|
* @slot content - TODO: Add description for slotContent
|
|
@@ -58,13 +58,19 @@ export class DBTag {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
componentDidLoad() {
|
|
61
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
62
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
63
|
+
if (connectedElement) {
|
|
64
|
+
connectedElement.remove();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
61
67
|
this.enableAttributePassing(this._ref, "db-tag");
|
|
62
68
|
}
|
|
63
69
|
render() {
|
|
64
70
|
var _a, _b, _c;
|
|
65
|
-
return (h("div", { key: '
|
|
71
|
+
return (h("div", { key: '85b02f290e8323ddd9a61ee5cf15893e7bc0cdab', class: cls("db-tag", this.className), ref: (el) => {
|
|
66
72
|
this._ref = el;
|
|
67
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '
|
|
73
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '3aefef41d0a30b8f979e43146936be56a1d9181b', name: "content" }), this.text ? this.text : null, h("slot", { key: 'e283aefd212ea8c7f7eab8da48ed19a7f4763e38' }), this.behavior === "removable" ? (h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
68
74
|
}
|
|
69
75
|
static get is() { return "db-tag"; }
|
|
70
76
|
static get properties() {
|
|
@@ -425,4 +431,5 @@ export class DBTag {
|
|
|
425
431
|
}
|
|
426
432
|
}];
|
|
427
433
|
}
|
|
434
|
+
static get elementRef() { return "rootElement"; }
|
|
428
435
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_ROWS, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
|
|
2
2
|
import { cls, delay, getBoolean, getHideProp, getNumber, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
3
3
|
import { addValueResetEventListener, } from "../../utils/form-components";
|
|
4
|
-
import { h
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
5
|
/**
|
|
6
6
|
* @slot children - This is a default/unnamed slot
|
|
7
7
|
|
|
@@ -182,6 +182,12 @@ export class DBTextarea {
|
|
|
182
182
|
this.watch4Fn();
|
|
183
183
|
}
|
|
184
184
|
componentDidLoad() {
|
|
185
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
186
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
187
|
+
if (connectedElement) {
|
|
188
|
+
connectedElement.remove();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
185
191
|
this.enableAttributePassing(this._ref, "db-textarea");
|
|
186
192
|
this.resetIds();
|
|
187
193
|
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
@@ -197,10 +203,10 @@ export class DBTextarea {
|
|
|
197
203
|
}
|
|
198
204
|
render() {
|
|
199
205
|
var _a, _b, _c, _d, _e, _f;
|
|
200
|
-
return (h("div", { key: '
|
|
206
|
+
return (h("div", { key: '011c369f6437bb150f6afb7534da123ed5987621', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '2ce564dca8898dedd7e666eb39f1b94226cc3547', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '8cafda914ea6b0f48fe096472e71fd89ee85ec23', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
201
207
|
this._ref = el;
|
|
202
208
|
}, id: this._id, "data-resize": this.resize, "data-hide-resizer": getHideProp((_b = this.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
203
|
-
getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), 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: '
|
|
209
|
+
getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), 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: '489ca97fb9dc385ec1483d47918025f6db999e01', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: 'c1aa196f836729f0b821f4b3f9300a924fd8e08c', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
204
210
|
}
|
|
205
211
|
static get is() { return "db-textarea"; }
|
|
206
212
|
static get properties() {
|
|
@@ -1165,6 +1171,7 @@ export class DBTextarea {
|
|
|
1165
1171
|
}
|
|
1166
1172
|
}];
|
|
1167
1173
|
}
|
|
1174
|
+
static get elementRef() { return "rootElement"; }
|
|
1168
1175
|
static get watchers() {
|
|
1169
1176
|
return [{
|
|
1170
1177
|
"propName": "id",
|
|
@@ -150,6 +150,12 @@ export class DBTooltip {
|
|
|
150
150
|
this.watch1Fn();
|
|
151
151
|
}
|
|
152
152
|
componentDidLoad() {
|
|
153
|
+
if (typeof document !== "undefined" && this.rootElement && this.rootElement.dataset.connect) {
|
|
154
|
+
const connectedElement = document.querySelector(`[data-connect-id="${this.rootElement.dataset.connect}"]`);
|
|
155
|
+
if (connectedElement) {
|
|
156
|
+
connectedElement.remove();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
153
159
|
this.enableAttributePassing(this._ref, "db-tooltip");
|
|
154
160
|
this.resetIds();
|
|
155
161
|
this.initialized = true;
|
|
@@ -158,9 +164,9 @@ export class DBTooltip {
|
|
|
158
164
|
}
|
|
159
165
|
render() {
|
|
160
166
|
var _a, _b;
|
|
161
|
-
return (h("i", { key: '
|
|
167
|
+
return (h("i", { key: 'baf376c4ee424f78a7e062b864586139846b2073', class: cls("db-tooltip", this.className), role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: (el) => {
|
|
162
168
|
this._ref = el;
|
|
163
|
-
}, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: '
|
|
169
|
+
}, id: this._id, "data-emphasis": this.emphasis, "data-wrap": getBooleanAsString(this.wrap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-delay": this.delay, "data-width": this.width, "data-show-arrow": getBooleanAsString((_b = this.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": this.placement, onClick: (event) => this.handleClick(event) }, this.text ? this.text : null, h("slot", { key: '6ec094383bad1237ce6ae7d02a7a62cf5c8de19d' })));
|
|
164
170
|
}
|
|
165
171
|
static get is() { return "db-tooltip"; }
|
|
166
172
|
static get properties() {
|
|
@@ -485,6 +491,7 @@ export class DBTooltip {
|
|
|
485
491
|
"_observer": {}
|
|
486
492
|
};
|
|
487
493
|
}
|
|
494
|
+
static get elementRef() { return "rootElement"; }
|
|
488
495
|
static get watchers() {
|
|
489
496
|
return [{
|
|
490
497
|
"propName": "id",
|