energy-components 2.1.0 → 2.3.0

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.
Files changed (44) hide show
  1. package/dist/components/datepicker.es.js +322 -308
  2. package/dist/components/dropdown.es.js +173 -159
  3. package/dist/components/index.es.js +127 -121
  4. package/dist/components/indicatorDots.es.js +215 -0
  5. package/dist/components/loader.es.js +9 -9
  6. package/dist/components/searchField.es.js +188 -0
  7. package/dist/components/style/datepicker.css +1 -1
  8. package/dist/components/style/dropdown.css +1 -1
  9. package/dist/components/style/indicatorDots.css +1 -0
  10. package/dist/components/style/multiselect.css +1 -1
  11. package/dist/components/style/multiselectcontentwrapper.css +1 -1
  12. package/dist/components/style/searchField.css +1 -0
  13. package/dist/components/style/table.css +1 -1
  14. package/dist/components/style/tableRenderer.css +1 -1
  15. package/dist/components/style/textField.css +1 -1
  16. package/dist/components/style/tooltip.css +1 -1
  17. package/dist/components/table.es.js +76 -71
  18. package/dist/components/tableRenderer.es.js +244 -141
  19. package/dist/components/textField.es.js +204 -145
  20. package/dist/components/tooltip.es.js +129 -113
  21. package/dist/energy-components.css +1 -1
  22. package/dist/energy-components.es.js +6381 -5779
  23. package/dist/energy-components.umd.js +2 -2
  24. package/dist/style.css +1 -1
  25. package/dist/types/src/components/content/table/table-renderer.vue.d.ts +10 -1
  26. package/dist/types/src/components/content/table/table.vue.d.ts +13 -1
  27. package/dist/types/src/components/content/table/use-column-resize.d.ts +9 -0
  28. package/dist/types/src/components/feedback/indicator-dots/indicator-dots.vue.d.ts +181 -0
  29. package/dist/types/src/components/index.d.ts +2 -0
  30. package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +25 -0
  31. package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +25 -0
  32. package/dist/types/src/components/input/search-field/search-field.vue.d.ts +137 -0
  33. package/dist/types/src/components/input/text-field/text-field.vue.d.ts +64 -3
  34. package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +2 -2
  35. package/dist/types/tsconfig.tsbuildinfo +1 -1
  36. package/llms/index.md +2 -0
  37. package/llms/rdsdate-picker.md +1 -0
  38. package/llms/rdsdropdown.md +1 -0
  39. package/llms/rdsindicator-dots.md +23 -0
  40. package/llms/rdssearch-field.md +22 -0
  41. package/llms/rdstable.md +2 -0
  42. package/llms/rdstext-field.md +5 -0
  43. package/llms/rdstooltip.md +1 -1
  44. package/package.json +1 -1
@@ -5,7 +5,11 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
5
5
  readonly onToggleSelectAll?: ((value: boolean) => any) | undefined;
6
6
  readonly onToggleRowSelection?: ((row: T) => any) | undefined;
7
7
  readonly onRowClick?: ((row: T) => any) | undefined;
8
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onHeaderClick" | "onToggleSelectAll" | "onToggleRowSelection" | "onRowClick"> & {
8
+ readonly onColumnResize?: ((payload: {
9
+ key: string;
10
+ width: number;
11
+ }) => any) | undefined;
12
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onHeaderClick" | "onToggleSelectAll" | "onToggleRowSelection" | "onRowClick" | "onColumnResize"> & {
9
13
  headers: TableHeader<T>[];
10
14
  rows: T[];
11
15
  rowKey: keyof T;
@@ -18,6 +22,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
18
22
  emptyStateText?: string;
19
23
  selectedKeys?: Array<string | number>;
20
24
  expandedKeys?: Array<string | number>;
25
+ resizableColumns?: boolean;
21
26
  rowClass?: (row: T, index: number) => string;
22
27
  cellClass?: (row: T, header: TableHeader, index: number) => string;
23
28
  isRowDisabled?: (row: T) => boolean;
@@ -46,6 +51,10 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
46
51
  (e: "toggleSelectAll", value: boolean): void;
47
52
  (e: "toggleRowSelection", row: T): void;
48
53
  (e: "rowClick", row: T): void;
54
+ (e: "columnResize", payload: {
55
+ key: string;
56
+ width: number;
57
+ }): void;
49
58
  };
