@roadtrip/components 3.33.2 → 3.33.4
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 +60 -44
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js.map +1 -1
- package/dist/collection/components/counter/counter.css +1 -0
- package/dist/collection/components/counter/counter.js +17 -1
- package/dist/collection/components/counter/counter.js.map +1 -1
- package/dist/collection/components/drawer/drawer.css +1 -0
- package/dist/collection/components/input/input.js +41 -45
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/spinner/spinner.css +1 -1
- package/dist/esm/road-badge_14.entry.js +60 -44
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js.map +1 -1
- package/dist/roadtrip/{p-55897254.entry.js → p-678b1218.entry.js} +3 -3
- package/dist/roadtrip/p-678b1218.entry.js.map +1 -0
- package/dist/roadtrip/p-6d3d947e.entry.js +2 -0
- package/dist/roadtrip/p-6d3d947e.entry.js.map +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/types/components/counter/counter.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +1 -1
- package/hydrate/index.js +61 -45
- package/hydrate/index.mjs +61 -45
- package/package.json +1 -1
- package/dist/roadtrip/p-04913d58.entry.js +0 -2
- package/dist/roadtrip/p-04913d58.entry.js.map +0 -1
- package/dist/roadtrip/p-55897254.entry.js.map +0 -1
|
@@ -125,7 +125,7 @@ const Col = class {
|
|
|
125
125
|
};
|
|
126
126
|
Col.style = RoadColStyle0;
|
|
127
127
|
|
|
128
|
-
const counterCss = ".sc-road-counter-h{position:relative;z-index:0;display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{width:3rem;font-size:var(--road-font-size-24);line-height:1.4;background:var(--road-surface);border:1px solid var(--road-button-tertiary-outline)}road-button.sc-road-counter:hover,road-button.sc-road-counter:focus{background:var(--road-button-tertiary-variant)}road-button.sc-road-counter road-icon.sc-road-counter{display:flex;fill:var(--road-primary)}.disabled.sc-road-counter{margin-right:-1px;margin-left:-1px;pointer-events:none;cursor:not-allowed;background:var(--road-surface-disabled);border:1px solid var(--road-on-surface-disabled);opacity:inherit}.disabled.sc-road-counter:focus{background:var(--road-disabled)}.disabled.sc-road-counter road-icon.sc-road-counter{fill:var(--road-grey-50)}road-button.btn-md.sc-road-counter{width:2.5rem}road-button.btn-sm.sc-road-counter{width:2rem}.counter-md.sc-road-counter{height:2.5rem}.counter-sm.sc-road-counter{height:2rem}.counter-md.sc-road-counter road-input.sc-road-counter{--height:2.5rem}.counter-md.sc-road-counter road-button.sc-road-counter{min-width:2.5rem}.counter-sm.sc-road-counter road-input.sc-road-counter{--height:2rem}.counter-sm.sc-road-counter road-button.sc-road-counter{min-width:2rem}";
|
|
128
|
+
const counterCss = ".sc-road-counter-h{position:relative;z-index:0;display:block}road-input.sc-road-counter{--input-text-align:center;--border-radius:0;--margin-bottom:0}road-button.sc-road-counter{position:relative;width:3rem;font-size:var(--road-font-size-24);line-height:1.4;background:var(--road-surface);border:1px solid var(--road-button-tertiary-outline)}road-button.sc-road-counter:hover,road-button.sc-road-counter:focus{background:var(--road-button-tertiary-variant)}road-button.sc-road-counter road-icon.sc-road-counter{display:flex;fill:var(--road-primary)}.disabled.sc-road-counter{margin-right:-1px;margin-left:-1px;pointer-events:none;cursor:not-allowed;background:var(--road-surface-disabled);border:1px solid var(--road-on-surface-disabled);opacity:inherit}.disabled.sc-road-counter:focus{background:var(--road-disabled)}.disabled.sc-road-counter road-icon.sc-road-counter{fill:var(--road-grey-50)}road-button.btn-md.sc-road-counter{width:2.5rem}road-button.btn-sm.sc-road-counter{width:2rem}.counter-md.sc-road-counter{height:2.5rem}.counter-sm.sc-road-counter{height:2rem}.counter-md.sc-road-counter road-input.sc-road-counter{--height:2.5rem}.counter-md.sc-road-counter road-button.sc-road-counter{min-width:2.5rem}.counter-sm.sc-road-counter road-input.sc-road-counter{--height:2rem}.counter-sm.sc-road-counter road-button.sc-road-counter{min-width:2rem}";
|
|
129
129
|
const RoadCounterStyle0 = counterCss;
|
|
130
130
|
|
|
131
131
|
const Counter = class {
|
|
@@ -240,8 +240,24 @@ const Counter = class {
|
|
|
240
240
|
componentWillLoad() {
|
|
241
241
|
this.onValueChange(this.value);
|
|
242
242
|
}
|
|
243
|
+
/** Vérifie et applique le `text-indent` si `prepend` est présent */
|
|
244
|
+
updateIndentation() {
|
|
245
|
+
const hasPrepend = !!this.el.querySelector('[slot="prepend"]');
|
|
246
|
+
const formControl = this.el.querySelector('.form-control');
|
|
247
|
+
const formLabel = this.el.querySelector('.form-label');
|
|
248
|
+
if (formControl) {
|
|
249
|
+
formControl.style.textIndent = hasPrepend ? '' : '';
|
|
250
|
+
}
|
|
251
|
+
if (formLabel) {
|
|
252
|
+
formLabel.style.textIndent = hasPrepend ? '' : '';
|
|
253
|
+
}
|
|
254
|
+
}
|
|
243
255
|
componentDidLoad() {
|
|
244
256
|
const buttons = this.el.querySelectorAll('road-button');
|
|
257
|
+
this.updateIndentation(); // Appliquer les styles au montage
|
|
258
|
+
// Observer les mutations (au cas où des éléments sont ajoutés dynamiquement)
|
|
259
|
+
const observer = new MutationObserver(() => this.updateIndentation());
|
|
260
|
+
observer.observe(this.el, { childList: true, subtree: true });
|
|
245
261
|
// Ajouter les événements pour chaque road-button
|
|
246
262
|
buttons.forEach((btn) => {
|
|
247
263
|
btn.addEventListener('touchstart', () => {
|
|
@@ -270,7 +286,7 @@ const Counter = class {
|
|
|
270
286
|
}
|
|
271
287
|
render() {
|
|
272
288
|
const dataCi = this.isDustbinVisible ? "road-dustbin" : "";
|
|
273
|
-
return (h("road-input-group", { key: '
|
|
289
|
+
return (h("road-input-group", { key: '0f8b1b0a35803e52ba57c371654f65069ee24eb1', class: this.size && `counter-${this.size}` }, h("road-button", { key: '769528d0e5b027e1b28cb9ef04b3c8f8c26f34d5', slot: "prepend", size: this.size, onClick: this.decrease, class: this.leftIconClasses, "data-cy": "road-decrease" }, h("road-icon", { key: 'fe666f6455a7dfd2f944df71fdac8fb858dc9d56', name: this.isDustbinVisible ? "delete-forever" : "navigation-add-less", ref: (el) => this.iconCounterLess = el, size: this.size, "data-cy": dataCi, role: "button" })), h("road-input", { key: '315b93bf129f7ae04138f584f060b1c9d5eac6c9', ref: (el) => this.inputElement = el, type: "number", min: this.min.toString(), max: (this.max && this.max.toString()), step: this.step, value: this.value, onRoadChange: this.onRoadChange, onKeyUp: this.checkValue, "data-cy": "road-input-counter", readonly: this.readonly, label: "Quantit\u00E9" }), h("road-button", { key: 'e17851794c015e99c34c8d04bccce046b57bad05', slot: "append", size: this.size, onClick: this.increase, class: this.rightIconClasses, "data-cy": "road-increase" }, h("road-icon", { key: 'e0b4898bdb9bab9f48acf38a4a6a2b31520c955d', name: "navigation-add-more", size: this.size, role: "button" }))));
|
|
274
290
|
}
|
|
275
291
|
get el() { return getElement(this); }
|
|
276
292
|
static get watchers() { return {
|
|
@@ -280,7 +296,7 @@ const Counter = class {
|
|
|
280
296
|
let counterIds = 0;
|
|
281
297
|
Counter.style = RoadCounterStyle0;
|
|
282
298
|
|
|
283
|
-
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:var(--road-elevation-hight)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-footer{padding:var(--road-spacing-05);background-color:var(--road-surface)}.drawer-footer.remove-padding{padding:0}.drawer-header-inverse{--header-icon:var(--road-on-primary);--header-color:var(--road-on-primary);--header-background:var(--road-primary-variant);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:var(--road-body-medium)}.drawer-body{overflow-y:auto;padding:0 var(--road-spacing-05) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}.drawer-body{padding:0 var(--road-spacing-08) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}.drawer-footer{padding:var(--road-spacing-05) var(--road-spacing-08)}.drawer-footer.remove-padding{padding:0}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}";
|
|
299
|
+
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;opacity:0;transition:opacity 0.15s linear, visibility 0.15s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay)}.drawer-dialog{position:relative;width:100%;pointer-events:none;transition:transform 0.3s ease-out;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .drawer-dialog{transform:translateX(100%)}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;max-height:100vh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:var(--road-elevation-hight)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;height:3.5rem;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-footer{padding:var(--road-spacing-05);background-color:var(--road-surface)}.drawer-footer.remove-padding{padding:0}.drawer-header-inverse{--header-icon:var(--road-on-primary);--header-color:var(--road-on-primary);--header-background:var(--road-primary-variant);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;height:3.5rem;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;height:3.5rem;padding-left:3.5rem;margin:0;font-size:var(--road-body-medium)}.drawer-body{overflow-y:auto;padding:0 var(--road-spacing-05) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}.drawer-body{padding:0 var(--road-spacing-08) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}.drawer-footer{padding:var(--road-spacing-05) var(--road-spacing-08)}.drawer-footer.remove-padding{padding:0}}:host(.drawer-open){visibility:visible !important;opacity:1}:host(.drawer-open) .drawer-dialog{transform:none}";
|
|
284
300
|
const RoadDrawerStyle0 = drawerCss;
|
|
285
301
|
|
|
286
302
|
const Drawer = class {
|
|
@@ -17889,54 +17905,57 @@ const Input = class {
|
|
|
17889
17905
|
if (this.type === 'number' && this.blockdecimal) {
|
|
17890
17906
|
newValue = newValue.replace(/[.,]/g, ''); // Supprime les décimales si `blockdecimal` est activé
|
|
17891
17907
|
}
|
|
17892
|
-
// Convertir en nombre et ajuster selon min/max
|
|
17893
|
-
let numericValue = parseFloat(newValue);
|
|
17894
|
-
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
17895
|
-
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
17896
|
-
if (!isNaN(numericValue)) {
|
|
17897
|
-
if (minValue !== undefined && numericValue < minValue) {
|
|
17898
|
-
numericValue = minValue;
|
|
17899
|
-
}
|
|
17900
|
-
if (maxValue !== undefined && numericValue > maxValue) {
|
|
17901
|
-
numericValue = maxValue;
|
|
17902
|
-
}
|
|
17903
|
-
newValue = numericValue.toString();
|
|
17904
|
-
}
|
|
17905
17908
|
if (this.type === 'number') {
|
|
17909
|
+
// Convertir en nombre et ajuster selon min/max
|
|
17910
|
+
let numericValue = parseFloat(newValue);
|
|
17911
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
17912
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
17913
|
+
if (!isNaN(numericValue)) {
|
|
17914
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
17915
|
+
numericValue = minValue;
|
|
17916
|
+
}
|
|
17917
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
17918
|
+
numericValue = maxValue;
|
|
17919
|
+
}
|
|
17920
|
+
newValue = numericValue.toString();
|
|
17921
|
+
input.value = newValue; // Force l'affichage de la valeur max
|
|
17922
|
+
ev.preventDefault(); // Empêche la saisie supplémentaire
|
|
17923
|
+
}
|
|
17906
17924
|
this.value = newValue;
|
|
17907
|
-
input.value = newValue; // Mise à jour immédiate du champ
|
|
17908
17925
|
}
|
|
17909
|
-
|
|
17926
|
+
// Vérification si la valeur a réellement changé avant de la mettre à jour
|
|
17927
|
+
if (this.value !== newValue) {
|
|
17910
17928
|
this.value = newValue;
|
|
17929
|
+
this.roadInput.emit(ev);
|
|
17911
17930
|
}
|
|
17912
|
-
this.roadInput.emit(ev);
|
|
17913
|
-
this.roadChange.emit({ value: newValue });
|
|
17914
17931
|
// Appeler enforceMinMaxValue à chaque modification de la valeur
|
|
17915
17932
|
this.enforceMinMaxValue();
|
|
17916
17933
|
};
|
|
17917
17934
|
this.onBlur = () => {
|
|
17918
17935
|
let value = this.getValue();
|
|
17919
|
-
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
17920
|
-
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
17921
|
-
let numericValue = parseFloat(value);
|
|
17922
|
-
if (!isNaN(numericValue)) {
|
|
17923
|
-
if (minValue !== undefined && numericValue < minValue) {
|
|
17924
|
-
numericValue = minValue;
|
|
17925
|
-
}
|
|
17926
|
-
if (maxValue !== undefined && numericValue > maxValue) {
|
|
17927
|
-
numericValue = maxValue;
|
|
17928
|
-
}
|
|
17929
|
-
value = numericValue.toString();
|
|
17930
|
-
}
|
|
17931
17936
|
if (this.type === 'number') {
|
|
17937
|
+
const minValue = this.min !== undefined ? parseFloat(this.min) : undefined;
|
|
17938
|
+
const maxValue = this.max !== undefined ? parseFloat(this.max) : undefined;
|
|
17939
|
+
let numericValue = parseFloat(value);
|
|
17940
|
+
if (!isNaN(numericValue)) {
|
|
17941
|
+
if (minValue !== undefined && numericValue < minValue) {
|
|
17942
|
+
numericValue = minValue;
|
|
17943
|
+
}
|
|
17944
|
+
if (maxValue !== undefined && numericValue > maxValue) {
|
|
17945
|
+
numericValue = maxValue;
|
|
17946
|
+
}
|
|
17947
|
+
value = numericValue.toString();
|
|
17948
|
+
}
|
|
17932
17949
|
this.value = value;
|
|
17933
17950
|
const input = document.getElementById(this.inputId);
|
|
17934
17951
|
input.value = value;
|
|
17935
17952
|
}
|
|
17936
|
-
|
|
17953
|
+
// Vérification si la valeur a changé avant mise à jour
|
|
17954
|
+
if (this.value !== value) {
|
|
17937
17955
|
this.value = value;
|
|
17956
|
+
this.roadBlur.emit(value);
|
|
17957
|
+
this.roadChange.emit({ value });
|
|
17938
17958
|
}
|
|
17939
|
-
this.roadBlur.emit(value);
|
|
17940
17959
|
// Appeler enforceMinMaxValue lors de la perte de focus
|
|
17941
17960
|
this.enforceMinMaxValue();
|
|
17942
17961
|
};
|
|
@@ -17964,10 +17983,10 @@ const Input = class {
|
|
|
17964
17983
|
/**
|
|
17965
17984
|
* Update the native input element when the value changes
|
|
17966
17985
|
*/
|
|
17967
|
-
valueChanged() {
|
|
17968
|
-
|
|
17969
|
-
|
|
17970
|
-
|
|
17986
|
+
valueChanged(newValue, oldValue) {
|
|
17987
|
+
if (newValue !== oldValue) {
|
|
17988
|
+
this.debouncedRoadChange(newValue);
|
|
17989
|
+
}
|
|
17971
17990
|
}
|
|
17972
17991
|
async enforceMinMaxValue() {
|
|
17973
17992
|
let value = this.getValue();
|
|
@@ -17983,12 +18002,9 @@ const Input = class {
|
|
|
17983
18002
|
}
|
|
17984
18003
|
value = numericValue.toString();
|
|
17985
18004
|
}
|
|
17986
|
-
if (this.type === 'number') {
|
|
17987
|
-
this.value = value;
|
|
17988
|
-
const input = document.getElementById(this.inputId);
|
|
17989
|
-
input.value = value;
|
|
18005
|
+
if (this.type === 'number' && this.value !== value) {
|
|
18006
|
+
this.value = value; // Déclenche @Watch('value')
|
|
17990
18007
|
}
|
|
17991
|
-
this.roadChange.emit({ value });
|
|
17992
18008
|
}
|
|
17993
18009
|
getValue() {
|
|
17994
18010
|
return typeof this.value === 'number'
|
|
@@ -18004,7 +18020,7 @@ const Input = class {
|
|
|
18004
18020
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
18005
18021
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
18006
18022
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
18007
|
-
return (h(Host, { key: '
|
|
18023
|
+
return (h(Host, { key: 'e8296b902967681ad3483560e720236c98dc4f9f', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, h("input", { key: '8ad175738f8fca4ca345aff156e3124db00afbdf', 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' }), h("label", { key: 'f9e63512f533d2cf89a8bbfd6fffd8824a721211', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && h("p", { key: 'ec34468bc61c42943ee5b275081e02be859e45e2', class: "invalid-feedback" }, h("road-icon", { key: '83204d0fecc77eb3d8e8bc9697cd9bfc7ddb3be5', slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), this.error), this.helper && this.helper !== '' && h("p", { key: 'b639735e1508e1aac0ba5800edf9649fb1847155', class: "helper" }, this.helper), this.type && this.type == 'password' && h("slot", { key: 'c33c73bc53ae22f3b3bd97021a5c4f320cff89f9', name: "checklistPassword" })));
|
|
18008
18024
|
}
|
|
18009
18025
|
static get watchers() { return {
|
|
18010
18026
|
"debounce": ["debounceChanged"],
|