@db-ux/wc-core-components 4.5.4 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +32 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/db-accordion.cjs.entry.js +1 -1
- package/dist/cjs/db-badge.cjs.entry.js +1 -1
- package/dist/cjs/db-brand.cjs.entry.js +1 -1
- package/dist/cjs/db-button.cjs.entry.js +1 -1
- package/dist/cjs/db-card.cjs.entry.js +1 -1
- package/dist/cjs/db-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-button.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +8 -10
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +1 -1
- package/dist/cjs/db-drawer.cjs.entry.js +1 -1
- package/dist/cjs/db-header.cjs.entry.js +1 -1
- package/dist/cjs/db-icon.cjs.entry.js +1 -1
- package/dist/cjs/db-infotext.cjs.entry.js +1 -1
- package/dist/cjs/db-link.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/db-navigation.cjs.entry.js +1 -1
- package/dist/cjs/db-notification.cjs.entry.js +1 -1
- package/dist/cjs/db-page.cjs.entry.js +1 -1
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +1 -1
- package/dist/cjs/db-section.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +5 -5
- package/dist/cjs/db-stack.cjs.entry.js +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +5 -7
- package/dist/cjs/db-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/db-ux.cjs.js +2 -2
- package/dist/cjs/{index-D_vrmAD6.js → index-EqJP9Qyt.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/input/input.js +7 -9
- package/dist/collection/components/select/select.js +4 -4
- package/dist/collection/components/textarea/textarea.js +4 -6
- package/dist/collection/utils/form-components.js +25 -3
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/{p-4cda36f1.entry.js → p-05e9aa2e.entry.js} +1 -1
- package/dist/db-ux/{p-587263ad.entry.js → p-19ae6336.entry.js} +1 -1
- package/dist/db-ux/{p-d186aef4.entry.js → p-2ed98454.entry.js} +1 -1
- package/dist/db-ux/{p-4cf64cbb.entry.js → p-33443732.entry.js} +1 -1
- package/dist/db-ux/{p-a34d2691.entry.js → p-3ca07f53.entry.js} +1 -1
- package/dist/db-ux/{p-11251b99.entry.js → p-4a0870fa.entry.js} +1 -1
- package/dist/db-ux/{p-dceb35a8.entry.js → p-516c3f64.entry.js} +1 -1
- package/dist/db-ux/{p-f0bc176a.entry.js → p-56da8875.entry.js} +1 -1
- package/dist/db-ux/{p-56af9177.entry.js → p-58c6c29d.entry.js} +1 -1
- package/dist/db-ux/{p-213bfff6.entry.js → p-669fe992.entry.js} +1 -1
- package/dist/db-ux/{p-6b073570.entry.js → p-72d1ea3b.entry.js} +1 -1
- package/dist/db-ux/{p-ff3866f3.entry.js → p-7f6fae6f.entry.js} +1 -1
- package/dist/db-ux/{p-2bce91e1.entry.js → p-83e69c0e.entry.js} +1 -1
- package/dist/db-ux/{p-9a19e197.entry.js → p-85897212.entry.js} +1 -1
- package/dist/db-ux/{p-836f0fef.entry.js → p-8a521b05.entry.js} +1 -1
- package/dist/db-ux/{p-043c407c.entry.js → p-974fbc69.entry.js} +1 -1
- package/dist/db-ux/{p-3e5be44c.entry.js → p-a0f6fc10.entry.js} +1 -1
- package/dist/db-ux/{p-29442fd9.entry.js → p-a3aef74b.entry.js} +1 -1
- package/dist/db-ux/{p-745ccfb8.entry.js → p-a726cd18.entry.js} +1 -1
- package/dist/db-ux/{p-32c4a1b5.entry.js → p-aad2d524.entry.js} +1 -1
- package/dist/db-ux/{p-9fb146d1.entry.js → p-af15c7c1.entry.js} +1 -1
- package/dist/db-ux/p-b5902b40.entry.js +1 -0
- package/dist/db-ux/{p-074e4a43.entry.js → p-b99e76fd.entry.js} +1 -1
- package/dist/db-ux/{p-5028b12e.entry.js → p-bd1b0142.entry.js} +1 -1
- package/dist/db-ux/{p-e199b6f9.entry.js → p-c7d1bee4.entry.js} +1 -1
- package/dist/db-ux/{p-0541c3c2.entry.js → p-cb093137.entry.js} +1 -1
- package/dist/db-ux/{p-c6f43506.entry.js → p-cdef6789.entry.js} +1 -1
- package/dist/db-ux/{p-1c89f0fc.entry.js → p-df2b1979.entry.js} +1 -1
- package/dist/db-ux/{p-fb5f7825.entry.js → p-f49ed233.entry.js} +1 -1
- package/dist/db-ux/{p-ef034bba.entry.js → p-fa61a750.entry.js} +1 -1
- package/dist/db-ux/{p-e3664354.entry.js → p-fdbf8d91.entry.js} +1 -1
- package/dist/esm/db-accordion-item.entry.js +1 -1
- package/dist/esm/db-accordion.entry.js +1 -1
- package/dist/esm/db-badge.entry.js +1 -1
- package/dist/esm/db-brand.entry.js +1 -1
- package/dist/esm/db-button.entry.js +1 -1
- package/dist/esm/db-card.entry.js +1 -1
- package/dist/esm/db-checkbox.entry.js +1 -1
- package/dist/esm/db-custom-button.entry.js +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +8 -10
- package/dist/esm/db-custom-select-form-field.entry.js +1 -1
- package/dist/esm/db-custom-select.entry.js +1 -1
- package/dist/esm/db-divider.entry.js +1 -1
- package/dist/esm/db-drawer.entry.js +1 -1
- package/dist/esm/db-header.entry.js +1 -1
- package/dist/esm/db-icon.entry.js +1 -1
- package/dist/esm/db-infotext.entry.js +1 -1
- package/dist/esm/db-link.entry.js +1 -1
- package/dist/esm/db-navigation-item.entry.js +1 -1
- package/dist/esm/db-navigation.entry.js +1 -1
- package/dist/esm/db-notification.entry.js +1 -1
- package/dist/esm/db-page.entry.js +1 -1
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-radio.entry.js +1 -1
- package/dist/esm/db-section.entry.js +1 -1
- package/dist/esm/db-select.entry.js +5 -5
- package/dist/esm/db-stack.entry.js +1 -1
- package/dist/esm/db-switch.entry.js +1 -1
- package/dist/esm/db-tab-item_3.entry.js +1 -1
- package/dist/esm/db-tabs.entry.js +1 -1
- package/dist/esm/db-textarea.entry.js +5 -7
- package/dist/esm/db-tooltip.entry.js +1 -1
- package/dist/esm/db-ux.js +3 -3
- package/dist/esm/{index-BjIPMjCM.js → index-kHKR5QG5.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/types/shared/model.d.ts +1 -1
- package/dist/types/utils/form-components.d.ts +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/db-ux/p-cdfaf027.entry.js +0 -1
- /package/dist/db-ux/{p-BjIPMjCM.js → p-kHKR5QG5.js} +0 -0
|
@@ -153,9 +153,7 @@ export class DBTextarea {
|
|
|
153
153
|
this.watch2Fn();
|
|
154
154
|
}
|
|
155
155
|
watch3Fn() {
|
|
156
|
-
|
|
157
|
-
this._value = this.value;
|
|
158
|
-
}
|
|
156
|
+
this._value = this.value;
|
|
159
157
|
}
|
|
160
158
|
watch3() {
|
|
161
159
|
this.watch3Fn();
|
|
@@ -198,11 +196,11 @@ export class DBTextarea {
|
|
|
198
196
|
(_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
199
197
|
}
|
|
200
198
|
render() {
|
|
201
|
-
var _a, _b, _c, _d, _e;
|
|
202
|
-
return (h("div", { key: '
|
|
199
|
+
var _a, _b, _c, _d, _e, _f;
|
|
200
|
+
return (h("div", { key: 'e6c64857826bf80558d0b402594a66418e62ef57', class: cls("db-textarea", this.className), "data-variant": this.variant, "data-hide-asterisk": getHideProp(this.showRequiredAsterisk), "data-hide-label": getHideProp(this.showLabel) }, h("label", { key: '38f6ce12d40275dd6fa5cfa64c6d2ca4c17fab8f', htmlFor: this._id }, (_a = this.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL), h("textarea", { key: '6d11324a4cfce9eeed9e1bcafe0a7edb1ee6c8ce', "aria-invalid": this.validation === "invalid", "data-custom-validity": this.validation, "data-field-sizing": this.fieldSizing, ref: (el) => {
|
|
203
201
|
this._ref = el;
|
|
204
202
|
}, id: this._id, "data-resize": this.resize, "data-hide-resizer": getHideProp((_b = this.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(this.disabled, "disabled"), required: getBoolean(this.required, "required"), readOnly: getBoolean(this.readOnly, "readOnly") ||
|
|
205
|
-
getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_c = this.value) !== null && _c !== void 0 ? _c : this._value, "aria-describedby": (
|
|
203
|
+
getBoolean(this.readonly, "readonly"), form: this.form, maxLength: getNumber(this.maxLength, this.maxlength), minLength: getNumber(this.minLength, this.minlength), name: this.name, wrap: this.wrap, spellcheck: this.spellCheck, autocomplete: this.autocomplete, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), onBlur: (event) => this.handleBlur(event), onFocus: (event) => this.handleFocus(event), value: (_d = (_c = this.value) !== null && _c !== void 0 ? _c : this._value) !== null && _d !== void 0 ? _d : "", "aria-describedby": (_e = this.ariaDescribedBy) !== null && _e !== void 0 ? _e : this._descByIds, placeholder: (_f = this.placeholder) !== null && _f !== void 0 ? _f : DEFAULT_PLACEHOLDER, rows: getNumber(this.rows, DEFAULT_ROWS), cols: getNumber(this.cols) }), 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: '16d43aeea87f6e3597c95847c037faa194875b94', size: "small", semantic: "critical", id: this._invalidMessageId }, this._invalidMessage), h("span", { key: '8b407f9a60c61ac4af26d6ec5a9571d5f37ae915', "data-visually-hidden": "true", role: "status" }, this._voiceOverFallback)));
|
|
206
204
|
}
|
|
207
205
|
static get is() { return "db-textarea"; }
|
|
208
206
|
static get properties() {
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import { delay } from "./index";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
const specialNumberCharacters = ['.', ',', 'e', 'E', '+', '-'];
|
|
4
|
+
export const handleFrameworkEventAngular = (component, event, modelValue = 'value', lastValue) => {
|
|
5
|
+
var _a;
|
|
6
|
+
const value = event.target[modelValue];
|
|
7
|
+
const type = (_a = event.target) === null || _a === void 0 ? void 0 : _a.type;
|
|
8
|
+
if (!value && value !== '' && ['date', 'time', 'week', 'month', 'datetime-local'].includes(type)) {
|
|
9
|
+
// If value is empty and type date we skip `writingValue` function
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
if (type === 'number') {
|
|
13
|
+
if (event.type === 'input') {
|
|
14
|
+
if (specialNumberCharacters.includes(event.data) || specialNumberCharacters.some(specialCharacter => lastValue === null || lastValue === void 0 ? void 0 : lastValue.toString().includes(specialCharacter)) && event.inputType === 'deleteContentBackward') {
|
|
15
|
+
// Skip `writingValue` function if number type and input event
|
|
16
|
+
// and `.` or `,` or 'e', 'E', '+', '-' was typed
|
|
17
|
+
// or content was deleted but last number had a `.`
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else if (event.type === 'change') {
|
|
22
|
+
// Skip `writingValue` function if number type and change event
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
component.propagateChange(value);
|
|
27
|
+
component.writeValue(value);
|
|
6
28
|
};
|
|
7
29
|
export const handleFrameworkEventVue = (emit, event, modelValue = 'value') => {
|
|
8
30
|
// TODO: Replace this with the solution out of https://github.com/BuilderIO/mitosis/issues/833 after this has been "solved"
|
package/dist/db-ux/db-ux.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-BjIPMjCM.js";export{s as setNonce}from"./p-BjIPMjCM.js";import{g as i}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((async e=>(await i(),a(JSON.parse('[["p-043c407c",[[260,"db-custom-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"ariaDescribedBy":[1,"aria-described-by"],"showNoResults":[4,"show-no-results"],"showLoading":[4,"show-loading"],"multiple":[8],"showSelectAll":[4,"show-select-all"],"showSearch":[4,"show-search"],"values":[16],"validation":[1],"options":[16],"searchValue":[1,"search-value"],"selectedLabels":[1,"selected-labels"],"transformSelectedLabels":[16],"selectedType":[1,"selected-type"],"amountText":[1,"amount-text"],"validMessage":[1,"valid-message"],"required":[8],"selectAllLabel":[1,"select-all-label"],"removeTagsTexts":[16],"placement":[1],"searchFilter":[16],"className":[1,"classname"],"formFieldWidth":[1,"form-field-width"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"form":[1],"name":[1],"disabled":[8],"open":[4],"selectedPrefix":[1,"selected-prefix"],"dropdownWidth":[1,"dropdown-width"],"searchLabel":[1,"search-label"],"searchPlaceholder":[1,"search-placeholder"],"listLabel":[1,"list-label"],"loadingText":[1,"loading-text"],"noResultsText":[1,"no-results-text"],"mobileCloseButtonText":[1,"mobile-close-button-text"],"showClearSelection":[4,"show-clear-selection"],"clearSelectionText":[1,"clear-selection-text"],"placeholder":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_selectId":[32],"_labelId":[32],"_summaryId":[32],"_placeholderId":[32],"_infoTextId":[32],"_validity":[32],"_userInteraction":[32],"abortController":[32],"_descByIds":[32],"_selectedLabels":[32],"_selectedLabelsId":[32],"_voiceOverFallback":[32],"_selectedOptions":[32],"selectAllEnabled":[32],"searchEnabled":[32],"amountOptions":[32],"_values":[32],"_options":[32],"_hasNoOptions":[32],"_documentClickListenerCallbackId":[32],"_internalChangeTimestamp":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"_searchValue":[32],"selectAllChecked":[32],"selectAllIndeterminate":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"detailsRef":[{"watch1":0},{"watch3":0}],"_id":[{"watch2":0}],"_descByIds":[{"watch3":0}],"showNoResults":[{"watch4":0}],"showLoading":[{"watch4":0}],"_options":[{"watch4":0}],"showSelectAll":[{"watch5":0}],"amountOptions":[{"watch5":0},{"watch6":0},{"watch11":0}],"multiple":[{"watch5":0}],"showSearch":[{"watch6":0}],"values":[{"watch7":0}],"_values":[{"watch8":0},{"watch11":0},{"watch14":0}],"selectRef":[{"watch8":0},{"watch9":0},{"watch18":0}],"validation":[{"watch10":0}],"options":[{"watch12":0},{"watch14":0}],"searchValue":[{"watch13":0}],"_selectedOptions":[{"watch15":0},{"watch16":0}],"selectedType":[{"watch15":0}],"amountText":[{"watch15":0}],"selectedLabels":[{"watch15":0}],"transformSelectedLabels":[{"watch15":0}],"selectAllIndeterminate":[{"watch17":0}],"selectAllRef":[{"watch17":0}],"invalidMessage":[{"watch18":0}]}]]],["p-587263ad",[[260,"db-tabs",{"name":[1],"tabs":[1],"arrowScrollDistance":[8,"arrow-scroll-distance"],"orientation":[1],"behavior":[1],"initialSelectedMode":[1,"initial-selected-mode"],"initialSelectedIndex":[8,"initial-selected-index"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"alignment":[1],"width":[1],"_name":[32],"initialized":[32],"showScrollLeft":[32],"showScrollRight":[32],"scrollContainer":[32],"_resizeObserver":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-0541c3c2",[[260,"db-header",{"forceMobile":[8,"force-mobile"],"drawerOpen":[8,"drawer-open"],"className":[1,"classname"],"id":[1],"propOverrides":[16],"width":[1],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"burgerMenuLabel":[1,"burger-menu-label"],"initialized":[32],"forcedToMobile":[32]},null,{"initialized":[{"watch0":0}],"_ref":[{"watch0":0}]}]]],["p-1c89f0fc",[[260,"db-accordion",{"name":[1],"behavior":[1],"initOpenIndex":[16],"items":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"variant":[1],"_name":[32],"initialized":[32],"_initOpenIndexDone":[32]},null,{"initialized":[{"watch0":0}],"name":[{"watch0":0}],"behavior":[{"watch0":0}],"_ref":[{"watch1":0},{"watch2":0}],"_name":[{"watch1":0}],"_initOpenIndexDone":[{"watch2":0}],"initOpenIndex":[{"watch2":0}]}]]],["p-745ccfb8",[[260,"db-checkbox",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"indeterminate":[8],"checked":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"className":[1,"classname"],"size":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"name":[1],"disabled":[8],"value":[8],"ariaDescribedBy":[1,"aria-described-by"],"label":[1],"messageIcon":[1,"message-icon"],"initialized":[32],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch3":0},{"watch4":0},{"watch5":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch3":0},{"watch4":0}],"indeterminate":[{"watch3":0}],"checked":[{"watch4":0}]}]]],["p-fb5f7825",[[260,"db-navigation-item",{"id":[1],"subNavigationExpanded":[8,"sub-navigation-expanded"],"propOverrides":[16],"className":[1,"classname"],"width":[1],"icon":[1],"showIcon":[8,"show-icon"],"active":[4],"wrap":[8],"disabled":[8],"text":[1],"backButtonId":[1,"back-button-id"],"backButtonText":[1,"back-button-text"],"initialized":[32],"hasAreaPopup":[32],"hasSubNavigation":[32],"isSubNavigationExpanded":[32],"autoClose":[32],"navigationItemSafeTriangle":[32],"subNavigationId":[32],"subNavigationToggleId":[32]},null,{"subNavigationExpanded":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0}]}]]],["p-dceb35a8",[[260,"db-notification",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"role":[1],"ariaLive":[1,"aria-live"],"variant":[1],"showIcon":[8,"show-icon"],"icon":[1],"linkVariant":[1,"link-variant"],"headline":[8],"showHeadline":[8,"show-headline"],"text":[1],"timestamp":[1],"showTimestamp":[8,"show-timestamp"],"closeable":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"]}]]],["p-9fb146d1",[[260,"db-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"placeholder":[1],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"variant":[1],"showEmptyOption":[4,"show-empty-option"],"className":[1,"classname"],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"disabled":[8],"name":[1],"size":[2],"autocomplete":[1],"multiple":[4],"ariaDescribedBy":[1,"aria-described-by"],"options":[16],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_placeholderId":[32],"_descByIds":[32],"_value":[32],"initialized":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-5028b12e",[[260,"db-switch",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"validation":[1],"required":[8],"message":[1],"showMessage":[8,"show-message"],"validMessage":[1,"valid-message"],"checked":[8],"disabled":[8],"visualAid":[8,"visual-aid"],"size":[1],"showLabel":[8,"show-label"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"value":[8],"name":[1],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"label":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"validation":[{"watch1":0}],"required":[{"watch1":0}],"message":[{"watch1":0}],"showMessage":[{"watch1":0}],"validMessage":[{"watch1":0}],"invalidMessage":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}],"_ref":[{"watch2":0},{"watch3":0}]}]]],["p-cdfaf027",[[0,"db-textarea",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"className":[1,"classname"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"label":[1],"fieldSizing":[1,"field-sizing"],"resize":[1],"showResizer":[8,"show-resizer"],"disabled":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"maxlength":[8],"minlength":[8],"name":[1],"wrap":[1],"spellCheck":[4,"spell-check"],"autocomplete":[1],"ariaDescribedBy":[1,"aria-described-by"],"placeholder":[1],"rows":[8],"cols":[8],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-3e5be44c",[[260,"db-badge",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"size":[1],"emphasis":[1],"wrap":[8],"label":[1],"text":[1],"initialized":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-074e4a43",[[260,"db-brand",{"hideLogo":[4,"hide-logo"],"icon":[1],"showIcon":[8,"show-icon"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"text":[1]}]]],["p-f0bc176a",[[260,"db-card",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"behavior":[1],"elevationLevel":[1,"elevation-level"],"spacing":[1]}]]],["p-e199b6f9",[[260,"db-custom-button",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"noText":[8,"no-text"]}]]],["p-836f0fef",[[260,"db-custom-select-form-field",{"id":[1],"propOverrides":[16],"className":[1,"classname"]}]]],["p-e3664354",[[0,"db-divider",{"id":[1],"propOverrides":[16],"margin":[1],"variant":[1],"emphasis":[1],"width":[1],"className":[1,"classname"]}]]],["p-6b073570",[[260,"db-icon",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"weight":[1],"variant":[1],"text":[1]}]]],["p-29442fd9",[[260,"db-link",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"href":[1],"target":[1],"rel":[1],"role":[1],"referrerpolicy":[1],"referrerPolicy":[1,"referrer-policy"],"hreflang":[1],"disabled":[8],"size":[1],"showIcon":[8,"show-icon"],"variant":[1],"content":[1],"wrap":[8],"text":[1]}]]],["p-4cf64cbb",[[260,"db-navigation",{"id":[1],"propOverrides":[16],"className":[1,"classname"]}]]],["p-9a19e197",[[260,"db-page",{"fadeIn":[8,"fade-in"],"documentOverflow":[1,"document-overflow"],"variant":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"mainClass":[1,"main-class"],"fontsLoaded":[32]}]]],["p-213bfff6",[[260,"db-popover",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"gap":[8],"animation":[8],"open":[8],"delay":[1],"width":[1],"initialized":[32],"isExpanded":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32]},null,{"_ref":[{"watch0":0},{"watch1":0}],"initialized":[{"watch0":0}],"isExpanded":[{"watch1":0}]}]]],["p-11251b99",[[260,"db-radio",{"id":[1],"propOverrides":[16],"checked":[8],"size":[1],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"validation":[1],"name":[1],"disabled":[8],"value":[8],"required":[8],"label":[1],"initialized":[32],"_id":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}]}]]],["p-d186aef4",[[260,"db-section",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"width":[1]}]]],["p-56af9177",[[260,"db-stack",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"gap":[1],"variant":[1],"direction":[1],"alignment":[1],"justifyContent":[1,"justify-content"],"wrap":[8]}]]],["p-2bce91e1",[[260,"db-drawer",{"open":[8],"position":[1],"backdrop":[1],"variant":[1],"id":[1],"propOverrides":[16],"direction":[1],"className":[1,"classname"],"spacing":[1],"width":[1],"rounded":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"initialized":[32]},null,{"open":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"position":[{"watch1":0}]}]]],["p-32c4a1b5",[[260,"db-accordion-item",{"defaultOpen":[4,"default-open"],"name":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"headlinePlain":[1,"headline-plain"],"text":[1],"_open":[32],"_name":[32],"initialized":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"name":[{"watch1":0}]}]]],["p-a34d2691",[[260,"db-tooltip",{"id":[1],"propOverrides":[16],"variant":[1],"placement":[1],"className":[1,"classname"],"emphasis":[1],"wrap":[8],"animation":[8],"delay":[1],"width":[1],"showArrow":[8,"show-arrow"],"_id":[32],"initialized":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"_id":[{"watch1":0}]}]]],["p-c6f43506",[[260,"db-tab-item",{"active":[8],"name":[1],"className":[1,"classname"],"id":[1],"propOverrides":[16],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"showIconTrailing":[8,"show-icon-trailing"],"noText":[8,"no-text"],"disabled":[8],"checked":[8],"label":[1],"_selected":[32],"_name":[32],"initialized":[32],"_listenerAdded":[32],"boundSetSelectedOnChange":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"boundSetSelectedOnChange":[{"watch0":0}],"name":[{"watch1":0}]}],[260,"db-tab-list",{"id":[1],"propOverrides":[16],"className":[1,"classname"]}],[260,"db-tab-panel",{"className":[1,"classname"],"id":[1],"propOverrides":[16],"content":[1]}]]],["p-ef034bba",[[260,"db-input",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"dataListId":[1,"data-list-id"],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"pattern":[1],"dataList":[16],"className":[1,"classname"],"variant":[1],"showLabel":[8,"show-label"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showRequiredAsterisk":[8,"show-required-asterisk"],"showIconTrailing":[8,"show-icon-trailing"],"label":[1],"fieldSizing":[1,"field-sizing"],"name":[1],"type":[1],"multiple":[8],"accept":[1],"placeholder":[1],"disabled":[8],"step":[8],"maxlength":[8],"minlength":[8],"max":[8],"min":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"size":[2],"autocomplete":[1],"autofocus":[8],"enterkeyhint":[1],"inputmode":[1],"ariaDescribedBy":[1,"aria-described-by"],"messageSize":[1,"message-size"],"messageIcon":[1,"message-icon"],"validMessageSize":[1,"valid-message-size"],"invalidMessageSize":[1,"invalid-message-size"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_dataListId":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}],[260,"db-tag",{"removeButton":[1,"remove-button"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"emphasis":[1],"icon":[1],"showCheckState":[8,"show-check-state"],"showIcon":[8,"show-icon"],"noText":[8,"no-text"],"overflow":[8],"text":[1],"behavior":[1]}],[260,"db-custom-select-dropdown",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"width":[1]}],[260,"db-custom-select-list",{"multiple":[4],"label":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"]}],[260,"db-custom-select-list-item",{"isGroupTitle":[4,"is-group-title"],"showDivider":[4,"show-divider"],"type":[1],"checked":[8],"id":[1],"propOverrides":[16],"className":[1,"classname"],"groupTitle":[1,"group-title"],"icon":[1],"showIcon":[8,"show-icon"],"name":[1],"disabled":[8],"value":[8],"label":[1],"hasDivider":[32]},null,{"isGroupTitle":[{"watch0":0}],"showDivider":[{"watch0":0}]}]]],["p-ff3866f3",[[260,"db-button",{"type":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"wrap":[8],"noText":[8,"no-text"],"name":[1],"form":[1],"value":[1],"text":[1]}]]],["p-4cda36f1",[[260,"db-infotext",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"semantic":[1],"size":[1],"wrap":[8],"showIcon":[8,"show-icon"],"text":[1]}]]]]'),e))));
|
|
1
|
+
import{p as e,b as a}from"./p-kHKR5QG5.js";export{s as setNonce}from"./p-kHKR5QG5.js";import{g as i}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,i={};return""!==a&&(i.resourcesUrl=new URL(".",a).href),e(i)})().then((async e=>(await i(),a(JSON.parse('[["p-974fbc69",[[260,"db-custom-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"ariaDescribedBy":[1,"aria-described-by"],"showNoResults":[4,"show-no-results"],"showLoading":[4,"show-loading"],"multiple":[8],"showSelectAll":[4,"show-select-all"],"showSearch":[4,"show-search"],"values":[16],"validation":[1],"options":[16],"searchValue":[1,"search-value"],"selectedLabels":[1,"selected-labels"],"transformSelectedLabels":[16],"selectedType":[1,"selected-type"],"amountText":[1,"amount-text"],"validMessage":[1,"valid-message"],"required":[8],"selectAllLabel":[1,"select-all-label"],"removeTagsTexts":[16],"placement":[1],"searchFilter":[16],"className":[1,"classname"],"formFieldWidth":[1,"form-field-width"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"form":[1],"name":[1],"disabled":[8],"open":[4],"selectedPrefix":[1,"selected-prefix"],"dropdownWidth":[1,"dropdown-width"],"searchLabel":[1,"search-label"],"searchPlaceholder":[1,"search-placeholder"],"listLabel":[1,"list-label"],"loadingText":[1,"loading-text"],"noResultsText":[1,"no-results-text"],"mobileCloseButtonText":[1,"mobile-close-button-text"],"showClearSelection":[4,"show-clear-selection"],"clearSelectionText":[1,"clear-selection-text"],"placeholder":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_selectId":[32],"_labelId":[32],"_summaryId":[32],"_placeholderId":[32],"_infoTextId":[32],"_validity":[32],"_userInteraction":[32],"abortController":[32],"_descByIds":[32],"_selectedLabels":[32],"_selectedLabelsId":[32],"_voiceOverFallback":[32],"_selectedOptions":[32],"selectAllEnabled":[32],"searchEnabled":[32],"amountOptions":[32],"_values":[32],"_options":[32],"_hasNoOptions":[32],"_documentClickListenerCallbackId":[32],"_internalChangeTimestamp":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32],"_searchValue":[32],"selectAllChecked":[32],"selectAllIndeterminate":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"detailsRef":[{"watch1":0},{"watch3":0}],"_id":[{"watch2":0}],"_descByIds":[{"watch3":0}],"showNoResults":[{"watch4":0}],"showLoading":[{"watch4":0}],"_options":[{"watch4":0}],"showSelectAll":[{"watch5":0}],"amountOptions":[{"watch5":0},{"watch6":0},{"watch11":0}],"multiple":[{"watch5":0}],"showSearch":[{"watch6":0}],"values":[{"watch7":0}],"_values":[{"watch8":0},{"watch11":0},{"watch14":0}],"selectRef":[{"watch8":0},{"watch9":0},{"watch18":0}],"validation":[{"watch10":0}],"options":[{"watch12":0},{"watch14":0}],"searchValue":[{"watch13":0}],"_selectedOptions":[{"watch15":0},{"watch16":0}],"selectedType":[{"watch15":0}],"amountText":[{"watch15":0}],"selectedLabels":[{"watch15":0}],"transformSelectedLabels":[{"watch15":0}],"selectAllIndeterminate":[{"watch17":0}],"selectAllRef":[{"watch17":0}],"invalidMessage":[{"watch18":0}]}]]],["p-19ae6336",[[260,"db-tabs",{"name":[1],"tabs":[1],"arrowScrollDistance":[8,"arrow-scroll-distance"],"orientation":[1],"behavior":[1],"initialSelectedMode":[1,"initial-selected-mode"],"initialSelectedIndex":[8,"initial-selected-index"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"alignment":[1],"width":[1],"_name":[32],"initialized":[32],"showScrollLeft":[32],"showScrollRight":[32],"scrollContainer":[32],"_resizeObserver":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-cb093137",[[260,"db-header",{"forceMobile":[8,"force-mobile"],"drawerOpen":[8,"drawer-open"],"className":[1,"classname"],"id":[1],"propOverrides":[16],"width":[1],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"burgerMenuLabel":[1,"burger-menu-label"],"initialized":[32],"forcedToMobile":[32]},null,{"initialized":[{"watch0":0}],"_ref":[{"watch0":0}]}]]],["p-df2b1979",[[260,"db-accordion",{"name":[1],"behavior":[1],"initOpenIndex":[16],"items":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"variant":[1],"_name":[32],"initialized":[32],"_initOpenIndexDone":[32]},null,{"initialized":[{"watch0":0}],"name":[{"watch0":0}],"behavior":[{"watch0":0}],"_ref":[{"watch1":0},{"watch2":0}],"_name":[{"watch1":0}],"_initOpenIndexDone":[{"watch2":0}],"initOpenIndex":[{"watch2":0}]}]]],["p-a726cd18",[[260,"db-checkbox",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"indeterminate":[8],"checked":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"className":[1,"classname"],"size":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"name":[1],"disabled":[8],"value":[8],"ariaDescribedBy":[1,"aria-described-by"],"label":[1],"messageIcon":[1,"message-icon"],"initialized":[32],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch3":0},{"watch4":0},{"watch5":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch3":0},{"watch4":0}],"indeterminate":[{"watch3":0}],"checked":[{"watch4":0}]}]]],["p-f49ed233",[[260,"db-navigation-item",{"id":[1],"subNavigationExpanded":[8,"sub-navigation-expanded"],"propOverrides":[16],"className":[1,"classname"],"width":[1],"icon":[1],"showIcon":[8,"show-icon"],"active":[4],"wrap":[8],"disabled":[8],"text":[1],"backButtonId":[1,"back-button-id"],"backButtonText":[1,"back-button-text"],"initialized":[32],"hasAreaPopup":[32],"hasSubNavigation":[32],"isSubNavigationExpanded":[32],"autoClose":[32],"navigationItemSafeTriangle":[32],"subNavigationId":[32],"subNavigationToggleId":[32]},null,{"subNavigationExpanded":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0}]}]]],["p-516c3f64",[[260,"db-notification",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"role":[1],"ariaLive":[1,"aria-live"],"variant":[1],"showIcon":[8,"show-icon"],"icon":[1],"linkVariant":[1,"link-variant"],"headline":[8],"showHeadline":[8,"show-headline"],"text":[1],"timestamp":[1],"showTimestamp":[8,"show-timestamp"],"closeable":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"]}]]],["p-af15c7c1",[[260,"db-select",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"placeholder":[1],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"variant":[1],"showEmptyOption":[4,"show-empty-option"],"className":[1,"classname"],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"icon":[1],"showIcon":[8,"show-icon"],"label":[1],"disabled":[8],"name":[1],"size":[2],"autocomplete":[1],"multiple":[4],"ariaDescribedBy":[1,"aria-described-by"],"options":[16],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_placeholderId":[32],"_descByIds":[32],"_value":[32],"initialized":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"initialized":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-bd1b0142",[[260,"db-switch",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"validation":[1],"required":[8],"message":[1],"showMessage":[8,"show-message"],"validMessage":[1,"valid-message"],"checked":[8],"disabled":[8],"visualAid":[8,"visual-aid"],"size":[1],"showLabel":[8,"show-label"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"value":[8],"name":[1],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"label":[1],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"validation":[{"watch1":0}],"required":[{"watch1":0}],"message":[{"watch1":0}],"showMessage":[{"watch1":0}],"validMessage":[{"watch1":0}],"invalidMessage":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}],"_ref":[{"watch2":0},{"watch3":0}]}]]],["p-b5902b40",[[0,"db-textarea",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"className":[1,"classname"],"variant":[1],"showRequiredAsterisk":[8,"show-required-asterisk"],"showLabel":[8,"show-label"],"label":[1],"fieldSizing":[1,"field-sizing"],"resize":[1],"showResizer":[8,"show-resizer"],"disabled":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"maxlength":[8],"minlength":[8],"name":[1],"wrap":[1],"spellCheck":[4,"spell-check"],"autocomplete":[1],"ariaDescribedBy":[1,"aria-described-by"],"placeholder":[1],"rows":[8],"cols":[8],"messageIcon":[1,"message-icon"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}]]],["p-a0f6fc10",[[260,"db-badge",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"size":[1],"emphasis":[1],"wrap":[8],"label":[1],"text":[1],"initialized":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}]}]]],["p-b99e76fd",[[260,"db-brand",{"hideLogo":[4,"hide-logo"],"icon":[1],"showIcon":[8,"show-icon"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"text":[1]}]]],["p-56da8875",[[260,"db-card",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"behavior":[1],"elevationLevel":[1,"elevation-level"],"spacing":[1]}]]],["p-c7d1bee4",[[260,"db-custom-button",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"noText":[8,"no-text"]}]]],["p-8a521b05",[[260,"db-custom-select-form-field",{"id":[1],"propOverrides":[16],"className":[1,"classname"]}]]],["p-fdbf8d91",[[0,"db-divider",{"id":[1],"propOverrides":[16],"margin":[1],"variant":[1],"emphasis":[1],"width":[1],"className":[1,"classname"]}]]],["p-72d1ea3b",[[260,"db-icon",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"weight":[1],"variant":[1],"text":[1]}]]],["p-a3aef74b",[[260,"db-link",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"href":[1],"target":[1],"rel":[1],"role":[1],"referrerpolicy":[1],"referrerPolicy":[1,"referrer-policy"],"hreflang":[1],"disabled":[8],"size":[1],"showIcon":[8,"show-icon"],"variant":[1],"content":[1],"wrap":[8],"text":[1]}]]],["p-33443732",[[260,"db-navigation",{"id":[1],"propOverrides":[16],"className":[1,"classname"]}]]],["p-85897212",[[260,"db-page",{"fadeIn":[8,"fade-in"],"documentOverflow":[1,"document-overflow"],"variant":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"mainClass":[1,"main-class"],"fontsLoaded":[32]}]]],["p-669fe992",[[260,"db-popover",{"placement":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"gap":[8],"animation":[8],"open":[8],"delay":[1],"width":[1],"initialized":[32],"isExpanded":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32]},null,{"_ref":[{"watch0":0},{"watch1":0}],"initialized":[{"watch0":0}],"isExpanded":[{"watch1":0}]}]]],["p-4a0870fa",[[260,"db-radio",{"id":[1],"propOverrides":[16],"checked":[8],"size":[1],"showLabel":[8,"show-label"],"showRequiredAsterisk":[8,"show-required-asterisk"],"className":[1,"classname"],"validation":[1],"name":[1],"disabled":[8],"value":[8],"required":[8],"label":[1],"initialized":[32],"_id":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"initialized":[{"watch1":0}],"_ref":[{"watch1":0},{"watch2":0}],"checked":[{"watch1":0}]}]]],["p-2ed98454",[[260,"db-section",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"spacing":[1],"width":[1]}]]],["p-58c6c29d",[[260,"db-stack",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"gap":[1],"variant":[1],"direction":[1],"alignment":[1],"justifyContent":[1,"justify-content"],"wrap":[8]}]]],["p-83e69c0e",[[260,"db-drawer",{"open":[8],"position":[1],"backdrop":[1],"variant":[1],"id":[1],"propOverrides":[16],"direction":[1],"className":[1,"classname"],"spacing":[1],"width":[1],"rounded":[8],"closeButtonId":[1,"close-button-id"],"closeButtonText":[1,"close-button-text"],"initialized":[32]},null,{"open":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"position":[{"watch1":0}]}]]],["p-aad2d524",[[260,"db-accordion-item",{"defaultOpen":[4,"default-open"],"name":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"headlinePlain":[1,"headline-plain"],"text":[1],"_open":[32],"_name":[32],"initialized":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"name":[{"watch1":0}]}]]],["p-3ca07f53",[[260,"db-tooltip",{"id":[1],"propOverrides":[16],"variant":[1],"placement":[1],"className":[1,"classname"],"emphasis":[1],"wrap":[8],"animation":[8],"delay":[1],"width":[1],"showArrow":[8,"show-arrow"],"_id":[32],"initialized":[32],"_documentScrollListenerCallbackId":[32],"_observer":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0}],"initialized":[{"watch1":0}],"_id":[{"watch1":0}]}]]],["p-cdef6789",[[260,"db-tab-item",{"active":[8],"name":[1],"className":[1,"classname"],"id":[1],"propOverrides":[16],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"showIconTrailing":[8,"show-icon-trailing"],"noText":[8,"no-text"],"disabled":[8],"checked":[8],"label":[1],"_selected":[32],"_name":[32],"initialized":[32],"_listenerAdded":[32],"boundSetSelectedOnChange":[32]},null,{"_ref":[{"watch0":0}],"initialized":[{"watch0":0}],"boundSetSelectedOnChange":[{"watch0":0}],"name":[{"watch1":0}]}],[260,"db-tab-list",{"id":[1],"propOverrides":[16],"className":[1,"classname"]}],[260,"db-tab-panel",{"className":[1,"classname"],"id":[1],"propOverrides":[16],"content":[1]}]]],["p-fa61a750",[[260,"db-input",{"invalidMessage":[1,"invalid-message"],"id":[1],"propOverrides":[16],"dataListId":[1,"data-list-id"],"message":[1],"showMessage":[8,"show-message"],"value":[8],"validMessage":[1,"valid-message"],"validation":[1],"required":[8],"minLength":[8,"min-length"],"maxLength":[8,"max-length"],"pattern":[1],"dataList":[16],"className":[1,"classname"],"variant":[1],"showLabel":[8,"show-label"],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconLeading":[1,"icon-leading"],"icon":[1],"iconTrailing":[1,"icon-trailing"],"showRequiredAsterisk":[8,"show-required-asterisk"],"showIconTrailing":[8,"show-icon-trailing"],"label":[1],"fieldSizing":[1,"field-sizing"],"name":[1],"type":[1],"multiple":[8],"accept":[1],"placeholder":[1],"disabled":[8],"step":[8],"maxlength":[8],"minlength":[8],"max":[8],"min":[8],"readOnly":[8,"read-only"],"readonly":[8],"form":[1],"size":[2],"autocomplete":[1],"autofocus":[8],"enterkeyhint":[1],"inputmode":[1],"ariaDescribedBy":[1,"aria-described-by"],"messageSize":[1,"message-size"],"messageIcon":[1,"message-icon"],"validMessageSize":[1,"valid-message-size"],"invalidMessageSize":[1,"invalid-message-size"],"_id":[32],"_messageId":[32],"_validMessageId":[32],"_invalidMessageId":[32],"_invalidMessage":[32],"_dataListId":[32],"_descByIds":[32],"_value":[32],"_voiceOverFallback":[32],"abortController":[32]},null,{"id":[{"watch0":0}],"propOverrides?.id":[{"watch0":0}],"_ref":[{"watch1":0},{"watch4":0}],"invalidMessage":[{"watch1":0}],"_id":[{"watch2":0}],"value":[{"watch3":0}]}],[260,"db-tag",{"removeButton":[1,"remove-button"],"id":[1],"propOverrides":[16],"className":[1,"classname"],"semantic":[1],"emphasis":[1],"icon":[1],"showCheckState":[8,"show-check-state"],"showIcon":[8,"show-icon"],"noText":[8,"no-text"],"overflow":[8],"text":[1],"behavior":[1]}],[260,"db-custom-select-dropdown",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"width":[1]}],[260,"db-custom-select-list",{"multiple":[4],"label":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"]}],[260,"db-custom-select-list-item",{"isGroupTitle":[4,"is-group-title"],"showDivider":[4,"show-divider"],"type":[1],"checked":[8],"id":[1],"propOverrides":[16],"className":[1,"classname"],"groupTitle":[1,"group-title"],"icon":[1],"showIcon":[8,"show-icon"],"name":[1],"disabled":[8],"value":[8],"label":[1],"hasDivider":[32]},null,{"isGroupTitle":[{"watch0":0}],"showDivider":[{"watch0":0}]}]]],["p-7f6fae6f",[[260,"db-button",{"type":[1],"id":[1],"propOverrides":[16],"className":[1,"classname"],"disabled":[8],"iconLeading":[1,"icon-leading"],"icon":[1],"showIconLeading":[8,"show-icon-leading"],"showIcon":[8,"show-icon"],"iconTrailing":[1,"icon-trailing"],"showIconTrailing":[8,"show-icon-trailing"],"size":[1],"width":[1],"variant":[1],"wrap":[8],"noText":[8,"no-text"],"name":[1],"form":[1],"value":[1],"text":[1]}]]],["p-05e9aa2e",[[260,"db-infotext",{"id":[1],"propOverrides":[16],"className":[1,"classname"],"icon":[1],"semantic":[1],"size":[1],"wrap":[8],"showIcon":[8,"show-icon"],"text":[1]}]]]]'),e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
1
|
+
import{r as t,h as s}from"./p-kHKR5QG5.js";import{g as a,c as i}from"./p-xkoBSP8R.js";const e=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const e=s.item(i);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))t.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)t.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),i=e.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(e.name,`${d?`${d} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(e.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-infotext")}render(){var t,e,d;return s("span",{key:"49219bd5f07042ba66ee28e86aed0536e0f776eb",class:i("db-infotext",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(e=this.propOverrides)||void 0===e?void 0:e.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-wrap":a(this.wrap),"data-show-icon-leading":a(null===(d=this.showIcon)||void 0===d||d)},this.text?this.text:s("slot",null))}};export{e as db_infotext}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,F as a}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s,F as a}from"./p-kHKR5QG5.js";import{u as n,c as o}from"./p-xkoBSP8R.js";const h=class{constructor(s){t(this,s),this.indexChange=i(this,"indexChange"),this.tabSelect=i(this,"tabSelect"),this._name="",this.initialized=!1,this.showScrollLeft=!1,this.showScrollRight=!1,this.scrollContainer=null,this._resizeObserver=void 0}convertTabs(){try{return"string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs}catch(t){console.error(t)}return[]}evaluateScrollButtons(t){const i=t.scrollWidth>t.clientWidth;this.showScrollLeft=i&&t.scrollLeft>1,this.showScrollRight=i&&t.scrollLeft<t.scrollWidth-t.clientWidth}scroll(t){var i;let s=Number(this.arrowScrollDistance)||100;t&&(s*=-1),null===(i=this.scrollContainer)||void 0===i||i.scrollBy({top:0,left:s,behavior:"smooth"})}initTabList(){if(this._ref){const t=this._ref.querySelector(".db-tab-list");if(t){const i=t.querySelector('[role="tablist"]');if(i&&(i.setAttribute("aria-orientation",this.orientation||"horizontal"),"arrows"===this.behavior&&(this.scrollContainer=i,this.evaluateScrollButtons(i),i.addEventListener("scroll",(()=>{this.evaluateScrollButtons(i)})),!this._resizeObserver))){const t=new ResizeObserver((()=>{this.evaluateScrollButtons(i)}));t.observe(i),this._resizeObserver=t}}}}initTabs(t){if(this._ref){const i=Array.from(this._ref.getElementsByClassName("db-tab-item")),s=Array.from(this._ref.querySelectorAll(":is(:scope > .db-tab-panel, :scope > db-tab-panel > .db-tab-panel)"));for(const a of i){const n=i.indexOf(a),o=a.querySelector("label"),h=a.querySelector("input");if(h&&o){if(!h.id){const t=`${this._name}-tab-${n}`;o.setAttribute("for",t),h.id=t,h.setAttribute("name",this._name),s.length>n&&h.setAttribute("aria-controls",`${this._name}-tab-panel-${n}`)}if(t){const t=!this.initialSelectedMode||"auto"===this.initialSelectedMode,i=null==this.initialSelectedIndex&&0===n||Number(this.initialSelectedIndex)===n;t&&i&&h.click()}}}for(const t of s){if(t.id)continue;const i=s.indexOf(t);t.id=`${this._name}-tab-panel-${i}`,t.setAttribute("aria-labelledby",`${this._name}-tab-${i}`)}}}handleChange(t){var i;if(t.stopPropagation(),t.target){const s=t.target.parentElement;if(s&&s.parentElement&&"LI"===(null===(i=s.parentElement)||void 0===i?void 0:i.nodeName)){const i=s.parentElement.parentElement;if(i){const s=i.parentElement;if(s){const a=Array.from(s.children).indexOf(i);this.indexChange&&this.indexChange.emit(a),this.tabSelect&&this.tabSelect.emit(t)}}}}}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const n=i.item(a);if(n&&"data-density"!==n.name&&(n.name.startsWith("data-")||n.name.startsWith("aria-")))t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"data-density"!==n.name&&"class"!==n.name&&"style"===n.name)t.setAttribute(n.name,n.value),s.removeAttribute(n.name);else if(n&&"class"===n.name){const i=n.value.includes("hydrated"),a=n.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(n.name,`${o?`${o} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(n.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initTabList(),this.initTabs(!0);const t=this._ref.querySelector(".db-tab-list");t&&new MutationObserver((t=>{t.forEach((t=>{(t.removedNodes.length||t.addedNodes.length)&&(this.initTabList(),this.initTabs())}))})).observe(t,{childList:!0,subtree:!0}),this.initialized=!1}}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tabs"),this._name=`tabs-${this.name||n()}`,this.initialized=!0,this.watch0Fn()}disconnectedCallback(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._resizeObserver=void 0}render(){var t,i,n,h,l,e;return s("div",{key:"20d8d662866ff60717de87ad4deb98a3b647672a",class:o("db-tabs",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-orientation":this.orientation,"data-scroll-behavior":this.behavior,"data-alignment":null!==(n=this.alignment)&&void 0!==n?n:"start","data-width":null!==(h=this.width)&&void 0!==h?h:"auto",onInput:t=>this.handleChange(t),onChange:t=>this.handleChange(t)},this.showScrollLeft?s("db-button",{class:"tabs-scroll-left",variant:"ghost",icon:"chevron_left",type:"button",noText:!0,onClick:()=>this.scroll(!0)},"Scroll left"):null,this.tabs?s(a,null,s("db-tab-list",null,null===(l=this.convertTabs())||void 0===l?void 0:l.map(((t,i)=>s("db-tab-item",{key:this.name+"tab-item"+i,active:t.active,label:t.label,iconTrailing:t.iconTrailing,icon:t.icon,noText:t.noText})))),null===(e=this.convertTabs())||void 0===e?void 0:e.map(((t,i)=>s("db-tab-panel",{key:this.name+"tab-panel"+i,content:t.content},t.children)))):null,this.showScrollRight?s("db-button",{class:"tabs-scroll-right",variant:"ghost",icon:"chevron_right",type:"button",noText:!0,onClick:()=>this.scroll()},"Scroll right"):null,s("slot",{key:"f9803a647f9a01adc0b20eb6bdb999f38c3602af"}))}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}};export{h as db_tabs}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
1
|
+
import{r as s,h as t}from"./p-kHKR5QG5.js";import{c as d}from"./p-xkoBSP8R.js";const e=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const d=null==s?void 0:s.closest(t);if(s&&d){const t=d.attributes;for(let e=0;e<t.length;e++){const i=t.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))s.setAttribute(i.name,i.value),d.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)s.setAttribute(i.name,i.value),d.removeAttribute(i.name);else if(i&&"class"===i.name){const t=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),a=s.getAttribute("class");s.setAttribute(i.name,`${a?`${a} `:""}${e}`),t?d.setAttribute("class","hydrated"):d.removeAttribute(i.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-section")}render(){var s,e;return t("section",{key:"d2cb50a43641ef50d901bd488c7d31911e0f5487",class:d("db-section",this.className),ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(e=this.propOverrides)||void 0===e?void 0:e.id,"data-spacing":this.spacing||"medium","data-width":this.width},t("slot",{key:"90ce1533ea3392317c7e271ad6d2880d0434321e"}))}};export{e as db_section}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as s}from"./p-
|
|
1
|
+
import{r as a,h as s}from"./p-kHKR5QG5.js";import{c as t}from"./p-xkoBSP8R.js";const e=class{constructor(s){a(this,s)}enableAttributePassing(a,s){const t=null==a?void 0:a.closest(s);if(a&&t){const s=t.attributes;for(let e=0;e<s.length;e++){const i=s.item(e);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))a.setAttribute(i.name,i.value),t.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)a.setAttribute(i.name,i.value),t.removeAttribute(i.name);else if(i&&"class"===i.name){const s=i.value.includes("hydrated"),e=i.value.replace("hydrated","").trim(),d=a.getAttribute("class");a.setAttribute(i.name,`${d?`${d} `:""}${e}`),s?t.setAttribute("class","hydrated"):t.removeAttribute(i.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation")}render(){var a,e;return s("nav",{key:"d35a0452fce96ed3fa6d692c8022ea4e36802626",class:t("db-navigation",this.className),ref:a=>{this._ref=a},id:null!==(a=this.id)&&void 0!==a?a:null===(e=this.propOverrides)||void 0===e?void 0:e.id},s("menu",{key:"2b1ad0fd739f64003078bbf18535666f83487d1f"},s("slot",{key:"0c82a0f8e78ca1489efe693ec5ba973ada355c97"})))}};export{e as db_navigation}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-
|
|
1
|
+
import{r as t,h as i}from"./p-kHKR5QG5.js";import{D as s}from"./p-BdL-nI5y.js";import{d as a,u as e,g as h,c as o}from"./p-xkoBSP8R.js";import{D as d}from"./p-CHLgQ9vn.js";import{b as l}from"./p-DOPXnIzL.js";const n=class{constructor(i){t(this,i),this._id=s,this.initialized=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleClick(t){t.stopPropagation()}handleEscape(t){t&&"Escape"!==t.key||!this._ref||"visible"!==getComputedStyle(this._ref).visibility||this.getParent().blur()}getParent(){let t=this._ref.parentElement;return t&&t.localName.includes("tooltip")&&(t=t.parentElement),t}handleAutoPlacement(t){t&&this._ref&&a((()=>{var i;this._ref&&l(this._ref,t,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t,i){var s,a;(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains)&&(null===(a=null==t?void 0:t.target)||void 0===a?void 0:a.contains(this._ref))&&this.handleAutoPlacement(i)}handleLeave(){var t;this._documentScrollListenerCallbackId&&(new d).removeCallback(this._documentScrollListenerCallbackId),null===(t=this._observer)||void 0===t||t.unobserve(this.getParent())}handleEnter(t){var i;this._documentScrollListenerCallbackId=(new d).addCallback((i=>this.handleDocumentScroll(i,t))),this.handleAutoPlacement(t),null===(i=this._observer)||void 0===i||i.observe(this.getParent())}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:"tooltip-"+e()}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let a=0;a<i.length;a++){const e=i.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))t.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)t.setAttribute(e.name,e.value),s.removeAttribute(e.name);else if(e&&"class"===e.name){const i=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),h=t.getAttribute("class");t.setAttribute(e.name,`${h?`${h} `:""}${a}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(e.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&this._id){const t=this.getParent();t&&(this.handleAutoPlacement(t),["mouseenter","focusin"].forEach((i=>{t.addEventListener(i,(()=>this.handleEnter(t)))})),t.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseleave","focusout"].forEach((i=>{t.addEventListener(i,(()=>this.handleLeave()))})),t.dataset.hasTooltip="true",t.setAttribute("label"===this.variant?"aria-labelledby":"aria-describedby",this._id)),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getParent()));i&&!i.isIntersecting&&this.handleEscape(!1)}))),this.initialized=!1}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tooltip"),this.resetIds(),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,s;return i("i",{key:"df7b27f485e4029f51329dd73e50603f6965efb8",class:o("db-tooltip",this.className),role:"tooltip","aria-hidden":"true","data-gap":"true",ref:t=>{this._ref=t},id:this._id,"data-emphasis":this.emphasis,"data-wrap":h(this.wrap),"data-animation":h(null===(t=this.animation)||void 0===t||t),"data-delay":this.delay,"data-width":this.width,"data-show-arrow":h(null===(s=this.showArrow)||void 0===s||s),"data-placement":this.placement,onClick:t=>this.handleClick(t)},i("slot",{key:"7c1aee92a530f8b0899231f55122f6109c72bc46"}))}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],_id:[{watch1:0}]}}};export{n as db_tooltip}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s}from"./p-
|
|
1
|
+
import{r as t,c as i,h as s}from"./p-kHKR5QG5.js";import{u as h,e as a,l as e,c as d,d as c}from"./p-xkoBSP8R.js";import{b as l}from"./p-D5mInaY7.js";const n=class{constructor(s){t(this,s),this.input=i(this,"input"),this.change=i(this,"change"),this.blur=i(this,"blur"),this.focus=i(this,"focus"),this.initialized=!1,this._id=void 0,this.abortController=void 0}handleInput(t,i){this.input&&this.input.emit(t)}handleChange(t,i){this.change&&this.change.emit(t)}handleBlur(t){this.blur&&this.blur.emit(t)}handleFocus(t){this.focus&&this.focus.emit(t)}resetIds(){var t,i,s;this._id=null!==(s=null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&void 0!==s?s:`radio-${h()}`}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let h=0;h<i.length;h++){const a=i.item(h);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),h=a.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(a.name,`${e?`${e} `:""}${h}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var t,i;(null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.checked&&this.initialized&&this._ref&&(this._ref.checked=!0)}watch1(){this.watch1Fn()}watch2Fn(){if(this._ref){let t=this.abortController;t||(t=new AbortController,this.abortController=t),l(this._ref,(t=>{c((()=>{const i=this.checked?this.checked:this._ref.checked,s=Object.assign(Object.assign({},t),{target:Object.assign(Object.assign({},t.target),{value:"",checked:i})});this.handleChange(s,!0),this.handleInput(s,!0)}),1)}),t.signal)}}watch2(){this.watch2Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-radio"),this.initialized=!0,this.resetIds(),this.watch0Fn(),this.watch1Fn(),this.watch2Fn()}disconnectedCallback(){var t;null===(t=this.abortController)||void 0===t||t.abort()}render(){return s("label",{key:"b77bbb3335c0b3f3813e11c7ac7228a84a40769a",class:d("db-radio",this.className),"data-size":this.size,"data-hide-label":e(this.showLabel),"data-hide-asterisk":e(this.showRequiredAsterisk),htmlFor:this._id},s("input",{key:"4fe82a7b57a6dd06e556e26d50df574a541129f9",type:"radio","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,ref:t=>{this._ref=t},id:this._id,name:this.name,checked:a(this.checked,"checked"),disabled:a(this.disabled,"disabled"),value:this.value,required:a(this.required,"required"),onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onBlur:t=>this.handleBlur(t),onFocus:t=>this.handleFocus(t)}),this.label?this.label:s("slot",null))}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],initialized:[{watch1:0}],_ref:[{watch1:0},{watch2:0}],checked:[{watch1:0}]}}};export{n as db_radio}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as i}from"./p-
|
|
1
|
+
import{r as s,c as t,h as i}from"./p-kHKR5QG5.js";import{s as a}from"./p-BdL-nI5y.js";import{e,s as n,g as o,p as l,c as d}from"./p-xkoBSP8R.js";const c=class{constructor(i){s(this,i),this.close=t(this,"close")}handleClose(s){s&&(s.stopPropagation(),this.close&&this.close.emit(s))}enableAttributePassing(s,t){const i=null==s?void 0:s.closest(t);if(s&&i){const t=i.attributes;for(let a=0;a<t.length;a++){const e=t.item(a);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))s.setAttribute(e.name,e.value),i.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)s.setAttribute(e.name,e.value),i.removeAttribute(e.name);else if(e&&"class"===e.name){const t=e.value.includes("hydrated"),a=e.value.replace("hydrated","").trim(),n=s.getAttribute("class");s.setAttribute(e.name,`${n?`${n} `:""}${a}`),t?i.setAttribute("class","hydrated"):i.removeAttribute(e.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-notification")}render(){var s,t,c;return i("div",{key:"b7789fad4794a93805eeec0cf2740b3f592f32fa",class:d("db-notification",this.className),ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(t=this.propOverrides)||void 0===t?void 0:t.id,role:l({semantic:this.semantic,role:this.role,ariaLive:this.ariaLive}),"aria-live":this.ariaLive,"data-semantic":this.semantic,"data-variant":this.variant,"data-icon":!1!==e(this.showIcon)?this.icon:void 0,"data-show-icon":o(this.showIcon),"data-link-variant":this.linkVariant},i("slot",{key:"cdf91c6a6cd8dd519ab235046b9ab260007a370e",name:"image"}),n(this.headline,this.showHeadline)?i("header",null,this.headline):null,i("p",{key:"a93c1810e6a75cdd81660cb6e252ed7028c2a5f5"},this.text?this.text:i("slot",null)),n(this.timestamp,this.showTimestamp)?i("span",null,this.timestamp):null,i("slot",{key:"26cae9faba7d9f277413f38a59ea02c9b99eb8c5",name:"link"}),e(this.closeable,"closeable")?i("db-button",{icon:"cross",variant:"ghost",size:"small",id:this.closeButtonId,noText:!0,onClick:s=>this.handleClose(s)},null!==(c=this.closeButtonText)&&void 0!==c?c:a):null)}};export{c as db_notification}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as a}from"./p-
|
|
1
|
+
import{r as s,c as t,h as a}from"./p-kHKR5QG5.js";import{c as i}from"./p-xkoBSP8R.js";const d=class{constructor(a){s(this,a),this.click=t(this,"click")}handleClick(s){this.click&&this.click.emit(s)}enableAttributePassing(s,t){const a=null==s?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const d=t.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))s.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)s.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),e=s.getAttribute("class");s.setAttribute(d.name,`${e?`${e} `:""}${i}`),t?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-card")}render(){var s,t;return a("div",{key:"252e6e05d1f5fdef212ae943b0d4d4121a52f5d6",class:i("db-card",this.className),ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(t=this.propOverrides)||void 0===t?void 0:t.id,"data-behavior":this.behavior,"data-elevation-level":this.elevationLevel,"data-spacing":this.spacing,onClick:s=>this.handleClick(s)},a("slot",{key:"862fd715856bb6ef858c274c9c916bc7f4250051"}))}};export{d as db_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as a}from"./p-
|
|
1
|
+
import{r as t,h as a}from"./p-kHKR5QG5.js";import{g as s,c as d}from"./p-xkoBSP8R.js";const i=class{constructor(a){t(this,a)}enableAttributePassing(t,a){const s=null==t?void 0:t.closest(a);if(t&&s){const a=s.attributes;for(let d=0;d<a.length;d++){const i=a.item(d);if(i&&"data-density"!==i.name&&(i.name.startsWith("data-")||i.name.startsWith("aria-")))t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"data-density"!==i.name&&"class"!==i.name&&"style"===i.name)t.setAttribute(i.name,i.value),s.removeAttribute(i.name);else if(i&&"class"===i.name){const a=i.value.includes("hydrated"),d=i.value.replace("hydrated","").trim(),e=t.getAttribute("class");t.setAttribute(i.name,`${e?`${e} `:""}${d}`),a?s.setAttribute("class","hydrated"):s.removeAttribute(i.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-stack")}render(){var t,i;return a("div",{key:"e8a95918ab5412c03412b92adb3f2a2d5979d492",class:d("db-stack",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-gap":this.gap,"data-variant":this.variant,"data-direction":this.direction,"data-alignment":this.alignment,"data-justify-content":this.justifyContent,"data-wrap":s(this.wrap)},a("slot",{key:"b95b19d6ff1a61f416eadfb14d9e19647e4f6cb4"}))}};export{i as db_stack}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-
|
|
1
|
+
import{r as t,h as i}from"./p-kHKR5QG5.js";import{d as s,g as e,c as a}from"./p-xkoBSP8R.js";import{D as o}from"./p-CHLgQ9vn.js";import{b as n}from"./p-DOPXnIzL.js";const h=class{constructor(i){t(this,i),this.initialized=!1,this.isExpanded=!1,this._documentScrollListenerCallbackId=void 0,this._observer=void 0}handleEscape(t){if(!t||"Escape"===t.key)for(const t of Array.from(this._ref.children))t.blur()}handleAutoPlacement(){if(!this._ref)return;const t=this._ref.querySelector("article");t&&s((()=>{var i;n(t,this._ref,null!==(i=this.placement)&&void 0!==i?i:"bottom")}),1)}handleDocumentScroll(t){var i,s;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.contains)&&(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.contains(this._ref))&&this.handleAutoPlacement()}handleEnter(){var t;this.isExpanded=!0,this._documentScrollListenerCallbackId=(new o).addCallback((t=>this.handleDocumentScroll(t))),this.handleAutoPlacement();const i=this.getTrigger();i&&(null===(t=this._observer)||void 0===t||t.observe(i))}handleLeave(t){var i;const s=null==t?void 0:t.target;if(!(null==s?void 0:s.parentNode)||s.parentNode.querySelector(":focus")!==s&&s.parentNode.querySelector(":focus-within")!==s&&s.parentNode.querySelector(":hover")!==s){this.isExpanded=!1,this._documentScrollListenerCallbackId&&(new o).removeCallback(this._documentScrollListenerCallbackId);const t=this.getTrigger();t&&(null===(i=this._observer)||void 0===i||i.unobserve(t))}}getTrigger(){var t;if(this._ref){const i=Array.from(this._ref.children);if(i.length>=2){const s=i[0];return s.tagName.includes("-")?(null===(t=s.children)||void 0===t?void 0:t.length)>0?s.children[0]:null:s}}return null}enableAttributePassing(t,i){const s=null==t?void 0:t.closest(i);if(t&&s){const i=s.attributes;for(let e=0;e<i.length;e++){const a=i.item(e);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)t.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const i=a.value.includes("hydrated"),e=a.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(a.name,`${o?`${o} `:""}${e}`),i?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){if(this._ref&&this.initialized){this.initialized=!1;const t=this.getTrigger();t&&(t.ariaHasPopup="true"),this.handleAutoPlacement(),this._ref.addEventListener("keydown",(t=>this.handleEscape(t))),["mouseenter","focusin"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleEnter()))})),["mouseleave","focusout"].forEach((t=>{this._ref.addEventListener(t,(()=>this.handleLeave()))})),"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((t=>{const i=t.find((({target:t})=>t===this.getTrigger()));i&&!i.isIntersecting&&this.handleEscape(!1)})))}}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref){const t=this.getTrigger();t&&(t.ariaExpanded=Boolean(this.isExpanded).toString())}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-popover"),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,s,o;return i("div",{key:"a160c72e468d3f98cf94f76193b31dea016821f5",class:a("db-popover",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id},i("slot",{key:"bb80f944827c1a2edb671ce3572546eabdac8fe3",name:"trigger"}),i("article",{key:"5286e4c7e53558e4bdff52ab3742acf0b854cb4a",class:"db-popover-content","data-spacing":this.spacing,"data-gap":e(this.gap),"data-animation":e(null===(o=this.animation)||void 0===o||o),"data-open":e(this.open),"data-delay":this.delay,"data-width":this.width,"data-placement":this.placement},i("slot",{key:"09822daff7336bfe9541418bcd55a8809cdaab08"})))}static get watchers(){return{_ref:[{watch0:0},{watch1:0}],initialized:[{watch0:0}],isExpanded:[{watch1:0}]}}};export{h as db_popover}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-
|
|
1
|
+
import{r as s,h as t}from"./p-kHKR5QG5.js";import{c as a}from"./p-xkoBSP8R.js";const i=class{constructor(t){s(this,t)}enableAttributePassing(s,t){const a=null==s?void 0:s.closest(t);if(s&&a){const t=a.attributes;for(let i=0;i<t.length;i++){const d=t.item(i);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))s.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)s.setAttribute(d.name,d.value),a.removeAttribute(d.name);else if(d&&"class"===d.name){const t=d.value.includes("hydrated"),i=d.value.replace("hydrated","").trim(),e=s.getAttribute("class");s.setAttribute(d.name,`${e?`${e} `:""}${i}`),t?a.setAttribute("class","hydrated"):a.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-icon")}render(){var s,i;return t("span",{key:"3bef98de9ca12c66f7cce8e11eaa5d895a8d6750",class:a("db-icon",this.className),"aria-hidden":"true",ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(i=this.propOverrides)||void 0===i?void 0:i.id,"data-icon":this.icon,"data-icon-weight":this.weight,"data-icon-variant":this.variant},this.text?this.text:t("slot",null))}};export{i as db_icon}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-kHKR5QG5.js";import{g as a,e as d,c as o}from"./p-xkoBSP8R.js";const h=class{constructor(i){t(this,i),this.click=s(this,"click")}getButtonType(){return this.type?this.type:this.click?"button":"submit"}enableAttributePassing(t,s){const i=null==t?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const d=s.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))t.setAttribute(d.name,d.value),i.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)t.setAttribute(d.name,d.value),i.removeAttribute(d.name);else if(d&&"class"===d.name){const s=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),o=t.getAttribute("class");t.setAttribute(d.name,`${o?`${o} `:""}${a}`),s?i.setAttribute("class","hydrated"):i.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-button")}render(){var t,s,h,n;return i("button",{key:"61179d6427e5c3245c1cfe539f2a0dce9b22ba1d",class:o("db-button",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,type:this.getButtonType(),disabled:d(this.disabled,"disabled"),"data-icon":null!==(h=this.iconLeading)&&void 0!==h?h:this.icon,"data-show-icon":a(null!==(n=this.showIconLeading)&&void 0!==n?n:this.showIcon),"data-icon-trailing":this.iconTrailing,"data-show-icon-trailing":a(this.showIconTrailing),"data-size":this.size,"data-width":this.width,"data-variant":this.variant,"data-wrap":a(this.wrap),"data-no-text":a(this.noText),name:this.name,form:this.form,value:this.value},this.text?this.text:i("slot",null))}};export{h as db_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as a}from"./p-
|
|
1
|
+
import{r as t,c as s,h as a}from"./p-kHKR5QG5.js";import{s as i}from"./p-BdL-nI5y.js";import{o as e,d,g as h,c}from"./p-xkoBSP8R.js";const o=class{constructor(a){t(this,a),this.close=s(this,"close"),this.initialized=!1}handleClose(t,s){var a;t&&(e(t)?"Escape"===t.key&&(t.preventDefault(),this.close&&this.close.emit(t)):(s&&(t.stopPropagation(),this.close&&this.close.emit(t)),"DIALOG"===(null===(a=t.target)||void 0===a?void 0:a.nodeName)&&"click"===t.type&&"none"!==this.backdrop&&this.close&&this.close.emit(t)))}handleDialogOpen(){if(this._ref){const t=Boolean(this.open);t&&!this._ref.open&&(this.dialogContainerRef&&this.dialogContainerRef.removeAttribute("data-transition"),"absolute"===this.position||"none"===this.backdrop||"inside"===this.variant?this._ref.show():this._ref.showModal(),d((()=>{this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="open")}),1)),!t&&this._ref.open&&(this.dialogContainerRef&&(this.dialogContainerRef.dataset.transition="close"),d((()=>{var t;null===(t=this._ref)||void 0===t||t.close()}),401))}}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const e=s.item(i);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))t.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)t.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),i=e.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(e.name,`${d?`${d} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(e.name)}}}}watch0Fn(){this.handleDialogOpen()}watch0(){this.watch0Fn()}watch1Fn(){if(this._ref&&this.initialized&&"absolute"===this.position){const t=this._ref.parentElement;t&&(t.style.position="relative")}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-drawer"),this.handleDialogOpen(),this.initialized=!0,this.watch0Fn(),this.watch1Fn()}render(){var t,s,e;return a("dialog",{key:"5980a60cbe0d46868a4a65d853551a25159523f0",class:"db-drawer",id:null!==(t=this.id)&&void 0!==t?t:null===(s=this.propOverrides)||void 0===s?void 0:s.id,ref:t=>{this._ref=t},onClick:t=>this.handleClose(t),onKeyDown:t=>this.handleClose(t),"data-position":this.position,"data-backdrop":this.backdrop,"data-direction":this.direction,"data-variant":this.variant},a("article",{key:"305ff89261e63e2dbe0640fc9be97b330a4b94cf",class:c("db-drawer-container",this.className),ref:t=>{this.dialogContainerRef=t},"data-spacing":this.spacing,"data-width":this.width,"data-direction":this.direction,"data-rounded":h(this.rounded)},a("header",{key:"fe07654ff3c238c6a0eb2f73ff5f8a035ff9232c",class:"db-drawer-header"},a("div",{key:"56eff8cf0d755c027bf72e2319e7897ed3b4b51c",class:"db-drawer-header-text"},a("slot",{key:"ff8378e26a292c20991899764a927aadd5b35ac8",name:"drawerHeader"})),a("db-button",{key:"5300a384462ceb1ac7ac9272bed2ee34f426ccf2",class:"button-close-drawer",icon:"cross",variant:"ghost",id:this.closeButtonId,noText:!0,onClick:t=>this.handleClose(t,!0)},null!==(e=this.closeButtonText)&&void 0!==e?e:i)),a("div",{key:"681bd3593f743539104398e0dbb6628abdd8ae2c",class:"db-drawer-content"},a("slot",{key:"ad9f204d5f0b6b44fec8bfc49f8aa361cbb155d7"}))))}static get watchers(){return{open:[{watch0:0}],_ref:[{watch1:0}],initialized:[{watch1:0}],position:[{watch1:0}]}}};export{o as db_drawer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as t}from"./p-
|
|
1
|
+
import{r as a,h as t}from"./p-kHKR5QG5.js";import{c as d,g as e}from"./p-xkoBSP8R.js";const s=class{constructor(t){a(this,t),this.fontsLoaded=!1}enableAttributePassing(a,t){const d=null==a?void 0:a.closest(t);if(a&&d){const t=d.attributes;for(let e=0;e<t.length;e++){const s=t.item(e);if(s&&"data-density"!==s.name&&(s.name.startsWith("data-")||s.name.startsWith("aria-")))a.setAttribute(s.name,s.value),d.removeAttribute(s.name);else if(s&&"data-density"!==s.name&&"class"!==s.name&&"style"===s.name)a.setAttribute(s.name,s.value),d.removeAttribute(s.name);else if(s&&"class"===s.name){const t=s.value.includes("hydrated"),e=s.value.replace("hydrated","").trim(),i=a.getAttribute("class");a.setAttribute(s.name,`${i?`${i} `:""}${e}`),t?d.setAttribute("class","hydrated"):d.removeAttribute(s.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-page"),this.fontsLoaded=!this.fadeIn,document&&this.fadeIn?document.fonts.ready.then((()=>{this.fontsLoaded=!0})):this.fontsLoaded=!0}disconnectedCallback(){"undefined"!=typeof window&&document.documentElement.classList.contains("db-page-document")&&document.documentElement.classList.remove("db-page-document")}render(){var a,s;return t("div",{key:"3c52f5947a841db0fcfe81b09e37db5a59f04158",class:d("db-page",this.className),ref:a=>{this._ref=a},id:null!==(a=this.id)&&void 0!==a?a:null===(s=this.propOverrides)||void 0===s?void 0:s.id,"data-variant":this.variant,"data-fade-in":e(this.fadeIn),"data-fonts-loaded":e(this.fontsLoaded)},t("slot",{key:"9b5d03938d5e60f37d807b3acbeb76a1ecb24aab",name:"header"}),t("main",{key:"49b72ad7dab4cc675c1af0c684bf211affd3fa36",class:d("db-main",this.mainClass)},t("slot",{key:"63915bf376296bbfdd9e7f1c3f3e36331543d15c"})),t("slot",{key:"e94f63187f9347a7377956b040d3c201aa008dd6",name:"footer"}))}};export{s as db_page}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as e}from"./p-
|
|
1
|
+
import{r as s,h as e}from"./p-kHKR5QG5.js";import{c as t}from"./p-xkoBSP8R.js";const a=class{constructor(e){s(this,e)}enableAttributePassing(s,e){const t=null==s?void 0:s.closest(e);if(s&&t){const e=t.attributes;for(let a=0;a<e.length;a++){const d=e.item(a);if(d&&"data-density"!==d.name&&(d.name.startsWith("data-")||d.name.startsWith("aria-")))s.setAttribute(d.name,d.value),t.removeAttribute(d.name);else if(d&&"data-density"!==d.name&&"class"!==d.name&&"style"===d.name)s.setAttribute(d.name,d.value),t.removeAttribute(d.name);else if(d&&"class"===d.name){const e=d.value.includes("hydrated"),a=d.value.replace("hydrated","").trim(),o=s.getAttribute("class");s.setAttribute(d.name,`${o?`${o} `:""}${a}`),e?t.setAttribute("class","hydrated"):t.removeAttribute(d.name)}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select-form-field")}render(){var s,a;return e("summary",{key:"960e6eb6b0f7f46884e26a820f3ae38e13d57f33",class:t("db-custom-select-form-field",this.className),ref:s=>{this._ref=s},id:null!==(s=this.id)&&void 0!==s?s:null===(a=this.propOverrides)||void 0===a?void 0:a.id},e("slot",{key:"e109b45a0935d878434ae5e330d55fdab7fb438d"}))}};export{a as db_custom_select_form_field}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,F as h}from"./p-BjIPMjCM.js";import{l,a as e,m as a,f as o,g as d,h as n,e as c,d as v,i as r,o as u,k as w,c as f,s as m}from"./p-BdL-nI5y.js";import{h as p,d as b,s as y,m as g,u as k,g as F,e as A,l as D,c as x}from"./p-xkoBSP8R.js";import{D as C}from"./p-D_roHmuC.js";import{D as L}from"./p-CHLgQ9vn.js";import{a as S}from"./p-DOPXnIzL.js";import{b as I}from"./p-D5mInaY7.js";const R=class{constructor(s){i(this,s),this.amountChange=t(this,"amountChange"),this.dropdownToggle=t(this,"dropdownToggle"),this.optionSelected=t(this,"optionSelected"),this.search=t(this,"search"),this.showClearSelection=!0,this.clearSelectionText="Clear selection",this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._selectId=void 0,this._labelId=void 0,this._summaryId=void 0,this._placeholderId=void 0,this._infoTextId=void 0,this._validity="no-validation",this._userInteraction=!1,this.abortController=void 0,this._descByIds=void 0,this._selectedLabels="",this._selectedLabelsId=void 0,this._voiceOverFallback="",this._selectedOptions=[],this.selectAllEnabled=!1,this.searchEnabled=!1,this.amountOptions=0,this._values=[],this._options=[],this._hasNoOptions=!1,this._documentClickListenerCallbackId=void 0,this._internalChangeTimestamp=0,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._searchValue=void 0,this.selectAllChecked=!1,this.selectAllIndeterminate=!1,this.satisfyReact=function(i){i.stopPropagation()}}handleDocumentScroll(i){var t,s;(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.contains)&&(null===(s=null==i?void 0:i.target)||void 0===s?void 0:s.contains(this.detailsRef))&&this.handleAutoPlacement()}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,h,e,a,o,d;this.selectRef&&(this.selectRef.value=this.getNativeSelectValue()),(null===(i=this.selectRef)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(h=this.selectRef)||void 0===h?void 0:h.validity.valid)&&this.required?(this.setDescById(this._validMessageId),p()&&(this._voiceOverFallback=null!==(e=this.validMessage)&&void 0!==e?e:w,b((()=>this._voiceOverFallback=""),1e3)),this._validity=null!==(a=this.validation)&&void 0!==a?a:"valid"):y(this.message,this.showMessage)?(this.setDescById(this._messageId),this._validity=null!==(o=this.validation)&&void 0!==o?o:"no-validation"):(this.setDescById(this._placeholderId),this._validity=null!==(d=this.validation)&&void 0!==d?d:"no-validation"):(this.setDescById(this._invalidMessageId),this._invalidMessage=this.invalidMessage||(null===(t=this.selectRef)||void 0===t?void 0:t.validationMessage)||l,p()&&(this._voiceOverFallback=this._invalidMessage,b((()=>this._voiceOverFallback=""),1e3)),this._userInteraction&&(this._validity=null!==(s=this.validation)&&void 0!==s?s:"invalid"))}handleDropdownToggle(i){var t,s;this.dropdownToggle&&(i.stopPropagation(),this.dropdownToggle.emit(i)),i.target instanceof HTMLDetailsElement&&i.target.open?(this._documentClickListenerCallbackId=(new C).addCallback((i=>this.handleDocumentClose(i))),this._documentScrollListenerCallbackId=(new L).addCallback((i=>this.handleDocumentScroll(i))),this.handleAutoPlacement(),null===(t=this._observer)||void 0===t||t.observe(this.detailsRef),i.target.dataset.test||this.handleOpenByKeyboardFocus()):(this._documentClickListenerCallbackId&&(new C).removeCallback(this._documentClickListenerCallbackId),this._documentScrollListenerCallbackId&&(new L).removeCallback(this._documentScrollListenerCallbackId),null===(s=this._observer)||void 0===s||s.unobserve(this.detailsRef))}getNativeSelectValue(){var i,t;return(null===(i=this._values)||void 0===i?void 0:i.length)&&null!==(t=this._values.at(0))&&void 0!==t?t:""}setDescById(i){var t;const s=[];i&&s.push(i),this._selectedLabelsId&&(null===(t=this._selectedLabels)||void 0===t?void 0:t.length)&&s.push(this._selectedLabelsId),this._descByIds=s.join(" ")}getSelectAllLabel(){var i;return null!==(i=this.selectAllLabel)&&void 0!==i?i:e}getOptionLabel(i){var t,s,h;return null!==(h=null!==(t=i.label)&&void 0!==t?t:null===(s=i.value)||void 0===s?void 0:s.toString())&&void 0!==h?h:""}getOptionChecked(i){var t,s;return!(!i||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&(null===(s=this._values)||void 0===s?void 0:s.includes(i))}getTagRemoveLabel(i){const t=this.removeTagsTexts,s=this.options;if(t&&s){const h=s.findIndex((t=>t.value===i.value));if(h>=0&&h<t.length)return t[h]}return`${a} ${this.getOptionLabel(i)}`}handleTagRemove(i,t){t&&t.stopPropagation(),this.handleSelect(i.value),this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const i=this.detailsRef.querySelector("article");i&&b((()=>{var t;S(i,this.detailsRef,null!==(t=this.placement)&&void 0!==t?t:"bottom")}),1)}}handleArrowDownUp(i){var t,s,h;if(null===(t=this.detailsRef)||void 0===t?void 0:t.open){if(self.document){const t=self.document.activeElement;if(t)if("checkbox"===t.getAttribute("type")||"radio"===t.getAttribute("type")){const l=null==t?void 0:t.closest("li");if("ArrowDown"===i.key||"ArrowRight"===i.key){let i=null==l?void 0:l.nextElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.nextElementSibling}i||this.handleFocusFirstDropdownCheckbox(t)}else{let i=null==l?void 0:l.previousElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.previousElementSibling}if(!i){const i=this.detailsRef.querySelector('input[type="checkbox"]');if(i&&i!==t)this.handleFocusFirstDropdownCheckbox(t);else{const i=g(this.detailsRef);if(i)b((()=>{i.focus()}),100);else{const i=Array.from(null===(s=this.detailsRef)||void 0===s?void 0:s.querySelectorAll('input[type="checkbox"],input[type="radio"]'));i.length&&(null===(h=i.at(-1))||void 0===h||h.focus())}}}}}else"search"!==t.getAttribute("type")||"ArrowUp"!==i.key&&"ArrowLeft"!==i.key?this.handleFocusFirstDropdownCheckbox(t):(this.handleClose(void 0,!0),this.handleSummaryFocus())}}else"ArrowDown"!==i.key&&"ArrowRight"!==i.key||(this.handleAutoPlacement(),this.detailsRef&&(this.detailsRef.open=!0),this.handleOpenByKeyboardFocus());i.stopPropagation(),i.preventDefault()}handleKeyboardPress(i){var t,s,h;if(i.stopPropagation(),"Escape"===i.key&&(null===(t=this.detailsRef)||void 0===t?void 0:t.open))this.handleClose(void 0,!0),this.handleSummaryFocus();else if("Enter"===i.key&&(null===(s=this.detailsRef)||void 0===s?void 0:s.open)){if(self.document){const t=self.document.activeElement;if(["checkbox","radio"].includes(t.getAttribute("type")||""))t.click(),i.preventDefault();else if("search"===t.getAttribute("type")){const t=null===(h=this._options)||void 0===h?void 0:h.find((i=>!i.isGroupTitle&&!i.disabled));(null==t?void 0:t.value)&&(this.handleSelect(t.value),i.preventDefault())}}}else"ArrowDown"!==i.key&&"ArrowUp"!==i.key&&"ArrowLeft"!==i.key&&"ArrowRight"!==i.key||this.handleArrowDownUp(i)}handleClose(i,t){if(this.detailsRef)if(t)this.detailsRef.open=!1,this.handleSummaryFocus();else if(this.detailsRef.open&&i&&i.relatedTarget){const t=i.relatedTarget;this.detailsRef.contains(t)||"dialog"===t.localName||b((()=>this.detailsRef.open=!1),1)}}handleDocumentClose(i){var t,s;if(i){const h="number"==typeof i.detail?i.target:null===(t=i.detail)||void 0===t?void 0:t.target;(null===(s=this.detailsRef)||void 0===s?void 0:s.open)&&!this.detailsRef.contains(h)&&(this.detailsRef.open=!1)}}handleOptionSelected(i){(new Date).getTime()-this._internalChangeTimestamp<200||(this._values=i,this._userInteraction=!0,this.optionSelected&&this.optionSelected.emit(null!=i?i:[]),this._internalChangeTimestamp=(new Date).getTime())}handleSelect(i){var t;i&&(this.multiple?(null===(t=this._values)||void 0===t?void 0:t.includes(i))?this.handleOptionSelected(this._values.filter((t=>t!==i))):this.handleOptionSelected([...this._values||[],i]):(this.handleOptionSelected([i]),this.handleClose(void 0,!0)))}handleSelectAll(i){var t;if(i.stopPropagation(),(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions)this.handleOptionSelected([]);else{const i=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:void 0;this.handleOptionSelected(this.options?this.options.filter((t=>{var s;return!t.isGroupTitle&&(!i||(null===(s=t.value)||void 0===s?void 0:s.toLowerCase().includes(i.toLowerCase())))})).map((i=>{var t;return null!==(t=i.value)&&void 0!==t?t:""})):[])}}handleFocusFirstDropdownCheckbox(i){if(this.detailsRef){const t=Array.from(this.detailsRef.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(t.length){const s=t.at(0),h=s===i&&t.length>1?t.at(1):s;h&&b((()=>{h.focus()}),1)}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const i=g(this.detailsRef);i?b((()=>{i.focus()}),1):this.handleFocusFirstDropdownCheckbox()}}handleSearch(i){if(void 0===i)return;let t;if("string"==typeof i)t=i;else{const s=i;s.stopPropagation(),this.search&&this.search.emit(s),t=s.target.value,this._searchValue=t}this._options=this.options&&t&&0!==t.length?this.options.filter(this.searchFilter?i=>this.searchFilter(i,t):i=>!i.isGroupTitle&&this.getOptionLabel(i).toLowerCase().includes(t.toLowerCase())):this.options}handleClearAll(i){i.stopPropagation(),this.handleOptionSelected([]),this.handleSummaryFocus()}handleSummaryFocus(){var i;this.detailsRef&&(null===(i=this.detailsRef.querySelector("summary"))||void 0===i||i.focus())}resetIds(){var i,t,s;const h=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`custom-select-${k()}`;this._id=h,this._messageId=h+o,this._validMessageId=h+d,this._invalidMessageId=h+n,this._selectId=h+c,this._labelId=h+v,this._summaryId=h+"-summary",this._placeholderId=h+r,this._selectedLabelsId=h+"-selected-labels",this._infoTextId=h+"-info"}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const l=t.item(h);if(l&&"data-density"!==l.name&&(l.name.startsWith("data-")||l.name.startsWith("aria-")))i.setAttribute(l.name,l.value),s.removeAttribute(l.name);else if(l&&"data-density"!==l.name&&"class"!==l.name&&"style"===l.name)i.setAttribute(l.name,l.value),s.removeAttribute(l.name);else if(l&&"class"===l.name){const t=l.value.includes("hydrated"),h=l.value.replace("hydrated","").trim(),e=i.getAttribute("class");i.setAttribute(l.name,`${e?`${e} `:""}${h}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(l.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.detailsRef&&this.detailsRef.addEventListener("focusout",(i=>this.handleClose(i)))}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+o;this._labelId=this._id+v,this._selectId=this._id+c,this._validMessageId=this._id+d,this._invalidMessageId=this._id+n,this._placeholderId=this._id+r,y(this.message,this.showMessage)?this.setDescById(i):this.setDescById()}}watch2(){this.watch2Fn()}watch3Fn(){var i;if(this.detailsRef){const t=this.detailsRef.querySelector("summary");t&&t.setAttribute("aria-describedby",null!==(i=this.ariaDescribedBy)&&void 0!==i?i:this._descByIds||"")}}watch3(){this.watch3Fn()}watch4Fn(){void 0!==this.showNoResults?this._hasNoOptions=this.showNoResults:this._options&&(this._hasNoOptions=0===this._options.length)}watch4(){this.watch4Fn()}watch5Fn(){var i;this.selectAllEnabled=Boolean(this.multiple&&(null!==(i=this.showSelectAll)&&void 0!==i?i:this.amountOptions>5))}watch5(){this.watch5Fn()}watch6Fn(){var i;this.searchEnabled=null!==(i=this.showSearch)&&void 0!==i?i:this.amountOptions>9}watch6(){this.watch6Fn()}watch7Fn(){var i;const t=this.values;Array.isArray(t)?this._values!==t&&(this._values=t):null==t&&0!==(null===(i=this._values)||void 0===i?void 0:i.length)&&(this._values=[])}watch7(){this.watch7Fn()}watch8Fn(){this.selectRef&&this.handleValidation()}watch8(){this.watch8Fn()}watch9Fn(){if(this.selectRef){let i=this.abortController;i||(i=new AbortController,this.abortController=i);const t=this.values;I(this.selectRef,(()=>{this.handleOptionSelected(t||(this.selectRef.value?[this.selectRef.value]:[])),this.handleValidation()}),i.signal)}}watch9(){this.watch9Fn()}watch10Fn(){this._validity=this.validation}watch10(){this.watch10Fn()}watch11Fn(){var i,t;0===(null===(i=this._values)||void 0===i?void 0:i.length)?(this.selectAllChecked=!1,this.selectAllIndeterminate=!1):(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions?(this.selectAllIndeterminate=!1,this.selectAllChecked=!0):this._values&&(this.selectAllIndeterminate=!0)}watch11(){this.watch11Fn()}watch12Fn(){var i,t;this._options=this.options,this.amountOptions=null!==(t=null===(i=this.options)||void 0===i?void 0:i.filter((i=>!i.isGroupTitle)).length)&&void 0!==t?t:0}watch12(){this.watch12Fn()}watch13Fn(){this._searchValue=this.searchValue,this.searchValue&&this.handleSearch(this.searchValue)}watch13(){this.watch13Fn()}watch14Fn(){var i,t;(null===(i=this.options)||void 0===i?void 0:i.length)&&(this._selectedOptions=null===(t=this.options)||void 0===t?void 0:t.filter((i=>{var t,s;return!(!i.value||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&!i.isGroupTitle&&(null===(s=this._values)||void 0===s?void 0:s.includes(i.value))})))}watch14(){this.watch14Fn()}watch15Fn(){var i,t,s;if(this.selectedLabels)this._selectedLabels=this.selectedLabels;else if(null===(i=this._selectedOptions)||void 0===i?void 0:i.length){if(this.transformSelectedLabels)return void(this._selectedLabels=(0,this.transformSelectedLabels)(this._selectedOptions));this._selectedLabels="amount"===this.selectedType?this.amountText?this.amountText:`${null===(t=this._selectedOptions)||void 0===t?void 0:t.length} ${u}`:null===(s=this._selectedOptions)||void 0===s?void 0:s.map((i=>this.getOptionLabel(i))).join(", ")}else this._selectedLabels=""}watch15(){this.watch15Fn()}watch16Fn(){var i,t;this.amountChange&&this.amountChange.emit(null!==(t=null===(i=this._selectedOptions)||void 0===i?void 0:i.length)&&void 0!==t?t:0)}watch16(){this.watch16Fn()}watch17Fn(){this.selectAllRef&&(this.selectAllRef.indeterminate=Boolean(this.selectAllIndeterminate))}watch17(){this.watch17Fn()}watch18Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this.selectRef)||void 0===i?void 0:i.validationMessage)||l}watch18(){this.watch18Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select"),this.resetIds(),this._invalidMessage=this.invalidMessage||l,"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((i=>{if(this.detailsRef){const t=i.find((({target:i})=>i===this.detailsRef));t&&!t.isIntersecting&&this.detailsRef.open&&(this.detailsRef.open=!1)}}))),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn(),this.watch6Fn(),this.watch7Fn(),this.watch8Fn(),this.watch9Fn(),this.watch10Fn(),this.watch11Fn(),this.watch12Fn(),this.watch13Fn(),this.watch14Fn(),this.watch15Fn(),this.watch16Fn(),this.watch17Fn(),this.watch18Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,t,l,a,o,d,n,c,v,r,u,p,b,g,k;return s("div",{key:"04344ea736f4311c09459970f6c743516c0a45ba",class:x("db-custom-select",this.className),id:this._id,ref:i=>{this._ref=i},"aria-invalid":"invalid"===this._validity,"data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":"floating"===this.variant&&"tag"===this.selectedType&&this.multiple?"above":this.variant,"data-required":F(this.required),"data-hide-asterisk":D(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":D(this.showLabel),"data-icon":this.icon,"data-show-icon":F(this.showIcon)},s("label",{key:"ed856ad29b0f840ebe37c8edf275267efc780f2c",id:this._labelId},null!==(i=this.label)&&void 0!==i?i:e,s("select",{key:"093be2cd13041a45a95664e083125f5e4e8c2689",role:"none",hidden:!0,id:this._selectId,tabIndex:-1,ref:i=>{this.selectRef=i},form:this.form,name:this.name,"data-custom-validity":this._validity,multiple:A(this.multiple,"multiple"),disabled:A(this.disabled,"disabled"),required:A(this.required,"required"),onChange:i=>this.satisfyReact(i)},(null===(t=this.options)||void 0===t?void 0:t.length)?null===(l=this.options)||void 0===l?void 0:l.map((i=>s("option",{disabled:i.disabled,value:i.value,key:void 0},this.getOptionLabel(i)))):null)),s("details",{key:"e0617c55fb94a72432719b485d922d87cca58d40",ref:i=>{this.detailsRef=i},open:this.open,onToggle:i=>this.handleDropdownToggle(i),onKeyDown:i=>this.handleKeyboardPress(i)},s("slot",{key:"4a4754177ce637816734d8e195d1d34b0e4a9707"}),this.options?s(h,null,s("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":F(this.disabled),tabIndex:this.disabled?-1:void 0,"aria-labelledby":this._labelId},(null===(a=this._selectedLabels)||void 0===a?void 0:a.length)?s("span",{"data-visually-hidden":F("tag"===this.selectedType),id:this._selectedLabelsId},this.selectedPrefix?s("span",{"data-visually-hidden":"true"},this.selectedPrefix):null,this._selectedLabels):null,"tag"===this.selectedType?s("div",null,null===(o=this._selectedOptions)||void 0===o?void 0:o.map((i=>s("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(i),onRemove:t=>this.handleTagRemove(i,t),key:void 0},this.getOptionLabel(i))))):null),s("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?s("div",null,s("db-input",{type:"search",ref:i=>{this.searchInputRef=i},name:this._id,form:this._id,showLabel:!1,value:this._searchValue,label:null!==(d=this.searchLabel)&&void 0!==d?d:e,placeholder:null!==(n=this.searchPlaceholder)&&void 0!==n?n:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:void 0,onInput:i=>this.handleSearch(i)})):null,this._hasNoOptions||this.showLoading?s("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":void 0,semantic:this.showLoading?"informational":"warning"},null!==(c=this.showLoading?this.loadingText:this.noResultsText)&&void 0!==c?c:f):s(h,null,this.selectAllEnabled?s("div",null,s("div",{class:"db-checkbox db-custom-select-list-item"},s("label",null,s("input",{type:"checkbox",value:"select-all",ref:i=>{this.selectAllRef=i},form:this._id,checked:this.selectAllChecked,onChange:i=>this.handleSelectAll(i)}),this.getSelectAllLabel()))):null,s("db-custom-select-list",{multiple:A(this.multiple,"multiple"),label:null!==(r=null!==(v=this.listLabel)&&void 0!==v?v:this.label)&&void 0!==r?r:e},null===(u=this._options)||void 0===u?void 0:u.map((i=>s("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:i.showDivider,icon:i.icon,isGroupTitle:i.isGroupTitle,groupTitle:this.getOptionLabel(i),name:this._id,checked:this.getOptionChecked(i.value),disabled:i.disabled,value:i.value,onChange:()=>this.handleSelect(i.value),key:void 0},i.isGroupTitle?null:this.getOptionLabel(i)))))),s("div",null,s("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(void 0,!0)},null!==(p=this.mobileCloseButtonText)&&void 0!==p?p:m)))):null),(null===(b=this.showClearSelection)||void 0===b||b)&&(null===(g=this._values)||void 0===g?void 0:g.length)?s("db-button",{icon:"cross",variant:"ghost",size:"small",noText:!0,name:this._id,form:this._id,disabled:A(this.disabled,"disabled"),onClick:i=>this.handleClearAll(i)},this.clearSelectionText,s("db-tooltip",{placement:"top"},this.clearSelectionText)):null,s("span",{key:"ea3f5751609a4383f9d381cfbc7947a4b0192880",class:"db-custom-select-placeholder","aria-hidden":F(!0),id:this._placeholderId},null!==(k=this.placeholder)&&void 0!==k?k:this.label),y(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,s("db-infotext",{key:"d8733256a74ba4876d4080a27798f01264d6472d",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"4ca046467d7da79ac48f0e1dddf2712ef2a93074","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}}};export{R as db_custom_select}
|
|
1
|
+
import{r as i,c as t,h as s,F as h}from"./p-kHKR5QG5.js";import{l,a as e,m as a,f as o,g as d,h as n,e as c,d as v,i as r,o as u,k as w,c as f,s as m}from"./p-BdL-nI5y.js";import{h as p,d as b,s as y,m as g,u as k,g as F,e as A,l as D,c as x}from"./p-xkoBSP8R.js";import{D as C}from"./p-D_roHmuC.js";import{D as L}from"./p-CHLgQ9vn.js";import{a as S}from"./p-DOPXnIzL.js";import{b as I}from"./p-D5mInaY7.js";const R=class{constructor(s){i(this,s),this.amountChange=t(this,"amountChange"),this.dropdownToggle=t(this,"dropdownToggle"),this.optionSelected=t(this,"optionSelected"),this.search=t(this,"search"),this.showClearSelection=!0,this.clearSelectionText="Clear selection",this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._selectId=void 0,this._labelId=void 0,this._summaryId=void 0,this._placeholderId=void 0,this._infoTextId=void 0,this._validity="no-validation",this._userInteraction=!1,this.abortController=void 0,this._descByIds=void 0,this._selectedLabels="",this._selectedLabelsId=void 0,this._voiceOverFallback="",this._selectedOptions=[],this.selectAllEnabled=!1,this.searchEnabled=!1,this.amountOptions=0,this._values=[],this._options=[],this._hasNoOptions=!1,this._documentClickListenerCallbackId=void 0,this._internalChangeTimestamp=0,this._documentScrollListenerCallbackId=void 0,this._observer=void 0,this._searchValue=void 0,this.selectAllChecked=!1,this.selectAllIndeterminate=!1,this.satisfyReact=function(i){i.stopPropagation()}}handleDocumentScroll(i){var t,s;(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.contains)&&(null===(s=null==i?void 0:i.target)||void 0===s?void 0:s.contains(this.detailsRef))&&this.handleAutoPlacement()}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,h,e,a,o,d;this.selectRef&&(this.selectRef.value=this.getNativeSelectValue()),(null===(i=this.selectRef)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(h=this.selectRef)||void 0===h?void 0:h.validity.valid)&&this.required?(this.setDescById(this._validMessageId),p()&&(this._voiceOverFallback=null!==(e=this.validMessage)&&void 0!==e?e:w,b((()=>this._voiceOverFallback=""),1e3)),this._validity=null!==(a=this.validation)&&void 0!==a?a:"valid"):y(this.message,this.showMessage)?(this.setDescById(this._messageId),this._validity=null!==(o=this.validation)&&void 0!==o?o:"no-validation"):(this.setDescById(this._placeholderId),this._validity=null!==(d=this.validation)&&void 0!==d?d:"no-validation"):(this.setDescById(this._invalidMessageId),this._invalidMessage=this.invalidMessage||(null===(t=this.selectRef)||void 0===t?void 0:t.validationMessage)||l,p()&&(this._voiceOverFallback=this._invalidMessage,b((()=>this._voiceOverFallback=""),1e3)),this._userInteraction&&(this._validity=null!==(s=this.validation)&&void 0!==s?s:"invalid"))}handleDropdownToggle(i){var t,s;this.dropdownToggle&&(i.stopPropagation(),this.dropdownToggle.emit(i)),i.target instanceof HTMLDetailsElement&&i.target.open?(this._documentClickListenerCallbackId=(new C).addCallback((i=>this.handleDocumentClose(i))),this._documentScrollListenerCallbackId=(new L).addCallback((i=>this.handleDocumentScroll(i))),this.handleAutoPlacement(),null===(t=this._observer)||void 0===t||t.observe(this.detailsRef),i.target.dataset.test||this.handleOpenByKeyboardFocus()):(this._documentClickListenerCallbackId&&(new C).removeCallback(this._documentClickListenerCallbackId),this._documentScrollListenerCallbackId&&(new L).removeCallback(this._documentScrollListenerCallbackId),null===(s=this._observer)||void 0===s||s.unobserve(this.detailsRef))}getNativeSelectValue(){var i,t;return(null===(i=this._values)||void 0===i?void 0:i.length)&&null!==(t=this._values.at(0))&&void 0!==t?t:""}setDescById(i){var t;const s=[];i&&s.push(i),this._selectedLabelsId&&(null===(t=this._selectedLabels)||void 0===t?void 0:t.length)&&s.push(this._selectedLabelsId),this._descByIds=s.join(" ")}getSelectAllLabel(){var i;return null!==(i=this.selectAllLabel)&&void 0!==i?i:e}getOptionLabel(i){var t,s,h;return null!==(h=null!==(t=i.label)&&void 0!==t?t:null===(s=i.value)||void 0===s?void 0:s.toString())&&void 0!==h?h:""}getOptionChecked(i){var t,s;return!(!i||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&(null===(s=this._values)||void 0===s?void 0:s.includes(i))}getTagRemoveLabel(i){const t=this.removeTagsTexts,s=this.options;if(t&&s){const h=s.findIndex((t=>t.value===i.value));if(h>=0&&h<t.length)return t[h]}return`${a} ${this.getOptionLabel(i)}`}handleTagRemove(i,t){t&&t.stopPropagation(),this.handleSelect(i.value),this.handleSummaryFocus()}handleAutoPlacement(){if(this.detailsRef){const i=this.detailsRef.querySelector("article");i&&b((()=>{var t;S(i,this.detailsRef,null!==(t=this.placement)&&void 0!==t?t:"bottom")}),1)}}handleArrowDownUp(i){var t,s,h;if(null===(t=this.detailsRef)||void 0===t?void 0:t.open){if(self.document){const t=self.document.activeElement;if(t)if("checkbox"===t.getAttribute("type")||"radio"===t.getAttribute("type")){const l=null==t?void 0:t.closest("li");if("ArrowDown"===i.key||"ArrowRight"===i.key){let i=null==l?void 0:l.nextElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.nextElementSibling}i||this.handleFocusFirstDropdownCheckbox(t)}else{let i=null==l?void 0:l.previousElementSibling;for(;i;){const t=i.querySelector("input");if(t){t.focus();break}i=i.previousElementSibling}if(!i){const i=this.detailsRef.querySelector('input[type="checkbox"]');if(i&&i!==t)this.handleFocusFirstDropdownCheckbox(t);else{const i=g(this.detailsRef);if(i)b((()=>{i.focus()}),100);else{const i=Array.from(null===(s=this.detailsRef)||void 0===s?void 0:s.querySelectorAll('input[type="checkbox"],input[type="radio"]'));i.length&&(null===(h=i.at(-1))||void 0===h||h.focus())}}}}}else"search"!==t.getAttribute("type")||"ArrowUp"!==i.key&&"ArrowLeft"!==i.key?this.handleFocusFirstDropdownCheckbox(t):(this.handleClose(void 0,!0),this.handleSummaryFocus())}}else"ArrowDown"!==i.key&&"ArrowRight"!==i.key||(this.handleAutoPlacement(),this.detailsRef&&(this.detailsRef.open=!0),this.handleOpenByKeyboardFocus());i.stopPropagation(),i.preventDefault()}handleKeyboardPress(i){var t,s,h;if(i.stopPropagation(),"Escape"===i.key&&(null===(t=this.detailsRef)||void 0===t?void 0:t.open))this.handleClose(void 0,!0),this.handleSummaryFocus();else if("Enter"===i.key&&(null===(s=this.detailsRef)||void 0===s?void 0:s.open)){if(self.document){const t=self.document.activeElement;if(["checkbox","radio"].includes(t.getAttribute("type")||""))t.click(),i.preventDefault();else if("search"===t.getAttribute("type")){const t=null===(h=this._options)||void 0===h?void 0:h.find((i=>!i.isGroupTitle&&!i.disabled));(null==t?void 0:t.value)&&(this.handleSelect(t.value),i.preventDefault())}}}else"ArrowDown"!==i.key&&"ArrowUp"!==i.key&&"ArrowLeft"!==i.key&&"ArrowRight"!==i.key||this.handleArrowDownUp(i)}handleClose(i,t){if(this.detailsRef)if(t)this.detailsRef.open=!1,this.handleSummaryFocus();else if(this.detailsRef.open&&i&&i.relatedTarget){const t=i.relatedTarget;this.detailsRef.contains(t)||"dialog"===t.localName||b((()=>this.detailsRef.open=!1),1)}}handleDocumentClose(i){var t,s;if(i){const h="number"==typeof i.detail?i.target:null===(t=i.detail)||void 0===t?void 0:t.target;(null===(s=this.detailsRef)||void 0===s?void 0:s.open)&&!this.detailsRef.contains(h)&&(this.detailsRef.open=!1)}}handleOptionSelected(i){(new Date).getTime()-this._internalChangeTimestamp<200||(this._values=i,this._userInteraction=!0,this.optionSelected&&this.optionSelected.emit(null!=i?i:[]),this._internalChangeTimestamp=(new Date).getTime())}handleSelect(i){var t;i&&(this.multiple?(null===(t=this._values)||void 0===t?void 0:t.includes(i))?this.handleOptionSelected(this._values.filter((t=>t!==i))):this.handleOptionSelected([...this._values||[],i]):(this.handleOptionSelected([i]),this.handleClose(void 0,!0)))}handleSelectAll(i){var t;if(i.stopPropagation(),(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions)this.handleOptionSelected([]);else{const i=this.searchEnabled&&this.searchInputRef?this.searchInputRef.value:void 0;this.handleOptionSelected(this.options?this.options.filter((t=>{var s;return!t.isGroupTitle&&(!i||(null===(s=t.value)||void 0===s?void 0:s.toLowerCase().includes(i.toLowerCase())))})).map((i=>{var t;return null!==(t=i.value)&&void 0!==t?t:""})):[])}}handleFocusFirstDropdownCheckbox(i){if(this.detailsRef){const t=Array.from(this.detailsRef.querySelectorAll('input[type="checkbox"],input[type="radio"]'));if(t.length){const s=t.at(0),h=s===i&&t.length>1?t.at(1):s;h&&b((()=>{h.focus()}),1)}}}handleOpenByKeyboardFocus(){if(this.detailsRef){const i=g(this.detailsRef);i?b((()=>{i.focus()}),1):this.handleFocusFirstDropdownCheckbox()}}handleSearch(i){if(void 0===i)return;let t;if("string"==typeof i)t=i;else{const s=i;s.stopPropagation(),this.search&&this.search.emit(s),t=s.target.value,this._searchValue=t}this._options=this.options&&t&&0!==t.length?this.options.filter(this.searchFilter?i=>this.searchFilter(i,t):i=>!i.isGroupTitle&&this.getOptionLabel(i).toLowerCase().includes(t.toLowerCase())):this.options}handleClearAll(i){i.stopPropagation(),this.handleOptionSelected([]),this.handleSummaryFocus()}handleSummaryFocus(){var i;this.detailsRef&&(null===(i=this.detailsRef.querySelector("summary"))||void 0===i||i.focus())}resetIds(){var i,t,s;const h=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`custom-select-${k()}`;this._id=h,this._messageId=h+o,this._validMessageId=h+d,this._invalidMessageId=h+n,this._selectId=h+c,this._labelId=h+v,this._summaryId=h+"-summary",this._placeholderId=h+r,this._selectedLabelsId=h+"-selected-labels",this._infoTextId=h+"-info"}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const l=t.item(h);if(l&&"data-density"!==l.name&&(l.name.startsWith("data-")||l.name.startsWith("aria-")))i.setAttribute(l.name,l.value),s.removeAttribute(l.name);else if(l&&"data-density"!==l.name&&"class"!==l.name&&"style"===l.name)i.setAttribute(l.name,l.value),s.removeAttribute(l.name);else if(l&&"class"===l.name){const t=l.value.includes("hydrated"),h=l.value.replace("hydrated","").trim(),e=i.getAttribute("class");i.setAttribute(l.name,`${e?`${e} `:""}${h}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(l.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){this.detailsRef&&this.detailsRef.addEventListener("focusout",(i=>this.handleClose(i)))}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+o;this._labelId=this._id+v,this._selectId=this._id+c,this._validMessageId=this._id+d,this._invalidMessageId=this._id+n,this._placeholderId=this._id+r,y(this.message,this.showMessage)?this.setDescById(i):this.setDescById()}}watch2(){this.watch2Fn()}watch3Fn(){var i;if(this.detailsRef){const t=this.detailsRef.querySelector("summary");t&&t.setAttribute("aria-describedby",null!==(i=this.ariaDescribedBy)&&void 0!==i?i:this._descByIds||"")}}watch3(){this.watch3Fn()}watch4Fn(){void 0!==this.showNoResults?this._hasNoOptions=this.showNoResults:this._options&&(this._hasNoOptions=0===this._options.length)}watch4(){this.watch4Fn()}watch5Fn(){var i;this.selectAllEnabled=Boolean(this.multiple&&(null!==(i=this.showSelectAll)&&void 0!==i?i:this.amountOptions>5))}watch5(){this.watch5Fn()}watch6Fn(){var i;this.searchEnabled=null!==(i=this.showSearch)&&void 0!==i?i:this.amountOptions>9}watch6(){this.watch6Fn()}watch7Fn(){var i;const t=this.values;Array.isArray(t)?this._values!==t&&(this._values=t):null==t&&0!==(null===(i=this._values)||void 0===i?void 0:i.length)&&(this._values=[])}watch7(){this.watch7Fn()}watch8Fn(){this.selectRef&&this.handleValidation()}watch8(){this.watch8Fn()}watch9Fn(){if(this.selectRef){let i=this.abortController;i||(i=new AbortController,this.abortController=i);const t=this.values;I(this.selectRef,(()=>{this.handleOptionSelected(t||(this.selectRef.value?[this.selectRef.value]:[])),this.handleValidation()}),i.signal)}}watch9(){this.watch9Fn()}watch10Fn(){this._validity=this.validation}watch10(){this.watch10Fn()}watch11Fn(){var i,t;0===(null===(i=this._values)||void 0===i?void 0:i.length)?(this.selectAllChecked=!1,this.selectAllIndeterminate=!1):(null===(t=this._values)||void 0===t?void 0:t.length)===this.amountOptions?(this.selectAllIndeterminate=!1,this.selectAllChecked=!0):this._values&&(this.selectAllIndeterminate=!0)}watch11(){this.watch11Fn()}watch12Fn(){var i,t;this._options=this.options,this.amountOptions=null!==(t=null===(i=this.options)||void 0===i?void 0:i.filter((i=>!i.isGroupTitle)).length)&&void 0!==t?t:0}watch12(){this.watch12Fn()}watch13Fn(){this._searchValue=this.searchValue,this.searchValue&&this.handleSearch(this.searchValue)}watch13(){this.watch13Fn()}watch14Fn(){var i,t;(null===(i=this.options)||void 0===i?void 0:i.length)&&(this._selectedOptions=null===(t=this.options)||void 0===t?void 0:t.filter((i=>{var t,s;return!(!i.value||!(null===(t=this._values)||void 0===t?void 0:t.includes))&&!i.isGroupTitle&&(null===(s=this._values)||void 0===s?void 0:s.includes(i.value))})))}watch14(){this.watch14Fn()}watch15Fn(){var i,t,s;if(this.selectedLabels)this._selectedLabels=this.selectedLabels;else if(null===(i=this._selectedOptions)||void 0===i?void 0:i.length){if(this.transformSelectedLabels)return void(this._selectedLabels=(0,this.transformSelectedLabels)(this._selectedOptions));this._selectedLabels="amount"===this.selectedType?this.amountText?this.amountText:`${null===(t=this._selectedOptions)||void 0===t?void 0:t.length} ${u}`:null===(s=this._selectedOptions)||void 0===s?void 0:s.map((i=>this.getOptionLabel(i))).join(", ")}else this._selectedLabels=""}watch15(){this.watch15Fn()}watch16Fn(){var i,t;this.amountChange&&this.amountChange.emit(null!==(t=null===(i=this._selectedOptions)||void 0===i?void 0:i.length)&&void 0!==t?t:0)}watch16(){this.watch16Fn()}watch17Fn(){this.selectAllRef&&(this.selectAllRef.indeterminate=Boolean(this.selectAllIndeterminate))}watch17(){this.watch17Fn()}watch18Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this.selectRef)||void 0===i?void 0:i.validationMessage)||l}watch18(){this.watch18Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-custom-select"),this.resetIds(),this._invalidMessage=this.invalidMessage||l,"undefined"!=typeof window&&"IntersectionObserver"in window&&(this._observer=new IntersectionObserver((i=>{if(this.detailsRef){const t=i.find((({target:i})=>i===this.detailsRef));t&&!t.isIntersecting&&this.detailsRef.open&&(this.detailsRef.open=!1)}}))),this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn(),this.watch5Fn(),this.watch6Fn(),this.watch7Fn(),this.watch8Fn(),this.watch9Fn(),this.watch10Fn(),this.watch11Fn(),this.watch12Fn(),this.watch13Fn(),this.watch14Fn(),this.watch15Fn(),this.watch16Fn(),this.watch17Fn(),this.watch18Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,t,l,a,o,d,n,c,v,r,u,p,b,g,k;return s("div",{key:"04344ea736f4311c09459970f6c743516c0a45ba",class:x("db-custom-select",this.className),id:this._id,ref:i=>{this._ref=i},"aria-invalid":"invalid"===this._validity,"data-custom-validity":this._validity,"data-width":this.formFieldWidth,"data-variant":"floating"===this.variant&&"tag"===this.selectedType&&this.multiple?"above":this.variant,"data-required":F(this.required),"data-hide-asterisk":D(this.showRequiredAsterisk),"data-placement":this.placement,"data-selected-type":this.multiple?this.selectedType:"text","data-hide-label":D(this.showLabel),"data-icon":this.icon,"data-show-icon":F(this.showIcon)},s("label",{key:"ed856ad29b0f840ebe37c8edf275267efc780f2c",id:this._labelId},null!==(i=this.label)&&void 0!==i?i:e,s("select",{key:"093be2cd13041a45a95664e083125f5e4e8c2689",role:"none",hidden:!0,id:this._selectId,tabIndex:-1,ref:i=>{this.selectRef=i},form:this.form,name:this.name,"data-custom-validity":this._validity,multiple:A(this.multiple,"multiple"),disabled:A(this.disabled,"disabled"),required:A(this.required,"required"),onChange:i=>this.satisfyReact(i)},(null===(t=this.options)||void 0===t?void 0:t.length)?null===(l=this.options)||void 0===l?void 0:l.map((i=>s("option",{disabled:i.disabled,value:i.value,key:void 0},this.getOptionLabel(i)))):null)),s("details",{key:"e0617c55fb94a72432719b485d922d87cca58d40",ref:i=>{this.detailsRef=i},open:this.open,onToggle:i=>this.handleDropdownToggle(i),onKeyDown:i=>this.handleKeyboardPress(i)},s("slot",{key:"4a4754177ce637816734d8e195d1d34b0e4a9707"}),this.options?s(h,null,s("summary",{class:"db-custom-select-form-field",id:this._summaryId,"aria-disabled":F(this.disabled),tabIndex:this.disabled?-1:void 0,"aria-labelledby":this._labelId},(null===(a=this._selectedLabels)||void 0===a?void 0:a.length)?s("span",{"data-visually-hidden":F("tag"===this.selectedType),id:this._selectedLabelsId},this.selectedPrefix?s("span",{"data-visually-hidden":"true"},this.selectedPrefix):null,this._selectedLabels):null,"tag"===this.selectedType?s("div",null,null===(o=this._selectedOptions)||void 0===o?void 0:o.map((i=>s("db-tag",{emphasis:"strong",behavior:"removable",removeButton:this.getTagRemoveLabel(i),onRemove:t=>this.handleTagRemove(i,t),key:void 0},this.getOptionLabel(i))))):null),s("db-custom-select-dropdown",{width:this.dropdownWidth},this.searchEnabled?s("div",null,s("db-input",{type:"search",ref:i=>{this.searchInputRef=i},name:this._id,form:this._id,showLabel:!1,value:this._searchValue,label:null!==(d=this.searchLabel)&&void 0!==d?d:e,placeholder:null!==(n=this.searchPlaceholder)&&void 0!==n?n:this.searchLabel,ariaDescribedBy:this._hasNoOptions||this.showLoading?this._infoTextId:void 0,onInput:i=>this.handleSearch(i)})):null,this._hasNoOptions||this.showLoading?s("db-infotext",{id:this._infoTextId,icon:this.showLoading?"circular_arrows":void 0,semantic:this.showLoading?"informational":"warning"},null!==(c=this.showLoading?this.loadingText:this.noResultsText)&&void 0!==c?c:f):s(h,null,this.selectAllEnabled?s("div",null,s("div",{class:"db-checkbox db-custom-select-list-item"},s("label",null,s("input",{type:"checkbox",value:"select-all",ref:i=>{this.selectAllRef=i},form:this._id,checked:this.selectAllChecked,onChange:i=>this.handleSelectAll(i)}),this.getSelectAllLabel()))):null,s("db-custom-select-list",{multiple:A(this.multiple,"multiple"),label:null!==(r=null!==(v=this.listLabel)&&void 0!==v?v:this.label)&&void 0!==r?r:e},null===(u=this._options)||void 0===u?void 0:u.map((i=>s("db-custom-select-list-item",{type:this.multiple?"checkbox":"radio",showDivider:i.showDivider,icon:i.icon,isGroupTitle:i.isGroupTitle,groupTitle:this.getOptionLabel(i),name:this._id,checked:this.getOptionChecked(i.value),disabled:i.disabled,value:i.value,onChange:()=>this.handleSelect(i.value),key:void 0},i.isGroupTitle?null:this.getOptionLabel(i)))))),s("div",null,s("db-button",{variant:"ghost",width:"full",icon:"cross",size:"small",name:this._id,form:this._id,onClick:()=>this.handleClose(void 0,!0)},null!==(p=this.mobileCloseButtonText)&&void 0!==p?p:m)))):null),(null===(b=this.showClearSelection)||void 0===b||b)&&(null===(g=this._values)||void 0===g?void 0:g.length)?s("db-button",{icon:"cross",variant:"ghost",size:"small",noText:!0,name:this._id,form:this._id,disabled:A(this.disabled,"disabled"),onClick:i=>this.handleClearAll(i)},this.clearSelectionText,s("db-tooltip",{placement:"top"},this.clearSelectionText)):null,s("span",{key:"ea3f5751609a4383f9d381cfbc7947a4b0192880",class:"db-custom-select-placeholder","aria-hidden":F(!0),id:this._placeholderId},null!==(k=this.placeholder)&&void 0!==k?k:this.label),y(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||w):null,s("db-infotext",{key:"d8733256a74ba4876d4080a27798f01264d6472d",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"4ca046467d7da79ac48f0e1dddf2712ef2a93074","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],detailsRef:[{watch1:0},{watch3:0}],_id:[{watch2:0}],_descByIds:[{watch3:0}],showNoResults:[{watch4:0}],showLoading:[{watch4:0}],_options:[{watch4:0}],showSelectAll:[{watch5:0}],amountOptions:[{watch5:0},{watch6:0},{watch11:0}],multiple:[{watch5:0}],showSearch:[{watch6:0}],values:[{watch7:0}],_values:[{watch8:0},{watch11:0},{watch14:0}],selectRef:[{watch8:0},{watch9:0},{watch18:0}],validation:[{watch10:0}],options:[{watch12:0},{watch14:0}],searchValue:[{watch13:0}],_selectedOptions:[{watch15:0},{watch16:0}],selectedType:[{watch15:0}],amountText:[{watch15:0}],selectedLabels:[{watch15:0}],transformSelectedLabels:[{watch15:0}],selectAllIndeterminate:[{watch17:0}],selectAllRef:[{watch17:0}],invalidMessage:[{watch18:0}]}}};export{R as db_custom_select}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-
|
|
1
|
+
import{r as t,h as s}from"./p-kHKR5QG5.js";import{a}from"./p-BdL-nI5y.js";import{g as i,c as e}from"./p-xkoBSP8R.js";const d=class{constructor(s){t(this,s),this.initialized=!1}enableAttributePassing(t,s){const a=null==t?void 0:t.closest(s);if(t&&a){const s=a.attributes;for(let i=0;i<s.length;i++){const e=s.item(i);if(e&&"data-density"!==e.name&&(e.name.startsWith("data-")||e.name.startsWith("aria-")))t.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"data-density"!==e.name&&"class"!==e.name&&"style"===e.name)t.setAttribute(e.name,e.value),a.removeAttribute(e.name);else if(e&&"class"===e.name){const s=e.value.includes("hydrated"),i=e.value.replace("hydrated","").trim(),d=t.getAttribute("class");t.setAttribute(e.name,`${d?`${d} `:""}${i}`),s?a.setAttribute("class","hydrated"):a.removeAttribute(e.name)}}}}watch0Fn(){var t;if(this._ref&&this.initialized&&(null===(t=this.placement)||void 0===t?void 0:t.startsWith("corner"))){let t=this._ref.parentElement;t&&t.localName.includes("badge")&&(t=t.parentElement),t&&(t.dataset.hasBadge="true")}}watch0(){this.watch0Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-badge"),this.initialized=!0,this.watch0Fn()}render(){var t,d,h,r;return s("span",{key:"c566e49b9d78c51fe2615eb8b55182997485e5bb",class:e("db-badge",this.className),ref:t=>{this._ref=t},id:null!==(t=this.id)&&void 0!==t?t:null===(d=this.propOverrides)||void 0===d?void 0:d.id,"data-semantic":this.semantic,"data-size":this.size,"data-emphasis":this.emphasis,"data-placement":this.placement,"data-wrap":i(this.wrap),"data-label":(null===(h=this.placement)||void 0===h?void 0:h.startsWith("corner"))&&(null!==(r=this.label)&&void 0!==r?r:a)},this.text?this.text:s("slot",null))}static get watchers(){return{_ref:[{watch0:0}],initialized:[{watch0:0}]}}};export{d as db_badge}
|