eatci-file-validator 1.0.0

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 (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -0
  3. package/dist/cjs/FileValidator.d.ts +6 -0
  4. package/dist/cjs/FileValidator.js +31 -0
  5. package/dist/cjs/FileValidator.js.map +1 -0
  6. package/dist/cjs/chakra-theme.d.ts +2 -0
  7. package/dist/cjs/chakra-theme.js +27 -0
  8. package/dist/cjs/chakra-theme.js.map +1 -0
  9. package/dist/cjs/index.d.ts +2 -0
  10. package/dist/cjs/index.js +7 -0
  11. package/dist/cjs/index.js.map +1 -0
  12. package/dist/cjs/rules.d.ts +23 -0
  13. package/dist/cjs/rules.js +479 -0
  14. package/dist/cjs/rules.js.map +1 -0
  15. package/dist/cjs/theme.d.ts +18 -0
  16. package/dist/cjs/theme.js +20 -0
  17. package/dist/cjs/theme.js.map +1 -0
  18. package/dist/cjs/translations.d.ts +70 -0
  19. package/dist/cjs/translations.js +72 -0
  20. package/dist/cjs/translations.js.map +1 -0
  21. package/dist/esm/FileValidator.d.ts +6 -0
  22. package/dist/esm/FileValidator.js +27 -0
  23. package/dist/esm/FileValidator.js.map +1 -0
  24. package/dist/esm/chakra-theme.d.ts +2 -0
  25. package/dist/esm/chakra-theme.js +25 -0
  26. package/dist/esm/chakra-theme.js.map +1 -0
  27. package/dist/esm/components/App.d.ts +1 -0
  28. package/dist/esm/components/App.js +113 -0
  29. package/dist/esm/components/App.js.map +1 -0
  30. package/dist/esm/index.d.ts +2 -0
  31. package/dist/esm/index.js +3 -0
  32. package/dist/esm/index.js.map +1 -0
  33. package/dist/esm/rules.d.ts +23 -0
  34. package/dist/esm/rules.js +477 -0
  35. package/dist/esm/rules.js.map +1 -0
  36. package/dist/esm/theme.d.ts +18 -0
  37. package/dist/esm/theme.js +18 -0
  38. package/dist/esm/theme.js.map +1 -0
  39. package/dist/esm/translations.d.ts +70 -0
  40. package/dist/esm/translations.js +70 -0
  41. package/dist/esm/translations.js.map +1 -0
  42. package/package.json +59 -0
@@ -0,0 +1,477 @@
1
+ export default {
2
+ fields: [
3
+ {
4
+ label: 'Code compagnie',
5
+ key: 'code_compagnie',
6
+ alternateMatches: ['code_compagnie'],
7
+ fieldType: {
8
+ type: 'input'
9
+ },
10
+ example: 'ASACI_TEST',
11
+ validations: [
12
+ {
13
+ rule: 'required',
14
+ errorMessage: 'Le code compagnie est requis',
15
+ level: 'error'
16
+ },
17
+ {
18
+ rule: 'regex',
19
+ value: '^ASACI_\\w+$',
20
+ errorMessage: 'Le code doit commencer par ASACI_',
21
+ level: 'error'
22
+ },
23
+ ]
24
+ },
25
+ {
26
+ label: "Date d'effet",
27
+ key: 'date_effet',
28
+ alternateMatches: ['date_effet'],
29
+ fieldType: {
30
+ type: 'input'
31
+ },
32
+ example: '01/01/2023',
33
+ validations: [
34
+ {
35
+ rule: 'required',
36
+ errorMessage: "La date d'effet est requise",
37
+ level: 'error'
38
+ },
39
+ {
40
+ rule: 'regex',
41
+ value: '^\\d{2}/\\d{2}/\\d{4}$',
42
+ errorMessage: "Le format de la date d'effet est incorrect",
43
+ level: 'error'
44
+ },
45
+ ]
46
+ },
47
+ {
48
+ label: "Date d'expiration",
49
+ key: 'date_expiration',
50
+ alternateMatches: ['date_expiration'],
51
+ fieldType: {
52
+ type: 'input'
53
+ },
54
+ example: '01/01/2023',
55
+ validations: [
56
+ {
57
+ rule: 'required',
58
+ errorMessage: "La date d'expiration est requise",
59
+ level: 'error'
60
+ },
61
+ {
62
+ rule: 'regex',
63
+ value: '^\\d{2}/\\d{2}/\\d{4}$',
64
+ errorMessage: "Le format de la date d'échéance est incorrect",
65
+ level: 'error'
66
+ },
67
+ ]
68
+ },
69
+ {
70
+ label: 'Genre du vehicule',
71
+ key: 'genre_vehicule',
72
+ alternateMatches: ['genre_vehicule'],
73
+ fieldType: {
74
+ type: 'input'
75
+ },
76
+ example: 'GV01',
77
+ validations: [
78
+ {
79
+ rule: 'required',
80
+ errorMessage: 'Le genre du véhicule est requis',
81
+ level: 'error'
82
+ },
83
+ {
84
+ rule: 'regex',
85
+ value: '^GV\\d{2}$',
86
+ errorMessage: 'Le format du genre du véhicule est incorrect',
87
+ level: 'error'
88
+ },
89
+ ]
90
+ },
91
+ {
92
+ label: "Numéro d'immatriculation",
93
+ key: 'numero_immatriculation',
94
+ alternateMatches: ['numero_immatriculation'],
95
+ fieldType: {
96
+ type: 'input'
97
+ },
98
+ example: '0114AS01',
99
+ validations: [
100
+ {
101
+ rule: 'required',
102
+ errorMessage: "L'immatriculation est requis",
103
+ level: 'error'
104
+ },
105
+ ]
106
+ },
107
+ {
108
+ label: 'Type de véhicule',
109
+ key: 'type_vehicule',
110
+ alternateMatches: ['type_vehicule'],
111
+ fieldType: {
112
+ type: 'input'
113
+ },
114
+ example: 'TV01',
115
+ validations: [
116
+ {
117
+ rule: 'required',
118
+ errorMessage: 'Le type du véhicule est requis',
119
+ level: 'error'
120
+ },
121
+ {
122
+ rule: 'regex',
123
+ value: '^TV\\d{2}$',
124
+ errorMessage: 'Le format du type du véhicule est incorrect',
125
+ level: 'error'
126
+ },
127
+ ]
128
+ },
129
+ {
130
+ label: 'Modèle du véhicule',
131
+ key: 'model_vehicule',
132
+ alternateMatches: ['model_vehicule'],
133
+ fieldType: {
134
+ type: 'input'
135
+ },
136
+ example: 'X5',
137
+ validations: [
138
+ {
139
+ rule: 'required',
140
+ errorMessage: 'Le modèle du véhicule est requis',
141
+ level: 'error'
142
+ },
143
+ ]
144
+ },
145
+ {
146
+ label: 'Catégorie du véhicule',
147
+ key: 'categorie_vehicule',
148
+ alternateMatches: ['categorie_vehicule'],
149
+ fieldType: {
150
+ type: 'input'
151
+ },
152
+ example: '01',
153
+ validations: [
154
+ {
155
+ rule: 'required',
156
+ errorMessage: 'La catégorie est requise',
157
+ level: 'error'
158
+ },
159
+ {
160
+ rule: 'regex',
161
+ value: '^\\d{1,2}$',
162
+ errorMessage: 'Le format de la catégorie du véhicule est incorrect',
163
+ level: 'error'
164
+ },
165
+ ]
166
+ },
167
+ {
168
+ label: 'Usage du véhicule',
169
+ key: 'usage_vehicule',
170
+ alternateMatches: ['usage_vehicule'],
171
+ fieldType: {
172
+ type: 'input'
173
+ },
174
+ example: 'UV01',
175
+ validations: [
176
+ {
177
+ rule: 'required',
178
+ errorMessage: "L'usage est requis",
179
+ level: 'error'
180
+ },
181
+ {
182
+ rule: 'regex',
183
+ value: '^UV\\d{2}$',
184
+ errorMessage: 'Le format de la catégorie du véhicule est incorrect',
185
+ level: 'error'
186
+ },
187
+ ]
188
+ },
189
+ {
190
+ label: "Source d'énergie",
191
+ key: 'source_energie',
192
+ alternateMatches: ['source_energie'],
193
+ fieldType: {
194
+ type: 'input'
195
+ },
196
+ example: 'SEES',
197
+ validations: [
198
+ {
199
+ rule: 'required',
200
+ errorMessage: "La source d'energie est requise",
201
+ level: 'error'
202
+ },
203
+ {
204
+ rule: 'regex',
205
+ value: '^(SEES|SEDI|SEHY|SEEL)$',
206
+ errorMessage: "Le format de la source d'énergie est incorrect",
207
+ level: 'error'
208
+ },
209
+ ]
210
+ },
211
+ {
212
+ label: 'Nombre de place',
213
+ key: 'nombre_place',
214
+ alternateMatches: ['nombre_place'],
215
+ fieldType: {
216
+ type: 'input'
217
+ },
218
+ example: '5',
219
+ validations: [
220
+ {
221
+ rule: 'required',
222
+ errorMessage: 'Le nombre de place est requis',
223
+ level: 'error'
224
+ },
225
+ {
226
+ rule: 'regex',
227
+ value: '^\\d+$',
228
+ errorMessage: 'Le nombre de place doit être un nombre',
229
+ level: 'error'
230
+ },
231
+ ]
232
+ },
233
+ {
234
+ label: 'Marque du véhicule',
235
+ key: 'marque_vehicule',
236
+ alternateMatches: ['marque_vehicule'],
237
+ fieldType: {
238
+ type: 'input'
239
+ },
240
+ example: 'TOYOTA',
241
+ validations: [
242
+ {
243
+ rule: 'required',
244
+ errorMessage: 'La marque est requise',
245
+ level: 'error'
246
+ },
247
+ ]
248
+ },
249
+ {
250
+ label: 'Numéro de chassis',
251
+ key: 'numero_chassis',
252
+ alternateMatches: ['numero_chassis'],
253
+ fieldType: {
254
+ type: 'input'
255
+ },
256
+ example: '01A1',
257
+ validations: [
258
+ {
259
+ rule: 'required',
260
+ errorMessage: 'Le numéro de chassis est requis',
261
+ level: 'error'
262
+ },
263
+ ]
264
+ },
265
+ {
266
+ label: 'Nom du souscripteur',
267
+ key: 'nom_souscripteur',
268
+ alternateMatches: ['nom_souscripteur'],
269
+ fieldType: {
270
+ type: 'input'
271
+ },
272
+ example: 'DION DETY',
273
+ validations: [
274
+ {
275
+ rule: 'required',
276
+ errorMessage: 'Le nom du souscripteur est requis',
277
+ level: 'error'
278
+ },
279
+ ]
280
+ },
281
+ {
282
+ label: 'Type de souscripteur',
283
+ key: 'type_souscripteur',
284
+ alternateMatches: ['type_souscripteur'],
285
+ fieldType: {
286
+ type: 'input'
287
+ },
288
+ example: 'TAPP',
289
+ validations: [
290
+ {
291
+ rule: 'required',
292
+ errorMessage: 'Le type du souscripteur est requis',
293
+ level: 'error'
294
+ },
295
+ {
296
+ rule: 'regex',
297
+ value: '^(TSPP|TSPM)$',
298
+ errorMessage: 'Le type de souscripteur est incorrect',
299
+ level: 'error'
300
+ },
301
+ ]
302
+ },
303
+ {
304
+ label: 'E-mail souscripteur',
305
+ key: 'adresse_mail_souscripteur',
306
+ alternateMatches: ['adresse_mail_souscripteur'],
307
+ fieldType: {
308
+ type: 'input'
309
+ },
310
+ example: 'support@asacitechnologies.com',
311
+ validations: [
312
+ {
313
+ rule: 'required',
314
+ errorMessage: "L'email du souscripteur est requis",
315
+ level: 'error'
316
+ },
317
+ ]
318
+ },
319
+ {
320
+ label: 'Contact du souscripteur',
321
+ key: 'numero_telephone_souscripteur',
322
+ alternateMatches: ['numero_telephone_souscripteur'],
323
+ fieldType: {
324
+ type: 'input'
325
+ },
326
+ example: '0700000000',
327
+ validations: [
328
+ {
329
+ rule: 'required',
330
+ errorMessage: 'Le contact du souscripteur est requis',
331
+ level: 'error'
332
+ },
333
+ ]
334
+ },
335
+ {
336
+ label: 'Boite postale souscripteur',
337
+ key: 'boite_postale_souscripteur',
338
+ alternateMatches: ['boite_postale_souscripteur'],
339
+ fieldType: {
340
+ type: 'input'
341
+ },
342
+ example: '21 BP 5137 ABJ 21',
343
+ validations: [
344
+ {
345
+ rule: 'required',
346
+ errorMessage: 'La boite postale du souscripteur est requise',
347
+ level: 'error'
348
+ },
349
+ ]
350
+ },
351
+ {
352
+ label: "Nom de l'assuré",
353
+ key: 'nom_assure',
354
+ alternateMatches: ['nom_assure'],
355
+ fieldType: {
356
+ type: 'input'
357
+ },
358
+ example: 'GON SALOMON',
359
+ validations: [
360
+ {
361
+ rule: 'required',
362
+ errorMessage: "Le nom de l'assuré est requis",
363
+ level: 'error'
364
+ },
365
+ ]
366
+ },
367
+ {
368
+ label: "E-mail de l'assuré",
369
+ key: 'adresse_mail_assure',
370
+ alternateMatches: ['adresse_mail_assure'],
371
+ fieldType: {
372
+ type: 'input'
373
+ },
374
+ example: 'mon@assure.com',
375
+ validations: [
376
+ {
377
+ rule: 'required',
378
+ errorMessage: "L'email de l'assuré est requis",
379
+ level: 'error'
380
+ },
381
+ ]
382
+ },
383
+ {
384
+ label: "Boite postale de l'assuré",
385
+ key: 'boite_postale_assure',
386
+ alternateMatches: ['boite_postale_assure'],
387
+ fieldType: {
388
+ type: 'input'
389
+ },
390
+ example: '01 BP ABJ 01',
391
+ validations: [
392
+ {
393
+ rule: 'required',
394
+ errorMessage: "La boite postale de l'assuré est requise",
395
+ level: 'error'
396
+ },
397
+ ]
398
+ },
399
+ {
400
+ label: "Contact de l'assuré",
401
+ key: 'numero_telephone_assure',
402
+ alternateMatches: ['numero_telephone_assure'],
403
+ fieldType: {
404
+ type: 'input'
405
+ },
406
+ example: '0708000000',
407
+ validations: [
408
+ {
409
+ rule: 'required',
410
+ errorMessage: "Le contact de l'assuré est requis",
411
+ level: 'error'
412
+ },
413
+ ]
414
+ },
415
+ {
416
+ label: 'Numéro de police',
417
+ key: 'numero_police',
418
+ alternateMatches: ['numero_police'],
419
+ fieldType: {
420
+ type: 'input'
421
+ },
422
+ example: '01/2023',
423
+ validations: [
424
+ {
425
+ rule: 'required',
426
+ errorMessage: 'Le numéro de police est requis',
427
+ level: 'error'
428
+ },
429
+ ]
430
+ },
431
+ {
432
+ label: 'Montant de la RC',
433
+ key: 'rc',
434
+ alternateMatches: ['rc'],
435
+ fieldType: {
436
+ type: 'input'
437
+ },
438
+ example: '100',
439
+ validations: [
440
+ {
441
+ rule: 'required',
442
+ errorMessage: 'La RC est requise',
443
+ level: 'error'
444
+ },
445
+ {
446
+ rule: 'regex',
447
+ value: '^\\d+$',
448
+ errorMessage: 'La RC doit être un nombre',
449
+ level: 'error'
450
+ },
451
+ ]
452
+ },
453
+ {
454
+ label: "Nature de l'attestation",
455
+ key: 'code_nature_attestation',
456
+ alternateMatches: ['code_nature_attestation'],
457
+ fieldType: {
458
+ type: 'input'
459
+ },
460
+ example: 'JAUN',
461
+ validations: [
462
+ {
463
+ rule: 'required',
464
+ errorMessage: "La nature de l'attestation est requise",
465
+ level: 'error'
466
+ },
467
+ {
468
+ rule: 'regex',
469
+ value: '^(JAUN|VERT)$',
470
+ errorMessage: "La nature de l'attestation est incorrect",
471
+ level: 'error'
472
+ },
473
+ ]
474
+ },
475
+ ]
476
+ };
477
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/rules.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,MAAM,EAAE;QACN;YACE,KAAK,EAAE,gBAAgB;YACvB,GAAG,EAAE,gBAAgB;YACrB,gBAAgB,EAAE,CAAC,gBAAgB,CAAC;YACpC,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;aACd;YACD,OAAO,EAAE,YAAY;YACrB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,UAAU;oBAChB,YAAY,EAAE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,YAAY,EAAE,gCAAgC;oBAC9C,KAAK,EAAE,OAAO;iBACf;aACF;SACF;QACD;YACE,KAAK,EAAE,kBAAkB;YACzB,GAAG,EAAE,IAAI;YACT,gBAAgB,EAAE,CAAC,IAAI,CAAC;YACxB,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;aACd;YACD,OAAO,EAAE,KAAK;YACd,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,UAAU;oBAChB,YAAY,EAAE,mBAAmB;oBACjC,KAAK,EAAE,OAAO;iBACf;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,QAAQ;oBACf,YAAY,EAAE,2BAA2B;oBACzC,KAAK,EAAE,OAAO;iBACf;aACF;SACF;QACD;YACE,KAAK,EAAE,yBAAyB;YAChC,GAAG,EAAE,yBAAyB;YAC9B,gBAAgB,EAAE,CAAC,yBAAyB,CAAC;YAC7C,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;aACd;YACD,OAAO,EAAE,MAAM;YACf,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,UAAU;oBAChB,YAAY,EAAE,wCAAwC;oBACtD,KAAK,EAAE,OAAO;iBACf;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,eAAe;oBACtB,YAAY,EAAE,0CAA0C;oBACxD,KAAK,EAAE,OAAO;iBACf;aACF;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ colors: {
3
+ textColor: string;
4
+ subtitleColor: string;
5
+ rsi: {
6
+ 100: string;
7
+ 200: string;
8
+ 300: string;
9
+ 400: string;
10
+ 500: string;
11
+ 600: string;
12
+ 700: string;
13
+ 800: string;
14
+ 900: string;
15
+ };
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,18 @@
1
+ export default {
2
+ colors: {
3
+ textColor: '#2D3748',
4
+ subtitleColor: '#718096',
5
+ rsi: {
6
+ 100: '#ff7800',
7
+ 200: '#ff7800',
8
+ 300: '#ff7800',
9
+ 400: '#ff7800',
10
+ 500: '#ff7800',
11
+ 600: '#ff7800',
12
+ 700: '#e75b2a',
13
+ 800: '#e75b2a',
14
+ 900: '#e75b2a'
15
+ }
16
+ }
17
+ };
18
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/theme.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,MAAM,EAAE;QACN,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,SAAS;QACxB,GAAG,EAAE;YACH,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;YACd,GAAG,EAAE,SAAS;SACf;KACF;CACF,CAAA"}
@@ -0,0 +1,70 @@
1
+ declare const _default: {
2
+ uploadStep: {
3
+ title: string;
4
+ manifestTitle: string;
5
+ manifestDescription: string;
6
+ maxRecordsExceeded: (maxRecords: string) => string;
7
+ dropzone: {
8
+ title: string;
9
+ errorToastDescription: string;
10
+ activeDropzoneTitle: string;
11
+ buttonTitle: string;
12
+ loadingTitle: string;
13
+ };
14
+ selectSheet: {
15
+ title: string;
16
+ nextButtonTitle: string;
17
+ };
18
+ };
19
+ selectHeaderStep: {
20
+ title: string;
21
+ nextButtonTitle: string;
22
+ };
23
+ matchColumnsStep: {
24
+ title: string;
25
+ nextButtonTitle: string;
26
+ userTableTitle: string;
27
+ templateTitle: string;
28
+ selectPlaceholder: string;
29
+ ignoredColumnText: string;
30
+ subSelectPlaceholder: string;
31
+ matchDropdownTitle: string;
32
+ unmatched: string;
33
+ duplicateColumnWarningTitle: string;
34
+ duplicateColumnWarningDescription: string;
35
+ };
36
+ validationStep: {
37
+ title: string;
38
+ nextButtonTitle: string;
39
+ noRowsMessage: string;
40
+ noRowsMessageWhenFiltered: string;
41
+ discardButtonTitle: string;
42
+ filterSwitchTitle: string;
43
+ };
44
+ alerts: {
45
+ confirmClose: {
46
+ headerTitle: string;
47
+ bodyText: string;
48
+ cancelButtonTitle: string;
49
+ exitButtonTitle: string;
50
+ };
51
+ submitIncomplete: {
52
+ headerTitle: string;
53
+ bodyText: string;
54
+ bodyTextSubmitForbidden: string;
55
+ cancelButtonTitle: string;
56
+ finishButtonTitle: string;
57
+ };
58
+ unmatchedRequiredFields: {
59
+ headerTitle: string;
60
+ bodyText: string;
61
+ listTitle: string;
62
+ cancelButtonTitle: string;
63
+ continueButtonTitle: string;
64
+ };
65
+ toast: {
66
+ error: string;
67
+ };
68
+ };
69
+ };
70
+ export default _default;
@@ -0,0 +1,70 @@
1
+ export default {
2
+ uploadStep: {
3
+ title: 'Chargement du fichier',
4
+ manifestTitle: 'Exemple de données:',
5
+ manifestDescription: "(Vous pourrez changer ou retirer des colonnes à l'étape suivante)",
6
+ maxRecordsExceeded: function (maxRecords) { return "Trop d'enregistrement. Jusqu'\u00E0 ".concat(maxRecords, " lignes autoris\u00E9es"); },
7
+ dropzone: {
8
+ title: 'Formats supportés: .xlsx, .xls ou .csv',
9
+ errorToastDescription: 'Chargement rejeté',
10
+ activeDropzoneTitle: 'Déposer le fichier ici...',
11
+ buttonTitle: 'Choisissez le fichier',
12
+ loadingTitle: 'Chargement...'
13
+ },
14
+ selectSheet: {
15
+ title: 'Selection du fichier',
16
+ nextButtonTitle: 'Suivant'
17
+ }
18
+ },
19
+ selectHeaderStep: {
20
+ title: "Selection de l'en-tête",
21
+ nextButtonTitle: 'Suivant'
22
+ },
23
+ matchColumnsStep: {
24
+ title: 'Correspondance des colonnes',
25
+ nextButtonTitle: 'Suivant',
26
+ userTableTitle: 'Votre tableau',
27
+ templateTitle: 'Deviendra',
28
+ selectPlaceholder: 'Selectionner la colonne ...',
29
+ ignoredColumnText: 'Colonne ignorée',
30
+ subSelectPlaceholder: 'Selectionner...',
31
+ matchDropdownTitle: 'Faire correspondre',
32
+ unmatched: 'Introuvable',
33
+ duplicateColumnWarningTitle: 'Une autre colonne non sélectionnée',
34
+ duplicateColumnWarningDescription: 'Les colonnes ne peuvent pas être dupliquées'
35
+ },
36
+ validationStep: {
37
+ title: 'Validation des données',
38
+ nextButtonTitle: 'Confirmer',
39
+ noRowsMessage: 'Aucune donnée trouvé',
40
+ noRowsMessageWhenFiltered: 'Aucune donnée contenant des erreurs',
41
+ discardButtonTitle: 'Supprimer les lignes sélectionnées',
42
+ filterSwitchTitle: 'Montrer seulement les lignes avec des erreurs'
43
+ },
44
+ alerts: {
45
+ confirmClose: {
46
+ headerTitle: 'Quitter le flow',
47
+ bodyText: 'Etes vous sûr? Vous perdrez vos informations actuelles.',
48
+ cancelButtonTitle: 'Annuler',
49
+ exitButtonTitle: 'Quitter le flow'
50
+ },
51
+ submitIncomplete: {
52
+ headerTitle: 'Des erreurs détectées',
53
+ bodyText: 'Il y a toujours des lignes avec des erreurs. Les lignes avec des erreurs seront ignorées.',
54
+ bodyTextSubmitForbidden: 'Il y a toujours des lignes avec des erreurs.',
55
+ cancelButtonTitle: 'Annuler',
56
+ finishButtonTitle: 'Valider'
57
+ },
58
+ unmatchedRequiredFields: {
59
+ headerTitle: 'Certaines colonnes ne sont pas renseignées',
60
+ bodyText: 'Il y a des colonnes requises qui ne sont pas renseignées ou ignorées.',
61
+ listTitle: 'Colonnes non renseignées:',
62
+ cancelButtonTitle: 'Annuler',
63
+ continueButtonTitle: 'Continuer'
64
+ },
65
+ toast: {
66
+ error: 'Erreur'
67
+ }
68
+ }
69
+ };
70
+ //# sourceMappingURL=translations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.js","sourceRoot":"","sources":["../../src/translations.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,UAAU,EAAE;QACV,KAAK,EAAE,uBAAuB;QAC9B,aAAa,EAAE,qBAAqB;QACpC,mBAAmB,EAAE,mEAAmE;QACxF,kBAAkB,EAAE,UAAC,U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