@randstad-uca/design-system 1.0.82 → 1.0.83
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/components/Bubble.d.ts +32 -0
- package/dist/components/CalendarOverlay.d.ts +19 -1
- package/dist/components/DatePicker.d.ts +12 -1
- package/dist/components/Modal.d.ts +2 -0
- package/dist/components/Select.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +198 -76
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/stories/Bubble.stories.d.ts +39 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './Icon';
|
|
3
|
+
import '../styles/buttons.css';
|
|
4
|
+
export declare class RandstadBubble extends LitElement {
|
|
5
|
+
message: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
position: 'top' | 'bottom';
|
|
8
|
+
variant: 'bubble' | 'circle';
|
|
9
|
+
visible: boolean;
|
|
10
|
+
icon?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
fontFamily?: string;
|
|
14
|
+
width?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
top?: string;
|
|
17
|
+
left?: string;
|
|
18
|
+
private isAnimating;
|
|
19
|
+
private hideTimeout?;
|
|
20
|
+
static styles: import("lit").CSSResult;
|
|
21
|
+
/**
|
|
22
|
+
* Se ejecuta cuando el componente se desconecta del DOM.
|
|
23
|
+
* Limpiamos el timer para evitar fugas de memoria y errores.
|
|
24
|
+
*/
|
|
25
|
+
disconnectedCallback(): void;
|
|
26
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
27
|
+
private startDurationTimer;
|
|
28
|
+
private clearDurationTimer;
|
|
29
|
+
show(): void;
|
|
30
|
+
hide(): void;
|
|
31
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
32
|
+
}
|
|
@@ -16,7 +16,12 @@ export declare class CalendarOverlay extends LitElement {
|
|
|
16
16
|
maxDate: Date | null;
|
|
17
17
|
type: 'date' | 'month';
|
|
18
18
|
/**
|
|
19
|
-
|
|
19
|
+
* Indica si este es el último elemento focusable del formulario/modal.
|
|
20
|
+
* Se utiliza para aplicar espaciado adicional cuando el calendario está abierto.
|
|
21
|
+
*/
|
|
22
|
+
lastElement: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* El estado de la vista actual del calendario, que puede ser 'días', 'meses' o 'años'.
|
|
20
25
|
* Determina qué cuadrícula se renderiza en el overlay.
|
|
21
26
|
*/
|
|
22
27
|
private currentView;
|
|
@@ -29,6 +34,9 @@ export declare class CalendarOverlay extends LitElement {
|
|
|
29
34
|
* de teclado dentro del calendario (días, meses, navegación) y centralizar la
|
|
30
35
|
* lógica de accesibilidad (ARIA) en 'handleCalendarKeydown'.
|
|
31
36
|
*/
|
|
37
|
+
private _boundHandleCalendarKeydown;
|
|
38
|
+
private _boundHandleFocusout;
|
|
39
|
+
constructor();
|
|
32
40
|
firstUpdated(): void;
|
|
33
41
|
connectedCallback(): void;
|
|
34
42
|
disconnectedCallback(): void;
|
|
@@ -90,6 +98,16 @@ export declare class CalendarOverlay extends LitElement {
|
|
|
90
98
|
* que el foco se aplica después de que el overlay esté completamente renderizado.
|
|
91
99
|
*/
|
|
92
100
|
focusCalendar(): void;
|
|
101
|
+
focusFirstElement(): void;
|
|
102
|
+
focusYearsView(): void;
|
|
103
|
+
/**
|
|
104
|
+
* Enfoca la vista de meses.
|
|
105
|
+
*/
|
|
106
|
+
focusMonthsView(): void;
|
|
107
|
+
/**
|
|
108
|
+
* Enfoca la vista de días.
|
|
109
|
+
*/
|
|
110
|
+
focusDaysView(): void;
|
|
93
111
|
/**
|
|
94
112
|
* Encuentra el botón de día en el calendario que está `offset` días
|
|
95
113
|
* de la fecha del día enfocado actualmente.
|
|
@@ -16,6 +16,7 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
16
16
|
private calendarWidth;
|
|
17
17
|
private inputValue;
|
|
18
18
|
private inputContainer;
|
|
19
|
+
lastElement: boolean;
|
|
19
20
|
static styles: import("lit").CSSResult;
|
|
20
21
|
private setMessageErrorFormatInvalid;
|
|
21
22
|
private get _currentFormat();
|
|
@@ -77,6 +78,16 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
77
78
|
*/
|
|
78
79
|
private handleDateSelect;
|
|
79
80
|
private _emitToggle;
|
|
81
|
+
/**
|
|
82
|
+
* Verifica si este componente es el último elemento focusable dentro de su contenedor (modal/form).
|
|
83
|
+
* Returns true si es el último o único elemento focusable.
|
|
84
|
+
*/
|
|
85
|
+
private _isLastFocusableInModal;
|
|
86
|
+
/**
|
|
87
|
+
* Emite el evento dropdown-toggle-calendar para notificar al modal padre.
|
|
88
|
+
* Solo se dispara si el DatePicker es el último elemento focusable del formulario/modal.
|
|
89
|
+
*/
|
|
90
|
+
private _emitDropdownToggle;
|
|
80
91
|
/**
|
|
81
92
|
* Ciclo de vida: se llama antes de cada actualización.
|
|
82
93
|
* Se utiliza para preparar el estado antes del renderizado.
|
|
@@ -174,7 +185,7 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
174
185
|
handleClearButtonKeydown(event: KeyboardEvent): void;
|
|
175
186
|
/**
|
|
176
187
|
* Maneja los eventos de teclado en el botón del calendario.
|
|
177
|
-
|
|
188
|
+
*/
|
|
178
189
|
handleCalendarButtonKeydown(event: KeyboardEvent): void;
|
|
179
190
|
/**
|
|
180
191
|
* Restringe la entrada del input a solo dígitos (0-9) y el guion (-).
|
|
@@ -22,11 +22,13 @@ export declare class CustomModal extends LitElement {
|
|
|
22
22
|
hideFooter: boolean;
|
|
23
23
|
private scrollable;
|
|
24
24
|
private hasDropdownOpen;
|
|
25
|
+
private hasCalendarOpen;
|
|
25
26
|
static styles: (import("lit").CSSResult | CSSStyleSheet)[];
|
|
26
27
|
private closeModal;
|
|
27
28
|
connectedCallback(): void;
|
|
28
29
|
disconnectedCallback(): void;
|
|
29
30
|
private handleDropdownOpen;
|
|
31
|
+
private handleCalendarOpen;
|
|
30
32
|
private setScrollableMode;
|
|
31
33
|
private getFooterClass;
|
|
32
34
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -26,6 +26,7 @@ export declare class FilterableSelect extends BaseControl {
|
|
|
26
26
|
isOpen: boolean;
|
|
27
27
|
mobileFilterValue: string;
|
|
28
28
|
private showNoResults;
|
|
29
|
+
lastElement: boolean;
|
|
29
30
|
mobileInputRef: HTMLInputElement;
|
|
30
31
|
private debounceTimeout;
|
|
31
32
|
static styles: (import("lit").CSSResult | CSSStyleSheet)[];
|
package/dist/index.d.ts
CHANGED