@openmrs/esm-fast-data-entry-app 1.0.1-pre.8 → 1.0.1-pre.82

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 (84) hide show
  1. package/README.md +21 -2
  2. package/dist/132.js +1 -0
  3. package/dist/168.js +1 -0
  4. package/dist/229.js +1 -0
  5. package/dist/247.js +1 -0
  6. package/dist/255.js +1 -0
  7. package/dist/294.js +2 -0
  8. package/dist/294.js.LICENSE.txt +9 -0
  9. package/dist/32.js +1 -0
  10. package/dist/327.js +1 -0
  11. package/dist/403.js +2 -0
  12. package/dist/403.js.LICENSE.txt +14 -0
  13. package/dist/553.js +2 -0
  14. package/dist/553.js.LICENSE.txt +14 -0
  15. package/dist/569.js +2 -0
  16. package/dist/569.js.LICENSE.txt +27 -0
  17. package/dist/574.js +1 -0
  18. package/dist/595.js +2 -0
  19. package/dist/595.js.LICENSE.txt +1 -0
  20. package/dist/617.js +1 -0
  21. package/dist/68.js +2 -0
  22. package/dist/68.js.LICENSE.txt +21 -0
  23. package/dist/74.js +1 -0
  24. package/dist/757.js +1 -0
  25. package/dist/776.js +1 -0
  26. package/dist/804.js +1 -0
  27. package/dist/820.js +1 -0
  28. package/dist/935.js +2 -0
  29. package/dist/935.js.LICENSE.txt +19 -0
  30. package/dist/main.js +1 -0
  31. package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
  32. package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +612 -0
  33. package/dist/openmrs-esm-fast-data-entry-app.old +1 -0
  34. package/package.json +9 -9
  35. package/src/CancelModal.tsx +48 -0
  36. package/src/CompleteModal.tsx +46 -0
  37. package/src/FormBootstrap.tsx +18 -3
  38. package/src/add-group-modal/AddGroupModal.tsx +80 -27
  39. package/src/add-group-modal/styles.scss +14 -4
  40. package/src/config-schema.ts +22 -0
  41. package/src/context/FormWorkflowContext.tsx +13 -1
  42. package/src/context/FormWorkflowReducer.ts +13 -3
  43. package/src/context/GroupFormWorkflowContext.tsx +41 -6
  44. package/src/context/GroupFormWorkflowReducer.ts +170 -12
  45. package/src/form-entry-workflow/FormEntryWorkflow.tsx +67 -101
  46. package/src/form-entry-workflow/styles.scss +2 -1
  47. package/src/forms-page/FormsPage.tsx +8 -3
  48. package/src/forms-page/forms-table/FormsTable.tsx +11 -5
  49. package/src/group-form-entry-workflow/GroupFormEntryWorkflow.tsx +13 -400
  50. package/src/group-form-entry-workflow/GroupSessionWorkspace.tsx +247 -0
  51. package/src/group-form-entry-workflow/SessionDetailsForm.tsx +122 -0
  52. package/src/group-form-entry-workflow/SessionMetaWorkspace.tsx +107 -0
  53. package/src/group-form-entry-workflow/attendance-table/AttendanceTable.tsx +105 -0
  54. package/src/group-form-entry-workflow/attendance-table/index.ts +1 -0
  55. package/src/group-form-entry-workflow/{group-banner/GroupBanner.test.tsx → group-display-header/GroupDisplayHeader.test.tsx} +2 -2
  56. package/src/group-form-entry-workflow/{group-banner/GroupBanner.tsx → group-display-header/GroupDisplayHeader.tsx} +23 -5
  57. package/src/group-form-entry-workflow/group-display-header/index.ts +3 -0
  58. package/src/group-form-entry-workflow/group-search/CompactGroupResults.tsx +61 -28
  59. package/src/group-form-entry-workflow/group-search/CompactGroupSearch.tsx +5 -0
  60. package/src/group-form-entry-workflow/group-search/GroupSearch.tsx +65 -8
  61. package/src/group-form-entry-workflow/group-search/group-search.scss +8 -6
  62. package/src/group-form-entry-workflow/group-search-header/GroupSearchHeader.tsx +11 -7
  63. package/src/group-form-entry-workflow/styles.scss +12 -1
  64. package/src/hooks/index.ts +1 -0
  65. package/src/hooks/useGetSystemSetting.ts +38 -0
  66. package/src/hooks/usePostEndpoint.ts +70 -0
  67. package/src/hooks/useSearchEndpoint.ts +120 -0
  68. package/src/hooks/useStartVisit.ts +92 -0
  69. package/src/patient-card/styles.scss +1 -0
  70. package/tools/i18next-parser.config.js +93 -0
  71. package/translations/en.json +27 -9
  72. package/translations/fr.json +50 -0
  73. package/.editorconfig +0 -12
  74. package/.eslintignore +0 -2
  75. package/.eslintrc.js +0 -10
  76. package/.husky/pre-push +0 -1
  77. package/.prettierignore +0 -14
  78. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  79. package/.yarn/versions/7ee3eceb.yml +0 -0
  80. package/src/group-form-entry-workflow/group-banner/index.ts +0 -3
  81. package/src/group-form-entry-workflow/group-search/mock-group-data.ts +0 -79
  82. package/src/group-form-entry-workflow/group-search/useGroupSearch.ts +0 -14
  83. package/src/hooks/usePostCohort.ts +0 -18
  84. /package/src/group-form-entry-workflow/{group-banner → group-display-header}/styles.scss +0 -0
