@cscfi/csc-ui 3.0.1 → 3.0.2
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 +16 -15
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/cjs/c-slider.cjs.entry.js +1 -1
- package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/c-slider.entry.cjs.js.map +1 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js +1 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper-tab.entry.cjs.js.map +1 -1
- package/dist/cjs/c-swiper.cjs.entry.js +1 -1
- package/dist/cjs/c-swiper.cjs.entry.js.map +1 -1
- package/dist/cjs/c-swiper.entry.cjs.js.map +1 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +1 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab-buttons.entry.cjs.js.map +1 -1
- package/dist/cjs/c-tab.cjs.entry.js +1 -1
- package/dist/cjs/c-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tab.entry.cjs.js.map +1 -1
- package/dist/cjs/csc-ui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +5 -2
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -1
- package/dist/collection/components/c-button/c-button.js +5 -2
- package/dist/collection/components/c-button/c-button.js.map +1 -1
- package/dist/collection/components/c-checkbox/c-checkbox.js +9 -3
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -1
- package/dist/collection/components/c-dropdown/c-dropdown.js +6 -3
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
- package/dist/collection/components/c-input/c-input.js +10 -4
- package/dist/collection/components/c-input/c-input.js.map +1 -1
- package/dist/collection/components/c-otp-input/c-otp-input.js +31 -4
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
- package/dist/collection/components/c-radio-group/c-radio-group.js +5 -2
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -1
- package/dist/collection/components/c-select/c-select.js +6 -3
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/collection/components/c-slider/c-slider.js +13 -4
- package/dist/collection/components/c-slider/c-slider.js.map +1 -1
- package/dist/collection/components/c-swiper/c-swiper.js +5 -2
- package/dist/collection/components/c-swiper/c-swiper.js.map +1 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +5 -2
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -1
- package/dist/collection/components/c-switch/c-switch.js +5 -2
- package/dist/collection/components/c-switch/c-switch.js.map +1 -1
- package/dist/collection/components/c-tab/c-tab.js +5 -2
- package/dist/collection/components/c-tab/c-tab.js.map +1 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +5 -2
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -1
- package/dist/collection/components/c-text-field/c-text-field.js +13 -4
- package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
- package/dist/components/c-autocomplete.js +3 -3
- package/dist/components/c-autocomplete.js.map +1 -1
- package/dist/components/c-button.js +1 -1
- package/dist/components/c-button.js.map +1 -1
- package/dist/components/c-checkbox.js +1 -1
- package/dist/components/c-data-table.js +1 -1
- package/dist/components/c-dropdown.js +1 -1
- package/dist/components/c-input.js +1 -1
- package/dist/components/c-otp-input.js +5 -3
- package/dist/components/c-otp-input.js.map +1 -1
- package/dist/components/c-radio-group.js +1 -1
- package/dist/components/c-radio-group.js.map +1 -1
- package/dist/components/c-select.js +4 -4
- package/dist/components/c-select.js.map +1 -1
- package/dist/components/c-slider.js +1 -1
- package/dist/components/c-slider.js.map +1 -1
- package/dist/components/c-swiper-tab.js +1 -1
- package/dist/components/c-swiper-tab.js.map +1 -1
- package/dist/components/c-swiper.js +1 -1
- package/dist/components/c-swiper.js.map +1 -1
- package/dist/components/c-switch.js +1 -1
- package/dist/components/c-switch.js.map +1 -1
- package/dist/components/c-tab-buttons.js +1 -1
- package/dist/components/c-tab-buttons.js.map +1 -1
- package/dist/components/c-tab.js +1 -1
- package/dist/components/c-tab.js.map +1 -1
- package/dist/components/c-text-field.js +2 -2
- package/dist/components/c-text-field.js.map +1 -1
- package/dist/components/{p-DeeeJrXJ.js → p-BkP7vhXP.js} +3 -3
- package/dist/components/{p-DeeeJrXJ.js.map → p-BkP7vhXP.js.map} +1 -1
- package/dist/components/{p-DIuWEWhF.js → p-BylTQ7VG.js} +4 -4
- package/dist/components/{p-DIuWEWhF.js.map → p-BylTQ7VG.js.map} +1 -1
- package/dist/components/{p-Cv2W5q7M.js → p-CFPfmHLA.js} +4 -4
- package/dist/components/{p-Cv2W5q7M.js.map → p-CFPfmHLA.js.map} +1 -1
- package/dist/csc-ui/c-slider.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-swiper-tab.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-swiper.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-tab-buttons.entry.esm.js.map +1 -1
- package/dist/csc-ui/c-tab.entry.esm.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/{p-ee61b0f5.entry.js → p-1af49cd8.entry.js} +2 -2
- package/dist/csc-ui/{p-ee61b0f5.entry.js.map → p-1af49cd8.entry.js.map} +1 -1
- package/dist/csc-ui/{p-fb91bce3.entry.js → p-49bd4d5d.entry.js} +2 -2
- package/dist/csc-ui/p-49bd4d5d.entry.js.map +1 -0
- package/dist/csc-ui/{p-97f3194f.entry.js → p-7574f00f.entry.js} +2 -2
- package/dist/csc-ui/{p-97f3194f.entry.js.map → p-7574f00f.entry.js.map} +1 -1
- package/dist/csc-ui/{p-7b8caa28.entry.js → p-a8ea6c44.entry.js} +2 -2
- package/dist/csc-ui/{p-7b8caa28.entry.js.map → p-a8ea6c44.entry.js.map} +1 -1
- package/dist/csc-ui/{p-42f25668.entry.js → p-aea7f08c.entry.js} +2 -2
- package/dist/csc-ui/p-aea7f08c.entry.js.map +1 -0
- package/dist/csc-ui/{p-3ffb48e3.entry.js → p-ea1bcd6c.entry.js} +2 -2
- package/dist/csc-ui/{p-3ffb48e3.entry.js.map → p-ea1bcd6c.entry.js.map} +1 -1
- package/dist/esm/c-autocomplete_34.entry.js +16 -15
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/esm/c-slider.entry.js +1 -1
- package/dist/esm/c-slider.entry.js.map +1 -1
- package/dist/esm/c-swiper-tab.entry.js +1 -1
- package/dist/esm/c-swiper-tab.entry.js.map +1 -1
- package/dist/esm/c-swiper.entry.js +1 -1
- package/dist/esm/c-swiper.entry.js.map +1 -1
- package/dist/esm/c-tab-buttons.entry.js +1 -1
- package/dist/esm/c-tab-buttons.entry.js.map +1 -1
- package/dist/esm/c-tab.entry.js +1 -1
- package/dist/esm/c-tab.entry.js.map +1 -1
- package/dist/esm/csc-ui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +1 -0
- package/dist/types/components.d.ts +52 -0
- package/package.json +1 -1
- package/vscode-data.json +4 -0
- package/dist/csc-ui/p-42f25668.entry.js.map +0 -1
- package/dist/csc-ui/p-fb91bce3.entry.js.map +0 -1
|
@@ -261,7 +261,7 @@ const CAutocomplete = class {
|
|
|
261
261
|
}
|
|
262
262
|
render() {
|
|
263
263
|
const itemType = this.optionElementsExist ? 'option' : 'item';
|
|
264
|
-
return (index.h(index.Host, { key: '
|
|
264
|
+
return (index.h(index.Host, { key: '78ffcfd591a16d2991b1517d0500edac131b31e4' }, index.h("c-dropdown", { key: '7bb4696ca59c247ad154887f9dac664bca78b762', 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: "autocomplete", onKeyDown: (event) => this._handleKeyDown(event) }, index.h("c-input", { key: '02bd0f888b2f6436479da3ed0f03720971ccb419', 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.query, variant: "select" }, index.h("slot", { key: '6bc336aa7167ffb104e242db04e4a873c8d43b20', name: "pre", slot: "pre" }), index.h("div", { key: 'a495b0508898a4687e300dcdff4cefe3213543b1', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading && this.value && this._renderReset(), !this.loading && !this.value && this._renderChevron(), index.h("slot", { key: '994932ecf1ee214b8d96c996a268a34682a8a2bc', onSlotchange: () => this._handleSlotChange() })), index.h("slot", { key: '2e967acc2e86985103fb4ee48ef4a5ca78d91c8f', name: "post", slot: "post" })))));
|
|
265
265
|
}
|
|
266
266
|
static get formAssociated() { return true; }
|
|
267
267
|
get el() { return index.getElement(this); }
|
|
@@ -413,7 +413,7 @@ const CButton = class {
|
|
|
413
413
|
default: 24,
|
|
414
414
|
large: 28,
|
|
415
415
|
};
|
|
416
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
416
|
+
return (index.h(index.Host, Object.assign({ key: '1e7fd3d5ed864159709a2e34ec23fa62830e84b8', class: hostClasses }, hostAttributes), index.h(Tag, Object.assign({ key: '372d34c304df775577e9165ae24b88f299a38d2c' }, attributes, linkAttributes), index.h("div", { key: '3ab7cc2472bda14f499a520c4dd53a0543ead5ba', class: contentClasses, ref: (el) => (this._container = el) }, index.h("div", { key: '929fbd77601b9f58d7d0002e4213a50ae495dfd0', class: innerClasses }, this.loading && (index.h("div", { key: '90e97a37732c2903b718c11439232f563294eb7d', class: "c-button__loader" }, index.h("c-spinner", { key: '277ee152de7e3c61891c52ee51f771f85df0a5ed', color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), index.h("slot", { key: '7b6a4797d7bd515f8171b8d83a3c3a5b30c3be81' })), this._containerhasDescriptionSlot && (index.h("div", { key: '479ed7791480a8ac29864b53cad7db65826eba3f', class: descriptionSlotClasses }, index.h("slot", { key: '634af8d8b67366d3e28f9eefd961c5cc68d1b34c', name: "description" })))), index.h("c-ripple", { key: '670f5e91b610d7e7d19684a725cfec20d0537eec', ref: (el) => (this._rippleElement = el) }))));
|
|
417
417
|
}
|
|
418
418
|
get hostElement() { return index.getElement(this); }
|
|
419
419
|
};
|
|
@@ -607,7 +607,7 @@ const CCheckbox = class {
|
|
|
607
607
|
'c-checkbox__label--indeterminate': this.indeterminate,
|
|
608
608
|
};
|
|
609
609
|
const slotHasContent = !!this.el.childNodes.length;
|
|
610
|
-
return (index.h(index.Host, { key: '
|
|
610
|
+
return (index.h(index.Host, { key: 'e39e3e681c8b1267e58182872f704cb048e14daa' }, index.h("div", { key: '83a582b3231bfafc6f3deabe3b5cad87c1dac99c', class: wrapperClasses }, index.h("input", Object.assign({ key: '9b20de6459795c6b8f41d1aa31212fa8dc071bf6', class: "visuallyhidden", id: "checkbox" }, (!!this.hostName ? { name: this.hostName } : {}), { type: "checkbox", "aria-checked": this.checked.toString(), "aria-disabled": this.disabled.toString(), checked: this.checked ? true : undefined, disabled: this.disabled, onChange: (event) => this._toggleState(event) })), index.h("label", { key: 'ef2eb908f56cab3de39a53270a95cea892db99ec', class: labelClasses, htmlFor: "checkbox" }, index.h("div", { key: 'f260766abb707826ac5498301a2966d6f714c66f', class: "ripple", ref: (el) => (this._container = el) }, index.h("svg", { key: '8d43f917054de11772dd246871947a2291086d4a', viewBox: "0 0 100 100" }, !this.indeterminate && this.checked && (index.h("path", { key: '448595e010c4292f113b58837f6dca92522b6acd', class: "path", d: "M 12 52 l 24 24 l 47 -47 l -3 -3 l -44 44 l -21 -21 l -3 3" })), this.indeterminate && (index.h("path", { key: 'd88bb390971e37d265a2ac5676cf890ebca09729', class: "path", d: "M20 56 h60 v-8 h-60 z" }))), index.h("c-ripple", { key: '67101de46a7627092f9280756fe8b310a95e2635', ref: (el) => (this._rippleElement = el) })), (!!this.label || slotHasContent) && (index.h("div", { key: '186fa5f1b2aeb8750a72e4be36c8182b1fe8b903', class: "c-checkbox__label-content" }, !!this.label ? this.label : index.h("slot", null), this.required && index.h("span", { key: '6b9f54993ec9bcc98780bf36401ce6aaf887e78e', class: "required" }, "\u00A0*"))))), !this.hideDetails && (index.h("c-message", { key: '1a73cca7a518fcd65370f67b09ba6ae257e0eb15', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
|
|
611
611
|
}
|
|
612
612
|
static get formAssociated() { return true; }
|
|
613
613
|
get el() { return index.getElement(this); }
|
|
@@ -915,10 +915,10 @@ const CDropdown = class {
|
|
|
915
915
|
this._dialog.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 60 + 'px';
|
|
916
916
|
this._list.style.maxHeight = 42 * (this.itemsPerPage + 0.5) + 'px';
|
|
917
917
|
}
|
|
918
|
-
return (index.h(index.Host, { key: '
|
|
918
|
+
return (index.h(index.Host, { key: 'b58ae0fe3d90bd8e263d984c8adfcd7ba69542b2' }, index.h("slot", { key: '90e86251b83b8de59558cfb60ac3df1cf2eb5854', name: "default" }), index.h("div", { key: '4b379e54ce1cb488198afc6840d51966141f9755', class: "dummy", ref: (el) => (this._dummyElement = el) }), index.h("dialog", { key: '6a1dd0a47539925e47795ab76d37f51501850531', tabindex: "-1", ref: (el) => (this._dialog = el), class: { mobile: this._isMobile }, onCancel: () => this.close() }, index.h("div", { key: 'eeb468dd141e5ac7a93c70b7cac582fdcd9709af', onClick: (event) => event.stopPropagation() }, index.h("div", { key: '11ac444328a818e98b37d4a6bdc65ad7d19b327d', id: 'announce-' + this.hostId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: '640c66fc88bb98cdb62dc3af65158efde0dbdf5e', class: "input-top-wrapper" }, index.h("slot", { key: '2e703c88def55ef621585e27195a214383a6c12f', name: "input-top" })), index.h("ul", { key: '65851489643b542324542640957607e3a32a0b0d', ref: (el) => (this._list = el), id: `${this.hostId}--results`, role: "listbox", "aria-expanded": this.isOpen.toString(), class: { active: this.isOpen, mobile: this._isMobile }, tabindex: "-1" }, this.renderedList), index.h("div", { key: 'f9ec6613e04c8e21edf653575bf7f5f3d6dd8e4a', class: {
|
|
919
919
|
active: this._openedOnTop,
|
|
920
920
|
'input-bottom-wrapper': true,
|
|
921
|
-
} }, index.h("slot", { key: '
|
|
921
|
+
} }, index.h("slot", { key: '2929820c1e7111840188de878064e894301996f4', name: "input-bottom" }))))));
|
|
922
922
|
}
|
|
923
923
|
get el() { return index.getElement(this); }
|
|
924
924
|
static get watchers() { return {
|
|
@@ -1200,9 +1200,9 @@ const CInput = class {
|
|
|
1200
1200
|
filled: !!this.value,
|
|
1201
1201
|
[`c-input--${this.variant}`]: true,
|
|
1202
1202
|
};
|
|
1203
|
-
return (index.h(index.Host, { key: '
|
|
1203
|
+
return (index.h(index.Host, { key: 'f8c8304a7e5f6a0877f25f2b7b05abaf1eb23179', disabled: this.disabled }, index.h("div", { key: 'b212f0ba4c1000bf0b2bfe1aca234805711f57ab', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: 'a1b0297c42dbf3e703c230295475f127a3a7e28d', class: containerClasses }, index.h("div", { key: '00264009b65a422c2bd15f43faf9d42663319fec', class: "c-input__control" }, index.h("div", { key: '547508cab3a12ed1bf6a08227e94d534f35d9ade', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), index.h("div", { key: '94972f5043b342ebe707b6e414312e8bfc755ef7', class: "c-input__field", style: {
|
|
1204
1204
|
'--_c-input-label-position': this.preSlotWidth + 'px',
|
|
1205
|
-
} }, index.h("slot", { key: '
|
|
1205
|
+
} }, index.h("slot", { key: 'ec60946cb3fca05831d61f26884a17a6608e2cb1', name: "pre" }), this._renderLabel(), index.h("slot", { key: '8444580d01b12ccf10f1c7adec7dc22dab33b19f' }))), this.variant === 'select' && index.h("slot", { key: '5617c313953ec9a336ef09635e916ee7b75a1687', name: "dropdown" }), !this.hideDetails && (index.h("c-message", { key: '3958358864da3d8d858d45c2f63ac7dbbb53f654', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
|
|
1206
1206
|
}
|
|
1207
1207
|
get el() { return index.getElement(this); }
|
|
1208
1208
|
static get watchers() { return {
|
|
@@ -1353,6 +1353,7 @@ const COtpInput = class {
|
|
|
1353
1353
|
this.internals = hostRef.$hostElement$.attachInternals();
|
|
1354
1354
|
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
1355
1355
|
}
|
|
1356
|
+
this.hasAutofocus = false;
|
|
1356
1357
|
this.hideDetails = false;
|
|
1357
1358
|
this.hint = '';
|
|
1358
1359
|
this.length = 6;
|
|
@@ -1474,7 +1475,7 @@ const COtpInput = class {
|
|
|
1474
1475
|
this.internals.setFormValue(value);
|
|
1475
1476
|
}
|
|
1476
1477
|
_renderInput(index$1) {
|
|
1477
|
-
return (index.h("input", { id: `${this.id}--input-${index$1 + 1}`, ref: (el) => (this._inputs[index$1] = el), "aria-label": `Enter code - digit number - ${index$1 + 1} of ${this.length}`, type: "tel", maxlength: "1", onFocus: () => this._onFocus(index$1), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index$1 === 0 && this._onPaste(event) }));
|
|
1478
|
+
return (index.h("input", { id: `${this.id}--input-${index$1 + 1}`, ref: (el) => (this._inputs[index$1] = el), "aria-label": `Enter code - digit number - ${index$1 + 1} of ${this.length}`, type: "tel", maxlength: "1", autofocus: this.hasAutofocus && index$1 === 0, onFocus: () => this._onFocus(index$1), onInput: (event) => this._onInput(event), onKeyDown: (event) => this._onKeyDown(event), onPaste: (event) => index$1 === 0 && this._onPaste(event) }));
|
|
1478
1479
|
}
|
|
1479
1480
|
componentWillLoad() {
|
|
1480
1481
|
COtpInput._uniqueId += 1;
|
|
@@ -1488,9 +1489,9 @@ const COtpInput = class {
|
|
|
1488
1489
|
'c-otp-input': true,
|
|
1489
1490
|
'c-otp-input--hide-details': this.hideDetails,
|
|
1490
1491
|
};
|
|
1491
|
-
return (index.h(index.Host, { key: '
|
|
1492
|
+
return (index.h(index.Host, { key: '667f455d92cfed29614a171844fffbddbdd095ac', id: this.id, style: { '--_c-otp-input-count': this.length.toString() }, class: { error: !this.valid } }, index.h("div", { key: '34bb64a4946079e47805559d8023426f4b318994', id: 'announce-' + this.id, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), index.h("div", { key: 'a16170f26b38296f58d276a0efb66139af80c193', class: classes }, new Array(this.length)
|
|
1492
1493
|
.fill(0)
|
|
1493
|
-
.map((_, index) => this._renderInput(index)), index.h("c-message", { key: '
|
|
1494
|
+
.map((_, index) => this._renderInput(index)), index.h("c-message", { key: 'ae559a3af5bc1b935f2d612d876434673ee2c77f', hint: this.hint, inputId: this.elementId, valid: this.valid, validation: this.validation }))));
|
|
1494
1495
|
}
|
|
1495
1496
|
static get formAssociated() { return true; }
|
|
1496
1497
|
static get watchers() { return {
|
|
@@ -1645,7 +1646,7 @@ const CRadioGroup = class {
|
|
|
1645
1646
|
'c-radio-group--inline': this.inline,
|
|
1646
1647
|
'c-radio-group--error': !this.valid,
|
|
1647
1648
|
};
|
|
1648
|
-
return (index.h("div", { key: '
|
|
1649
|
+
return (index.h("div", { key: '76d6e3dfc23cad82e1433f013224fb53cf73e135', class: wrapperClasses, role: "radiogroup", "aria-labelledby": "c-radio-group__label" }, (!!this.label || slotHasContent) && (index.h("label", { key: '98c0741b64d70823cb6f289e26e5563a299ffe50', class: "c-radio-group__label" }, !!this.label && this.label, index.h("slot", { key: 'df39b5c2db389320642e537268726deb63a04d28', onSlotchange: this._handleSlotChange }), this.required && index.h("span", { key: '84702ed228ddac533b049d3177ea7d6befdc0584', class: "required" }, "\u00A0*"))), index.h("div", { key: '26de4abc56e6b046746e5fc16d8dd87300423f84', class: "c-radio-group__items" }, this.items.map((item, index) => this._getRadioButton(item, index))), !this.hideDetails && (index.h("c-message", { key: 'e773aa806a21c5ff2800b5ac7360ce1eb7f53cd0', hint: this.hint, inputId: this._id, valid: this.valid, validation: this.validation }))));
|
|
1649
1650
|
}
|
|
1650
1651
|
static get formAssociated() { return true; }
|
|
1651
1652
|
get el() { return index.getElement(this); }
|
|
@@ -2016,12 +2017,12 @@ const CSelect = class {
|
|
|
2016
2017
|
}
|
|
2017
2018
|
render() {
|
|
2018
2019
|
const itemType = this.optionElementsExist ? 'option' : 'item';
|
|
2019
|
-
return (index.h(index.Host, { key: '
|
|
2020
|
+
return (index.h(index.Host, { key: '9bc83df1678ea67de11c256f76f56eb48470da46' }, index.h("c-dropdown", { key: 'a0588bda28ba00f62b2d7d328465930c4b5c72d1', 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: '655330cc6b4f77573a8bad7a4cb62e1b4cb48f95', 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: '030b0dbf8bc3ac77a26e001aef455c6dd5e673bc', name: "pre", slot: "pre" }), index.h("div", { key: 'f466d49c3e689bb2756649b070f42a0bef5c37a4', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
|
|
2020
2021
|
this.value &&
|
|
2021
2022
|
this.clearable &&
|
|
2022
2023
|
this._renderReset(), !this.loading &&
|
|
2023
2024
|
(!this.value || !this.clearable) &&
|
|
2024
|
-
this._renderChevron(), index.h("slot", { key: '
|
|
2025
|
+
this._renderChevron(), index.h("slot", { key: '7aabcdbe7c9040da0432b2a3c04405d20d54eb16', onSlotchange: () => this._onSlotChange() })), index.h("slot", { key: 'a540b11f410c55f0cd6dfa75947356b10e7f6253', name: "post", slot: "post" })))));
|
|
2025
2026
|
}
|
|
2026
2027
|
static get formAssociated() { return true; }
|
|
2027
2028
|
get el() { return index.getElement(this); }
|
|
@@ -2358,7 +2359,7 @@ const CSwitch = class {
|
|
|
2358
2359
|
'c-switch__slider--disabled': !!this.hostDisabled,
|
|
2359
2360
|
'c-switch__slider--loading': !!this.loading,
|
|
2360
2361
|
};
|
|
2361
|
-
return (index.h("label", { key: '
|
|
2362
|
+
return (index.h("label", { key: 'bb0e1127380905e000dd9308fb2e1db1ef1eb769', class: classes, htmlFor: this.hostId }, index.h("div", { key: 'd1bd4e59d70d7178c29fc56eefa2056f590116cc', class: "c-switch__input" }, index.h("input", { key: 'c25aa86f6d6dd975c92628a96991a0ce43a80d0d', id: this.hostId, "aria-checked": this.checked.toString(), type: "checkbox", role: "switch", disabled: this.hostDisabled, checked: this.checked ? true : undefined, onChange: () => this._toggleState() }), index.h("span", { key: '0be767406ea95b4bf265affd5aacd12c23dd1883', class: sliderClasses }, index.h("c-spinner", { key: '27e38878935c667e009c83b80870bf95d9f9c9cd', size: 14, width: 2, color: "#fff" }))), this.hasLabel ? (index.h("div", { class: "c-switch__label" }, index.h("slot", null), this.required && index.h("span", { class: "required" }, "\u00A0*"))) : null));
|
|
2362
2363
|
}
|
|
2363
2364
|
static get formAssociated() { return true; }
|
|
2364
2365
|
get host() { return index.getElement(this); }
|
|
@@ -2536,7 +2537,7 @@ const CTextField = class {
|
|
|
2536
2537
|
return (index.h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, index.h("path", { d: this.passwordIcon })));
|
|
2537
2538
|
}
|
|
2538
2539
|
render() {
|
|
2539
|
-
return (index.h(index.Host, { key: '
|
|
2540
|
+
return (index.h(index.Host, { key: '394c89bca0bc12e2e32aa6083fa1400ff547868a' }, index.h("c-input", { key: '4e256c06a911dd3e4713e3e488eb44234338a46b', autofocus: this.automaticFocus, 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, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, index.h("slot", { key: 'f07c1c4ee4d4281c29d6e2313318c6749e09095b', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), index.h("slot", { key: '0ffc4fd22f26234c4b624ec459d373ca669b430d', name: "post" }))));
|
|
2540
2541
|
}
|
|
2541
2542
|
static get formAssociated() { return true; }
|
|
2542
2543
|
get hiddenEl() { return index.getElement(this); }
|