@openmrs/esm-fast-data-entry-app 1.0.0-pre.11 → 1.0.0-pre.17

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 (64) hide show
  1. package/dist/132.js +1 -0
  2. package/dist/294.js +1 -2
  3. package/dist/338.js +2 -0
  4. package/dist/{382.js.LICENSE.txt → 338.js.LICENSE.txt} +0 -0
  5. package/dist/350.js +1 -0
  6. package/dist/418.js +1 -0
  7. package/dist/482.js +1 -0
  8. package/dist/595.js +1 -2
  9. package/dist/666.js +1 -0
  10. package/dist/767.js +2 -0
  11. package/dist/{502.js.LICENSE.txt → 767.js.LICENSE.txt} +0 -30
  12. package/dist/776.js +1 -0
  13. package/dist/804.js +1 -0
  14. package/dist/906.js +2 -2
  15. package/dist/906.js.LICENSE.txt +27 -0
  16. package/dist/935.js +2 -0
  17. package/dist/935.js.LICENSE.txt +23 -0
  18. package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
  19. package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +163 -106
  20. package/dist/openmrs-esm-fast-data-entry-app.old +1 -2
  21. package/package.json +31 -33
  22. package/src/FormEntry.tsx +42 -0
  23. package/src/Loader.tsx +16 -0
  24. package/src/Root.tsx +7 -3
  25. package/src/forms/FormWorkflow.tsx +135 -0
  26. package/src/forms/FormsRoot.tsx +1 -5
  27. package/src/forms/FormsTable.tsx +2 -2
  28. package/src/forms/PatientCard.tsx +37 -0
  29. package/src/forms/PatientInfo.test.tsx +9 -0
  30. package/src/forms/PatientInfo.tsx +140 -0
  31. package/src/forms/patient-info.scss +59 -0
  32. package/src/forms/styles.scss +13 -0
  33. package/src/forms/useGetPatient.ts +23 -0
  34. package/src/index.ts +13 -1
  35. package/src/loader.scss +9 -0
  36. package/tsconfig.json +26 -23
  37. package/.husky/pre-commit +0 -6
  38. package/.husky/pre-push +0 -6
  39. package/dist/24.js +0 -3
  40. package/dist/24.js.LICENSE.txt +0 -16
  41. package/dist/24.js.map +0 -1
  42. package/dist/294.js.map +0 -1
  43. package/dist/296.js +0 -2
  44. package/dist/296.js.map +0 -1
  45. package/dist/299.js +0 -2
  46. package/dist/299.js.map +0 -1
  47. package/dist/382.js +0 -3
  48. package/dist/382.js.map +0 -1
  49. package/dist/415.js +0 -2
  50. package/dist/415.js.map +0 -1
  51. package/dist/502.js +0 -3
  52. package/dist/502.js.map +0 -1
  53. package/dist/595.js.map +0 -1
  54. package/dist/69.js +0 -2
  55. package/dist/69.js.map +0 -1
  56. package/dist/777.js +0 -2
  57. package/dist/777.js.map +0 -1
  58. package/dist/860.js +0 -2
  59. package/dist/860.js.map +0 -1
  60. package/dist/906.js.map +0 -1
  61. package/dist/openmrs-esm-fast-data-entry-app.js.map +0 -1
  62. package/src/patient-getter/patient-getter.resource.ts +0 -31
  63. package/src/patient-getter/patient-getter.test.tsx +0 -28
  64. package/src/patient-getter/patient-getter.tsx +0 -28
@@ -5,49 +5,41 @@
5
5
  "initial": false,
6
6
  "entry": false,
7
7
  "recorded": false,
8
- "reason": "reused as split chunk (cache group: defaultVendors)",
9
- "size": 576157,
8
+ "size": 4632,
10
9
  "sizes": {
11
- "javascript": 576157
10
+ "consume-shared": 42,
11
+ "javascript": 4590
12
12
  },
13
13
  "names": [],
