@cscfi/csc-ui 2.2.6 → 2.2.8

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