@db-ux/wc-core-components 4.4.3 → 4.5.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 +24 -0
- package/agent/.gitkeep +0 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +5 -4
- package/dist/cjs/db-accordion.cjs.entry.js +6 -6
- package/dist/cjs/db-badge.cjs.entry.js +5 -5
- package/dist/cjs/db-brand.cjs.entry.js +5 -5
- package/dist/cjs/db-button.cjs.entry.js +5 -5
- package/dist/cjs/db-card.cjs.entry.js +5 -4
- package/dist/cjs/db-checkbox.cjs.entry.js +53 -34
- package/dist/cjs/db-custom-button.cjs.entry.js +57 -0
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +59 -37
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +5 -4
- package/dist/cjs/db-custom-select.cjs.entry.js +132 -109
- package/dist/cjs/db-divider.cjs.entry.js +5 -4
- package/dist/cjs/db-drawer.cjs.entry.js +6 -6
- package/dist/cjs/db-header.cjs.entry.js +7 -7
- package/dist/cjs/db-icon.cjs.entry.js +5 -4
- package/dist/cjs/db-infotext.cjs.entry.js +5 -5
- package/dist/cjs/db-link.cjs.entry.js +5 -5
- package/dist/cjs/db-navigation-item.cjs.entry.js +7 -7
- package/dist/cjs/db-navigation.cjs.entry.js +5 -4
- package/dist/cjs/db-notification.cjs.entry.js +6 -6
- package/dist/cjs/db-page.cjs.entry.js +5 -4
- package/dist/cjs/db-popover.cjs.entry.js +7 -7
- package/dist/cjs/db-radio.cjs.entry.js +33 -14
- package/dist/cjs/db-section.cjs.entry.js +5 -4
- package/dist/cjs/db-select.cjs.entry.js +48 -29
- package/dist/cjs/db-stack.cjs.entry.js +5 -4
- package/dist/cjs/db-switch.cjs.entry.js +58 -22
- package/dist/cjs/db-tab-item_3.cjs.entry.js +11 -9
- package/dist/cjs/db-tabs.cjs.entry.js +6 -6
- package/dist/cjs/db-textarea.cjs.entry.js +46 -27
- package/dist/cjs/db-tooltip.cjs.entry.js +17 -9
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{document-click-listener-Bb3Tinb8.js → document-click-listener-B2-xKJv3.js} +1 -1
- package/dist/cjs/{document-scroll-listener-unypEU42.js → document-scroll-listener-ChQ7XZRk.js} +1 -1
- package/dist/cjs/{floating-components-pYaTeNhp.js → floating-components-DlstoCKH.js} +4 -0
- package/dist/cjs/{form-components-LsqVohyb.js → form-components-_ncB_U2D.js} +1 -1
- package/dist/cjs/{index-CsHqnQII.js → index-2_9ESkQu.js} +6 -7
- package/dist/cjs/{index-Bh5ovRL2.js → index-D_vrmAD6.js} +23 -14
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{navigation-BztJmEHf.js → navigation-Bah882nU.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/accordion/accordion.js +28 -4
- package/dist/collection/components/accordion-item/accordion-item.js +27 -2
- package/dist/collection/components/badge/badge.js +54 -4
- package/dist/collection/components/brand/brand.js +27 -3
- package/dist/collection/components/button/button.js +53 -3
- package/dist/collection/components/card/card.js +27 -2
- package/dist/collection/components/checkbox/checkbox.js +81 -38
- package/dist/collection/components/custom-button/custom-button.js +394 -0
- package/dist/collection/components/custom-button/index.js +2 -0
- package/dist/collection/components/custom-button/model.js +1 -0
- package/dist/collection/components/custom-select/custom-select.js +156 -109
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +27 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +27 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +27 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +27 -2
- package/dist/collection/components/divider/divider.js +27 -2
- package/dist/collection/components/drawer/drawer.js +28 -4
- package/dist/collection/components/header/header.js +27 -3
- package/dist/collection/components/icon/icon.js +27 -2
- package/dist/collection/components/infotext/infotext.js +53 -3
- package/dist/collection/components/input/input.js +74 -31
- package/dist/collection/components/link/link.js +27 -3
- package/dist/collection/components/navigation/navigation.js +27 -2
- package/dist/collection/components/navigation-item/navigation-item.js +27 -3
- package/dist/collection/components/notification/notification.js +28 -4
- package/dist/collection/components/page/page.js +27 -2
- package/dist/collection/components/popover/popover.js +27 -3
- package/dist/collection/components/radio/radio.js +54 -11
- package/dist/collection/components/section/section.js +27 -2
- package/dist/collection/components/select/select.js +75 -32
- package/dist/collection/components/stack/stack.js +27 -2
- package/dist/collection/components/switch/switch.js +107 -45
- package/dist/collection/components/tab-item/tab-item.js +27 -3
- package/dist/collection/components/tab-list/tab-list.js +27 -2
- package/dist/collection/components/tab-panel/tab-panel.js +27 -2
- package/dist/collection/components/tabs/tabs.js +28 -4
- package/dist/collection/components/tag/tag.js +27 -3
- package/dist/collection/components/textarea/textarea.js +73 -30
- package/dist/collection/components/tooltip/tooltip.js +63 -5
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/floating-components.js +4 -0
- package/dist/collection/utils/index.js +6 -7
- package/dist/custom-elements.json +3692 -1698
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/p-043c407c.entry.js +1 -0
- package/dist/db-ux/p-0541c3c2.entry.js +1 -0
- package/dist/db-ux/p-074e4a43.entry.js +1 -0
- package/dist/db-ux/p-11251b99.entry.js +1 -0
- package/dist/db-ux/p-1c89f0fc.entry.js +1 -0
- package/dist/db-ux/p-213bfff6.entry.js +1 -0
- package/dist/db-ux/p-29442fd9.entry.js +1 -0
- package/dist/db-ux/p-2bce91e1.entry.js +1 -0
- package/dist/db-ux/p-32c4a1b5.entry.js +1 -0
- package/dist/db-ux/p-3e5be44c.entry.js +1 -0
- package/dist/db-ux/p-4cda36f1.entry.js +1 -0
- package/dist/db-ux/p-4cf64cbb.entry.js +1 -0
- package/dist/db-ux/p-5028b12e.entry.js +1 -0
- package/dist/db-ux/{p-b07122c4.entry.js → p-56af9177.entry.js} +1 -1
- package/dist/db-ux/{p-64264628.entry.js → p-587263ad.entry.js} +1 -1
- package/dist/db-ux/p-58f21c03.entry.js +1 -0
- package/dist/db-ux/{p-77150a25.entry.js → p-6b073570.entry.js} +1 -1
- package/dist/db-ux/p-745ccfb8.entry.js +1 -0
- package/dist/db-ux/p-836f0fef.entry.js +1 -0
- package/dist/db-ux/p-9a19e197.entry.js +1 -0
- package/dist/db-ux/p-9fb146d1.entry.js +1 -0
- package/dist/db-ux/p-BjIPMjCM.js +2 -0
- package/dist/db-ux/{p-cNk4ImpW.js → p-BuBrj57D.js} +1 -1
- package/dist/db-ux/p-CHLgQ9vn.js +1 -0
- package/dist/db-ux/{p-CAEpg8tJ.js → p-D5mInaY7.js} +1 -1
- package/dist/db-ux/p-DOPXnIzL.js +1 -0
- package/dist/db-ux/p-D_roHmuC.js +1 -0
- package/dist/db-ux/p-a34d2691.entry.js +1 -0
- package/dist/db-ux/p-c6f43506.entry.js +1 -0
- package/dist/db-ux/p-cdfaf027.entry.js +1 -0
- package/dist/db-ux/p-d186aef4.entry.js +1 -0
- package/dist/db-ux/p-dceb35a8.entry.js +1 -0
- package/dist/db-ux/p-e199b6f9.entry.js +1 -0
- package/dist/db-ux/p-e3664354.entry.js +1 -0
- package/dist/db-ux/p-ef034bba.entry.js +1 -0
- package/dist/db-ux/p-f0bc176a.entry.js +1 -0
- package/dist/db-ux/p-ff3866f3.entry.js +1 -0
- package/dist/db-ux/p-xkoBSP8R.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +5 -4
- package/dist/esm/db-accordion.entry.js +6 -6
- package/dist/esm/db-badge.entry.js +5 -5
- package/dist/esm/db-brand.entry.js +5 -5
- package/dist/esm/db-button.entry.js +5 -5
- package/dist/esm/db-card.entry.js +5 -4
- package/dist/esm/db-checkbox.entry.js +54 -35
- package/dist/esm/db-custom-button.entry.js +55 -0
- package/dist/esm/db-custom-select-dropdown_5.entry.js +60 -38
- package/dist/esm/db-custom-select-form-field.entry.js +5 -4
- package/dist/esm/db-custom-select.entry.js +133 -110
- package/dist/esm/db-divider.entry.js +5 -4
- package/dist/esm/db-drawer.entry.js +6 -6
- package/dist/esm/db-header.entry.js +7 -7
- package/dist/esm/db-icon.entry.js +5 -4
- package/dist/esm/db-infotext.entry.js +5 -5
- package/dist/esm/db-link.entry.js +5 -5
- package/dist/esm/db-navigation-item.entry.js +7 -7
- package/dist/esm/db-navigation.entry.js +5 -4
- package/dist/esm/db-notification.entry.js +6 -6
- package/dist/esm/db-page.entry.js +5 -4
- package/dist/esm/db-popover.entry.js +7 -7
- package/dist/esm/db-radio.entry.js +33 -14
- package/dist/esm/db-section.entry.js +5 -4
- package/dist/esm/db-select.entry.js +49 -30
- package/dist/esm/db-stack.entry.js +5 -4
- package/dist/esm/db-switch.entry.js +58 -22
- package/dist/esm/db-tab-item_3.entry.js +11 -9
- package/dist/esm/db-tabs.entry.js +6 -6
- package/dist/esm/db-textarea.entry.js +47 -28
- package/dist/esm/db-tooltip.entry.js +17 -9
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{document-click-listener-CmYoXpGE.js → document-click-listener-D7W_VE5O.js} +1 -1
- package/dist/esm/{document-scroll-listener-65bHuFAN.js → document-scroll-listener-DOBe3Oa9.js} +1 -1
- package/dist/esm/{floating-components-DfYL98sI.js → floating-components-DOPXnIzL.js} +4 -0
- package/dist/esm/{form-components-BLsiOrPI.js → form-components-D6LQfJvq.js} +1 -1
- package/dist/esm/{index-Crtu1dn6.js → index-BjIPMjCM.js} +23 -14
- package/dist/esm/{index-C4x0SOcx.js → index-xkoBSP8R.js} +6 -7
- package/dist/esm/index.js +5 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{navigation-DgsMCdfn.js → navigation-Jh6m0eMk.js} +1 -1
- package/dist/types/components/accordion/accordion.d.ts +1 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/badge/badge.d.ts +2 -0
- package/dist/types/components/badge/model.d.ts +2 -2
- package/dist/types/components/brand/brand.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +2 -0
- package/dist/types/components/button/model.d.ts +8 -10
- package/dist/types/components/card/card.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.d.ts +5 -1
- package/dist/types/components/custom-button/custom-button.d.ts +29 -0
- package/dist/types/components/custom-button/index.d.ts +2 -0
- package/dist/types/components/custom-button/model.d.ts +6 -0
- package/dist/types/components/custom-select/custom-select.d.ts +5 -1
- 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 +1 -0
- package/dist/types/components/icon/icon.d.ts +1 -0
- package/dist/types/components/infotext/infotext.d.ts +2 -0
- package/dist/types/components/infotext/model.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +5 -1
- 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/navigation-item.d.ts +1 -0
- package/dist/types/components/notification/model.d.ts +2 -2
- 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 +4 -0
- package/dist/types/components/section/section.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +5 -1
- package/dist/types/components/stack/stack.d.ts +1 -0
- package/dist/types/components/switch/switch.d.ts +7 -1
- 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/model.d.ts +2 -6
- package/dist/types/components/tag/tag.d.ts +1 -0
- package/dist/types/components/textarea/textarea.d.ts +5 -1
- package/dist/types/components/tooltip/model.d.ts +3 -3
- package/dist/types/components/tooltip/tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +145 -6
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/model.d.ts +15 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -1
- package/dist/vscode.html-custom-data.json +397 -85
- package/dist/web-types.json +730 -153
- package/package.json +4 -4
- package/agent/Accordion.md +0 -23
- package/agent/AccordionItem.md +0 -29
- package/agent/Badge.md +0 -32
- package/agent/Brand.md +0 -13
- package/agent/Button.md +0 -47
- package/agent/Card.md +0 -23
- package/agent/Checkbox.md +0 -41
- package/agent/CustomSelect.md +0 -54
- package/agent/Divider.md +0 -21
- package/agent/Drawer.md +0 -71
- package/agent/Header.md +0 -29
- package/agent/Icon.md +0 -20
- package/agent/Infotext.md +0 -25
- package/agent/Input.md +0 -48
- package/agent/Link.md +0 -52
- package/agent/Navigation.md +0 -19
- package/agent/NavigationItem.md +0 -29
- package/agent/Notification.md +0 -38
- package/agent/Page.md +0 -27
- package/agent/Popover.md +0 -52
- package/agent/Radio.md +0 -28
- package/agent/Section.md +0 -21
- package/agent/Select.md +0 -62
- package/agent/Stack.md +0 -35
- package/agent/Switch.md +0 -44
- package/agent/TabItem.md +0 -25
- package/agent/Tabs.md +0 -61
- package/agent/Tag.md +0 -41
- package/agent/Textarea.md +0 -44
- package/agent/Tooltip.md +0 -37
- package/agent/_instructions.md +0 -31
- package/dist/db-ux/p-1a72176e.entry.js +0 -1
- package/dist/db-ux/p-1b7f6a0b.entry.js +0 -1
- package/dist/db-ux/p-1da21066.entry.js +0 -1
- package/dist/db-ux/p-2d15e200.entry.js +0 -1
- package/dist/db-ux/p-312d52da.entry.js +0 -1
- package/dist/db-ux/p-3e6b86d6.entry.js +0 -1
- package/dist/db-ux/p-4aa16916.entry.js +0 -1
- package/dist/db-ux/p-4b69acea.entry.js +0 -1
- package/dist/db-ux/p-4cfff250.entry.js +0 -1
- package/dist/db-ux/p-5237e5d5.entry.js +0 -1
- package/dist/db-ux/p-5b1a0f0f.entry.js +0 -1
- package/dist/db-ux/p-5fa85b19.entry.js +0 -1
- package/dist/db-ux/p-7351b5ab.entry.js +0 -1
- package/dist/db-ux/p-7c6b7578.entry.js +0 -1
- package/dist/db-ux/p-828a77d8.entry.js +0 -1
- package/dist/db-ux/p-9b47dc80.entry.js +0 -1
- package/dist/db-ux/p-BhXdfCpU.js +0 -1
- package/dist/db-ux/p-C4x0SOcx.js +0 -1
- package/dist/db-ux/p-Crtu1dn6.js +0 -2
- package/dist/db-ux/p-DfYL98sI.js +0 -1
- package/dist/db-ux/p-RHqkTr-_.js +0 -1
- package/dist/db-ux/p-a3a8ce36.entry.js +0 -1
- package/dist/db-ux/p-aa0f7280.entry.js +0 -1
- package/dist/db-ux/p-b1fc0f4c.entry.js +0 -1
- package/dist/db-ux/p-c2624e1b.entry.js +0 -1
- package/dist/db-ux/p-c29d8e32.entry.js +0 -1
- package/dist/db-ux/p-cf50169a.entry.js +0 -1
- package/dist/db-ux/p-d4f3cfa2.entry.js +0 -1
- package/dist/db-ux/p-e05fee5a.entry.js +0 -1
- package/dist/db-ux/p-f40d2d61.entry.js +0 -1
- package/dist/db-ux/p-fcf8e274.entry.js +0 -1
- package/dist/db-ux/p-fe06f815.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BjIPMjCM.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBLink = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -45,10 +45,10 @@ const DBLink = class {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-link");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
var _a, _b;
|
|
49
|
-
return (h("a", { key: '
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
return (h("a", { key: '71c5ab28a592fe182048091df4ed2d34f4cafe96', class: cls("db-link", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (
|
|
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
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BjIPMjCM.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-
|
|
4
|
-
import { N as NavigationItemSafeTriangle } from './navigation-
|
|
5
|
-
import './floating-components-
|
|
3
|
+
import { d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
4
|
+
import { N as NavigationItemSafeTriangle } from './navigation-Jh6m0eMk.js';
|
|
5
|
+
import './floating-components-DOPXnIzL.js';
|
|
6
6
|
|
|
7
7
|
const DBNavigationItem = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -108,10 +108,10 @@ const DBNavigationItem = class {
|
|
|
108
108
|
this.watch1Fn();
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
var _a;
|
|
112
|
-
return (h("li", { key: '
|
|
111
|
+
var _a, _b, _c;
|
|
112
|
+
return (h("li", { key: 'dd524f6e6fa61adfb6d87591d1dbff6ba2e8f4fa', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
113
113
|
this._ref = el;
|
|
114
|
-
}, id: this.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", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "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) }, (
|
|
114
|
+
}, 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", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "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));
|
|
115
115
|
}
|
|
116
116
|
static get watchers() { return {
|
|
117
117
|
"subNavigationExpanded": [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BjIPMjCM.js';
|
|
2
|
+
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBNavigation = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -45,9 +45,10 @@ const DBNavigation = class {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-navigation");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("nav", { key: 'd35a0452fce96ed3fa6d692c8022ea4e36802626', class: cls("db-navigation", this.className), ref: (el) => {
|
|
49
50
|
this._ref = el;
|
|
50
|
-
}, id: this.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' }))));
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BjIPMjCM.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-
|
|
3
|
+
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-xkoBSP8R.js';
|
|
4
4
|
|
|
5
5
|
const DBNotification = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -55,14 +55,14 @@ const DBNotification = class {
|
|
|
55
55
|
this.enableAttributePassing(this._ref, "db-notification");
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
var _a;
|
|
59
|
-
return (h("div", { key: '
|
|
58
|
+
var _a, _b, _c;
|
|
59
|
+
return (h("div", { key: 'b7789fad4794a93805eeec0cf2740b3f592f32fa', class: cls("db-notification", this.className), ref: (el) => {
|
|
60
60
|
this._ref = el;
|
|
61
|
-
}, id: this.id, role: getNotificationRole({
|
|
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("p", { key: 'a93c1810e6a75cdd81660cb6e252ed7028c2a5f5' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: '26cae9faba7d9f277413f38a59ea02c9b99eb8c5', 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
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as cls, g as getBooleanAsString } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BjIPMjCM.js';
|
|
2
|
+
import { c as cls, g as getBooleanAsString } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBPage = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -62,9 +62,10 @@ const DBPage = class {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
|
|
65
|
+
var _a, _b;
|
|
66
|
+
return (h("div", { key: '3c52f5947a841db0fcfe81b09e37db5a59f04158', class: cls("db-page", this.className), ref: (el) => {
|
|
66
67
|
this._ref = el;
|
|
67
|
-
}, id: this.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" })));
|
|
68
69
|
}
|
|
69
70
|
};
|
|
70
71
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { d as delay, g as getBooleanAsString, c as cls } from './index-
|
|
3
|
-
import { D as DocumentScrollListener } from './document-scroll-listener-
|
|
4
|
-
import { b as handleFixedPopover } from './floating-components-
|
|
1
|
+
import { r as registerInstance, h } from './index-BjIPMjCM.js';
|
|
2
|
+
import { d as delay, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
|
+
import { D as DocumentScrollListener } from './document-scroll-listener-DOBe3Oa9.js';
|
|
4
|
+
import { b as handleFixedPopover } from './floating-components-DOPXnIzL.js';
|
|
5
5
|
|
|
6
6
|
const DBPopover = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -167,10 +167,10 @@ const DBPopover = class {
|
|
|
167
167
|
this.watch1Fn();
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
var _a;
|
|
171
|
-
return (h("div", { key: '
|
|
170
|
+
var _a, _b, _c;
|
|
171
|
+
return (h("div", { key: 'a160c72e468d3f98cf94f76193b31dea016821f5', class: cls("db-popover", this.className), ref: (el) => {
|
|
172
172
|
this._ref = el;
|
|
173
|
-
}, id: this.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": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-
|
|
3
|
-
import { b as addResetEventListener } from './form-components-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BjIPMjCM.js';
|
|
2
|
+
import { u as uuid, e as getBoolean, l as getHideProp, c as cls, d as delay } from './index-xkoBSP8R.js';
|
|
3
|
+
import { b as addResetEventListener } from './form-components-D6LQfJvq.js';
|
|
4
4
|
|
|
5
5
|
const DBRadio = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -33,6 +33,10 @@ const DBRadio = class {
|
|
|
33
33
|
this.focus.emit(event);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
resetIds() {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
this._id = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `radio-${uuid()}`;
|
|
39
|
+
}
|
|
36
40
|
/**
|
|
37
41
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
38
42
|
* @param element the ref for the component
|
|
@@ -70,14 +74,23 @@ const DBRadio = class {
|
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
watch0Fn() {
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
var _a, _b;
|
|
78
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
79
|
+
this.resetIds();
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
82
|
watch0() {
|
|
78
83
|
this.watch0Fn();
|
|
79
84
|
}
|
|
80
85
|
watch1Fn() {
|
|
86
|
+
if (this.checked && this.initialized && this._ref) {
|
|
87
|
+
this._ref.checked = true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
watch1() {
|
|
91
|
+
this.watch1Fn();
|
|
92
|
+
}
|
|
93
|
+
watch2Fn() {
|
|
81
94
|
if (this._ref) {
|
|
82
95
|
let controller = this.abortController;
|
|
83
96
|
if (!controller) {
|
|
@@ -96,37 +109,43 @@ const DBRadio = class {
|
|
|
96
109
|
}, controller.signal);
|
|
97
110
|
}
|
|
98
111
|
}
|
|
99
|
-
|
|
100
|
-
this.
|
|
112
|
+
watch2() {
|
|
113
|
+
this.watch2Fn();
|
|
101
114
|
}
|
|
102
115
|
componentDidLoad() {
|
|
103
|
-
var _a;
|
|
104
116
|
this.enableAttributePassing(this._ref, "db-radio");
|
|
105
117
|
this.initialized = true;
|
|
106
|
-
this.
|
|
118
|
+
this.resetIds();
|
|
107
119
|
this.watch0Fn();
|
|
108
120
|
this.watch1Fn();
|
|
121
|
+
this.watch2Fn();
|
|
109
122
|
}
|
|
110
123
|
disconnectedCallback() {
|
|
111
124
|
var _a;
|
|
112
125
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
113
126
|
}
|
|
114
127
|
render() {
|
|
115
|
-
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) => {
|
|
116
129
|
this._ref = el;
|
|
117
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)));
|
|
118
131
|
}
|
|
119
132
|
static get watchers() { return {
|
|
120
|
-
"
|
|
133
|
+
"id": [{
|
|
121
134
|
"watch0": 0
|
|
122
135
|
}],
|
|
123
|
-
"
|
|
136
|
+
"propOverrides?.id": [{
|
|
124
137
|
"watch0": 0
|
|
125
|
-
},
|
|
138
|
+
}],
|
|
139
|
+
"initialized": [{
|
|
126
140
|
"watch1": 0
|
|
127
141
|
}],
|
|
142
|
+
"_ref": [{
|
|
143
|
+
"watch1": 0
|
|
144
|
+
}, {
|
|
145
|
+
"watch2": 0
|
|
146
|
+
}],
|
|
128
147
|
"checked": [{
|
|
129
|
-
"
|
|
148
|
+
"watch1": 0
|
|
130
149
|
}]
|
|
131
150
|
}; }
|
|
132
151
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BjIPMjCM.js';
|
|
2
|
+
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBSection = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -45,9 +45,10 @@ const DBSection = class {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-section");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("section", { key: 'd2cb50a43641ef50d901bd488c7d31911e0f5487', class: cls("db-section", this.className), ref: (el) => {
|
|
49
50
|
this._ref = el;
|
|
50
|
-
}, id: this.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' })));
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
2
|
-
import { l as DEFAULT_INVALID_MESSAGE,
|
|
3
|
-
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-
|
|
4
|
-
import { c as addValueResetEventListener } from './form-components-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-BjIPMjCM.js';
|
|
2
|
+
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, a as DEFAULT_LABEL } from './constants-BdL-nI5y.js';
|
|
3
|
+
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, g as getBooleanAsString, l as getHideProp, c as cls } from './index-xkoBSP8R.js';
|
|
4
|
+
import { c as addValueResetEventListener } from './form-components-D6LQfJvq.js';
|
|
5
5
|
|
|
6
6
|
const DBSelect = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -102,6 +102,15 @@ const DBSelect = class {
|
|
|
102
102
|
// Default: show empty option for non-required selects
|
|
103
103
|
return !this.required;
|
|
104
104
|
}
|
|
105
|
+
resetIds() {
|
|
106
|
+
var _a, _b, _c;
|
|
107
|
+
const mId = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `select-${uuid()}`;
|
|
108
|
+
this._id = mId;
|
|
109
|
+
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
110
|
+
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
111
|
+
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
112
|
+
this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
113
|
+
}
|
|
105
114
|
/**
|
|
106
115
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
107
116
|
* @param element the ref for the component
|
|
@@ -139,16 +148,25 @@ const DBSelect = class {
|
|
|
139
148
|
}
|
|
140
149
|
}
|
|
141
150
|
watch0Fn() {
|
|
151
|
+
var _a, _b;
|
|
152
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
153
|
+
this.resetIds();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
watch0() {
|
|
157
|
+
this.watch0Fn();
|
|
158
|
+
}
|
|
159
|
+
watch1Fn() {
|
|
142
160
|
var _a;
|
|
143
161
|
this._invalidMessage =
|
|
144
162
|
this.invalidMessage ||
|
|
145
163
|
((_a = this._ref) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
146
164
|
DEFAULT_INVALID_MESSAGE;
|
|
147
165
|
}
|
|
148
|
-
|
|
149
|
-
this.
|
|
166
|
+
watch1() {
|
|
167
|
+
this.watch1Fn();
|
|
150
168
|
}
|
|
151
|
-
|
|
169
|
+
watch2Fn() {
|
|
152
170
|
if (this._id && this.initialized) {
|
|
153
171
|
const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
154
172
|
const placeholderId = this._id + DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
@@ -169,16 +187,16 @@ const DBSelect = class {
|
|
|
169
187
|
this.initialized = false;
|
|
170
188
|
}
|
|
171
189
|
}
|
|
172
|
-
watch1() {
|
|
173
|
-
this.watch1Fn();
|
|
174
|
-
}
|
|
175
|
-
watch2Fn() {
|
|
176
|
-
this._value = this.value;
|
|
177
|
-
}
|
|
178
190
|
watch2() {
|
|
179
191
|
this.watch2Fn();
|
|
180
192
|
}
|
|
181
193
|
watch3Fn() {
|
|
194
|
+
this._value = this.value;
|
|
195
|
+
}
|
|
196
|
+
watch3() {
|
|
197
|
+
this.watch3Fn();
|
|
198
|
+
}
|
|
199
|
+
watch4Fn() {
|
|
182
200
|
// If angular uses ngModel value and _value are null
|
|
183
201
|
// then the value will be set afterward and the _ref will be refreshed
|
|
184
202
|
const addResetListener = true;
|
|
@@ -198,24 +216,19 @@ const DBSelect = class {
|
|
|
198
216
|
}, controller.signal);
|
|
199
217
|
}
|
|
200
218
|
}
|
|
201
|
-
|
|
202
|
-
this.
|
|
219
|
+
watch4() {
|
|
220
|
+
this.watch4Fn();
|
|
203
221
|
}
|
|
204
222
|
componentDidLoad() {
|
|
205
|
-
var _a;
|
|
206
223
|
this.enableAttributePassing(this._ref, "db-select");
|
|
207
224
|
this.initialized = true;
|
|
208
|
-
|
|
209
|
-
this._id = mId;
|
|
210
|
-
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
211
|
-
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
212
|
-
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
213
|
-
this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
225
|
+
this.resetIds();
|
|
214
226
|
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
215
227
|
this.watch0Fn();
|
|
216
228
|
this.watch1Fn();
|
|
217
229
|
this.watch2Fn();
|
|
218
230
|
this.watch3Fn();
|
|
231
|
+
this.watch4Fn();
|
|
219
232
|
}
|
|
220
233
|
disconnectedCallback() {
|
|
221
234
|
var _a;
|
|
@@ -223,32 +236,38 @@ const DBSelect = class {
|
|
|
223
236
|
}
|
|
224
237
|
render() {
|
|
225
238
|
var _a, _b, _c, _d, _e;
|
|
226
|
-
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: '197c8e2861449bed151348411043d5acb9c7b57c', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
227
240
|
this._ref = el;
|
|
228
241
|
}, required: getBoolean(this.required, "required"), disabled: getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
229
242
|
/* @ts-ignore */
|
|
230
243
|
value: (_b = this.value) !== null && _b !== void 0 ? _b : this._value, 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": (_c = this.ariaDescribedBy) !== null && _c !== void 0 ? _c : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (h("option", { class: "placeholder", value: "", "data-show-empty-option": getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_d = this.options) === null || _d === void 0 ? void 0 : _d.length) ? ((_e = this.options) === null || _e === void 0 ? void 0 : _e.map((option) => {
|
|
231
244
|
var _a;
|
|
232
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)))));
|
|
233
|
-
})) : (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: '613305a3087d33f6ce2e9a90f6709897067f4355', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '6f3d17afd859cd7f58c64f7d030509478a7fb438', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
234
247
|
}
|
|
235
248
|
static get watchers() { return {
|
|
236
|
-
"
|
|
249
|
+
"id": [{
|
|
250
|
+
"watch0": 0
|
|
251
|
+
}],
|
|
252
|
+
"propOverrides?.id": [{
|
|
237
253
|
"watch0": 0
|
|
254
|
+
}],
|
|
255
|
+
"_ref": [{
|
|
256
|
+
"watch1": 0
|
|
238
257
|
}, {
|
|
239
|
-
"
|
|
258
|
+
"watch4": 0
|
|
240
259
|
}],
|
|
241
260
|
"invalidMessage": [{
|
|
242
|
-
"
|
|
261
|
+
"watch1": 0
|
|
243
262
|
}],
|
|
244
263
|
"_id": [{
|
|
245
|
-
"
|
|
264
|
+
"watch2": 0
|
|
246
265
|
}],
|
|
247
266
|
"initialized": [{
|
|
248
|
-
"
|
|
267
|
+
"watch2": 0
|
|
249
268
|
}],
|
|
250
269
|
"value": [{
|
|
251
|
-
"
|
|
270
|
+
"watch3": 0
|
|
252
271
|
}]
|
|
253
272
|
}; }
|
|
254
273
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BjIPMjCM.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBStack = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -45,9 +45,10 @@ const DBStack = class {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-stack");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("div", { key: 'e8a95918ab5412c03412b92adb3f2a2d5979d492', class: cls("db-stack", this.className), ref: (el) => {
|
|
49
50
|
this._ref = el;
|
|
50
|
-
}, id: this.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' })));
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
54
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BjIPMjCM.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, l as getHideProp, g as getBooleanAsString, c as cls } from './index-
|
|
4
|
-
import { a as addCheckedResetEventListener } from './form-components-
|
|
3
|
+
import { h as hasVoiceOver, d as delay, s as stringPropVisible, u as uuid, e as getBoolean, l as getHideProp, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
4
|
+
import { a as addCheckedResetEventListener } from './form-components-D6LQfJvq.js';
|
|
5
5
|
|
|
6
6
|
const DBSwitch = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -82,6 +82,14 @@ const DBSwitch = class {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
resetIds() {
|
|
86
|
+
var _a, _b, _c;
|
|
87
|
+
const mId = (_c = (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : `switch-${uuid()}`;
|
|
88
|
+
this._id = mId;
|
|
89
|
+
this._messageId = `${mId}${DEFAULT_MESSAGE_ID_SUFFIX}`;
|
|
90
|
+
this._validMessageId = `${mId}${DEFAULT_VALID_MESSAGE_ID_SUFFIX}`;
|
|
91
|
+
this._invalidMessageId = `${mId}${DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`;
|
|
92
|
+
}
|
|
85
93
|
/**
|
|
86
94
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
87
95
|
* @param element the ref for the component
|
|
@@ -119,12 +127,31 @@ const DBSwitch = class {
|
|
|
119
127
|
}
|
|
120
128
|
}
|
|
121
129
|
watch0Fn() {
|
|
122
|
-
|
|
130
|
+
var _a, _b;
|
|
131
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
132
|
+
this.resetIds();
|
|
133
|
+
}
|
|
123
134
|
}
|
|
124
135
|
watch0() {
|
|
125
136
|
this.watch0Fn();
|
|
126
137
|
}
|
|
127
138
|
watch1Fn() {
|
|
139
|
+
this.handleValidation();
|
|
140
|
+
}
|
|
141
|
+
watch1() {
|
|
142
|
+
this.watch1Fn();
|
|
143
|
+
}
|
|
144
|
+
watch2Fn() {
|
|
145
|
+
var _a;
|
|
146
|
+
this._invalidMessage =
|
|
147
|
+
this.invalidMessage ||
|
|
148
|
+
((_a = this._ref) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
149
|
+
DEFAULT_INVALID_MESSAGE;
|
|
150
|
+
}
|
|
151
|
+
watch2() {
|
|
152
|
+
this.watch2Fn();
|
|
153
|
+
}
|
|
154
|
+
watch3Fn() {
|
|
128
155
|
if (this._ref) {
|
|
129
156
|
const defaultChecked = undefined;
|
|
130
157
|
let controller = this.abortController;
|
|
@@ -140,54 +167,63 @@ const DBSwitch = class {
|
|
|
140
167
|
}, controller.signal);
|
|
141
168
|
}
|
|
142
169
|
}
|
|
143
|
-
|
|
144
|
-
this.
|
|
170
|
+
watch3() {
|
|
171
|
+
this.watch3Fn();
|
|
145
172
|
}
|
|
146
173
|
componentDidLoad() {
|
|
147
|
-
var _a;
|
|
148
174
|
this.enableAttributePassing(this._ref, "db-switch");
|
|
149
|
-
this.
|
|
150
|
-
this._messageId = `${this._id}${DEFAULT_MESSAGE_ID_SUFFIX}`;
|
|
151
|
-
this._validMessageId = `${this._id}${DEFAULT_VALID_MESSAGE_ID_SUFFIX}`;
|
|
152
|
-
this._invalidMessageId = `${this._id}${DEFAULT_INVALID_MESSAGE_ID_SUFFIX}`;
|
|
175
|
+
this.resetIds();
|
|
153
176
|
this.handleValidation();
|
|
177
|
+
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
154
178
|
this.watch0Fn();
|
|
155
179
|
this.watch1Fn();
|
|
180
|
+
this.watch2Fn();
|
|
181
|
+
this.watch3Fn();
|
|
156
182
|
}
|
|
157
183
|
disconnectedCallback() {
|
|
158
184
|
var _a;
|
|
159
185
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
160
186
|
}
|
|
161
187
|
render() {
|
|
162
|
-
var _a, _b
|
|
163
|
-
return (h("div", { key: '
|
|
188
|
+
var _a, _b;
|
|
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) => {
|
|
164
190
|
this._ref = el;
|
|
165
|
-
}, 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)));
|
|
166
192
|
}
|
|
167
193
|
static get watchers() { return {
|
|
168
|
-
"
|
|
194
|
+
"id": [{
|
|
169
195
|
"watch0": 0
|
|
170
196
|
}],
|
|
171
|
-
"
|
|
197
|
+
"propOverrides?.id": [{
|
|
172
198
|
"watch0": 0
|
|
173
199
|
}],
|
|
200
|
+
"validation": [{
|
|
201
|
+
"watch1": 0
|
|
202
|
+
}],
|
|
203
|
+
"required": [{
|
|
204
|
+
"watch1": 0
|
|
205
|
+
}],
|
|
174
206
|
"message": [{
|
|
175
|
-
"
|
|
207
|
+
"watch1": 0
|
|
176
208
|
}],
|
|
177
209
|
"showMessage": [{
|
|
178
|
-
"
|
|
210
|
+
"watch1": 0
|
|
179
211
|
}],
|
|
180
212
|
"validMessage": [{
|
|
181
|
-
"
|
|
213
|
+
"watch1": 0
|
|
182
214
|
}],
|
|
183
215
|
"invalidMessage": [{
|
|
184
|
-
"
|
|
216
|
+
"watch1": 0
|
|
217
|
+
}, {
|
|
218
|
+
"watch2": 0
|
|
185
219
|
}],
|
|
186
220
|
"checked": [{
|
|
187
|
-
"
|
|
221
|
+
"watch1": 0
|
|
188
222
|
}],
|
|
189
223
|
"_ref": [{
|
|
190
|
-
"
|
|
224
|
+
"watch2": 0
|
|
225
|
+
}, {
|
|
226
|
+
"watch3": 0
|
|
191
227
|
}]
|
|
192
228
|
}; }
|
|
193
229
|
};
|