@cscfi/csc-ui 2.2.10 → 2.2.12

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.
@@ -1993,7 +1993,7 @@ const CSelect = class {
1993
1993
  this._setValue(event.detail);
1994
1994
  }
1995
1995
  _selectOption({ value, name }) {
1996
- var _a;
1996
+ var _a, _b, _c;
1997
1997
  (_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
1998
1998
  const selection = this._setCurrentIndex({ name, value });
1999
1999
  if (this.optionElementsExist && this.optionAsSelection && selection) {
@@ -2001,9 +2001,9 @@ const CSelect = class {
2001
2001
  this._selectionElement.classList.add('c-input-menu__selection--show');
2002
2002
  this._selectionElement.replaceChildren(clone);
2003
2003
  }
2004
- this._dropdownElement.updateList();
2004
+ (_b = this._dropdownElement) === null || _b === void 0 ? void 0 : _b.updateList();
2005
2005
  this._preventDialogOpen = true;
2006
- this._inputElement.focus();
2006
+ (_c = this._inputElement) === null || _c === void 0 ? void 0 : _c.focus();
2007
2007
  }
2008
2008
  _setValue({ value, name }) {
2009
2009
  this.value = this.returnObject ? { name, value } : value;
@@ -2089,12 +2089,12 @@ const CSelect = class {
2089
2089
  }
2090
2090
  render() {
2091
2091
  const itemType = this.optionElementsExist ? 'option' : 'item';
2092
- return (index.h(index.Host, { key: '44469f8a65994971033ccdd17db364a7a2b05031' }, index.h("c-dropdown", { key: 'bbc11df651bf6ecfd9bcb3c11b38efc3ace6bfa5', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "select" }, index.h("c-input", { key: '6f19558e4ef18b3aec1155d37f86ffcd07062e3a', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => !this.disabled && this._dropdownElement.open() }, index.h("slot", { key: 'e90aa3e9c71cb220dd36b4c48aa606d5432e9216', name: "pre", slot: "pre" }), index.h("div", { key: '542869bf1a8e162798e2d7e38964383d643ac6c5', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2092
+ return (index.h(index.Host, { key: 'fa4bbed472aaf7e75cb358d4896158b9bb967bcb' }, index.h("c-dropdown", { key: '53db3600ce7c2697d6424a13af97fcbcce43a505', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "select" }, index.h("c-input", { key: '24fb3f6cc64ae04176810315a8a3e764da57eb4a', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => !this.disabled && this._dropdownElement.open() }, index.h("slot", { key: 'd7151d813bad283c2142ea92da1f91106f364e71', name: "pre", slot: "pre" }), index.h("div", { key: '98dee6be1850998f1f20004bc5db47115ac06d2d', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2093
2093
  this.value &&
2094
2094
  this.clearable &&
2095
2095
  this._renderReset(), !this.loading &&
2096
2096
  (!this.value || !this.clearable) &&
2097
- this._renderChevron(), index.h("slot", { key: '403cf21005383c491f3bbe42517fae4f1785375e', onSlotchange: () => this._onSlotChange() })), index.h("slot", { key: '810329ec1606db953c64c58ee9e77a954aaf2de8', name: "post", slot: "post" })))));
2097
+ this._renderChevron(), index.h("slot", { key: '4ec879c39c676e011f223dba96bc50d145fbf0b6', onSlotchange: () => this._onSlotChange() })), index.h("slot", { key: '8508f178964fe4637eca12303c25f5cbcfcce4be', name: "post", slot: "post" })))));
2098
2098
  }
2099
2099
  static get formAssociated() { return true; }
2100
2100
  get el() { return index.getElement(this); }