@@ -0,0 +1,612 @@
1
+ {
2
+ "chunks": [
3
+ {
4
+ "rendered": true,
5
+ "initial": false,
6
+ "entry": false,
7
+ "recorded": false,
8
+ "size": 29870,
9
+ "sizes": {
10
+ "javascript": 29870
11
+ },
12
+ "names": [],
13
+ "idHints": [],
14
+ "runtime": [
15
+ "@openmrs/esm-fast-data-entry-app",
16
+ "main"
17
+ ],
18
+ "files": [
19
+ "32.js"
20
+ ],
21
+ "auxiliaryFiles": [],
22
+ "hash": "63879724a326005d89ad",
23
+ "childrenByOrder": {}
24
+ },
25
+ {
26
+ "rendered": true,
27
+ "initial": false,
28
+ "entry": false,
29
+ "recorded": false,
30
+ "reason": "reused as split chunk (cache group: defaultVendors)",
31
+ "size": 68158,
32
+ "sizes": {
33
+ "javascript": 68158
34
+ },
35
+ "names": [],
36
+ "idHints": [
37
+ "vendors"
38
+ ],
39
+ "runtime": [
40
+ "@openmrs/esm-fast-data-entry-app",
41
+ "main"
42
+ ],
43
+ "files": [
44
+ "68.js"
45
+ ],
46
+ "auxiliaryFiles": [],
47
+ "hash": "9b18248b81e7fd80e931",
48
+ "childrenByOrder": {}
49
+ },
50
+ {
51
+ "rendered": true,
52
+ "initial": false,
53
+ "entry": false,
54
+ "recorded": false,
55
+ "reason": "split chunk (cache group: default)",
56
+ "size": 22177,
57
+ "sizes": {
58
+ "javascript": 22177
59
+ },
60
+ "names": [],
61
+ "idHints": [],
62
+ "runtime": [
63
+ "@openmrs/esm-fast-data-entry-app",
64
+ "main"
65
+ ],
66
+ "files": [
67
+ "74.js"
68
+ ],
69
+ "auxiliaryFiles": [],
70
+ "hash": "6212ad0d9b99f5f9f38f",
71
+ "childrenByOrder": {}
72
+ },
73
+ {
74
+ "rendered": true,
75
+ "initial": false,
76
+ "entry": false,
77
+ "recorded": false,
78
+ "size": 5543,
79
+ "sizes": {
80
+ "consume-shared": 42,
81
+ "javascript": 5501
82
+ },
83
+ "names": [],
84
+ "idHints": [],
85
+ "runtime": [
86
+ "@openmrs/esm-fast-data-entry-app"
87
+ ],
88
+ "files": [
89
+ "132.js"
90
+ ],
91
+ "auxiliaryFiles": [],
92
+ "hash": "7600b94e13510acd2a04",
93
+ "childrenByOrder": {}
94
+ },
95
+ {
96
+ "rendered": true,
97
+ "initial": false,
98
+ "entry": false,
99
+ "recorded": false,
100
+ "size": 118386,
101
+ "sizes": {
102
+ "javascript": 118386
103
+ },
104
+ "names": [],
105
+ "idHints": [],
106
+ "runtime": [
107
+ "@openmrs/esm-fast-data-entry-app",
108
+ "main"
109
+ ],
110
+ "files": [
111
+ "168.js"
112
+ ],
113
+ "auxiliaryFiles": [],
114
+ "hash": "ac8a8e711522f166ca67",
115
+ "childrenByOrder": {}
116
+ },
117
+ {
118
+ "rendered": true,
119
+ "initial": true,
120
+ "entry": true,
121
+ "recorded": false,
122
+ "size": 26346,
123
+ "sizes": {
124
+ "consume-shared": 42,
125
+ "javascript": 5501,
126
+ "share-init": 252,
127
+ "runtime": 20551
128
+ },
129
+ "names": [
130
+ "main"
131
+ ],
132
+ "idHints": [],
133
+ "runtime": [
134
+ "main"
135
+ ],
136
+ "files": [
137
+ "main.js"
138
+ ],
139
+ "auxiliaryFiles": [],
140
+ "hash": "fcb412617ed9015b54f2",
141
+ "childrenByOrder": {}
142
+ },
143
+ {
144
+ "rendered": false,
145
+ "initial": false,
146
+ "entry": false,
147
+ "recorded": false,
148
+ "reason": "reused as split chunk (cache group: default)",
149
+ "size": 42,
150
+ "sizes": {
151
+ "consume-shared": 42
152
+ },
153
+ "names": [],
154
+ "idHints": [],
155
+ "runtime": [
156
+ "@openmrs/esm-fast-data-entry-app",
157
+ "main"
158
+ ],
159
+ "files": [],
160
+ "auxiliaryFiles": [],
161
+ "hash": "4108f62e8ffc73e3c2d5",
162
+ "childrenByOrder": {}
163
+ },
164
+ {
165
+ "rendered": true,
166
+ "initial": false,
167
+ "entry": false,
168
+ "recorded": false,
169
+ "reason": "split chunk (cache group: default)",
170
+ "size": 25833,
171
+ "sizes": {
172
+ "javascript": 25833
173
+ },
174
+ "names": [],
175
+ "idHints": [],
176
+ "runtime": [
177
+ "@openmrs/esm-fast-data-entry-app",
178
+ "main"
179
+ ],
180
+ "files": [
181
+ "229.js"
182
+ ],
183
+ "auxiliaryFiles": [],
184
+ "hash": "60f2e132bd8c71581e8b",
185
+ "childrenByOrder": {}
186
+ },
187
+ {
188
+ "rendered": true,
189
+ "initial": false,
190
+ "entry": false,
191
+ "recorded": false,
192
+ "reason": "reused as split chunk (cache group: defaultVendors)",
193
+ "size": 39290,
194
+ "sizes": {
195
+ "javascript": 39290
196
+ },
197
+ "names": [],
198
+ "idHints": [
199
+ "vendors"
200
+ ],
201
+ "runtime": [
202
+ "@openmrs/esm-fast-data-entry-app",
203
+ "main"
204
+ ],
205
+ "files": [
206
+ "247.js"
207
+ ],
208
+ "auxiliaryFiles": [],
209
+ "hash": "10bd51dad5d0240ffd4b",
210
+ "childrenByOrder": {}
211
+ },
212
+ {
213
+ "rendered": true,
214
+ "initial": false,
215
+ "entry": false,
216
+ "recorded": false,
217
+ "size": 38847,
218
+ "sizes": {
219
+ "javascript": 38847
220
+ },
221
+ "names": [],
222
+ "idHints": [],
223
+ "runtime": [
224
+ "@openmrs/esm-fast-data-entry-app",
225
+ "main"
226
+ ],
227
+ "files": [
228
+ "255.js"
229
+ ],
230
+ "auxiliaryFiles": [],
231
+ "hash": "dc9bd47d70c381676dc6",
232
+ "childrenByOrder": {}
233
+ },
234
+ {
235
+ "rendered": true,
236
+ "initial": false,
237
+ "entry": false,
238
+ "recorded": false,
239
+ "size": 7103,
240
+ "sizes": {
241
+ "javascript": 7103
242
+ },
243
+ "names": [],
244
+ "idHints": [],
245
+ "runtime": [
246
+ "@openmrs/esm-fast-data-entry-app",
247
+ "main"
248
+ ],
249
+ "files": [
250
+ "294.js"
251
+ ],
252
+ "auxiliaryFiles": [],
253
+ "hash": "7a919193ee961ef1161f",
254
+ "childrenByOrder": {}
255
+ },
256
+ {
257
+ "rendered": true,
258
+ "initial": false,
259
+ "entry": false,
260
+ "recorded": false,
261
+ "reason": "split chunk (cache group: defaultVendors)",
262
+ "size": 149357,
263
+ "sizes": {
264
+ "javascript": 149357
265
+ },
266
+ "names": [],
267
+ "idHints": [
268
+ "vendors"
269
+ ],
270
+ "runtime": [
271
+ "@openmrs/esm-fast-data-entry-app",
272
+ "main"
273
+ ],
274
+ "files": [
275
+ "327.js"
276
+ ],
277
+ "auxiliaryFiles": [],
278
+ "hash": "99f1fbe84b07ca271277",
279
+ "childrenByOrder": {}
280
+ },
281
+ {
282
+ "rendered": false,
283
+ "initial": false,
284
+ "entry": false,
285
+ "recorded": false,
286
+ "reason": "split chunk (cache group: default)",
287
+ "size": 42,
288
+ "sizes": {
289
+ "consume-shared": 42
290
+ },
291
+ "names": [],
292
+ "idHints": [],
293
+ "runtime": [
294
+ "@openmrs/esm-fast-data-entry-app",
295
+ "main"
296
+ ],
297
+ "files": [],
298
+ "auxiliaryFiles": [],
299
+ "hash": "89ec6a0bec2a70e391a3",
300
+ "childrenByOrder": {}
301
+ },
302
+ {
303
+ "rendered": true,
304
+ "initial": false,
305
+ "entry": false,
306
+ "recorded": false,
307
+ "reason": "split chunk (cache group: defaultVendors)",
308
+ "size": 262576,
309
+ "sizes": {
310
+ "javascript": 262576
311
+ },
312
+ "names": [],
313
+ "idHints": [
314
+ "vendors"
315
+ ],
316
+ "runtime": [
317
+ "@openmrs/esm-fast-data-entry-app",
318
+ "main"
319
+ ],
320
+ "files": [
321
+ "403.js"
322
+ ],
323
+ "auxiliaryFiles": [],
324
+ "hash": "fe3e72da71c970ea281a",
325
+ "childrenByOrder": {}
326
+ },
327
+ {
328
+ "rendered": true,
329
+ "initial": true,
330
+ "entry": true,
331
+ "recorded": false,
332
+ "size": 20478,
333
+ "sizes": {
334
+ "javascript": 42,
335
+ "share-init": 252,
336
+ "runtime": 20184
337
+ },
338
+ "names": [
339
+ "@openmrs/esm-fast-data-entry-app"
340
+ ],
341
+ "idHints": [],
342
+ "runtime": [
343
+ "@openmrs/esm-fast-data-entry-app"
344
+ ],
345
+ "files": [
346
+ "openmrs-esm-fast-data-entry-app.js"
347
+ ],
348
+ "auxiliaryFiles": [],
349
+ "hash": "18b59e2e0c2e739c8dcc",
350
+ "childrenByOrder": {}
351
+ },
352
+ {
353
+ "rendered": true,
354
+ "initial": false,
355
+ "entry": false,
356
+ "recorded": false,
357
+ "reason": "split chunk (cache group: defaultVendors)",
358
+ "size": 52269,
359
+ "sizes": {
360
+ "javascript": 52269
361
+ },
362
+ "names": [],
363
+ "idHints": [
364
+ "vendors"
365
+ ],
366
+ "runtime": [
367
+ "@openmrs/esm-fast-data-entry-app",
368
+ "main"
369
+ ],
370
+ "files": [
371
+ "553.js"
372
+ ],
373
+ "auxiliaryFiles": [],
374
+ "hash": "aaf7c553fc74f87c94a5",
375
+ "childrenByOrder": {}
376
+ },
377
+ {
378
+ "rendered": true,
379
+ "initial": false,
380
+ "entry": false,
381
+ "recorded": false,
382
+ "reason": "split chunk (cache group: defaultVendors)",
383
+ "size": 2943214,
384
+ "sizes": {
385
+ "javascript": 2943214
386
+ },
387
+ "names": [],
388
+ "idHints": [
389
+ "vendors"
390
+ ],
391
+ "runtime": [
392
+ "@openmrs/esm-fast-data-entry-app",
393
+ "main"
394
+ ],
395
+ "files": [
396
+ "569.js"
397
+ ],
398
+ "auxiliaryFiles": [],
399
+ "hash": "afa322710294859aa2c1",
400
+ "childrenByOrder": {}
401
+ },
402
+ {
403
+ "rendered": true,
404
+ "initial": false,
405
+ "entry": false,
406
+ "recorded": false,
407
+ "size": 2653,
408
+ "sizes": {
409
+ "javascript": 2653
410
+ },
411
+ "names": [],
412
+ "idHints": [],
413
+ "runtime": [
414
+ "@openmrs/esm-fast-data-entry-app",
415
+ "main"
416
+ ],
417
+ "files": [
418
+ "574.js"
419
+ ],
420
+ "auxiliaryFiles": [],
421
+ "hash": "6765217c3a3f27a18a03",
422
+ "childrenByOrder": {}
423
+ },
424
+ {
425
+ "rendered": true,
426
+ "initial": false,
427
+ "entry": false,
428
+ "recorded": false,
429
+ "reason": "split chunk (cache group: defaultVendors)",
430
+ "size": 419161,
431
+ "sizes": {
432
+ "javascript": 419161
433
+ },
434
+ "names": [],
435
+ "idHints": [
436
+ "vendors"
437
+ ],
438
+ "runtime": [
439
+ "@openmrs/esm-fast-data-entry-app",
440
+ "main"
441
+ ],
442
+ "files": [
443
+ "595.js"
444
+ ],
445
+ "auxiliaryFiles": [],
446
+ "hash": "a23fa4226a574181367f",
447
+ "childrenByOrder": {}
448
+ },
449
+ {
450
+ "rendered": true,
451
+ "initial": false,
452
+ "entry": false,
453
+ "recorded": false,
454
+ "reason": "split chunk (cache group: default)",
455
+ "size": 57346,
456
+ "sizes": {
457
+ "javascript": 57304,
458
+ "consume-shared": 42
459
+ },
460
+ "names": [],
461
+ "idHints": [],
462
+ "runtime": [
463
+ "@openmrs/esm-fast-data-entry-app",
464
+ "main"
465
+ ],
466
+ "files": [
467
+ "617.js"
468
+ ],
469
+ "auxiliaryFiles": [],
470
+ "hash": "5b272200d7b174327125",
471
+ "childrenByOrder": {}
472
+ },
473
+ {
474
+ "rendered": false,
475
+ "initial": false,
476
+ "entry": false,
477
+ "recorded": false,
478
+ "reason": "reused as split chunk (cache group: default)",
479
+ "size": 42,
480
+ "sizes": {
481
+ "consume-shared": 42
482
+ },
483
+ "names": [],
484
+ "idHints": [],
485
+ "runtime": [
486
+ "@openmrs/esm-fast-data-entry-app",
487
+ "main"
488
+ ],
489
+ "files": [],
490
+ "auxiliaryFiles": [],
491
+ "hash": "5b07d57a3738a13c1357",
492
+ "childrenByOrder": {}
493
+ },
494
+ {
495
+ "rendered": true,
496
+ "initial": false,
497
+ "entry": false,
498
+ "recorded": false,
499
+ "size": 2354,
500
+ "sizes": {
501
+ "javascript": 2354
502
+ },
503
+ "names": [],
504
+ "idHints": [],
505
+ "runtime": [
506
+ "@openmrs/esm-fast-data-entry-app",
507
+ "main"
508
+ ],
509
+ "files": [
510
+ "757.js"
511
+ ],
512
+ "auxiliaryFiles": [],
513
+ "hash": "fea396e67190a1ce087a",
514
+ "childrenByOrder": {}
515
+ },
516
+ {
517
+ "rendered": true,
518
+ "initial": false,
519
+ "entry": false,
520
+ "recorded": false,
521
+ "size": 400,
522
+ "sizes": {
523
+ "javascript": 400
524
+ },
525
+ "names": [],
526
+ "idHints": [],
527
+ "runtime": [
528
+ "@openmrs/esm-fast-data-entry-app",
529
+ "main"
530
+ ],
531
+ "files": [
532
+ "776.js"
533
+ ],
534
+ "auxiliaryFiles": [],
535
+ "hash": "5619fb78d82d4b6ed435",
536
+ "childrenByOrder": {}
537
+ },
538
+ {
539
+ "rendered": true,
540
+ "initial": false,
541
+ "entry": false,
542
+ "recorded": false,
543
+ "size": 1382,
544
+ "sizes": {
545
+ "consume-shared": 42,
546
+ "javascript": 1340
547
+ },
548
+ "names": [],
549
+ "idHints": [],
550
+ "runtime": [
551
+ "@openmrs/esm-fast-data-entry-app",
552
+ "main"
553
+ ],
554
+ "files": [
555
+ "804.js"
556
+ ],
557
+ "auxiliaryFiles": [],
558
+ "hash": "8178ba7ddf3eecea471b",
559
+ "childrenByOrder": {}
560
+ },
561
+ {
562
+ "rendered": true,
563
+ "initial": false,
564
+ "entry": false,
565
+ "recorded": false,
566
+ "reason": "split chunk (cache group: defaultVendors)",
567
+ "size": 473332,
568
+ "sizes": {
569
+ "javascript": 473332
570
+ },
571
+ "names": [],
572
+ "idHints": [
573
+ "vendors"
574
+ ],
575
+ "runtime": [
576
+ "@openmrs/esm-fast-data-entry-app",
577
+ "main"
578
+ ],
579
+ "files": [
580
+ "820.js"
581
+ ],
582
+ "auxiliaryFiles": [],
583
+ "hash": "c8d4b7d8f5f56c27150d",
584
+ "childrenByOrder": {}
585
+ },
586
+ {
587
+ "rendered": true,
588
+ "initial": false,
589
+ "entry": false,
590
+ "recorded": false,
591
+ "reason": "reused as split chunk (cache group: defaultVendors)",
592
+ "size": 137533,
593
+ "sizes": {
594
+ "javascript": 137533
595
+ },
596
+ "names": [],
597
+ "idHints": [
598
+ "vendors"
599
+ ],
600
+ "runtime": [
601
+ "@openmrs/esm-fast-data-entry-app",
602
+ "main"
603
+ ],
604
+ "files": [
605
+ "935.js"
606
+ ],
607
+ "auxiliaryFiles": [],
608
+ "hash": "35eb6db0328d555888bd",
609
+ "childrenByOrder": {}
610
+ }
611
+ ]
612
+ }
@@ -0,0 +1 @@
1
+ var _openmrs_esm_fast_data_entry_app;(()=>{"use strict";var e,r,t,n,a,o,i,l,s,u,f,d,p,c,h={7140:(e,r,t)=>{var n={"./start":()=>t.e(132).then((()=>()=>t(8132)))},a=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),o=(e,r)=>{if(t.S){var n="default",a=t.S[n];if(a&&a!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>a,init:()=>o})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return h[e].call(t.exports,t,t.exports,v),t.loaded=!0,t.exports}v.m=h,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-fast-data-entry-app:",v.l=(t,n,a,o)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==a)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+a),i.src=t),e[t]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(p);var a=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),r)return r(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var o=v.S[t],i="@openmrs/esm-fast-data-entry-app",l=(e,r,t,n)=>{var a=o[e]=o[e]||{},l=a[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(a[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@carbon/react","1.11.0",(()=>Promise.all([v.e(820),v.e(327),v.e(569),v.e(672),v.e(183)]).then((()=>()=>v(8569))))),l("@openmrs/esm-framework","4.0.3-pre.367",(()=>Promise.all([v.e(595),v.e(672)]).then((()=>()=>v(595))))),l("react-dom","18.2.0",(()=>Promise.all([v.e(935),v.e(672)]).then((()=>()=>v(3935))))),l("react-i18next","11.18.5",(()=>Promise.all([v.e(247),v.e(672)]).then((()=>()=>v(8247))))),l("react-router-dom","6.3.0",(()=>Promise.all([v.e(68),v.e(672)]).then((()=>()=>v(6068))))),l("react","18.2.0",(()=>v.e(294).then((()=>()=>v(7294)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;v.g.importScripts&&(e=v.g.location+"");var r=v.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var a=e[n],o=(typeof a)[0];if(n>=r.length)return"u"==o;var i=r[n],l=(typeof i)[0];if(o!=l)return"o"==o&&"n"==l||"s"==l||"u"==o;if("o"!=o&&"u"!=o&&a!=i)return a<i;n++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(o=1;o<e.length;o++){var l=e[o];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():a(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},o=(e,r)=>{if(0 in e){r=t(r);var n=e[0],a=n<0;a&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,f,d=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(f=(typeof(u=r[i]))[0]))return!s||("u"==d?l>n&&!a:""==d!=a);if("u"==f){if(!s||"u"!=d)return!1}else if(s)if(d==f)if(l<=n){if(u!=e[l])return!1}else{if(a?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=d&&"n"!=d){if(a||l<=n)return!1;s=!1,l--}else{if(l<=n||f<d!=a)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,l--)}}var p=[],c=p.pop.bind(p);for(i=1;i<e.length;i++){var h=e[i];p.push(1==h?c()|c():2==h?c()&c():h?o(h,r):!c())}return!!c()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",s=(e,r,t,n)=>{var a=i(e,t);return o(n,a)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,a,n)),u(e[t][a])},u=e=>(e.loaded=1,e.get()),f=(e=>function(r,t,n,a){var o=v.I(r);return o&&o.then?o.then(e.bind(e,r,v.S[r],t,n,a)):e(0,v.S[r],t,n,a)})(((e,r,t,n,a)=>r&&v.o(r,t)?s(r,0,t,n):a())),d={},p={1672:()=>f("default","react",[1,18],(()=>v.e(294).then((()=>()=>v(7294))))),5183:()=>f("default","react-dom",[1,18],(()=>v.e(935).then((()=>()=>v(3935))))),1132:()=>f("default","@openmrs/esm-framework",[0],(()=>Promise.all([v.e(595),v.e(672)]).then((()=>()=>v(595))))),1338:()=>f("default","react-router-dom",[1,6],(()=>v.e(68).then((()=>()=>v(6068))))),3397:()=>f("default","react-i18next",[1,11],(()=>v.e(247).then((()=>()=>v(8247))))),4422:()=>f("default","@carbon/react",[1,1,9,0],(()=>Promise.all([v.e(820),v.e(327),v.e(569),v.e(183)]).then((()=>()=>v(8569)))))},c={132:[1132],183:[5183],397:[3397],617:[4422],672:[1672],804:[1338]},v.f.consumes=(e,r)=>{v.o(c,e)&&c[e].forEach((e=>{if(v.o(d,e))return r.push(d[e]);var t=r=>{d[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete d[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var a=p[e]();a.then?r.push(d[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}))},(()=>{var e={447:0};v.f.j=(r,t)=>{var n=v.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(183|397|672)$/.test(r))e[r]=0;else{var a=new Promise(((t,a)=>n=e[r]=[t,a]));t.push(n[2]=a);var o=v.p+v.u(r),i=new Error;v.l(o,(t=>{if(v.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[o,i,l]=t,s=0;if(o.some((r=>0!==e[r]))){for(n in i)v.o(i,n)&&(v.m[n]=i[n]);l&&l(v)}for(r&&r(t);s<o.length;s++)a=o[s],v.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(7140);_openmrs_esm_fast_data_entry_app=g})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-fast-data-entry-app",
3
- "version": "1.0.1-pre.8",
3
+ "version": "1.0.1-pre.82",
4
4
  "license": "MPL-2.0",
5
5
  "description": "An OpenMRS 3.x microfrontend",
6
6
  "browser": "dist/openmrs-esm-fast-data-entry-app.js",
@@ -17,12 +17,8 @@
17
17
  "test": "jest --config jest.config.json --passWithNoTests",
18
18
  "verify": "concurrently 'yarn:lint' 'yarn:test' 'yarn:typescript'",
19
19
  "coverage": "yarn test -- --coverage ",
20
- "prepare": "husky install"
21
- },
22
- "husky": {
23
- "hooks": {
24
- "pre-commit": "pretty-quick --staged && yarn verify"
25
- }
20
+ "postinstall": "husky install",
21
+ "extract-translations": "i18next 'src/**/*.tsx' --config ./tools/i18next-parser.config.js"
26
22
  },
27
23
  "browserslist": [
28
24
  "extends browserslist-config-openmrs"
@@ -45,6 +41,7 @@
45
41
  "peerDependencies": {
46
42
  "@carbon/react": "^1.9.0",
47
43
  "@openmrs/esm-framework": "*",
44
+ "lodash-es": "4.x",
48
45
  "react": "18.x",
49
46
  "react-dom": "18.x",
50
47
  "react-i18next": "11.x",
@@ -76,6 +73,7 @@
76
73
  "jest": "^28.1.3",
77
74
  "jest-cli": "^28.1.3",
78
75
  "jest-environment-jsdom": "^28.1.3",
76
+ "lodash-es": "^4.17.21",
79
77
  "openmrs": "next",
80
78
  "prettier": "^2.3.0",
81
79
  "pretty-quick": "^3.1.0",
@@ -85,13 +83,15 @@
85
83
  "react-router-dom": "^6.3.0",
86
84
  "semver": "^7.3.7",
87
85
  "swc-loader": "^0.2.3",
88
- "swr": "^1.3.0",
89
86
  "typescript": "^4.7.3",
90
87
  "webpack": "^5.73.0"
91
88
  },
92
89
  "packageManager": "yarn@3.2.2",
93
90
  "dependencies": {
94
- "react-hook-form": "^7.34.2"
91
+ "i18next": "^21.10.0",
92
+ "i18next-parser": "^6.6.0",
93
+ "react-hook-form": "^7.34.2",
94
+ "swr": "1.1.2"
95
95
  },
96
96
  "stableVersion": "1.0.0"
97
97
  }