@db-ux/wc-core-components 4.3.2 → 4.4.0-loading-567cd0c
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 +8 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/db-accordion.cjs.entry.js +2 -2
- package/dist/cjs/db-badge.cjs.entry.js +2 -2
- package/dist/cjs/db-brand.cjs.entry.js +2 -2
- package/dist/cjs/db-button.cjs.entry.js +2 -2
- package/dist/cjs/db-card.cjs.entry.js +2 -2
- package/dist/cjs/db-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/{db-custom-select-dropdown_5.cjs.entry.js → db-custom-select-dropdown_6.cjs.entry.js} +257 -5
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
- package/dist/cjs/db-custom-select.cjs.entry.js +14 -16
- package/dist/cjs/db-divider.cjs.entry.js +3 -3
- package/dist/cjs/db-drawer.cjs.entry.js +5 -5
- package/dist/cjs/db-header.cjs.entry.js +4 -4
- package/dist/cjs/db-icon.cjs.entry.js +3 -3
- package/dist/cjs/db-infotext.cjs.entry.js +2 -2
- package/dist/cjs/db-link.cjs.entry.js +3 -3
- package/dist/cjs/db-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/db-navigation.cjs.entry.js +4 -4
- package/dist/cjs/db-notification.cjs.entry.js +8 -4
- package/dist/cjs/db-page.cjs.entry.js +4 -4
- package/dist/cjs/db-popover.cjs.entry.js +5 -5
- package/dist/cjs/db-radio.cjs.entry.js +4 -4
- package/dist/cjs/db-section.cjs.entry.js +4 -4
- package/dist/cjs/db-select.cjs.entry.js +18 -7
- package/dist/cjs/db-stack.cjs.entry.js +4 -4
- package/dist/cjs/db-switch.cjs.entry.js +5 -5
- package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
- package/dist/cjs/db-tabs.cjs.entry.js +4 -4
- package/dist/cjs/db-textarea.cjs.entry.js +5 -5
- package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{document-click-listener-B2Xzqbvs.js → document-click-listener-Bb3Tinb8.js} +1 -1
- package/dist/cjs/{document-scroll-listener-C_v46oIg.js → document-scroll-listener-unypEU42.js} +1 -1
- package/dist/cjs/{form-components-BrtqMwX0.js → form-components-LsqVohyb.js} +1 -1
- package/dist/cjs/{index-CW5aVEyQ.js → index-CsHqnQII.js} +26 -0
- package/dist/cjs/{index-Mi8dWSSD.js → index-TxzPzc5I.js} +69 -6
- package/dist/cjs/index.cjs.js +9 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/custom-select/custom-select.js +15 -17
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/drawer/drawer.js +3 -3
- package/dist/collection/components/header/header.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/loading-indicator/examples/_indicators.data.js +91 -0
- package/dist/collection/components/loading-indicator/index.js +2 -0
- package/dist/collection/components/loading-indicator/loading-indicator.js +713 -0
- package/dist/collection/components/loading-indicator/model.js +2 -0
- package/dist/collection/components/navigation/navigation.js +2 -2
- package/dist/collection/components/navigation-item/navigation-item.js +1 -1
- package/dist/collection/components/notification/notification.js +41 -11
- package/dist/collection/components/page/page.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/section/section.js +2 -2
- package/dist/collection/components/select/select.js +49 -12
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab-item/tab-item.js +2 -2
- package/dist/collection/components/tab-list/tab-list.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +2 -2
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/index.js +25 -0
- package/dist/custom-elements.json +2499 -888
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-e7e35164.entry.js → p-0a073f5e.entry.js} +1 -1
- package/dist/db-ux/p-19def2d3.entry.js +1 -0
- package/dist/db-ux/p-1bbe8d13.entry.js +1 -0
- package/dist/db-ux/{p-197f90e4.entry.js → p-2a1481e9.entry.js} +1 -1
- package/dist/db-ux/{p-b6538eed.entry.js → p-30ceac5f.entry.js} +1 -1
- package/dist/db-ux/p-34862d35.entry.js +1 -0
- package/dist/db-ux/{p-44f2f09d.entry.js → p-3aba68af.entry.js} +1 -1
- package/dist/db-ux/p-46b4ed7f.entry.js +1 -0
- package/dist/db-ux/{p-5bca6d35.entry.js → p-4b4916fb.entry.js} +1 -1
- package/dist/db-ux/{p-78f6b72a.entry.js → p-4bda74c9.entry.js} +1 -1
- package/dist/db-ux/{p-9a543d5a.entry.js → p-5c55381c.entry.js} +1 -1
- package/dist/db-ux/{p-a1e66a3d.entry.js → p-642484ca.entry.js} +1 -1
- package/dist/db-ux/p-66e24856.entry.js +1 -0
- package/dist/db-ux/p-69ebe202.entry.js +1 -0
- package/dist/db-ux/{p-a232eea2.entry.js → p-78fd1504.entry.js} +1 -1
- package/dist/db-ux/p-7c0621ef.entry.js +1 -0
- package/dist/db-ux/{p-286f83f4.entry.js → p-8931bdc6.entry.js} +1 -1
- package/dist/db-ux/{p-26fa6bc1.entry.js → p-8e63e73c.entry.js} +1 -1
- package/dist/db-ux/p-8ff8418d.entry.js +1 -0
- package/dist/db-ux/{p-29d3070a.entry.js → p-919ff123.entry.js} +1 -1
- package/dist/db-ux/p-B6-lLNGQ.js +2 -0
- package/dist/db-ux/p-BhXdfCpU.js +1 -0
- package/dist/db-ux/p-C4x0SOcx.js +1 -0
- package/dist/db-ux/{p-Cb-k135w.js → p-CAEpg8tJ.js} +1 -1
- package/dist/db-ux/{p-EqlW5Wqf.js → p-RHqkTr-_.js} +1 -1
- package/dist/db-ux/p-a01a5c4a.entry.js +1 -0
- package/dist/db-ux/{p-027fb90a.entry.js → p-a95f6c84.entry.js} +1 -1
- package/dist/db-ux/{p-e30a4814.entry.js → p-ada8a2ac.entry.js} +1 -1
- package/dist/db-ux/p-b05bc567.entry.js +1 -0
- package/dist/db-ux/p-c1825fa6.entry.js +1 -0
- package/dist/db-ux/p-e847596c.entry.js +1 -0
- package/dist/db-ux/{p-13dd39f1.entry.js → p-f3cc7450.entry.js} +1 -1
- package/dist/db-ux/{p-a7463ead.entry.js → p-f64ab366.entry.js} +1 -1
- package/dist/db-ux/p-f71548d2.entry.js +1 -0
- package/dist/db-ux/{p-29efc51e.entry.js → p-fd4f5fac.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +2 -2
- package/dist/esm/db-accordion.entry.js +2 -2
- package/dist/esm/db-badge.entry.js +2 -2
- package/dist/esm/db-brand.entry.js +2 -2
- package/dist/esm/db-button.entry.js +2 -2
- package/dist/esm/db-card.entry.js +2 -2
- package/dist/esm/db-checkbox.entry.js +3 -3
- package/dist/esm/{db-custom-select-dropdown_5.entry.js → db-custom-select-dropdown_6.entry.js} +258 -7
- package/dist/esm/db-custom-select-form-field.entry.js +4 -4
- package/dist/esm/db-custom-select.entry.js +14 -16
- package/dist/esm/db-divider.entry.js +3 -3
- package/dist/esm/db-drawer.entry.js +5 -5
- package/dist/esm/db-header.entry.js +4 -4
- package/dist/esm/db-icon.entry.js +3 -3
- package/dist/esm/db-infotext.entry.js +2 -2
- package/dist/esm/db-link.entry.js +3 -3
- package/dist/esm/db-navigation-item.entry.js +3 -3
- package/dist/esm/db-navigation.entry.js +4 -4
- package/dist/esm/db-notification.entry.js +8 -4
- package/dist/esm/db-page.entry.js +4 -4
- package/dist/esm/db-popover.entry.js +5 -5
- package/dist/esm/db-radio.entry.js +4 -4
- package/dist/esm/db-section.entry.js +4 -4
- package/dist/esm/db-select.entry.js +18 -7
- package/dist/esm/db-stack.entry.js +4 -4
- package/dist/esm/db-switch.entry.js +5 -5
- package/dist/esm/db-tab-item_3.entry.js +8 -8
- package/dist/esm/db-tabs.entry.js +4 -4
- package/dist/esm/db-textarea.entry.js +5 -5
- package/dist/esm/db-tooltip.entry.js +5 -5
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{document-click-listener-B_LaIr0O.js → document-click-listener-CmYoXpGE.js} +1 -1
- package/dist/esm/{document-scroll-listener-dHAsT0Tb.js → document-scroll-listener-65bHuFAN.js} +1 -1
- package/dist/esm/{form-components-Cl_wgkeJ.js → form-components-BLsiOrPI.js} +1 -1
- package/dist/esm/{index-9pYJFapZ.js → index-B6-lLNGQ.js} +69 -6
- package/dist/esm/{index-BwBkekqp.js → index-C4x0SOcx.js} +26 -1
- package/dist/esm/index.js +7 -4
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/custom-select/custom-select.d.ts +1 -1
- package/dist/types/components/link/model.d.ts +2 -2
- package/dist/types/components/loading-indicator/examples/_indicators.data.d.ts +49 -0
- package/dist/types/components/loading-indicator/index.d.ts +2 -0
- package/dist/types/components/loading-indicator/loading-indicator.d.ts +56 -0
- package/dist/types/components/loading-indicator/model.d.ts +39 -0
- package/dist/types/components/notification/model.d.ts +2 -2
- package/dist/types/components/notification/notification.d.ts +2 -1
- package/dist/types/components/select/model.d.ts +10 -0
- package/dist/types/components/select/select.d.ts +3 -1
- package/dist/types/components.d.ts +91 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/shared/model.d.ts +12 -8
- package/dist/types/utils/index.d.ts +12 -0
- package/dist/vscode.html-custom-data.json +182 -22
- package/dist/web-types.json +316 -51
- package/package.json +4 -4
- package/dist/db-ux/p-15241486.entry.js +0 -1
- package/dist/db-ux/p-2069117e.entry.js +0 -1
- package/dist/db-ux/p-2baf9c08.entry.js +0 -1
- package/dist/db-ux/p-39d22a0f.entry.js +0 -1
- package/dist/db-ux/p-462d8de5.entry.js +0 -1
- package/dist/db-ux/p-58611dcc.entry.js +0 -1
- package/dist/db-ux/p-623a6b59.entry.js +0 -1
- package/dist/db-ux/p-9d5365f7.entry.js +0 -1
- package/dist/db-ux/p-9pYJFapZ.js +0 -2
- package/dist/db-ux/p-BwBkekqp.js +0 -1
- package/dist/db-ux/p-a98bde77.entry.js +0 -1
- package/dist/db-ux/p-af0e61d0.entry.js +0 -1
- package/dist/db-ux/p-b729b29f.entry.js +0 -1
- package/dist/db-ux/p-bde7ff5f.entry.js +0 -1
- package/dist/db-ux/p-c9d514e5.entry.js +0 -1
- package/dist/db-ux/p-cqrM3KjS.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @db-ux/wc-core-components
|
|
2
2
|
|
|
3
|
+
## 4.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: add `role` property to DBNotification & automatically add role based on semantic if no `role` or `ariaLive` is provided to increase UX for screen-reader users - [see commit 177d71e](https://github.com/db-ux-design-system/core-web/commit/177d71e287a64a6491ba446e7812d0adbda1717e)
|
|
8
|
+
|
|
9
|
+
- feat(DBSelect): hide empty first option in `required` selects with placeholder after the first user selection, and add `showEmptyOption` prop to overwrite this - [see commit 4280bc4](https://github.com/db-ux-design-system/core-web/commit/4280bc47538d6983d6bb5575f012b6c6b25b40e8)
|
|
10
|
+
|
|
3
11
|
## 4.3.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
7
7
|
const DBAccordionItem = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
7
7
|
const DBAccordion = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
7
7
|
const DBBadge = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
7
7
|
const DBBrand = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
var formComponents = require('./form-components-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
|
+
var formComponents = require('./form-components-LsqVohyb.js');
|
|
7
7
|
|
|
8
8
|
const DBCheckbox = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
var constants = require('./constants-bMY2_d8A.js');
|
|
6
|
-
var formComponents = require('./form-components-
|
|
6
|
+
var formComponents = require('./form-components-LsqVohyb.js');
|
|
7
7
|
|
|
8
8
|
const DBCustomSelectDropdown = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -463,14 +463,266 @@ const DBTag = class {
|
|
|
463
463
|
}
|
|
464
464
|
render() {
|
|
465
465
|
var _a;
|
|
466
|
-
return (index.h("div", { key: '
|
|
466
|
+
return (index.h("div", { key: '6be4d8cc4b856ac198e4c207860e9529c436060f', class: index$1.cls("db-tag", this.className), ref: (el) => {
|
|
467
467
|
this._ref = el;
|
|
468
|
-
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '
|
|
468
|
+
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": index$1.getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-no-text": index$1.getBooleanAsString(this.noText), "data-overflow": index$1.getBooleanAsString(this.overflow) }, index.h("slot", { key: '3ed9ce9b0eb66bb92a2c4a5303be1b0d16001841', name: "content" }), index.h("slot", { key: '9098de64b545b04f81f6a980700879610f9ec7bc' }), this.text ? this.text : null, this.behavior === "removable" ? (index.h("button", { class: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", type: "button", onClick: (event) => this.handleRemove(event) }, index.h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
|
|
472
|
+
const DBLoadingIndicator = class {
|
|
473
|
+
constructor(hostRef) {
|
|
474
|
+
index.registerInstance(this, hostRef);
|
|
475
|
+
this.timeout = index.createEvent(this, "timeout");
|
|
476
|
+
this.autoDisable = true;
|
|
477
|
+
this.indeterminate = true;
|
|
478
|
+
this.size = "medium";
|
|
479
|
+
this.variant = "inline";
|
|
480
|
+
this._id = constants.DEFAULT_ID;
|
|
481
|
+
this._loadingState = "inactive";
|
|
482
|
+
this._previousLoadingState = undefined;
|
|
483
|
+
this._style = {};
|
|
484
|
+
this.initialized = false;
|
|
485
|
+
}
|
|
486
|
+
getPercentage() {
|
|
487
|
+
if (this.indeterminate || !this.value || !this.max) {
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
return `${(Number(this.value) / Number(this.max)).toFixed(2)}`;
|
|
491
|
+
}
|
|
492
|
+
getRole() {
|
|
493
|
+
if (this.role) {
|
|
494
|
+
if (this.role === "none") {
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
return this.role;
|
|
498
|
+
}
|
|
499
|
+
return "status";
|
|
500
|
+
}
|
|
501
|
+
handleParentDisabled() {
|
|
502
|
+
if (this._ref && this.autoDisable && this.initialized) {
|
|
503
|
+
let parent = this._ref.parentElement;
|
|
504
|
+
if (parent && parent.localName === "db-loading-indicator") {
|
|
505
|
+
parent = parent.parentElement;
|
|
506
|
+
}
|
|
507
|
+
if (parent && "disabled" in parent) {
|
|
508
|
+
parent.disabled = this._loadingState !== "inactive";
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
handleParentAria(remove) {
|
|
513
|
+
if (this._ref && this._id && this.initialized) {
|
|
514
|
+
let parent = this._ref.parentElement;
|
|
515
|
+
if (parent && parent.localName === "db-loading-indicator") {
|
|
516
|
+
parent = parent.parentElement;
|
|
517
|
+
}
|
|
518
|
+
if (!parent)
|
|
519
|
+
return;
|
|
520
|
+
const isButton = (parent === null || parent === void 0 ? void 0 : parent.localName) === "button";
|
|
521
|
+
if (!(isButton || this.overlay))
|
|
522
|
+
return;
|
|
523
|
+
const ariaAttribute = isButton ? "aria-labelledby" : "aria-describedby";
|
|
524
|
+
const ariaLabelledBy = parent.getAttribute(ariaAttribute);
|
|
525
|
+
let labelledByElements = ariaLabelledBy ? ariaLabelledBy.split(",") : [];
|
|
526
|
+
if (remove || this._loadingState === "inactive") {
|
|
527
|
+
if (labelledByElements.includes(this._id)) {
|
|
528
|
+
labelledByElements = labelledByElements.filter((elementId) => elementId !== this._id);
|
|
529
|
+
if (!isButton) {
|
|
530
|
+
parent.ariaBusy = null;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
else {
|
|
538
|
+
if (!labelledByElements.includes(this._id)) {
|
|
539
|
+
labelledByElements.push(this._id);
|
|
540
|
+
}
|
|
541
|
+
if (!isButton) {
|
|
542
|
+
parent.ariaBusy = this._loadingState === "active" ? "true" : null;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
if (labelledByElements.length) {
|
|
546
|
+
parent.setAttribute(ariaAttribute, labelledByElements.join(","));
|
|
547
|
+
}
|
|
548
|
+
else {
|
|
549
|
+
parent.removeAttribute(ariaAttribute);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
555
|
+
* @param element the ref for the component
|
|
556
|
+
* @param customElementSelector the custom element like `my-component`
|
|
557
|
+
*/
|
|
558
|
+
enableAttributePassing(element, customElementSelector) {
|
|
559
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
560
|
+
if (element && parent) {
|
|
561
|
+
const attributes = parent.attributes;
|
|
562
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
563
|
+
const attr = attributes.item(i);
|
|
564
|
+
if (attr &&
|
|
565
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
566
|
+
element.setAttribute(attr.name, attr.value);
|
|
567
|
+
parent.removeAttribute(attr.name);
|
|
568
|
+
}
|
|
569
|
+
if (attr && attr.name === "class") {
|
|
570
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
571
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
572
|
+
const currentClass = element.getAttribute("class");
|
|
573
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
574
|
+
if (isWebComponent) {
|
|
575
|
+
// Stencil is using this class for lazy loading component
|
|
576
|
+
parent.setAttribute("class", "hydrated");
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
parent.removeAttribute(attr.name);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
watch0Fn() {
|
|
586
|
+
this.handleParentDisabled();
|
|
587
|
+
}
|
|
588
|
+
watch0() {
|
|
589
|
+
this.watch0Fn();
|
|
590
|
+
}
|
|
591
|
+
watch1Fn() {
|
|
592
|
+
this.handleParentAria(false);
|
|
593
|
+
}
|
|
594
|
+
watch1() {
|
|
595
|
+
this.watch1Fn();
|
|
596
|
+
}
|
|
597
|
+
watch2Fn() {
|
|
598
|
+
if (this.timeout) {
|
|
599
|
+
// Not merged if as workaround for angular
|
|
600
|
+
if (this._loadingState !== "inactive" &&
|
|
601
|
+
this._loadingState !== this._previousLoadingState) {
|
|
602
|
+
this._previousLoadingState = this._loadingState;
|
|
603
|
+
void index$1.delay(() => {
|
|
604
|
+
if (this.timeout) {
|
|
605
|
+
this.timeout.emit(this._loadingState);
|
|
606
|
+
}
|
|
607
|
+
}, this._loadingState === "active" ? 5000 : 2000);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
watch2() {
|
|
612
|
+
this.watch2Fn();
|
|
613
|
+
}
|
|
614
|
+
watch3Fn() {
|
|
615
|
+
if (this._loadingState === this.state)
|
|
616
|
+
return;
|
|
617
|
+
if (this.state) {
|
|
618
|
+
this._loadingState = this.state;
|
|
619
|
+
}
|
|
620
|
+
else if (this.indeterminate === undefined || this.indeterminate) {
|
|
621
|
+
this._loadingState = "active";
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
this._loadingState = "inactive";
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
watch3() {
|
|
628
|
+
this.watch3Fn();
|
|
629
|
+
}
|
|
630
|
+
watch4Fn() {
|
|
631
|
+
if (this._ref) {
|
|
632
|
+
if (this.delay === "slow" || this.delay === "fast") {
|
|
633
|
+
void index$1.delay(() => {
|
|
634
|
+
if (this._ref) {
|
|
635
|
+
this._ref.dataset["delay"] = "";
|
|
636
|
+
}
|
|
637
|
+
}, this.delay === "slow" ? 500 : 250);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
watch4() {
|
|
642
|
+
this.watch4Fn();
|
|
643
|
+
}
|
|
644
|
+
watch5Fn() {
|
|
645
|
+
this._style = {
|
|
646
|
+
"--db-loading-indicator-percentage": this.getPercentage(),
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
watch5() {
|
|
650
|
+
this.watch5Fn();
|
|
651
|
+
}
|
|
652
|
+
componentDidLoad() {
|
|
653
|
+
this.enableAttributePassing(this._ref, "db-loading-indicator");
|
|
654
|
+
this._id = this.id || "loading-indicator-" + index$1.uuid();
|
|
655
|
+
this.initialized = true;
|
|
656
|
+
this.watch0Fn();
|
|
657
|
+
this.watch1Fn();
|
|
658
|
+
this.watch2Fn();
|
|
659
|
+
this.watch3Fn();
|
|
660
|
+
this.watch4Fn();
|
|
661
|
+
this.watch5Fn();
|
|
662
|
+
}
|
|
663
|
+
disconnectedCallback() {
|
|
664
|
+
this.handleParentAria(true);
|
|
665
|
+
this.handleParentDisabled();
|
|
666
|
+
}
|
|
667
|
+
render() {
|
|
668
|
+
var _a, _b;
|
|
669
|
+
return (index.h("div", { key: '4467fd7c9ebec6fe699995183b870ea08fa60ba7', class: index$1.cls("db-loading-indicator", this.className), ref: (el) => {
|
|
670
|
+
this._ref = el;
|
|
671
|
+
}, style: this._style, "data-indeterminate": index$1.getBooleanAsString(this.indeterminate), "data-size": this.size, "data-variant": this.variant, "data-delay": this.delay, "data-state": this._loadingState, "data-overlay": index$1.getBooleanAsString(this.overlay) }, this.variant !== "progress-bar" ? (index.h("svg", { class: "db-loading-indicator-circle", "aria-hidden": "true", viewBox: this.variant === "inline" ? "10 10 20 20" : "32 32 64 64" }, index.h("circle", { class: "db-loading-indicator-circle-track" }), index.h("circle", { class: "db-loading-indicator-circle-segment" }))) : null, index.h("div", { key: '7ea9f9fd64f1b7d073ca7917a4e8eb905eb344f0', role: this.getRole() }, index.h("label", { key: 'de7fd82a1e14e459735cf596f18104722965e7f2', "data-show-label": index$1.getBooleanAsString(this.showLabel), id: this._id }, this.label ? this.label : index.h("slot", null), index.h("progress", { key: 'd2abf58f6595675e873056610e1bec18bf4dff85', value: this.indeterminate ? undefined : (_a = this.value) !== null && _a !== void 0 ? _a : 0, max: this.indeterminate ? undefined : (_b = this.max) !== null && _b !== void 0 ? _b : 100 }, this.indeterminate ? undefined : this.progressText)), !this.indeterminate ? (index.h("span", { "aria-hidden": "true", "data-show-progress-text": index$1.getBooleanAsString(this.showProgressText) }, this.progressText)) : null)));
|
|
672
|
+
}
|
|
673
|
+
static get watchers() { return {
|
|
674
|
+
"_ref": [{
|
|
675
|
+
"watch0": 0
|
|
676
|
+
}, {
|
|
677
|
+
"watch1": 0
|
|
678
|
+
}, {
|
|
679
|
+
"watch4": 0
|
|
680
|
+
}],
|
|
681
|
+
"initialized": [{
|
|
682
|
+
"watch0": 0
|
|
683
|
+
}, {
|
|
684
|
+
"watch1": 0
|
|
685
|
+
}],
|
|
686
|
+
"autoDisable": [{
|
|
687
|
+
"watch0": 0
|
|
688
|
+
}],
|
|
689
|
+
"_loadingState": [{
|
|
690
|
+
"watch0": 0
|
|
691
|
+
}, {
|
|
692
|
+
"watch1": 0
|
|
693
|
+
}, {
|
|
694
|
+
"watch2": 0
|
|
695
|
+
}],
|
|
696
|
+
"overlay": [{
|
|
697
|
+
"watch1": 0
|
|
698
|
+
}],
|
|
699
|
+
"_id": [{
|
|
700
|
+
"watch1": 0
|
|
701
|
+
}],
|
|
702
|
+
"timeout": [{
|
|
703
|
+
"watch2": 0
|
|
704
|
+
}],
|
|
705
|
+
"state": [{
|
|
706
|
+
"watch3": 0
|
|
707
|
+
}],
|
|
708
|
+
"delay": [{
|
|
709
|
+
"watch4": 0
|
|
710
|
+
}],
|
|
711
|
+
"indeterminate": [{
|
|
712
|
+
"watch5": 0
|
|
713
|
+
}],
|
|
714
|
+
"value": [{
|
|
715
|
+
"watch5": 0
|
|
716
|
+
}],
|
|
717
|
+
"max": [{
|
|
718
|
+
"watch5": 0
|
|
719
|
+
}]
|
|
720
|
+
}; }
|
|
721
|
+
};
|
|
722
|
+
|
|
472
723
|
exports.db_custom_select_dropdown = DBCustomSelectDropdown;
|
|
473
724
|
exports.db_custom_select_list = DBCustomSelectList;
|
|
474
725
|
exports.db_custom_select_list_item = DBCustomSelectListItem;
|
|
475
726
|
exports.db_input = DBInput;
|
|
727
|
+
exports.db_loading_indicator = DBLoadingIndicator;
|
|
476
728
|
exports.db_tag = DBTag;
|
|
@@ -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-TxzPzc5I.js');
|
|
4
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectFormField = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -43,9 +43,9 @@ const DBCustomSelectFormField = class {
|
|
|
43
43
|
this.enableAttributePassing(this._ref, "db-custom-select-form-field");
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (index.h("summary", { key: '
|
|
46
|
+
return (index.h("summary", { key: 'd99ab4a28f0604d5aa10d54e5da18ce976a93bf8', class: index$1.cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
47
47
|
this._ref = el;
|
|
48
|
-
}, id: this.id }, index.h("slot", { key: '
|
|
48
|
+
}, id: this.id }, index.h("slot", { key: '40f581da69159f298d83a097e08c2f74e5dfcb23' })));
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.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-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
|
+
var documentClickListener = require('./document-click-listener-Bb3Tinb8.js');
|
|
7
|
+
var documentScrollListener = require('./document-scroll-listener-unypEU42.js');
|
|
8
8
|
var floatingComponents = require('./floating-components-ogUqz72V.js');
|
|
9
|
-
var formComponents = require('./form-components-
|
|
9
|
+
var formComponents = require('./form-components-LsqVohyb.js');
|
|
10
10
|
|
|
11
11
|
const DBCustomSelect = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -772,30 +772,28 @@ const DBCustomSelect = class {
|
|
|
772
772
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
773
773
|
}
|
|
774
774
|
render() {
|
|
775
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
776
|
-
return (index.h("div", { key: '
|
|
775
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
776
|
+
return (index.h("div", { key: '633c651cd764cf5bb424955fa5e2bfd30e5e8e28', class: index$1.cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
777
777
|
this._ref = el;
|
|
778
778
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
779
779
|
this.selectedType === "tag" &&
|
|
780
780
|
this.multiple
|
|
781
781
|
? "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: '
|
|
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: 'c6341945f060e403c8b0d5a3bb65c8055a07e3c4', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: 'f7f9c77a12b40942365717378617ea45d38d3c0d', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
783
783
|
this.selectRef = el;
|
|
784
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)
|
|
785
|
-
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value
|
|
786
|
-
: null)), index.h("details", { key: '
|
|
785
|
+
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (index.h("option", { disabled: option.disabled, value: option.value }, this.getOptionLabel(option))))
|
|
786
|
+
: null)), index.h("details", { key: '3fa0220b25ec6de48ccc29628418094022835df1', ref: (el) => {
|
|
787
787
|
this.detailsRef = el;
|
|
788
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '
|
|
788
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, index.h("slot", { key: '7eb160f589f3dbb0e171ac49bb310272108511b8' }), 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), "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) }, 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
789
|
this.searchInputRef = el;
|
|
790
790
|
}, 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
791
|
? this._infoTextId
|
|
792
|
-
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-
|
|
793
|
-
? this.loadingText
|
|
794
|
-
: this.noResultsText)) !== null && _h !== void 0 ? _h : constants.DEFAULT_MESSAGE)) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
|
|
792
|
+
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (this.showLoading ? (index.h("db-loading-indicator", { id: this._infoTextId }, (_h = this.loadingText) !== null && _h !== void 0 ? _h : constants.DEFAULT_MESSAGE)) : (index.h("db-infotext", { semantic: "warning", id: this._infoTextId }, (_j = this.noResultsText) !== null && _j !== void 0 ? _j : constants.DEFAULT_MESSAGE))) : (index.h(index.Fragment, null, this.selectAllEnabled ? (index.h("div", null, index.h("div", { class: "db-checkbox db-custom-select-list-item" }, index.h("label", null, index.h("input", { type: "checkbox", value: "select-all", ref: (el) => {
|
|
795
793
|
this.selectAllRef = el;
|
|
796
|
-
}, 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: (
|
|
794
|
+
}, 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: (_l = (_k = this.listLabel) !== null && _k !== void 0 ? _k : this.label) !== null && _l !== void 0 ? _l : constants.DEFAULT_LABEL }, (_m = this._options) === null || _m === void 0 ? void 0 : _m.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) }, !option.isGroupTitle
|
|
797
795
|
? 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) }, (
|
|
796
|
+
: 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) }, (_o = this.mobileCloseButtonText) !== null && _o !== void 0 ? _o : constants.DEFAULT_CLOSE_BUTTON))))) : null), ((_p = this.showClearSelection) !== null && _p !== void 0 ? _p : true) && ((_q = this._values) === null || _q === void 0 ? void 0 : _q.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: 'df9efbb6d3dbae644a5dbfc0fc92488f5b67da54', class: "db-custom-select-placeholder", "aria-hidden": index$1.getBooleanAsString(true), id: this._placeholderId }, (_r = this.placeholder) !== null && _r !== void 0 ? _r : 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: '562bb4adda23878fe108eba0d2395124685cf24a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '93195757db11641ed911fd3684e91d6b76168cb1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
799
797
|
}
|
|
800
798
|
static get watchers() { return {
|
|
801
799
|
"detailsRef": [{
|
|
@@ -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-TxzPzc5I.js');
|
|
4
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBDivider = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -43,7 +43,7 @@ const DBDivider = class {
|
|
|
43
43
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (index.h("div", { key: '
|
|
46
|
+
return (index.h("div", { key: '46d2766f34dc660f82cda63261ea96da0a72115f', class: index$1.cls("db-divider", this.className), ref: (el) => {
|
|
47
47
|
this._ref = el;
|
|
48
48
|
}, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
49
49
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
7
7
|
const DBDrawer = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -131,11 +131,11 @@ const DBDrawer = class {
|
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
133
|
var _a;
|
|
134
|
-
return (index.h("dialog", { key: '
|
|
134
|
+
return (index.h("dialog", { key: 'cc48481a5694b3ed2a21accbbbf0a2d803cbae34', class: "db-drawer", id: this.id, ref: (el) => {
|
|
135
135
|
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: '
|
|
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: 'd50942300d0d842e3f6ad754920c8deddb3b4f3f', class: index$1.cls("db-drawer-container", this.className), ref: (el) => {
|
|
137
137
|
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: '
|
|
138
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": index$1.getBooleanAsString(this.rounded) }, index.h("header", { key: 'd1c47a728ce03f4415e455352efcee61b9373d61', class: "db-drawer-header" }, index.h("div", { key: 'f19808d4597fbda4d9e0ceb224f8de4d3407f98c', class: "db-drawer-header-text" }, index.h("slot", { key: 'cfab663cef760d9d78244eead6b92bbabd919b4a', name: "drawerHeader" })), index.h("db-button", { key: '5391285b886bfba3be830f49365fd7c3acd98bb6', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_CLOSE_BUTTON)), index.h("div", { key: 'b83ad6bdaa47d7881ce831c696f38df7b77b041d', class: "db-drawer-content" }, index.h("slot", { key: '9fc37bc76ce5a6fc2945eaa225919f9c8fac8629' })))));
|
|
139
139
|
}
|
|
140
140
|
static get watchers() { return {
|
|
141
141
|
"open": [{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-TxzPzc5I.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
|
-
var index$1 = require('./index-
|
|
5
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
var navigation = require('./navigation-DauGE-qj.js');
|
|
7
7
|
require('./floating-components-ogUqz72V.js');
|
|
8
8
|
|
|
@@ -80,9 +80,9 @@ const DBHeader = class {
|
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
82
|
var _a;
|
|
83
|
-
return (index.h("header", { key: '
|
|
83
|
+
return (index.h("header", { key: 'f701b77c43467d06b10c109ff60694f70746eaf8', class: index$1.cls("db-header", this.className), ref: (el) => {
|
|
84
84
|
this._ref = el;
|
|
85
|
-
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: '
|
|
85
|
+
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, index.h("db-drawer", { key: '18c1b671c898c183bb352bb5f41978325cfa272e', 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: 'dd79824d62aa735869d10c1d667a64de2ed61cd7', class: "db-header-drawer-navigation" }, index.h("div", { key: 'baab299c370aeb0133022ac8715a97af2d41e598', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '25fba42e53aedf89b9efcd6479df4a20c31b37a0' })), index.h("div", { key: 'ee9e0fab26a77cbc44edda5f200e6d52e24d4ae6', class: "db-header-meta-navigation" }, index.h("slot", { key: '6a94b711843f10518e84f335df875d6d454d28a0', name: "metaNavigation" }))), index.h("div", { key: '1a9f4e2ccb9ffaddbbf19ee640dc82d0db009ffa', class: "db-header-secondary-action" }, index.h("slot", { key: '23f705f72608e8b5fa08fabc0f97ce61449fa388', name: "secondaryAction" }))), index.h("div", { key: 'a033891b1a8260327c56591fb12516dbe159b5e1', class: "db-header-meta-navigation" }, index.h("slot", { key: 'cfa5ffd51164e184eb68e04e8d83f3fd7ba94927', name: "metaNavigation" })), index.h("div", { key: '04430a76404e9e282b7249beee655a8e86d78dd2', class: "db-header-navigation-bar" }, index.h("div", { key: '5461e8c087ae579079017b738fb4ac36ddd44624', class: "db-header-brand-container" }, index.h("slot", { key: 'eed71de59cfb3cc65dc24797830bb4b7243a09f6', name: "brand" })), index.h("div", { key: 'c83e6866e91abc17fbe6ef06f3e976c8237644e7', class: "db-header-navigation-container" }, index.h("div", { key: '7cd0f313b6d25b400e0f0324b6f9d7e0f4dab61e', class: "db-header-navigation" }, index.h("slot", { key: '850c0eb5d3f7979a311880e3cf7b4c6484668ac3' })), index.h("div", { key: '48c8d805965f4bf8d443fa66bf2d8f9b46e30377', class: "db-header-primary-action" }, index.h("slot", { key: '42b4b88ecb12aedd83aaf97411c746a222ef7e83', name: "primaryAction" }))), index.h("div", { key: '836ed1d499998a707bc302443ed4885ec3347a0b', class: "db-header-action-container" }, index.h("div", { key: '8a483f37b9de0e49a97c352690dcfc9b3e457aba', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '32e96e0f6ae32b0c56d4540307a5cf5e92e35822', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : constants.DEFAULT_BURGER_MENU)), index.h("div", { key: 'c0db759bb4ce588e6d2302e3284908501fa556cb', class: "db-header-secondary-action" }, index.h("slot", { key: 'c2b198053cb8c57eeeb18153691b926627787083', name: "secondaryAction" }))))));
|
|
86
86
|
}
|
|
87
87
|
static get watchers() { return {
|
|
88
88
|
"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-TxzPzc5I.js');
|
|
4
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBIcon = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -43,7 +43,7 @@ const DBIcon = class {
|
|
|
43
43
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (index.h("span", { key: '
|
|
46
|
+
return (index.h("span", { key: 'f74b58da121bb69df759870f24684f15fc63cd3c', class: index$1.cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
47
47
|
this._ref = el;
|
|
48
48
|
}, 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)));
|
|
49
49
|
}
|
|
@@ -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-TxzPzc5I.js');
|
|
4
|
+
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBLink = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -44,7 +44,7 @@ const DBLink = class {
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
var _a, _b;
|
|
47
|
-
return (index.h("a", { key: '
|
|
47
|
+
return (index.h("a", { key: '9eec6b26274544cc6325624ad4028039610c8b2a', class: index$1.cls("db-link", this.className), ref: (el) => {
|
|
48
48
|
this._ref = el;
|
|
49
49
|
}, id: this.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_a = this.referrerpolicy) !== null && _a !== void 0 ? _a : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": index$1.getBooleanAsString((_b = this.showIcon) !== null && _b !== void 0 ? _b : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": index$1.getBooleanAsString(this.wrap) }, this.text ? this.text : index.h("slot", null)));
|
|
50
50
|
}
|