@randstad-uca/design-system 1.0.80 → 1.0.82

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.
@@ -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, TemplateResult } from "lit";
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,10 +6,9 @@ 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
- private _maxLength;
11
- get maxLength(): number;
12
- set maxLength(value: number);
11
+ maxLength: number;
13
12
  private isOpen;
14
13
  private selectedDate;
15
14
  private viewDate;
@@ -19,6 +18,7 @@ export declare class DatePickerComponent extends BaseControl {
19
18
  private inputContainer;
20
19
  static styles: import("lit").CSSResult;
21
20
  private setMessageErrorFormatInvalid;
21
+ private get _currentFormat();
22
22
  /**
23
23
  * Devuelve el foco al input principal del DatePicker.
24
24
  * Se utiliza cuando el usuario sale del CalendarOverlay (ej. tecla ArrowUp).
@@ -39,13 +39,6 @@ export declare class DatePickerComponent extends BaseControl {
39
39
  * Es ideal para obtener el ancho del DOM por primera vez.
40
40
  */
41
41
  firstUpdated(): void;
42
- /**
43
- * Ciclo de vida: se llama después de cada actualización.
44
- * Se usa para recalcular el ancho si la apertura del calendario ha cambiado.
45
-
46
- * @param changedProperties - Mapa de propiedades que han cambiado.
47
- */
48
- updated(changedProperties: Map<string, any>): void;
49
42
  private setInitialWidth;
50
43
  /**
51
44
  * Referencia enlazada para el listener de resize.
@@ -83,6 +76,19 @@ export declare class DatePickerComponent extends BaseControl {
83
76
  * Maneja la selección de fecha desde el calendario.
84
77
  */
85
78
  private handleDateSelect;
79
+ private _emitToggle;
80
+ /**
81
+ * Ciclo de vida: se llama antes de cada actualización.
82
+ * Se utiliza para preparar el estado antes del renderizado.
83
+ * NO modifica propiedades reactivas aquí para evitar loops de renderizado.
84
+ */
85
+ protected willUpdate(changedProperties: Map<string, any>): void;
86
+ /**
87
+ * Ciclo de vida: se llama después de cada actualización del componente.
88
+ * Se usa para operaciones que requieren el DOM ya renderizado.
89
+ * Solo recalcula el ancho si es necesario y evita loops de actualización.
90
+ */
91
+ updated(changedProperties: Map<string, any>): void;
86
92
  /**
87
93
  * Maneja el cambio de la fecha de vista en el calendario.
88
94
 
@@ -18,12 +18,15 @@ 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;
24
+ private hasDropdownOpen;
23
25
  static styles: (import("lit").CSSResult | CSSStyleSheet)[];
24
26
  private closeModal;
25
27
  connectedCallback(): void;
26
28
  disconnectedCallback(): void;
29
+ private handleDropdownOpen;
27
30
  private setScrollableMode;
28
31
  private getFooterClass;
29
32
  render(): import("lit-html").TemplateResult<1>;
@@ -13,6 +13,7 @@ export declare class CustomPopup extends LitElement {
13
13
  title: string;
14
14
  description: string;
15
15
  width: string;
16
+ height: string;
16
17
  buttonText: string;
17
18
  confirmText: string;
18
19
  cancelText: string;
@@ -15,6 +15,7 @@ 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;
@@ -42,6 +43,7 @@ export declare class FilterableSelect extends BaseControl {
42
43
  filterAndSortOptions(): void;
43
44
  private handleOptionHover;
44
45
  update(changedProperties: Map<string, any>): void;
46
+ protected willUpdate(changedProperties: Map<string | number | symbol, unknown>): void;
45
47
  protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
46
48
  connectedCallback(): void;
47
49
  disconnectedCallback(): void;
@@ -52,6 +54,7 @@ export declare class FilterableSelect extends BaseControl {
52
54
  handleMobileInput(event: Event): void;
53
55
  handleSelect(option: SelectOption): void;
54
56
  handleIconClick(): void;
57
+ private handleReset;
55
58
  handleClickOutside(event: Event): void;
56
59
  /**
57
60
  * Maneja los eventos de teclado cuando el foco está en el input o el filter-fake (combobox).
@@ -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
- updated(changed: Map<string, any>): void;
16
+ protected willUpdate(changed: Map<string, any>): void;
17
17
  private selectTab;
18
18
  private scrollTabsLeft;
19
19
  private scrollTabsRight;