14
- "idHints": [
15
- "vendors"
16
- ],
14
+ "idHints": [],
17
15
  "runtime": [
18
16
  "@openmrs/esm-fast-data-entry-app"
19
17
  ],
20
18
  "files": [
21
- "24.js"
22
- ],
23
- "auxiliaryFiles": [
24
- "24.js.map"
19
+ "132.js"
25
20
  ],
26
- "hash": "efc922ebda875c446ff2",
21
+ "auxiliaryFiles": [],
22
+ "hash": "6120dee5d93a5f7244cb",
27
23
  "childrenByOrder": {}
28
24
  },
29
25
  {
30
- "rendered": true,
26
+ "rendered": false,
31
27
  "initial": false,
32
28
  "entry": false,
33
29
  "recorded": false,
34
- "size": 11893,
30
+ "reason": "reused as split chunk (cache group: default)",
31
+ "size": 42,
35
32
  "sizes": {
36
- "consume-shared": 84,
37
- "javascript": 11809
33
+ "consume-shared": 42
38
34
  },
39
35
  "names": [],
40
36
  "idHints": [],
41
37
  "runtime": [
42
38
  "@openmrs/esm-fast-data-entry-app"
43
39
  ],
44
- "files": [
45
- "69.js"
46
- ],
47
- "auxiliaryFiles": [
48
- "69.js.map"
49
- ],
50
- "hash": "e5fd8ca10f7633e510aa",
40
+ "files": [],
41
+ "auxiliaryFiles": [],
42
+ "hash": "1ddf990799a8106698c9",
51
43
  "childrenByOrder": {}
52
44
  },
53
45
  {
@@ -67,10 +59,8 @@
67
59
  "files": [
68
60
  "294.js"
69
61
  ],
70
- "auxiliaryFiles": [
71
- "294.js.map"
72
- ],
73
- "hash": "a07250d7d78d1c054377",
62
+ "auxiliaryFiles": [],
63
+ "hash": "7efcd7e76a6f72bc2fe2",
74
64
  "childrenByOrder": {}
75
65
  },
76
66
  {
@@ -78,22 +68,23 @@
78
68
  "initial": false,
79
69
  "entry": false,
80
70
  "recorded": false,
81
- "size": 10784,
71
+ "reason": "reused as split chunk (cache group: defaultVendors)",
72
+ "size": 93908,
82
73
  "sizes": {
83
- "javascript": 10784
74
+ "javascript": 93908
84
75
  },
85
76
  "names": [],
86
- "idHints": [],
77
+ "idHints": [
78
+ "vendors"
79
+ ],
87
80
  "runtime": [
88
81
  "@openmrs/esm-fast-data-entry-app"
89
82
  ],
90
83
  "files": [
91
- "296.js"
84
+ "338.js"
92
85
  ],
93
- "auxiliaryFiles": [
94
- "296.js.map"
95
- ],
96
- "hash": "aabf786c2e4cace3acf4",
86
+ "auxiliaryFiles": [],
87
+ "hash": "21f2656e09e5a2d96423",
97
88
  "childrenByOrder": {}
98
89
  },
99
90
  {
@@ -101,10 +92,9 @@
101
92
  "initial": false,
102
93
  "entry": false,
103
94
  "recorded": false,
104
- "size": 4417,
95
+ "size": 30087,
105
96
  "sizes": {
106
- "javascript": 4375,
107
- "consume-shared": 42
97
+ "javascript": 30087
108
98
  },
109
99
  "names": [],
110
100
  "idHints": [],
@@ -112,12 +102,10 @@
112
102
  "@openmrs/esm-fast-data-entry-app"
113
103
  ],
114
104
  "files": [
115
- "299.js"
116
- ],
117
- "auxiliaryFiles": [
118
- "299.js.map"
105
+ "350.js"
119
106
  ],
120
- "hash": "4a0eeffe28b7dfcc7592",
107
+ "auxiliaryFiles": [],
108
+ "hash": "e31401784326db596369",
121
109
  "childrenByOrder": {}
122
110
  },