50
59
  }>) => import("vue").VNode & {
51
60
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -1,6 +1,10 @@
1
1
  import type { SortDescriptor, TableHeader } from './types';
2
2
  declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onColumnResize?: ((v: {
5
+ key: string;
6
+ width: number;
7
+ }) => any) | undefined;
4
8
  readonly "onUpdate:page"?: ((v: number) => any) | undefined;
5
9
  readonly "onUpdate:pageSize"?: ((v: number) => any) | undefined;
6
10
  readonly "onUpdate:sort"?: ((v: SortDescriptor | null) => any) | undefined;
@@ -12,7 +16,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
12
16
  }) => any) | undefined;
13
17
  readonly onSelectionChange?: ((v: (string | number)[]) => any) | undefined;
14
18
  readonly onRowExpand?: ((v: T) => any) | undefined;
15
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:page" | "onUpdate:pageSize" | "onUpdate:sort" | "onUpdate:checkedKeys" | "onOptionsChange" | "onSelectionChange" | "onRowExpand"> & {
19
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onColumnResize" | "onUpdate:page" | "onUpdate:pageSize" | "onUpdate:sort" | "onUpdate:checkedKeys" | "onOptionsChange" | "onSelectionChange" | "onRowExpand"> & {
16
20
  /**
17
21
  * Definición de las columnas de la tabla.
18
22
  * Cada objeto define clave, texto, ancho, alineación y si es ordenable.
@@ -132,6 +136,10 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
132
136
  * Predicado para deshabilitar la selección (checkbox/radio) de una fila específica.
133
137
  */
134
138
  isRowDisabled?: (row: T) => boolean;
139
+ /**
140
+ * Activa el resize de columnas arrastrando el borde derecho del encabezado.
141
+ */
142
+ resizableColumns?: boolean;
135
143
  } & Partial<{}>> & import("vue").PublicProps;
136
144
  expose(exposed: import("vue").ShallowUnwrapRef<{
137
145
  reset: () => void;
@@ -158,6 +166,10 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
158
166
  }): void;
159
167
  (e: "selectionChange", v: Array<string | number>): void;
160
168
  (e: "rowExpand", v: T): void;
169
+ (e: "columnResize", v: {
170
+ key: string;
171
+ width: number;
172
+ }): void;
161
173
  };
