@cscfi/csc-ui 2.2.6 → 2.2.7

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.
@@ -1974,14 +1974,12 @@ const CSelect = class {
1974
1974
  if (!this.value && this.optionAsSelection) {
1975
1975
  (_a = this._selectionElement) === null || _a === void 0 ? void 0 : _a.replaceChildren();
1976
1976
  }
1977
- console.log('VALUE VAIHTUS', v);
1978
1977
  this._selectOption(this.returnObject ? v : { name: v, value: v });
1979
1978
  }
1980
1979
  onSelectOption(event) {
1981
1980
  this._setValue(event.detail);
1982
1981
  }
1983
1982
  _selectOption({ value, name }) {
1984
- console.log('selecteerataan', value, name);
1985
1983
  this._dropdownElement.close();
1986
1984
  const selection = this._setCurrentIndex({ name, value });
1987
1985
  if (this.optionElementsExist && this.optionAsSelection && selection) {
@@ -2077,12 +2075,12 @@ const CSelect = class {
2077
2075
  }
2078
2076
  render() {
2079
2077
  const itemType = this.optionElementsExist ? 'option' : 'item';
2080
- return (h(Host, { key: '613012a2a976bfc76187551debee5b697d346511' }, h("c-dropdown", { key: '7dc82d5d850751275c2fac9c735cb3b7bfcb9a7a', 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: '27318e5a72b5b841178c03634a6ef8e35ba341e4', 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: 'e63f20eda0bcfa82da0ff72b3b23e5031a68e3b8', name: "pre", slot: "pre" }), h("div", { key: 'ea4fd5210affea7f940dc75fff5a239596e5d2ef', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2078
+ return (h(Host, { key: '52f875ca03cb88ec39c013c42e235b572ed01cdf' }, h("c-dropdown", { key: '4d3f14c317780b32430e871526359509173d9115', 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: 'c7885524a9a8879856dfce1619e4691654075270', 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: '82809542fbc315e95e30de7b3e2fc1dedad208af', name: "pre", slot: "pre" }), h("div", { key: '3e52607084d4c0f571a4f4c1158d62593fa0778f', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
2081
2079
  this.value &&
2082
2080
  this.clearable &&
2083
2081
  this._renderReset(), !this.loading &&
2084
2082
  (!this.value || !this.clearable) &&
2085
- this._renderChevron(), h("slot", { key: '707c03feddc424c875d52f6c3958469dad01c59b', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '43f262f49f2f950aa8a14e4c266fbaac8f7061c9', name: "post", slot: "post" })))));
2083
+ this._renderChevron(), h("slot", { key: '89b436dbbd01e3d74317da154870dd37f62d131b', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '7fc00de1ddf7dfdf38c752372127356796c4037e', name: "post", slot: "post" })))));
2086
2084
  }
2087
2085
  static get formAssociated() { return true; }
2088
2086
  get el() { return getElement(this); }