@randstad-uca/design-system 1.0.79 → 1.0.81
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/assets/img/background-upload.png +0 -0
- package/dist/components/Accordion.d.ts +2 -1
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/CalendarOverlay.d.ts +8 -2
- package/dist/components/DatePicker.d.ts +4 -0
- package/dist/components/Modal.d.ts +1 -0
- package/dist/components/Select.d.ts +16 -0
- package/dist/components/Tabs.d.ts +1 -1
- package/dist/index.js +199 -148
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -1
- package/dist/randstad-design-system.css +1 -1
- package/dist/stories/Button.stories.d.ts +10 -2
- package/dist/stories/DatePicker.stories.d.ts +8 -0
- package/dist/stories/Select.stories.d.ts +5 -0
- package/dist/styles/buttons.css +38 -0
- package/dist/styles/colors.css +5 -0
- package/package.json +2 -1
|
Binary file
|
|
@@ -3,10 +3,11 @@ export declare class AccordionPanel extends LitElement {
|
|
|
3
3
|
title: string;
|
|
4
4
|
private isOpen;
|
|
5
5
|
private isDesktop;
|
|
6
|
+
private mediaQueryList;
|
|
6
7
|
static styles: import("lit").CSSResult;
|
|
7
8
|
connectedCallback(): void;
|
|
8
9
|
disconnectedCallback(): void;
|
|
9
|
-
private
|
|
10
|
+
private handleMediaQueryChange;
|
|
10
11
|
private toggle;
|
|
11
12
|
render(): TemplateResult<1>;
|
|
12
13
|
}
|
|
@@ -2,8 +2,8 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
import '../styles/buttons.css';
|
|
3
3
|
export declare class RandstadButton extends LitElement {
|
|
4
4
|
type: 'button' | 'submit' | 'reset';
|
|
5
|
-
variant: 'button-primary' | 'button-secondary' | 'button-tertiary' | 'button-round' | 'button-card' | 'button-icon';
|
|
6
|
-
size: 'md' | 'lg';
|
|
5
|
+
variant: 'button-primary' | 'button-secondary' | 'button-tertiary' | 'button-round' | 'button-card' | 'button-icon' | 'button-danger';
|
|
6
|
+
size: 'sm' | 'md' | 'lg';
|
|
7
7
|
label: string;
|
|
8
8
|
loader: boolean;
|
|
9
9
|
iconSrc?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
2
|
export declare class CalendarOverlay extends LitElement {
|
|
3
3
|
/**
|
|
4
4
|
* La fecha actualmente seleccionada por el usuario.
|
|
@@ -14,6 +14,7 @@ export declare class CalendarOverlay extends LitElement {
|
|
|
14
14
|
calendarWidth: number;
|
|
15
15
|
minDate: Date | null;
|
|
16
16
|
maxDate: Date | null;
|
|
17
|
+
type: 'date' | 'month';
|
|
17
18
|
/**
|
|
18
19
|
* El estado de la vista actual del calendario, que puede ser 'días', 'meses' o 'años'.
|
|
19
20
|
* Determina qué cuadrícula se renderiza en el overlay.
|
|
@@ -142,11 +143,16 @@ export declare class CalendarOverlay extends LitElement {
|
|
|
142
143
|
* Incluye los días de la semana, los días del mes y marca el día actual y el seleccionado.
|
|
143
144
|
*/
|
|
144
145
|
private renderDayView;
|
|
146
|
+
/**
|
|
147
|
+
* Gestiona cambios de estado antes de la actualización.
|
|
148
|
+
* Si el tipo es 'month', asegura que la vista nunca sea 'days'.
|
|
149
|
+
*/
|
|
150
|
+
protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
145
151
|
/**
|
|
146
152
|
* Renderiza el overlay del calendario según la vista actual (días, meses o años).
|
|
147
153
|
* Incluye el encabezado y la cuadrícula correspondiente.
|
|
148
154
|
|
|
149
155
|
* @returns {TemplateResult} Plantilla HTML del overlay del calendario.
|
|
150
156
|
*/
|
|
151
|
-
render(): TemplateResult<1>;
|
|
157
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
152
158
|
}
|
|
@@ -6,6 +6,7 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
6
6
|
readonly: boolean;
|
|
7
7
|
minDate?: string;
|
|
8
8
|
maxDate?: string;
|
|
9
|
+
type: 'date' | 'month';
|
|
9
10
|
eighteenOrOlder: boolean;
|
|
10
11
|
private _maxLength;
|
|
11
12
|
get maxLength(): number;
|
|
@@ -19,6 +20,7 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
19
20
|
private inputContainer;
|
|
20
21
|
static styles: import("lit").CSSResult;
|
|
21
22
|
private setMessageErrorFormatInvalid;
|
|
23
|
+
private get _currentFormat();
|
|
22
24
|
/**
|
|
23
25
|
* Devuelve el foco al input principal del DatePicker.
|
|
24
26
|
* Se utiliza cuando el usuario sale del CalendarOverlay (ej. tecla ArrowUp).
|
|
@@ -45,6 +47,7 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
45
47
|
|
|
46
48
|
* @param changedProperties - Mapa de propiedades que han cambiado.
|
|
47
49
|
*/
|
|
50
|
+
protected willUpdate(changedProperties: Map<string, any>): void;
|
|
48
51
|
updated(changedProperties: Map<string, any>): void;
|
|
49
52
|
private setInitialWidth;
|
|
50
53
|
/**
|
|
@@ -83,6 +86,7 @@ export declare class DatePickerComponent extends BaseControl {
|
|
|
83
86
|
* Maneja la selección de fecha desde el calendario.
|
|
84
87
|
*/
|
|
85
88
|
private handleDateSelect;
|
|
89
|
+
private _emitToggle;
|
|
86
90
|
/**
|
|
87
91
|
* Maneja el cambio de la fecha de vista en el calendario.
|
|
88
92
|
|
|
@@ -18,6 +18,7 @@ export declare class CustomModal extends LitElement {
|
|
|
18
18
|
isPrimaryDisabled: boolean;
|
|
19
19
|
modalWidth: string;
|
|
20
20
|
modalHeight: string;
|
|
21
|
+
maxHeight: string;
|
|
21
22
|
hideFooter: boolean;
|
|
22
23
|
private scrollable;
|
|
23
24
|
static styles: (import("lit").CSSResult | CSSStyleSheet)[];
|
|
@@ -15,9 +15,12 @@ export declare class FilterableSelect extends BaseControl {
|
|
|
15
15
|
textLabelFilterNotResult: string;
|
|
16
16
|
textLabelMobileSearch: string;
|
|
17
17
|
isRenderClearButton: boolean;
|
|
18
|
+
sortable: boolean;
|
|
18
19
|
private isMobile;
|
|
19
20
|
private highlightedIndex;
|
|
20
21
|
private _isCleared;
|
|
22
|
+
private originalHtmlOverflow;
|
|
23
|
+
private originalHtmlPaddingRight;
|
|
21
24
|
filteredOptions: SelectOption[];
|
|
22
25
|
filterValue: string;
|
|
23
26
|
isOpen: boolean;
|
|
@@ -26,8 +29,21 @@ export declare class FilterableSelect extends BaseControl {
|
|
|
26
29
|
mobileInputRef: HTMLInputElement;
|
|
27
30
|
private debounceTimeout;
|
|
28
31
|
static styles: (import("lit").CSSResult | CSSStyleSheet)[];
|
|
32
|
+
/**
|
|
33
|
+
* Función auxiliar para aplicar/limpiar los estilos de bloqueo.
|
|
34
|
+
*/
|
|
35
|
+
private manageScrollElement;
|
|
36
|
+
/**
|
|
37
|
+
* Bloquea/Desbloquea el scroll manipulando directamente <html> y guardando el estado.
|
|
38
|
+
* @param block Si es true, bloquea; si es false, limpia.
|
|
39
|
+
*/
|
|
40
|
+
private toggleDynamicScrollLock;
|
|
41
|
+
private getOptionLabel;
|
|
29
42
|
private sortOptions;
|
|
43
|
+
filterAndSortOptions(): void;
|
|
44
|
+
private handleOptionHover;
|
|
30
45
|
update(changedProperties: Map<string, any>): void;
|
|
46
|
+
protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
31
47
|
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
32
48
|
connectedCallback(): void;
|
|
33
49
|
disconnectedCallback(): void;
|
|
@@ -13,7 +13,7 @@ export declare class TabsBar extends LitElement {
|
|
|
13
13
|
private readonly SCROLL_OFFSET;
|
|
14
14
|
static styles: import("lit").CSSResult;
|
|
15
15
|
firstUpdated(): void;
|
|
16
|
-
|
|
16
|
+
protected willUpdate(changed: Map<string, any>): void;
|
|
17
17
|
private selectTab;
|
|
18
18
|
private scrollTabsLeft;
|
|
19
19
|
private scrollTabsRight;
|