162
174
  }>) => import("vue").VNode & {
163
175
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -0,0 +1,9 @@
1
+ import type { Ref } from 'vue';
2
+ import type { TableHeader } from './types';
3
+ export declare function useColumnResize(headers: Ref<TableHeader[]>): {
4
+ columnWidths: Record<string, number>;
5
+ resizingKey: Ref<string | null, string | null>;
6
+ startResize: (key: string, event: PointerEvent, onEnd: (k: string) => void, initialWidth?: number) => void;
7
+ stopResize: () => void;
8
+ applyMeasuredWidths: (measured: Record<string, number>) => void;
9
+ };
@@ -0,0 +1,181 @@
1
+ type SizeType = 'default' | 'small';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ /**
4
+ * Número total de elementos a indicar.
5
+ */
6
+ items: {
7
+ type: NumberConstructor;
8
+ required: true;
9
+ validator(value: number): boolean;
10
+ };
11
+ /**
12
+ * Índice del elemento activo actual (base 0).
13
+ */
14
+ modelValue: {
15
+ type: NumberConstructor;
16
+ required: true;
17
+ };
18
+ /**
19
+ * Muestra los botones de flecha anterior/siguiente.
20
+ */
21
+ showArrows: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ /**
26
+ * Variante de tamaño del componente.
27
+ */
28
+ size: {
29
+ type: () => SizeType;
30
+ default: string;
31
+ };
32
+ /**
33
+ * Usa los tokens de color inverso (superficie oscura).
34
+ */
35
+ inverse: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ /**
40
+ * Número máximo de puntos visibles a la vez antes de activar la ventana deslizante.
41
+ */
42
+ maxVisible: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ /**
47
+ * Duración en milisegundos de cada elemento antes de avanzar automáticamente cuando isPlaying es true.
48
+ */
49
+ playInterval: {
50
+ type: NumberConstructor;
51
+ default: number;
52
+ };
53
+ /**
54
+ * Si es true, habilita la navegación manual: flechas (si showArrows) y clics en los puntos.
55
+ * Si es false, las flechas se ocultan y los puntos son solo visuales.
56
+ */
57
+ interactive: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ /**
62
+ * Muestra el botón de acción play/pause al final del componente.
63
+ */
64
+ showPlayPause: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ /**
69
+ * Si es true, el componente avanza automáticamente por los elementos con un temporizador, emitiendo update:modelValue.
70
+ * El botón play/pause (showPlayPause) refleja y controla este estado.
71
+ */
72
+ isPlaying: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ /**
77
+ * Atributo ID opcional para pruebas.
78
+ */
79
+ id: {
80
+ type: StringConstructor;
81
+ default: undefined;
82
+ };
83
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
84
+ "update:modelValue": (value: number) => any;
85
+ playPauseClick: () => any;
86
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
87
+ /**
88
+ * Número total de elementos a indicar.
89
+ */
90
+ items: {
91
+ type: NumberConstructor;
92
+ required: true;
93
+ validator(value: number): boolean;
94
+ };
95
+ /**
96
+ * Índice del elemento activo actual (base 0).
97
+ */
98
+ modelValue: {
99
+ type: NumberConstructor;
100
+ required: true;
101
+ };
102
+ /**
103
+ * Muestra los botones de flecha anterior/siguiente.
104
+ */
105
+ showArrows: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ /**
110
+ * Variante de tamaño del componente.
111
+ */
112
+ size: {
113
+ type: () => SizeType;
114
+ default: string;
115
+ };
116
+ /**
117
+ * Usa los tokens de color inverso (superficie oscura).
118
+ */
119
+ inverse: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ /**
124
+ * Número máximo de puntos visibles a la vez antes de activar la ventana deslizante.
125
+ */
126
+ maxVisible: {
127
+ type: NumberConstructor;
128
+ default: number;
129
+ };
130
+ /**
131
+ * Duración en milisegundos de cada elemento antes de avanzar automáticamente cuando isPlaying es true.
132
+ */
133
+ playInterval: {
134
+ type: NumberConstructor;
135
+ default: number;
136
+ };
137
+ /**
138
+ * Si es true, habilita la navegación manual: flechas (si showArrows) y clics en los puntos.
139
+ * Si es false, las flechas se ocultan y los puntos son solo visuales.
140
+ */
141
+ interactive: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ /**
146
+ * Muestra el botón de acción play/pause al final del componente.
147
+ */
148
+ showPlayPause: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ /**
153
+ * Si es true, el componente avanza automáticamente por los elementos con un temporizador, emitiendo update:modelValue.
154
+ * El botón play/pause (showPlayPause) refleja y controla este estado.
155
+ */
156
+ isPlaying: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ /**
161
+ * Atributo ID opcional para pruebas.
162
+ */
163
+ id: {
164
+ type: StringConstructor;
165
+ default: undefined;
166
+ };
167
+ }>> & Readonly<{
168
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
169
+ onPlayPauseClick?: (() => any) | undefined;
170
+ }>, {
171
+ size: SizeType;
172
+ id: string;
173
+ inverse: boolean;
174
+ showArrows: boolean;
175
+ maxVisible: number;
176
+ playInterval: number;
177
+ interactive: boolean;
178
+ showPlayPause: boolean;
179
+ isPlaying: boolean;
180
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
181
+ export default _default;
@@ -4,6 +4,7 @@ export { default as RDSFloatinActionButton } from './buttons/floating-action-but
4
4
  export { default as RDSActionButton } from './buttons/action-button/action-button.vue';
5
5
  export { default as RDSCheckbox } from './input/checkbox/checkbox.vue';
6
6
  export { default as RDSTextField } from './input/text-field/text-field.vue';
7
+ export { default as RDSSearchField } from './input/search-field/search-field.vue';
7
8
  export { default as RDSTextArea } from './input/text-area/text-area.vue';
8
9
  export { default as RDSSwitch } from './input/switch/switch.vue';
9
10
  export { default as RDSRadioButton } from './input/radio-button/radio-button.vue';
@@ -31,6 +32,7 @@ export { default as RDSTabBar } from './navigation/tab-bar/tab-bar.vue';
31
32
  export { default as RDSPagination } from './navigation/pagination/pagination.vue';
32
33
  export { default as RDSDirectAccess } from './navigation/direct-access/direct-access.vue';
33
34
  export { default as RDSIndicator } from './feedback/indicator/indicator.vue';
35
+ export { default as RDSIndicatorDots } from './feedback/indicator-dots/indicator-dots.vue';
34
36
  export { default as RDSBadge } from './feedback/badge/badge.vue';
35
37
  export { default as RDSPersistentToast } from './feedback/persistent-toast/persistent-toast.vue';
36
38
  export { default as RDSSnackBar } from './feedback/snack-bar/snack-bar.vue';
@@ -25,6 +25,18 @@ declare const __VLS_component: import("vue").DefineComponent<ExtractPropTypes<{
25
25
  type: StringConstructor;
26
26
  required: true;
27
27
  };
28
+ /**
29
+ * Versión compacta del datepicker con altura reducida (42px en lugar de 52px).
30
+ * En este modo se ocultan visualmente el label y el helper text para ahorrar espacio.
31
+ *
32
+ * ⚠️ **Uso recomendado**: Solo para celdas de tablas editables.
33
+ * No se recomienda fuera de este contexto por cuestiones de accesibilidad,
34
+ * ya que la ausencia del label visible puede dificultar la comprensión del campo.
35
+ */
36
+ compact: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
28
40
  /**
29
41
  * Etiqueta para el interruptor
30
42
  */
@@ -177,6 +189,18 @@ declare const __VLS_component: import("vue").DefineComponent<ExtractPropTypes<{
177
189
  type: StringConstructor;
178
190
  required: true;
179
191
  };
192
+ /**
193
+ * Versión compacta del datepicker con altura reducida (42px en lugar de 52px).
194
+ * En este modo se ocultan visualmente el label y el helper text para ahorrar espacio.
195
+ *
196
+ * ⚠️ **Uso recomendado**: Solo para celdas de tablas editables.
197
+ * No se recomienda fuera de este contexto por cuestiones de accesibilidad,
198
+ * ya que la ausencia del label visible puede dificultar la comprensión del campo.
199
+ */
200
+ compact: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
180
204
  /**
181
205
  * Etiqueta para el interruptor
182
206
  */
@@ -312,6 +336,7 @@ declare const __VLS_component: import("vue").DefineComponent<ExtractPropTypes<{
312
336
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
313
337
  }>, {
314
338
  label: string;
339
+ compact: boolean;
315
340
  range: boolean;
316
341
  disabled: boolean;
317
342
  clearable: boolean;
@@ -51,6 +51,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
51
51
  required: true;
52
52
  validator: (value: any) => boolean;
53
53
  };
54
+ /**
55
+ * Versión compacta del dropdown con altura reducida (42px en lugar de 52px).
56
+ * En este modo se ocultan visualmente el label y el helper text para ahorrar espacio.
57
+ *
58
+ * ⚠️ **Uso recomendado**: Solo para celdas de tablas editables.
59
+ * No se recomienda fuera de este contexto por cuestiones de accesibilidad,
60
+ * ya que la ausencia del label visible puede dificultar la comprensión del campo.
61
+ */
62
+ compact: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
54
66
  label: {
55
67
  type: StringConstructor;
56
68
  required: true;
@@ -234,6 +246,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
234
246
  required: true;
235
247
  validator: (value: any) => boolean;
236
248
  };
249
+ /**
250
+ * Versión compacta del dropdown con altura reducida (42px en lugar de 52px).
251
+ * En este modo se ocultan visualmente el label y el helper text para ahorrar espacio.
252
+ *
253
+ * ⚠️ **Uso recomendado**: Solo para celdas de tablas editables.
254
+ * No se recomienda fuera de este contexto por cuestiones de accesibilidad,
255
+ * ya que la ausencia del label visible puede dificultar la comprensión del campo.
256
+ */
257
+ compact: {
258
+ type: BooleanConstructor;
259
+ default: boolean;
260
+ };
237
261
  label: {
238
262
  type: StringConstructor;
239
263
  required: true;
@@ -402,6 +426,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
402
426
  loading: boolean;
403
427
  error: boolean;
404
428
  small: boolean;
429
+ compact: boolean;
405
430
  multiple: boolean;
406
431
  disabled: boolean;
407
432
  inverse: boolean;
@@ -0,0 +1,137 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ /**
3
+ * v-model valor del campo de búsqueda.
4
+ */
5
+ modelValue: {
6
+ type: StringConstructor;
7
+ required: true;
8
+ };
9
+ /**
10
+ * Texto de ayuda contextual que se muestra cuando el campo está vacío.
11
+ */
12
+ placeholder: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ /**
17
+ * Indica si el campo está deshabilitado.
18
+ */
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ /**
24
+ * Versión reducida del campo (altura 40px en lugar de 52px).
25
+ */
26
+ small: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ /**
31
+ * Lista de sugerencias a mostrar cuando el campo tiene contenido.
32
+ * El componente padre es responsable de filtrar las sugerencias.
33
+ */
34
+ suggestions: {
35
+ type: () => string[];
36
+ default: () => never[];
37
+ };
38
+ /**
39
+ * Número máximo de caracteres permitidos.
40
+ */
41
+ maxLength: {
42
+ type: NumberConstructor;
43
+ required: false;
44
+ };
45
+ /**
46
+ * Identificador único del campo. Se autogenera si no se proporciona.
47
+ */
48
+ id: {
49
+ type: StringConstructor;
50
+ required: false;
51
+ };
52
+ /**
53
+ * Texto accesible del botón de limpiar. Permite internacionalización.
54
+ */
55
+ clearButtonAriaLabel: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ }>, {
60
+ focus: () => void;
61
+ blur: () => void;
62
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
63
+ search: (value: string) => any;
64
+ select: (value: string) => any;
65
+ clear: () => any;
66
+ "update:modelValue": (value: string) => any;
67
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
68
+ /**
69
+ * v-model valor del campo de búsqueda.
70
+ */
71
+ modelValue: {
72
+ type: StringConstructor;
73
+ required: true;
74
+ };
75
+ /**
76
+ * Texto de ayuda contextual que se muestra cuando el campo está vacío.
77
+ */
78
+ placeholder: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
82
+ /**
83
+ * Indica si el campo está deshabilitado.
84
+ */
85
+ disabled: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ /**
90
+ * Versión reducida del campo (altura 40px en lugar de 52px).
91
+ */
92
+ small: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ /**
97
+ * Lista de sugerencias a mostrar cuando el campo tiene contenido.
98
+ * El componente padre es responsable de filtrar las sugerencias.
99
+ */
100
+ suggestions: {
101
+ type: () => string[];
102
+ default: () => never[];
103
+ };
104
+ /**
105
+ * Número máximo de caracteres permitidos.
106
+ */
107
+ maxLength: {
108
+ type: NumberConstructor;
109
+ required: false;
110
+ };
111
+ /**
112
+ * Identificador único del campo. Se autogenera si no se proporciona.
113
+ */
114
+ id: {
115
+ type: StringConstructor;
116
+ required: false;
117
+ };
118
+ /**
119
+ * Texto accesible del botón de limpiar. Permite internacionalización.
120
+ */
121
+ clearButtonAriaLabel: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ }>> & Readonly<{
126
+ onSearch?: ((value: string) => any) | undefined;
127
+ onSelect?: ((value: string) => any) | undefined;
128
+ onClear?: (() => any) | undefined;
129
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
130
+ }>, {
131
+ small: boolean;
132
+ disabled: boolean;
133
+ placeholder: string;
134
+ suggestions: string[];
135
+ clearButtonAriaLabel: string;
136
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
137
+ export default _default;
@@ -1,11 +1,15 @@
1
1
  import { type PropType } from 'vue';
2
- declare var __VLS_1: {}, __VLS_9: {}, __VLS_20: {};
2
+ declare var __VLS_1: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_24: {};
3
3
  type __VLS_Slots = {} & {
4
4
  'left-icon'?: (props: typeof __VLS_1) => any;
5
5
  } & {
6
- 'right-icon'?: (props: typeof __VLS_9) => any;
6
+ prefix?: (props: typeof __VLS_9) => any;
7
7
  } & {
8
- 'helper-text'?: (props: typeof __VLS_20) => any;
8
+ suffix?: (props: typeof __VLS_11) => any;
9
+ } & {
10
+ 'right-icon'?: (props: typeof __VLS_13) => any;
11
+ } & {
12
+ 'helper-text'?: (props: typeof __VLS_24) => any;
9
13
  };
10
14
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
15
  /**
@@ -16,6 +20,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
16
20
  type: BooleanConstructor;
17
21
  default: boolean;
18
22
  };
23
+ /**
24
+ * Versión compacta del campo de texto con altura reducida (42px en lugar de 52px).
25
+ * En este modo se ocultan visualmente el label y el helper text para ahorrar espacio.
26
+ * Los eventos y cambios de estado visual se mantienen.
27
+ *
28
+ * ⚠️ **Uso recomendado**: Solo para celdas de tablas editables.
29
+ * No se recomienda fuera de este contexto por cuestiones de accesibilidad,
30
+ * ya que la ausencia del label visible puede dificultar la comprensión del campo.
31
+ */
32
+ compact: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
19
36
  /**
20
37
  * Etiqueta que se muestra sobre el campo de entrada. y Placeholder
21
38
  */
@@ -37,6 +54,20 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
37
54
  type: (StringConstructor | NumberConstructor | null)[];
38
55
  required: true;
39
56
  };
57
+ /**
58
+ * Texto a mostrar antes del valor del input. (Reemplaza al icono izquierdo si existe)
59
+ */
60
+ prefix: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ /**
65
+ * Texto a mostrar después del valor del input, siguiendo dinámicamente al texto.
66
+ */
67
+ suffix: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
40
71
  /**
41
72
  * Indica si el campo de entrada está deshabilitado o no.
42
73
  */
@@ -224,6 +255,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
224
255
  type: BooleanConstructor;
225
256
  default: boolean;
226
257
  };
