fuse-importer 0.0.9-testing → 0.1.1-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 +8 -5
- package/lib/esm/Importer/common/Spreadsheet/common/index.js +1 -1
- package/lib/esm/Importer/common/Spreadsheet/components/fields/SpreadsheetInput.js +16 -12
- package/lib/esm/Importer/common/Spreadsheet/components/fields/index.d.ts +2 -1
- package/lib/esm/Importer/common/Spreadsheet/components/fields/index.js +18 -12
- package/lib/esm/Importer/common/Spreadsheet/components/fields/utils.d.ts +11 -0
- package/lib/esm/Importer/common/Spreadsheet/components/fields/utils.js +29 -0
- package/lib/esm/Importer/common/Spreadsheet/transformation/transformators.js +39 -7
- package/lib/esm/Importer/data/index.js +22 -2
- package/lib/esm/common/Table/TableActions/TransformedRecordsCount.js +15 -3
- package/lib/esm/common/columnsValidations.d.ts +0 -26
- package/lib/esm/common/columnsValidations.js +1 -287
- package/lib/esm/common/datePatterns.d.ts +26 -0
- package/lib/esm/common/datePatterns.js +327 -0
- package/lib/esm/common/index.d.ts +1 -0
- package/lib/esm/common/index.js +1 -0
- package/lib/esm/common/inputs/SelectMenu.js +7 -0
- package/lib/esm/locales/de.js +1 -1
- package/lib/esm/locales/en.js +1 -1
- package/lib/esm/locales/es.js +1 -1
- package/lib/esm/locales/fr.js +1 -1
- package/lib/esm/types.d.ts +5 -4
- package/lib/esm/utils/index.d.ts +1 -0
- package/lib/esm/utils/index.js +4 -0
- package/lib/main.js +6 -6
- package/package.json +1 -1
package/lib/esm/locales/es.js
CHANGED
|
@@ -80,7 +80,7 @@ export default {
|
|
|
80
80
|
tooltip: "Exporta tus datos",
|
|
81
81
|
},
|
|
82
82
|
transformed_records: {
|
|
83
|
-
auto_corrections_done: "
|
|
83
|
+
auto_corrections_done: "celdas corregidas automáticamente",
|
|
84
84
|
example: "Ejemplo",
|
|
85
85
|
auto_corrections_amount: "Hemos corregido automáticamente {{amount}} problemas.",
|
|
86
86
|
},
|
package/lib/esm/locales/fr.js
CHANGED
|
@@ -80,7 +80,7 @@ export default {
|
|
|
80
80
|
tooltip: "Exporter vos données",
|
|
81
81
|
},
|
|
82
82
|
transformed_records: {
|
|
83
|
-
auto_corrections_done: "
|
|
83
|
+
auto_corrections_done: "cellules corrigées automatiquement",
|
|
84
84
|
example: "Exemple",
|
|
85
85
|
auto_corrections_amount: "Nous avons corrigé automatiquement {{amount}} problèmes.",
|
|
86
86
|
},
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -65,11 +65,12 @@ export type RowValidationError = {
|
|
|
65
65
|
export type BatchValidationErrors = {
|
|
66
66
|
[rowId: string]: ValidationErrors;
|
|
67
67
|
};
|
|
68
|
+
export type TransformedObj = {
|
|
69
|
+
original: any;
|
|
70
|
+
transformed: any;
|
|
71
|
+
};
|
|
68
72
|
export type TransformedRecord = {
|
|
69
|
-
[recordName: string]:
|
|
70
|
-
original: any;
|
|
71
|
-
transformed: any;
|
|
72
|
-
};
|
|
73
|
+
[recordName: string]: TransformedObj;
|
|
73
74
|
};
|
|
74
75
|
export type AppResponse = {
|
|
75
76
|
recordsToDisplay?: Record[];
|
package/lib/esm/utils/index.d.ts
CHANGED
package/lib/esm/utils/index.js
CHANGED
|
@@ -35,3 +35,7 @@ export var getDefaultValidations = function (columnType) {
|
|
|
35
35
|
return [];
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
export var truncateString = function (str, maxLength) {
|
|
39
|
+
if (maxLength === void 0) { maxLength = 10; }
|
|
40
|
+
return (str === null || str === void 0 ? void 0 : str.length) > maxLength ? "".concat(str === null || str === void 0 ? void 0 : str.slice(0, maxLength), "...") : str;
|
|
41
|
+
};
|