@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.
- 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/dist/styles/css/theme.css +2 -2
- package/package.json +1 -1
|
@@ -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: '
|
|
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: '
|
|
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); }
|