@openmrs/esm-patient-registration-app 4.0.1-pre.621 → 4.0.1

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 (61) hide show
  1. package/.turbo/turbo-build.log +33 -32
  2. package/dist/100.js +1 -1
  3. package/dist/154.js +1 -0
  4. package/dist/206.js +1 -1
  5. package/dist/242.js +1 -1
  6. package/dist/34.js +2 -0
  7. package/dist/{290.js.LICENSE.txt → 34.js.LICENSE.txt} +13 -2
  8. package/dist/375.js +1 -0
  9. package/dist/430.js +2 -0
  10. package/dist/{103.js.LICENSE.txt → 430.js.LICENSE.txt} +3 -3
  11. package/dist/470.js +2 -0
  12. package/dist/{460.js.LICENSE.txt → 470.js.LICENSE.txt} +0 -0
  13. package/dist/574.js +1 -1
  14. package/dist/658.js +1 -0
  15. package/dist/686.js +1 -1
  16. package/dist/735.js +1 -1
  17. package/dist/807.js +1 -0
  18. package/dist/854.js +1 -1
  19. package/dist/858.js +1 -1
  20. package/dist/858.js.LICENSE.txt +2 -0
  21. package/dist/main.js +1 -1
  22. package/dist/openmrs-esm-patient-registration-app.js +1 -1
  23. package/dist/openmrs-esm-patient-registration-app.js.buildmanifest.json +126 -101
  24. package/dist/openmrs-esm-patient-registration-app.old +1 -1
  25. package/package.json +2 -2
  26. package/src/add-patient-link.tsx +1 -0
  27. package/src/config-schema.ts +71 -6
  28. package/src/index.ts +25 -14
  29. package/src/patient-registration/field/address/address-hierarchy.component.tsx +64 -19
  30. package/src/patient-registration/field/address/address-hierarchy.test.tsx +18 -3
  31. package/src/patient-registration/field/address/address-search.component.tsx +98 -0
  32. package/src/patient-registration/field/address/address-search.scss +53 -0
  33. package/src/patient-registration/field/dob/dob.component.tsx +12 -6
  34. package/src/patient-registration/field/dob/dob.test.tsx +10 -0
  35. package/src/patient-registration/field/gender/gender-field.component.tsx +7 -0
  36. package/src/patient-registration/field/name/name-field.component.tsx +13 -5
  37. package/src/patient-registration/field/person-attributes/person-attribute-field.component.tsx +1 -0
  38. package/src/patient-registration/field/person-attributes/text-person-attribute-field.component.tsx +3 -0
  39. package/src/patient-registration/form-manager.test.ts +8 -6
  40. package/src/patient-registration/form-manager.ts +1 -15
  41. package/src/patient-registration/input/combo-input/combo-input.component.tsx +38 -26
  42. package/src/patient-registration/input/combo-input/combo-input.test.tsx +1 -0
  43. package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +8 -6
  44. package/src/patient-registration/patient-registration-hooks.ts +3 -8
  45. package/src/patient-registration/patient-registration-types.tsx +3 -6
  46. package/src/patient-registration/patient-registration-utils.ts +1 -1
  47. package/src/patient-registration/patient-registration.resource.tsx +74 -1
  48. package/src/patient-registration/patient-registration.test.tsx +7 -0
  49. package/src/patient-registration/section/demographics/demographics-section.test.tsx +3 -0
  50. package/src/patient-registration/section/section-wrapper.component.tsx +10 -1
  51. package/src/root.component.tsx +10 -7
  52. package/translations/en.json +20 -8
  53. package/translations/km.json +89 -0
  54. package/dist/103.js +0 -2
  55. package/dist/290.js +0 -2
  56. package/dist/460.js +0 -2
  57. package/dist/553.js +0 -2
  58. package/dist/553.js.LICENSE.txt +0 -14
  59. package/dist/859.js +0 -1
  60. package/dist/896.js +0 -1
  61. package/src/patient-registration/input/comboinput/comboinput.component.tsx +0 -56
@@ -6,9 +6,34 @@
6
6
  "entry": false,
7
7
  "recorded": false,
8
8
  "reason": "reused as split chunk (cache group: defaultVendors)",
