@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.
- 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/dist/types/additional-types.d.ts +14 -0
- package/package.json +3 -3
- 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
|
@@ -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: '
|
|
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: '
|
|
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); }
|