@db-ux/wc-core-components 4.5.4-mcp-e4cd7e6 → 4.5.4-table-c758ae7
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/README.md +30 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/db-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-button.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +10 -10
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +3 -3
- package/dist/cjs/db-custom-select.cjs.entry.js +6 -6
- 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 +3 -3
- package/dist/cjs/db-icon.cjs.entry.js +2 -2
- package/dist/cjs/db-infotext.cjs.entry.js +2 -2
- package/dist/cjs/db-link_4.cjs.entry.js +220 -0
- package/dist/cjs/db-navigation-item.cjs.entry.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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-table-body_3.cjs.entry.js +173 -0
- package/dist/cjs/{db-link.cjs.entry.js → db-table-caption.cjs.entry.js} +6 -7
- package/dist/cjs/db-table.cjs.entry.js +136 -0
- 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 +3 -3
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{index-EqJP9Qyt.js → index-CSakRmZZ.js} +21 -0
- package/dist/cjs/index.cjs.js +20 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +9 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +2 -2
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/brand/brand.js +2 -2
- package/dist/collection/components/button/button.js +4 -4
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/custom-button/custom-button.js +5 -5
- package/dist/collection/components/custom-select/custom-select.js +7 -7
- package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
- package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
- package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
- package/dist/collection/components/custom-select-list-item/custom-select-list-item.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 +2 -2
- package/dist/collection/components/infotext/infotext.js +2 -2
- package/dist/collection/components/input/input.js +6 -6
- 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 +2 -2
- package/dist/collection/components/notification/notification.js +3 -3
- 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 +4 -4
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/switch/switch.js +6 -6
- package/dist/collection/components/tab-item/tab-item.js +5 -5
- 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/table/examples/data.js +258 -0
- package/dist/collection/components/table/index.js +2 -0
- package/dist/collection/components/table/model.js +6 -0
- package/dist/collection/components/table/table.js +456 -0
- package/dist/collection/components/table-body/index.js +2 -0
- package/dist/collection/components/table-body/model.js +1 -0
- package/dist/collection/components/table-body/table-body.js +137 -0
- package/dist/collection/components/table-caption/index.js +2 -0
- package/dist/collection/components/table-caption/model.js +1 -0
- package/dist/collection/components/table-caption/table-caption.js +109 -0
- package/dist/collection/components/table-data-cell/index.js +2 -0
- package/dist/collection/components/table-data-cell/model.js +1 -0
- package/dist/collection/components/table-data-cell/table-data-cell.js +291 -0
- package/dist/collection/components/table-footer/index.js +2 -0
- package/dist/collection/components/table-footer/model.js +1 -0
- package/dist/collection/components/table-footer/table-footer.js +137 -0
- package/dist/collection/components/table-head/index.js +2 -0
- package/dist/collection/components/table-head/model.js +1 -0
- package/dist/collection/components/table-head/table-head.js +140 -0
- package/dist/collection/components/table-header-cell/index.js +2 -0
- package/dist/collection/components/table-header-cell/model.js +1 -0
- package/dist/collection/components/table-header-cell/table-header-cell.js +369 -0
- package/dist/collection/components/table-row/index.js +2 -0
- package/dist/collection/components/table-row/model.js +1 -0
- package/dist/collection/components/table-row/table-row.js +195 -0
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/tag/tag.js +3 -3
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/index.js +16 -0
- package/dist/collection/shared/model.js +1 -1
- package/dist/custom-elements.json +5671 -2660
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/{p-cdef6789.entry.js → p-003f3468.entry.js} +1 -1
- package/dist/db-ux/{p-516c3f64.entry.js → p-0055d6ce.entry.js} +1 -1
- package/dist/db-ux/{p-c7d1bee4.entry.js → p-032487d0.entry.js} +1 -1
- package/dist/db-ux/{p-83e69c0e.entry.js → p-10acdb01.entry.js} +1 -1
- package/dist/db-ux/{p-3ca07f53.entry.js → p-150c4aeb.entry.js} +1 -1
- package/dist/db-ux/{p-72d1ea3b.entry.js → p-19fe0672.entry.js} +1 -1
- package/dist/db-ux/p-2cdc1311.entry.js +1 -0
- package/dist/db-ux/p-33ca6422.entry.js +1 -0
- package/dist/db-ux/p-42e61221.entry.js +1 -0
- package/dist/db-ux/{p-fdbf8d91.entry.js → p-47bd992d.entry.js} +1 -1
- package/dist/db-ux/{p-fc9fb7cd.entry.js → p-50a16969.entry.js} +1 -1
- package/dist/db-ux/{p-aad2d524.entry.js → p-54d2e18d.entry.js} +1 -1
- package/dist/db-ux/{p-b99e76fd.entry.js → p-5e4de899.entry.js} +1 -1
- package/dist/db-ux/p-68a1d35a.entry.js +1 -0
- package/dist/db-ux/{p-56da8875.entry.js → p-6b87f6f1.entry.js} +1 -1
- package/dist/db-ux/{p-19ae6336.entry.js → p-7387346c.entry.js} +1 -1
- package/dist/db-ux/p-75005663.entry.js +1 -0
- package/dist/db-ux/{p-7f6fae6f.entry.js → p-77ee580e.entry.js} +1 -1
- package/dist/db-ux/{p-669fe992.entry.js → p-7da51a4c.entry.js} +1 -1
- package/dist/db-ux/p-7f2eaa8b.entry.js +1 -0
- package/dist/db-ux/{p-bd1b0142.entry.js → p-823a7488.entry.js} +1 -1
- package/dist/db-ux/p-8826c7fc.entry.js +1 -0
- package/dist/db-ux/{p-a0f6fc10.entry.js → p-8baf5ea2.entry.js} +1 -1
- package/dist/db-ux/{p-4f519859.entry.js → p-8f76eea7.entry.js} +1 -1
- package/dist/db-ux/p-97f5d48e.entry.js +1 -0
- package/dist/db-ux/p-LpjjuLKB.js +2 -0
- package/dist/db-ux/p-a8368ed2.entry.js +1 -0
- package/dist/db-ux/p-c0b8571d.entry.js +1 -0
- package/dist/db-ux/p-d20bd873.entry.js +1 -0
- package/dist/db-ux/{p-4a0870fa.entry.js → p-d603dcc4.entry.js} +1 -1
- package/dist/db-ux/{p-2c30a356.entry.js → p-dbdfc04a.entry.js} +1 -1
- package/dist/db-ux/{p-df2b1979.entry.js → p-e3279b61.entry.js} +1 -1
- package/dist/db-ux/{p-a726cd18.entry.js → p-e367150f.entry.js} +1 -1
- package/dist/db-ux/{p-f49ed233.entry.js → p-e9058123.entry.js} +1 -1
- package/dist/db-ux/p-e9142fec.entry.js +1 -0
- package/dist/esm/db-accordion-item.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/db-checkbox.entry.js +3 -3
- package/dist/esm/db-custom-button.entry.js +3 -3
- package/dist/esm/db-custom-select-dropdown_5.entry.js +10 -10
- package/dist/esm/db-custom-select-form-field.entry.js +3 -3
- package/dist/esm/db-custom-select.entry.js +6 -6
- 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 +3 -3
- package/dist/esm/db-icon.entry.js +2 -2
- package/dist/esm/db-infotext.entry.js +2 -2
- package/dist/esm/db-link_4.entry.js +215 -0
- package/dist/esm/db-navigation-item.entry.js +2 -2
- 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 +3 -3
- 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 +3 -3
- 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-table-body_3.entry.js +169 -0
- package/dist/esm/{db-link.entry.js → db-table-caption.entry.js} +7 -8
- package/dist/esm/db-table.entry.js +134 -0
- 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 +3 -3
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{index-kHKR5QG5.js → index-LpjjuLKB.js} +21 -0
- package/dist/esm/index.js +13 -2
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/table/examples/data.d.ts +9 -0
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/table/model.d.ts +74 -0
- package/dist/types/components/table/table.d.ts +37 -0
- package/dist/types/components/table-body/index.d.ts +2 -0
- package/dist/types/components/table-body/model.d.ts +8 -0
- package/dist/types/components/table-body/table-body.d.ts +19 -0
- package/dist/types/components/table-caption/index.d.ts +2 -0
- package/dist/types/components/table-caption/model.d.ts +5 -0
- package/dist/types/components/table-caption/table-caption.d.ts +18 -0
- package/dist/types/components/table-data-cell/index.d.ts +2 -0
- package/dist/types/components/table-data-cell/model.d.ts +5 -0
- package/dist/types/components/table-data-cell/table-data-cell.d.ts +25 -0
- package/dist/types/components/table-footer/index.d.ts +2 -0
- package/dist/types/components/table-footer/model.d.ts +8 -0
- package/dist/types/components/table-footer/table-footer.d.ts +19 -0
- package/dist/types/components/table-head/index.d.ts +2 -0
- package/dist/types/components/table-head/model.d.ts +10 -0
- package/dist/types/components/table-head/table-head.d.ts +58 -0
- package/dist/types/components/table-header-cell/index.d.ts +2 -0
- package/dist/types/components/table-header-cell/model.d.ts +24 -0
- package/dist/types/components/table-header-cell/table-header-cell.d.ts +28 -0
- package/dist/types/components/table-row/index.d.ts +2 -0
- package/dist/types/components/table-row/model.d.ts +30 -0
- package/dist/types/components/table-row/table-row.d.ts +23 -0
- package/dist/types/components.d.ts +278 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/shared/model.d.ts +42 -2
- package/dist/vscode.html-custom-data.json +400 -2
- package/dist/web-types.json +692 -4
- package/package.json +3 -3
- package/dist/db-ux/p-05e9aa2e.entry.js +0 -1
- package/dist/db-ux/p-2ed98454.entry.js +0 -1
- package/dist/db-ux/p-33443732.entry.js +0 -1
- package/dist/db-ux/p-58c6c29d.entry.js +0 -1
- package/dist/db-ux/p-85897212.entry.js +0 -1
- package/dist/db-ux/p-8a521b05.entry.js +0 -1
- package/dist/db-ux/p-974fbc69.entry.js +0 -1
- package/dist/db-ux/p-a3aef74b.entry.js +0 -1
- package/dist/db-ux/p-cb093137.entry.js +0 -1
- package/dist/db-ux/p-kHKR5QG5.js +0 -2
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
|
+
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
|
+
|
|
6
|
+
const DBLink = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
index.registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
12
|
+
* @param element the ref for the component
|
|
13
|
+
* @param customElementSelector the custom element like `my-component`
|
|
14
|
+
*/
|
|
15
|
+
enableAttributePassing(element, customElementSelector) {
|
|
16
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
17
|
+
if (element && parent) {
|
|
18
|
+
const attributes = parent.attributes;
|
|
19
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
20
|
+
const attr = attributes.item(i);
|
|
21
|
+
if (attr && attr.name !== 'data-density' &&
|
|
22
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
23
|
+
element.setAttribute(attr.name, attr.value);
|
|
24
|
+
parent.removeAttribute(attr.name);
|
|
25
|
+
}
|
|
26
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
27
|
+
element.setAttribute(attr.name, attr.value);
|
|
28
|
+
parent.removeAttribute(attr.name);
|
|
29
|
+
}
|
|
30
|
+
else if (attr && attr.name === "class") {
|
|
31
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
32
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
33
|
+
const currentClass = element.getAttribute("class");
|
|
34
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
35
|
+
if (isWebComponent) {
|
|
36
|
+
// Stencil is using this class for lazy loading component
|
|
37
|
+
parent.setAttribute("class", "hydrated");
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
parent.removeAttribute(attr.name);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
componentDidLoad() {
|
|
47
|
+
this.enableAttributePassing(this._ref, "db-link");
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
var _a, _b, _c, _d;
|
|
51
|
+
return (index.h("a", { key: '9cecd89fae35481cbc053fd253fc75140f8e57a1', class: index$1.cls("db-link", this.className), ref: (el) => {
|
|
52
|
+
this._ref = el;
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, href: this.href, target: this.target, rel: this.rel, role: this.role, referrerPolicy: (_c = this.referrerpolicy) !== null && _c !== void 0 ? _c : this.referrerPolicy, hrefLang: this.hreflang, "aria-disabled": index$1.getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": index$1.getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": index$1.getBooleanAsString(this.wrap) }, this.text ? this.text : index.h("slot", null)));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const DBTableRow = class {
|
|
58
|
+
constructor(hostRef) {
|
|
59
|
+
index.registerInstance(this, hostRef);
|
|
60
|
+
}
|
|
61
|
+
getHeaderCell(cell) {
|
|
62
|
+
if (cell.headerCell) {
|
|
63
|
+
return cell;
|
|
64
|
+
}
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
69
|
+
* @param element the ref for the component
|
|
70
|
+
* @param customElementSelector the custom element like `my-component`
|
|
71
|
+
*/
|
|
72
|
+
enableAttributePassing(element, customElementSelector) {
|
|
73
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
74
|
+
if (element && parent) {
|
|
75
|
+
const attributes = parent.attributes;
|
|
76
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
77
|
+
const attr = attributes.item(i);
|
|
78
|
+
if (attr && attr.name !== 'data-density' &&
|
|
79
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
80
|
+
element.setAttribute(attr.name, attr.value);
|
|
81
|
+
parent.removeAttribute(attr.name);
|
|
82
|
+
}
|
|
83
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
84
|
+
element.setAttribute(attr.name, attr.value);
|
|
85
|
+
parent.removeAttribute(attr.name);
|
|
86
|
+
}
|
|
87
|
+
else if (attr && attr.name === "class") {
|
|
88
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
89
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
90
|
+
const currentClass = element.getAttribute("class");
|
|
91
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
92
|
+
if (isWebComponent) {
|
|
93
|
+
// Stencil is using this class for lazy loading component
|
|
94
|
+
parent.setAttribute("class", "hydrated");
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
parent.removeAttribute(attr.name);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
componentDidLoad() {
|
|
104
|
+
this.enableAttributePassing(this._ref, "db-table-row");
|
|
105
|
+
}
|
|
106
|
+
render() {
|
|
107
|
+
var _a;
|
|
108
|
+
return (index.h("tr", { key: '0826ccfb6e11937280649f6b59263676e8f5f668', class: index$1.cls("db-table-row", this.className), ref: (el) => {
|
|
109
|
+
this._ref = el;
|
|
110
|
+
}, id: this.id, "data-interactive": index$1.getBooleanAsString(this.interactive), "data-sub-header-emphasis": this.subHeaderEmphasis }, this.cells ? ((_a = this.cells) === null || _a === void 0 ? void 0 : _a.map((cell, index$2) => {
|
|
111
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20;
|
|
112
|
+
return cell.headerCell ? (index.h("db-table-header-cell", { class: (_a = cell.className) !== null && _a !== void 0 ? _a : cell.class, key: `${(_b = this.id) !== null && _b !== void 0 ? _b : index$1.uuid()}-table-row-header-cell-${index$2}`, id: cell.id, abbr: (_c = this.getHeaderCell(cell)) === null || _c === void 0 ? void 0 : _c.abbr, scope: (_d = this.getHeaderCell(cell)) === null || _d === void 0 ? void 0 : _d.scope, noText: (_e = this.getHeaderCell(cell)) === null || _e === void 0 ? void 0 : _e.noText, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (index.h("db-link", { class: (_g = (_f = cell.link) === null || _f === void 0 ? void 0 : _f.className) !== null && _g !== void 0 ? _g : (_h = cell.link) === null || _h === void 0 ? void 0 : _h.class, content: (_j = cell.link) === null || _j === void 0 ? void 0 : _j.content, size: (_k = cell.link) === null || _k === void 0 ? void 0 : _k.size, variant: (_l = cell.link) === null || _l === void 0 ? void 0 : _l.variant, id: (_m = cell.link) === null || _m === void 0 ? void 0 : _m.id, autofocus: (_o = cell.link) === null || _o === void 0 ? void 0 : _o.autofocus, disabled: (_p = cell.link) === null || _p === void 0 ? void 0 : _p.disabled, href: (_q = cell.link) === null || _q === void 0 ? void 0 : _q.href, hreflang: (_r = cell.link) === null || _r === void 0 ? void 0 : _r.hreflang, target: (_s = cell.link) === null || _s === void 0 ? void 0 : _s.target, rel: (_t = cell.link) === null || _t === void 0 ? void 0 : _t.rel, referrerPolicy: (_u = cell.link) === null || _u === void 0 ? void 0 : _u.referrerPolicy, role: (_v = cell.link) === null || _v === void 0 ? void 0 : _v.role, showIcon: (_w = cell.link) === null || _w === void 0 ? void 0 : _w.showIcon, text: (_x = cell.link) === null || _x === void 0 ? void 0 : _x.text, wrap: (_y = cell.link) === null || _y === void 0 ? void 0 : _y.wrap }, (_z = cell.link) === null || _z === void 0 ? void 0 : _z.children)) : (cell.content))) : (index.h("db-table-data-cell", { class: (_0 = cell.className) !== null && _0 !== void 0 ? _0 : cell.class, key: `${(_1 = this.id) !== null && _1 !== void 0 ? _1 : index$1.uuid()}-table-row-data-cell-${index$2}`, id: cell.id, horizontalAlignment: cell.horizontalAlignment, verticalAlignment: cell.verticalAlignment, headers: cell.headers, colSpan: cell.colSpan, colspan: cell.colspan, rowSpan: cell.rowSpan, rowspan: cell.rowspan }, cell.link ? (index.h("db-link", { class: (_3 = (_2 = cell.link) === null || _2 === void 0 ? void 0 : _2.className) !== null && _3 !== void 0 ? _3 : (_4 = cell.link) === null || _4 === void 0 ? void 0 : _4.class, content: (_5 = cell.link) === null || _5 === void 0 ? void 0 : _5.content, size: (_6 = cell.link) === null || _6 === void 0 ? void 0 : _6.size, variant: (_7 = cell.link) === null || _7 === void 0 ? void 0 : _7.variant, id: (_8 = cell.link) === null || _8 === void 0 ? void 0 : _8.id, autofocus: (_9 = cell.link) === null || _9 === void 0 ? void 0 : _9.autofocus, disabled: (_10 = cell.link) === null || _10 === void 0 ? void 0 : _10.disabled, href: (_11 = cell.link) === null || _11 === void 0 ? void 0 : _11.href, hreflang: (_12 = cell.link) === null || _12 === void 0 ? void 0 : _12.hreflang, target: (_13 = cell.link) === null || _13 === void 0 ? void 0 : _13.target, rel: (_14 = cell.link) === null || _14 === void 0 ? void 0 : _14.rel, referrerPolicy: (_15 = cell.link) === null || _15 === void 0 ? void 0 : _15.referrerPolicy, role: (_16 = cell.link) === null || _16 === void 0 ? void 0 : _16.role, showIcon: (_17 = cell.link) === null || _17 === void 0 ? void 0 : _17.showIcon, text: (_18 = cell.link) === null || _18 === void 0 ? void 0 : _18.text, wrap: (_19 = cell.link) === null || _19 === void 0 ? void 0 : _19.wrap }, (_20 = cell.link) === null || _20 === void 0 ? void 0 : _20.children)) : (cell.content)));
|
|
113
|
+
})) : (index.h("slot", null))));
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const DBTableHeaderCell = class {
|
|
118
|
+
constructor(hostRef) {
|
|
119
|
+
index.registerInstance(this, hostRef);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
123
|
+
* @param element the ref for the component
|
|
124
|
+
* @param customElementSelector the custom element like `my-component`
|
|
125
|
+
*/
|
|
126
|
+
enableAttributePassing(element, customElementSelector) {
|
|
127
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
128
|
+
if (element && parent) {
|
|
129
|
+
const attributes = parent.attributes;
|
|
130
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
131
|
+
const attr = attributes.item(i);
|
|
132
|
+
if (attr && attr.name !== 'data-density' &&
|
|
133
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
134
|
+
element.setAttribute(attr.name, attr.value);
|
|
135
|
+
parent.removeAttribute(attr.name);
|
|
136
|
+
}
|
|
137
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
138
|
+
element.setAttribute(attr.name, attr.value);
|
|
139
|
+
parent.removeAttribute(attr.name);
|
|
140
|
+
}
|
|
141
|
+
else if (attr && attr.name === "class") {
|
|
142
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
143
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
144
|
+
const currentClass = element.getAttribute("class");
|
|
145
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
146
|
+
if (isWebComponent) {
|
|
147
|
+
// Stencil is using this class for lazy loading component
|
|
148
|
+
parent.setAttribute("class", "hydrated");
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
parent.removeAttribute(attr.name);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
componentDidLoad() {
|
|
158
|
+
this.enableAttributePassing(this._ref, "db-table-header-cell");
|
|
159
|
+
}
|
|
160
|
+
render() {
|
|
161
|
+
return (index.h("th", { key: '8e4041b823d5a1e31e92992eb9233bc75e6f0db9', class: index$1.cls("db-table-header-cell", this.className), ref: (el) => {
|
|
162
|
+
this._ref = el;
|
|
163
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, "data-no-text": index$1.getBooleanAsString(this.noText), scope: this.scope, colSpan: index$1.getNumber(this.colSpan, this.colspan), rowSpan: index$1.getNumber(this.rowSpan, this.rowspan), headers: this.headers, abbr: this.abbr }, index.h("slot", { key: 'a78d87d22ead57dbb4a97175da963028fa603a39' })));
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
const DBTableDataCell = class {
|
|
168
|
+
constructor(hostRef) {
|
|
169
|
+
index.registerInstance(this, hostRef);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
173
|
+
* @param element the ref for the component
|
|
174
|
+
* @param customElementSelector the custom element like `my-component`
|
|
175
|
+
*/
|
|
176
|
+
enableAttributePassing(element, customElementSelector) {
|
|
177
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
178
|
+
if (element && parent) {
|
|
179
|
+
const attributes = parent.attributes;
|
|
180
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
181
|
+
const attr = attributes.item(i);
|
|
182
|
+
if (attr && attr.name !== 'data-density' &&
|
|
183
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
184
|
+
element.setAttribute(attr.name, attr.value);
|
|
185
|
+
parent.removeAttribute(attr.name);
|
|
186
|
+
}
|
|
187
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
188
|
+
element.setAttribute(attr.name, attr.value);
|
|
189
|
+
parent.removeAttribute(attr.name);
|
|
190
|
+
}
|
|
191
|
+
else if (attr && attr.name === "class") {
|
|
192
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
193
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
194
|
+
const currentClass = element.getAttribute("class");
|
|
195
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
196
|
+
if (isWebComponent) {
|
|
197
|
+
// Stencil is using this class for lazy loading component
|
|
198
|
+
parent.setAttribute("class", "hydrated");
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
parent.removeAttribute(attr.name);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
componentDidLoad() {
|
|
208
|
+
this.enableAttributePassing(this._ref, "db-table-data-cell");
|
|
209
|
+
}
|
|
210
|
+
render() {
|
|
211
|
+
return (index.h("td", { key: '8274250200fc80a6dd6df6d337b397930c665e18', class: index$1.cls("db-table-data-cell", this.className), ref: (el) => {
|
|
212
|
+
this._ref = el;
|
|
213
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, colSpan: index$1.getNumber(this.colSpan, this.colspan), rowSpan: index$1.getNumber(this.rowSpan, this.rowspan), headers: this.headers }, index.h("slot", { key: '15e1f9e5492c105d953fb8f4ec272f3c8853b318' })));
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
exports.db_link = DBLink;
|
|
218
|
+
exports.db_table_data_cell = DBTableDataCell;
|
|
219
|
+
exports.db_table_header_cell = DBTableHeaderCell;
|
|
220
|
+
exports.db_table_row = DBTableRow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var navigation = require('./navigation-Bah882nU.js');
|
|
@@ -117,7 +117,7 @@ const DBNavigationItem = class {
|
|
|
117
117
|
}
|
|
118
118
|
render() {
|
|
119
119
|
var _a, _b, _c;
|
|
120
|
-
return (index.h("li", { key: '
|
|
120
|
+
return (index.h("li", { key: 'b567c0fa3acc631c90bbbcd7ef570f1868e3afb4', class: index$1.cls("db-navigation-item", this.className), ref: (el) => {
|
|
121
121
|
this._ref = el;
|
|
122
122
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, onMouseOver: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.enableFollow(); }, onMouseLeave: () => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.disableFollow(); }, onMouseMove: (event) => { var _a; return (_a = this.navigationItemSafeTriangle) === null || _a === void 0 ? void 0 : _a.followByMouseEvent(event); }, "data-width": this.width, "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-active": this.active, "data-wrap": index$1.getBooleanAsString(this.wrap), "aria-disabled": index$1.getBooleanAsString(this.disabled) }, !this.hasSubNavigation ? this.text ? this.text : index.h("slot", null) : null, this.hasSubNavigation ? (index.h(index.Fragment, null, index.h("button", { class: "db-navigation-item-expand-button", id: this.subNavigationToggleId, "aria-haspopup": this.hasAreaPopup ? "true" : undefined, "aria-expanded": this.isSubNavigationExpanded, "aria-controls": this.subNavigationId, disabled: index$1.getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : index.h("slot", null)), index.h("menu", { class: "db-sub-navigation", id: this.subNavigationId, "aria-labelledby": this.subNavigationToggleId, "data-force-close": this.autoClose, onClick: (event) => this.handleNavigationItemClick(event) }, this.hasAreaPopup ? (index.h("div", { class: "db-mobile-navigation-back" }, index.h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_BACK))) : null, index.h("slot", { name: "subNavigation" })))) : null));
|
|
123
123
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBNavigation = class {
|
|
@@ -48,9 +48,9 @@ const DBNavigation = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("nav", { key: '
|
|
51
|
+
return (index.h("nav", { key: 'b010a46304b40eb38d99b2e26a4f46d32fc86d97', class: index$1.cls("db-navigation", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("menu", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("menu", { key: '8e731e3da4f8e414c8e0756c70bba576e93a5841' }, index.h("slot", { key: '302cc4871db0bf06c9f35766be74b52a30ed1f82' }))));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
|
|
@@ -58,13 +58,13 @@ const DBNotification = class {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a, _b, _c;
|
|
61
|
-
return (index.h("div", { key: '
|
|
61
|
+
return (index.h("div", { key: '3c1803adcfe5c34175c112c6c9d55e4c8fef3af0', class: index$1.cls("db-notification", this.className), ref: (el) => {
|
|
62
62
|
this._ref = el;
|
|
63
63
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: index$1.getNotificationRole({
|
|
64
64
|
semantic: this.semantic,
|
|
65
65
|
role: this.role,
|
|
66
66
|
ariaLive: this.ariaLive,
|
|
67
|
-
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: '
|
|
67
|
+
}), "aria-live": this.ariaLive, "data-semantic": this.semantic, "data-variant": this.variant, "data-icon": index$1.getBoolean(this.showIcon) !== false ? this.icon : undefined, "data-show-icon": index$1.getBooleanAsString(this.showIcon), "data-link-variant": this.linkVariant }, index.h("slot", { key: 'fd2deb6b191feb65cf2c2b21a88737007bda7f1f', name: "image" }), index$1.stringPropVisible(this.headline, this.showHeadline) ? (index.h("header", null, this.headline)) : null, index.h("p", { key: 'a6400239df82a1fe57d4df466ac57078d0c35ac3' }, this.text ? this.text : index.h("slot", null)), index$1.stringPropVisible(this.timestamp, this.showTimestamp) ? (index.h("span", null, this.timestamp)) : null, index.h("slot", { key: '35b6377f9bdbf475dd80058502ee1c04277a967f', name: "link" }), index$1.getBoolean(this.closeable, "closeable") ? (index.h("db-button", { icon: "cross", variant: "ghost", size: "small", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : constants.DEFAULT_CLOSE_BUTTON)) : null));
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBPage = class {
|
|
@@ -65,9 +65,9 @@ const DBPage = class {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
var _a, _b;
|
|
68
|
-
return (index.h("div", { key: '
|
|
68
|
+
return (index.h("div", { key: '3ab3a293a869c9d557e8998e8d523a999b50f582', class: index$1.cls("db-page", this.className), ref: (el) => {
|
|
69
69
|
this._ref = el;
|
|
70
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: '
|
|
70
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-variant": this.variant, "data-fade-in": index$1.getBooleanAsString(this.fadeIn), "data-fonts-loaded": index$1.getBooleanAsString(this.fontsLoaded) }, index.h("slot", { key: 'd4ad87f9642d0be01271e3cc31389083893b5b12', name: "header" }), index.h("main", { key: '74d35e61900006b8996e91236a8f8aa56b50a571', class: index$1.cls("db-main", this.mainClass) }, index.h("slot", { key: 'a41b05ab87cfee50527ce033cdde32664219a830' })), index.h("slot", { key: '6612f687f66f6382366ce97eb50c17f905ebecdf', name: "footer" })));
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
var documentScrollListener = require('./document-scroll-listener-ChQ7XZRk.js');
|
|
6
6
|
var floatingComponents = require('./floating-components-DlstoCKH.js');
|
|
@@ -170,9 +170,9 @@ const DBPopover = class {
|
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
172
|
var _a, _b, _c;
|
|
173
|
-
return (index.h("div", { key: '
|
|
173
|
+
return (index.h("div", { key: 'a1f493f8b3a02907a91c2ca142a94a427acd3922', class: index$1.cls("db-popover", this.className), ref: (el) => {
|
|
174
174
|
this._ref = el;
|
|
175
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: '
|
|
175
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("slot", { key: 'cf1d7de8b1d75d6142b9db5a38dc80a3ec72a623', name: "trigger" }), index.h("article", { key: '1583bf74dcff72ce68c547800035aaca9ba4178d', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": index$1.getBooleanAsString(this.gap), "data-animation": index$1.getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": index$1.getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, index.h("slot", { key: '432ffdd18b6121de6704ce901231c8225ec68106' }))));
|
|
176
176
|
}
|
|
177
177
|
static get watchers() { return {
|
|
178
178
|
"_ref": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
6
6
|
|
|
@@ -127,7 +127,7 @@ const DBRadio = class {
|
|
|
127
127
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
return (index.h("label", { key: '
|
|
130
|
+
return (index.h("label", { key: '1450495bf8a887db244427529a5811c8aba388e9', class: index$1.cls("db-radio", this.className), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), htmlFor: this._id }, index.h("input", { key: 'f0d89d24058e1c77c64cc7f1a26fcc86392900c5', type: "radio", "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
131
131
|
this._ref = el;
|
|
132
132
|
}, id: this._id, name: this.name, checked: index$1.getBoolean(this.checked, "checked"), disabled: index$1.getBoolean(this.disabled, "disabled"), value: this.value, required: index$1.getBoolean(this.required, "required"), onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event) }), this.label ? this.label : index.h("slot", null)));
|
|
133
133
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBSection = class {
|
|
@@ -48,9 +48,9 @@ const DBSection = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("section", { key: '
|
|
51
|
+
return (index.h("section", { key: '21276e8ff993a9db126db60f13ec9b61ee903d52', class: index$1.cls("db-section", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-spacing": this.spacing || "medium", "data-width": this.width }, index.h("slot", { key: '5f239ac66f8caaf528db0e9af88ac7950894ff2a' })));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -238,14 +238,14 @@ const DBSelect = class {
|
|
|
238
238
|
}
|
|
239
239
|
render() {
|
|
240
240
|
var _a, _b, _c, _d, _e;
|
|
241
|
-
return (index.h("div", { key: '
|
|
241
|
+
return (index.h("div", { key: 'b5781f8679a45319dd04b45aad3a8da9f60b8f86', class: index$1.cls("db-select", this.className), "data-variant": this.variant, "data-hide-label": index$1.getHideProp(this.showLabel), "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-icon": this.icon, "data-show-icon": index$1.getBooleanAsString(this.showIcon) }, index.h("label", { key: 'cf6035ebd7f8906dd6d91eec96e225e11b5532d1', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : constants.DEFAULT_LABEL), index.h("select", { key: '42c6d79acf18ef26bf6b3b56b457f777d845a324', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, ref: (el) => {
|
|
242
242
|
this._ref = el;
|
|
243
243
|
}, required: index$1.getBoolean(this.required, "required"), disabled: index$1.getBoolean(this.disabled, "disabled"), id: this._id, name: this.name, size: this.size,
|
|
244
244
|
/* @ts-ignore */
|
|
245
245
|
value: (_b = this.value) !== null && _b !== void 0 ? _b : this._value, autocomplete: this.autocomplete, multiple: this.multiple, onInput: (event) => this.handleInput(event), onClick: (event) => this.handleClick(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), "aria-describedby": (_c = this.ariaDescribedBy) !== null && _c !== void 0 ? _c : this._descByIds }, this.variant === "floating" || !!this.placeholder ? (index.h("option", { class: "placeholder", value: "", "data-show-empty-option": index$1.getBooleanAsString(this.shouldShowEmptyOption()) })) : null, ((_d = this.options) === null || _d === void 0 ? void 0 : _d.length) ? ((_e = this.options) === null || _e === void 0 ? void 0 : _e.map((option) => {
|
|
246
246
|
var _a;
|
|
247
247
|
return (index.h(index.Fragment, null, option.options ? (index.h("optgroup", { label: this.getOptionLabel(option), key: undefined }, (_a = option.options) === null || _a === void 0 ? void 0 : _a.map((optgroupOption) => (index.h("option", { value: optgroupOption.value, selected: optgroupOption.selected, disabled: optgroupOption.disabled, key: undefined }, this.getOptionLabel(optgroupOption)))))) : (index.h("option", { value: option.value, disabled: option.disabled, selected: option.selected, key: undefined }, this.getOptionLabel(option)))));
|
|
248
|
-
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
248
|
+
})) : (index.h("slot", null))), this.placeholder ? (index.h("span", { class: "db-select-placeholder", id: this._placeholderId }, this.placeholder)) : null, index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, this.validMessage || constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '705a3194b49b644c53729a74277f2fb339fffdc7', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '201aea9cd882406033990555b71030d7b9899cde', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
249
249
|
}
|
|
250
250
|
static get watchers() { return {
|
|
251
251
|
"id": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBStack = class {
|
|
@@ -48,9 +48,9 @@ const DBStack = class {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
var _a, _b;
|
|
51
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: '4792ed6d6adf369b6b031e4545476b4461be0bde', class: index$1.cls("db-stack", this.className), ref: (el) => {
|
|
52
52
|
this._ref = el;
|
|
53
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": index$1.getBooleanAsString(this.wrap) }, index.h("slot", { key: '
|
|
53
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-gap": this.gap, "data-variant": this.variant, "data-direction": this.direction, "data-alignment": this.alignment, "data-justify-content": this.justifyContent, "data-wrap": index$1.getBooleanAsString(this.wrap) }, index.h("slot", { key: 'e4104abeed53330037edfc294fa9315e4d553783' })));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var constants = require('./constants-bMY2_d8A.js');
|
|
5
5
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
6
6
|
var formComponents = require('./form-components-_ncB_U2D.js');
|
|
@@ -188,9 +188,9 @@ const DBSwitch = class {
|
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
190
|
var _a, _b;
|
|
191
|
-
return (index.h("div", { key: '
|
|
191
|
+
return (index.h("div", { key: '15af22a47433a33d2c9329ae58e61e0fe990618b', class: index$1.cls("db-switch", this.className), "data-visual-aid": index$1.getBooleanAsString(this.visualAid), "data-size": this.size, "data-hide-label": index$1.getHideProp(this.showLabel), "data-variant": this.variant, "data-hide-asterisk": index$1.getHideProp(this.showRequiredAsterisk), "data-custom-validity": this.validation }, index.h("label", { key: '0b219e038aa70ce09b9369721b9441d7a302cfbc', htmlFor: this._id }, index.h("input", { key: '119c82316aabc99df99d5d1da5dc6b85803abd51', type: "checkbox", role: "switch", id: this._id, ref: (el) => {
|
|
192
192
|
this._ref = el;
|
|
193
|
-
}, checked: index$1.getBoolean(this.checked, "checked"), value: this.value, disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: index$1.getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : index.h("slot", null)), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '
|
|
193
|
+
}, checked: index$1.getBoolean(this.checked, "checked"), value: this.value, disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-invalid": this.validation === "invalid" ? "true" : undefined, "aria-describedby": this._descByIds, name: this.name, required: index$1.getBoolean(this.required, "required"), "data-aid-icon": (_a = this.iconLeading) !== null && _a !== void 0 ? _a : this.icon, "data-aid-icon-trailing": this.iconTrailing, onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => this.handleKeyDown(event) }), this.label ? this.label : index.h("slot", null)), index$1.stringPropVisible(this.message, this.showMessage) ? (index.h("db-infotext", { size: "small", semantic: "adaptive", id: this._messageId, icon: this.messageIcon }, this.message)) : null, this.hasValidState() ? (index.h("db-infotext", { size: "small", semantic: "successful", id: this._validMessageId }, (_b = this.validMessage) !== null && _b !== void 0 ? _b : constants.DEFAULT_VALID_MESSAGE)) : null, index.h("db-infotext", { key: '895a6b540bc1e23d9d928aa6321776075afef39a', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), index.h("span", { key: '6439487fcbda2df868b233dfca151f8f678b9de3', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
194
194
|
}
|
|
195
195
|
static get watchers() { return {
|
|
196
196
|
"id": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CSakRmZZ.js');
|
|
4
4
|
var index$1 = require('./index-2_9ESkQu.js');
|
|
5
5
|
|
|
6
6
|
const DBTabItem = class {
|
|
@@ -114,9 +114,9 @@ const DBTabItem = class {
|
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
116
|
var _a, _b, _c, _d, _e, _f;
|
|
117
|
-
return (index.h("li", { key: '
|
|
117
|
+
return (index.h("li", { key: 'db7c124385c66f1f62679fae9a8dfb91f76f76c5', class: index$1.cls("db-tab-item", this.className), role: "none" }, index.h("label", { key: 'fd4471af1096f1c577f38c0fcf34e4dd73944623', htmlFor: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": (_c = this.iconLeading) !== null && _c !== void 0 ? _c : this.icon, "data-icon-trailing": this.iconTrailing, "data-show-icon": index$1.getBooleanAsString((_d = this.showIconLeading) !== null && _d !== void 0 ? _d : this.showIcon), "data-show-icon-trailing": index$1.getBooleanAsString(this.showIconTrailing), "data-no-text": index$1.getBooleanAsString(this.noText) }, index.h("input", { key: '36283eb7682b3080fbe4f65712629c7f28bd7c47', type: "radio", role: "tab", disabled: index$1.getBoolean(this.disabled, "disabled"), "aria-selected": this._selected, checked: index$1.getBoolean(this.checked, "checked"), ref: (el) => {
|
|
118
118
|
this._ref = el;
|
|
119
|
-
}, name: this._name, id: (_e = this.id) !== null && _e !== void 0 ? _e : (_f = this.propOverrides) === null || _f === void 0 ? void 0 : _f.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, index.h("slot", { key: '
|
|
119
|
+
}, name: this._name, id: (_e = this.id) !== null && _e !== void 0 ? _e : (_f = this.propOverrides) === null || _f === void 0 ? void 0 : _f.id, onInput: (event) => this.handleChange(event) }), this.label ? this.label : null, index.h("slot", { key: '0984f4b39959be344e5fd15a38ae2d3fef4d15cc' }))));
|
|
120
120
|
}
|
|
121
121
|
static get watchers() { return {
|
|
122
122
|
"_ref": [{
|
|
@@ -179,9 +179,9 @@ const DBTabList = class {
|
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
181
|
var _a, _b;
|
|
182
|
-
return (index.h("div", { key: '
|
|
182
|
+
return (index.h("div", { key: '64ae135babefc16c3173fbc67ed1605a74c009a0', class: index$1.cls("db-tab-list", this.className), ref: (el) => {
|
|
183
183
|
this._ref = el;
|
|
184
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '
|
|
184
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, index.h("ul", { key: '7f587632a62e52d03cb0f4831e48c9ec2f0060cc', role: "tablist" }, index.h("slot", { key: 'e1b7531ea0c97b907697cd0a637b51534bee9eb7' }))));
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
|
|
@@ -230,9 +230,9 @@ const DBTabPanel = class {
|
|
|
230
230
|
}
|
|
231
231
|
render() {
|
|
232
232
|
var _a, _b;
|
|
233
|
-
return (index.h("section", { key: '
|
|
233
|
+
return (index.h("section", { key: '6dcccad8702b6c097e5d6ed208698caecf68c403', class: index$1.cls("db-tab-panel", this.className), role: "tabpanel", ref: (el) => {
|
|
234
234
|
this._ref = el;
|
|
235
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, index.h("slot", { key: '
|
|
235
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, this.content ? this.content : null, index.h("slot", { key: 'c2db0f4c48fb5a509a7ca7d1095133c171ea821a' })));
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
|