9
- "size": 39248,
9
+ "size": 190348,
10
10
  "sizes": {
11
- "javascript": 39248
11
+ "javascript": 190348
12
+ },
13
+ "names": [],
14
+ "idHints": [
15
+ "vendors"
16
+ ],
17
+ "runtime": [
18
+ "@openmrs/esm-patient-registration-app",
19
+ "main"
20
+ ],
21
+ "files": [
22
+ "34.js"
23
+ ],
24
+ "auxiliaryFiles": [],
25
+ "hash": "235e75a0e40b905743c5",
26
+ "childrenByOrder": {}
27
+ },
28
+ {
29
+ "rendered": true,
30
+ "initial": false,
31
+ "entry": false,
32
+ "recorded": false,
33
+ "reason": "reused as split chunk (cache group: defaultVendors)",
34
+ "size": 39276,
35
+ "sizes": {
36
+ "javascript": 39276
12
37
  },
13
38
  "names": [],
14
39
  "idHints": [
@@ -22,7 +47,7 @@
22
47
  "100.js"
23
48
  ],
24
49
  "auxiliaryFiles": [],
25
- "hash": "9f8e7a5d64f585acd022",
50
+ "hash": "c01a8fba77343b8bf51b",
26
51
  "childrenByOrder": {}
27
52
  },
28
53
  {
@@ -31,9 +56,9 @@
31
56
  "entry": false,
32
57
  "recorded": false,
33
58
  "reason": "split chunk (cache group: defaultVendors)",
34
- "size": 1595075,
59
+ "size": 605935,
35
60
  "sizes": {
36
- "javascript": 1595075
61
+ "javascript": 605935
37
62
  },
38
63
  "names": [],
39
64
  "idHints": [
@@ -44,10 +69,10 @@
44
69
  "main"
45
70
  ],
46
71
  "files": [
47
- "103.js"
72
+ "154.js"
48
73
  ],
49
74
  "auxiliaryFiles": [],
50
- "hash": "c6bab79d50ba9b7a0b35",
75
+ "hash": "50633e5e0a1512dc66e9",
51
76
  "childrenByOrder": {}
52
77
  },
53
78
  {
@@ -55,12 +80,12 @@
55
80
  "initial": true,
56
81
  "entry": true,
57
82
  "recorded": false,
58
- "size": 286101,
83
+ "size": 276511,
59
84
  "sizes": {
60
85
  "consume-shared": 84,
61
- "javascript": 266167,
86
+ "javascript": 256607,
62
87
  "share-init": 168,
63
- "runtime": 19682
88
+ "runtime": 19652
64
89
  },
65
90
  "names": [
66
91
  "main"
@@ -73,7 +98,7 @@
73
98
  "main.js"
74
99
  ],
75
100
  "auxiliaryFiles": [],
76
- "hash": "70d3fb242ac8bf8d37d8",
101
+ "hash": "20c3802b5f8e914bd70c",
77
102
  "childrenByOrder": {}
78
103
  },
79
104
  {
@@ -81,9 +106,9 @@
81
106
  "initial": false,
82
107
  "entry": false,
83
108
  "recorded": false,
84
- "size": 10245,
109
+ "size": 2781,
85
110
  "sizes": {
86
- "javascript": 10245
111
+ "javascript": 2781
87
112
  },
88
113
  "names": [],
89
114
  "idHints": [],
@@ -95,7 +120,7 @@
95
120
  "206.js"
96
121
  ],
97
122
  "auxiliaryFiles": [],
98
- "hash": "5552f1f7bf986579c41c",
123
+ "hash": "746024f845b0467619f4",
99
124
  "childrenByOrder": {}
100
125
  },
101
126
  {
@@ -117,7 +142,7 @@
117
142
  "242.js"
118
143
  ],
119
144
  "auxiliaryFiles": [],
120
- "hash": "6f6f997aaaa136b3d60f",
145
+ "hash": "574e7ebfe137b300788d",
121
146
  "childrenByOrder": {}
122
147
  },
123
148
  {
@@ -138,57 +163,57 @@
138
163
  ],
139
164
  "files": [],
140
165
  "auxiliaryFiles": [],
141
- "hash": "08457afacf58a13cc19b",
166
+ "hash": "10c1af4479dd0b7a2003",
142
167
  "childrenByOrder": {}
143
168
  },
