easy-forms-core 1.0.8 → 1.0.10
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/easy-form.d.ts +45 -1
- package/dist/easy-form.js +688 -1
- package/dist/easy-form.js.map +1 -1
- package/dist/index.d.ts +45 -1
- package/dist/index.js +688 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/easy-form.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ interface Step {
|
|
|
284
284
|
/**
|
|
285
285
|
* Tipos de temas disponibles
|
|
286
286
|
*/
|
|
287
|
-
type FormTheme = 'plano' | 'tradicional' | 'material' | 'rounded-shadow' | 'lines';
|
|
287
|
+
type FormTheme = 'plano' | 'tradicional' | 'material' | 'rounded-shadow' | 'lines' | 'shadcn' | 'chakra' | 'mantine' | 'glass' | 'bordered' | 'minimal';
|
|
288
288
|
/**
|
|
289
289
|
* Colores personalizados del formulario
|
|
290
290
|
*/
|
|
@@ -459,6 +459,50 @@ declare class EasyForm extends BrowserHTMLElement {
|
|
|
459
459
|
* Registra componentes personalizados
|
|
460
460
|
*/
|
|
461
461
|
registerComponents(components: ComponentRegistry): void;
|
|
462
|
+
/**
|
|
463
|
+
* Resetea el formulario a sus valores iniciales
|
|
464
|
+
*/
|
|
465
|
+
reset(): void;
|
|
466
|
+
/**
|
|
467
|
+
* Limpia todos los valores del formulario
|
|
468
|
+
*/
|
|
469
|
+
clear(): void;
|
|
470
|
+
/**
|
|
471
|
+
* Obtiene todos los valores del formulario
|
|
472
|
+
*/
|
|
473
|
+
getValues(): Record<string, any>;
|
|
474
|
+
/**
|
|
475
|
+
* Obtiene el valor de un campo específico
|
|
476
|
+
*/
|
|
477
|
+
getValue(fieldName: string): any;
|
|
478
|
+
/**
|
|
479
|
+
* Establece el valor de un campo específico
|
|
480
|
+
*/
|
|
481
|
+
setValue(fieldName: string, value: any): Promise<void>;
|
|
482
|
+
/**
|
|
483
|
+
* Establece múltiples valores a la vez
|
|
484
|
+
*/
|
|
485
|
+
setValues(values: Record<string, any>): Promise<void>;
|
|
486
|
+
/**
|
|
487
|
+
* Valida el formulario completo
|
|
488
|
+
*/
|
|
489
|
+
validate(): Promise<Record<string, string[]>>;
|
|
490
|
+
/**
|
|
491
|
+
* Valida un campo específico
|
|
492
|
+
*/
|
|
493
|
+
validateField(fieldName: string): Promise<string[]>;
|
|
494
|
+
/**
|
|
495
|
+
* Obtiene todos los errores del formulario
|
|
496
|
+
*/
|
|
497
|
+
getErrors(): Record<string, string[]>;
|
|
498
|
+
/**
|
|
499
|
+
* Obtiene los errores de un campo específico
|
|
500
|
+
*/
|
|
501
|
+
getFieldErrors(fieldName: string): string[];
|
|
502
|
+
/**
|
|
503
|
+
* Verifica si el formulario es válido
|
|
504
|
+
*/
|
|
505
|
+
isValid(): boolean;
|
|
462
506
|
/**
|
|
463
507
|
* Obtiene el tema del formulario
|
|
464
508
|
*/
|