@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.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-pYaTeNhp.js');
|
|
9
|
+
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
10
10
|
|
|
11
11
|
const DBCustomSelect = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -468,6 +468,20 @@ const DBCustomSelect = class {
|
|
|
468
468
|
(_a = this.detailsRef.querySelector("summary")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
+
resetIds() {
|
|
472
|
+
var _a, _b, _c;
|
|
473
|
+
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()}`;
|
|
474
|
+
this._id = mId;
|
|
475
|
+
this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
476
|
+
this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
477
|
+
this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
478
|
+
this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
|
|
479
|
+
this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
|
|
480
|
+
this._summaryId = mId + "-summary";
|
|
481
|
+
this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
482
|
+
this._selectedLabelsId = mId + "-selected-labels";
|
|
483
|
+
this._infoTextId = mId + "-info";
|
|
484
|
+
}
|
|
471
485
|
/**
|
|
472
486
|
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
473
487
|
* @param element the ref for the component
|
|
@@ -479,12 +493,16 @@ const DBCustomSelect = class {
|
|
|
479
493
|
const attributes = parent.attributes;
|
|
480
494
|
for (let i = 0; i < attributes.length; i++) {
|
|
481
495
|
const attr = attributes.item(i);
|
|
482
|
-
if (attr &&
|
|
496
|
+
if (attr && attr.name !== 'data-density' &&
|
|
483
497
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
484
498
|
element.setAttribute(attr.name, attr.value);
|
|
485
499
|
parent.removeAttribute(attr.name);
|
|
486
500
|
}
|
|
487
|
-
if (attr && attr.name
|
|
501
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
502
|
+
element.setAttribute(attr.name, attr.value);
|
|
503
|
+
parent.removeAttribute(attr.name);
|
|
504
|
+
}
|
|
505
|
+
else if (attr && attr.name === "class") {
|
|
488
506
|
const isWebComponent = attr.value.includes("hydrated");
|
|
489
507
|
const value = attr.value.replace("hydrated", "").trim();
|
|
490
508
|
const currentClass = element.getAttribute("class");
|
|
@@ -501,14 +519,23 @@ const DBCustomSelect = class {
|
|
|
501
519
|
}
|
|
502
520
|
}
|
|
503
521
|
watch0Fn() {
|
|
504
|
-
|
|
505
|
-
|
|
522
|
+
var _a, _b;
|
|
523
|
+
if ((_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id) {
|
|
524
|
+
this.resetIds();
|
|
506
525
|
}
|
|
507
526
|
}
|
|
508
527
|
watch0() {
|
|
509
528
|
this.watch0Fn();
|
|
510
529
|
}
|
|
511
530
|
watch1Fn() {
|
|
531
|
+
if (this.detailsRef) {
|
|
532
|
+
this.detailsRef.addEventListener("focusout", (event) => this.handleClose(event));
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
watch1() {
|
|
536
|
+
this.watch1Fn();
|
|
537
|
+
}
|
|
538
|
+
watch2Fn() {
|
|
512
539
|
if (this._id) {
|
|
513
540
|
const messageId = this._id + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
514
541
|
this._labelId = this._id + constants.DEFAULT_LABEL_ID_SUFFIX;
|
|
@@ -524,10 +551,10 @@ const DBCustomSelect = class {
|
|
|
524
551
|
}
|
|
525
552
|
}
|
|
526
553
|
}
|
|
527
|
-
|
|
528
|
-
this.
|
|
554
|
+
watch2() {
|
|
555
|
+
this.watch2Fn();
|
|
529
556
|
}
|
|
530
|
-
|
|
557
|
+
watch3Fn() {
|
|
531
558
|
var _a;
|
|
532
559
|
if (this.detailsRef) {
|
|
533
560
|
const summary = this.detailsRef.querySelector("summary");
|
|
@@ -536,10 +563,10 @@ const DBCustomSelect = class {
|
|
|
536
563
|
}
|
|
537
564
|
}
|
|
538
565
|
}
|
|
539
|
-
|
|
540
|
-
this.
|
|
566
|
+
watch3() {
|
|
567
|
+
this.watch3Fn();
|
|
541
568
|
}
|
|
542
|
-
|
|
569
|
+
watch4Fn() {
|
|
543
570
|
if (this.showNoResults !== undefined) {
|
|
544
571
|
this._hasNoOptions = this.showNoResults;
|
|
545
572
|
}
|
|
@@ -547,24 +574,24 @@ const DBCustomSelect = class {
|
|
|
547
574
|
this._hasNoOptions = this._options.length === 0;
|
|
548
575
|
}
|
|
549
576
|
}
|
|
550
|
-
watch3() {
|
|
551
|
-
this.watch3Fn();
|
|
552
|
-
}
|
|
553
|
-
watch4Fn() {
|
|
554
|
-
var _a;
|
|
555
|
-
this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
|
|
556
|
-
}
|
|
557
577
|
watch4() {
|
|
558
578
|
this.watch4Fn();
|
|
559
579
|
}
|
|
560
580
|
watch5Fn() {
|
|
561
581
|
var _a;
|
|
562
|
-
this.
|
|
582
|
+
this.selectAllEnabled = Boolean(this.multiple && ((_a = this.showSelectAll) !== null && _a !== void 0 ? _a : this.amountOptions > 5));
|
|
563
583
|
}
|
|
564
584
|
watch5() {
|
|
565
585
|
this.watch5Fn();
|
|
566
586
|
}
|
|
567
587
|
watch6Fn() {
|
|
588
|
+
var _a;
|
|
589
|
+
this.searchEnabled = (_a = this.showSearch) !== null && _a !== void 0 ? _a : this.amountOptions > 9;
|
|
590
|
+
}
|
|
591
|
+
watch6() {
|
|
592
|
+
this.watch6Fn();
|
|
593
|
+
}
|
|
594
|
+
watch7Fn() {
|
|
568
595
|
var _a;
|
|
569
596
|
const v = this.values;
|
|
570
597
|
if (Array.isArray(v)) {
|
|
@@ -576,18 +603,18 @@ const DBCustomSelect = class {
|
|
|
576
603
|
this._values = [];
|
|
577
604
|
}
|
|
578
605
|
}
|
|
579
|
-
|
|
580
|
-
this.
|
|
606
|
+
watch7() {
|
|
607
|
+
this.watch7Fn();
|
|
581
608
|
}
|
|
582
|
-
|
|
609
|
+
watch8Fn() {
|
|
583
610
|
if (this.selectRef) {
|
|
584
611
|
this.handleValidation();
|
|
585
612
|
}
|
|
586
613
|
}
|
|
587
|
-
|
|
588
|
-
this.
|
|
614
|
+
watch8() {
|
|
615
|
+
this.watch8Fn();
|
|
589
616
|
}
|
|
590
|
-
|
|
617
|
+
watch9Fn() {
|
|
591
618
|
if (this.selectRef) {
|
|
592
619
|
let controller = this.abortController;
|
|
593
620
|
if (!controller) {
|
|
@@ -606,16 +633,16 @@ const DBCustomSelect = class {
|
|
|
606
633
|
}, controller.signal);
|
|
607
634
|
}
|
|
608
635
|
}
|
|
609
|
-
watch8() {
|
|
610
|
-
this.watch8Fn();
|
|
611
|
-
}
|
|
612
|
-
watch9Fn() {
|
|
613
|
-
this._validity = this.validation;
|
|
614
|
-
}
|
|
615
636
|
watch9() {
|
|
616
637
|
this.watch9Fn();
|
|
617
638
|
}
|
|
618
639
|
watch10Fn() {
|
|
640
|
+
this._validity = this.validation;
|
|
641
|
+
}
|
|
642
|
+
watch10() {
|
|
643
|
+
this.watch10Fn();
|
|
644
|
+
}
|
|
645
|
+
watch11Fn() {
|
|
619
646
|
var _a, _b;
|
|
620
647
|
if (((_a = this._values) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
621
648
|
this.selectAllChecked = false;
|
|
@@ -629,29 +656,29 @@ const DBCustomSelect = class {
|
|
|
629
656
|
this.selectAllIndeterminate = true;
|
|
630
657
|
}
|
|
631
658
|
}
|
|
632
|
-
|
|
633
|
-
this.
|
|
659
|
+
watch11() {
|
|
660
|
+
this.watch11Fn();
|
|
634
661
|
}
|
|
635
|
-
|
|
662
|
+
watch12Fn() {
|
|
636
663
|
var _a, _b;
|
|
637
664
|
this._options = this.options;
|
|
638
665
|
this.amountOptions =
|
|
639
666
|
(_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter((option) => !option.isGroupTitle).length) !== null && _b !== void 0 ? _b : 0;
|
|
640
667
|
}
|
|
641
|
-
|
|
642
|
-
this.
|
|
668
|
+
watch12() {
|
|
669
|
+
this.watch12Fn();
|
|
643
670
|
}
|
|
644
|
-
|
|
671
|
+
watch13Fn() {
|
|
645
672
|
this._searchValue = this.searchValue;
|
|
646
673
|
if (this.searchValue) {
|
|
647
674
|
const sValue = this.searchValue; // <- workaround for Angular
|
|
648
675
|
this.handleSearch(sValue);
|
|
649
676
|
}
|
|
650
677
|
}
|
|
651
|
-
|
|
652
|
-
this.
|
|
678
|
+
watch13() {
|
|
679
|
+
this.watch13Fn();
|
|
653
680
|
}
|
|
654
|
-
|
|
681
|
+
watch14Fn() {
|
|
655
682
|
var _a, _b;
|
|
656
683
|
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
|
|
657
684
|
this._selectedOptions = (_b = this.options) === null || _b === void 0 ? void 0 : _b.filter((option) => {
|
|
@@ -663,10 +690,10 @@ const DBCustomSelect = class {
|
|
|
663
690
|
});
|
|
664
691
|
}
|
|
665
692
|
}
|
|
666
|
-
|
|
667
|
-
this.
|
|
693
|
+
watch14() {
|
|
694
|
+
this.watch14Fn();
|
|
668
695
|
}
|
|
669
|
-
|
|
696
|
+
watch15Fn() {
|
|
670
697
|
var _a, _b, _c;
|
|
671
698
|
if (this.selectedLabels) {
|
|
672
699
|
this._selectedLabels = this.selectedLabels;
|
|
@@ -693,50 +720,39 @@ const DBCustomSelect = class {
|
|
|
693
720
|
this._selectedLabels = "";
|
|
694
721
|
}
|
|
695
722
|
}
|
|
696
|
-
|
|
697
|
-
this.
|
|
723
|
+
watch15() {
|
|
724
|
+
this.watch15Fn();
|
|
698
725
|
}
|
|
699
|
-
|
|
726
|
+
watch16Fn() {
|
|
700
727
|
var _a, _b;
|
|
701
728
|
if (this.amountChange) {
|
|
702
729
|
this.amountChange.emit((_b = (_a = this._selectedOptions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0);
|
|
703
730
|
}
|
|
704
731
|
}
|
|
705
|
-
|
|
706
|
-
this.
|
|
732
|
+
watch16() {
|
|
733
|
+
this.watch16Fn();
|
|
707
734
|
}
|
|
708
|
-
|
|
735
|
+
watch17Fn() {
|
|
709
736
|
if (this.selectAllRef) {
|
|
710
737
|
this.selectAllRef.indeterminate = Boolean(this.selectAllIndeterminate);
|
|
711
738
|
}
|
|
712
739
|
}
|
|
713
|
-
|
|
714
|
-
this.
|
|
740
|
+
watch17() {
|
|
741
|
+
this.watch17Fn();
|
|
715
742
|
}
|
|
716
|
-
|
|
743
|
+
watch18Fn() {
|
|
717
744
|
var _a;
|
|
718
745
|
this._invalidMessage =
|
|
719
746
|
this.invalidMessage ||
|
|
720
747
|
((_a = this.selectRef) === null || _a === void 0 ? void 0 : _a.validationMessage) ||
|
|
721
748
|
constants.DEFAULT_INVALID_MESSAGE;
|
|
722
749
|
}
|
|
723
|
-
|
|
724
|
-
this.
|
|
750
|
+
watch18() {
|
|
751
|
+
this.watch18Fn();
|
|
725
752
|
}
|
|
726
753
|
componentDidLoad() {
|
|
727
|
-
var _a;
|
|
728
754
|
this.enableAttributePassing(this._ref, "db-custom-select");
|
|
729
|
-
|
|
730
|
-
this._id = mId;
|
|
731
|
-
this._messageId = mId + constants.DEFAULT_MESSAGE_ID_SUFFIX;
|
|
732
|
-
this._validMessageId = mId + constants.DEFAULT_VALID_MESSAGE_ID_SUFFIX;
|
|
733
|
-
this._invalidMessageId = mId + constants.DEFAULT_INVALID_MESSAGE_ID_SUFFIX;
|
|
734
|
-
this._selectId = mId + constants.DEFAULT_SELECT_ID_SUFFIX;
|
|
735
|
-
this._labelId = mId + constants.DEFAULT_LABEL_ID_SUFFIX;
|
|
736
|
-
this._summaryId = mId + "-summary";
|
|
737
|
-
this._placeholderId = mId + constants.DEFAULT_PLACEHOLDER_ID_SUFFIX;
|
|
738
|
-
this._selectedLabelsId = mId + "-selected-labels";
|
|
739
|
-
this._infoTextId = mId + "-info";
|
|
755
|
+
this.resetIds();
|
|
740
756
|
this._invalidMessage = this.invalidMessage || constants.DEFAULT_INVALID_MESSAGE;
|
|
741
757
|
if (typeof window !== "undefined" && "IntersectionObserver" in window) {
|
|
742
758
|
this._observer = new IntersectionObserver((payload) => {
|
|
@@ -766,6 +782,7 @@ const DBCustomSelect = class {
|
|
|
766
782
|
this.watch15Fn();
|
|
767
783
|
this.watch16Fn();
|
|
768
784
|
this.watch17Fn();
|
|
785
|
+
this.watch18Fn();
|
|
769
786
|
}
|
|
770
787
|
disconnectedCallback() {
|
|
771
788
|
var _a;
|
|
@@ -773,19 +790,19 @@ const DBCustomSelect = class {
|
|
|
773
790
|
}
|
|
774
791
|
render() {
|
|
775
792
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
776
|
-
return (index.h("div", { key: '
|
|
793
|
+
return (index.h("div", { key: 'b91607a57b2311a81c3087827207ddc78017e581', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
777
794
|
this._ref = el;
|
|
778
795
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
779
796
|
this.selectedType === "tag" &&
|
|
780
797
|
this.multiple
|
|
781
798
|
? "above"
|
|
782
|
-
: 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: '
|
|
799
|
+
: 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: '1abe98ce69510bc1e71ced37cf8fc922d968fca0', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '534fcf99cb27580f11593299093aa75c9708601c', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
783
800
|
this.selectRef = el;
|
|
784
|
-
}, form: this.form, name: this.name, 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)
|
|
801
|
+
}, 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)
|
|
785
802
|
? (_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))))
|
|
786
|
-
: null)), index.h("details", { key: '
|
|
803
|
+
: null)), index.h("details", { key: '730b070010af8bf456e9dc23b0c63bce2cf87669', ref: (el) => {
|
|
787
804
|
this.detailsRef = el;
|
|
788
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '
|
|
805
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '8bac2e843b1c288af5b6bbe9272b4a72acaeb698' }), 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$1) => (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) => {
|
|
789
806
|
this.searchInputRef = el;
|
|
790
807
|
}, 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
|
|
791
808
|
? this._infoTextId
|
|
@@ -795,98 +812,104 @@ const DBCustomSelect = class {
|
|
|
795
812
|
this.selectAllRef = el;
|
|
796
813
|
}, 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
|
|
797
814
|
? this.getOptionLabel(option)
|
|
798
|
-
: 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, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, index.h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, index.h("span", { key: '
|
|
815
|
+
: 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: '18799430248251a8e5549f2b28905e2e2e5b27cb', 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: '834d926c52ed5296c8956315b49a973da100ba98', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '02e9c61681ab8c13df57214ba7cdf3551eaeba4d', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
799
816
|
}
|
|
800
817
|
static get watchers() { return {
|
|
801
|
-
"
|
|
818
|
+
"id": [{
|
|
819
|
+
"watch0": 0
|
|
820
|
+
}],
|
|
821
|
+
"propOverrides?.id": [{
|
|
802
822
|
"watch0": 0
|
|
823
|
+
}],
|
|
824
|
+
"detailsRef": [{
|
|
825
|
+
"watch1": 0
|
|
803
826
|
}, {
|
|
804
|
-
"
|
|
827
|
+
"watch3": 0
|
|
805
828
|
}],
|
|
806
829
|
"_id": [{
|
|
807
|
-
"
|
|
830
|
+
"watch2": 0
|
|
808
831
|
}],
|
|
809
832
|
"_descByIds": [{
|
|
810
|
-
"
|
|
833
|
+
"watch3": 0
|
|
811
834
|
}],
|
|
812
835
|
"showNoResults": [{
|
|
813
|
-
"
|
|
836
|
+
"watch4": 0
|
|
814
837
|
}],
|
|
815
838
|
"showLoading": [{
|
|
816
|
-
"
|
|
839
|
+
"watch4": 0
|
|
817
840
|
}],
|
|
818
841
|
"_options": [{
|
|
819
|
-
"
|
|
842
|
+
"watch4": 0
|
|
820
843
|
}],
|
|
821
844
|
"showSelectAll": [{
|
|
822
|
-
"
|
|
845
|
+
"watch5": 0
|
|
823
846
|
}],
|
|
824
847
|
"amountOptions": [{
|
|
825
|
-
"watch4": 0
|
|
826
|
-
}, {
|
|
827
848
|
"watch5": 0
|
|
828
849
|
}, {
|
|
829
|
-
"
|
|
850
|
+
"watch6": 0
|
|
851
|
+
}, {
|
|
852
|
+
"watch11": 0
|
|
830
853
|
}],
|
|
831
854
|
"multiple": [{
|
|
832
|
-
"
|
|
855
|
+
"watch5": 0
|
|
833
856
|
}],
|
|
834
857
|
"showSearch": [{
|
|
835
|
-
"
|
|
858
|
+
"watch6": 0
|
|
836
859
|
}],
|
|
837
860
|
"values": [{
|
|
838
|
-
"
|
|
861
|
+
"watch7": 0
|
|
839
862
|
}],
|
|
840
863
|
"_values": [{
|
|
841
|
-
"
|
|
864
|
+
"watch8": 0
|
|
842
865
|
}, {
|
|
843
|
-
"
|
|
866
|
+
"watch11": 0
|
|
844
867
|
}, {
|
|
845
|
-
"
|
|
868
|
+
"watch14": 0
|
|
846
869
|
}],
|
|
847
870
|
"selectRef": [{
|
|
848
|
-
"watch7": 0
|
|
849
|
-
}, {
|
|
850
871
|
"watch8": 0
|
|
851
872
|
}, {
|
|
852
|
-
"
|
|
873
|
+
"watch9": 0
|
|
874
|
+
}, {
|
|
875
|
+
"watch18": 0
|
|
853
876
|
}],
|
|
854
877
|
"validation": [{
|
|
855
|
-
"
|
|
878
|
+
"watch10": 0
|
|
856
879
|
}],
|
|
857
880
|
"options": [{
|
|
858
|
-
"
|
|
881
|
+
"watch12": 0
|
|
859
882
|
}, {
|
|
860
|
-
"
|
|
883
|
+
"watch14": 0
|
|
861
884
|
}],
|
|
862
885
|
"searchValue": [{
|
|
863
|
-
"
|
|
886
|
+
"watch13": 0
|
|
864
887
|
}],
|
|
865
888
|
"_selectedOptions": [{
|
|
866
|
-
"watch14": 0
|
|
867
|
-
}, {
|
|
868
889
|
"watch15": 0
|
|
890
|
+
}, {
|
|
891
|
+
"watch16": 0
|
|
869
892
|
}],
|
|
870
893
|
"selectedType": [{
|
|
871
|
-
"
|
|
894
|
+
"watch15": 0
|
|
872
895
|
}],
|
|
873
896
|
"amountText": [{
|
|
874
|
-
"
|
|
897
|
+
"watch15": 0
|
|
875
898
|
}],
|
|
876
899
|
"selectedLabels": [{
|
|
877
|
-
"
|
|
900
|
+
"watch15": 0
|
|
878
901
|
}],
|
|
879
902
|
"transformSelectedLabels": [{
|
|
880
|
-
"
|
|
903
|
+
"watch15": 0
|
|
881
904
|
}],
|
|
882
905
|
"selectAllIndeterminate": [{
|
|
883
|
-
"
|
|
906
|
+
"watch17": 0
|
|
884
907
|
}],
|
|
885
908
|
"selectAllRef": [{
|
|
886
|
-
"
|
|
909
|
+
"watch17": 0
|
|
887
910
|
}],
|
|
888
911
|
"invalidMessage": [{
|
|
889
|
-
"
|
|
912
|
+
"watch18": 0
|
|
890
913
|
}]
|
|
891
914
|
}; }
|
|
892
915
|
};
|
|
@@ -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-CSMPhlzz.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBDivider = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -18,12 +18,16 @@ const DBDivider = class {
|
|
|
18
18
|
const attributes = parent.attributes;
|
|
19
19
|
for (let i = 0; i < attributes.length; i++) {
|
|
20
20
|
const attr = attributes.item(i);
|
|
21
|
-
if (attr &&
|
|
21
|
+
if (attr && attr.name !== 'data-density' &&
|
|
22
22
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
23
23
|
element.setAttribute(attr.name, attr.value);
|
|
24
24
|
parent.removeAttribute(attr.name);
|
|
25
25
|
}
|
|
26
|
-
if (attr && attr.name
|
|
26
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
27
|
+
element.setAttribute(attr.name, attr.value);
|
|
28
|
+
parent.removeAttribute(attr.name);
|
|
29
|
+
}
|
|
30
|
+
else if (attr && attr.name === "class") {
|
|
27
31
|
const isWebComponent = attr.value.includes("hydrated");
|
|
28
32
|
const value = attr.value.replace("hydrated", "").trim();
|
|
29
33
|
const currentClass = element.getAttribute("class");
|
|
@@ -43,9 +47,10 @@ const DBDivider = class {
|
|
|
43
47
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
44
48
|
}
|
|
45
49
|
render() {
|
|
46
|
-
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (index.h("div", { key: '6085ef73845be698561795af1a69cee864b31b7d', class: index$1.cls("db-divider", this.className), ref: (el) => {
|
|
47
52
|
this._ref = el;
|
|
48
|
-
}, 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 }));
|
|
49
54
|
}
|
|
50
55
|
};
|
|
51
56
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.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) {
|
|
@@ -83,12 +83,16 @@ const DBDrawer = class {
|
|
|
83
83
|
const attributes = parent.attributes;
|
|
84
84
|
for (let i = 0; i < attributes.length; i++) {
|
|
85
85
|
const attr = attributes.item(i);
|
|
86
|
-
if (attr &&
|
|
86
|
+
if (attr && attr.name !== 'data-density' &&
|
|
87
87
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
88
88
|
element.setAttribute(attr.name, attr.value);
|
|
89
89
|
parent.removeAttribute(attr.name);
|
|
90
90
|
}
|
|
91
|
-
if (attr && attr.name
|
|
91
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
92
|
+
element.setAttribute(attr.name, attr.value);
|
|
93
|
+
parent.removeAttribute(attr.name);
|
|
94
|
+
}
|
|
95
|
+
else if (attr && attr.name === "class") {
|
|
92
96
|
const isWebComponent = attr.value.includes("hydrated");
|
|
93
97
|
const value = attr.value.replace("hydrated", "").trim();
|
|
94
98
|
const currentClass = element.getAttribute("class");
|
|
@@ -130,12 +134,12 @@ const DBDrawer = class {
|
|
|
130
134
|
this.watch1Fn();
|
|
131
135
|
}
|
|
132
136
|
render() {
|
|
133
|
-
var _a;
|
|
134
|
-
return (index.h("dialog", { key: '
|
|
137
|
+
var _a, _b, _c;
|
|
138
|
+
return (index.h("dialog", { key: '4a002d3faba35e33b0ad6f37eb4c1bc8e1fcbe13', 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) => {
|
|
135
139
|
this._ref = el;
|
|
136
|
-
}, 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: '644050fdd2392c907e6cc375ace9dcc4205f4b7f', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
|
|
137
141
|
this.dialogContainerRef = el;
|
|
138
|
-
}, "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: 'f4dc3a298eafc6c45d2bdf459c90a58faf856925', class: "db-drawer-header" }, index.h("div", { key: '21d808fe191e85f15f7c2a1512ad461199494c6e', class: "db-drawer-header-text" }, index.h("slot", { key: '4962256732612a5d5f629540916874189bc0f0e0', name: "drawerHeader" })), index.h("db-button", { key: '494015c896edb8b246f7c734d8906182043cfaf6', 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: '00ffdb6c782d620e0ac6d7fdb41312c65c68b197', class: "db-drawer-content" }, index.h("slot", { key: 'edc0a393b10741fd41de513b3572b4ce7ce2cae3' })))));
|
|
139
143
|
}
|
|
140
144
|
static get watchers() { return {
|
|
141
145
|
"open": [{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSMPhlzz.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-BztJmEHf.js');
|
|
7
|
+
require('./floating-components-pYaTeNhp.js');
|
|
8
8
|
|
|
9
9
|
const DBHeader = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -38,12 +38,16 @@ const DBHeader = class {
|
|
|
38
38
|
const attributes = parent.attributes;
|
|
39
39
|
for (let i = 0; i < attributes.length; i++) {
|
|
40
40
|
const attr = attributes.item(i);
|
|
41
|
-
if (attr &&
|
|
41
|
+
if (attr && attr.name !== 'data-density' &&
|
|
42
42
|
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
43
43
|
element.setAttribute(attr.name, attr.value);
|
|
44
44
|
parent.removeAttribute(attr.name);
|
|
45
45
|
}
|
|
46
|
-
if (attr && attr.name
|
|
46
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
47
|
+
element.setAttribute(attr.name, attr.value);
|
|
48
|
+
parent.removeAttribute(attr.name);
|
|
49
|
+
}
|
|
50
|
+
else if (attr && attr.name === "class") {
|
|
47
51
|
const isWebComponent = attr.value.includes("hydrated");
|
|
48
52
|
const value = attr.value.replace("hydrated", "").trim();
|
|
49
53
|
const currentClass = element.getAttribute("class");
|
|
@@ -79,10 +83,10 @@ const DBHeader = class {
|
|
|
79
83
|
this.watch0Fn();
|
|
80
84
|
}
|
|
81
85
|
render() {
|
|
82
|
-
var _a;
|
|
83
|
-
return (index.h("header", { key: '
|
|
86
|
+
var _a, _b, _c;
|
|
87
|
+
return (index.h("header", { key: '472c3e72f6651ee5c09bc306cb46256782600379', class: index$1.cls("db-header", this.className), ref: (el) => {
|
|
84
88
|
this._ref = el;
|
|
85
|
-
}, 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: 'e43b6fe88c420aafcccbe10c1852b1ad8c640a67', 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: 'cd1d184da10661cc41a32c7b26e352a01d62acb5', class: "db-header-drawer-navigation" }, index.h("div", { key: 'a7f992b669f4efdc58a05eef1d45d0b279eb652d', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '24fb78c5ba0eff9d594f8b41eb3bc986e7163276' })), index.h("div", { key: 'e509d62474a96831495428c5becb9fbf07b27b45', class: "db-header-meta-navigation" }, index.h("slot", { key: '65a8037fc817c20078f4e2e056268d40a973190a', name: "metaNavigation" }))), index.h("div", { key: 'ccb1c32adfcfcf8c94c1d9683e97140e99c7bc4b', class: "db-header-secondary-action" }, index.h("slot", { key: 'c1bd838bf97674d7537ad23d74b448f0e6f6b60b', name: "secondaryAction" }))), index.h("div", { key: '580b1e921589716809c6add27d0ebbd4577c36c5', class: "db-header-meta-navigation" }, index.h("slot", { key: '38264be6e940feb9b1d5f7c20133036af0db4467', name: "metaNavigation" })), index.h("div", { key: 'fab3ea7eb1b20b5626eb481e23eed33196e5391e', class: "db-header-navigation-bar" }, index.h("div", { key: '5c09d40a2d4db6fd3c04406d3f39f4e9a61f9c9c', class: "db-header-brand-container" }, index.h("slot", { key: '762b7e3669486369d0440af4774358c2be73aa6f', name: "brand" })), index.h("div", { key: 'a19ea0d8ce9d34a05a041fa489bf9586116296d0', class: "db-header-navigation-container" }, index.h("div", { key: '1bf7424bcbd9903f52bd55f1459481d73da47769', class: "db-header-navigation" }, index.h("slot", { key: '928dab58c49293b0ddc6014d491d839b07394832' })), index.h("div", { key: 'e470c62116f04772d3daac1c6088b69957fc8e22', class: "db-header-primary-action" }, index.h("slot", { key: '726b5e41a818a50bded6c79df27a697c132e1793', name: "primaryAction" }))), index.h("div", { key: 'c00bb939d06ab93e7f2979c13713841d48044cf9', class: "db-header-action-container" }, index.h("div", { key: '52444a5096ccda4b0bf62657aa6ac904ccb93720', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '22ed7c031d16610ff0cb62badf90e8388867b296', 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: '9a6e595cf1d6d14357c8223e422517e0f3753e64', class: "db-header-secondary-action" }, index.h("slot", { key: 'ed8ac7dbd116208d0a1158335deacb64c7278de8', name: "secondaryAction" }))))));
|
|
86
90
|
}
|
|
87
91
|
static get watchers() { return {
|
|
88
92
|
"initialized": [{
|