@roadtrip/components 3.33.1 → 3.33.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/road-badge_14.cjs.entry.js +7 -1
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/input.js +7 -1
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/esm/road-badge_14.entry.js +7 -1
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/roadtrip/{p-3e36cd02.entry.js → p-55897254.entry.js} +2 -2
- package/dist/roadtrip/{p-3e36cd02.entry.js.map → p-55897254.entry.js.map} +1 -1
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/hydrate/index.js +104 -98
- package/hydrate/index.mjs +104 -98
- package/package.json +1 -1
|
@@ -17910,6 +17910,9 @@ const Input = class {
|
|
|
17910
17910
|
this.value = newValue;
|
|
17911
17911
|
input.value = newValue; // Mise à jour immédiate du champ
|
|
17912
17912
|
}
|
|
17913
|
+
else {
|
|
17914
|
+
this.value = newValue;
|
|
17915
|
+
}
|
|
17913
17916
|
this.roadInput.emit(ev);
|
|
17914
17917
|
this.roadChange.emit({ value: newValue });
|
|
17915
17918
|
// Appeler enforceMinMaxValue à chaque modification de la valeur
|
|
@@ -17934,6 +17937,9 @@ const Input = class {
|
|
|
17934
17937
|
const input = document.getElementById(this.inputId);
|
|
17935
17938
|
input.value = value;
|
|
17936
17939
|
}
|
|
17940
|
+
else {
|
|
17941
|
+
this.value = value;
|
|
17942
|
+
}
|
|
17937
17943
|
this.roadBlur.emit(value);
|
|
17938
17944
|
// Appeler enforceMinMaxValue lors de la perte de focus
|
|
17939
17945
|
this.enforceMinMaxValue();
|
|
@@ -18002,7 +18008,7 @@ const Input = class {
|
|
|
18002
18008
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
18003
18009
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
18004
18010
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
18005
|
-
return (index.h(index.Host, { key: '
|
|
18011
|
+
return (index.h(index.Host, { key: '4af2964df51193dacd3ea36a1fd79f2c6b01fcfc', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, index.h("input", { key: '82db811a6fff01df156a857bdf2168d62a5455b7', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, "data-cy": 'road-input' }), index.h("label", { key: '5d3fa862ed44249d044043892df85beada63b70b', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && index.h("p", { key: 'fc369a8e4fe6ae36fefb24063f025db5badb62a8', class: "invalid-feedback" }, index.h("road-icon", { key: '1371b9544470df3fc800af1b36e4ed1a6f292511', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && index.h("p", { key: 'a2ff9b16b7fac10183ef756ba8994db79dd8b205', class: "helper" }, this.helper), this.type && this.type == 'password' && index.h("slot", { key: 'aa664412f19a89162c4b89519dadded5d67954e3', name: "checklistPassword" })));
|
|
18006
18012
|
}
|
|
18007
18013
|
static get watchers() { return {
|
|
18008
18014
|
"debounce": ["debounceChanged"],
|