energy-components 2.5.1 → 2.7.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.
- package/dist/components/dragAndDrop.es.js +93 -75
- package/dist/components/dropdown.es.js +414 -272
- package/dist/components/radioButton.es.js +51 -37
- package/dist/components/sidebar.es.js +18 -19
- package/dist/components/sidedrawer.es.js +49 -39
- package/dist/components/style/dragAndDrop.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/pagination.css +1 -1
- package/dist/components/style/radioButton.css +1 -1
- package/dist/components/style/sidebar.css +1 -1
- package/dist/components/style/sidedrawer.css +1 -1
- package/dist/components/style/table.css +1 -1
- package/dist/components/style/tableRenderer.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/table.es.js +59 -55
- package/dist/components/tableRenderer.es.js +131 -126
- package/dist/components/textField.es.js +84 -60
- package/dist/energy-components.css +1 -1
- package/dist/energy-components.es.js +5151 -4936
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/content/table/table-renderer.vue.d.ts +2 -0
- package/dist/types/src/components/content/table/table.vue.d.ts +9 -0
- package/dist/types/src/components/input/drag-and-drop/drag-and-drop.vue.d.ts +15 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +25 -0
- package/dist/types/src/components/input/radio-button/radio-button.vue.d.ts +15 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +49 -2
- package/dist/types/src/components/layout/sidedrawer/sidedrawer.vue.d.ts +15 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/llms/rdsdrag-and-drop.md +1 -0
- package/llms/rdsdropdown.md +2 -0
- package/llms/rdsradio-button.md +1 -0
- package/llms/rdssidedrawer.md +1 -0
- package/llms/rdstable.md +2 -0
- package/llms/rdstext-field.md +3 -1
- package/package.json +1 -1
|
@@ -22,6 +22,8 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
22
22
|
emptyStateText?: string;
|
|
23
23
|
selectedKeys?: Array<string | number>;
|
|
24
24
|
expandedKeys?: Array<string | number>;
|
|
25
|
+
selectAllAriaLabel?: string;
|
|
26
|
+
rowAriaLabel?: (row: T, index: number) => string;
|
|
25
27
|
resizableColumns?: boolean;
|
|
26
28
|
rowClass?: (row: T, index: number) => string;
|
|
27
29
|
cellClass?: (row: T, header: TableHeader, index: number) => string;
|
|
@@ -73,6 +73,15 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
73
73
|
* Array de IDs (rowKey) de las filas seleccionadas (v-model).
|
|
74
74
|
*/
|
|
75
75
|
checkedKeys?: Array<string | number>;
|
|
76
|
+
/**
|
|
77
|
+
* Texto accesible para el checkbox de selección global.
|
|
78
|
+
*/
|
|
79
|
+
selectAllAriaLabel?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Función para construir el texto accesible de cada checkbox de fila.
|
|
82
|
+
* example (row, index) => `Seleccionar ${row.name} (${index + 1})`
|
|
83
|
+
*/
|
|
84
|
+
rowAriaLabel?: (row: T, index: number) => string;
|
|
76
85
|
/**
|
|
77
86
|
* Muestra un estado de carga (skeleton o spinner) sobre la tabla.
|
|
78
87
|
*/
|
|
@@ -18,6 +18,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Texto que se muestra en el botón para dispositivos móviles.
|
|
23
|
+
*/
|
|
24
|
+
mobileButtonText: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
21
28
|
/**
|
|
22
29
|
* Indica si el componente está deshabilitado.
|
|
23
30
|
*/
|
|
@@ -113,6 +120,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
113
120
|
type: StringConstructor;
|
|
114
121
|
default: string;
|
|
115
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
* Texto que se muestra en el botón para dispositivos móviles.
|
|
125
|
+
*/
|
|
126
|
+
mobileButtonText: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
116
130
|
/**
|
|
117
131
|
* Indica si el componente está deshabilitado.
|
|
118
132
|
*/
|
|
@@ -202,6 +216,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
202
216
|
fullWidth: boolean;
|
|
203
217
|
accept: string;
|
|
204
218
|
detailText: string;
|
|
219
|
+
mobileButtonText: string;
|
|
205
220
|
errorMessage: string;
|
|
206
221
|
maxFiles: number | null;
|
|
207
222
|
showDetailText: boolean;
|
|
@@ -18,6 +18,8 @@ export interface AutoCompleteProps {
|
|
|
18
18
|
helperText?: string;
|
|
19
19
|
autocompleteFilter: (option: DropdownOption | string, search: string) => boolean;
|
|
20
20
|
}
|
|
21
|
+
type LazyLoadItem = DropdownOption | string;
|
|
22
|
+
type LazyLoadCallback = (page: number) => Promise<LazyLoadItem[]>;
|
|
21
23
|
type __VLS_Slots = {
|
|
22
24
|
'option'?: (props: {
|
|
23
25
|
option: any;
|
|
@@ -217,6 +219,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
217
219
|
type: BooleanConstructor;
|
|
218
220
|
default: boolean;
|
|
219
221
|
};
|
|
222
|
+
/**
|
|
223
|
+
* Habilita lazy load por scroll al final de la lista.
|
|
224
|
+
* Puede ser boolean (modo evento) o callback async (modo automático).
|
|
225
|
+
*/
|
|
226
|
+
lazyLoad: {
|
|
227
|
+
type: PropType<boolean | LazyLoadCallback>;
|
|
228
|
+
default: boolean;
|
|
229
|
+
};
|
|
220
230
|
modelValue: {
|
|
221
231
|
type: PropType<any>;
|
|
222
232
|
required: true;
|
|
@@ -237,6 +247,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
237
247
|
open: (payload: any, componentId: string | number) => any;
|
|
238
248
|
change: (options: any[]) => any;
|
|
239
249
|
select: (selectOption: any) => any;
|
|
250
|
+
loadMore: (payload: {
|
|
251
|
+
page: number;
|
|
252
|
+
}) => any;
|
|
240
253
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
241
254
|
/**
|
|
242
255
|
* Id del dropdown
|
|
@@ -412,6 +425,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
412
425
|
type: BooleanConstructor;
|
|
413
426
|
default: boolean;
|
|
414
427
|
};
|
|
428
|
+
/**
|
|
429
|
+
* Habilita lazy load por scroll al final de la lista.
|
|
430
|
+
* Puede ser boolean (modo evento) o callback async (modo automático).
|
|
431
|
+
*/
|
|
432
|
+
lazyLoad: {
|
|
433
|
+
type: PropType<boolean | LazyLoadCallback>;
|
|
434
|
+
default: boolean;
|
|
435
|
+
};
|
|
415
436
|
modelValue: {
|
|
416
437
|
type: PropType<any>;
|
|
417
438
|
required: true;
|
|
@@ -422,6 +443,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
422
443
|
onChange?: ((options: any[]) => any) | undefined;
|
|
423
444
|
onSelect?: ((selectOption: any) => any) | undefined;
|
|
424
445
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
446
|
+
onLoadMore?: ((payload: {
|
|
447
|
+
page: number;
|
|
448
|
+
}) => any) | undefined;
|
|
425
449
|
}>, {
|
|
426
450
|
loading: boolean;
|
|
427
451
|
error: boolean;
|
|
@@ -442,6 +466,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
442
466
|
openDirection: string;
|
|
443
467
|
textOnly: boolean;
|
|
444
468
|
customTriggerClass: string;
|
|
469
|
+
lazyLoad: boolean | LazyLoadCallback;
|
|
445
470
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
446
471
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
447
472
|
export default _default;
|
|
@@ -42,6 +42,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
42
|
type: BooleanConstructor;
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* <span>Oculta visualmente el label manteniendo su accesibilidad para lectores de pantalla</span>
|
|
47
|
+
*/
|
|
48
|
+
hideLabel: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
45
52
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
53
|
/**
|
|
47
54
|
* <span>Id del radio button</span>
|
|
@@ -86,10 +93,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
86
93
|
type: BooleanConstructor;
|
|
87
94
|
default: boolean;
|
|
88
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* <span>Oculta visualmente el label manteniendo su accesibilidad para lectores de pantalla</span>
|
|
98
|
+
*/
|
|
99
|
+
hideLabel: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
89
103
|
}>> & Readonly<{}>, {
|
|
90
104
|
error: boolean;
|
|
91
105
|
label: string;
|
|
92
106
|
icon: string;
|
|
93
107
|
disabled: boolean;
|
|
108
|
+
hideLabel: boolean;
|
|
94
109
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
95
110
|
export default _default;
|
|
@@ -76,12 +76,30 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
76
76
|
default: boolean;
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Estado semántico de solo lectura. Añade el atributo HTML `readonly` al input, lo que
|
|
80
|
+
* impide la edición y lo anuncia a los lectores de pantalla como "solo lectura".
|
|
81
|
+
*
|
|
82
|
+
* **No cambia el aspecto visual del campo.** Si además se necesita el estilo visual
|
|
83
|
+
* (fondo gris, sin iconos, cursor texto), activa también `readonlyStyle`.
|
|
84
|
+
* Ambas props son independientes y pueden usarse juntas o por separado.
|
|
80
85
|
*/
|
|
81
86
|
readonly: {
|
|
82
87
|
type: BooleanConstructor;
|
|
83
88
|
default: boolean;
|
|
84
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* Estilo visual de solo lectura: fondo gris, borde por defecto, cursor texto y sin iconos
|
|
92
|
+
* ni elementos accionables. El campo parece no editable visualmente.
|
|
93
|
+
*
|
|
94
|
+
* **No añade el atributo HTML `readonly`** ni semántica de accesibilidad.
|
|
95
|
+
* Para bloquear la edición funcionalmente y anunciarlo a lectores de pantalla,
|
|
96
|
+
* activa también `:readonly="true"`.
|
|
97
|
+
* Ambas props son independientes y pueden usarse juntas o por separado.
|
|
98
|
+
*/
|
|
99
|
+
readonlyStyle: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
85
103
|
/**
|
|
86
104
|
* Número máximo de caracteres permitidos en el campo de entrada.
|
|
87
105
|
* Si no se especifica, el componente no establecerá atributo maxlength (sin límite impuesto por la librería).
|
|
@@ -231,6 +249,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
231
249
|
type: BooleanConstructor;
|
|
232
250
|
required: false;
|
|
233
251
|
};
|
|
252
|
+
/** Índice de tabulación del input nativo. */
|
|
253
|
+
inputTabindex: {
|
|
254
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
255
|
+
required: false;
|
|
256
|
+
};
|
|
234
257
|
/** Control de capitalización automática del navegador en inputs text. */
|
|
235
258
|
autocapitalize: {
|
|
236
259
|
type: StringConstructor;
|
|
@@ -311,12 +334,30 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
311
334
|
default: boolean;
|
|
312
335
|
};
|
|
313
336
|
/**
|
|
314
|
-
*
|
|
337
|
+
* Estado semántico de solo lectura. Añade el atributo HTML `readonly` al input, lo que
|
|
338
|
+
* impide la edición y lo anuncia a los lectores de pantalla como "solo lectura".
|
|
339
|
+
*
|
|
340
|
+
* **No cambia el aspecto visual del campo.** Si además se necesita el estilo visual
|
|
341
|
+
* (fondo gris, sin iconos, cursor texto), activa también `readonlyStyle`.
|
|
342
|
+
* Ambas props son independientes y pueden usarse juntas o por separado.
|
|
315
343
|
*/
|
|
316
344
|
readonly: {
|
|
317
345
|
type: BooleanConstructor;
|
|
318
346
|
default: boolean;
|
|
319
347
|
};
|
|
348
|
+
/**
|
|
349
|
+
* Estilo visual de solo lectura: fondo gris, borde por defecto, cursor texto y sin iconos
|
|
350
|
+
* ni elementos accionables. El campo parece no editable visualmente.
|
|
351
|
+
*
|
|
352
|
+
* **No añade el atributo HTML `readonly`** ni semántica de accesibilidad.
|
|
353
|
+
* Para bloquear la edición funcionalmente y anunciarlo a lectores de pantalla,
|
|
354
|
+
* activa también `:readonly="true"`.
|
|
355
|
+
* Ambas props son independientes y pueden usarse juntas o por separado.
|
|
356
|
+
*/
|
|
357
|
+
readonlyStyle: {
|
|
358
|
+
type: BooleanConstructor;
|
|
359
|
+
default: boolean;
|
|
360
|
+
};
|
|
320
361
|
/**
|
|
321
362
|
* Número máximo de caracteres permitidos en el campo de entrada.
|
|
322
363
|
* Si no se especifica, el componente no establecerá atributo maxlength (sin límite impuesto por la librería).
|
|
@@ -466,6 +507,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
466
507
|
type: BooleanConstructor;
|
|
467
508
|
required: false;
|
|
468
509
|
};
|
|
510
|
+
/** Índice de tabulación del input nativo. */
|
|
511
|
+
inputTabindex: {
|
|
512
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
513
|
+
required: false;
|
|
514
|
+
};
|
|
469
515
|
/** Control de capitalización automática del navegador en inputs text. */
|
|
470
516
|
autocapitalize: {
|
|
471
517
|
type: StringConstructor;
|
|
@@ -492,6 +538,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
492
538
|
readonly: boolean;
|
|
493
539
|
password: boolean;
|
|
494
540
|
suffix: string;
|
|
541
|
+
readonlyStyle: boolean;
|
|
495
542
|
rightIcon: string;
|
|
496
543
|
helper: boolean;
|
|
497
544
|
helperText: string;
|
|
@@ -49,6 +49,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
49
49
|
type: StringConstructor;
|
|
50
50
|
default: string;
|
|
51
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* <span>Etiqueta accesible del panel lateral para lectores de pantalla.</span>
|
|
54
|
+
*/
|
|
55
|
+
ariaLabel: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
52
59
|
}>, {
|
|
53
60
|
/**
|
|
54
61
|
* { boolean } Muestra el estado actual del sidebar.
|
|
@@ -111,9 +118,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
111
118
|
type: StringConstructor;
|
|
112
119
|
default: string;
|
|
113
120
|
};
|
|
121
|
+
/**
|
|
122
|
+
* <span>Etiqueta accesible del panel lateral para lectores de pantalla.</span>
|
|
123
|
+
*/
|
|
124
|
+
ariaLabel: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
114
128
|
}>> & Readonly<{
|
|
115
129
|
onSidedrawerChange?: ((isHide: boolean) => any) | undefined;
|
|
116
130
|
}>, {
|
|
131
|
+
ariaLabel: string;
|
|
117
132
|
title: string;
|
|
118
133
|
closeAriaLabel: string;
|
|
119
134
|
iconClose: boolean;
|