@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,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_vrmAD6.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var documentClickListener = require('./document-click-listener-
|
|
7
|
-
var documentScrollListener = require('./document-scroll-listener-
|
|
8
|
-
var floatingComponents = require('./floating-components-
|
|
9
|
-
var formComponents = require('./form-components-
|
|
5
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
|
+
var documentClickListener = require('./document-click-listener-B2-xKJv3.js');
|
|
7
|
+
var documentScrollListener = require('./document-scroll-listener-ChQ7XZRk.js');
|
|
8
|
+
var floatingComponents = require('./floating-components-DlstoCKH.js');
|
|
9
|
+
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
10
10
|
|
|
11
11
|
const DBCustomSelect = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -327,10 +327,14 @@ const DBCustomSelect = class {
|
|
|
327
327
|
else if (this.detailsRef.open && event) {
|
|
328
328
|
if (event.relatedTarget) {
|
|
329
329
|
const relatedTarget = event.relatedTarget;
|
|
330
|
-
if
|
|
330
|
+
// We close if the focus is on something like a <button> etc. which is not inside the <details> element
|
|
331
|
+
// Inside a <dialog> there is some focus problem because of the top-layer
|
|
332
|
+
// We do not want to focus <dialog> itself
|
|
333
|
+
if (!this.detailsRef.contains(relatedTarget) &&
|
|
334
|
+
relatedTarget.localName !== "dialog") {
|
|
331
335
|
// We need to use delay here because the combination of `contains`
|
|
332
336
|
// and changing the DOM element causes a race condition inside browser
|
|
333
|
-
index$1.delay(() => (this.detailsRef.open = false), 1);
|
|
337
|
+
void index$1.delay(() => (this.detailsRef.open = false), 1);
|
|
334
338
|
}
|
|
335
339
|
}
|
|
336
340
|
}
|
|
@@ -468,6 +472,20 @@ const DBCustomSelect = class {
|
|
|
468
472
|
(_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
469
473
|
}
|
|
470
474
|
}
|
|
475
|
+
resetIds() {
|
|
476
|
+
var _a, _b, _c;
|
|
477
|
+
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 : `custom-select-${index$1.uuid()}`;
|
|
478
|
+
this._id = mId;
|
|
479
|
+
this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
480
|
+
this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
481
|
+
this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
482
|
+
this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
|
|
483
|
+
this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
|
|
484
|
+
this._summaryId = mId + "-summary";
|
|
485
|
+
this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
486
|
+
this._selectedLabelsId = mId + "-selected-labels";
|
|
487
|
+
this._infoTextId = mId + "-info";
|
|
488
|
+
}
|
|
471
489
|
/**
|
|
472
490
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
473
491
|
* @param element the ref for the component
|
|
@@ -505,14 +523,23 @@ const DBCustomSelect = class {
|
|
|
505
523
|
}
|
|
506
524
|
}
|
|
507
525
|
watch0Fn() {
|
|
508
|
-
|
|
509
|
-
|
|
526
|
+
var _a, _b;
|
|
527
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
528
|
+
this.resetIds();
|
|
510
529
|
}
|
|
511
530
|
}
|
|
512
531
|
watch0() {
|
|
513
532
|
this.watch0Fn();
|
|
514
533
|
}
|
|
515
534
|
watch1Fn() {
|
|
535
|
+
if (this.detailsRef) {
|
|
536
|
+
this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
watch1() {
|
|
540
|
+
this.watch1Fn();
|
|
541
|
+
}
|
|
542
|
+
watch2Fn() {
|
|
516
543
|
if (this._id) {
|
|
517
544
|
const messageId = this._id + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
518
545
|
this._labelId = this._id + constants.DEFAULT_LABEL_ID_SUFFIX;
|
|
@@ -528,10 +555,10 @@ const DBCustomSelect = class {
|
|
|
528
555
|
}
|
|
529
556
|
}
|
|
530
557
|
}
|
|
531
|
-
|
|
532
|
-
this.
|
|
558
|
+
watch2() {
|
|
559
|
+
this.watch2Fn();
|
|
533
560
|
}
|
|
534
|
-
|
|
561
|
+
watch3Fn() {
|
|
535
562
|
var _a;
|
|
536
563
|
if (this.detailsRef) {
|
|
537
564
|
const summary = this.detailsRef.querySelector("summary");
|
|
@@ -540,10 +567,10 @@ const DBCustomSelect = class {
|
|
|
540
567
|
}
|
|
541
568
|
}
|
|
542
569
|
}
|
|
543
|
-
|
|
544
|
-
this.
|
|
570
|
+
watch3() {
|
|
571
|
+
this.watch3Fn();
|
|
545
572
|
}
|
|
546
|
-
|
|
573
|
+
watch4Fn() {
|
|
547
574
|
if (this.showNoResults !== undefined) {
|
|
548
575
|
this._hasNoOptions = this.showNoResults;
|
|
549
576
|
}
|
|
@@ -551,24 +578,24 @@ const DBCustomSelect = class {
|
|
|
551
578
|
this._hasNoOptions = this._options.length === 0;
|
|
552
579
|
}
|
|
553
580
|
}
|
|
554
|
-
watch3() {
|
|
555
|
-
this.watch3Fn();
|
|
556
|
-
}
|
|
557
|
-
watch4Fn() {
|
|
558
|
-
var _a;
|
|
559
|
-
this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
|
|
560
|
-
}
|
|
561
581
|
watch4() {
|
|
562
582
|
this.watch4Fn();
|
|
563
583
|
}
|
|
564
584
|
watch5Fn() {
|
|
565
585
|
var _a;
|
|
566
|
-
this.
|
|
586
|
+
this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
|
|
567
587
|
}
|
|
568
588
|
watch5() {
|
|
569
589
|
this.watch5Fn();
|
|
570
590
|
}
|
|
571
591
|
watch6Fn() {
|
|
592
|
+
var _a;
|
|
593
|
+
this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
|
|
594
|
+
}
|
|
595
|
+
watch6() {
|
|
596
|
+
this.watch6Fn();
|
|
597
|
+
}
|
|
598
|
+
watch7Fn() {
|
|
572
599
|
var _a;
|
|
573
600
|
const v = this.values;
|
|
574
601
|
if (Array.isArray(v)) {
|
|
@@ -580,18 +607,18 @@ const DBCustomSelect = class {
|
|
|
580
607
|
this._values = [];
|
|
581
608
|
}
|
|
582
609
|
}
|
|
583
|
-
|
|
584
|
-
this.
|
|
610
|
+
watch7() {
|
|
611
|
+
this.watch7Fn();
|
|
585
612
|
}
|
|
586
|
-
|
|
613
|
+
watch8Fn() {
|
|
587
614
|
if (this.selectRef) {
|
|
588
615
|
this.handleValidation();
|
|
589
616
|
}
|
|
590
617
|
}
|
|
591
|
-
|
|
592
|
-
this.
|
|
618
|
+
watch8() {
|
|
619
|
+
this.watch8Fn();
|
|
593
620
|
}
|
|
594
|
-
|
|
621
|
+
watch9Fn() {
|
|
595
622
|
if (this.selectRef) {
|
|
596
623
|
let controller = this.abortController;
|
|
597
624
|
if (!controller) {
|
|
@@ -610,16 +637,16 @@ const DBCustomSelect = class {
|
|
|
610
637
|
}, controller.signal);
|
|
611
638
|
}
|
|
612
639
|
}
|
|
613
|
-
watch8() {
|
|
614
|
-
this.watch8Fn();
|
|
615
|
-
}
|
|
616
|
-
watch9Fn() {
|
|
617
|
-
this._validity = this.validation;
|
|
618
|
-
}
|
|
619
640
|
watch9() {
|
|
620
641
|
this.watch9Fn();
|
|
621
642
|
}
|
|
622
643
|
watch10Fn() {
|
|
644
|
+
this._validity = this.validation;
|
|
645
|
+
}
|
|
646
|
+
watch10() {
|
|
647
|
+
this.watch10Fn();
|
|
648
|
+
}
|
|
649
|
+
watch11Fn() {
|
|
623
650
|
var _a, _b;
|
|
624
651
|
if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
625
652
|
this.selectAllChecked = false;
|
|
@@ -633,29 +660,29 @@ const DBCustomSelect = class {
|
|
|
633
660
|
this.selectAllIndeterminate = true;
|
|
634
661
|
}
|
|
635
662
|
}
|
|
636
|
-
|
|
637
|
-
this.
|
|
663
|
+
watch11() {
|
|
664
|
+
this.watch11Fn();
|
|
638
665
|
}
|
|
639
|
-
|
|
666
|
+
watch12Fn() {
|
|
640
667
|
var _a, _b;
|
|
641
668
|
this._options = this.options;
|
|
642
669
|
this.amountOptions =
|
|
643
670
|
(_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
|
|
644
671
|
}
|
|
645
|
-
|
|
646
|
-
this.
|
|
672
|
+
watch12() {
|
|
673
|
+
this.watch12Fn();
|
|
647
674
|
}
|
|
648
|
-
|
|
675
|
+
watch13Fn() {
|
|
649
676
|
this._searchValue = this.searchValue;
|
|
650
677
|
if (this.searchValue) {
|
|
651
678
|
const sValue = this.searchValue; // <- workaround for Angular
|
|
652
679
|
this.handleSearch(sValue);
|
|
653
680
|
}
|
|
654
681
|
}
|
|
655
|
-
|
|
656
|
-
this.
|
|
682
|
+
watch13() {
|
|
683
|
+
this.watch13Fn();
|
|
657
684
|
}
|
|
658
|
-
|
|
685
|
+
watch14Fn() {
|
|
659
686
|
var _a, _b;
|
|
660
687
|
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
|
|
661
688
|
this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
|
|
@@ -667,10 +694,10 @@ const DBCustomSelect = class {
|
|
|
667
694
|
});
|
|
668
695
|
}
|
|
669
696
|
}
|
|
670
|
-
|
|
671
|
-
this.
|
|
697
|
+
watch14() {
|
|
698
|
+
this.watch14Fn();
|
|
672
699
|
}
|
|
673
|
-
|
|
700
|
+
watch15Fn() {
|
|
674
701
|
var _a, _b, _c;
|
|
675
702
|
if (this.selectedLabels) {
|
|
676
703
|
this._selectedLabels = this.selectedLabels;
|
|
@@ -697,50 +724,39 @@ const DBCustomSelect = class {
|
|
|
697
724
|
this._selectedLabels = "";
|
|
698
725
|
}
|
|
699
726
|
}
|
|
700
|
-
|
|
701
|
-
this.
|
|
727
|
+
watch15() {
|
|
728
|
+
this.watch15Fn();
|
|
702
729
|
}
|
|
703
|
-
|
|
730
|
+
watch16Fn() {
|
|
704
731
|
var _a, _b;
|
|
705
732
|
if (this.amountChange) {
|
|
706
733
|
this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
|
|
707
734
|
}
|
|
708
735
|
}
|
|
709
|
-
|
|
710
|
-
this.
|
|
736
|
+
watch16() {
|
|
737
|
+
this.watch16Fn();
|
|
711
738
|
}
|
|
712
|
-
|
|
739
|
+
watch17Fn() {
|
|
713
740
|
if (this.selectAllRef) {
|
|
714
741
|
this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
|
|
715
742
|
}
|
|
716
743
|
}
|
|
717
|
-
|
|
718
|
-
this.
|
|
744
|
+
watch17() {
|
|
745
|
+
this.watch17Fn();
|
|
719
746
|
}
|
|
720
|
-
|
|
747
|
+
watch18Fn() {
|
|
721
748
|
var _a;
|
|
722
749
|
this._invalidMessage =
|
|
723
750
|
this.invalidMessage ||
|
|
724
751
|
((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
725
752
|
constants.DEFAULT_INVALID_MESSAGE;
|
|
726
753
|
}
|
|
727
|
-
|
|
728
|
-
this.
|
|
754
|
+
watch18() {
|
|
755
|
+
this.watch18Fn();
|
|
729
756
|
}
|
|
730
757
|
componentDidLoad() {
|
|
731
|
-
var _a;
|
|
732
758
|
this.enableAttributePassing(this._ref, "db-custom-select");
|
|
733
|
-
|
|
734
|
-
this._id = mId;
|
|
735
|
-
this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
736
|
-
this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
737
|
-
this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
738
|
-
this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
|
|
739
|
-
this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
|
|
740
|
-
this._summaryId = mId + "-summary";
|
|
741
|
-
this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
742
|
-
this._selectedLabelsId = mId + "-selected-labels";
|
|
743
|
-
this._infoTextId = mId + "-info";
|
|
759
|
+
this.resetIds();
|
|
744
760
|
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
745
761
|
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
746
762
|
this._observer = new IntersectionObserver((payload) => {
|
|
@@ -770,6 +786,7 @@ const DBCustomSelect = class {
|
|
|
770
786
|
this.watch15Fn();
|
|
771
787
|
this.watch16Fn();
|
|
772
788
|
this.watch17Fn();
|
|
789
|
+
this.watch18Fn();
|
|
773
790
|
}
|
|
774
791
|
disconnectedCallback() {
|
|
775
792
|
var _a;
|
|
@@ -777,19 +794,19 @@ const DBCustomSelect = class {
|
|
|
777
794
|
}
|
|
778
795
|
render() {
|
|
779
796
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
780
|
-
return (index.h("div", { key: '
|
|
797
|
+
return (index.h("div", { key: '04344ea736f4311c09459970f6c743516c0a45ba', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
781
798
|
this._ref = el;
|
|
782
799
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
783
800
|
this.selectedType === "tag" &&
|
|
784
801
|
this.multiple
|
|
785
802
|
? "above"
|
|
786
|
-
: this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: '
|
|
803
|
+
: this.variant, "data-required": index$1.getBooleanAsString(this.required), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": index$1.getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: 'ed856ad29b0f840ebe37c8edf275267efc780f2c', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '093be2cd13041a45a95664e083125f5e4e8c2689', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
787
804
|
this.selectRef = el;
|
|
788
805
|
}, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: index$1.getBoolean(this.multiple, "multiple"), disabled: index$1.getBoolean(this.disabled, "disabled"), required: index$1.getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
789
806
|
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
|
|
790
|
-
: null)), index.h("details", { key: '
|
|
807
|
+
: null)), index.h("details", { key: 'e0617c55fb94a72432719b485d922d87cca58d40', ref: (el) => {
|
|
791
808
|
this.detailsRef = el;
|
|
792
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '
|
|
809
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '4a4754177ce637816734d8e195d1d34b0e4a9707' }), this.options ? (index.h(index.Fragment, null, index.h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (index.h("span", { "data-visually-hidden": index$1.getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (index.h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (index.h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option) => (index.h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event), key: undefined }, this.getOptionLabel(option)))))) : null), index.h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (index.h("div", null, index.h("db-input", { type: "search", ref: (el) => {
|
|
793
810
|
this.searchInputRef = el;
|
|
794
811
|
}, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : constants.DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
|
|
795
812
|
? this._infoTextId
|
|
@@ -799,98 +816,104 @@ const DBCustomSelect = class {
|
|
|
799
816
|
this.selectAllRef = el;
|
|
800
817
|
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, index.h("db-custom-select-list", { multiple: index$1.getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : constants.DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (index.h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
|
|
801
818
|
? this.getOptionLabel(option)
|
|
802
|
-
: null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '
|
|
819
|
+
: null)))))), index.h("div", null, index.h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: 'ea3f5751609a4383f9d381cfbc7947a4b0192880', class: "db-custom-select-placeholder", "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: 'd8733256a74ba4876d4080a27798f01264d6472d', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '4ca046467d7da79ac48f0e1dddf2712ef2a93074', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
803
820
|
}
|
|
804
821
|
static get watchers() { return {
|
|
805
|
-
"
|
|
822
|
+
"id": [{
|
|
806
823
|
"watch0": 0
|
|
824
|
+
}],
|
|
825
|
+
"propOverrides?.id": [{
|
|
826
|
+
"watch0": 0
|
|
827
|
+
}],
|
|
828
|
+
"detailsRef": [{
|
|
829
|
+
"watch1": 0
|
|
807
830
|
}, {
|
|
808
|
-
"
|
|
831
|
+
"watch3": 0
|
|
809
832
|
}],
|
|
810
833
|
"_id": [{
|
|
811
|
-
"
|
|
834
|
+
"watch2": 0
|
|
812
835
|
}],
|
|
813
836
|
"_descByIds": [{
|
|
814
|
-
"
|
|
837
|
+
"watch3": 0
|
|
815
838
|
}],
|
|
816
839
|
"showNoResults": [{
|
|
817
|
-
"
|
|
840
|
+
"watch4": 0
|
|
818
841
|
}],
|
|
819
842
|
"showLoading": [{
|
|
820
|
-
"
|
|
843
|
+
"watch4": 0
|
|
821
844
|
}],
|
|
822
845
|
"_options": [{
|
|
823
|
-
"
|
|
846
|
+
"watch4": 0
|
|
824
847
|
}],
|
|
825
848
|
"showSelectAll": [{
|
|
826
|
-
"
|
|
849
|
+
"watch5": 0
|
|
827
850
|
}],
|
|
828
851
|
"amountOptions": [{
|
|
829
|
-
"watch4": 0
|
|
830
|
-
}, {
|
|
831
852
|
"watch5": 0
|
|
832
853
|
}, {
|
|
833
|
-
"
|
|
854
|
+
"watch6": 0
|
|
855
|
+
}, {
|
|
856
|
+
"watch11": 0
|
|
834
857
|
}],
|
|
835
858
|
"multiple": [{
|
|
836
|
-
"
|
|
859
|
+
"watch5": 0
|
|
837
860
|
}],
|
|
838
861
|
"showSearch": [{
|
|
839
|
-
"
|
|
862
|
+
"watch6": 0
|
|
840
863
|
}],
|
|
841
864
|
"values": [{
|
|
842
|
-
"
|
|
865
|
+
"watch7": 0
|
|
843
866
|
}],
|
|
844
867
|
"_values": [{
|
|
845
|
-
"
|
|
868
|
+
"watch8": 0
|
|
846
869
|
}, {
|
|
847
|
-
"
|
|
870
|
+
"watch11": 0
|
|
848
871
|
}, {
|
|
849
|
-
"
|
|
872
|
+
"watch14": 0
|
|
850
873
|
}],
|
|
851
874
|
"selectRef": [{
|
|
852
|
-
"watch7": 0
|
|
853
|
-
}, {
|
|
854
875
|
"watch8": 0
|
|
855
876
|
}, {
|
|
856
|
-
"
|
|
877
|
+
"watch9": 0
|
|
878
|
+
}, {
|
|
879
|
+
"watch18": 0
|
|
857
880
|
}],
|
|
858
881
|
"validation": [{
|
|
859
|
-
"
|
|
882
|
+
"watch10": 0
|
|
860
883
|
}],
|
|
861
884
|
"options": [{
|
|
862
|
-
"
|
|
885
|
+
"watch12": 0
|
|
863
886
|
}, {
|
|
864
|
-
"
|
|
887
|
+
"watch14": 0
|
|
865
888
|
}],
|
|
866
889
|
"searchValue": [{
|
|
867
|
-
"
|
|
890
|
+
"watch13": 0
|
|
868
891
|
}],
|
|
869
892
|
"_selectedOptions": [{
|
|
870
|
-
"watch14": 0
|
|
871
|
-
}, {
|
|
872
893
|
"watch15": 0
|
|
894
|
+
}, {
|
|
895
|
+
"watch16": 0
|
|
873
896
|
}],
|
|
874
897
|
"selectedType": [{
|
|
875
|
-
"
|
|
898
|
+
"watch15": 0
|
|
876
899
|
}],
|
|
877
900
|
"amountText": [{
|
|
878
|
-
"
|
|
901
|
+
"watch15": 0
|
|
879
902
|
}],
|
|
880
903
|
"selectedLabels": [{
|
|
881
|
-
"
|
|
904
|
+
"watch15": 0
|
|
882
905
|
}],
|
|
883
906
|
"transformSelectedLabels": [{
|
|
884
|
-
"
|
|
907
|
+
"watch15": 0
|
|
885
908
|
}],
|
|
886
909
|
"selectAllIndeterminate": [{
|
|
887
|
-
"
|
|
910
|
+
"watch17": 0
|
|
888
911
|
}],
|
|
889
912
|
"selectAllRef": [{
|
|
890
|
-
"
|
|
913
|
+
"watch17": 0
|
|
891
914
|
}],
|
|
892
915
|
"invalidMessage": [{
|
|
893
|
-
"
|
|
916
|
+
"watch18": 0
|
|
894
917
|
}]
|
|
895
918
|
}; }
|
|
896
919
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-D_vrmAD6.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBDivider = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -47,9 +47,10 @@ const DBDivider = class {
|
|
|
47
47
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (index.h("div", { key: '5773c14fcdd05f7e4b7b73af32c779133ac1b65b', class: index$1.cls("db-divider", this.className), ref: (el) => {
|
|
51
52
|
this._ref = el;
|
|
52
|
-
}, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
53
|
+
}, 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 }));
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_vrmAD6.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
|
|
7
7
|
const DBDrawer = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -134,12 +134,12 @@ const DBDrawer = class {
|
|
|
134
134
|
this.watch1Fn();
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
|
-
var _a;
|
|
138
|
-
return (index.h("dialog", { key: '
|
|
137
|
+
var _a, _b, _c;
|
|
138
|
+
return (index.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) => {
|
|
139
139
|
this._ref = el;
|
|
140
|
-
}, 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 }, index.h("article", { key: '
|
|
140
|
+
}, 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 }, index.h("article", { key: '305ff89261e63e2dbe0640fc9be97b330a4b94cf', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
|
|
141
141
|
this.dialogContainerRef = el;
|
|
142
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: '
|
|
142
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'fe07654ff3c238c6a0eb2f73ff5f8a035ff9232c', class: "db-drawer-header" }, index.h("div", { key: '56eff8cf0d755c027bf72e2319e7897ed3b4b51c', class: "db-drawer-header-text" }, index.h("slot", { key: 'ff8378e26a292c20991899764a927aadd5b35ac8', name: "drawerHeader" })), index.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 : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: '681bd3593f743539104398e0dbb6628abdd8ae2c', class: "db-drawer-content" }, index.h("slot", { key: 'ad9f204d5f0b6b44fec8bfc49f8aa361cbb155d7' })))));
|
|
143
143
|
}
|
|
144
144
|
static get watchers() { return {
|
|
145
145
|
"open": [{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-D_vrmAD6.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var navigation = require('./navigation-
|
|
7
|
-
require('./floating-components-
|
|
5
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
|
+
var navigation = require('./navigation-Bah882nU.js');
|
|
7
|
+
require('./floating-components-DlstoCKH.js');
|
|
8
8
|
|
|
9
9
|
const DBHeader = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -83,10 +83,10 @@ const DBHeader = class {
|
|
|
83
83
|
this.watch0Fn();
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
var _a;
|
|
87
|
-
return (index.h("header", { key: '
|
|
86
|
+
var _a, _b, _c;
|
|
87
|
+
return (index.h("header", { key: 'b5085e769fbc61e94b0ae0e1cca91db441efc1a5', class: index$1.cls("db-header", this.className), ref: (el) => {
|
|
88
88
|
this._ref = el;
|
|
89
|
-
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: '
|
|
89
|
+
}, 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 }, index.h("db-drawer", { key: 'a47facce9c8108126495c77d37a487cd34fe0ecb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: index$1.getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, index.h("div", { key: 'cda6c2d0070ce377af2bd5ca4b77459a94350df5', class: "db-header-drawer-navigation" }, index.h("div", { key: '15713a6e12680039ca79f27ec4a1000b120af4fd', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: 'e553fe01864f6a23e12edb336ddfabae78ca4f74' })), index.h("div", { key: '73339268263f22638ce7e7cde00369f58a279d62', class: "db-header-meta-navigation" }, index.h("slot", { key: 'deffe76713c7ad062821f83a34ad1c0530acff6c', name: "metaNavigation" }))), index.h("div", { key: '42f61529aa00d9422cac6c8d5ae2588d0eb4760d', class: "db-header-secondary-action" }, index.h("slot", { key: '3273017c0520401367809b3e39e1d642b92bec50', name: "secondaryAction" }))), index.h("div", { key: '26b07d2244c291b78daa6dd2bc39ce2ee93d8674', class: "db-header-meta-navigation" }, index.h("slot", { key: '4adfd5ac044acbb161a26e9e033a1483991842c6', name: "metaNavigation" })), index.h("div", { key: '6a9709c60965315e7ecffb41ea4aac8caf986086', class: "db-header-navigation-bar" }, index.h("div", { key: '6eca84e588432ec968d4aed685d0dda4053b08a9', class: "db-header-brand-container" }, index.h("slot", { key: 'c034633ed87c6c554621e275b6d98d1d1628265c', name: "brand" })), index.h("div", { key: '04766e92142de2cd49a08711e7ad627b0cef14bd', class: "db-header-navigation-container" }, index.h("div", { key: 'fa4a5f6deab5edf3e1acf6e67d73ce06e638ae02', class: "db-header-navigation" }, index.h("slot", { key: '192fbdd2773ab46f2e4800d919a2ace97c9f5ef2' })), index.h("div", { key: '3bf503b08a862dbca679c198916da4be7228c528', class: "db-header-primary-action" }, index.h("slot", { key: '2ab7194da0568d92c85d47ecbf4e34aa4a734d00', name: "primaryAction" }))), index.h("div", { key: 'f45dbbf3346e8bf533a4af7c82e754fe0a679082', class: "db-header-action-container" }, index.h("div", { key: '7dfcd81988888a0595b94e15ba963abcfb1200ea', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '52e71ba370d564b8739966643adf2ccce5e48bcb', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: '54cf3d9d67d7be42f6b06227100abb337deb396d', class: "db-header-secondary-action" }, index.h("slot", { key: 'fc0a9946c1fd478c57e73f4c3b5b6ae0600101b8', name: "secondaryAction" }))))));
|
|
90
90
|
}
|
|
91
91
|
static get watchers() { return {
|
|
92
92
|
"initialized": [{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-D_vrmAD6.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBIcon = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -47,9 +47,10 @@ const DBIcon = class {
|
|
|
47
47
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (index.h("span", { key: '3bef98de9ca12c66f7cce8e11eaa5d895a8d6750', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
51
52
|
this._ref = el;
|
|
52
|
-
}, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : index.h("slot", null)));
|
|
53
|
+
}, 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 : index.h("slot", null)));
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-D_vrmAD6.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBInfotext = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -47,10 +47,10 @@ const DBInfotext = class {
|
|
|
47
47
|
this.enableAttributePassing(this._ref, "db-infotext");
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
var _a;
|
|
51
|
-
return (index.h("span", { key: '
|
|
50
|
+
var _a, _b, _c;
|
|
51
|
+
return (index.h("span", { key: '49219bd5f07042ba66ee28e86aed0536e0f776eb', class: index$1.cls("db-infotext", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
|
-
}, id: this.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-show-icon-leading": index$1.getBooleanAsString((
|
|
53
|
+
}, 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": index$1.getBooleanAsString(this.wrap), "data-show-icon-leading": index$1.getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : index.h("slot", null)));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|