@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, c as createEvent } from './index-LpjjuLKB.js';
|
|
2
2
|
import { c as cls, e as getBoolean, g as getBooleanAsString, h as hasVoiceOver, d as delay, s as stringPropVisible, i as isArrayOfStrings, u as uuid, k as getInputValue, f as getNumber, j as getStep, b as isIOSSafari, l as getHideProp } from './index-xkoBSP8R.js';
|
|
3
3
|
import { l as DEFAULT_INVALID_MESSAGE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, j as DEFAULT_DATALIST_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-D6LQfJvq.js';
|
|
@@ -49,9 +49,9 @@ const DBCustomSelectDropdown = class {
|
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
51
|
var _a, _b;
|
|
52
|
-
return (h("article", { key: '
|
|
52
|
+
return (h("article", { key: 'dd5b59d388af601d7d6343c58ff5f4ea84029f4d', class: cls("db-custom-select-dropdown db-card", this.className), "data-spacing": "none", ref: (el) => {
|
|
53
53
|
this._ref = el;
|
|
54
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '
|
|
54
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width }, h("slot", { key: '9ae27e00da4d9e4d62b8f2ea6a6623c3f2bd94ff' })));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -100,9 +100,9 @@ const DBCustomSelectList = class {
|
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
102
|
var _a, _b;
|
|
103
|
-
return (h("div", { key: '
|
|
103
|
+
return (h("div", { key: 'a273a5117d97899bb88d3bc4f6299145f0526acc', class: cls("db-custom-select-list", this.className), role: this.multiple ? "group" : "radiogroup", "aria-label": this.label, ref: (el) => {
|
|
104
104
|
this._ref = el;
|
|
105
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '
|
|
105
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("ul", { key: '23689f0147b24a435bee675f7aa9d04b496a869c' }, h("slot", { key: '3a1a8b39438d4bdbf54746d8aad7b098463492dd' }))));
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
|
|
@@ -172,7 +172,7 @@ const DBCustomSelectListItem = class {
|
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
174
|
var _a, _b;
|
|
175
|
-
return (h("li", { key: '
|
|
175
|
+
return (h("li", { key: 'f73b11d8f2a54a6162881243ce1abb123324854a', class: cls("db-custom-select-list-item", this.className, {
|
|
176
176
|
"db-checkbox": this.type === "checkbox" && !this.isGroupTitle,
|
|
177
177
|
"db-radio": this.type !== "checkbox" && !this.isGroupTitle,
|
|
178
178
|
}), ref: (el) => {
|
|
@@ -401,7 +401,7 @@ const DBInput = class {
|
|
|
401
401
|
}
|
|
402
402
|
render() {
|
|
403
403
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
404
|
-
return (h("div", { key: '
|
|
404
|
+
return (h("div", { key: '8428432d6868dfcdd175afdba5ec578cc7a5907e', class: cls("db-input", this.className), "data-variant": this.variant, "data-hide-label": getHideProp(this.showLabel), "data-show-icon": getBooleanAsString((_a = this.showIconLeading) !== null && _a !== void 0 ? _a : this.showIcon), "data-icon": (_b = this.iconLeading) !== null && _b !== void 0 ? _b : this.icon, "data-icon-trailing": this.iconTrailing, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-show-icon-trailing": getBooleanAsString(this.showIconTrailing) }, h("label", { key: 'ab2b928b55fa23b44ccd1e105df6526cb28c5a59', htmlFor: this._id }, (_c = this.label) !== null && _c !== void 0 ? _c : DEFAULT_LABEL), h("input", { key: '5a96f42d40d84bd2c68c2cb372bb13a6aedb68ec', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
405
405
|
this._ref = el;
|
|
406
406
|
}, id: this._id, name: this.name, type: this.type || "text", multiple: getBoolean(this.multiple, "multiple"), accept: this.accept, placeholder: (_d = this.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), step: getStep(this.step), value: (_e = this.value) !== null && _e !== void 0 ? _e : this._value, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), max: getInputValue(this.max, this.type), min: getInputValue(this.min, this.type), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
407
407
|
getBoolean(this.readonly, "readonly"), form: this.form, pattern: this.pattern, size: this.size, autoComplete: this.autocomplete, autoFocus: getBoolean(this.autofocus, "autofocus"), enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), list: this.dataList && this._dataListId, "aria-describedby": (_f = this.ariaDescribedBy) !== null && _f !== void 0 ? _f : this._descByIds, role: [
|
|
@@ -413,7 +413,7 @@ const DBInput = class {
|
|
|
413
413
|
"color",
|
|
414
414
|
].includes((_g = this.type) !== null && _g !== void 0 ? _g : "") && isIOSSafari()
|
|
415
415
|
? "textbox"
|
|
416
|
-
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: '
|
|
416
|
+
: undefined }), this.dataList ? (h("datalist", { id: this._dataListId }, (_h = this.getDataList()) === null || _h === void 0 ? void 0 : _h.map((option) => (h("option", { key: this._dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null, h("slot", { key: 'a9864f0eff35318a71592ffefe01e6da913a30fb' }), stringPropVisible(this.message, this.showMessage) ? (h("db-infotext", { size: this.messageSize || "small", icon: this.messageIcon, id: this._messageId }, this.message)) : null, this.hasValidState() ? (h("db-infotext", { semantic: "successful", id: this._validMessageId, size: this.validMessageSize || "small" }, this.validMessage || DEFAULT_VALID_MESSAGE)) : null, h("db-infotext", { key: '7c4b23fb44d7f642c9de2af0e12200a47df7719c', semantic: "critical", id: this._invalidMessageId, size: this.invalidMessageSize || "small" }, this._invalidMessage), h("span", { key: '180dca64e01ada5d0d3099cc14bde0d7307fe28f', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
417
417
|
}
|
|
418
418
|
static get watchers() { return {
|
|
419
419
|
"id": [{
|
|
@@ -500,9 +500,9 @@ const DBTag = class {
|
|
|
500
500
|
}
|
|
501
501
|
render() {
|
|
502
502
|
var _a, _b, _c;
|
|
503
|
-
return (h("div", { key: '
|
|
503
|
+
return (h("div", { key: '583c02d8f144b9e612028139c9d3d4304d70b04b', class: cls("db-tag", this.className), ref: (el) => {
|
|
504
504
|
this._ref = el;
|
|
505
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: '
|
|
505
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-semantic": this.semantic, "data-emphasis": this.emphasis, "data-icon": this.icon, "data-show-check-state": getBooleanAsString((_c = this.showCheckState) !== null && _c !== void 0 ? _c : true), "data-show-icon": getBooleanAsString(this.showIcon), "data-no-text": getBooleanAsString(this.noText), "data-overflow": getBooleanAsString(this.overflow) }, h("slot", { key: 'bd1257262f6caf86b6d2bfa20e7a7a92b6ec45c9', name: "content" }), h("slot", { key: 'e0badd3ef18dcff2680453739958d3f5211b64b8' }), 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));
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBCustomSelectFormField = class {
|
|
@@ -46,9 +46,9 @@ const DBCustomSelectFormField = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("summary", { key: '
|
|
49
|
+
return (h("summary", { key: '76aa8c30e636d11faf08ea79fd8e55d162a6c224', class: cls("db-custom-select-form-field", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '829025ec61e9b2b4891e9289f0292261a43aff0a' })));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -1,4 +1,4 @@
|
|
|
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-LpjjuLKB.js';
|
|
2
2
|
import { l as DEFAULT_INVALID_MESSAGE, a as DEFAULT_LABEL, m as DEFAULT_REMOVE, f as DEFAULT_MESSAGE_ID_SUFFIX, g as DEFAULT_VALID_MESSAGE_ID_SUFFIX, h as DEFAULT_INVALID_MESSAGE_ID_SUFFIX, e as DEFAULT_SELECT_ID_SUFFIX, d as DEFAULT_LABEL_ID_SUFFIX, i as DEFAULT_PLACEHOLDER_ID_SUFFIX, o as DEFAULT_SELECTED, 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-xkoBSP8R.js';
|
|
4
4
|
import { D as DocumentClickListener } from './document-click-listener-D7W_VE5O.js';
|
|
@@ -792,19 +792,19 @@ const DBCustomSelect = class {
|
|
|
792
792
|
}
|
|
793
793
|
render() {
|
|
794
794
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
795
|
-
return (h("div", { key: '
|
|
795
|
+
return (h("div", { key: 'adc424fa6a3f8653e88e5f5db601a8661da73994', class: cls("db-custom-select", this.className), id: this._id, ref: (el) => {
|
|
796
796
|
this._ref = el;
|
|
797
797
|
}, "aria-invalid": this._validity === "invalid", "data-custom-validity": this._validity, "data-width": this.formFieldWidth, "data-variant": this.variant === "floating" &&
|
|
798
798
|
this.selectedType === "tag" &&
|
|
799
799
|
this.multiple
|
|
800
800
|
? "above"
|
|
801
|
-
: 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: '
|
|
801
|
+
: 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: 'fecde7273841b8365690a6b1e0de407107f0765f', id: this._labelId }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL, h("select", { key: 'c6498a15a6c57bfdd46cc9624d42de5ebe78c0cc', role: "none", hidden: true, id: this._selectId, tabIndex: -1, ref: (el) => {
|
|
802
802
|
this.selectRef = el;
|
|
803
803
|
}, form: this.form, name: this.name, "data-custom-validity": this._validity, 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)
|
|
804
804
|
? (_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))))
|
|
805
|
-
: null)), h("details", { key: '
|
|
805
|
+
: null)), h("details", { key: 'ea5eecf0c0a3285921c191c81710947c3ab14cab', ref: (el) => {
|
|
806
806
|
this.detailsRef = el;
|
|
807
|
-
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '
|
|
807
|
+
}, open: this.open, onToggle: (event) => this.handleDropdownToggle(event), onKeyDown: (event) => this.handleKeyboardPress(event) }, h("slot", { key: '52d3c600ec77ad908deb69b1b57b089f05579aa5' }), this.options ? (h(Fragment, null, h("summary", { class: "db-custom-select-form-field", id: this._summaryId, "aria-disabled": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : undefined, "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) => (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) => {
|
|
808
808
|
this.searchInputRef = el;
|
|
809
809
|
}, 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
|
|
810
810
|
? this._infoTextId
|
|
@@ -814,7 +814,7 @@ const DBCustomSelect = class {
|
|
|
814
814
|
this.selectAllRef = el;
|
|
815
815
|
}, 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
|
|
816
816
|
? this.getOptionLabel(option)
|
|
817
|
-
: 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, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '
|
|
817
|
+
: 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, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClearAll(event) }, this.clearSelectionText, h("db-tooltip", { placement: "top" }, this.clearSelectionText))) : null, h("span", { key: '312797b7c41d57e43821cbaecaf6f82be6dc6239', 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: 'c4f623a9e3c3ed61054960db586b0589873235fe', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '69f9c8fe36de328caed05e820faec5a76bdae6d2', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
818
818
|
}
|
|
819
819
|
static get watchers() { return {
|
|
820
820
|
"id": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBDivider = class {
|
|
@@ -46,7 +46,7 @@ const DBDivider = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '40f582795805c0f3bd32ffba379049ba0a1140f6', class: cls("db-divider", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
51
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-margin": this.margin, "data-variant": this.variant, "data-emphasis": this.emphasis, "data-width": this.width }));
|
|
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-LpjjuLKB.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-xkoBSP8R.js';
|
|
4
4
|
|
|
@@ -133,11 +133,11 @@ const DBDrawer = class {
|
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
135
|
var _a, _b, _c;
|
|
136
|
-
return (h("dialog", { key: '
|
|
136
|
+
return (h("dialog", { key: 'c2796bb6f012c8f9824c6202e2e5e3defe3805a5', class: "db-drawer", id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, ref: (el) => {
|
|
137
137
|
this._ref = el;
|
|
138
|
-
}, 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: '
|
|
138
|
+
}, 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: '2e5ef8d5226f3f28a5aa5e8f988d05b2499e7821', class: cls("db-drawer-container", this.className), ref: (el) => {
|
|
139
139
|
this.dialogContainerRef = el;
|
|
140
|
-
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: '
|
|
140
|
+
}, "data-spacing": this.spacing, "data-width": this.width, "data-direction": this.direction, "data-rounded": getBooleanAsString(this.rounded) }, h("header", { key: 'b33353ca17228c7bcebe90dbc56f551024b3fe0a', class: "db-drawer-header" }, h("div", { key: '37bcf6a7c21eadc37152f2c3a69566c5d34ab864', class: "db-drawer-header-text" }, h("slot", { key: 'ac39f65966a07323e520f92475e731d048a004ee', name: "drawerHeader" })), h("db-button", { key: 'dd5f587ad603796a3743652ebfdd040cb782cc9c', class: "button-close-drawer", icon: "cross", variant: "ghost", id: this.closeButtonId, noText: true, onClick: (event) => this.handleClose(event, true) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)), h("div", { key: '6bdf59f204628f244c9d1114dfed96c6ff05dbdc', class: "db-drawer-content" }, h("slot", { key: 'bded85dab209599b6159a516d8a2d66a39051452' })))));
|
|
141
141
|
}
|
|
142
142
|
static get watchers() { return {
|
|
143
143
|
"open": [{
|
|
@@ -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-LpjjuLKB.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-xkoBSP8R.js';
|
|
4
4
|
import { i as isEventTargetNavigationItem } from './navigation-Jh6m0eMk.js';
|
|
@@ -82,9 +82,9 @@ const DBHeader = class {
|
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
84
|
var _a, _b, _c;
|
|
85
|
-
return (h("header", { key: '
|
|
85
|
+
return (h("header", { key: '8e54210db9b89732d6405bbe8bcdbfe1151b9731', class: cls("db-header", this.className), ref: (el) => {
|
|
86
86
|
this._ref = el;
|
|
87
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: '
|
|
87
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-width": this.width, "data-on-forcing-mobile": this.forceMobile && !this.forcedToMobile }, h("db-drawer", { key: 'ce22e304d9c36200d421aee13ff70316fdba442f', class: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: this.closeButtonId, closeButtonText: this.closeButtonText, open: getBoolean(this.drawerOpen), onClose: () => this.handleToggle() }, h("div", { key: '908307e3c05e5ca675112a6e3c87b1e4d7fed751', class: "db-header-drawer-navigation" }, h("div", { key: 'da6c85a149b09733bab2e51fed341b16282577a1', class: "db-header-navigation", onClick: (event) => this.handleNavigationItemClick(event) }, h("slot", { key: 'f0092c3f841c796acc940c70772731964b2f44c0' })), h("div", { key: '7afc8e437343327f5707f45be0a2fd5e03e58a29', class: "db-header-meta-navigation" }, h("slot", { key: '08a7c6500bd59a860242ebe17b71fdc3cc303b33', name: "metaNavigation" }))), h("div", { key: '2e49cc794f28e3d25c2bcdd5d7e857ade2127e11', class: "db-header-secondary-action" }, h("slot", { key: '7877c1166d58fc228236d1279720cfc16c496b72', name: "secondaryAction" }))), h("div", { key: '9b2c8ad3b231d6b98b72dd10c7d6961770c203e6', class: "db-header-meta-navigation" }, h("slot", { key: 'd8a56e3c478fc665aebd6e450cf84a3bb319f73a', name: "metaNavigation" })), h("div", { key: '3ea89f132a57326a968a9d9def0077aa6e9124c7', class: "db-header-navigation-bar" }, h("div", { key: '5f24251272645917aec75d4a4eed962bb93bf72f', class: "db-header-brand-container" }, h("slot", { key: '0f484f8b46d50841d081ffcd859a5eacedd021b3', name: "brand" })), h("div", { key: '05e28c8261c3957f27e72ef79e184261035f0954', class: "db-header-navigation-container" }, h("div", { key: 'bf013bb85f2cd6bee2544237c6888325ba14ab1a', class: "db-header-navigation" }, h("slot", { key: '9fad72ee7f7be86eb8c3ff58b8d1351e7def044e' })), h("div", { key: 'b859a359c3a9f579b3dd57b74cc0c28d1d2f8f99', class: "db-header-primary-action" }, h("slot", { key: '25382acb1f778a4f2064c27219c41a3da4238007', name: "primaryAction" }))), h("div", { key: 'beccb5ee836518231ca9d99daa2d6a1a881ce3b9', class: "db-header-action-container" }, h("div", { key: 'fa85b7a06a88ef94746974734083ad92d7e0a7d0', class: "db-header-burger-menu-container" }, h("db-button", { key: 'b7c80b7e1e2ebe798f7815236444280a672338d4', icon: "menu", variant: "ghost", noText: true, onClick: () => this.handleToggle() }, (_c = this.burgerMenuLabel) !== null && _c !== void 0 ? _c : DEFAULT_BURGER_MENU)), h("div", { key: '1bb4dd0e6bf32dd922e4eb28ffb2b632637a1be7', class: "db-header-secondary-action" }, h("slot", { key: '42fd8c627f309e901ca8d07442a5a1c5f8776288', name: "secondaryAction" }))))));
|
|
88
88
|
}
|
|
89
89
|
static get watchers() { return {
|
|
90
90
|
"initialized": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBIcon = class {
|
|
@@ -46,7 +46,7 @@ const DBIcon = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("span", { key: '
|
|
49
|
+
return (h("span", { key: 'bbb6c25057c2d14ce8aa9c4b9e98451e7592ac9b', class: cls("db-icon", this.className), "aria-hidden": "true", ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
51
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-icon-weight": this.weight, "data-icon-variant": this.variant }, this.text ? this.text : h("slot", null)));
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
2
|
import { g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBInfotext = class {
|
|
@@ -46,7 +46,7 @@ const DBInfotext = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b, _c;
|
|
49
|
-
return (h("span", { key: '
|
|
49
|
+
return (h("span", { key: '2e7fc7ada2ff751ab1b3e31bd19dc4f3dc0db63d', class: cls("db-infotext", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
51
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, "data-icon": this.icon, "data-semantic": this.semantic, "data-size": this.size, "data-wrap": getBooleanAsString(this.wrap), "data-show-icon-leading": getBooleanAsString((_c = this.showIcon) !== null && _c !== void 0 ? _c : true) }, this.text ? this.text : h("slot", null)));
|
|
52
52
|
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
|
+
import { g as getBooleanAsString, c as cls, u as uuid, f as getNumber } from './index-xkoBSP8R.js';
|
|
3
|
+
|
|
4
|
+
const DBLink = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
10
|
+
* @param element the ref for the component
|
|
11
|
+
* @param customElementSelector the custom element like `my-component`
|
|
12
|
+
*/
|
|
13
|
+
enableAttributePassing(element, customElementSelector) {
|
|
14
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
15
|
+
if (element && parent) {
|
|
16
|
+
const attributes = parent.attributes;
|
|
17
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
18
|
+
const attr = attributes.item(i);
|
|
19
|
+
if (attr && attr.name !== 'data-density' &&
|
|
20
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
21
|
+
element.setAttribute(attr.name, attr.value);
|
|
22
|
+
parent.removeAttribute(attr.name);
|
|
23
|
+
}
|
|
24
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
25
|
+
element.setAttribute(attr.name, attr.value);
|
|
26
|
+
parent.removeAttribute(attr.name);
|
|
27
|
+
}
|
|
28
|
+
else if (attr && attr.name === "class") {
|
|
29
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
30
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
31
|
+
const currentClass = element.getAttribute("class");
|
|
32
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
33
|
+
if (isWebComponent) {
|
|
34
|
+
// Stencil is using this class for lazy loading component
|
|
35
|
+
parent.setAttribute("class", "hydrated");
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
parent.removeAttribute(attr.name);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
componentDidLoad() {
|
|
45
|
+
this.enableAttributePassing(this._ref, "db-link");
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
var _a, _b, _c, _d;
|
|
49
|
+
return (h("a", { key: '9cecd89fae35481cbc053fd253fc75140f8e57a1', class: cls("db-link", this.className), ref: (el) => {
|
|
50
|
+
this._ref = el;
|
|
51
|
+
}, 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": getBooleanAsString(this.disabled), tabIndex: this.disabled ? -1 : 0, "data-size": this.size, "data-show-icon-trailing": getBooleanAsString((_d = this.showIcon) !== null && _d !== void 0 ? _d : true), "data-variant": this.variant, "data-content": this.content || "internal", "data-wrap": getBooleanAsString(this.wrap) }, this.text ? this.text : h("slot", null)));
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const DBTableRow = class {
|
|
56
|
+
constructor(hostRef) {
|
|
57
|
+
registerInstance(this, hostRef);
|
|
58
|
+
}
|
|
59
|
+
getHeaderCell(cell) {
|
|
60
|
+
if (cell.headerCell) {
|
|
61
|
+
return cell;
|
|
62
|
+
}
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
67
|
+
* @param element the ref for the component
|
|
68
|
+
* @param customElementSelector the custom element like `my-component`
|
|
69
|
+
*/
|
|
70
|
+
enableAttributePassing(element, customElementSelector) {
|
|
71
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
72
|
+
if (element && parent) {
|
|
73
|
+
const attributes = parent.attributes;
|
|
74
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
75
|
+
const attr = attributes.item(i);
|
|
76
|
+
if (attr && attr.name !== 'data-density' &&
|
|
77
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
78
|
+
element.setAttribute(attr.name, attr.value);
|
|
79
|
+
parent.removeAttribute(attr.name);
|
|
80
|
+
}
|
|
81
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
82
|
+
element.setAttribute(attr.name, attr.value);
|
|
83
|
+
parent.removeAttribute(attr.name);
|
|
84
|
+
}
|
|
85
|
+
else if (attr && attr.name === "class") {
|
|
86
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
87
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
88
|
+
const currentClass = element.getAttribute("class");
|
|
89
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
90
|
+
if (isWebComponent) {
|
|
91
|
+
// Stencil is using this class for lazy loading component
|
|
92
|
+
parent.setAttribute("class", "hydrated");
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
parent.removeAttribute(attr.name);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
componentDidLoad() {
|
|
102
|
+
this.enableAttributePassing(this._ref, "db-table-row");
|
|
103
|
+
}
|
|
104
|
+
render() {
|
|
105
|
+
var _a;
|
|
106
|
+
return (h("tr", { key: '0826ccfb6e11937280649f6b59263676e8f5f668', class: cls("db-table-row", this.className), ref: (el) => {
|
|
107
|
+
this._ref = el;
|
|
108
|
+
}, id: this.id, "data-interactive": getBooleanAsString(this.interactive), "data-sub-header-emphasis": this.subHeaderEmphasis }, this.cells ? ((_a = this.cells) === null || _a === void 0 ? void 0 : _a.map((cell, index) => {
|
|
109
|
+
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;
|
|
110
|
+
return cell.headerCell ? (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 : uuid()}-table-row-header-cell-${index}`, 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 ? (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))) : (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 : uuid()}-table-row-data-cell-${index}`, 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 ? (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)));
|
|
111
|
+
})) : (h("slot", null))));
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const DBTableHeaderCell = class {
|
|
116
|
+
constructor(hostRef) {
|
|
117
|
+
registerInstance(this, hostRef);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
121
|
+
* @param element the ref for the component
|
|
122
|
+
* @param customElementSelector the custom element like `my-component`
|
|
123
|
+
*/
|
|
124
|
+
enableAttributePassing(element, customElementSelector) {
|
|
125
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
126
|
+
if (element && parent) {
|
|
127
|
+
const attributes = parent.attributes;
|
|
128
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
129
|
+
const attr = attributes.item(i);
|
|
130
|
+
if (attr && attr.name !== 'data-density' &&
|
|
131
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
132
|
+
element.setAttribute(attr.name, attr.value);
|
|
133
|
+
parent.removeAttribute(attr.name);
|
|
134
|
+
}
|
|
135
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
136
|
+
element.setAttribute(attr.name, attr.value);
|
|
137
|
+
parent.removeAttribute(attr.name);
|
|
138
|
+
}
|
|
139
|
+
else if (attr && attr.name === "class") {
|
|
140
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
141
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
142
|
+
const currentClass = element.getAttribute("class");
|
|
143
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
144
|
+
if (isWebComponent) {
|
|
145
|
+
// Stencil is using this class for lazy loading component
|
|
146
|
+
parent.setAttribute("class", "hydrated");
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
parent.removeAttribute(attr.name);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
componentDidLoad() {
|
|
156
|
+
this.enableAttributePassing(this._ref, "db-table-header-cell");
|
|
157
|
+
}
|
|
158
|
+
render() {
|
|
159
|
+
return (h("th", { key: '8e4041b823d5a1e31e92992eb9233bc75e6f0db9', class: cls("db-table-header-cell", this.className), ref: (el) => {
|
|
160
|
+
this._ref = el;
|
|
161
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, "data-no-text": getBooleanAsString(this.noText), scope: this.scope, colSpan: getNumber(this.colSpan, this.colspan), rowSpan: getNumber(this.rowSpan, this.rowspan), headers: this.headers, abbr: this.abbr }, h("slot", { key: 'a78d87d22ead57dbb4a97175da963028fa603a39' })));
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const DBTableDataCell = class {
|
|
166
|
+
constructor(hostRef) {
|
|
167
|
+
registerInstance(this, hostRef);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.
|
|
171
|
+
* @param element the ref for the component
|
|
172
|
+
* @param customElementSelector the custom element like `my-component`
|
|
173
|
+
*/
|
|
174
|
+
enableAttributePassing(element, customElementSelector) {
|
|
175
|
+
const parent = element === null || element === void 0 ? void 0 : element.closest(customElementSelector);
|
|
176
|
+
if (element && parent) {
|
|
177
|
+
const attributes = parent.attributes;
|
|
178
|
+
for (let i = 0; i < attributes.length; i++) {
|
|
179
|
+
const attr = attributes.item(i);
|
|
180
|
+
if (attr && attr.name !== 'data-density' &&
|
|
181
|
+
(attr.name.startsWith("data-") || attr.name.startsWith("aria-"))) {
|
|
182
|
+
element.setAttribute(attr.name, attr.value);
|
|
183
|
+
parent.removeAttribute(attr.name);
|
|
184
|
+
}
|
|
185
|
+
else if (attr && attr.name !== 'data-density' && attr.name !== "class" && attr.name === "style") {
|
|
186
|
+
element.setAttribute(attr.name, attr.value);
|
|
187
|
+
parent.removeAttribute(attr.name);
|
|
188
|
+
}
|
|
189
|
+
else if (attr && attr.name === "class") {
|
|
190
|
+
const isWebComponent = attr.value.includes("hydrated");
|
|
191
|
+
const value = attr.value.replace("hydrated", "").trim();
|
|
192
|
+
const currentClass = element.getAttribute("class");
|
|
193
|
+
element.setAttribute(attr.name, `${currentClass ? `${currentClass} ` : ""}${value}`);
|
|
194
|
+
if (isWebComponent) {
|
|
195
|
+
// Stencil is using this class for lazy loading component
|
|
196
|
+
parent.setAttribute("class", "hydrated");
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
parent.removeAttribute(attr.name);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
componentDidLoad() {
|
|
206
|
+
this.enableAttributePassing(this._ref, "db-table-data-cell");
|
|
207
|
+
}
|
|
208
|
+
render() {
|
|
209
|
+
return (h("td", { key: '8274250200fc80a6dd6df6d337b397930c665e18', class: cls("db-table-data-cell", this.className), ref: (el) => {
|
|
210
|
+
this._ref = el;
|
|
211
|
+
}, id: this.id, "data-horizontal-alignment": this.horizontalAlignment, "data-vertical-alignment": this.verticalAlignment, colSpan: getNumber(this.colSpan, this.colspan), rowSpan: getNumber(this.rowSpan, this.rowspan), headers: this.headers }, h("slot", { key: '15e1f9e5492c105d953fb8f4ec272f3c8853b318' })));
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export { DBLink as db_link, DBTableDataCell as db_table_data_cell, DBTableHeaderCell as db_table_header_cell, DBTableRow as db_table_row };
|
|
@@ -1,4 +1,4 @@
|
|
|
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-LpjjuLKB.js';
|
|
2
2
|
import { n as DEFAULT_BACK } from './constants-BdL-nI5y.js';
|
|
3
3
|
import { d as delay, e as getBoolean, u as uuid, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
4
4
|
import { N as NavigationItemSafeTriangle } from './navigation-Jh6m0eMk.js';
|
|
@@ -115,7 +115,7 @@ const DBNavigationItem = class {
|
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
117
|
var _a, _b, _c;
|
|
118
|
-
return (h("li", { key: '
|
|
118
|
+
return (h("li", { key: 'b567c0fa3acc631c90bbbcd7ef570f1868e3afb4', class: cls("db-navigation-item", this.className), ref: (el) => {
|
|
119
119
|
this._ref = el;
|
|
120
120
|
}, 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": 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", id: this.subNavigationToggleId, "aria-haspopup": this.hasAreaPopup ? "true" : undefined, "aria-expanded": this.isSubNavigationExpanded, "aria-controls": this.subNavigationId, disabled: getBoolean(this.disabled, "disabled"), onClick: (event) => this.handleClick(event) }, this.text ? this.text : h("slot", null)), 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 ? (h("div", { class: "db-mobile-navigation-back" }, h("db-button", { icon: "arrow_left", variant: "ghost", id: this.backButtonId, onClick: (event) => this.handleBackClick(event) }, (_c = this.backButtonText) !== null && _c !== void 0 ? _c : DEFAULT_BACK))) : null, h("slot", { name: "subNavigation" })))) : null));
|
|
121
121
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
2
|
import { c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBNavigation = class {
|
|
@@ -46,9 +46,9 @@ const DBNavigation = class {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a, _b;
|
|
49
|
-
return (h("nav", { key: '
|
|
49
|
+
return (h("nav", { key: 'b010a46304b40eb38d99b2e26a4f46d32fc86d97', class: cls("db-navigation", this.className), ref: (el) => {
|
|
50
50
|
this._ref = el;
|
|
51
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '
|
|
51
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("menu", { key: '8e731e3da4f8e414c8e0756c70bba576e93a5841' }, h("slot", { key: '302cc4871db0bf06c9f35766be74b52a30ed1f82' }))));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -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-LpjjuLKB.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-xkoBSP8R.js';
|
|
4
4
|
|
|
@@ -56,13 +56,13 @@ const DBNotification = class {
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b, _c;
|
|
59
|
-
return (h("div", { key: '
|
|
59
|
+
return (h("div", { key: '3c1803adcfe5c34175c112c6c9d55e4c8fef3af0', class: cls("db-notification", this.className), ref: (el) => {
|
|
60
60
|
this._ref = el;
|
|
61
61
|
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id, role: getNotificationRole({
|
|
62
62
|
semantic: this.semantic,
|
|
63
63
|
role: this.role,
|
|
64
64
|
ariaLive: this.ariaLive,
|
|
65
|
-
}), "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: '
|
|
65
|
+
}), "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: 'fd2deb6b191feb65cf2c2b21a88737007bda7f1f', name: "image" }), stringPropVisible(this.headline, this.showHeadline) ? (h("header", null, this.headline)) : null, h("p", { key: 'a6400239df82a1fe57d4df466ac57078d0c35ac3' }, this.text ? this.text : h("slot", null)), stringPropVisible(this.timestamp, this.showTimestamp) ? (h("span", null, this.timestamp)) : null, h("slot", { key: '35b6377f9bdbf475dd80058502ee1c04277a967f', 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) }, (_c = this.closeButtonText) !== null && _c !== void 0 ? _c : DEFAULT_CLOSE_BUTTON)) : null));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
2
|
import { c as cls, g as getBooleanAsString } from './index-xkoBSP8R.js';
|
|
3
3
|
|
|
4
4
|
const DBPage = class {
|
|
@@ -63,9 +63,9 @@ const DBPage = class {
|
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
65
|
var _a, _b;
|
|
66
|
-
return (h("div", { key: '
|
|
66
|
+
return (h("div", { key: '3ab3a293a869c9d557e8998e8d523a999b50f582', class: cls("db-page", this.className), ref: (el) => {
|
|
67
67
|
this._ref = el;
|
|
68
|
-
}, 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": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: '
|
|
68
|
+
}, 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": getBooleanAsString(this.fadeIn), "data-fonts-loaded": getBooleanAsString(this.fontsLoaded) }, h("slot", { key: 'd4ad87f9642d0be01271e3cc31389083893b5b12', name: "header" }), h("main", { key: '74d35e61900006b8996e91236a8f8aa56b50a571', class: cls("db-main", this.mainClass) }, h("slot", { key: 'a41b05ab87cfee50527ce033cdde32664219a830' })), h("slot", { key: '6612f687f66f6382366ce97eb50c17f905ebecdf', name: "footer" })));
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-LpjjuLKB.js';
|
|
2
2
|
import { d as delay, g as getBooleanAsString, c as cls } from './index-xkoBSP8R.js';
|
|
3
3
|
import { D as DocumentScrollListener } from './document-scroll-listener-DOBe3Oa9.js';
|
|
4
4
|
import { b as handleFixedPopover } from './floating-components-DOPXnIzL.js';
|
|
@@ -168,9 +168,9 @@ const DBPopover = class {
|
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
170
|
var _a, _b, _c;
|
|
171
|
-
return (h("div", { key: '
|
|
171
|
+
return (h("div", { key: 'a1f493f8b3a02907a91c2ca142a94a427acd3922', class: cls("db-popover", this.className), ref: (el) => {
|
|
172
172
|
this._ref = el;
|
|
173
|
-
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: '
|
|
173
|
+
}, id: (_a = this.id) !== null && _a !== void 0 ? _a : (_b = this.propOverrides) === null || _b === void 0 ? void 0 : _b.id }, h("slot", { key: 'cf1d7de8b1d75d6142b9db5a38dc80a3ec72a623', name: "trigger" }), h("article", { key: '1583bf74dcff72ce68c547800035aaca9ba4178d', class: "db-popover-content", "data-spacing": this.spacing, "data-gap": getBooleanAsString(this.gap), "data-animation": getBooleanAsString((_c = this.animation) !== null && _c !== void 0 ? _c : true), "data-open": getBooleanAsString(this.open), "data-delay": this.delay, "data-width": this.width, "data-placement": this.placement }, h("slot", { key: '432ffdd18b6121de6704ce901231c8225ec68106' }))));
|
|
174
174
|
}
|
|
175
175
|
static get watchers() { return {
|
|
176
176
|
"_ref": [{
|