123
111
  {
@@ -125,7 +113,7 @@
125
113
  "initial": false,
126
114
  "entry": false,
127
115
  "recorded": false,
128
- "reason": "reused as split chunk (cache group: default)",
116
+ "reason": "split chunk (cache group: default)",
129
117
  "size": 42,
130
118
  "sizes": {
131
119
  "consume-shared": 42
@@ -137,33 +125,27 @@
137
125
  ],
138
126
  "files": [],
139
127
  "auxiliaryFiles": [],
140
- "hash": "57e08ee71edf596cdf8d",
128
+ "hash": "a46a3adeb1607068637a",
141
129
  "childrenByOrder": {}
142
130
  },
143
131
  {
144
- "rendered": true,
132
+ "rendered": false,
145
133
  "initial": false,
146
134
  "entry": false,
147
135
  "recorded": false,
148
- "reason": "reused as split chunk (cache group: defaultVendors)",
149
- "size": 89951,
136
+ "reason": "reused as split chunk (cache group: default)",
137
+ "size": 42,
150
138
  "sizes": {
151
- "javascript": 89951
139
+ "consume-shared": 42
152
140
  },
153
141
  "names": [],
154
- "idHints": [
155
- "vendors"
156
- ],
142
+ "idHints": [],
157
143
  "runtime": [
158
144
  "@openmrs/esm-fast-data-entry-app"
159
145
  ],
160
- "files": [
161
- "382.js"
162
- ],
163
- "auxiliaryFiles": [
164
- "382.js.map"
165
- ],
166
- "hash": "46a0bad05fd6044b7d24",
146
+ "files": [],
147
+ "auxiliaryFiles": [],
148
+ "hash": "a9bde334a4e1f3957e2e",
167
149
  "childrenByOrder": {}
168
150
  },
169
151
  {
@@ -171,23 +153,23 @@
171
153
  "initial": false,
172
154
  "entry": false,
173
155
  "recorded": false,
174
- "size": 406,
156
+ "reason": "reused as split chunk (cache group: defaultVendors)",
157
+ "size": 40335,
175
158
  "sizes": {
176
- "consume-shared": 42,
177
- "javascript": 364
159
+ "javascript": 40335
178
160
  },
179
161
  "names": [],
180
- "idHints": [],
162
+ "idHints": [
163
+ "vendors"
164
+ ],
181
165
  "runtime": [
182
166
  "@openmrs/esm-fast-data-entry-app"
183
167
  ],
184
168
  "files": [
185
- "415.js"
169
+ "418.js"
186
170
  ],
187
- "auxiliaryFiles": [
188
- "415.js.map"
189
- ],
190
- "hash": "fa8bbe1411c8fd9f3192",
171
+ "auxiliaryFiles": [],
172
+ "hash": "3a05a41e2f63ff272307",
191
173
  "childrenByOrder": {}
192
174
  },
193
175
  {
@@ -195,11 +177,11 @@
195
177
  "initial": true,
196
178
  "entry": true,
197
179
  "recorded": false,
198
- "size": 22619,
180
+ "size": 22975,
199
181
  "sizes": {
200
182
  "javascript": 3409,
201
183
  "share-init": 252,
202
- "runtime": 18958
184
+ "runtime": 19314
203
185
  },
204
186
  "names": [
205
187
  "@openmrs/esm-fast-data-entry-app"
@@ -211,10 +193,8 @@
211
193
  "files": [
212
194
  "openmrs-esm-fast-data-entry-app.js"
213
195
  ],
214
- "auxiliaryFiles": [
215
- "openmrs-esm-fast-data-entry-app.js.map"
216
- ],
217
- "hash": "a11b604447b937c33998",
196
+ "auxiliaryFiles": [],
197
+ "hash": "474699f84ab5e7032061",
218
198
  "childrenByOrder": {}
219
199
  },
220
200
  {
@@ -223,9 +203,9 @@
223
203
  "entry": false,
224
204
  "recorded": false,
225
205
  "reason": "split chunk (cache group: defaultVendors)",
226
- "size": 1903513,
206
+ "size": 492648,
227
207
  "sizes": {
228
- "javascript": 1903513
208
+ "javascript": 492648
229
209
  },
230
210
  "names": [],
231
211
  "idHints": [
@@ -235,12 +215,10 @@
235
215
  "@openmrs/esm-fast-data-entry-app"
236
216
  ],
237
217
  "files": [
238
- "502.js"
239
- ],
240
- "auxiliaryFiles": [
241
- "502.js.map"
218
+ "482.js"
242
219
  ],
243
- "hash": "09ba12d555fe758bca04",
220
+ "auxiliaryFiles": [],
221
+ "hash": "b9dbc377a047cd34aedb",
244
222
  "childrenByOrder": {}
245
223
  },
246
224
  {
@@ -261,7 +239,7 @@
261
239
  "574.js"
262
240
  ],
263
241
  "auxiliaryFiles": [],
264
- "hash": "ee70ca00cb1895c5d9b3",
242
+ "hash": "b38cd2efb730e64dbb62",
265
243
  "childrenByOrder": {}
266
244
  },
