fuse-importer 0.0.5-testing → 0.0.7-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/Uploader/DragAndDropImporter/ImporterDropzone.js +1 -1
- 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 +136 -38
- package/lib/esm/Importer/common/Spreadsheet/validation/validators.d.ts +1 -1
- package/lib/esm/Importer/common/Spreadsheet/validation/validators.js +6 -1
- package/lib/esm/Importer/data/index.d.ts +2 -2
- package/lib/esm/Importer/data/index.js +12 -10
- 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 +71 -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/common/columnsValidations.js +261 -5
- package/lib/esm/locales/de.d.ts +5 -0
- package/lib/esm/locales/de.js +5 -0
- package/lib/esm/locales/en.d.ts +5 -0
- package/lib/esm/locales/en.js +5 -0
- package/lib/esm/locales/es.d.ts +5 -0
- package/lib/esm/locales/es.js +5 -0
- package/lib/esm/locales/fr.d.ts +5 -0
- package/lib/esm/locales/fr.js +5 -0
- package/lib/esm/types.d.ts +7 -0
- package/lib/main.js +17 -17
- package/package.json +1 -1
|
@@ -222,27 +222,283 @@ export var availableColumnTypes = Object.keys(validationsByColumnType);
|
|
|
222
222
|
export var datePatterns = [
|
|
223
223
|
{
|
|
224
224
|
value: "MM/dd/yyyy",
|
|
225
|
-
label: "MM/dd/yyyy",
|
|
225
|
+
label: "MM/dd/yyyy (e.g. 08/31/2023)",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
value: "yyyy-MM-dd",
|
|
229
|
+
label: "yyyy-MM-dd (e.g. 2023-08-31",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
value: "dd/MM/yyyy",
|
|
233
|
+
label: "dd/MM/yyyy (e.g. 31/08/2023",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
value: "MM-dd-yyyy",
|
|
237
|
+
label: "MM-dd-yyyy (e.g. 08-31-2023)",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
value: "yyyy/MM/dd",
|
|
241
|
+
label: "yyyy/MM/dd (e.g. 2023/08/31)",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
value: "dd-MMMM-yyyy",
|
|
245
|
+
label: "dd-MMMM-yyyy (e.g. 31-August-2023)",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
value: "MMMM dd, yyyy",
|
|
249
|
+
label: "MMMM dd, yyyy (e.g. August 31, 2023)",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
value: "dd/MM/yy",
|
|
253
|
+
label: "dd/MM/yy (e.g. 31/08/23)",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
value: "MMMM dd, yy",
|
|
257
|
+
label: "MMMM dd, yy (e.g. August 31, 23)",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
value: "yy/MM/dd",
|
|
261
|
+
label: "yy/MM/dd (e.g. 23/08/31)",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
value: "EEEE MMMM yyyy",
|
|
265
|
+
label: "Day MMMM Year (e.g. Tuesday August 2023)",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
value: "EEEE dd MMMM yyyy",
|
|
269
|
+
label: "Day Day-of-Month Month Year (e.g. Tuesday 08 August 2023)",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
value: "MM-dd-yy",
|
|
273
|
+
label: "MM-dd-yy (e.g. 01-15-90)",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
value: "M-dd-yy",
|
|
277
|
+
label: "M-dd-yy (e.g. 1-15-90)",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
value: "dd-MM-yy",
|
|
281
|
+
label: "dd-MM-yy (e.g. 15-01-90)",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
value: "dd-MM-yyyy",
|
|
285
|
+
label: "dd-MM-yyyy (e.g. 15-01-1990)",
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
value: "dd-M-yy",
|
|
289
|
+
label: "dd-M-yy (e.g. 15-1-90)",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
value: "MM/dd/yy",
|
|
293
|
+
label: "MM/dd/yy (e.g. 01/15/90)",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
value: "M/dd/yy",
|
|
297
|
+
label: "M/dd/yy (e.g. 1/15/90)",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
value: "MM.dd.yy",
|
|
301
|
+
label: "MM.dd.yy (e.g. 01.15.90)",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
value: "M.dd.yy",
|
|
305
|
+
label: "M.dd.yy (e.g. 1.15.90)",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
value: "MMM-dd-yy",
|
|
309
|
+
label: "MMM-dd-yy (e.g. Jan-15-90)",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
value: "MMMM-dd-yy",
|
|
313
|
+
label: "MMMM-dd-yy (e.g. January-15-90)",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
value: "dd-MMM-yy",
|
|
317
|
+
label: "dd-MMM-yy (e.g. 15-Jan-90)",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
value: "yyyy-M-dd",
|
|
321
|
+
label: "yyyy-M-dd (e.g. 1990-1-15)",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
value: "M-dd-yyyy",
|
|
325
|
+
label: "M-dd-yyyy (e.g. 1-15-1990)",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
value: "M/dd/yyyy",
|
|
329
|
+
label: "M/dd/yyyy (e.g. 1/15/1990)",
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
value: "dd/M/yyyy",
|
|
333
|
+
label: "dd/M/yyyy (e.g. 15/1/1990)",
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
value: "yyyy/M/dd",
|
|
337
|
+
label: "yyyy/M/dd (e.g. 1990/1/15)",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
value: "dd.MM.yyyy",
|
|
341
|
+
label: "dd.MM.yyyy (e.g. 15.01.1990)",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
value: "dd.M.yyyy",
|
|
345
|
+
label: "dd.M.yyyy (e.g. 15.1.1990)",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
value: "yyyy.MM.dd",
|
|
349
|
+
label: "yyyy.MM.dd (e.g. 1990.01.15)",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
value: "yyyy.M.dd",
|
|
353
|
+
label: "yyyy.M.dd (e.g. 1990.1.15)",
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
value: "MMM. dd, yyyy",
|
|
357
|
+
label: "MMM. dd, yyyy (e.g. Jan. 15, 1990)",
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
value: "dd MMM. yyyy",
|
|
361
|
+
label: "dd MMM. yyyy(e.g. 15 Jan. 1990)",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
value: "dd. MMM. yyyy",
|
|
365
|
+
label: "dd. MMM. yyyy (e.g. 15. Jan. 1990)",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
value: "EEE, MMM dd, yyyy",
|
|
369
|
+
label: "EEE, MMM dd, yyyy (e.g. Mon, Jan 15, 1990)",
|
|
226
370
|
},
|
|
227
371
|
];
|
|
228
372
|
export var dateTimePatterns = [
|
|
229
373
|
{
|
|
230
374
|
value: "MM/dd/yyyy HH:mm",
|
|
231
|
-
label: "MM/dd/yyyy HH:mm",
|
|
375
|
+
label: "MM/dd/yyyy HH:mm (e.g. 08/31/2023 12:30)",
|
|
232
376
|
},
|
|
233
377
|
{
|
|
234
378
|
value: "MM/dd/yyyy HH:mm:ss",
|
|
235
|
-
label: "MM/dd/yyyy HH:mm:ss",
|
|
379
|
+
label: "MM/dd/yyyy HH:mm:ss (e.g. 08/31/2023 12:30:45)",
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
value: "MM/dd/yyyy HH:mm:ss.SSS",
|
|
383
|
+
label: "MM/dd/yyyy HH:mm:ss.SSS (e.g. 08/31/2023 12:30:45.500)",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
value: "MM/dd/yyyy h:mm a",
|
|
387
|
+
label: "MM/dd/yyyy h:mm a (e.g. 08/31/2023 1:30 PM)",
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
value: "MM/dd/yyyy h:mm:ss a",
|
|
391
|
+
label: "MM/dd/yyyy h:mm:ss a (e.g. 08/31/2023 1:30:45 PM)",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
value: "MMM dd HH:mm:ss yyyy",
|
|
395
|
+
label: "MMM dd HH:mm:ss yyyy (e.g. Jan 15 00:34:59 1990)",
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
value: "dd MMM HH:mm:ss yyyy",
|
|
399
|
+
label: "dd MMM HH:mm:ss yyyy (e.g. 15 Jan 00:34:59 1990)",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
value: "MM/dd/yyyy h:mm:ss.SSS a",
|
|
403
|
+
label: "MM/dd/yyyy h:mm:ss.SSS a (e.g. 08/31/2023 1:30:45.500 PM)",
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
value: "MMMM dd, yyyy HH:mm",
|
|
407
|
+
label: "MMMM dd, yyyy HH:mm (e.g. August 31, 2023 12:30)",
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
value: "MMMM dd, yyyy HH:mm:ss",
|
|
411
|
+
label: "MMMM dd, yyyy HH:mm:ss (e.g. August 31, 2023 12:30:45)",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
value: "MMMM dd, yyyy h:mm a",
|
|
415
|
+
label: "MMMM dd, yyyy h:mm a (e.g. August 31, 2023 1:30 PM)",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
value: "MMMM dd, yyyy h:mm:ss a",
|
|
419
|
+
label: "MMMM dd, yyyy h:mm:ss a (e.g. August 31, 2023 1:30:45 PM)",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
value: "MMMM dd, yyyy h:mm:ss.SSS a",
|
|
423
|
+
label: "MMMM dd, yyyy h:mm:ss.SSS a (e.g. August 31, 2023 1:30:45.500 PM)",
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
value: "MM-dd-yy HH:mm",
|
|
427
|
+
label: "MM-dd-yy HH:mm (e.g. 01-15-90 10:10)",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
value: "dd-MM-yyyy HH:mm",
|
|
431
|
+
label: "dd-MM-yyyy HH:mm (e.g. 15-01-1990 10:10)",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
value: "dd/MM/yyyy HH:mm",
|
|
435
|
+
label: "dd/MM/yyyy HH:mm (e.g. 15/01/1990 10:10)",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
value: "dd-MM-yyyy h:mm a",
|
|
439
|
+
label: "dd-MM-yyyy h:mm a (e.g. 15-01-1990 10:10 AM)",
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
value: "dd/MM/yyyy h:mm a",
|
|
443
|
+
label: "dd/MM/yyyy h:mm a (e.g. 15/01/1990 10:10 AM)",
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
value: "MM/dd/yy HH:mm",
|
|
447
|
+
label: "MM/dd/yy HH:mm (e.g. 01/15/90 10:10)",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
value: "MM/dd/yy HH:mm:ss",
|
|
451
|
+
label: "MM/dd/yy HH:mm:ss (e.g. 01/15/90 10:10:14)",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
value: "MM/dd/yy h:mm:ss a",
|
|
455
|
+
label: "MM/dd/yy h:mm:ss a (e.g. 01/15/90 5:10:14 AM)",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
value: "yyyy/MM/dd HH:mm",
|
|
459
|
+
label: "yyyy/MM/dd HH:mm (e.g. 1990/01/15 10:10)",
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
value: "MM-dd-yyyy HH:mm",
|
|
463
|
+
label: "MM-dd-yyyy HH:mm (e.g. 01-15-1990 10:10)",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
value: "yyyy-MM-dd HH:mm",
|
|
467
|
+
label: "yyyy-MM-dd HH:mm (e.g. 1990-01-15 10:10)",
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
value: "yyyy-MM-dd'T'HH:mm:ss.SSSZ",
|
|
471
|
+
label: "ISO 8601 (e.g. 1990-01-15T00:34:55.020+09:30)",
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
value: "yyyy-MM-dd'T'HH:mm:ss.SSS",
|
|
475
|
+
label: "ISO 8601 without timezone offset (e.g. 1990-01-15T00:34:55.020)",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
value: "yyyy-MM-dd'T'HH:mmZ",
|
|
479
|
+
label: "yyyy-MM-dd'T'HH:mm+offset (e.g. 1990-01-15T10:10+09:30)",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
value: "yyyy-MM-dd'T'HH:mm",
|
|
483
|
+
label: "yyyy-MM-dd'T'HH:mm (e.g. 1990-01-15T10:10)",
|
|
236
484
|
},
|
|
237
485
|
];
|
|
238
486
|
export var timePatterns = [
|
|
239
487
|
{
|
|
240
488
|
value: "HH:mm",
|
|
241
|
-
label: "HH:mm",
|
|
489
|
+
label: "HH:mm (e.g. 12:30)",
|
|
242
490
|
},
|
|
243
491
|
{
|
|
244
492
|
value: "HH:mm:ss",
|
|
245
|
-
label: "HH:mm:ss",
|
|
493
|
+
label: "HH:mm:ss (e.g. 12:30:45)",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
value: "hh:mm a",
|
|
497
|
+
label: "hh:mm a (e.g. 01:30 PM)",
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
value: "hh:mm:ss a",
|
|
501
|
+
label: "hh:mm:ss a (e.g. 01:30:45 PM)",
|
|
246
502
|
},
|
|
247
503
|
];
|
|
248
504
|
export var allowedPatterns = {
|
package/lib/esm/locales/de.d.ts
CHANGED
package/lib/esm/locales/de.js
CHANGED
|
@@ -79,6 +79,11 @@ export default {
|
|
|
79
79
|
export_your_data: {
|
|
80
80
|
tooltip: "Exportiere deine Daten",
|
|
81
81
|
},
|
|
82
|
+
transformed_records: {
|
|
83
|
+
auto_corrections_done: "automatische Korrekturen durchgeführt",
|
|
84
|
+
example: "Beispiel",
|
|
85
|
+
auto_corrections_amount: "Wir haben {{amount}} Probleme automatisch korrigiert.",
|
|
86
|
+
},
|
|
82
87
|
},
|
|
83
88
|
},
|
|
84
89
|
general: {
|
package/lib/esm/locales/en.d.ts
CHANGED
package/lib/esm/locales/en.js
CHANGED
|
@@ -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
|
@@ -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
|
@@ -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;
|