@randstad-uca/design-system 1.0.71 → 1.0.73
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.
|
@@ -6,6 +6,9 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
6
6
|
minDate?: string;
|
|
7
7
|
maxDate?: string;
|
|
8
8
|
eighteenOrOlder: boolean;
|
|
9
|
+
private _maxLength;
|
|
10
|
+
get maxLength(): number;
|
|
11
|
+
set maxLength(value: number);
|
|
9
12
|
private isOpen;
|
|
10
13
|
private selectedDate;
|
|
11
14
|
private viewDate;
|
|
@@ -55,9 +58,9 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
55
58
|
* Maneja el evento de entrada del usuario en el input.
|
|
56
59
|
* Valida el formato de la fecha y actualiza el estado del componente.
|
|
57
60
|
|
|
58
|
-
* @param
|
|
61
|
+
* @param event - Objeto de evento de entrada.
|
|
59
62
|
*/
|
|
60
|
-
handleInput(
|
|
63
|
+
handleInput(event: Event): void;
|
|
61
64
|
/**
|
|
62
65
|
* Cierra el calendario si el clic se realiza fuera del componente.
|
|
63
66
|
* Se ejecuta en el `document` para detectar clics en cualquier lugar de la página.
|
|
@@ -166,6 +169,10 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
166
169
|
* Maneja los eventos de teclado en el botón del calendario.
|
|
167
170
|
*/
|
|
168
171
|
handleCalendarButtonKeydown(event: KeyboardEvent): void;
|
|
172
|
+
/**
|
|
173
|
+
* Restringe la entrada del input a solo dígitos (0-9) y el guion (-).
|
|
174
|
+
*/
|
|
175
|
+
onlyNumericAndDash(event: Event): void;
|
|
169
176
|
/**
|
|
170
177
|
* Renderiza el componente DatePicker, incluyendo el input, botones y el overlay del calendario.
|
|
171
178
|
*/
|