@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.
- package/dist/cjs/c-autocomplete_34.cjs.entry.js +2 -4
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/collection/components/c-select/c-select.js +2 -4
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/components/c-select.js +2 -4
- package/dist/components/c-select.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/{p-8fe7a288.entry.js → p-23b2eb59.entry.js} +2 -2
- package/dist/csc-ui/p-23b2eb59.entry.js.map +1 -0
- package/dist/esm/c-autocomplete_34.entry.js +2 -4
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/stencil.config.js +1 -8
- package/dist/stencil.config.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/styles/css/theme.css +0 -102
- package/dist/components/styles/scss/_theme.scss +0 -100
- package/dist/components/styles/tailwind/theme.js +0 -120
- package/dist/csc-ui/dist/styles/css/theme.css +0 -102
- package/dist/csc-ui/dist/styles/scss/_theme.scss +0 -100
- package/dist/csc-ui/dist/styles/tailwind/theme.js +0 -120
- package/dist/csc-ui/p-8fe7a288.entry.js.map +0 -1
- /package/dist/{collection/dist/styles → styles}/css/theme.css +0 -0
- /package/dist/{collection/dist/styles → styles}/scss/_theme.scss +0 -0
- /package/dist/{collection/dist/styles → styles}/tailwind/theme.js +0 -0
|
@@ -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: '
|
|
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: '
|
|
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); }
|