258
+ /**
259
+ * Versión compacta del campo de texto con altura reducida (42px en lugar de 52px).
260
+ * En este modo se ocultan visualmente el label y el helper text para ahorrar espacio.
261
+ * Los eventos y cambios de estado visual se mantienen.
262
+ *
263
+ * ⚠️ **Uso recomendado**: Solo para celdas de tablas editables.
264
+ * No se recomienda fuera de este contexto por cuestiones de accesibilidad,
265
+ * ya que la ausencia del label visible puede dificultar la comprensión del campo.
266
+ */
267
+ compact: {
268
+ type: BooleanConstructor;
269
+ default: boolean;
270
+ };
227
271
  /**
228
272
  * Etiqueta que se muestra sobre el campo de entrada. y Placeholder
229
273
  */
@@ -245,6 +289,20 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
245
289
  type: (StringConstructor | NumberConstructor | null)[];
246
290
  required: true;
247
291
  };
292
+ /**
293
+ * Texto a mostrar antes del valor del input. (Reemplaza al icono izquierdo si existe)
294
+ */
295
+ prefix: {
296
+ type: StringConstructor;
297
+ default: string;
298
+ };
299
+ /**
300
+ * Texto a mostrar después del valor del input, siguiendo dinámicamente al texto.
301
+ */
302
+ suffix: {
303
+ type: StringConstructor;
304
+ default: string;
305
+ };
248
306
  /**
249
307
  * Indica si el campo de entrada está deshabilitado o no.
250
308
  */
