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.
@@ -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: '6d46bad2d26a51c8fee8903c0a67a18a57ef174a', 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: 'c40255b7f9a2101e7fcc4d4b1f6fe7124110d49b', class: "label" }, index.h("slot", { key: '0ecb8341d6209bc6fe564e153f79c2501f25c579', name: "label" }, this.label), this.info && index.h("xv-tooltip-v2", { key: '946b109edb9678934ee5f2cbb802e8533ff0da05', class: "label_info", message: this.info }))), index.h("div", { key: '0af39b93f9033bc984c9e62199e50611c16db1f3', class: "xv-dropdown-control control", onClick: this.handleOpen }, (this.multiple && this.selectedMap.size > 0) && (index.h("xv-tag-v2", { key: '95d7a2b32dcde1b81ff2ea72a953c0b8b53eb7a9', 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: 'f653ff1120571a8afa62a029c305d7752fcdca09', 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: '7627257dd3ffbee13b9fc1eeedac6361cec229ea', d: "M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z" }))), this.open && index.h("div", { key: '37a7842477747b253198c3b7cb7cc5bb84361a0a', class: "options" }, this.search && (index.h("div", { key: '4f274a69620ae530e56ce40c9b2459be28e92b84', class: "options_search" }, index.h("xv-text-input-v2", { key: '9e4781ac99f8dd1c43325167b4bb0204c9c39aff', 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: 'e5ef31b06e062e536f53256bc2dbfddeba205c47', class: "helper" }, this.error || this.warning || this.helper))));
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();