144
169
  {
145
170
  "rendered": true,
146
- "initial": false,
147
- "entry": false,
171
+ "initial": true,
172
+ "entry": true,
148
173
  "recorded": false,
149
- "reason": "reused as split chunk (cache group: defaultVendors)",
150
- "size": 67740,
174
+ "size": 19473,
151
175
  "sizes": {
152
- "javascript": 67740
176
+ "javascript": 42,
177
+ "share-init": 168,
178
+ "runtime": 19263
153
179
  },
154
- "names": [],
155
- "idHints": [
156
- "vendors"
180
+ "names": [
181
+ "@openmrs/esm-patient-registration-app"
157
182
  ],
183
+ "idHints": [],
158
184
  "runtime": [
159
- "@openmrs/esm-patient-registration-app",
160
- "main"
185
+ "@openmrs/esm-patient-registration-app"
161
186
  ],
162
187
  "files": [
163
- "290.js"
188
+ "openmrs-esm-patient-registration-app.js"
164
189
  ],
165
190
  "auxiliaryFiles": [],
166
- "hash": "44cd3a3b151925e5945a",
191
+ "hash": "42e91d04c9bb9a6e6698",
167
192
  "childrenByOrder": {}
168
193
  },
169
194
  {
170
195
  "rendered": true,
171
- "initial": true,
172
- "entry": true,
196
+ "initial": false,
197
+ "entry": false,
173
198
  "recorded": false,
174
- "size": 19503,
199
+ "reason": "split chunk (cache group: defaultVendors)",
200
+ "size": 161419,
175
201
  "sizes": {
176
- "javascript": 42,
177
- "share-init": 168,
178
- "runtime": 19293
202
+ "javascript": 161419
179
203
  },
180
- "names": [
181
- "@openmrs/esm-patient-registration-app"
204
+ "names": [],
205
+ "idHints": [
206
+ "vendors"
182
207
  ],
183
- "idHints": [],
184
208
  "runtime": [
185
- "@openmrs/esm-patient-registration-app"
209
+ "@openmrs/esm-patient-registration-app",
210
+ "main"
186
211
  ],
187
212
  "files": [
188
- "openmrs-esm-patient-registration-app.js"
213
+ "375.js"
189
214
  ],
190
215
  "auxiliaryFiles": [],
191
- "hash": "d16bd45afbbc9ab541da",
216
+ "hash": "47c094af5c2c792545d0",
192
217
  "childrenByOrder": {}
193
218
  },
194
219
  {
@@ -197,22 +222,23 @@
197
222
  "entry": false,
198
223
  "recorded": false,
199
224
  "reason": "split chunk (cache group: defaultVendors)",
200
- "size": 182248,
225
+ "size": 1610629,
201
226
  "sizes": {
202
- "javascript": 182248
227
+ "javascript": 1610629
203
228
  },
204
229
  "names": [],
205
230
  "idHints": [
206
231
  "vendors"
207
232
  ],
208
233
  "runtime": [
209
- "@openmrs/esm-patient-registration-app"
234
+ "@openmrs/esm-patient-registration-app",
235
+ "main"
210
236
  ],
211
237
  "files": [
212
- "460.js"
238
+ "430.js"
213
239
  ],
214
240
  "auxiliaryFiles": [],
215
- "hash": "46ce5f27882a63b8dd51",
241
+ "hash": "d13d29aa8af6a9ff0943",
216
242
  "childrenByOrder": {}
217
243
  },
218
244
  {
@@ -221,23 +247,22 @@
221
247
  "entry": false,
222
248
  "recorded": false,
223
249
  "reason": "split chunk (cache group: defaultVendors)",
224
- "size": 685480,
250
+ "size": 158738,
225
251
  "sizes": {
226
- "javascript": 685480
252
+ "javascript": 158738
227
253
  },
228
254
  "names": [],
229
255
  "idHints": [
230
256
  "vendors"
231
257
  ],
232
258
  "runtime": [
233
- "@openmrs/esm-patient-registration-app",
234
- "main"
259
+ "@openmrs/esm-patient-registration-app"
235
260
  ],
236
261
  "files": [
237
- "553.js"
262
+ "470.js"
238
263
  ],
239
264
  "auxiliaryFiles": [],
240
- "hash": "29cf184c3d139e75e52b",
265
+ "hash": "4da340f9d0b4b3ed47d8",
241
266
  "childrenByOrder": {}
242
267
  },
243
268
  {
@@ -245,9 +270,9 @@
245
270
  "initial": false,
246
271
  "entry": false,
247
272
  "recorded": false,
248
- "size": 3041,
273
+ "size": 3448,
249
274
  "sizes": {
250
- "javascript": 3041
275
+ "javascript": 3448
251
276
  },
252
277
  "names": [],
253
278
  "idHints": [],
@@ -259,7 +284,7 @@
259
284
  "574.js"
260
285
  ],
261
286
  "auxiliaryFiles": [],
262
- "hash": "dce180e9f087d43158ef",
287
+ "hash": "d2fbc0359ca27f58166d",
263
288
  "childrenByOrder": {}
264
289
  },
265
290
  {
@@ -281,7 +306,7 @@
281
306
  "635.js"
282
307
  ],
283
308
  "auxiliaryFiles": [],
284
- "hash": "6bc504c7f755d15820eb",
309
+ "hash": "21a38aab0dd4d272a36f",
285
310
  "childrenByOrder": {}
286
311
  },