267
245
  {
@@ -270,9 +248,9 @@
270
248
  "entry": false,
271
249
  "recorded": false,
272
250
  "reason": "split chunk (cache group: defaultVendors)",
273
- "size": 482050,
251
+ "size": 485627,
274
252
  "sizes": {
275
- "javascript": 482050
253
+ "javascript": 485627
276
254
  },
277
255
  "names": [],
278
256
  "idHints": [
@@ -284,10 +262,8 @@
284
262
  "files": [
285
263
  "595.js"
286
264
  ],
287
- "auxiliaryFiles": [
288
- "595.js.map"
289
- ],
290
- "hash": "bfcae7b2614643436d50",
265
+ "auxiliaryFiles": [],
266
+ "hash": "dd2a6f306ba8b3c76d47",
291
267
  "childrenByOrder": {}
292
268
  },
293
269
  {
@@ -295,10 +271,10 @@
295
271
  "initial": false,
296
272
  "entry": false,
297
273
  "recorded": false,
298
- "reason": "reused as split chunk (cache group: defaultVendors)",
299
- "size": 39848,
274
+ "reason": "split chunk (cache group: defaultVendors)",
275
+ "size": 24843,
300
276
  "sizes": {
301
- "javascript": 39848
277
+ "javascript": 24843
302
278
  },
303
279
  "names": [],
304
280
  "idHints": [
@@ -308,12 +284,30 @@
308
284
  "@openmrs/esm-fast-data-entry-app"
309
285
  ],
310
286
  "files": [
311
- "777.js"
287
+ "666.js"
312
288
  ],
313
- "auxiliaryFiles": [
314
- "777.js.map"
289
+ "auxiliaryFiles": [],
290
+ "hash": "453ab5ae2b394a610d0f",
291
+ "childrenByOrder": {}
292
+ },
293
+ {
294
+ "rendered": false,
295
+ "initial": false,
296
+ "entry": false,
297
+ "recorded": false,
298
+ "reason": "split chunk (cache group: default)",
299
+ "size": 42,
300
+ "sizes": {
301
+ "consume-shared": 42
302
+ },
303
+ "names": [],
304
+ "idHints": [],
305
+ "runtime": [
306
+ "@openmrs/esm-fast-data-entry-app"
315
307
  ],
316
- "hash": "07aa218a6fe56d4cca17",
308
+ "files": [],
309
+ "auxiliaryFiles": [],
310
+ "hash": "995915f269d61ac42558",
317
311
  "childrenByOrder": {}
318
312
  },
319
313
  {
@@ -321,9 +315,9 @@
321
315
  "initial": false,
322
316
  "entry": false,
323
317
  "recorded": false,
324
- "size": 3610,
318
+ "size": 57923,
325
319
  "sizes": {
326
- "javascript": 3610
320
+ "javascript": 57923
327
321
  },
328
322
  "names": [],
329
323
  "idHints": [],
@@ -331,12 +325,31 @@
331
325
  "@openmrs/esm-fast-data-entry-app"
332
326
  ],
333
327
  "files": [
334
- "860.js"
328
+ "767.js"
335
329
  ],
336
- "auxiliaryFiles": [
337
- "860.js.map"
330
+ "auxiliaryFiles": [],
331
+ "hash": "6bee4735d07cded59fdd",
332
+ "childrenByOrder": {}
333
+ },
334
+ {
335
+ "rendered": true,
336
+ "initial": false,
337
+ "entry": false,
338
+ "recorded": false,
339
+ "size": 364,
340
+ "sizes": {
341
+ "javascript": 364
342
+ },
343
+ "names": [],
344
+ "idHints": [],
345
+ "runtime": [
346
+ "@openmrs/esm-fast-data-entry-app"
338
347
  ],
339
- "hash": "2d7a34843ca3f497d361",
348
+ "files": [
349
+ "776.js"
350
+ ],
351
+ "auxiliaryFiles": [],
352
+ "hash": "101f84478d1c6fa91c96",
340
353
  "childrenByOrder": {}
341
354
  },
342
355
  {
@@ -344,10 +357,32 @@
344
357
  "initial": false,
345
358
  "entry": false,
346
359
  "recorded": false,
347
- "reason": "reused as split chunk (cache group: defaultVendors)",
348
- "size": 109242,
360
+ "size": 1104,
349
361
  "sizes": {
350
- "javascript": 109242
362
+ "consume-shared": 42,
363
+ "javascript": 1062
364
+ },
365
+ "names": [],
366
+ "idHints": [],
367
+ "runtime": [
368
+ "@openmrs/esm-fast-data-entry-app"
369
+ ],
370
+ "files": [
371
+ "804.js"
372
+ ],
373
+ "auxiliaryFiles": [],
374
+ "hash": "0c01088c9c1e3f21f116",
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": 3667279,
384
+ "sizes": {
385
+ "javascript": 3667279
351
386
  },
352
387
  "names": [],
353
388
  "idHints": [
@@ -359,10 +394,32 @@
359
394
  "files": [
360
395
  "906.js"
361
396
  ],
362
- "auxiliaryFiles": [
363
- "906.js.map"
397
+ "auxiliaryFiles": [],
398
+ "hash": "2674d97a34939f2f71a4",
399
+ "childrenByOrder": {}
400
+ },
401
+ {
402
+ "rendered": true,
403
+ "initial": false,
404
+ "entry": false,
405
+ "recorded": false,
406
+ "reason": "reused as split chunk (cache group: defaultVendors)",
407
+ "size": 127447,
408
+ "sizes": {
409
+ "javascript": 127447
410
+ },
411
+ "names": [],
412
+ "idHints": [
413
+ "vendors"
414
+ ],
415
+ "runtime": [
416
+ "@openmrs/esm-fast-data-entry-app"
417
+ ],
418
+ "files": [
419
+ "935.js"
364
420
  ],
365
- "hash": "1881fee5d3e3d0ba0cf9",
421
+ "auxiliaryFiles": [],
422
+ "hash": "895ac64d2c4828150108",
366
423
  "childrenByOrder": {}
367
424
  }
368
425
  ]
@@ -1,2 +1 @@
1
- System.register("@openmrs/esm-fast-data-entry-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,u,l,f,p,d,c,h,m={1858:(e,r,t)=>{(0,t(2722).s)(1)},2722:(e,r,t)=>{const n=t(3905).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},5356:(e,r,t)=>{t(1858)},3905:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},6751:(e,r,t)=>{"use strict";var n={app:()=>t.e(299).then((()=>()=>t(9299)))},o=(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),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==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:()=>o,init:()=>a})}},v={};function y(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}return y.m=m,y.c=v,y.y=r,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-fast-data-entry-app:",y.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-fast-data-entry-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","3.3.2-pre.1193",(()=>Promise.all([y.e(595),y.e(365)]).then((()=>()=>y(595))))),s("carbon-components","10.31.0",(()=>Promise.all([y.e(24),y.e(296)]).then((()=>()=>y(5024))))),s("carbon-icons","7.0.7",(()=>y.e(906).then((()=>()=>y(906))))),s("react-i18next","11.16.9",(()=>Promise.all([y.e(777),y.e(365)]).then((()=>()=>y(9777))))),s("react-router-dom","5.3.1",(()=>Promise.all([y.e(382),y.e(365),y.e(860)]).then((()=>()=>y(7382))))),s("react","16.14.0",(()=>y.e(294).then((()=>()=>y(7294)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),y.p="",n=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},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},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(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+u()+")":1===s?"("+u()+" || "+u()+")":2===s?i.pop()+" "+i.pop():a(s))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,u=!0;;s++,a++){var l,f,p=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(f=(typeof(l=r[a]))[0]))return!u||("u"==p?s>t&&!o:""==p!=o);if("u"==f){if(!u||"u"!=p)return!1}else if(u)if(p==f)if(s<=t){if(l!=e[s])return!1}else{if(o?l>e[s]:l<e[s])return!1;l!=e[s]&&(u=!1)}else if("s"!=p&&"n"!=p){if(o||s<=t)return!1;u=!1,s--}else{if(s<=t||f<p!=o)return!1;u=!1}else"s"!=p&&"n"!=p&&(u=!1,s--)}}var d=[],c=d.pop.bind(d);for(a=1;a<e.length;a++){var h=e[a];d.push(1==h?c()|c():2==h?c()&c():h?i(h,r):!c())}return!!c()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",l=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(u(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?l(r,0,t,n):o())),d={},c={9075:()=>p("default","@openmrs/esm-framework",[1,3,14,0,,"pre"],(()=>Promise.all([y.e(595),y.e(365)]).then((()=>()=>y(595))))),5365:()=>p("default","react",[1,16],(()=>y.e(294).then((()=>()=>y(7294))))),1990:()=>p("default","carbon-components",[1,10],(()=>y.e(24).then((()=>()=>y(5024))))),9246:()=>p("default","react-router-dom",[1,5],(()=>y.e(382).then((()=>()=>y(7382))))),3397:()=>p("default","react-i18next",[1,11],(()=>y.e(777).then((()=>()=>y(9777)))))},h={69:[1990,9246],299:[9075],365:[5365],415:[3397]},y.f.consumes=(e,r)=>{y.o(h,e)&&h[e].forEach((e=>{if(y.o(d,e))return r.push(d[e]);var t=r=>{d[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete d[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=c[e]();o.then?r.push(d[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={447:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(365!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,s]=t,u=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);s&&s(y)}for(r&&r(t);u<a.length;u++)o=a[u],y.o(e,o)&&e[o]&&e[o][0](),e[o]=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))})(),y(5356),y(6751)})())}}}));
2
- //# sourceMappingURL=openmrs-esm-fast-data-entry-app.js.map
1
+ System.register("@openmrs/esm-fast-data-entry-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,f,d,p,c,h,m={1858:(e,r,t)=>{(0,t(2722).s)(1)},2722:(e,r,t)=>{const n=t(3905).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},5356:(e,r,t)=>{t(1858)},3905:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},6751:(e,r,t)=>{"use strict";var n={app:()=>t.e(132).then((()=>()=>t(8132)))},o=(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),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==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:()=>o,init:()=>a})}},v={};function y(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}return y.m=m,y.c=v,y.y=r,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-fast-data-entry-app:",y.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var f=l[u];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var d=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(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),s&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-fast-data-entry-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.109",(()=>Promise.all([y.e(595),y.e(211)]).then((()=>()=>y(595))))),s("carbon-components-react","8.6.0",(()=>Promise.all([y.e(906),y.e(211),y.e(408)]).then((()=>()=>y(906))))),s("react-dom","16.14.0",(()=>Promise.all([y.e(935),y.e(211)]).then((()=>()=>y(3935))))),s("react-i18next","11.17.3",(()=>Promise.all([y.e(418),y.e(211)]).then((()=>()=>y(1418))))),s("react-router-dom","5.3.3",(()=>Promise.all([y.e(338),y.e(211)]).then((()=>()=>y(3338))))),s("react","16.14.0",(()=>y.e(294).then((()=>()=>y(7294)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),y.p="",n=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},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},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(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():a(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,l=!0;;s++,a++){var u,f,d=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!l||("u"==d?s>t&&!o:""==d!=o);if("u"==f){if(!l||"u"!=d)return!1}else if(l)if(d==f)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=d&&"n"!=d){if(o||s<=t)return!1;l=!1,s--}else{if(s<=t||f<d!=o)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,s--)}}var p=[],c=p.pop.bind(p);for(a=1;a<e.length;a++){var h=e[a];p.push(1==h?c()|c():2==h?c()&c():h?i(h,r):!c())}return!!c()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(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)+")",u=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?u(r,0,t,n):o())),p={},c={311:()=>d("default","@openmrs/esm-framework",[1,"next"],(()=>Promise.all([y.e(595),y.e(211)]).then((()=>()=>y(595))))),4211:()=>d("default","react",[1,16,14],(()=>y.e(294).then((()=>()=>y(7294))))),8408:()=>d("default","react-dom",[1,16,0],(()=>y.e(935).then((()=>()=>y(3935))))),2221:()=>d("default","react-router-dom",[1,5,0,0],(()=>y.e(338).then((()=>()=>y(3338))))),3397:()=>d("default","react-i18next",[1,11],(()=>y.e(418).then((()=>()=>y(1418))))),3755:()=>d("default","carbon-components-react",[1,8,6,0],(()=>Promise.all([y.e(906),y.e(408)]).then((()=>()=>y(906)))))},h={132:[311],211:[4211],397:[3397],408:[8408],755:[3755],804:[2221]},y.f.consumes=(e,r)=>{y.o(h,e)&&h[e].forEach((e=>{if(y.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete p[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=c[e]();o.then?r.push(p[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={447:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(211|397|408|755)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);s&&s(y)}for(r&&r(t);l<a.length;l++)o=a[l],y.o(e,o)&&e[o]&&e[o][0](),e[o]=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))})(),y.nc=void 0,y(5356),y(6751)})())}}}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-fast-data-entry-app",
3
- "version": "1.0.0-pre.11",
3
+ "version": "1.0.0-pre.17",
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",
@@ -14,9 +14,9 @@
14
14
  "lint": "eslint src --ext js,jsx,ts,tsx",
