xv-webcomponents 1.3.45 → 1.3.47-qa.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/dist/cjs/xv-accordion-v2_45.cjs.entry.js +3 -2
- package/dist/cjs/xv-accordion-v2_45.cjs.entry.js.map +1 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +3 -2
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -1
- package/dist/esm/xv-accordion-v2_45.entry.js +3 -2
- package/dist/esm/xv-accordion-v2_45.entry.js.map +1 -1
- package/dist/xv-webcomponents/{p-02a1b031.entry.js → p-5864b74b.entry.js} +2 -2
- package/dist/xv-webcomponents/{p-02a1b031.entry.js.map → p-5864b74b.entry.js.map} +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/package.json +1 -1
|
@@ -77632,6 +77632,7 @@ const XvDropdown = class {
|
|
|
77632
77632
|
return;
|
|
77633
77633
|
// Needs to wait next Javascript tik
|
|
77634
77634
|
setTimeout(() => {
|
|
77635
|
+
var _a;
|
|
77635
77636
|
const options = this.el.querySelectorAll(DropdownItemSelector);
|
|
77636
77637
|
let selectedValues;
|
|
77637
77638
|
if (this.multiple) {
|
|
@@ -77641,7 +77642,7 @@ const XvDropdown = class {
|
|
|
77641
77642
|
if (Array.isArray(this.defaultValue)) {
|
|
77642
77643
|
console.warn('xv-dropdown-v2: defaultValue should be a single value when "multiple" is false.');
|
|
77643
77644
|
}
|
|
77644
|
-
selectedValues = [Array.isArray(this.defaultValue) ? this.defaultValue[0] : this.defaultValue];
|
|
77645
|
+
selectedValues = [(_a = (Array.isArray(this.defaultValue) ? this.defaultValue[0] : this.defaultValue)) === null || _a === void 0 ? void 0 : _a.toString()];
|
|
77645
77646
|
}
|
|
77646
77647
|
const selectedSet = new Set(selectedValues);
|
|
77647
77648
|
index$1.forEach(options, (option) => {
|
|
@@ -77740,7 +77741,7 @@ const XvDropdown = class {
|
|
|
77740
77741
|
}
|
|
77741
77742
|
/* endregion Search methods */
|
|
77742
77743
|
render() {
|
|
77743
|
-
return (index.h(index.Host, { key: '
|
|
77744
|
+
return (index.h(index.Host, { key: '0d2da359d1c3c9094454e0e1f83f38a3f8957596', class: { 'xv-dropdown': true, [this.variant]: !!this.variant }, role: "combobox", size: this.size, open: this.open, error: !!this.error, disabled: this.disabled, tabindex: this.disabled ? -1 : false }, (this.label || this.info) && (index.h("label", { key: '1dc9bfa91c75a41eb9ac87e17212be98bfba0f89', class: "label" }, index.h("slot", { key: '81a761d26b7563022338ad53b106bb01dab90d75', name: "label" }, this.label), this.info && index.h("xv-tooltip-v2", { key: 'cd590f4ae90a9402a42e19d267c2fb1127d1faef', class: "label_info", message: this.info }))), index.h("div", { key: 'b5f479a6a0e5bc0072c3971068ed2da9292c8c40', class: "xv-dropdown-control control", onClick: this.handleOpen }, (this.multiple && this.selectedMap.size > 0) && (index.h("xv-tag-v2", { key: '66444d7cf8e8a4a52f090beb47b8ee6b83ef8cba', class: "control_count", onCloseClick: this.clearHandle, closeable: !this.required, bg: "var(--background-inverse)", color: "var(--icon-inverse)" }, this.selectedMap.size)), this.selected.length ? (index.h("p", { class: "control_value" }, this.selected.join(', '))) : (index.h("p", { class: "control_placeholder" }, this.placeholder || '')), this.renderIcon(), index.h("svg", { key: 'b88ff544a4bba43ac9e0daf1fcf1e121960d9c77', class: "control_arrow", focusable: "false", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", "aria-hidden": "true", width: "16", height: "16", viewBox: "0 0 16 16" }, index.h("path", { key: 'a2f53b7e9f64bcef0a47394bfc0d84aec917323d', d: "M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z" }))), this.open && index.h("div", { key: '70cea55425292ac166d60bb1e376e5293d5a6b99', class: "options" }, this.search && (index.h("div", { key: 'a523f3c15c620940de5bf565e936371e8e3934d8', class: "options_search" }, index.h("xv-text-input-v2", { key: '1d7f8accf192a3f53d7bb442772a129c2c7c25ac', type: "search", block: true, autocomplete: "off", size: this.size, value: this.searchQuery, placeholder: this.searchPlaceholder, onValueChange: this.handleSearchInput }))), index.h("slot", { key: "xv-dropdown-options" })), (this.helper || typeof this.error === 'string' || this.warning) && (index.h("p", { key: 'f1fb554410555ad9cca7eec0222200576fa34942', class: "helper" }, this.error || this.warning || this.helper))));
|
|
77744
77745
|
}
|
|
77745
77746
|
componentWillLoad() {
|
|
77746
77747
|
this.setDefaultValues();
|