287
312
  {
@@ -289,21 +314,22 @@
289
314
  "initial": false,
290
315
  "entry": false,
291
316
  "recorded": false,
292
- "size": 83961,
317
+ "size": 253022,
293
318
  "sizes": {
294
- "javascript": 83919,
319
+ "javascript": 252980,
295
320
  "consume-shared": 42
296
321
  },
297
322
  "names": [],
298
323
  "idHints": [],
299
324
  "runtime": [
300
- "@openmrs/esm-patient-registration-app"
325
+ "@openmrs/esm-patient-registration-app",
326
+ "main"
301
327
  ],
302
328
  "files": [
303
- "686.js"
329
+ "658.js"
304
330
  ],
305
331
  "auxiliaryFiles": [],
306
- "hash": "cb5adbceb4a4f7c74449",
332
+ "hash": "90991aa7c773a94919b5",
307
333
  "childrenByOrder": {}
308
334
  },
309
335
  {
@@ -311,21 +337,21 @@
311
337
  "initial": false,
312
338
  "entry": false,
313
339
  "recorded": false,
314
- "size": 1183,
340
+ "size": 97911,
315
341
  "sizes": {
316
- "javascript": 1183
342
+ "javascript": 97869,
343
+ "consume-shared": 42
317
344
  },
318
345
  "names": [],
319
346
  "idHints": [],
320
347
  "runtime": [
321
- "@openmrs/esm-patient-registration-app",
322
- "main"
348
+ "@openmrs/esm-patient-registration-app"
323
349
  ],
324
350
  "files": [
325
- "735.js"
351
+ "686.js"
326
352
  ],
327
353
  "auxiliaryFiles": [],
328
- "hash": "4a6bcd5686436527958e",
354
+ "hash": "12635fdf7f4f16cb128b",
329
355
  "childrenByOrder": {}
330
356
  },
331
357
  {
@@ -333,9 +359,9 @@
333
359
  "initial": false,
334
360
  "entry": false,
335
361
  "recorded": false,
336
- "size": 7103,
362
+ "size": 1183,
337
363
  "sizes": {
338
- "javascript": 7103
364
+ "javascript": 1183
339
365
  },
340
366
  "names": [],
341
367
  "idHints": [],
@@ -344,10 +370,10 @@
344
370
  "main"
345
371
  ],
346
372
  "files": [
347
- "784.js"
373
+ "735.js"
348
374
  ],
349
375
  "auxiliaryFiles": [],
350
- "hash": "fbe0ef32f41b2ec80752",
376
+ "hash": "f65b7e167a044fb2d873",
351
377
  "childrenByOrder": {}
352
378
  },
353
379
  {
@@ -355,24 +381,21 @@
355
381
  "initial": false,
356
382
  "entry": false,
357
383
  "recorded": false,
358
- "reason": "split chunk (cache group: defaultVendors)",
359
- "size": 202720,
384
+ "size": 7103,
360
385
  "sizes": {
361
- "javascript": 202720
386
+ "javascript": 7103
362
387
  },
363
388
  "names": [],
364
- "idHints": [
365
- "vendors"
366
- ],
389
+ "idHints": [],
367
390
  "runtime": [
368
391
  "@openmrs/esm-patient-registration-app",
369
392
  "main"
370
393
  ],
371
394
  "files": [
372
- "854.js"
395
+ "784.js"
373
396
  ],
374
397
  "auxiliaryFiles": [],
375
- "hash": "7f3b31072b4dbd3ddd85",
398
+ "hash": "634dc468376f792372d1",
376
399
  "childrenByOrder": {}
377
400
  },
