@db-ux/wc-core-components 4.4.2 → 4.5.0
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 +20 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +11 -6
- package/dist/cjs/db-accordion.cjs.entry.js +12 -8
- package/dist/cjs/db-badge.cjs.entry.js +11 -7
- package/dist/cjs/db-brand.cjs.entry.js +11 -7
- package/dist/cjs/db-button.cjs.entry.js +11 -7
- package/dist/cjs/db-card.cjs.entry.js +11 -6
- package/dist/cjs/db-checkbox.cjs.entry.js +59 -36
- package/dist/cjs/db-custom-button.cjs.entry.js +57 -0
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +89 -47
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +11 -6
- package/dist/cjs/db-custom-select.cjs.entry.js +133 -110
- package/dist/cjs/db-divider.cjs.entry.js +11 -6
- package/dist/cjs/db-drawer.cjs.entry.js +12 -8
- package/dist/cjs/db-header.cjs.entry.js +13 -9
- package/dist/cjs/db-icon.cjs.entry.js +11 -6
- package/dist/cjs/db-infotext.cjs.entry.js +11 -7
- package/dist/cjs/db-link.cjs.entry.js +11 -7
- package/dist/cjs/db-navigation-item.cjs.entry.js +13 -9
- package/dist/cjs/db-navigation.cjs.entry.js +11 -6
- package/dist/cjs/db-notification.cjs.entry.js +12 -8
- package/dist/cjs/db-page.cjs.entry.js +11 -6
- package/dist/cjs/db-popover.cjs.entry.js +14 -10
- package/dist/cjs/db-radio.cjs.entry.js +39 -16
- package/dist/cjs/db-section.cjs.entry.js +11 -6
- package/dist/cjs/db-select.cjs.entry.js +54 -31
- package/dist/cjs/db-stack.cjs.entry.js +11 -6
- package/dist/cjs/db-switch.cjs.entry.js +64 -24
- package/dist/cjs/db-tab-item_3.cjs.entry.js +29 -15
- package/dist/cjs/db-tabs.cjs.entry.js +12 -8
- package/dist/cjs/db-textarea.cjs.entry.js +52 -29
- package/dist/cjs/db-tooltip.cjs.entry.js +25 -12
- 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-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
- 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-CEqZnn9s.js → index-CSMPhlzz.js} +2 -2
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{navigation-DauGE-qj.js → navigation-BztJmEHf.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/accordion/accordion.js +34 -6
- package/dist/collection/components/accordion-item/accordion-item.js +33 -4
- package/dist/collection/components/badge/badge.js +60 -6
- package/dist/collection/components/brand/brand.js +33 -5
- package/dist/collection/components/button/button.js +59 -5
- package/dist/collection/components/card/card.js +33 -4
- package/dist/collection/components/checkbox/checkbox.js +87 -40
- 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 +157 -110
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +33 -4
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +33 -4
- package/dist/collection/components/custom-select-list/custom-select-list.js +33 -4
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +33 -4
- package/dist/collection/components/divider/divider.js +33 -4
- package/dist/collection/components/drawer/drawer.js +34 -6
- package/dist/collection/components/header/header.js +33 -5
- package/dist/collection/components/icon/icon.js +33 -4
- package/dist/collection/components/infotext/infotext.js +59 -5
- package/dist/collection/components/input/input.js +80 -33
- package/dist/collection/components/link/link.js +33 -5
- package/dist/collection/components/navigation/navigation.js +33 -4
- package/dist/collection/components/navigation-item/navigation-item.js +33 -5
- package/dist/collection/components/notification/notification.js +34 -6
- package/dist/collection/components/page/page.js +33 -4
- package/dist/collection/components/popover/popover.js +34 -6
- package/dist/collection/components/radio/radio.js +60 -13
- package/dist/collection/components/section/section.js +33 -4
- package/dist/collection/components/select/select.js +81 -34
- package/dist/collection/components/stack/stack.js +33 -4
- package/dist/collection/components/switch/switch.js +118 -50
- package/dist/collection/components/tab-item/tab-item.js +33 -5
- package/dist/collection/components/tab-list/tab-list.js +33 -4
- package/dist/collection/components/tab-panel/tab-panel.js +33 -4
- package/dist/collection/components/tabs/tabs.js +34 -6
- package/dist/collection/components/tag/tag.js +33 -5
- package/dist/collection/components/textarea/textarea.js +79 -32
- package/dist/collection/components/tooltip/tooltip.js +71 -8
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/floating-components.js +65 -15
- package/dist/collection/utils/index.js +6 -7
- package/dist/custom-elements.json +19735 -1796
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/p-00df7d53.entry.js +1 -0
- package/dist/db-ux/p-064ddad6.entry.js +1 -0
- package/dist/db-ux/p-0ff173fb.entry.js +1 -0
- package/dist/db-ux/p-1519dbbb.entry.js +1 -0
- package/dist/db-ux/p-16281dcb.entry.js +1 -0
- package/dist/db-ux/p-27eb6e88.entry.js +1 -0
- package/dist/db-ux/p-2898ebe6.entry.js +1 -0
- package/dist/db-ux/p-2e940d2e.entry.js +1 -0
- package/dist/db-ux/p-309259be.entry.js +1 -0
- package/dist/db-ux/p-4183b8e1.entry.js +1 -0
- package/dist/db-ux/p-4284c37f.entry.js +1 -0
- package/dist/db-ux/p-432ceb90.entry.js +1 -0
- package/dist/db-ux/p-503d5103.entry.js +1 -0
- package/dist/db-ux/p-6794144b.entry.js +1 -0
- package/dist/db-ux/p-6cb4232d.entry.js +1 -0
- package/dist/db-ux/p-6da70f61.entry.js +1 -0
- package/dist/db-ux/p-766057ea.entry.js +1 -0
- package/dist/db-ux/p-7a146dee.entry.js +1 -0
- package/dist/db-ux/p-7e274359.entry.js +1 -0
- package/dist/db-ux/p-Bs7RfNRP.js +2 -0
- 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-D_roHmuC.js +1 -0
- package/dist/db-ux/p-DfYL98sI.js +1 -0
- package/dist/db-ux/p-aad9c604.entry.js +1 -0
- package/dist/db-ux/p-ad3d2cff.entry.js +1 -0
- package/dist/db-ux/p-b218b08b.entry.js +1 -0
- package/dist/db-ux/p-bfe27311.entry.js +1 -0
- package/dist/db-ux/p-c1cf7ea4.entry.js +1 -0
- package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
- package/dist/db-ux/p-cd8557dd.entry.js +1 -0
- package/dist/db-ux/p-d2674cff.entry.js +1 -0
- package/dist/db-ux/p-d4e79c33.entry.js +1 -0
- package/dist/db-ux/p-e19f2640.entry.js +1 -0
- package/dist/db-ux/p-e3def528.entry.js +1 -0
- package/dist/db-ux/p-e6b17374.entry.js +1 -0
- package/dist/db-ux/p-ea7219af.entry.js +1 -0
- package/dist/db-ux/p-xkoBSP8R.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +11 -6
- package/dist/esm/db-accordion.entry.js +12 -8
- package/dist/esm/db-badge.entry.js +11 -7
- package/dist/esm/db-brand.entry.js +11 -7
- package/dist/esm/db-button.entry.js +11 -7
- package/dist/esm/db-card.entry.js +11 -6
- package/dist/esm/db-checkbox.entry.js +60 -37
- package/dist/esm/db-custom-button.entry.js +55 -0
- package/dist/esm/db-custom-select-dropdown_5.entry.js +90 -48
- package/dist/esm/db-custom-select-form-field.entry.js +11 -6
- package/dist/esm/db-custom-select.entry.js +134 -111
- package/dist/esm/db-divider.entry.js +11 -6
- package/dist/esm/db-drawer.entry.js +12 -8
- package/dist/esm/db-header.entry.js +13 -9
- package/dist/esm/db-icon.entry.js +11 -6
- package/dist/esm/db-infotext.entry.js +11 -7
- package/dist/esm/db-link.entry.js +11 -7
- package/dist/esm/db-navigation-item.entry.js +13 -9
- package/dist/esm/db-navigation.entry.js +11 -6
- package/dist/esm/db-notification.entry.js +12 -8
- package/dist/esm/db-page.entry.js +11 -6
- package/dist/esm/db-popover.entry.js +14 -10
- package/dist/esm/db-radio.entry.js +39 -16
- package/dist/esm/db-section.entry.js +11 -6
- package/dist/esm/db-select.entry.js +55 -32
- package/dist/esm/db-stack.entry.js +11 -6
- package/dist/esm/db-switch.entry.js +64 -24
- package/dist/esm/db-tab-item_3.entry.js +29 -15
- package/dist/esm/db-tabs.entry.js +12 -8
- package/dist/esm/db-textarea.entry.js +53 -30
- package/dist/esm/db-tooltip.entry.js +25 -12
- 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-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
- package/dist/esm/{form-components-BLsiOrPI.js → form-components-D6LQfJvq.js} +1 -1
- package/dist/esm/{index-BrThqi62.js → index-Bs7RfNRP.js} +2 -2
- 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--UdC9CzO.js → navigation-DgsMCdfn.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/model.d.ts +1 -1
- 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 +146 -6
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/model.d.ts +17 -3
- package/dist/types/stencil-public-runtime.d.ts +3 -1
- package/dist/vscode.html-custom-data.json +1981 -245
- package/dist/web-types.json +3299 -648
- package/package.json +4 -4
- package/dist/db-ux/p-07bf3657.entry.js +0 -1
- package/dist/db-ux/p-0a89cbcd.entry.js +0 -1
- package/dist/db-ux/p-15539d9d.entry.js +0 -1
- package/dist/db-ux/p-41cb4673.entry.js +0 -1
- package/dist/db-ux/p-460073dd.entry.js +0 -1
- package/dist/db-ux/p-4a9b9909.entry.js +0 -1
- package/dist/db-ux/p-4ec09cf1.entry.js +0 -1
- package/dist/db-ux/p-57205dfd.entry.js +0 -1
- package/dist/db-ux/p-5775bf7a.entry.js +0 -1
- package/dist/db-ux/p-5bcde39a.entry.js +0 -1
- package/dist/db-ux/p-6341aaa9.entry.js +0 -1
- package/dist/db-ux/p-64573104.entry.js +0 -1
- package/dist/db-ux/p-6b63156d.entry.js +0 -1
- package/dist/db-ux/p-70822a27.entry.js +0 -1
- package/dist/db-ux/p-710a430d.entry.js +0 -1
- package/dist/db-ux/p-72d712b0.entry.js +0 -1
- package/dist/db-ux/p-7b7f4d03.entry.js +0 -1
- package/dist/db-ux/p-7bd4c573.entry.js +0 -1
- package/dist/db-ux/p-819cf20a.entry.js +0 -1
- package/dist/db-ux/p-87fdbcfb.entry.js +0 -1
- package/dist/db-ux/p-9051e26c.entry.js +0 -1
- package/dist/db-ux/p-934a708c.entry.js +0 -1
- package/dist/db-ux/p-9ffa5c48.entry.js +0 -1
- package/dist/db-ux/p-BhXdfCpU.js +0 -1
- package/dist/db-ux/p-BrThqi62.js +0 -2
- package/dist/db-ux/p-C4x0SOcx.js +0 -1
- package/dist/db-ux/p-G-TursYV.js +0 -1
- package/dist/db-ux/p-RHqkTr-_.js +0 -1
- package/dist/db-ux/p-a9af70eb.entry.js +0 -1
- package/dist/db-ux/p-aa8383a3.entry.js +0 -1
- package/dist/db-ux/p-ba1f69bd.entry.js +0 -1
- package/dist/db-ux/p-d273b998.entry.js +0 -1
- package/dist/db-ux/p-da4ee6ee.entry.js +0 -1
- package/dist/db-ux/p-e584e927.entry.js +0 -1
- package/dist/db-ux/p-fe185f98.entry.js +0 -1
|
@@ -464,6 +464,20 @@ export class DBCustomSelect {
|
|
|
464
464
|
(_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
+
resetIds() {
|
|
468
|
+
var _a, _b, _c;
|
|
469
|
+
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-${uuid()}`;
|
|
470
|
+
this._id = mId;
|
|
471
|
+
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
472
|
+
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
473
|
+
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
474
|
+
this._selectId = mId + DEFAULT_SELECT_ID_SUFFIX;
|
|
475
|
+
this._labelId = mId + DEFAULT_LABEL_ID_SUFFIX;
|
|
476
|
+
this._summaryId = mId + "-summary";
|
|
477
|
+
this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
478
|
+
this._selectedLabelsId = mId + "-selected-labels";
|
|
479
|
+
this._infoTextId = mId + "-info";
|
|
480
|
+
}
|
|
467
481
|
/**
|
|
468
482
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
469
483
|
* @param element the ref for the component
|
|
@@ -475,12 +489,16 @@ export class DBCustomSelect {
|
|
|
475
489
|
const attributes = parent.attributes;
|
|
476
490
|
for (let i = 0; i < attributes.length; i++) {
|
|
477
491
|
const attr = attributes.item(i);
|
|
478
|
-
if (attr &&
|
|
492
|
+
if (attr && attr.name !== 'data-density' &&
|
|
479
493
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
480
494
|
element.setAttribute(attr.name, attr.value);
|
|
481
495
|
parent.removeAttribute(attr.name);
|
|
482
496
|
}
|
|
483
|
-
if (attr && attr.name
|
|
497
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
498
|
+
element.setAttribute(attr.name, attr.value);
|
|
499
|
+
parent.removeAttribute(attr.name);
|
|
500
|
+
}
|
|
501
|
+
else if (attr && attr.name === "class") {
|
|
484
502
|
const isWebComponent = attr.value.includes("hydrated");
|
|
485
503
|
const value = attr.value.replace("hydrated", "").trim();
|
|
486
504
|
const currentClass = element.getAttribute("class");
|
|
@@ -497,14 +515,23 @@ export class DBCustomSelect {
|
|
|
497
515
|
}
|
|
498
516
|
}
|
|
499
517
|
watch0Fn() {
|
|
500
|
-
|
|
501
|
-
|
|
518
|
+
var _a, _b;
|
|
519
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
520
|
+
this.resetIds();
|
|
502
521
|
}
|
|
503
522
|
}
|
|
504
523
|
watch0() {
|
|
505
524
|
this.watch0Fn();
|
|
506
525
|
}
|
|
507
526
|
watch1Fn() {
|
|
527
|
+
if (this.detailsRef) {
|
|
528
|
+
this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
watch1() {
|
|
532
|
+
this.watch1Fn();
|
|
533
|
+
}
|
|
534
|
+
watch2Fn() {
|
|
508
535
|
if (this._id) {
|
|
509
536
|
const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
510
537
|
this._labelId = this._id + DEFAULT_LABEL_ID_SUFFIX;
|
|
@@ -520,10 +547,10 @@ export class DBCustomSelect {
|
|
|
520
547
|
}
|
|
521
548
|
}
|
|
522
549
|
}
|
|
523
|
-
|
|
524
|
-
this.
|
|
550
|
+
watch2() {
|
|
551
|
+
this.watch2Fn();
|
|
525
552
|
}
|
|
526
|
-
|
|
553
|
+
watch3Fn() {
|
|
527
554
|
var _a;
|
|
528
555
|
if (this.detailsRef) {
|
|
529
556
|
const summary = this.detailsRef.querySelector("summary");
|
|
@@ -532,10 +559,10 @@ export class DBCustomSelect {
|
|
|
532
559
|
}
|
|
533
560
|
}
|
|
534
561
|
}
|
|
535
|
-
|
|
536
|
-
this.
|
|
562
|
+
watch3() {
|
|
563
|
+
this.watch3Fn();
|
|
537
564
|
}
|
|
538
|
-
|
|
565
|
+
watch4Fn() {
|
|
539
566
|
if (this.showNoResults !== undefined) {
|
|
540
567
|
this._hasNoOptions = this.showNoResults;
|
|
541
568
|
}
|
|
@@ -543,24 +570,24 @@ export class DBCustomSelect {
|
|
|
543
570
|
this._hasNoOptions = this._options.length === 0;
|
|
544
571
|
}
|
|
545
572
|
}
|
|
546
|
-
watch3() {
|
|
547
|
-
this.watch3Fn();
|
|
548
|
-
}
|
|
549
|
-
watch4Fn() {
|
|
550
|
-
var _a;
|
|
551
|
-
this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
|
|
552
|
-
}
|
|
553
573
|
watch4() {
|
|
554
574
|
this.watch4Fn();
|
|
555
575
|
}
|
|
556
576
|
watch5Fn() {
|
|
557
577
|
var _a;
|
|
558
|
-
this.
|
|
578
|
+
this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
|
|
559
579
|
}
|
|
560
580
|
watch5() {
|
|
561
581
|
this.watch5Fn();
|
|
562
582
|
}
|
|
563
583
|
watch6Fn() {
|
|
584
|
+
var _a;
|
|
585
|
+
this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
|
|
586
|
+
}
|
|
587
|
+
watch6() {
|
|
588
|
+
this.watch6Fn();
|
|
589
|
+
}
|
|
590
|
+
watch7Fn() {
|
|
564
591
|
var _a;
|
|
565
592
|
const v = this.values;
|
|
566
593
|
if (Array.isArray(v)) {
|
|
@@ -572,18 +599,18 @@ export class DBCustomSelect {
|
|
|
572
599
|
this._values = [];
|
|
573
600
|
}
|
|
574
601
|
}
|
|
575
|
-
|
|
576
|
-
this.
|
|
602
|
+
watch7() {
|
|
603
|
+
this.watch7Fn();
|
|
577
604
|
}
|
|
578
|
-
|
|
605
|
+
watch8Fn() {
|
|
579
606
|
if (this.selectRef) {
|
|
580
607
|
this.handleValidation();
|
|
581
608
|
}
|
|
582
609
|
}
|
|
583
|
-
|
|
584
|
-
this.
|
|
610
|
+
watch8() {
|
|
611
|
+
this.watch8Fn();
|
|
585
612
|
}
|
|
586
|
-
|
|
613
|
+
watch9Fn() {
|
|
587
614
|
if (this.selectRef) {
|
|
588
615
|
let controller = this.abortController;
|
|
589
616
|
if (!controller) {
|
|
@@ -602,16 +629,16 @@ export class DBCustomSelect {
|
|
|
602
629
|
}, controller.signal);
|
|
603
630
|
}
|
|
604
631
|
}
|
|
605
|
-
watch8() {
|
|
606
|
-
this.watch8Fn();
|
|
607
|
-
}
|
|
608
|
-
watch9Fn() {
|
|
609
|
-
this._validity = this.validation;
|
|
610
|
-
}
|
|
611
632
|
watch9() {
|
|
612
633
|
this.watch9Fn();
|
|
613
634
|
}
|
|
614
635
|
watch10Fn() {
|
|
636
|
+
this._validity = this.validation;
|
|
637
|
+
}
|
|
638
|
+
watch10() {
|
|
639
|
+
this.watch10Fn();
|
|
640
|
+
}
|
|
641
|
+
watch11Fn() {
|
|
615
642
|
var _a, _b;
|
|
616
643
|
if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
617
644
|
this.selectAllChecked = false;
|
|
@@ -625,29 +652,29 @@ export class DBCustomSelect {
|
|
|
625
652
|
this.selectAllIndeterminate = true;
|
|
626
653
|
}
|
|
627
654
|
}
|
|
628
|
-
|
|
629
|
-
this.
|
|
655
|
+
watch11() {
|
|
656
|
+
this.watch11Fn();
|
|
630
657
|
}
|
|
631
|
-
|
|
658
|
+
watch12Fn() {
|
|
632
659
|
var _a, _b;
|
|
633
660
|
this._options = this.options;
|
|
634
661
|
this.amountOptions =
|
|
635
662
|
(_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
|
|
636
663
|
}
|
|
637
|
-
|
|
638
|
-
this.
|
|
664
|
+
watch12() {
|
|
665
|
+
this.watch12Fn();
|
|
639
666
|
}
|
|
640
|
-
|
|
667
|
+
watch13Fn() {
|
|
641
668
|
this._searchValue = this.searchValue;
|
|
642
669
|
if (this.searchValue) {
|
|
643
670
|
const sValue = this.searchValue; // <- workaround for Angular
|
|
644
671
|
this.handleSearch(sValue);
|
|
645
672
|
}
|
|
646
673
|
}
|
|
647
|
-
|
|
648
|
-
this.
|
|
674
|
+
watch13() {
|
|
675
|
+
this.watch13Fn();
|
|
649
676
|
}
|
|
650
|
-
|
|
677
|
+
watch14Fn() {
|
|
651
678
|
var _a, _b;
|
|
652
679
|
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
|
|
653
680
|
this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
|
|
@@ -659,10 +686,10 @@ export class DBCustomSelect {
|
|
|
659
686
|
});
|
|
660
687
|
}
|
|
661
688
|
}
|
|
662
|
-
|
|
663
|
-
this.
|
|
689
|
+
watch14() {
|
|
690
|
+
this.watch14Fn();
|
|
664
691
|
}
|
|
665
|
-
|
|
692
|
+
watch15Fn() {
|
|
666
693
|
var _a, _b, _c;
|
|
667
694
|
if (this.selectedLabels) {
|
|
668
695
|
this._selectedLabels = this.selectedLabels;
|
|
@@ -689,50 +716,39 @@ export class DBCustomSelect {
|
|
|
689
716
|
this._selectedLabels = "";
|
|
690
717
|
}
|
|
691
718
|
}
|
|
692
|
-
|
|
693
|
-
this.
|
|
719
|
+
watch15() {
|
|
720
|
+
this.watch15Fn();
|
|
694
721
|
}
|
|
695
|
-
|
|
722
|
+
watch16Fn() {
|
|
696
723
|
var _a, _b;
|
|
697
724
|
if (this.amountChange) {
|
|
698
725
|
this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
|
|
699
726
|
}
|
|
700
727
|
}
|
|
701
|
-
|
|
702
|
-
this.
|
|
728
|
+
watch16() {
|
|
729
|
+
this.watch16Fn();
|
|
703
730
|
}
|
|
704
|
-
|
|
731
|
+
watch17Fn() {
|
|
705
732
|
if (this.selectAllRef) {
|
|
706
733
|
this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
|
|
707
734
|
}
|
|
708
735
|
}
|
|
709
|
-
|
|
710
|
-
this.
|
|
736
|
+
watch17() {
|
|
737
|
+
this.watch17Fn();
|
|
711
738
|
}
|
|
712
|
-
|
|
739
|
+
watch18Fn() {
|
|
713
740
|
var _a;
|
|
714
741
|
this._invalidMessage =
|
|
715
742
|
this.invalidMessage ||
|
|
716
743
|
((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
717
744
|
DEFAULT_INVALID_MESSAGE;
|
|
718
745
|
}
|
|
719
|
-
|
|
720
|
-
this.
|
|
746
|
+
watch18() {
|
|
747
|
+
this.watch18Fn();
|
|
721
748
|
}
|
|
722
749
|
componentDidLoad() {
|
|
723
|
-
var _a;
|
|
724
750
|
this.enableAttributePassing(this._ref, "db-custom-select");
|
|
725
|
-
|
|
726
|
-
this._id = mId;
|
|
727
|
-
this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;
|
|
728
|
-
this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
729
|
-
this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
730
|
-
this._selectId = mId + DEFAULT_SELECT_ID_SUFFIX;
|
|
731
|
-
this._labelId = mId + DEFAULT_LABEL_ID_SUFFIX;
|
|
732
|
-
this._summaryId = mId + "-summary";
|
|
733
|
-
this._placeholderId = mId + DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
734
|
-
this._selectedLabelsId = mId + "-selected-labels";
|
|
735
|
-
this._infoTextId = mId + "-info";
|
|
751
|
+
this.resetIds();
|
|
736
752
|
this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;
|
|
737
753
|
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
738
754
|
this._observer = new IntersectionObserver((payload) => {
|
|
@@ -762,6 +778,7 @@ export class DBCustomSelect {
|
|
|
762
778
|
this.watch15Fn();
|
|
763
779
|
this.watch16Fn();
|
|
764
780
|
this.watch17Fn();
|
|
781
|
+
this.watch18Fn();
|
|
765
782
|
}
|
|
766
783
|
disconnectedCallback() {
|
|
767
784
|
var _a;
|
|
@@ -769,19 +786,19 @@ export class DBCustomSelect {
|
|
|
769
786
|
}
|
|
770
787
|
render() {
|
|
771
788
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
772
|
-
return (h("div", { key: '
|
|
789
|
+
return (h("div", { key: 'b91607a57b2311a81c3087827207ddc78017e581', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
773
790
|
this._ref = el;
|
|
774
791
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
775
792
|
this.selectedType === "tag" &&
|
|
776
793
|
this.multiple
|
|
777
794
|
? "above"
|
|
778
|
-
: this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '
|
|
795
|
+
: this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '1abe98ce69510bc1e71ced37cf8fc922d968fca0', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '534fcf99cb27580f11593299093aa75c9708601c', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
779
796
|
this.selectRef = el;
|
|
780
|
-
}, form: this.form, name: this.name, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
797
|
+
}, form: this.form, name: this.name, "data-custom-validity": this._validity, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
781
798
|
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value, key: undefined }, this.getOptionLabel(option))))
|
|
782
|
-
: null)), h("details", { key: '
|
|
799
|
+
: null)), h("details", { key: '730b070010af8bf456e9dc23b0c63bce2cf87669', ref: (el) => {
|
|
783
800
|
this.detailsRef = el;
|
|
784
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '
|
|
801
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '8bac2e843b1c288af5b6bbe9272b4a72acaeb698' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (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), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
|
|
785
802
|
this.searchInputRef = el;
|
|
786
803
|
}, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
|
|
787
804
|
? this._infoTextId
|
|
@@ -791,16 +808,16 @@ export class DBCustomSelect {
|
|
|
791
808
|
this.selectAllRef = el;
|
|
792
809
|
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (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
|
|
793
810
|
? this.getOptionLabel(option)
|
|
794
|
-
: null)))))), h("div", null, 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 : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '
|
|
811
|
+
: null)))))), h("div", null, 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 : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '18799430248251a8e5549f2b28905e2e2e5b27cb', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '834d926c52ed5296c8956315b49a973da100ba98', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '02e9c61681ab8c13df57214ba7cdf3551eaeba4d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
795
812
|
}
|
|
796
813
|
static get is() { return "db-custom-select"; }
|
|
797
814
|
static get properties() {
|
|
798
815
|
return {
|
|
799
|
-
"
|
|
816
|
+
"invalidMessage": {
|
|
800
817
|
"type": "string",
|
|
801
818
|
"mutable": false,
|
|
802
819
|
"complexType": {
|
|
803
|
-
"original": "DBCustomSelectProps[\"
|
|
820
|
+
"original": "DBCustomSelectProps[\"invalidMessage\"]",
|
|
804
821
|
"resolved": "string",
|
|
805
822
|
"references": {
|
|
806
823
|
"DBCustomSelectProps": {
|
|
@@ -820,13 +837,13 @@ export class DBCustomSelect {
|
|
|
820
837
|
"getter": false,
|
|
821
838
|
"setter": false,
|
|
822
839
|
"reflect": false,
|
|
823
|
-
"attribute": "
|
|
840
|
+
"attribute": "invalid-message"
|
|
824
841
|
},
|
|
825
|
-
"
|
|
842
|
+
"id": {
|
|
826
843
|
"type": "string",
|
|
827
844
|
"mutable": false,
|
|
828
845
|
"complexType": {
|
|
829
|
-
"original": "DBCustomSelectProps[\"
|
|
846
|
+
"original": "DBCustomSelectProps[\"id\"]",
|
|
830
847
|
"resolved": "string",
|
|
831
848
|
"references": {
|
|
832
849
|
"DBCustomSelectProps": {
|
|
@@ -846,7 +863,31 @@ export class DBCustomSelect {
|
|
|
846
863
|
"getter": false,
|
|
847
864
|
"setter": false,
|
|
848
865
|
"reflect": false,
|
|
849
|
-
"attribute": "
|
|
866
|
+
"attribute": "id"
|
|
867
|
+
},
|
|
868
|
+
"propOverrides": {
|
|
869
|
+
"type": "unknown",
|
|
870
|
+
"mutable": false,
|
|
871
|
+
"complexType": {
|
|
872
|
+
"original": "DBCustomSelectProps[\"propOverrides\"]",
|
|
873
|
+
"resolved": "{ id?: string; }",
|
|
874
|
+
"references": {
|
|
875
|
+
"DBCustomSelectProps": {
|
|
876
|
+
"location": "import",
|
|
877
|
+
"path": "./model",
|
|
878
|
+
"id": "src/components/custom-select/model.ts::DBCustomSelectProps",
|
|
879
|
+
"referenceLocation": "DBCustomSelectProps"
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"required": false,
|
|
884
|
+
"optional": false,
|
|
885
|
+
"docs": {
|
|
886
|
+
"tags": [],
|
|
887
|
+
"text": ""
|
|
888
|
+
},
|
|
889
|
+
"getter": false,
|
|
890
|
+
"setter": false
|
|
850
891
|
},
|
|
851
892
|
"message": {
|
|
852
893
|
"type": "string",
|
|
@@ -2138,104 +2179,110 @@ export class DBCustomSelect {
|
|
|
2138
2179
|
}
|
|
2139
2180
|
static get watchers() {
|
|
2140
2181
|
return [{
|
|
2141
|
-
"propName": "
|
|
2182
|
+
"propName": "id",
|
|
2142
2183
|
"methodName": "watch0"
|
|
2143
2184
|
}, {
|
|
2144
|
-
"propName": "
|
|
2145
|
-
"methodName": "
|
|
2185
|
+
"propName": "propOverrides?.id",
|
|
2186
|
+
"methodName": "watch0"
|
|
2146
2187
|
}, {
|
|
2147
2188
|
"propName": "detailsRef",
|
|
2189
|
+
"methodName": "watch1"
|
|
2190
|
+
}, {
|
|
2191
|
+
"propName": "_id",
|
|
2148
2192
|
"methodName": "watch2"
|
|
2193
|
+
}, {
|
|
2194
|
+
"propName": "detailsRef",
|
|
2195
|
+
"methodName": "watch3"
|
|
2149
2196
|
}, {
|
|
2150
2197
|
"propName": "_descByIds",
|
|
2151
|
-
"methodName": "
|
|
2198
|
+
"methodName": "watch3"
|
|
2152
2199
|
}, {
|
|
2153
2200
|
"propName": "showNoResults",
|
|
2154
|
-
"methodName": "
|
|
2201
|
+
"methodName": "watch4"
|
|
2155
2202
|
}, {
|
|
2156
2203
|
"propName": "showLoading",
|
|
2157
|
-
"methodName": "
|
|
2204
|
+
"methodName": "watch4"
|
|
2158
2205
|
}, {
|
|
2159
2206
|
"propName": "_options",
|
|
2160
|
-
"methodName": "
|
|
2207
|
+
"methodName": "watch4"
|
|
2161
2208
|
}, {
|
|
2162
2209
|
"propName": "showSelectAll",
|
|
2163
|
-
"methodName": "
|
|
2210
|
+
"methodName": "watch5"
|
|
2164
2211
|
}, {
|
|
2165
2212
|
"propName": "amountOptions",
|
|
2166
|
-
"methodName": "
|
|
2213
|
+
"methodName": "watch5"
|
|
2167
2214
|
}, {
|
|
2168
2215
|
"propName": "multiple",
|
|
2169
|
-
"methodName": "
|
|
2216
|
+
"methodName": "watch5"
|
|
2170
2217
|
}, {
|
|
2171
2218
|
"propName": "showSearch",
|
|
2172
|
-
"methodName": "
|
|
2219
|
+
"methodName": "watch6"
|
|
2173
2220
|
}, {
|
|
2174
2221
|
"propName": "amountOptions",
|
|
2175
|
-
"methodName": "
|
|
2222
|
+
"methodName": "watch6"
|
|
2176
2223
|
}, {
|
|
2177
2224
|
"propName": "values",
|
|
2178
|
-
"methodName": "
|
|
2225
|
+
"methodName": "watch7"
|
|
2179
2226
|
}, {
|
|
2180
2227
|
"propName": "_values",
|
|
2181
|
-
"methodName": "
|
|
2228
|
+
"methodName": "watch8"
|
|
2182
2229
|
}, {
|
|
2183
2230
|
"propName": "selectRef",
|
|
2184
|
-
"methodName": "
|
|
2231
|
+
"methodName": "watch8"
|
|
2185
2232
|
}, {
|
|
2186
2233
|
"propName": "selectRef",
|
|
2187
|
-
"methodName": "
|
|
2234
|
+
"methodName": "watch9"
|
|
2188
2235
|
}, {
|
|
2189
2236
|
"propName": "validation",
|
|
2190
|
-
"methodName": "
|
|
2237
|
+
"methodName": "watch10"
|
|
2191
2238
|
}, {
|
|
2192
2239
|
"propName": "_values",
|
|
2193
|
-
"methodName": "
|
|
2240
|
+
"methodName": "watch11"
|
|
2194
2241
|
}, {
|
|
2195
2242
|
"propName": "amountOptions",
|
|
2196
|
-
"methodName": "
|
|
2243
|
+
"methodName": "watch11"
|
|
2197
2244
|
}, {
|
|
2198
2245
|
"propName": "options",
|
|
2199
|
-
"methodName": "
|
|
2246
|
+
"methodName": "watch12"
|
|
2200
2247
|
}, {
|
|
2201
2248
|
"propName": "searchValue",
|
|
2202
|
-
"methodName": "
|
|
2249
|
+
"methodName": "watch13"
|
|
2203
2250
|
}, {
|
|
2204
2251
|
"propName": "options",
|
|
2205
|
-
"methodName": "
|
|
2252
|
+
"methodName": "watch14"
|
|
2206
2253
|
}, {
|
|
2207
2254
|
"propName": "_values",
|
|
2208
|
-
"methodName": "
|
|
2255
|
+
"methodName": "watch14"
|
|
2209
2256
|
}, {
|
|
2210
2257
|
"propName": "_selectedOptions",
|
|
2211
|
-
"methodName": "
|
|
2258
|
+
"methodName": "watch15"
|
|
2212
2259
|
}, {
|
|
2213
2260
|
"propName": "selectedType",
|
|
2214
|
-
"methodName": "
|
|
2261
|
+
"methodName": "watch15"
|
|
2215
2262
|
}, {
|
|
2216
2263
|
"propName": "amountText",
|
|
2217
|
-
"methodName": "
|
|
2264
|
+
"methodName": "watch15"
|
|
2218
2265
|
}, {
|
|
2219
2266
|
"propName": "selectedLabels",
|
|
2220
|
-
"methodName": "
|
|
2267
|
+
"methodName": "watch15"
|
|
2221
2268
|
}, {
|
|
2222
2269
|
"propName": "transformSelectedLabels",
|
|
2223
|
-
"methodName": "
|
|
2270
|
+
"methodName": "watch15"
|
|
2224
2271
|
}, {
|
|
2225
2272
|
"propName": "_selectedOptions",
|
|
2226
|
-
"methodName": "
|
|
2273
|
+
"methodName": "watch16"
|
|
2227
2274
|
}, {
|
|
2228
2275
|
"propName": "selectAllIndeterminate",
|
|
2229
|
-
"methodName": "
|
|
2276
|
+
"methodName": "watch17"
|
|
2230
2277
|
}, {
|
|
2231
2278
|
"propName": "selectAllRef",
|
|
2232
|
-
"methodName": "
|
|
2279
|
+
"methodName": "watch17"
|
|
2233
2280
|
}, {
|
|
2234
2281
|
"propName": "selectRef",
|
|
2235
|
-
"methodName": "
|
|
2282
|
+
"methodName": "watch18"
|
|
2236
2283
|
}, {
|
|
2237
2284
|
"propName": "invalidMessage",
|
|
2238
|
-
"methodName": "
|
|
2285
|
+
"methodName": "watch18"
|
|
2239
2286
|
}];
|
|
2240
2287
|
}
|
|
2241
2288
|
}
|
|
@@ -19,12 +19,16 @@ export class DBCustomSelectDropdown {
|
|
|
19
19
|
const attributes = parent.attributes;
|
|
20
20
|
for (let i = 0; i < attributes.length; i++) {
|
|
21
21
|
const attr = attributes.item(i);
|
|
22
|
-
if (attr &&
|
|
22
|
+
if (attr && attr.name !== 'data-density' &&
|
|
23
23
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
24
24
|
element.setAttribute(attr.name, attr.value);
|
|
25
25
|
parent.removeAttribute(attr.name);
|
|
26
26
|
}
|
|
27
|
-
if (attr && attr.name
|
|
27
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
28
|
+
element.setAttribute(attr.name, attr.value);
|
|
29
|
+
parent.removeAttribute(attr.name);
|
|
30
|
+
}
|
|
31
|
+
else if (attr && attr.name === "class") {
|
|
28
32
|
const isWebComponent = attr.value.includes("hydrated");
|
|
29
33
|
const value = attr.value.replace("hydrated", "").trim();
|
|
30
34
|
const currentClass = element.getAttribute("class");
|
|
@@ -44,9 +48,10 @@ export class DBCustomSelectDropdown {
|
|
|
44
48
|
this.enableAttributePassing(this._ref, "db-custom-select-dropdown");
|
|
45
49
|
}
|
|
46
50
|
render() {
|
|
47
|
-
|
|
51
|
+
var _a, _b;
|
|
52
|
+
return (h("article", { key: '18ea31a3993786aed93fbb95fabc349231b455ae', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
48
53
|
this._ref = el;
|
|
49
|
-
}, id: this.id, "data-width": this.width }, h("slot", { key: '
|
|
54
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '14a29534f56e6fe16c6d6e856b26aba549fef8dc' })));
|
|
50
55
|
}
|
|
51
56
|
static get is() { return "db-custom-select-dropdown"; }
|
|
52
57
|
static get properties() {
|
|
@@ -77,6 +82,30 @@ export class DBCustomSelectDropdown {
|
|
|
77
82
|
"reflect": false,
|
|
78
83
|
"attribute": "id"
|
|
79
84
|
},
|
|
85
|
+
"propOverrides": {
|
|
86
|
+
"type": "unknown",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "DBCustomSelectDropdownProps[\"propOverrides\"]",
|
|
90
|
+
"resolved": "{ id?: string; }",
|
|
91
|
+
"references": {
|
|
92
|
+
"DBCustomSelectDropdownProps": {
|
|
93
|
+
"location": "import",
|
|
94
|
+
"path": "./model",
|
|
95
|
+
"id": "src/components/custom-select-dropdown/model.ts::DBCustomSelectDropdownProps",
|
|
96
|
+
"referenceLocation": "DBCustomSelectDropdownProps"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": ""
|
|
105
|
+
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false
|
|
108
|
+
},
|
|
80
109
|
"className": {
|
|
81
110
|
"type": "string",
|
|
82
111
|
"mutable": false,
|