energy-components 2.6.0 → 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.
@@ -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;