378
401
  {
@@ -380,24 +403,21 @@
380
403
  "initial": false,
381
404
  "entry": false,
382
405
  "recorded": false,
383
- "reason": "reused as split chunk (cache group: defaultVendors)",
384
- "size": 417361,
406
+ "size": 3567,
385
407
  "sizes": {
386
- "javascript": 417361
408
+ "javascript": 3567
387
409
  },
388
410
  "names": [],
389
- "idHints": [
390
- "vendors"
391
- ],
411
+ "idHints": [],
392
412
  "runtime": [
393
413
  "@openmrs/esm-patient-registration-app",
394
414
  "main"
395
415
  ],
396
416
  "files": [
397
- "858.js"
417
+ "807.js"
398
418
  ],
399
419
  "auxiliaryFiles": [],
400
- "hash": "9151e3dcfe3f456b05c7",
420
+ "hash": "8205414d45e2d4d09bdf",
401
421
  "childrenByOrder": {}
402
422
  },
403
423
  {
@@ -405,22 +425,24 @@
405
425
  "initial": false,
406
426
  "entry": false,
407
427
  "recorded": false,
408
- "size": 231751,
428
+ "reason": "split chunk (cache group: defaultVendors)",
429
+ "size": 202547,
409
430
  "sizes": {
410
- "javascript": 231709,
411
- "consume-shared": 42
431
+ "javascript": 202547
412
432
  },
413
433
  "names": [],
414
- "idHints": [],
434
+ "idHints": [
435
+ "vendors"
436
+ ],
415
437
  "runtime": [
416
438
  "@openmrs/esm-patient-registration-app",
417
439
  "main"
418
440
  ],
419
441
  "files": [
420
- "859.js"
442
+ "854.js"
421
443
  ],
422
444
  "auxiliaryFiles": [],
423
- "hash": "7fd9ccd4b239b8b3c7dd",
445
+ "hash": "a106f565fccdbc94e772",
424
446
  "childrenByOrder": {}
425
447
  },
426
448
  {
@@ -428,21 +450,24 @@
428
450
  "initial": false,
429
451
  "entry": false,
430
452
  "recorded": false,
431
- "size": 418,
453
+ "reason": "reused as split chunk (cache group: defaultVendors)",
454
+ "size": 407232,
432
455
  "sizes": {
433
- "javascript": 418
456
+ "javascript": 407232
434
457
  },
435
458
  "names": [],
436
- "idHints": [],
459
+ "idHints": [
460
+ "vendors"
461
+ ],
437
462
  "runtime": [
438
463
  "@openmrs/esm-patient-registration-app",
439
464
  "main"
440
465
  ],
441
466
  "files": [
442
- "896.js"
467
+ "858.js"
443
468
  ],
444
469
  "auxiliaryFiles": [],
445
- "hash": "f6a03a7f87418b26fc25",
470
+ "hash": "da882db68f3c0ba5deda",
446
471
  "childrenByOrder": {}
447
472
  },
448
473
  {
@@ -463,7 +488,7 @@
463
488
  ],
464
489
  "files": [],
465
490
  "auxiliaryFiles": [],
466
- "hash": "b98cb4d10f399a4dea84",
491
+ "hash": "c99dc390cf154d9a0572",
467
492
  "childrenByOrder": {}
468
493
  },
469
494
  {
@@ -471,9 +496,9 @@
471
496
  "initial": false,
472
497
  "entry": false,
473
498
  "recorded": false,
474
- "size": 978,
499
+ "size": 977,
475
500
  "sizes": {
476
- "javascript": 978
501
+ "javascript": 977
477
502
  },
478
503
  "names": [],
479
504
  "idHints": [],
@@ -485,7 +510,7 @@
485
510
  "975.js"
486
511
  ],
487
512
  "auxiliaryFiles": [],
488
- "hash": "96ab611d210745b5abac",
513
+ "hash": "7dd78ccdf3eeea97d8bd",
489
514
  "childrenByOrder": {}
490
515
  }
491
516
  ]