@@ -425,12 +483,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
425
483
  error: boolean;
426
484
  type: string;
427
485
  required: boolean;
486
+ compact: boolean;
428
487
  icon: string;
429
488
  disabled: boolean;
430
489
  spellcheck: boolean;
490
+ prefix: string;
431
491
  fullWidth: boolean;
432
492
  readonly: boolean;
433
493
  password: boolean;
494
+ suffix: string;
434
495
  rightIcon: string;
435
496
  helper: boolean;
436
497
  helperText: string;
@@ -104,7 +104,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
104
104
  default: boolean;
105
105
  };
106
106
  /**
107
- * <span>Controla la visibilidad mediante v-model:open. Si se establece, el componente se comporta de forma controlada.</span>
107
+ * <span>Controla la visibilidad mediante v-model:open. Si se pasa (true o false), el componente entra en modo controlado: los eventos internos (hover/focus/click) solo emiten `update:open` sin cambiar la visibilidad directamente. Para volver al modo no controlado, no pasar la prop (undefined).</span>
108
108
  */
109
109
  open: {
110
110
  type: BooleanConstructor;
@@ -239,7 +239,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
239
239
  default: boolean;
240
240
  };
241
241
  /**
242
- * <span>Controla la visibilidad mediante v-model:open. Si se establece, el componente se comporta de forma controlada.</span>
242
+ * <span>Controla la visibilidad mediante v-model:open. Si se pasa (true o false), el componente entra en modo controlado: los eventos internos (hover/focus/click) solo emiten `update:open` sin cambiar la visibilidad directamente. Para volver al modo no controlado, no pasar la prop (undefined).</span>
243
243
  */
244
244
  open: {
245
245
  type: BooleanConstructor;