@randstad-uca/design-system 1.0.98 → 1.0.100

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.
@@ -35,6 +35,8 @@ export declare class DatePickerComponent extends BaseControl {
35
35
  * Limpia listeners globales.
36
36
  */
37
37
  disconnectedCallback(): void;
38
+ private handleGlobalOverlayOpen;
39
+ private notifyOverlayOpened;
38
40
  /**
39
41
  * Ciclo de vida: se llama después de que la primera actualización del componente ha terminado.
40
42
  * Es ideal para obtener el ancho del DOM por primera vez.
@@ -1,7 +1,8 @@
1
1
  import { TemplateResult } from 'lit';
2
2
  import { BaseControl } from '../helpers/BaseControl';
3
3
  export declare class RandstadForm extends BaseControl {
4
- keydown: 'number' | 'text' | undefined;
4
+ keydown: 'number' | 'text' | 'alfanumeric' | undefined;
5
+ keydownRegex?: string;
5
6
  size: 'sm' | 'md' | 'lg';
6
7
  icon: 'left' | 'right' | null;
7
8
  typing: boolean;
@@ -18,9 +19,12 @@ export declare class RandstadForm extends BaseControl {
18
19
  private handleInput;
19
20
  private handleClear;
20
21
  private handleLinkClick;
22
+ private _updateValueWithCursor;
21
23
  handleInputCustom(event: Event): void;
22
24
  onlyNumeric(event: Event): void;
23
25
  onlyText(event: Event): void;
26
+ onlyAlphanumeric(event: Event): void;
27
+ onlyRegex(event: Event): void;
24
28
  private handleInputKeyDown;
25
29
  /**
26
30
  * Calcula si el botón de limpieza (X) debe estar visible
@@ -40,6 +40,11 @@ export declare class FilterableSelect extends BaseControl {
40
40
  */
41
41
  private toggleDynamicScrollLock;
42
42
  private getOptionLabel;
43
+ /**
44
+ * Normaliza un texto eliminando acentos y convertiendo a minúsculas.
45
+ * Ejemplo: "Abogacía" → "abogacia"
46
+ */
47
+ private normalizeText;
43
48
  private sortOptions;
44
49
  filterAndSortOptions(): void;
45
50
  private handleOptionHover;
@@ -48,6 +53,8 @@ export declare class FilterableSelect extends BaseControl {
48
53
  protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
49
54
  connectedCallback(): void;
50
55
  disconnectedCallback(): void;
56
+ private handleGlobalOverlayOpen;
57
+ private notifyOverlayOpened;
51
58
  private updateResponsiveModeBound;
52
59
  private updateResponsiveMode;
53
60
  handleInputClick(event: Event): void;
@@ -55,8 +62,15 @@ export declare class FilterableSelect extends BaseControl {
55
62
  handleMobileInput(event: Event): void;
56
63
  handleSelect(option: SelectOption): void;
57
64
  handleIconClick(): void;
58
- private handleReset;
59
65
  handleClickOutside(event: Event): void;
66
+ /**
67
+ * Previene que el primer carácter ingresado sea un espacio o carácter especial.
68
+ */
69
+ private preventInvalidStart;
70
+ /**
71
+ * Previene que el texto pegado comience con un espacio o carácter especial si el cursor está al inicio.
72
+ */
73
+ handlePaste(event: ClipboardEvent): void;
60
74
  /**
61
75
  * Maneja los eventos de teclado cuando el foco está en el input o el filter-fake (combobox).
62
76
  */
@@ -75,9 +89,7 @@ export declare class FilterableSelect extends BaseControl {
75
89
  */
76
90
  handleBlur(): void;
77
91
  private scrollHighlightedIntoView;
78
- private renderSelectedIcon;
79
92
  private renderOptionIcon;
80
- private _getFilteredOptions;
81
93
  private validateAndCleanOnBlur;
82
94
  render(): TemplateResult<1>;
83
95
  }
@@ -57,19 +57,15 @@ export declare class RandstadSocialMediaInput extends BaseControl {
57
57
  * Sanitization Regex (default)
58
58
  */
59
59
  private get _sanitizeRegex();
60
+ private get _sentPrefixLength();
61
+ /** Getter para calcular el máximo permitido de forma consistente */
62
+ private get _maxCharsAllowed();
63
+ /** Handle both input and paste - ensures value never exceeds max */
64
+ private _handleInputOrPaste;
60
65
  /**
61
66
  * Regex URL para la plataforma actual
62
67
  */
63
68
  private get _urlValidationRegex();
64
- /**
65
- * Handle input event from the editable field
66
- */
67
- private _handleInput;
68
- /**
69
- * Handle paste event - extract username from LinkedIn/Facebook URL or validate pasted content
70
- */
71
- private _handlePaste;
72
- private _updateInternalValue;
73
69
  /**
74
70
  * Validation error
75
71
  */
@@ -82,6 +78,7 @@ export declare class RandstadSocialMediaInput extends BaseControl {
82
78
  * Check if there's any error state
83
79
  */
84
80
  private get _hasError();
81
+ private _handleKeyDown;
85
82
  /**
86
83
  * Construye el valor final completo basado en la plataforma actual
87
84
  */