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.
- package/lib/esm/Importer/Review/ReviewContextProvider.js +12 -6
- package/lib/esm/Importer/Uploader/DragAndDropImporter/ImporterDropzone.js +21 -6
- package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/index.d.ts +2 -0
- package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/index.js +5 -4
- package/lib/esm/Importer/common/Spreadsheet/components/SpreadsheetData.js +2 -2
- package/lib/esm/Importer/common/Spreadsheet/components/fields/SpeadsheetAutocomplete.d.ts +1 -0
- package/lib/esm/Importer/common/Spreadsheet/components/fields/SpeadsheetAutocomplete.js +8 -3
- package/lib/esm/Importer/common/Spreadsheet/components/fields/SpreadsheetInput.d.ts +3 -1
- package/lib/esm/Importer/common/Spreadsheet/components/fields/SpreadsheetInput.js +38 -11
- package/lib/esm/Importer/common/Spreadsheet/components/fields/index.d.ts +11 -5
- package/lib/esm/Importer/common/Spreadsheet/components/fields/index.js +21 -9
- package/lib/esm/Importer/common/Spreadsheet/hooks.js +1 -10
- package/lib/esm/Importer/common/Spreadsheet/transformation/index.d.ts +2 -2
- package/lib/esm/Importer/common/Spreadsheet/transformation/index.js +33 -11
- package/lib/esm/Importer/common/Spreadsheet/transformation/transformators.d.ts +7 -3
- package/lib/esm/Importer/common/Spreadsheet/transformation/transformators.js +130 -37
- package/lib/esm/Importer/common/Spreadsheet/validation/index.js +2 -3
- package/lib/esm/Importer/data/index.d.ts +2 -2
- package/lib/esm/Importer/data/index.js +12 -10
- package/lib/esm/common/ConfirmationModal.js +1 -1
- package/lib/esm/common/Modal.js +2 -2
- package/lib/esm/common/Table/TableActions/FilterByErrors/FilterByErrors.js +2 -1
- package/lib/esm/common/Table/TableActions/TableActions.js +3 -2
- package/lib/esm/common/Table/TableActions/TableActions.styles.d.ts +1 -0
- package/lib/esm/common/Table/TableActions/TableActions.styles.js +4 -3
- package/lib/esm/common/Table/TableActions/TransformedRecordsCount.d.ts +1 -0
- package/lib/esm/common/Table/TableActions/TransformedRecordsCount.js +67 -0
- package/lib/esm/common/Table/TableActions/icons.d.ts +1 -0
- package/lib/esm/common/Table/TableActions/icons.js +1 -0
- package/lib/esm/common/Table/TableView/TableRows/TableRow.js +1 -1
- package/lib/esm/common/columnsTransformations.d.ts +1 -0
- package/lib/esm/common/columnsTransformations.js +12 -10
- package/lib/esm/locales/de.d.ts +5 -0
- package/lib/esm/locales/de.js +6 -1
- package/lib/esm/locales/en.d.ts +5 -0
- package/lib/esm/locales/en.js +6 -1
- package/lib/esm/locales/es.d.ts +5 -0
- package/lib/esm/locales/es.js +6 -1
- package/lib/esm/locales/fr.d.ts +5 -0
- package/lib/esm/locales/fr.js +6 -1
- package/lib/esm/types.d.ts +7 -0
- package/lib/main.js +16 -16
- package/package.json +5 -6
- package/lib/esm/common/Table/TableView/CustomScrollbar.d.ts +0 -2
- package/lib/esm/common/Table/TableView/CustomScrollbar.js +0 -34
package/lib/esm/locales/en.d.ts
CHANGED
package/lib/esm/locales/en.js
CHANGED
|
@@ -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, .
|
|
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: {
|
package/lib/esm/locales/es.d.ts
CHANGED
package/lib/esm/locales/es.js
CHANGED
|
@@ -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, .
|
|
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: {
|
package/lib/esm/locales/fr.d.ts
CHANGED
package/lib/esm/locales/fr.js
CHANGED
|
@@ -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, .
|
|
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: {
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -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;
|