fuse-importer 0.0.4-testing → 0.0.6-testing

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 (45) hide show
  1. package/lib/esm/Importer/Review/ReviewContextProvider.js +12 -6
  2. package/lib/esm/Importer/Uploader/DragAndDropImporter/ImporterDropzone.js +21 -6
  3. package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/index.d.ts +2 -0
  4. package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/index.js +5 -4
  5. package/lib/esm/Importer/common/Spreadsheet/components/SpreadsheetData.js +2 -2
  6. package/lib/esm/Importer/common/Spreadsheet/components/fields/SpeadsheetAutocomplete.d.ts +1 -0
  7. package/lib/esm/Importer/common/Spreadsheet/components/fields/SpeadsheetAutocomplete.js +8 -3
  8. package/lib/esm/Importer/common/Spreadsheet/components/fields/SpreadsheetInput.d.ts +3 -1
  9. package/lib/esm/Importer/common/Spreadsheet/components/fields/SpreadsheetInput.js +38 -11
  10. package/lib/esm/Importer/common/Spreadsheet/components/fields/index.d.ts +11 -5
  11. package/lib/esm/Importer/common/Spreadsheet/components/fields/index.js +21 -9
  12. package/lib/esm/Importer/common/Spreadsheet/hooks.js +1 -10
  13. package/lib/esm/Importer/common/Spreadsheet/transformation/index.d.ts +2 -2
  14. package/lib/esm/Importer/common/Spreadsheet/transformation/index.js +33 -11
  15. package/lib/esm/Importer/common/Spreadsheet/transformation/transformators.d.ts +7 -3
  16. package/lib/esm/Importer/common/Spreadsheet/transformation/transformators.js +130 -37
  17. package/lib/esm/Importer/common/Spreadsheet/validation/index.js +2 -3
  18. package/lib/esm/Importer/data/index.d.ts +2 -2
  19. package/lib/esm/Importer/data/index.js +12 -10
  20. package/lib/esm/common/ConfirmationModal.js +1 -1
  21. package/lib/esm/common/Modal.js +2 -2
  22. package/lib/esm/common/Table/TableActions/FilterByErrors/FilterByErrors.js +2 -1
  23. package/lib/esm/common/Table/TableActions/TableActions.js +3 -2
  24. package/lib/esm/common/Table/TableActions/TableActions.styles.d.ts +1 -0
  25. package/lib/esm/common/Table/TableActions/TableActions.styles.js +4 -3
  26. package/lib/esm/common/Table/TableActions/TransformedRecordsCount.d.ts +1 -0
  27. package/lib/esm/common/Table/TableActions/TransformedRecordsCount.js +67 -0
  28. package/lib/esm/common/Table/TableActions/icons.d.ts +1 -0
  29. package/lib/esm/common/Table/TableActions/icons.js +1 -0
  30. package/lib/esm/common/Table/TableView/TableRows/TableRow.js +1 -1
  31. package/lib/esm/common/columnsTransformations.d.ts +1 -0
  32. package/lib/esm/common/columnsTransformations.js +12 -10
  33. package/lib/esm/locales/de.d.ts +5 -0
  34. package/lib/esm/locales/de.js +6 -1
  35. package/lib/esm/locales/en.d.ts +5 -0
  36. package/lib/esm/locales/en.js +6 -1
  37. package/lib/esm/locales/es.d.ts +5 -0
  38. package/lib/esm/locales/es.js +6 -1
  39. package/lib/esm/locales/fr.d.ts +5 -0
  40. package/lib/esm/locales/fr.js +6 -1
  41. package/lib/esm/types.d.ts +7 -0
  42. package/lib/main.js +16 -16
  43. package/package.json +5 -6
  44. package/lib/esm/common/Table/TableView/CustomScrollbar.d.ts +0 -2
  45. package/lib/esm/common/Table/TableView/CustomScrollbar.js +0 -34
@@ -78,6 +78,11 @@ declare const _default: {
78
78
  export_your_data: {
79
79
  tooltip: string;
80
80
  };
81
+ transformed_records: {
82
+ auto_corrections_done: string;
83
+ example: string;
84
+ auto_corrections_amount: string;
85
+ };
81
86
  };
82
87
  };