15
15
  "prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
16
16
  "typescript": "tsc",
17
- "test": "jest --config jest.config.json",
17
+ "test": "jest --config jest.config.json --passWithNoTests",
18
18
  "verify": "concurrently 'yarn:lint' 'yarn:test' 'yarn:typescript'",
19
- "coverage": "yarn test -- --coverage",
19
+ "coverage": "yarn test -- --coverage ",
20
20
  "prepare": "husky install"
21
21
  },
22
22
  "husky": {
@@ -35,10 +35,6 @@
35
35
  "type": "git",
36
36
  "url": "git+https://github.com/openmrs/openmrs-esm-fast-data-entry-app.git"
37
37
  },
38
- "resolutions": {
39
- "@types/react": "17.0.2",
40
- "@types/react-dom": "17.0.2"
41
- },
42
38
  "homepage": "https://github.com/openmrs/openmrs-esm-fast-data-entry-app#readme",
43
39
  "publishConfig": {
44
40
  "access": "public"
@@ -46,21 +42,19 @@
46
42
  "bugs": {
47
43
  "url": "https://github.com/openmrs/openmrs-esm-fast-data-entry-app/issues"
48
44
  },
49
- "dependencies": {
50
- "@carbon/icons-react": "^10.18.0",
51
- "carbon-components-react": "^7.25.0",
52
- "lodash-es": "^4.17.15",
53
- "swr": "^1.3.0"
45
+ "resolutions": {
46
+ "**/@types/react": "^16.14.5"
54
47
  },
48
+ "dependencies": {},
55
49
  "peerDependencies": {
56
- "@openmrs/esm-framework": "^3.14.0-pre",
57
- "carbon-components": "10.x",
50
+ "@openmrs/esm-framework": "next",
51
+ "carbon-components-react": "^8.6.0",
58
52
  "carbon-icons": "7.x",
59
53
  "dayjs": "1.x",
60
- "react": "16.x",
54
+ "react": "^16.14",
55
+ "react-dom": "^16.0",
61
56
  "react-i18next": "11.x",
62
- "react-router-dom": "5.x",
63
- "rxjs": "6.x"
57
+ "react-router-dom": "^5.0.0"
64
58
  },
65
59
  "devDependencies": {
66
60
  "@babel/core": "^7.14.3",
@@ -70,38 +64,42 @@
70
64
  "@babel/preset-typescript": "^7.13.0",
71
65
  "@babel/runtime": "^7.14.0",
72
66
  "@openmrs/esm-framework": "next",
73
- "@testing-library/dom": "^7.31.2",
74
- "@testing-library/jest-dom": "^5.13.0",
75
- "@testing-library/react": "^11.2.7",
76
- "@testing-library/user-event": "^13.1.9",
67
+ "@testing-library/dom": "^7.20.0",
68
+ "@testing-library/jest-dom": "^5.11.0",
69
+ "@testing-library/react": "^10.4.3",
70
+ "@testing-library/user-event": "^12.0.11",
77
71
  "@types/carbon-components-react": "^7.34.0",
78
72
  "@types/carbon__icons-react": "^10.31.0",
79
73
  "@types/jest": "^26.0.23",
80
- "@types/react-dom": "^16.9.14",
81
- "@types/react-router": "^5.1.14",
82
- "@types/react-router-dom": "^5.1.7",
83
74
  "@types/webpack-env": "^1.16.0",
75
+ "@types/react-dom": "^16.9.12",
76
+ "@types/react-router-dom": "^5.1.7",
77
+ "@types/testing-library__jest-dom": "^5.14.1",
84
78
  "@typescript-eslint/parser": "^5.14.0",
79
+ "@types/react": "^16.14.5",
85
80
  "babel-eslint": "^10.1.0",
86
81
  "babel-jest": "^27.0.2",
87
82
  "babel-preset-minify": "^0.5.1",
83
+ "carbon-components-react": "^8.6.0",
88
84
  "concurrently": "^6.2.0",
89
85
  "eslint": "^7.27.0",
90
86
  "eslint-config-prettier": "^8.3.0",
91
87
  "eslint-config-ts-react-important-stuff": "^3.0.0",
92
88
  "eslint-plugin-prettier": "^3.4.0",
93
- "husky": "^6.0.0",
89
+ "husky": "^8.0.1",
94
90
  "identity-obj-proxy": "^3.0.0",
95
- "jest": "^27.0.4",
96
- "jest-cli": "^27.0.4",
97
- "openmrs": "next",
91
+ "jest": "^26.4.2",
92
+ "jest-cli": "^26.4.2",
93
+ "openmrs": "^3.3.2-pre.69",
98
94
  "prettier": "^2.3.0",
99
95
  "pretty-quick": "^3.1.0",
100
- "react": "^16.13.1",
101
- "react-dom": "^16.14.0",
96
+ "react": "^16.14",
97
+ "react-dom": "^16.0.0",
102
98
  "react-i18next": "^11.16.9",
103
- "react-router-dom": "^5.2.0",
104
- "rxjs": "^6.5.4",
105
- "typescript": "^4.3.2"
99
+ "react-router-dom": "^5.0.0",
100
+ "swc-loader": "^0.2.3",
101
+ "swr": "^1.3.0",
102
+ "typescript": "^4.7.3",
103
+ "webpack": "^5.73.0"
106
104
  }
107
105
  }