@@ -1 +1 @@
1
- var _openmrs_esm_patient_registration_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,c,h={372:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(460),t.e(268),t.e(686)]).then((()=>()=>t(1686)))},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})}},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](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-patient-registration-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&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 o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-patient-registration-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","4.0.1-pre.238",(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),s("react-i18next","11.18.4",(()=>Promise.all([v.e(100),v.e(268)]).then((()=>()=>v(8100))))),s("react-router-dom","6.3.0",(()=>Promise.all([v.e(290),v.e(268),v.e(896)]).then((()=>()=>v(5290))))),s("react","18.2.0",(()=>v.e(784).then((()=>()=>v(6292)))))),e[t]=l.length?Promise.all(l).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 o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],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;n++}},o=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,a=1;a<e.length;a++)n--,t+="u"==(typeof(s=e[a]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():o(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,s=1,l=!0;;s++,i++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!l||("u"==f?s>n&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=n){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"!=f&&"n"!=f){if(o||s<=n)return!1;l=!1,s--}else{if(s<=n||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(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)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",l=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),u(e[t][o])},u=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?l(r,0,t,n):o())),f={},d={268:()=>p("default","react",[1,18],(()=>v.e(784).then((()=>()=>v(6292))))),906:()=>p("default","@openmrs/esm-framework",[1,4],(()=>v.e(858).then((()=>()=>v(6858))))),4924:()=>p("default","react-i18next",[1,11],(()=>v.e(100).then((()=>()=>v(8100))))),7228:()=>p("default","react-router-dom",[1,6],(()=>v.e(290).then((()=>()=>v(5290)))))},c={268:[268],686:[906],859:[7228],924:[4924]},v.f.consumes=(e,r)=>{v.o(c,e)&&c[e].forEach((e=>{if(v.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete f[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var o=d[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={331: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(/^(268|924)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=v.p+v.u(r),i=new Error;v.l(a,(t=>{if(v.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)v.o(i,n)&&(v.m[n]=i[n]);s&&s(v)}for(r&&r(t);l<a.length;l++)o=a[l],v.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_patient_registration_app=self.webpackChunk_openmrs_esm_patient_registration_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(372);_openmrs_esm_patient_registration_app=g})();
1
+ var _openmrs_esm_patient_registration_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,c,h={372:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(470),t.e(268),t.e(686)]).then((()=>()=>t(1686)))},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})}},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](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-patient-registration-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&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 o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-patient-registration-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","4.0.3-pre.392",(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),s("react-i18next","11.18.6",(()=>Promise.all([v.e(100),v.e(268)]).then((()=>()=>v(8100))))),s("react-router-dom","6.4.3",(()=>Promise.all([v.e(34),v.e(268)]).then((()=>()=>v(6034))))),s("react","18.2.0",(()=>v.e(784).then((()=>()=>v(6292)))))),e[t]=l.length?Promise.all(l).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 o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],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;n++}},o=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,a=1;a<e.length;a++)n--,t+="u"==(typeof(s=e[a]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():o(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,s=1,l=!0;;s++,i++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!l||("u"==f?s>n&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=n){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"!=f&&"n"!=f){if(o||s<=n)return!1;l=!1,s--}else{if(s<=n||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(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)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",l=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),u(e[t][o])},u=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?l(r,0,t,n):o())),f={},d={268:()=>p("default","react",[1,18],(()=>v.e(784).then((()=>()=>v(6292))))),906:()=>p("default","@openmrs/esm-framework",[1,4],(()=>v.e(858).then((()=>()=>v(6858))))),4924:()=>p("default","react-i18next",[1,11],(()=>v.e(100).then((()=>()=>v(8100))))),8744:()=>p("default","react-router-dom",[1,6],(()=>v.e(34).then((()=>()=>v(6034)))))},c={268:[268],658:[8744],686:[906],924:[4924]},v.f.consumes=(e,r)=>{v.o(c,e)&&c[e].forEach((e=>{if(v.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete f[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var o=d[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={331: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(/^(268|924)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=v.p+v.u(r),i=new Error;v.l(a,(t=>{if(v.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)v.o(i,n)&&(v.m[n]=i[n]);s&&s(v)}for(r&&r(t);l<a.length;l++)o=a[l],v.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_patient_registration_app=self.webpackChunk_openmrs_esm_patient_registration_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(372);_openmrs_esm_patient_registration_app=g})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-registration-app",
3
- "version": "4.0.1-pre.621",
3
+ "version": "4.0.1",
4
4
  "description": "Patient registration microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-patient-registration-app.js",
6
6
  "main": "src/index.ts",
@@ -52,5 +52,5 @@
52
52
  "devDependencies": {
53
53
  "webpack": "^5.74.0"
54
54
  },
55
- "gitHead": "ed505131d404a5e7b8b82875875febda8f98e3d8"
55
+ "gitHead": "00951fdd7ab7bbfc2bf3d49f0b55d9fcc2f02471"
56
56
  }
@@ -11,6 +11,7 @@ export default function Root() {
11
11
  <HeaderGlobalAction
12
12
  aria-label="Add Patient"
13
13
  aria-labelledby="Add Patient"
14
+ enterDelayMs={500}
14
15
  name="AddPatientIcon"
15
16
  onClick={addPatient}
16
17
  className={styles.slotStyles}>