@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
|
@@ -45,9 +45,10 @@ export class DBCustomSelectList {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-custom-select-list");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("div", { key: '3c005a8e6605f176226e1eed81c47737498f1d05', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
49
50
|
this._ref = el;
|
|
50
|
-
}, id: this.id }, h("ul", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '59887c5fe0d8e6c3b136e88ee4d8f1f26c580f5b' }, h("slot", { key: '29916aa86adbc98a874f5cee71cf056c705b5f62' }))));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "db-custom-select-list"; }
|
|
53
54
|
static get properties() {
|
|
@@ -130,6 +131,30 @@ export class DBCustomSelectList {
|
|
|
130
131
|
"reflect": false,
|
|
131
132
|
"attribute": "id"
|
|
132
133
|
},
|
|
134
|
+
"propOverrides": {
|
|
135
|
+
"type": "unknown",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "DBCustomSelectListProps[\"propOverrides\"]",
|
|
139
|
+
"resolved": "{ id?: string; }",
|
|
140
|
+
"references": {
|
|
141
|
+
"DBCustomSelectListProps": {
|
|
142
|
+
"location": "import",
|
|
143
|
+
"path": "./model",
|
|
144
|
+
"id": "src/components/custom-select-list/model.ts::DBCustomSelectListProps",
|
|
145
|
+
"referenceLocation": "DBCustomSelectListProps"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": ""
|
|
154
|
+
},
|
|
155
|
+
"getter": false,
|
|
156
|
+
"setter": false
|
|
157
|
+
},
|
|
133
158
|
"className": {
|
|
134
159
|
"type": "string",
|
|
135
160
|
"mutable": false,
|
|
@@ -67,12 +67,13 @@ export class DBCustomSelectListItem {
|
|
|
67
67
|
this.watch0Fn();
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
|
|
70
|
+
var _a, _b;
|
|
71
|
+
return (h("li", { key: '439f87691065d7cf9e8742c3f5aa1ded7f5ac422', class: cls("db-custom-select-list-item", this.className, {
|
|
71
72
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
72
73
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
73
74
|
}), ref: (el) => {
|
|
74
75
|
this._ref = el;
|
|
75
|
-
}, id: this.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
76
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-divider": getBooleanAsString(this.hasDivider) }, !this.isGroupTitle ? (h("label", { "data-icon": this.type !== "checkbox" && this.icon ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-icon-trailing": this.getIconTrailing() }, h("input", { class: "db-custom-select-list-item-checkbox", "data-disable-focus": "true", type: this.type, name: this.name, form: this.name, checked: getBoolean(this.checked, "checked"), disabled: getBoolean(this.disabled, "disabled"), value: this.value, onChange: (event) => this.handleChange(event) }), this.label ? this.label : h("slot", null))) : (h("span", null, this.groupTitle))));
|
|
76
77
|
}
|
|
77
78
|
static get is() { return "db-custom-select-list-item"; }
|
|
78
79
|
static get properties() {
|
|
@@ -207,6 +208,30 @@ export class DBCustomSelectListItem {
|
|
|
207
208
|
"reflect": false,
|
|
208
209
|
"attribute": "id"
|
|
209
210
|
},
|
|
211
|
+
"propOverrides": {
|
|
212
|
+
"type": "unknown",
|
|
213
|
+
"mutable": false,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "DBCustomSelectListItemProps[\"propOverrides\"]",
|
|
216
|
+
"resolved": "{ id?: string; }",
|
|
217
|
+
"references": {
|
|
218
|
+
"DBCustomSelectListItemProps": {
|
|
219
|
+
"location": "import",
|
|
220
|
+
"path": "./model",
|
|
221
|
+
"id": "src/components/custom-select-list-item/model.ts::DBCustomSelectListItemProps",
|
|
222
|
+
"referenceLocation": "DBCustomSelectListItemProps"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": false,
|
|
227
|
+
"optional": false,
|
|
228
|
+
"docs": {
|
|
229
|
+
"tags": [],
|
|
230
|
+
"text": ""
|
|
231
|
+
},
|
|
232
|
+
"getter": false,
|
|
233
|
+
"setter": false
|
|
234
|
+
},
|
|
210
235
|
"className": {
|
|
211
236
|
"type": "string",
|
|
212
237
|
"mutable": false,
|
|
@@ -45,9 +45,10 @@ export class DBDivider {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("div", { key: '5773c14fcdd05f7e4b7b73af32c779133ac1b65b', class: cls("db-divider", this.className), ref: (el) => {
|
|
49
50
|
this._ref = el;
|
|
50
|
-
}, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "db-divider"; }
|
|
53
54
|
static get properties() {
|
|
@@ -78,6 +79,30 @@ export class DBDivider {
|
|
|
78
79
|
"reflect": false,
|
|
79
80
|
"attribute": "id"
|
|
80
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBDividerProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBDividerProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/divider/model.ts::DBDividerProps",
|
|
93
|
+
"referenceLocation": "DBDividerProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
81
106
|
"margin": {
|
|
82
107
|
"type": "string",
|
|
83
108
|
"mutable": false,
|
|
@@ -133,12 +133,12 @@ export class DBDrawer {
|
|
|
133
133
|
this.watch1Fn();
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
var _a;
|
|
137
|
-
return (h("dialog", { key: '
|
|
136
|
+
var _a, _b, _c;
|
|
137
|
+
return (h("dialog", { key: '5980a60cbe0d46868a4a65d853551a25159523f0', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
|
|
138
138
|
this._ref = el;
|
|
139
|
-
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '
|
|
139
|
+
}, onClick: (event) => this.handleClose(event), onKeyDown: (event) => this.handleClose(event), "data-position": this.position, "data-backdrop": this.backdrop, "data-direction": this.direction, "data-variant": this.variant }, h("article", { key: '305ff89261e63e2dbe0640fc9be97b330a4b94cf', class: cls("db-drawer-container", this.className), ref: (el) => {
|
|
140
140
|
this.dialogContainerRef = el;
|
|
141
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '
|
|
141
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: 'fe07654ff3c238c6a0eb2f73ff5f8a035ff9232c', class: "db-drawer-header" }, h("div", { key: '56eff8cf0d755c027bf72e2319e7897ed3b4b51c', class: "db-drawer-header-text" }, h("slot", { key: 'ff8378e26a292c20991899764a927aadd5b35ac8', name: "drawerHeader" })), h("db-button", { key: '5300a384462ceb1ac7ac9272bed2ee34f426ccf2', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: '681bd3593f743539104398e0dbb6628abdd8ae2c', class: "db-drawer-content" }, h("slot", { key: 'ad9f204d5f0b6b44fec8bfc49f8aa361cbb155d7' })))));
|
|
142
142
|
}
|
|
143
143
|
static get is() { return "db-drawer"; }
|
|
144
144
|
static get properties() {
|
|
@@ -273,6 +273,30 @@ export class DBDrawer {
|
|
|
273
273
|
"reflect": false,
|
|
274
274
|
"attribute": "id"
|
|
275
275
|
},
|
|
276
|
+
"propOverrides": {
|
|
277
|
+
"type": "unknown",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "DBDrawerProps[\"propOverrides\"]",
|
|
281
|
+
"resolved": "{ id?: string; }",
|
|
282
|
+
"references": {
|
|
283
|
+
"DBDrawerProps": {
|
|
284
|
+
"location": "import",
|
|
285
|
+
"path": "./model",
|
|
286
|
+
"id": "src/components/drawer/model.ts::DBDrawerProps",
|
|
287
|
+
"referenceLocation": "DBDrawerProps"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": false,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": ""
|
|
296
|
+
},
|
|
297
|
+
"getter": false,
|
|
298
|
+
"setter": false
|
|
299
|
+
},
|
|
276
300
|
"direction": {
|
|
277
301
|
"type": "string",
|
|
278
302
|
"mutable": false,
|
|
@@ -84,10 +84,10 @@ export class DBHeader {
|
|
|
84
84
|
this.watch0Fn();
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
var _a;
|
|
88
|
-
return (h("header", { key: '
|
|
87
|
+
var _a, _b, _c;
|
|
88
|
+
return (h("header", { key: 'b5085e769fbc61e94b0ae0e1cca91db441efc1a5', class: cls("db-header", this.className), ref: (el) => {
|
|
89
89
|
this._ref = el;
|
|
90
|
-
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '
|
|
90
|
+
}, 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" }))))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "db-header"; }
|
|
93
93
|
static get properties() {
|
|
@@ -196,6 +196,30 @@ export class DBHeader {
|
|
|
196
196
|
"reflect": false,
|
|
197
197
|
"attribute": "id"
|
|
198
198
|
},
|
|
199
|
+
"propOverrides": {
|
|
200
|
+
"type": "unknown",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "DBHeaderProps[\"propOverrides\"]",
|
|
204
|
+
"resolved": "{ id?: string; }",
|
|
205
|
+
"references": {
|
|
206
|
+
"DBHeaderProps": {
|
|
207
|
+
"location": "import",
|
|
208
|
+
"path": "./model",
|
|
209
|
+
"id": "src/components/header/model.ts::DBHeaderProps",
|
|
210
|
+
"referenceLocation": "DBHeaderProps"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": ""
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false
|
|
222
|
+
},
|
|
199
223
|
"width": {
|
|
200
224
|
"type": "string",
|
|
201
225
|
"mutable": false,
|
|
@@ -45,9 +45,10 @@ export class DBIcon {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
|
|
48
|
+
var _a, _b;
|
|
49
|
+
return (h("span", { key: '3bef98de9ca12c66f7cce8e11eaa5d895a8d6750', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
49
50
|
this._ref = el;
|
|
50
|
-
}, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
|
|
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)));
|
|
51
52
|
}
|
|
52
53
|
static get is() { return "db-icon"; }
|
|
53
54
|
static get properties() {
|
|
@@ -78,6 +79,30 @@ export class DBIcon {
|
|
|
78
79
|
"reflect": false,
|
|
79
80
|
"attribute": "id"
|
|
80
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBIconProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBIconProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/icon/model.ts::DBIconProps",
|
|
93
|
+
"referenceLocation": "DBIconProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
81
106
|
"className": {
|
|
82
107
|
"type": "string",
|
|
83
108
|
"mutable": false,
|
|
@@ -45,10 +45,10 @@ export class DBInfotext {
|
|
|
45
45
|
this.enableAttributePassing(this._ref, "db-infotext");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
var _a;
|
|
49
|
-
return (h("span", { key: '
|
|
48
|
+
var _a, _b, _c;
|
|
49
|
+
return (h("span", { key: '49219bd5f07042ba66ee28e86aed0536e0f776eb', class: cls("db-infotext", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": getBooleanAsString((
|
|
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
|
}
|
|
53
53
|
static get is() { return "db-infotext"; }
|
|
54
54
|
static get properties() {
|
|
@@ -79,6 +79,30 @@ export class DBInfotext {
|
|
|
79
79
|
"reflect": false,
|
|
80
80
|
"attribute": "id"
|
|
81
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBInfotextProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBInfotextProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/infotext/model.ts::DBInfotextProps",
|
|
93
|
+
"referenceLocation": "DBInfotextProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
82
106
|
"className": {
|
|
83
107
|
"type": "string",
|
|
84
108
|
"mutable": false,
|
|
@@ -183,6 +207,32 @@ export class DBInfotext {
|
|
|
183
207
|
"reflect": false,
|
|
184
208
|
"attribute": "size"
|
|
185
209
|
},
|
|
210
|
+
"wrap": {
|
|
211
|
+
"type": "any",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "DBInfotextProps[\"wrap\"]",
|
|
215
|
+
"resolved": "boolean | string",
|
|
216
|
+
"references": {
|
|
217
|
+
"DBInfotextProps": {
|
|
218
|
+
"location": "import",
|
|
219
|
+
"path": "./model",
|
|
220
|
+
"id": "src/components/infotext/model.ts::DBInfotextProps",
|
|
221
|
+
"referenceLocation": "DBInfotextProps"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": ""
|
|
230
|
+
},
|
|
231
|
+
"getter": false,
|
|
232
|
+
"setter": false,
|
|
233
|
+
"reflect": false,
|
|
234
|
+
"attribute": "wrap"
|
|
235
|
+
},
|
|
186
236
|
"showIcon": {
|
|
187
237
|
"type": "any",
|
|
188
238
|
"mutable": false,
|
|
@@ -84,6 +84,15 @@ export class DBInput {
|
|
|
84
84
|
}))
|
|
85
85
|
: _list) || []);
|
|
86
86
|
}
|
|
87
|
+
resetIds() {
|
|
88
|
+
var _a, _b, _c;
|
|
89
|
+
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 : `input-${uuid()}`;
|
|
90
|
+
this._id = mId;
|
|
91
|
+
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
92
|
+
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
93
|
+
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
94
|
+
this._dataListId = mId + DEFAULT_DATALIST_ID_SUFFIX;
|
|
95
|
+
}
|
|
87
96
|
/**
|
|
88
97
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
89
98
|
* @param element the ref for the component
|
|
@@ -121,16 +130,25 @@ export class DBInput {
|
|
|
121
130
|
}
|
|
122
131
|
}
|
|
123
132
|
watch0Fn() {
|
|
133
|
+
var _a, _b;
|
|
134
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
135
|
+
this.resetIds();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
watch0() {
|
|
139
|
+
this.watch0Fn();
|
|
140
|
+
}
|
|
141
|
+
watch1Fn() {
|
|
124
142
|
var _a;
|
|
125
143
|
this._invalidMessage =
|
|
126
144
|
this.invalidMessage ||
|
|
127
145
|
((_a = this._ref) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
128
146
|
DEFAULT_INVALID_MESSAGE;
|
|
129
147
|
}
|
|
130
|
-
|
|
131
|
-
this.
|
|
148
|
+
watch1() {
|
|
149
|
+
this.watch1Fn();
|
|
132
150
|
}
|
|
133
|
-
|
|
151
|
+
watch2Fn() {
|
|
134
152
|
var _a;
|
|
135
153
|
if (this._id) {
|
|
136
154
|
const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
@@ -145,18 +163,18 @@ export class DBInput {
|
|
|
145
163
|
this.handleValidation();
|
|
146
164
|
}
|
|
147
165
|
}
|
|
148
|
-
|
|
149
|
-
this.
|
|
166
|
+
watch2() {
|
|
167
|
+
this.watch2Fn();
|
|
150
168
|
}
|
|
151
|
-
|
|
169
|
+
watch3Fn() {
|
|
152
170
|
if (this.value !== undefined) {
|
|
153
171
|
this._value = this.value;
|
|
154
172
|
}
|
|
155
173
|
}
|
|
156
|
-
|
|
157
|
-
this.
|
|
174
|
+
watch3() {
|
|
175
|
+
this.watch3Fn();
|
|
158
176
|
}
|
|
159
|
-
|
|
177
|
+
watch4Fn() {
|
|
160
178
|
// If angular uses ngModel value and _value are null
|
|
161
179
|
// then the value will be set afterward and the _ref will be refreshed
|
|
162
180
|
const addResetListener = true;
|
|
@@ -176,23 +194,18 @@ export class DBInput {
|
|
|
176
194
|
}, controller.signal);
|
|
177
195
|
}
|
|
178
196
|
}
|
|
179
|
-
|
|
180
|
-
this.
|
|
197
|
+
watch4() {
|
|
198
|
+
this.watch4Fn();
|
|
181
199
|
}
|
|
182
200
|
componentDidLoad() {
|
|
183
|
-
var _a;
|
|
184
201
|
this.enableAttributePassing(this._ref, "db-input");
|
|
185
|
-
|
|
186
|
-
this._id = mId;
|
|
187
|
-
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
188
|
-
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
189
|
-
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
190
|
-
this._dataListId = mId + DEFAULT_DATALIST_ID_SUFFIX;
|
|
202
|
+
this.resetIds();
|
|
191
203
|
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
192
204
|
this.watch0Fn();
|
|
193
205
|
this.watch1Fn();
|
|
194
206
|
this.watch2Fn();
|
|
195
207
|
this.watch3Fn();
|
|
208
|
+
this.watch4Fn();
|
|
196
209
|
}
|
|
197
210
|
disconnectedCallback() {
|
|
198
211
|
var _a;
|
|
@@ -200,7 +213,7 @@ export class DBInput {
|
|
|
200
213
|
}
|
|
201
214
|
render() {
|
|
202
215
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
203
|
-
return (h("div", { key: '
|
|
216
|
+
return (h("div", { key: '11019c4d0b1eee6662b27c5a3ac9553e0abf846d', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: '0f9044b91e5787d32846d279571359c5d057e1a6', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: 'dfac37e9f7115c015f61ea7db1ac28776a68706e', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
204
217
|
this._ref = el;
|
|
205
218
|
}, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
206
219
|
getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
|
|
@@ -212,16 +225,16 @@ export class DBInput {
|
|
|
212
225
|
"color",
|
|
213
226
|
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
|
|
214
227
|
? "textbox"
|
|
215
|
-
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: '
|
|
228
|
+
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: '24e1c8d5ba95fa035c2fbeba5881776e7b8310f0' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '8c339f6481cf16148115bc8333023b93160f703f', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '1d9bfaf96452dd8487a6e10ada99aec33f6b5e52', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
216
229
|
}
|
|
217
230
|
static get is() { return "db-input"; }
|
|
218
231
|
static get properties() {
|
|
219
232
|
return {
|
|
220
|
-
"
|
|
233
|
+
"invalidMessage": {
|
|
221
234
|
"type": "string",
|
|
222
235
|
"mutable": false,
|
|
223
236
|
"complexType": {
|
|
224
|
-
"original": "DBInputProps[\"
|
|
237
|
+
"original": "DBInputProps[\"invalidMessage\"]",
|
|
225
238
|
"resolved": "string",
|
|
226
239
|
"references": {
|
|
227
240
|
"DBInputProps": {
|
|
@@ -241,13 +254,13 @@ export class DBInput {
|
|
|
241
254
|
"getter": false,
|
|
242
255
|
"setter": false,
|
|
243
256
|
"reflect": false,
|
|
244
|
-
"attribute": "
|
|
257
|
+
"attribute": "invalid-message"
|
|
245
258
|
},
|
|
246
|
-
"
|
|
259
|
+
"id": {
|
|
247
260
|
"type": "string",
|
|
248
261
|
"mutable": false,
|
|
249
262
|
"complexType": {
|
|
250
|
-
"original": "DBInputProps[\"
|
|
263
|
+
"original": "DBInputProps[\"id\"]",
|
|
251
264
|
"resolved": "string",
|
|
252
265
|
"references": {
|
|
253
266
|
"DBInputProps": {
|
|
@@ -267,7 +280,31 @@ export class DBInput {
|
|
|
267
280
|
"getter": false,
|
|
268
281
|
"setter": false,
|
|
269
282
|
"reflect": false,
|
|
270
|
-
"attribute": "
|
|
283
|
+
"attribute": "id"
|
|
284
|
+
},
|
|
285
|
+
"propOverrides": {
|
|
286
|
+
"type": "unknown",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "DBInputProps[\"propOverrides\"]",
|
|
290
|
+
"resolved": "{ id?: string; }",
|
|
291
|
+
"references": {
|
|
292
|
+
"DBInputProps": {
|
|
293
|
+
"location": "import",
|
|
294
|
+
"path": "./model",
|
|
295
|
+
"id": "src/components/input/model.ts::DBInputProps",
|
|
296
|
+
"referenceLocation": "DBInputProps"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": ""
|
|
305
|
+
},
|
|
306
|
+
"getter": false,
|
|
307
|
+
"setter": false
|
|
271
308
|
},
|
|
272
309
|
"dataListId": {
|
|
273
310
|
"type": "string",
|
|
@@ -1570,20 +1607,26 @@ export class DBInput {
|
|
|
1570
1607
|
}
|
|
1571
1608
|
static get watchers() {
|
|
1572
1609
|
return [{
|
|
1573
|
-
"propName": "
|
|
1610
|
+
"propName": "id",
|
|
1574
1611
|
"methodName": "watch0"
|
|
1575
1612
|
}, {
|
|
1576
|
-
"propName": "
|
|
1613
|
+
"propName": "propOverrides?.id",
|
|
1577
1614
|
"methodName": "watch0"
|
|
1578
1615
|
}, {
|
|
1579
|
-
"propName": "
|
|
1616
|
+
"propName": "_ref",
|
|
1580
1617
|
"methodName": "watch1"
|
|
1581
1618
|
}, {
|
|
1582
|
-
"propName": "
|
|
1619
|
+
"propName": "invalidMessage",
|
|
1620
|
+
"methodName": "watch1"
|
|
1621
|
+
}, {
|
|
1622
|
+
"propName": "_id",
|
|
1583
1623
|
"methodName": "watch2"
|
|
1584
1624
|
}, {
|
|
1585
|
-
"propName": "
|
|
1625
|
+
"propName": "value",
|
|
1586
1626
|
"methodName": "watch3"
|
|
1627
|
+
}, {
|
|
1628
|
+
"propName": "_ref",
|
|
1629
|
+
"methodName": "watch4"
|
|
1587
1630
|
}];
|
|
1588
1631
|
}
|
|
1589
1632
|
}
|
|
@@ -45,10 +45,10 @@ export class DBLink {
|
|
|
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
|
static get is() { return "db-link"; }
|
|
54
54
|
static get properties() {
|
|
@@ -79,6 +79,30 @@ export class DBLink {
|
|
|
79
79
|
"reflect": false,
|
|
80
80
|
"attribute": "id"
|
|
81
81
|
},
|
|
82
|
+
"propOverrides": {
|
|
83
|
+
"type": "unknown",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "DBLinkProps[\"propOverrides\"]",
|
|
87
|
+
"resolved": "{ id?: string; }",
|
|
88
|
+
"references": {
|
|
89
|
+
"DBLinkProps": {
|
|
90
|
+
"location": "import",
|
|
91
|
+
"path": "./model",
|
|
92
|
+
"id": "src/components/link/model.ts::DBLinkProps",
|
|
93
|
+
"referenceLocation": "DBLinkProps"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false
|
|
105
|
+
},
|
|
82
106
|
"className": {
|
|
83
107
|
"type": "string",
|
|
84
108
|
"mutable": false,
|