@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/dist/esm/{db-custom-select-dropdown_6.entry.js → db-custom-select-dropdown_5.entry.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, c as createEvent } from './index-05XnVETo.js';
|
|
2
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
|
|
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
4
|
import { c as addValueResetEventListener } from './form-components-BLsiOrPI.js';
|
|
5
5
|
|
|
6
6
|
const DBCustomSelectDropdown = class {
|
|
@@ -461,261 +461,10 @@ const DBTag = class {
|
|
|
461
461
|
}
|
|
462
462
|
render() {
|
|
463
463
|
var _a;
|
|
464
|
-
return (h("div", { key: '
|
|
464
|
+
return (h("div", { key: 'db86fabfde3f9d1e41a863f58db34eb88d067440', 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: '1bef11e30ca670fa5bf1d438cd12c43e233cded4', name: "content" }), h("slot", { key: '3f94141f60688d0730478711748fa9dbb194f810' }), 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
|
-
|
|
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 };
|
|
470
|
+
export { DBCustomSelectDropdown as db_custom_select_dropdown, DBCustomSelectList as db_custom_select_list, DBCustomSelectListItem as db_custom_select_list_item, DBInput as db_input, DBTag as db_tag };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-05XnVETo.js';
|
|
2
2
|
import { c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBCustomSelectFormField = class {
|
|
@@ -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: '22a05256e65e56208335b9a5c840e75988a57182', 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: '3c6c62df9bf0d2a73e37a9ad69d3a46daa672984' })));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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-05XnVETo.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
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
4
|
import { D as DocumentClickListener } from './document-click-listener-CmYoXpGE.js';
|
|
5
5
|
import { D as DocumentScrollListener } from './document-scroll-listener-65bHuFAN.js';
|
|
6
|
-
import { a as handleFixedDropdown } from './floating-components-
|
|
6
|
+
import { a as handleFixedDropdown } from './floating-components-DfYL98sI.js';
|
|
7
7
|
import { b as addResetEventListener } from './form-components-BLsiOrPI.js';
|
|
8
8
|
|
|
9
9
|
const DBCustomSelect = class {
|
|
@@ -770,28 +770,30 @@ 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;
|
|
774
|
+
return (h("div", { key: '5ab3c80f3af53b7795e709feaea160e4aa26f281', 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: '281d6b75a9ae62b6e2f59c04876603988366952d', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: '26029a01c106666155c40cac98a7f67739145491', 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 }, this.getOptionLabel(option))))
|
|
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, key: undefined }, this.getOptionLabel(option))))
|
|
784
|
+
: null)), h("details", { key: '60f50d851ebf3b180094bdbd1c9acb3c6e1069af', 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: '369ba87529acc1e3b2d12869174eff0a824c0176' }), 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), key: undefined }, this.getOptionLabel(option)))))) : null), h("db-custom-select-dropdown", { width: this.dropdownWidth }, this.searchEnabled ? (h("div", null, h("db-input", { type: "search", ref: (el) => {
|
|
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 ? (
|
|
790
|
+
: undefined, onInput: (event) => this.handleSearch(event) }))) : null, this._hasNoOptions || this.showLoading ? (h("db-infotext", { id: this._infoTextId, icon: this.showLoading ? "circular_arrows" : undefined, semantic: this.showLoading ? "informational" : "warning" }, (_h = (this.showLoading
|
|
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) => {
|
|
791
793
|
this.selectAllRef = el;
|
|
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: (
|
|
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: (_k = (_j = this.listLabel) !== null && _j !== void 0 ? _j : this.label) !== null && _k !== void 0 ? _k : DEFAULT_LABEL }, (_l = this._options) === null || _l === void 0 ? void 0 : _l.map((option) => (h("db-custom-select-list-item", { type: this.multiple ? "checkbox" : "radio", showDivider: option.showDivider, icon: option.icon, isGroupTitle: option.isGroupTitle, groupTitle: this.getOptionLabel(option), name: this._id, checked: this.getOptionChecked(option.value), disabled: option.disabled, value: option.value, onChange: () => this.handleSelect(option.value), key: undefined }, !option.isGroupTitle
|
|
793
795
|
? this.getOptionLabel(option)
|
|
794
|
-
: null)))))), h("div", null, h("db-button", { variant: "ghost", width: "full", icon: "cross", size: "small", name: this._id, form: this._id, onClick: () => this.handleClose(undefined, true) }, (
|
|
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) }, (_m = this.mobileCloseButtonText) !== null && _m !== void 0 ? _m : DEFAULT_CLOSE_BUTTON))))) : null), ((_o = this.showClearSelection) !== null && _o !== void 0 ? _o : true) && ((_p = this._values) === null || _p === void 0 ? void 0 : _p.length) ? (h("db-button", { icon: "cross", variant: "ghost", size: "small", noText: true, name: this._id, form: this._id, onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: 'b4a9cebfe1db06422f428bac4d04d581bcadbb95', class: "db-custom-select-placeholder", "aria-hidden": getBooleanAsString(true), id: this._placeholderId }, (_q = this.placeholder) !== null && _q !== void 0 ? _q : this.label), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: 'a407a98afeecf7634770f34e2f427a09d657419a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '4465c3745c21e5333c8498927416fd0f244673dd', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
795
797
|
}
|
|
796
798
|
static get watchers() { return {
|
|
797
799
|
"detailsRef": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-05XnVETo.js';
|
|
2
2
|
import { c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBDivider = class {
|
|
@@ -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: '0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16', 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,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-05XnVETo.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { o as isKeyboardEvent, d as delay, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
@@ -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: '171c5580c99bbe2d2ea0a6e8e5962e4132d9b07f', 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: 'e9fad39beff3e642ad13be4950bb64fd15896f80', 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: 'cb9f374f26ebca0f11d02081c28e856cc87107c3', class: "db-drawer-header" }, h("div", { key: '7fca8037c16e16d909bcede75e223f38ae019453', class: "db-drawer-header-text" }, h("slot", { key: '85159cc4d260fa992bfe8b933920ae286b9ab09c', name: "drawerHeader" })), 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 : DEFAULT_CLOSE_BUTTON)), h("div", { key: '9dbbd6a3835dad60dea79a9b2fbed6a62dd6b837', class: "db-drawer-content" }, h("slot", { key: '1bc4b88266e6d7250d0075e2405b725ad38b950e' })))));
|
|
137
137
|
}
|
|
138
138
|
static get watchers() { return {
|
|
139
139
|
"open": [{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-05XnVETo.js';
|
|
2
2
|
import { p as DEFAULT_BURGER_MENU } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { a as addAttributeToChildren, e as getBoolean, c as cls } from './index-C4x0SOcx.js';
|
|
4
|
-
import { i as isEventTargetNavigationItem } from './navigation
|
|
5
|
-
import './floating-components-
|
|
4
|
+
import { i as isEventTargetNavigationItem } from './navigation-DgsMCdfn.js';
|
|
5
|
+
import './floating-components-DfYL98sI.js';
|
|
6
6
|
|
|
7
7
|
const DBHeader = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -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: 'f9850f5a6f59bee2ed97db4baea343e07aaff91a', 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: '32f62d8f0bf634e96cf7b0e96721fcd40aa3a3eb', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: 'a42c28439d07e97a3842efe4fa1c143c23691b5f', class: "db-header-drawer-navigation" }, h("div", { key: '141165e04574db312d51b0b4c376c53ddace243e', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: '2208e0677b1f15da56fd6be230523559fcb5f1da' })), h("div", { key: 'fb980500cdb2f6f3ce2fce2489c48ac27ebd256a', class: "db-header-meta-navigation" }, h("slot", { key: '7eea7189a1e82821fc3f0bd600bda5a040382e88', name: "metaNavigation" }))), h("div", { key: 'a492419586593d43edbada69ad136ad832902e15', class: "db-header-secondary-action" }, h("slot", { key: '90ed75a19c230c3a2af94b8e0b397c8712f9a0df', name: "secondaryAction" }))), h("div", { key: '1d0451bd1f522f51cbd2bab3cd1b7c316fd644b4', class: "db-header-meta-navigation" }, h("slot", { key: 'd92c5a30a0131225f2b7b1428c5121fed241d8a7', name: "metaNavigation" })), h("div", { key: 'f65c8e6b2b997c281046f20e1ac7c89d8b5697f6', class: "db-header-navigation-bar" }, h("div", { key: 'be1e1017417595bbb4ff845b650f5edef1f4fd49', class: "db-header-brand-container" }, h("slot", { key: '5552b137967ae4659887ad67514fd0078ced1473', name: "brand" })), h("div", { key: '682e11b41f5131feb17cdf1e175b9bbcf8399740', class: "db-header-navigation-container" }, h("div", { key: '29f5a7afa6d8c014f6e574d72198289970e5324e', class: "db-header-navigation" }, h("slot", { key: 'f03956cf3368d3ec0dbaab3b3091c276eaf03a92' })), h("div", { key: '8a81b9ee537f84e14c9d41acf323552d6f239748', class: "db-header-primary-action" }, h("slot", { key: '78ae4dbdc9bcad5bd4bd951a0a334c47cb35bcf6', name: "primaryAction" }))), h("div", { key: 'e1e913c181df2f73cc9fe4cda17f505a26b1ad04', class: "db-header-action-container" }, h("div", { key: '92d7c9c0e50f9aa86e15c18a2ac7dddabc241358', class: "db-header-burger-menu-container" }, h("db-button", { key: '775ca507ba24b19e411e529e9ad67fcdfa6f3dea', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_a = this.burgerMenuLabel) !== null && _a !== void 0 ? _a : DEFAULT_BURGER_MENU)), h("div", { key: '7cd5a16e27c72e3e0635056df8bcb7f45461c9fb', class: "db-header-secondary-action" }, h("slot", { key: '09669c165311f8dc95961c64900d5ab36281700a', name: "secondaryAction" }))))));
|
|
84
84
|
}
|
|
85
85
|
static get watchers() { return {
|
|
86
86
|
"initialized": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-05XnVETo.js';
|
|
2
2
|
import { c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBIcon = class {
|
|
@@ -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: '3a67532009f85e493784e99774e230f52c588ccc', 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,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-05XnVETo.js';
|
|
2
2
|
import { g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBLink = class {
|
|
@@ -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: 'a43d8889621390017c07dda184c570e54d7f81e0', 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,8 +1,8 @@
|
|
|
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-05XnVETo.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { u as uuid, d as delay, e as getBoolean, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
4
|
-
import { N as NavigationItemSafeTriangle } from './navigation
|
|
5
|
-
import './floating-components-
|
|
4
|
+
import { N as NavigationItemSafeTriangle } from './navigation-DgsMCdfn.js';
|
|
5
|
+
import './floating-components-DfYL98sI.js';
|
|
6
6
|
|
|
7
7
|
const DBNavigationItem = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -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: 'd00b7b4852a729301d545abaf1a65cd3e0cdcee7', 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,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-05XnVETo.js';
|
|
2
2
|
import { D as DEFAULT_ID } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { u as uuid, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
@@ -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: 'ed27159179b89985cbf0711be7dc494ca820cf75', 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: '6aa518535f6c802abec874a174d6e8d028572269' }, h("slot", { key: '2307ee2093cf4bcec3c8f4b8d5e8e88a8d78cf08' }))));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-05XnVETo.js';
|
|
2
2
|
import { s as DEFAULT_CLOSE_BUTTON } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { e as getBoolean, s as stringPropVisible, g as getBooleanAsString, p as getNotificationRole, c as cls } from './index-C4x0SOcx.js';
|
|
4
4
|
|
|
@@ -52,13 +52,13 @@ const DBNotification = class {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
var _a;
|
|
55
|
-
return (h("div", { key: '
|
|
55
|
+
return (h("div", { key: 'd1b82284e12ea68b7b33ba90a760ebcd0ec867e2', class: cls("db-notification", this.className), ref: (el) => {
|
|
56
56
|
this._ref = el;
|
|
57
57
|
}, id: this.id, role: getNotificationRole({
|
|
58
58
|
semantic: this.semantic,
|
|
59
59
|
role: this.role,
|
|
60
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: '
|
|
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: 'a468ad7c9373bc359e404751ab736b7049e5bbe8', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: '95f58e30be3685db12507152d980f6e2909b557a' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: 'd3c2d44714e5e332deae28d98ee800f8fb281f3f', 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));
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-05XnVETo.js';
|
|
2
2
|
import { c as cls, g as getBooleanAsString } from './index-C4x0SOcx.js';
|
|
3
3
|
|
|
4
4
|
const DBPage = class {
|
|
@@ -58,9 +58,9 @@ const DBPage = class {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h("div", { key: '
|
|
61
|
+
return (h("div", { key: '005b795411eb8ae8717d978eae32db515f7f6d87', 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: 'd9afe2076d0f115c2e7e8dc362ccd6e1dd3c4df7', name: "header" }), h("main", { key: '2002d9fbc8a71df9d042da0e77dbdce9d9bd9ab5', class: cls("db-main", this.mainClass) }, h("slot", { key: '40fdc82ff79391f41ba9bd1886959e7f84ab7626' })), h("slot", { key: '0468545812365d7124bf4e3e9f9045aacce6786a', name: "footer" })));
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-05XnVETo.js';
|
|
2
2
|
import { d as delay, g as getBooleanAsString, c as cls } from './index-C4x0SOcx.js';
|
|
3
3
|
import { D as DocumentScrollListener } from './document-scroll-listener-65bHuFAN.js';
|
|
4
|
-
import { b as handleFixedPopover } from './floating-components-
|
|
4
|
+
import { b as handleFixedPopover } from './floating-components-DfYL98sI.js';
|
|
5
5
|
|
|
6
6
|
const DBPopover = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -25,7 +25,7 @@ const DBPopover = class {
|
|
|
25
25
|
const article = this._ref.querySelector("article");
|
|
26
26
|
if (article) {
|
|
27
27
|
// This is a workaround for angular
|
|
28
|
-
delay(() => {
|
|
28
|
+
void delay(() => {
|
|
29
29
|
var _a;
|
|
30
30
|
handleFixedPopover(article, this._ref, (_a = this.placement) !== null && _a !== void 0 ? _a : "bottom");
|
|
31
31
|
}, 1);
|
|
@@ -164,9 +164,9 @@ const DBPopover = class {
|
|
|
164
164
|
}
|
|
165
165
|
render() {
|
|
166
166
|
var _a;
|
|
167
|
-
return (h("div", { key: '
|
|
167
|
+
return (h("div", { key: 'b8da95165af96a1486a2a90df63886c98d73ff42', class: cls("db-popover", this.className), ref: (el) => {
|
|
168
168
|
this._ref = el;
|
|
169
|
-
}, id: this.id }, h("slot", { key: '
|
|
169
|
+
}, id: this.id }, h("slot", { key: 'a8aabd06a96b791d23fa7bc037ad22feff8a370b', name: "trigger" }), h("article", { key: 'c349d59d154d8285ac4df1f1093503a65f1cad2d', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_a = this.animation) !== null && _a !== void 0 ? _a : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '76e4010918fec2ef4f79a6e7a10a79bc9744802a' }))));
|
|
170
170
|
}
|
|
171
171
|
static get watchers() { return {
|
|
172
172
|
"_ref": [{
|