@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/dist/esm/{db-custom-select-dropdown_5.entry.js → db-custom-select-dropdown_6.entry.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent } from './index-
|
|
2
|
-
import { c as cls, e as getBoolean, u as uuid, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-
|
|
3
|
-
import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, j as DEFAULT_DATALIST_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, a as DEFAULT_LABEL, m as DEFAULT_REMOVE } from './constants-BdL-nI5y.js';
|
|
4
|
-
import { c as addValueResetEventListener } from './form-components-
|
|
1
|
+
import { r as registerInstance, h, c as createEvent } from './index-B6-lLNGQ.js';
|
|
2
|
+
import { c as cls, e as getBoolean, u as uuid, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-C4x0SOcx.js';
|
|
3
|
+
import { l as DEFAULT_INVALID_MESSAGE, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, j as DEFAULT_DATALIST_ID_SUFFIX, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, b as DEFAULT_PLACEHOLDER, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, D as DEFAULT_ID } from './constants-BdL-nI5y.js';
|
|
4
|
+
import { c as addValueResetEventListener } from './form-components-BLsiOrPI.js';
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectDropdown = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -461,10 +461,261 @@ const DBTag = class {
|
|
|
461
461
|
}
|
|
462
462
|
render() {
|
|
463
463
|
var _a;
|
|
464
|
-
return (h("div", { key: '
|
|
464
|
+
return (h("div", { key: '6be4d8cc4b856ac198e4c207860e9529c436060f', class: cls("db-tag", this.className), ref: (el) => {
|
|
465
465
|
this._ref = el;
|
|
466
|
-
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '
|
|
466
|
+
}, id: this.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_a = this.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '3ed9ce9b0eb66bb92a2c4a5303be1b0d16001841', name: "content" }), h("slot", { key: '9098de64b545b04f81f6a980700879610f9ec7bc' }), this.text ? this.text : null, this.behavior === "removable" ? (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) }, h("db-tooltip", { variant: "label" }, this.getRemoveButtonText()))) : null));
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
469
|
|
|
470
|
-
|
|
470
|
+
const DBLoadingIndicator = class {
|
|
471
|
+
constructor(hostRef) {
|
|
472
|
+
registerInstance(this, hostRef);
|
|
473
|
+
this.timeout = createEvent(this, "timeout");
|
|
474
|
+
this.autoDisable = true;
|
|
475
|
+
this.indeterminate = true;
|
|
476
|
+
this.size = "medium";
|
|
477
|
+
this.variant = "inline";
|
|
478
|
+
this._id = DEFAULT_ID;
|
|
479
|
+
this._loadingState = "inactive";
|
|
480
|
+
this._previousLoadingState = undefined;
|
|
481
|
+
this._style = {};
|
|
482
|
+
this.initialized = false;
|
|
483
|
+
}
|
|
484
|
+
getPercentage() {
|
|
485
|
+
if (this.indeterminate || !this.value || !this.max) {
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
return `${(Number(this.value) / Number(this.max)).toFixed(2)}`;
|
|
489
|
+
}
|
|
490
|
+
getRole() {
|
|
491
|
+
if (this.role) {
|
|
492
|
+
if (this.role === "none") {
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
return this.role;
|
|
496
|
+
}
|
|
497
|
+
return "status";
|
|
498
|
+
}
|
|
499
|
+
handleParentDisabled() {
|
|
500
|
+
if (this._ref && this.autoDisable && this.initialized) {
|
|
501
|
+
let parent = this._ref.parentElement;
|
|
502
|
+
if (parent && parent.localName === "db-loading-indicator") {
|
|
503
|
+
parent = parent.parentElement;
|
|
504
|
+
}
|
|
505
|
+
if (parent && "disabled" in parent) {
|
|
506
|
+
parent.disabled = this._loadingState !== "inactive";
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
handleParentAria(remove) {
|
|
511
|
+
if (this._ref && this._id && this.initialized) {
|
|
512
|
+
let parent = this._ref.parentElement;
|
|
513
|
+
if (parent && parent.localName === "db-loading-indicator") {
|
|
514
|
+
parent = parent.parentElement;
|
|
515
|
+
}
|
|
516
|
+
if (!parent)
|
|
517
|
+
return;
|
|
518
|
+
const isButton = (parent === null || parent === void 0 ? void 0 : parent.localName) === "button";
|
|
519
|
+
if (!(isButton || this.overlay))
|
|
520
|
+
return;
|
|
521
|
+
const ariaAttribute = isButton ? "aria-labelledby" : "aria-describedby";
|
|
522
|
+
const ariaLabelledBy = parent.getAttribute(ariaAttribute);
|
|
523
|
+
let labelledByElements = ariaLabelledBy ? ariaLabelledBy.split(",") : [];
|
|
524
|
+
if (remove || this._loadingState === "inactive") {
|
|
525
|
+
if (labelledByElements.includes(this._id)) {
|
|
526
|
+
labelledByElements = labelledByElements.filter((elementId) => elementId !== this._id);
|
|
527
|
+
if (!isButton) {
|
|
528
|
+
parent.ariaBusy = null;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
return;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
536
|
+
if (!labelledByElements.includes(this._id)) {
|
|
537
|
+
labelledByElements.push(this._id);
|
|
538
|
+
}
|
|
539
|
+
if (!isButton) {
|
|
540
|
+
parent.ariaBusy = this._loadingState === "active" ? "true" : null;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
if (labelledByElements.length) {
|
|
544
|
+
parent.setAttribute(ariaAttribute, labelledByElements.join(","));
|
|
545
|
+
}
|
|
546
|
+
else {
|
|
547
|
+
parent.removeAttribute(ariaAttribute);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
553
|
+
* @param element the ref for the component
|
|
554
|
+
* @param customElementSelector the custom element like `my-component`
|
|
555
|
+
*/
|
|
556
|
+
enableAttributePassing(element, customElementSelector) {
|
|
557
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
558
|
+
if (element && parent) {
|
|
559
|
+
const attributes = parent.attributes;
|
|
560
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
561
|
+
const attr = attributes.item(i);
|
|
562
|
+
if (attr &&
|
|
563
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
564
|
+
element.setAttribute(attr.name, attr.value);
|
|
565
|
+
parent.removeAttribute(attr.name);
|
|
566
|
+
}
|
|
567
|
+
if (attr && attr.name === "class") {
|
|
568
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
569
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
570
|
+
const currentClass = element.getAttribute("class");
|
|
571
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
572
|
+
if (isWebComponent) {
|
|
573
|
+
// Stencil is using this class for lazy loading component
|
|
574
|
+
parent.setAttribute("class", "hydrated");
|
|
575
|
+
}
|
|
576
|
+
else {
|
|
577
|
+
parent.removeAttribute(attr.name);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
watch0Fn() {
|
|
584
|
+
this.handleParentDisabled();
|
|
585
|
+
}
|
|
586
|
+
watch0() {
|
|
587
|
+
this.watch0Fn();
|
|
588
|
+
}
|
|
589
|
+
watch1Fn() {
|
|
590
|
+
this.handleParentAria(false);
|
|
591
|
+
}
|
|
592
|
+
watch1() {
|
|
593
|
+
this.watch1Fn();
|
|
594
|
+
}
|
|
595
|
+
watch2Fn() {
|
|
596
|
+
if (this.timeout) {
|
|
597
|
+
// Not merged if as workaround for angular
|
|
598
|
+
if (this._loadingState !== "inactive" &&
|
|
599
|
+
this._loadingState !== this._previousLoadingState) {
|
|
600
|
+
this._previousLoadingState = this._loadingState;
|
|
601
|
+
void delay(() => {
|
|
602
|
+
if (this.timeout) {
|
|
603
|
+
this.timeout.emit(this._loadingState);
|
|
604
|
+
}
|
|
605
|
+
}, this._loadingState === "active" ? 5000 : 2000);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
watch2() {
|
|
610
|
+
this.watch2Fn();
|
|
611
|
+
}
|
|
612
|
+
watch3Fn() {
|
|
613
|
+
if (this._loadingState === this.state)
|
|
614
|
+
return;
|
|
615
|
+
if (this.state) {
|
|
616
|
+
this._loadingState = this.state;
|
|
617
|
+
}
|
|
618
|
+
else if (this.indeterminate === undefined || this.indeterminate) {
|
|
619
|
+
this._loadingState = "active";
|
|
620
|
+
}
|
|
621
|
+
else {
|
|
622
|
+
this._loadingState = "inactive";
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
watch3() {
|
|
626
|
+
this.watch3Fn();
|
|
627
|
+
}
|
|
628
|
+
watch4Fn() {
|
|
629
|
+
if (this._ref) {
|
|
630
|
+
if (this.delay === "slow" || this.delay === "fast") {
|
|
631
|
+
void delay(() => {
|
|
632
|
+
if (this._ref) {
|
|
633
|
+
this._ref.dataset["delay"] = "";
|
|
634
|
+
}
|
|
635
|
+
}, this.delay === "slow" ? 500 : 250);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
watch4() {
|
|
640
|
+
this.watch4Fn();
|
|
641
|
+
}
|
|
642
|
+
watch5Fn() {
|
|
643
|
+
this._style = {
|
|
644
|
+
"--db-loading-indicator-percentage": this.getPercentage(),
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
watch5() {
|
|
648
|
+
this.watch5Fn();
|
|
649
|
+
}
|
|
650
|
+
componentDidLoad() {
|
|
651
|
+
this.enableAttributePassing(this._ref, "db-loading-indicator");
|
|
652
|
+
this._id = this.id || "loading-indicator-" + uuid();
|
|
653
|
+
this.initialized = true;
|
|
654
|
+
this.watch0Fn();
|
|
655
|
+
this.watch1Fn();
|
|
656
|
+
this.watch2Fn();
|
|
657
|
+
this.watch3Fn();
|
|
658
|
+
this.watch4Fn();
|
|
659
|
+
this.watch5Fn();
|
|
660
|
+
}
|
|
661
|
+
disconnectedCallback() {
|
|
662
|
+
this.handleParentAria(true);
|
|
663
|
+
this.handleParentDisabled();
|
|
664
|
+
}
|
|
665
|
+
render() {
|
|
666
|
+
var _a, _b;
|
|
667
|
+
return (h("div", { key: '4467fd7c9ebec6fe699995183b870ea08fa60ba7', class: cls("db-loading-indicator", this.className), ref: (el) => {
|
|
668
|
+
this._ref = el;
|
|
669
|
+
}, style: this._style, "data-indeterminate": getBooleanAsString(this.indeterminate), "data-size": this.size, "data-variant": this.variant, "data-delay": this.delay, "data-state": this._loadingState, "data-overlay": getBooleanAsString(this.overlay) }, this.variant !== "progress-bar" ? (h("svg", { class: "db-loading-indicator-circle", "aria-hidden": "true", viewBox: this.variant === "inline" ? "10 10 20 20" : "32 32 64 64" }, h("circle", { class: "db-loading-indicator-circle-track" }), h("circle", { class: "db-loading-indicator-circle-segment" }))) : null, h("div", { key: '7ea9f9fd64f1b7d073ca7917a4e8eb905eb344f0', role: this.getRole() }, h("label", { key: 'de7fd82a1e14e459735cf596f18104722965e7f2', "data-show-label": getBooleanAsString(this.showLabel), id: this._id }, this.label ? this.label : h("slot", null), 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 ? (h("span", { "aria-hidden": "true", "data-show-progress-text": getBooleanAsString(this.showProgressText) }, this.progressText)) : null)));
|
|
670
|
+
}
|
|
671
|
+
static get watchers() { return {
|
|
672
|
+
"_ref": [{
|
|
673
|
+
"watch0": 0
|
|
674
|
+
}, {
|
|
675
|
+
"watch1": 0
|
|
676
|
+
}, {
|
|
677
|
+
"watch4": 0
|
|
678
|
+
}],
|
|
679
|
+
"initialized": [{
|
|
680
|
+
"watch0": 0
|
|
681
|
+
}, {
|
|
682
|
+
"watch1": 0
|
|
683
|
+
}],
|
|
684
|
+
"autoDisable": [{
|
|
685
|
+
"watch0": 0
|
|
686
|
+
}],
|
|
687
|
+
"_loadingState": [{
|
|
688
|
+
"watch0": 0
|
|
689
|
+
}, {
|
|
690
|
+
"watch1": 0
|
|
691
|
+
}, {
|
|
692
|
+
"watch2": 0
|
|
693
|
+
}],
|
|
694
|
+
"overlay": [{
|
|
695
|
+
"watch1": 0
|
|
696
|
+
}],
|
|
697
|
+
"_id": [{
|
|
698
|
+
"watch1": 0
|
|
699
|
+
}],
|
|
700
|
+
"timeout": [{
|
|
701
|
+
"watch2": 0
|
|
702
|
+
}],
|
|
703
|
+
"state": [{
|
|
704
|
+
"watch3": 0
|
|
705
|
+
}],
|
|
706
|
+
"delay": [{
|
|
707
|
+
"watch4": 0
|
|
708
|
+
}],
|
|
709
|
+
"indeterminate": [{
|
|
710
|
+
"watch5": 0
|
|
711
|
+
}],
|
|
712
|
+
"value": [{
|
|
713
|
+
"watch5": 0
|
|
714
|
+
}],
|
|
715
|
+
"max": [{
|
|
716
|
+
"watch5": 0
|
|
717
|
+
}]
|
|
718
|
+
}; }
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
export { DBCustomSelectDropdown as db_custom_select_dropdown, DBCustomSelectList as db_custom_select_list, DBCustomSelectListItem as db_custom_select_list_item, DBInput as db_input, DBLoadingIndicator as db_loading_indicator, DBTag as db_tag };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-B6-lLNGQ.js';
|
|
2
|
+
import { c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBCustomSelectFormField = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -41,9 +41,9 @@ const DBCustomSelectFormField = class {
|
|
|
41
41
|
this.enableAttributePassing(this._ref, "db-custom-select-form-field");
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("summary", { key: '
|
|
44
|
+
return (h("summary", { key: 'd99ab4a28f0604d5aa10d54e5da18ce976a93bf8', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
45
45
|
this._ref = el;
|
|
46
|
-
}, id: this.id }, h("slot", { key: '
|
|
46
|
+
}, id: this.id }, h("slot", { key: '40f581da69159f298d83a097e08c2f74e5dfcb23' })));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-B6-lLNGQ.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, d as DEFAULT_LABEL_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, o as DEFAULT_SELECTED, f as DEFAULT_MESSAGE_ID_SUFFIX, k as DEFAULT_VALID_MESSAGE, c as DEFAULT_MESSAGE, s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { h as hasVoiceOver, d as delay, s as stringPropVisible, m as getSearchInput, u as uuid, g as getBooleanAsString, e as getBoolean, l as getHideProp, c as cls } from './index-
|
|
4
|
-
import { D as DocumentClickListener } from './document-click-listener-
|
|
5
|
-
import { D as DocumentScrollListener } from './document-scroll-listener-
|
|
3
|
+
import { h as hasVoiceOver, d as delay, s as stringPropVisible, m as getSearchInput, u as uuid, g as getBooleanAsString, e as getBoolean, l as getHideProp, c as cls } from './index-C4x0SOcx.js';
|
|
4
|
+
import { D as DocumentClickListener } from './document-click-listener-CmYoXpGE.js';
|
|
5
|
+
import { D as DocumentScrollListener } from './document-scroll-listener-65bHuFAN.js';
|
|
6
6
|
import { a as handleFixedDropdown } from './floating-components-G-TursYV.js';
|
|
7
|
-
import { b as addResetEventListener } from './form-components-
|
|
7
|
+
import { b as addResetEventListener } from './form-components-BLsiOrPI.js';
|
|
8
8
|
|
|
9
9
|
const DBCustomSelect = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -770,30 +770,28 @@ const DBCustomSelect = class {
|
|
|
770
770
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
771
771
|
}
|
|
772
772
|
render() {
|
|
773
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
774
|
-
return (h("div", { key: '
|
|
773
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
774
|
+
return (h("div", { key: '633c651cd764cf5bb424955fa5e2bfd30e5e8e28', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
775
775
|
this._ref = el;
|
|
776
776
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
777
777
|
this.selectedType === "tag" &&
|
|
778
778
|
this.multiple
|
|
779
779
|
? "above"
|
|
780
|
-
: this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: '
|
|
780
|
+
: this.variant, "data-required": getBooleanAsString(this.required), "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-placement": this.placement, "data-selected-type": this.multiple ? this.selectedType : "text", "data-hide-label": getHideProp(this.showLabel), "data-icon": this.icon, "data-show-icon": getBooleanAsString(this.showIcon) }, h("label", { key: 'c6341945f060e403c8b0d5a3bb65c8055a07e3c4', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: 'f7f9c77a12b40942365717378617ea45d38d3c0d', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
781
781
|
this.selectRef = el;
|
|
782
782
|
}, form: this.form, name: this.name, multiple: getBoolean(this.multiple, "multiple"), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), onChange: (event) => this.satisfyReact(event) }, ((_b = this.options) === null || _b === void 0 ? void 0 : _b.length)
|
|
783
|
-
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value
|
|
784
|
-
: null)), h("details", { key: '
|
|
783
|
+
? (_c = this.options) === null || _c === void 0 ? void 0 : _c.map((option) => (h("option", { disabled: option.disabled, value: option.value }, this.getOptionLabel(option))))
|
|
784
|
+
: null)), h("details", { key: '3fa0220b25ec6de48ccc29628418094022835df1', ref: (el) => {
|
|
785
785
|
this.detailsRef = el;
|
|
786
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '
|
|
786
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '7eb160f589f3dbb0e171ac49bb310272108511b8' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), "aria-labelledby": this._labelId }, ((_d = this._selectedLabels) === null || _d === void 0 ? void 0 : _d.length) ? (h("span", { "data-visually-hidden": getBooleanAsString(this.selectedType === "tag"), id: this._selectedLabelsId }, this.selectedPrefix ? (h("span", { "data-visually-hidden": "true" }, this.selectedPrefix)) : null, this._selectedLabels)) : null, this.selectedType === "tag" ? (h("div", null, (_e = this._selectedOptions) === null || _e === void 0 ? void 0 : _e.map((option, index) => (h("db-tag", { emphasis: "strong", behavior: "removable", removeButton: this.getTagRemoveLabel(option), onRemove: (event) => this.handleTagRemove(option, event) }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
|
|
787
787
|
this.searchInputRef = el;
|
|
788
788
|
}, name: this._id, form: this._id, showLabel: false, value: this._searchValue, label: (_f = this.searchLabel) !== null && _f !== void 0 ? _f : DEFAULT_LABEL, placeholder: (_g = this.searchPlaceholder) !== null && _g !== void 0 ? _g : this.searchLabel, ariaDescribedBy: this._hasNoOptions || this.showLoading
|
|
789
789
|
? this._infoTextId
|
|
790
|
-
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (h("db-
|
|
791
|
-
? this.loadingText
|
|
792
|
-
: this.noResultsText)) !== null && _h !== void 0 ? _h : DEFAULT_MESSAGE)) : (h(Fragment, null, this.selectAllEnabled ? (h("div", null, h("div", { class: "db-checkbox db-custom-select-list-item" }, h("label", null, h("input", { type: "checkbox", value: "select-all", ref: (el) => {
|
|
790
|
+
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (this.showLoading ? (h("db-loading-indicator", { id: this._infoTextId }, (_h = this.loadingText) !== null && _h !== void 0 ? _h : DEFAULT_MESSAGE)) : (h("db-infotext", { semantic: "warning", id: this._infoTextId }, (_j = this.noResultsText) !== null && _j !== void 0 ? _j : DEFAULT_MESSAGE))) : (h(Fragment, null, this.selectAllEnabled ? (h("div", null, h("div", { class: "db-checkbox db-custom-select-list-item" }, h("label", null, h("input", { type: "checkbox", value: "select-all", ref: (el) => {
|
|
793
791
|
this.selectAllRef = el;
|
|
794
|
-
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (
|
|
792
|
+
}, form: this._id, checked: this.selectAllChecked, onChange: (event) => this.handleSelectAll(event) }), this.getSelectAllLabel())))) : null, h("db-custom-select-list", { multiple: getBoolean(this.multiple, "multiple"), label: (_l = (_k = this.listLabel) !== null && _k !== void 0 ? _k : this.label) !== null && _l !== void 0 ? _l : DEFAULT_LABEL }, (_m = this._options) === null || _m === void 0 ? void 0 : _m.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value) }, !option.isGroupTitle
|
|
795
793
|
? this.getOptionLabel(option)
|
|
796
|
-
: null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (
|
|
794
|
+
: null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (_o = this.mobileCloseButtonText) !== null && _o !== void 0 ? _o : DEFAULT_CLOSE_BUTTON))))) : null), ((_p = this.showClearSelection) !== null && _p !== void 0 ? _p : true) && ((_q = this._values) === null || _q === void 0 ? void 0 : _q.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: 'df9efbb6d3dbae644a5dbfc0fc92488f5b67da54', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_r = this.placeholder) !== null && _r !== void 0 ? _r : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '562bb4adda23878fe108eba0d2395124685cf24a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '93195757db11641ed911fd3684e91d6b76168cb1', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
797
795
|
}
|
|
798
796
|
static get watchers() { return {
|
|
799
797
|
"detailsRef": [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-B6-lLNGQ.js';
|
|
2
|
+
import { c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBDivider = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -41,7 +41,7 @@ const DBDivider = class {
|
|
|
41
41
|
this.enableAttributePassing(this._ref, "db-divider");
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '46d2766f34dc660f82cda63261ea96da0a72115f', class: cls("db-divider", this.className), ref: (el) => {
|
|
45
45
|
this._ref = el;
|
|
46
46
|
}, id: this.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-B6-lLNGQ.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { o as isKeyboardEvent, d as delay, g as getBooleanAsString, c as cls } from './index-
|
|
3
|
+
import { o as isKeyboardEvent, d as delay, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
5
5
|
const DBDrawer = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -129,11 +129,11 @@ const DBDrawer = class {
|
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
131
|
var _a;
|
|
132
|
-
return (h("dialog", { key: '
|
|
132
|
+
return (h("dialog", { key: 'cc48481a5694b3ed2a21accbbbf0a2d803cbae34', class: "db-drawer", id: this.id, ref: (el) => {
|
|
133
133
|
this._ref = el;
|
|
134
|
-
}, 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 }, h("article", { key: '
|
|
134
|
+
}, 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 }, h("article", { key: 'd50942300d0d842e3f6ad754920c8deddb3b4f3f', class: cls("db-drawer-container", this.className), ref: (el) => {
|
|
135
135
|
this.dialogContainerRef = el;
|
|
136
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '
|
|
136
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: 'd1c47a728ce03f4415e455352efcee61b9373d61', class: "db-drawer-header" }, h("div", { key: 'f19808d4597fbda4d9e0ceb224f8de4d3407f98c', class: "db-drawer-header-text" }, h("slot", { key: 'cfab663cef760d9d78244eead6b92bbabd919b4a', name: "drawerHeader" })), 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 : DEFAULT_CLOSE_BUTTON)), h("div", { key: 'b83ad6bdaa47d7881ce831c696f38df7b77b041d', class: "db-drawer-content" }, h("slot", { key: '9fc37bc76ce5a6fc2945eaa225919f9c8fac8629' })))));
|
|
137
137
|
}
|
|
138
138
|
static get watchers() { return {
|
|
139
139
|
"open": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-B6-lLNGQ.js';
|
|
2
2
|
import { p as DEFAULT_BURGER_MENU } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { a as addAttributeToChildren, e as getBoolean, c as cls } from './index-
|
|
3
|
+
import { a as addAttributeToChildren, e as getBoolean, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { i as isEventTargetNavigationItem } from './navigation--UdC9CzO.js';
|
|
5
5
|
import './floating-components-G-TursYV.js';
|
|
6
6
|
|
|
@@ -78,9 +78,9 @@ const DBHeader = class {
|
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
var _a;
|
|
81
|
-
return (h("header", { key: '
|
|
81
|
+
return (h("header", { key: 'f701b77c43467d06b10c109ff60694f70746eaf8', class: cls("db-header", this.className), ref: (el) => {
|
|
82
82
|
this._ref = el;
|
|
83
|
-
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '
|
|
83
|
+
}, id: this.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '18c1b671c898c183bb352bb5f41978325cfa272e', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'dd79824d62aa735869d10c1d667a64de2ed61cd7', class: "db-header-drawer-navigation" }, h("div", { key: 'baab299c370aeb0133022ac8715a97af2d41e598', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '25fba42e53aedf89b9efcd6479df4a20c31b37a0' })), h("div", { key: 'ee9e0fab26a77cbc44edda5f200e6d52e24d4ae6', class: "db-header-meta-navigation" }, h("slot", { key: '6a94b711843f10518e84f335df875d6d454d28a0', name: "metaNavigation" }))), h("div", { key: '1a9f4e2ccb9ffaddbbf19ee640dc82d0db009ffa', class: "db-header-secondary-action" }, h("slot", { key: '23f705f72608e8b5fa08fabc0f97ce61449fa388', name: "secondaryAction" }))), h("div", { key: 'a033891b1a8260327c56591fb12516dbe159b5e1', class: "db-header-meta-navigation" }, h("slot", { key: 'cfa5ffd51164e184eb68e04e8d83f3fd7ba94927', name: "metaNavigation" })), h("div", { key: '04430a76404e9e282b7249beee655a8e86d78dd2', class: "db-header-navigation-bar" }, h("div", { key: '5461e8c087ae579079017b738fb4ac36ddd44624', class: "db-header-brand-container" }, h("slot", { key: 'eed71de59cfb3cc65dc24797830bb4b7243a09f6', name: "brand" })), h("div", { key: 'c83e6866e91abc17fbe6ef06f3e976c8237644e7', class: "db-header-navigation-container" }, h("div", { key: '7cd0f313b6d25b400e0f0324b6f9d7e0f4dab61e', class: "db-header-navigation" }, h("slot", { key: '850c0eb5d3f7979a311880e3cf7b4c6484668ac3' })), h("div", { key: '48c8d805965f4bf8d443fa66bf2d8f9b46e30377', class: "db-header-primary-action" }, h("slot", { key: '42b4b88ecb12aedd83aaf97411c746a222ef7e83', name: "primaryAction" }))), h("div", { key: '836ed1d499998a707bc302443ed4885ec3347a0b', class: "db-header-action-container" }, h("div", { key: '8a483f37b9de0e49a97c352690dcfc9b3e457aba', class: "db-header-burger-menu-container" }, h("db-button", { key: '32e96e0f6ae32b0c56d4540307a5cf5e92e35822', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: 'c0db759bb4ce588e6d2302e3284908501fa556cb', class: "db-header-secondary-action" }, h("slot", { key: 'c2b198053cb8c57eeeb18153691b926627787083', name: "secondaryAction" }))))));
|
|
84
84
|
}
|
|
85
85
|
static get watchers() { return {
|
|
86
86
|
"initialized": [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-B6-lLNGQ.js';
|
|
2
|
+
import { c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBIcon = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -41,7 +41,7 @@ const DBIcon = class {
|
|
|
41
41
|
this.enableAttributePassing(this._ref, "db-icon");
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("span", { key: '
|
|
44
|
+
return (h("span", { key: 'f74b58da121bb69df759870f24684f15fc63cd3c', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
45
45
|
this._ref = el;
|
|
46
46
|
}, id: this.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
|
|
47
47
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-B6-lLNGQ.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBInfotext = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { g as getBooleanAsString, c as cls } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-B6-lLNGQ.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBLink = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -42,7 +42,7 @@ const DBLink = class {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
var _a, _b;
|
|
45
|
-
return (h("a", { key: '
|
|
45
|
+
return (h("a", { key: '9eec6b26274544cc6325624ad4028039610c8b2a', class: cls("db-link", this.className), ref: (el) => {
|
|
46
46
|
this._ref = el;
|
|
47
47
|
}, 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": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_b = this.showIcon) !== null && _b !== void 0 ? _b : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
|
|
48
48
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-B6-lLNGQ.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { u as uuid, d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-
|
|
3
|
+
import { u as uuid, d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
import { N as NavigationItemSafeTriangle } from './navigation--UdC9CzO.js';
|
|
5
5
|
import './floating-components-G-TursYV.js';
|
|
6
6
|
|
|
@@ -106,7 +106,7 @@ const DBNavigationItem = class {
|
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
108
|
var _a;
|
|
109
|
-
return (h("li", { key: '
|
|
109
|
+
return (h("li", { key: '2c1d3b2db5597946df4ea8bab748be7a3f4fe46a', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
110
110
|
this._ref = el;
|
|
111
111
|
}, 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": getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": getBooleanAsString(this.wrap), "aria-disabled": getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : h("slot", null) : null, this.hasSubNavigation ? (h(Fragment, null, h("button", { class: "db-navigation-item-expand-button", "aria-haspopup": this.hasAreaPopup, "aria-expanded": this.isSubNavigationExpanded, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), h("menu", { class: "db-sub-navigation", "data-force-close": this.autoClose, id: this.subNavigationId, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_a = this.backButtonText) !== null && _a !== void 0 ? _a : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
|
|
112
112
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-B6-lLNGQ.js';
|
|
2
2
|
import { D as DEFAULT_ID } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { u as uuid, c as cls } from './index-
|
|
3
|
+
import { u as uuid, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
5
5
|
const DBNavigation = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -44,9 +44,9 @@ const DBNavigation = class {
|
|
|
44
44
|
this._id = this.id || "navigation-" + uuid();
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h("nav", { key: '
|
|
47
|
+
return (h("nav", { key: '7ca06eb30c08a1b7a595a92d156cc35e1ed1fab0', class: cls("db-navigation", this.className), ref: (el) => {
|
|
48
48
|
this._ref = el;
|
|
49
|
-
}, id: this._id }, h("menu", { key: '
|
|
49
|
+
}, id: this._id }, h("menu", { key: '9fb0d02c73a39da0efa0e50f1b7836af84e729d7' }, h("slot", { key: '3f21156518d0bae763c8cd43a59b2d4bb579fa1e' }))));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-B6-lLNGQ.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
|
-
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, c as cls } from './index-
|
|
3
|
+
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
5
5
|
const DBNotification = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -52,9 +52,13 @@ const DBNotification = class {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a;
|
|
55
|
-
return (h("
|
|
55
|
+
return (h("div", { key: 'c02c5f52518a3ec9ef881a31c7fbfb82e6916ceb', class: cls("db-notification", this.className), ref: (el) => {
|
|
56
56
|
this._ref = el;
|
|
57
|
-
}, id: this.id,
|
|
57
|
+
}, id: this.id, role: getNotificationRole({
|
|
58
|
+
semantic: this.semantic,
|
|
59
|
+
role: this.role,
|
|
60
|
+
ariaLive: this.ariaLive,
|
|
61
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, h("slot", { key: '6aa1d954e740bedd0fcd01698c2d96b6949f25a5', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '8319a32b151cd2fdfe68cf60d87efb5a0e2363b6' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: 'a2d398e89f54e8c9207e2865ed238c0a8672bfd8', name: "link" }), getBoolean(this.closeable, "closeable") ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_a = this.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)) : null));
|
|
58
62
|
}
|
|
59
63
|
};
|
|
60
64
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { c as cls, g as getBooleanAsString } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-B6-lLNGQ.js';
|
|
2
|
+
import { c as cls, g as getBooleanAsString } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBPage = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -58,9 +58,9 @@ const DBPage = class {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h("div", { key: '
|
|
61
|
+
return (h("div", { key: '0596f3a43bd9fb3eb3a5bf9db63bdf8f899b14ec', class: cls("db-page", this.className), ref: (el) => {
|
|
62
62
|
this._ref = el;
|
|
63
|
-
}, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '
|
|
63
|
+
}, id: this.id, "data-variant": this.variant, "data-fade-in": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '44cab7ad5f1bbb8a89cec4702923d4f9956f9bcf', name: "header" }), h("main", { key: '2906f8b81485a608181844f7c8214e1c85c1c8cb', class: cls("db-main", this.mainClass) }, h("slot", { key: '1382d4f336daeda7c72dd6e72307e4ee3033ccd9' })), h("slot", { key: '96a74899d394ce2b669a5fe67ff02d6788041732', name: "footer" })));
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
|