83
88
  general: {
@@ -25,7 +25,7 @@ export default {
25
25
  optional_headers: "Optional Headers",
26
26
  },
27
27
  title: "Upload a File to Import your Data",
28
- description: "\n Upload any .csv, .tsv, .xls, .xlsx spreadsheet file with any set of\n columns as long as it has one record per row.\n ",
28
+ description: "\n Upload any .csv, .xls, .xlsx file with any set of\n columns as long as it has one record per row.\n ",
29
29
  loading: {
30
30
  title: "Uploading...",
31
31
  },
@@ -79,6 +79,11 @@ export default {
79
79
  export_your_data: {
80
80
  tooltip: "Export your data",
81
81
  },
82
+ transformed_records: {
83
+ auto_corrections_done: "auto-corrections done",
84
+ example: "Example",
85
+ auto_corrections_amount: "We have auto-corrected {{amount}} issues.",
86
+ },
82
87
  },
83
88
  },
84
89
  general: {
@@ -78,6 +78,11 @@ declare const _default: {
78
78
  export_your_data: {
79
79
  tooltip: string;
80
80
  };
81
+ transformed_records: {
82
+ auto_corrections_done: string;
83
+ example: string;
84
+ auto_corrections_amount: string;
85
+ };
81
86
  };
82
87
  };
83
88
  general: {
@@ -25,7 +25,7 @@ export default {
25
25
  optional_headers: "Encabezados opcionales",
26
26
  },
27
27
  title: "Cargue un archivo para importar sus datos",
28
- description: "\n Cargue cualquier archivo de hoja de c\u00E1lculo .csv, .tsv, .xls, .xlsx con cualquier conjunto de\n columnas siempre y cuando tenga un registro por fila.\n ",
28
+ description: "\n Cargue cualquier archivo de hoja de c\u00E1lculo .csv, .xls, .xlsx con cualquier conjunto de\n columnas siempre y cuando tenga un registro por fila.\n ",
29
29
  loading: {
30
30
  title: "Cargando...",
31
31
  },
@@ -79,6 +79,11 @@ export default {
79
79
  export_your_data: {
80
80
  tooltip: "Exporta tus datos",
81
81
  },
82
+ transformed_records: {
83
+ auto_corrections_done: "correcciones automáticas realizadas",
84
+ example: "Ejemplo",
85
+ auto_corrections_amount: "Hemos corregido automáticamente {{amount}} problemas.",
86
+ },
82
87
  },
83
88
  },
84
89
  general: {
@@ -78,6 +78,11 @@ declare const _default: {
78
78
  export_your_data: {
79
79
  tooltip: string;
80
80
  };
81
+ transformed_records: {
82
+ auto_corrections_done: string;
83
+ example: string;
84
+ auto_corrections_amount: string;
85
+ };
81
86
  };
82
87
  };
83
88
  general: {
@@ -25,7 +25,7 @@ export default {
25
25
  optional_headers: "En-têtes facultatifs",
26
26
  },
27
27
  title: "Téléchargez un fichier pour importer vos données",
28
- description: "\n T\u00E9l\u00E9chargez tout fichier de tableur .csv, .tsv, .xls, .xlsx avec n'importe quel ensemble de\n colonnes tant qu'il a une seule ligne par ligne.\n ",
28
+ description: "\n T\u00E9l\u00E9chargez tout fichier de tableur .csv, .xls, .xlsx avec n'importe quel ensemble de\n colonnes tant qu'il a une seule ligne par ligne.\n ",
29
29
  loading: {
30
30
  title: "Téléchargement en cours...",
31
31
  },
@@ -79,6 +79,11 @@ export default {
79
79
  export_your_data: {
80
80
  tooltip: "Exporter vos données",
81
81
  },
82
+ transformed_records: {
83
+ auto_corrections_done: "corrections automatiques effectuées",
84
+ example: "Exemple",
85
+ auto_corrections_amount: "Nous avons corrigé automatiquement {{amount}} problèmes.",
86
+ },
82
87
  },
83
88
  },
84
89
  general: {
@@ -40,6 +40,7 @@ export type Meta = {
40
40
  touched?: boolean;
41
41
  uploadedRow?: any;
42
42
  backendErrors?: ValidationErrors;
43
+ transformedRow?: TransformedRecord;
43
44
  };
44
45
  export type Record = {
45
46
  [key: string]: any;
@@ -64,6 +65,12 @@ export type RowValidationError = {
64
65
  export type BatchValidationErrors = {
65
66
  [rowId: string]: ValidationErrors;
66
67
  };
68
+ export type TransformedRecord = {
69
+ [recordName: string]: {
70
+ original: any;
71
+ transformed: any;
72
+ };
73
+ };
67
74
  export type AppResponse = {
68
75
  recordsToDisplay?: Record[];
69
76
  errors?: SpreadsheetValidationErrors;