@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.
- package/dist/cjs/c-autocomplete_34.cjs.entry.js +5 -5
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/collection/components/c-select/c-select.js +5 -5
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/components/c-select.js +5 -5
- package/dist/components/c-select.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/{p-77699a28.entry.js → p-ff9cb75f.entry.js} +2 -2
- package/dist/csc-ui/{p-77699a28.entry.js.map → p-ff9cb75f.entry.js.map} +1 -1
- package/dist/esm/c-autocomplete_34.entry.js +5 -5
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/package.json +1 -1
|
@@ -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: '
|
|
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: '
|
|
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); }
|