@cscfi/csc-ui 2.2.10 → 2.2.11

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.
@@ -1989,7 +1989,7 @@ const CSelect = class {
1989
1989
  this._setValue(event.detail);
1990
1990
  }
1991
1991
  _selectOption({ value, name }) {
1992
- var _a;
1992
+ var _a, _b, _c;
1993
1993
  (_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
1994
1994
  const selection = this._setCurrentIndex({ name, value });
1995
1995
  if (this.optionElementsExist && this.optionAsSelection && selection) {
@@ -1997,9 +1997,9 @@ const CSelect = class {
1997
1997
  this._selectionElement.classList.add('c-input-menu__selection--show');
1998
1998
  this._selectionElement.replaceChildren(clone);
1999
1999
  }
2000
- this._dropdownElement.updateList();
2000
+ (_b = this._dropdownElement) === null || _b === void 0 ? void 0 : _b.updateList();
2001
2001
  this._preventDialogOpen = true;
2002
- this._inputElement.focus();
2002
+ (_c = this._inputElement) === null || _c === void 0 ? void 0 : _c.focus();
2003
2003
  }
2004
2004
  _setValue({ value, name }) {
2005
2005
  this.value = this.returnObject ? { name, value } : value;
@@ -2085,12 +2085,12 @@ const CSelect = class {
2085
2085
  }
2086
2086
  render() {
2087
2087
  const itemType = this.optionElementsExist ? 'option' : 'item';
2088
- return (h(Host, { key: '44469f8a65994971033ccdd17db364a7a2b05031' }, 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" }, 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() }, h("slot", { key: 'e90aa3e9c71cb220dd36b4c48aa606d5432e9216', name: "pre", slot: "pre" }), h("div", { key: '542869bf1a8e162798e2d7e38964383d643ac6c5', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2088
+ return (h(Host, { key: 'fa4bbed472aaf7e75cb358d4896158b9bb967bcb' }, 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" }, 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() }, h("slot", { key: 'd7151d813bad283c2142ea92da1f91106f364e71', name: "pre", slot: "pre" }), h("div", { key: '98dee6be1850998f1f20004bc5db47115ac06d2d', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2089
2089
  this.value &&
2090
2090
  this.clearable &&
2091
2091
  this._renderReset(), !this.loading &&
2092
2092
  (!this.value || !this.clearable) &&
2093
- this._renderChevron(), h("slot", { key: '403cf21005383c491f3bbe42517fae4f1785375e', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '810329ec1606db953c64c58ee9e77a954aaf2de8', name: "post", slot: "post" })))));
2093
+ this._renderChevron(), h("slot", { key: '4ec879c39c676e011f223dba96bc50d145fbf0b6', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '8508f178964fe4637eca12303c25f5cbcfcce4be', name: "post", slot: "post" })))));
2094
2094
  }
2095
2095
  static get formAssociated() { return true; }
2096
2096
  get el() { return getElement(this); }