@db-ux/wc-core-components 4.4.0-loading-567cd0c → 4.4.1-floating-components-066d296
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 +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/{db-custom-select-dropdown_6.cjs.entry.js → db-custom-select-dropdown_5.cjs.entry.js} +3 -255
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +13 -11
- package/dist/cjs/db-divider.cjs.entry.js +2 -2
- package/dist/cjs/db-drawer.cjs.entry.js +4 -4
- package/dist/cjs/db-header.cjs.entry.js +5 -5
- package/dist/cjs/db-icon.cjs.entry.js +2 -2
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +2 -2
- package/dist/cjs/db-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/db-navigation.cjs.entry.js +3 -3
- package/dist/cjs/db-notification.cjs.entry.js +3 -3
- package/dist/cjs/db-page.cjs.entry.js +3 -3
- package/dist/cjs/db-popover.cjs.entry.js +5 -5
- package/dist/cjs/db-radio.cjs.entry.js +2 -2
- package/dist/cjs/db-section.cjs.entry.js +3 -3
- package/dist/cjs/db-select.cjs.entry.js +4 -4
- package/dist/cjs/db-stack.cjs.entry.js +3 -3
- package/dist/cjs/db-switch.cjs.entry.js +3 -3
- package/dist/cjs/db-tab-item_3.cjs.entry.js +7 -7
- package/dist/cjs/db-tabs.cjs.entry.js +3 -3
- package/dist/cjs/db-textarea.cjs.entry.js +3 -3
- package/dist/cjs/db-tooltip.cjs.entry.js +6 -5
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/{floating-components-ogUqz72V.js → floating-components-pYaTeNhp.js} +65 -15
- package/dist/cjs/{index-TxzPzc5I.js → index-Bi4QN5oK.js} +22 -50
- package/dist/cjs/index.cjs.js +2 -7
- 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 +1 -2
- package/dist/collection/components/custom-select/custom-select.js +17 -15
- 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/navigation/navigation.js +2 -2
- package/dist/collection/components/navigation-item/navigation-item.js +1 -1
- package/dist/collection/components/notification/notification.js +2 -2
- package/dist/collection/components/page/page.js +2 -2
- package/dist/collection/components/popover/popover.js +3 -3
- 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 +3 -3
- 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 +4 -3
- package/dist/collection/index.js +0 -2
- package/dist/collection/utils/floating-components.js +65 -15
- package/dist/custom-elements.json +568 -2119
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/p-05XnVETo.js +2 -0
- package/dist/db-ux/p-09f188aa.entry.js +1 -0
- package/dist/db-ux/{p-f64ab366.entry.js → p-146365b4.entry.js} +1 -1
- package/dist/db-ux/p-1975c375.entry.js +1 -0
- package/dist/db-ux/{p-4b4916fb.entry.js → p-19c9285e.entry.js} +1 -1
- package/dist/db-ux/{p-fd4f5fac.entry.js → p-1ae2420e.entry.js} +1 -1
- package/dist/db-ux/p-1e76ee94.entry.js +1 -0
- package/dist/db-ux/p-2c0bd1d8.entry.js +1 -0
- package/dist/db-ux/{p-a95f6c84.entry.js → p-32fcf516.entry.js} +1 -1
- package/dist/db-ux/p-349276ca.entry.js +1 -0
- package/dist/db-ux/p-36f93663.entry.js +1 -0
- package/dist/db-ux/{p-4bda74c9.entry.js → p-47b821f7.entry.js} +1 -1
- package/dist/db-ux/p-5549d866.entry.js +1 -0
- package/dist/db-ux/{p-30ceac5f.entry.js → p-56984c5d.entry.js} +1 -1
- package/dist/db-ux/p-5b87a881.entry.js +1 -0
- package/dist/db-ux/{p-1bbe8d13.entry.js → p-5e8b2167.entry.js} +1 -1
- package/dist/db-ux/{p-642484ca.entry.js → p-5e8d052f.entry.js} +1 -1
- package/dist/db-ux/p-77840cb4.entry.js +1 -0
- package/dist/db-ux/{p-ada8a2ac.entry.js → p-8a0ca84b.entry.js} +1 -1
- package/dist/db-ux/{p-66e24856.entry.js → p-8d37aa19.entry.js} +1 -1
- package/dist/db-ux/{p-3aba68af.entry.js → p-8fb51989.entry.js} +1 -1
- package/dist/db-ux/p-90380da4.entry.js +1 -0
- package/dist/db-ux/{p-919ff123.entry.js → p-93506fdb.entry.js} +1 -1
- package/dist/db-ux/p-981d05c0.entry.js +1 -0
- package/dist/db-ux/p-DfYL98sI.js +1 -0
- package/dist/db-ux/{p-2a1481e9.entry.js → p-ba4084e8.entry.js} +1 -1
- package/dist/db-ux/{p-sP2NlPcu.js → p-cNk4ImpW.js} +1 -1
- package/dist/db-ux/{p-f3cc7450.entry.js → p-ced0df76.entry.js} +1 -1
- package/dist/db-ux/{p-34862d35.entry.js → p-cede20c2.entry.js} +1 -1
- package/dist/db-ux/{p-46b4ed7f.entry.js → p-d1974cb0.entry.js} +1 -1
- package/dist/db-ux/{p-0a073f5e.entry.js → p-d2fd9838.entry.js} +1 -1
- package/dist/db-ux/{p-8e63e73c.entry.js → p-ec270b7d.entry.js} +1 -1
- package/dist/db-ux/{p-8931bdc6.entry.js → p-f80474a6.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +1 -1
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +1 -1
- package/dist/esm/db-checkbox.entry.js +1 -1
- package/dist/esm/{db-custom-select-dropdown_6.entry.js → db-custom-select-dropdown_5.entry.js} +5 -256
- package/dist/esm/db-custom-select-form-field.entry.js +3 -3
- package/dist/esm/db-custom-select.entry.js +13 -11
- package/dist/esm/db-divider.entry.js +2 -2
- package/dist/esm/db-drawer.entry.js +4 -4
- package/dist/esm/db-header.entry.js +5 -5
- package/dist/esm/db-icon.entry.js +2 -2
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +2 -2
- package/dist/esm/db-navigation-item.entry.js +4 -4
- package/dist/esm/db-navigation.entry.js +3 -3
- package/dist/esm/db-notification.entry.js +3 -3
- package/dist/esm/db-page.entry.js +3 -3
- package/dist/esm/db-popover.entry.js +5 -5
- package/dist/esm/db-radio.entry.js +2 -2
- package/dist/esm/db-section.entry.js +3 -3
- package/dist/esm/db-select.entry.js +4 -4
- package/dist/esm/db-stack.entry.js +3 -3
- package/dist/esm/db-switch.entry.js +3 -3
- package/dist/esm/db-tab-item_3.entry.js +7 -7
- package/dist/esm/db-tabs.entry.js +3 -3
- package/dist/esm/db-textarea.entry.js +3 -3
- package/dist/esm/db-tooltip.entry.js +6 -5
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/{floating-components-G-TursYV.js → floating-components-DfYL98sI.js} +65 -15
- package/dist/esm/{index-B6-lLNGQ.js → index-05XnVETo.js} +22 -50
- package/dist/esm/index.js +3 -6
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{navigation--UdC9CzO.js → navigation-DgsMCdfn.js} +1 -1
- package/dist/types/components/custom-select/custom-select.d.ts +1 -1
- package/dist/types/components.d.ts +582 -159
- package/dist/types/index.d.ts +0 -2
- package/dist/types/shared/model.d.ts +4 -6
- package/dist/types/stencil-public-runtime.d.ts +24 -1
- package/dist/vscode.html-custom-data.json +8 -158
- package/dist/web-types.json +31 -276
- package/package.json +4 -4
- package/dist/collection/components/loading-indicator/examples/_indicators.data.js +0 -91
- package/dist/collection/components/loading-indicator/index.js +0 -2
- package/dist/collection/components/loading-indicator/loading-indicator.js +0 -713
- package/dist/collection/components/loading-indicator/model.js +0 -2
- package/dist/db-ux/p-19def2d3.entry.js +0 -1
- package/dist/db-ux/p-5c55381c.entry.js +0 -1
- package/dist/db-ux/p-69ebe202.entry.js +0 -1
- package/dist/db-ux/p-78fd1504.entry.js +0 -1
- package/dist/db-ux/p-7c0621ef.entry.js +0 -1
- package/dist/db-ux/p-8ff8418d.entry.js +0 -1
- package/dist/db-ux/p-B6-lLNGQ.js +0 -2
- package/dist/db-ux/p-G-TursYV.js +0 -1
- package/dist/db-ux/p-a01a5c4a.entry.js +0 -1
- package/dist/db-ux/p-b05bc567.entry.js +0 -1
- package/dist/db-ux/p-c1825fa6.entry.js +0 -1
- package/dist/db-ux/p-e847596c.entry.js +0 -1
- package/dist/db-ux/p-f71548d2.entry.js +0 -1
- package/dist/types/components/loading-indicator/examples/_indicators.data.d.ts +0 -49
- package/dist/types/components/loading-indicator/index.d.ts +0 -2
- package/dist/types/components/loading-indicator/loading-indicator.d.ts +0 -56
- package/dist/types/components/loading-indicator/model.d.ts +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @db-ux/wc-core-components
|
|
2
2
|
|
|
3
|
+
## 4.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: issue with tailwind not reflecting adaptive color changes with `[data-color="xxx"]` - [see commit 936638d](https://github.com/db-ux-design-system/core-web/commit/936638d672bbb6c0f8a0ecf77bf41fafa0e31656)
|
|
8
|
+
|
|
9
|
+
- DBCustomSelect: Prevent floating label from flickering during initial render - [see commit e5ceff8](https://github.com/db-ux-design-system/core-web/commit/e5ceff861534186cf86d1f5f0a876e04aeac9e41)
|
|
10
|
+
|
|
3
11
|
## 4.4.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
var formComponents = require('./form-components-LsqVohyb.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
var constants = require('./constants-bMY2_d8A.js');
|
|
6
6
|
var formComponents = require('./form-components-LsqVohyb.js');
|
|
@@ -463,266 +463,14 @@ const DBTag = class {
|
|
|
463
463
|
}
|
|
464
464
|
render() {
|
|
465
465
|
var _a;
|
|
466
|
-
return (index.h("div", { key: '
|
|
466
|
+
return (index.h("div", { key: 'db86fabfde3f9d1e41a863f58db34eb88d067440', 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: '1bef11e30ca670fa5bf1d438cd12c43e233cded4', name: "content" }), index.h("slot", { key: '3f94141f60688d0730478711748fa9dbb194f810' }), 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
|
-
|
|
723
472
|
exports.db_custom_select_dropdown = DBCustomSelectDropdown;
|
|
724
473
|
exports.db_custom_select_list = DBCustomSelectList;
|
|
725
474
|
exports.db_custom_select_list_item = DBCustomSelectListItem;
|
|
726
475
|
exports.db_input = DBInput;
|
|
727
|
-
exports.db_loading_indicator = DBLoadingIndicator;
|
|
728
476
|
exports.db_tag = DBTag;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectFormField = class {
|
|
@@ -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: '22a05256e65e56208335b9a5c840e75988a57182', 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: '3c6c62df9bf0d2a73e37a9ad69d3a46daa672984' })));
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
var documentClickListener = require('./document-click-listener-Bb3Tinb8.js');
|
|
7
7
|
var documentScrollListener = require('./document-scroll-listener-unypEU42.js');
|
|
8
|
-
var floatingComponents = require('./floating-components-
|
|
8
|
+
var floatingComponents = require('./floating-components-pYaTeNhp.js');
|
|
9
9
|
var formComponents = require('./form-components-LsqVohyb.js');
|
|
10
10
|
|
|
11
11
|
const DBCustomSelect = class {
|
|
@@ -772,28 +772,30 @@ 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;
|
|
776
|
+
return (index.h("div", { key: '5ab3c80f3af53b7795e709feaea160e4aa26f281', 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: '281d6b75a9ae62b6e2f59c04876603988366952d', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL, index.h("select", { key: '26029a01c106666155c40cac98a7f67739145491', 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 }, this.getOptionLabel(option))))
|
|
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, key: undefined }, this.getOptionLabel(option))))
|
|
786
|
+
: null)), index.h("details", { key: '60f50d851ebf3b180094bdbd1c9acb3c6e1069af', 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: '369ba87529acc1e3b2d12869174eff0a824c0176' }), 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), 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
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 ? (
|
|
792
|
+
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (index.h("db-infotext", { id: this._infoTextId, icon: this.showLoading ? "circular_arrows" : undefined, semantic: this.showLoading ? "informational" : "warning" }, (_h = (this.showLoading
|
|
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) => {
|
|
793
795
|
this.selectAllRef = el;
|
|
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: (
|
|
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: (_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
|
|
795
797
|
? this.getOptionLabel(option)
|
|
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) }, (
|
|
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: 'b4a9cebfe1db06422f428bac4d04d581bcadbb95', 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: 'a407a98afeecf7634770f34e2f427a09d657419a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '4465c3745c21e5333c8498927416fd0f244673dd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
797
799
|
}
|
|
798
800
|
static get watchers() { return {
|
|
799
801
|
"detailsRef": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBDivider = class {
|
|
@@ -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: '0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16', 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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
@@ -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: '171c5580c99bbe2d2ea0a6e8e5962e4132d9b07f', 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: 'e9fad39beff3e642ad13be4950bb64fd15896f80', 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: 'cb9f374f26ebca0f11d02081c28e856cc87107c3', class: "db-drawer-header" }, index.h("div", { key: '7fca8037c16e16d909bcede75e223f38ae019453', class: "db-drawer-header-text" }, index.h("slot", { key: '85159cc4d260fa992bfe8b933920ae286b9ab09c', name: "drawerHeader" })), index.h("db-button", { key: '4a9ad6ba576480b154614da72752421a8ff81df6', 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: '9dbbd6a3835dad60dea79a9b2fbed6a62dd6b837', class: "db-drawer-content" }, index.h("slot", { key: '1bc4b88266e6d7250d0075e2405b725ad38b950e' })))));
|
|
139
139
|
}
|
|
140
140
|
static get watchers() { return {
|
|
141
141
|
"open": [{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
|
-
var navigation = require('./navigation-
|
|
7
|
-
require('./floating-components-
|
|
6
|
+
var navigation = require('./navigation-BztJmEHf.js');
|
|
7
|
+
require('./floating-components-pYaTeNhp.js');
|
|
8
8
|
|
|
9
9
|
const DBHeader = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -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: 'f9850f5a6f59bee2ed97db4baea343e07aaff91a', 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: '32f62d8f0bf634e96cf7b0e96721fcd40aa3a3eb', 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: 'a42c28439d07e97a3842efe4fa1c143c23691b5f', class: "db-header-drawer-navigation" }, index.h("div", { key: '141165e04574db312d51b0b4c376c53ddace243e', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, index.h("slot", { key: '2208e0677b1f15da56fd6be230523559fcb5f1da' })), index.h("div", { key: 'fb980500cdb2f6f3ce2fce2489c48ac27ebd256a', class: "db-header-meta-navigation" }, index.h("slot", { key: '7eea7189a1e82821fc3f0bd600bda5a040382e88', name: "metaNavigation" }))), index.h("div", { key: 'a492419586593d43edbada69ad136ad832902e15', class: "db-header-secondary-action" }, index.h("slot", { key: '90ed75a19c230c3a2af94b8e0b397c8712f9a0df', name: "secondaryAction" }))), index.h("div", { key: '1d0451bd1f522f51cbd2bab3cd1b7c316fd644b4', class: "db-header-meta-navigation" }, index.h("slot", { key: 'd92c5a30a0131225f2b7b1428c5121fed241d8a7', name: "metaNavigation" })), index.h("div", { key: 'f65c8e6b2b997c281046f20e1ac7c89d8b5697f6', class: "db-header-navigation-bar" }, index.h("div", { key: 'be1e1017417595bbb4ff845b650f5edef1f4fd49', class: "db-header-brand-container" }, index.h("slot", { key: '5552b137967ae4659887ad67514fd0078ced1473', name: "brand" })), index.h("div", { key: '682e11b41f5131feb17cdf1e175b9bbcf8399740', class: "db-header-navigation-container" }, index.h("div", { key: '29f5a7afa6d8c014f6e574d72198289970e5324e', class: "db-header-navigation" }, index.h("slot", { key: 'f03956cf3368d3ec0dbaab3b3091c276eaf03a92' })), index.h("div", { key: '8a81b9ee537f84e14c9d41acf323552d6f239748', class: "db-header-primary-action" }, index.h("slot", { key: '78ae4dbdc9bcad5bd4bd951a0a334c47cb35bcf6', name: "primaryAction" }))), index.h("div", { key: 'e1e913c181df2f73cc9fe4cda17f505a26b1ad04', class: "db-header-action-container" }, index.h("div", { key: '92d7c9c0e50f9aa86e15c18a2ac7dddabc241358', class: "db-header-burger-menu-container" }, index.h("db-button", { key: '775ca507ba24b19e411e529e9ad67fcdfa6f3dea', 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: '7cd5a16e27c72e3e0635056df8bcb7f45461c9fb', class: "db-header-secondary-action" }, index.h("slot", { key: '09669c165311f8dc95961c64900d5ab36281700a', name: "secondaryAction" }))))));
|
|
86
86
|
}
|
|
87
87
|
static get watchers() { return {
|
|
88
88
|
"initialized": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBIcon = class {
|
|
@@ -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: '3a67532009f85e493784e99774e230f52c588ccc', 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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var index$1 = require('./index-CsHqnQII.js');
|
|
5
5
|
|
|
6
6
|
const DBLink = class {
|
|
@@ -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: 'a43d8889621390017c07dda184c570e54d7f81e0', 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
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
|
-
var navigation = require('./navigation-
|
|
7
|
-
require('./floating-components-
|
|
6
|
+
var navigation = require('./navigation-BztJmEHf.js');
|
|
7
|
+
require('./floating-components-pYaTeNhp.js');
|
|
8
8
|
|
|
9
9
|
const DBNavigationItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -108,7 +108,7 @@ const DBNavigationItem = class {
|
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
110
|
var _a;
|
|
111
|
-
return (index.h("li", { key: '
|
|
111
|
+
return (index.h("li", { key: 'd00b7b4852a729301d545abaf1a65cd3e0cdcee7', class: index$1.cls("db-navigation-item", this.className), ref: (el) => {
|
|
112
112
|
this._ref = el;
|
|
113
113
|
}, id: this.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": index$1.getBooleanAsString(this.wrap), "aria-disabled": index$1.getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : index.h("slot", null) : null, this.hasSubNavigation ? (index.h(index.Fragment, null, index.h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : index.h("slot", null)), index.h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, id: this.subNavigationId, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (index.h("div", { class: "db-mobile-navigation-back" }, index.h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : constants.DEFAULT_BACK))) : null, index.h("slot", { name: "subNavigation" })))) : null));
|
|
114
114
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Bi4QN5oK.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-CsHqnQII.js');
|
|
6
6
|
|
|
@@ -46,9 +46,9 @@ const DBNavigation = class {
|
|
|
46
46
|
this._id = this.id || "navigation-" + index$1.uuid();
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (index.h("nav", { key: '
|
|
49
|
+
return (index.h("nav", { key: 'ed27159179b89985cbf0711be7dc494ca820cf75', class: index$1.cls("db-navigation", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: this._id }, index.h("menu", { key: '
|
|
51
|
+
}, id: this._id }, index.h("menu", { key: '6aa518535f6c802abec874a174d6e8d028572269' }, index.h("slot", { key: '2307ee2093cf4bcec3c8f4b8d5e8e88a8d78cf08' }))));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|