@openmrs/esm-form-builder-app 2.3.1-pre.699 → 2.3.1-pre.702
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/153.js +1 -1
- package/dist/279.js +2 -0
- package/dist/279.js.map +1 -0
- package/dist/729.js +1 -1
- package/dist/729.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-form-builder-app.js.buildmanifest.json +245 -245
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/components/form-editor/form-editor.component.tsx +28 -4
- package/src/components/form-editor/form-editor.scss +4 -0
- package/dist/772.js +0 -2
- package/dist/772.js.map +0 -1
- /package/dist/{772.js.LICENSE.txt → 279.js.LICENSE.txt} +0 -0
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"auxiliaryFiles": [
|
|
70
70
|
"153.js.map"
|
|
71
71
|
],
|
|
72
|
-
"hash": "
|
|
72
|
+
"hash": "2bf348dd99984024",
|
|
73
73
|
"childrenByOrder": {}
|
|
74
74
|
},
|
|
75
75
|
{
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"auxiliaryFiles": [
|
|
125
125
|
"main.js.map"
|
|
126
126
|
],
|
|
127
|
-
"hash": "
|
|
127
|
+
"hash": "3edaa952c08e173d",
|
|
128
128
|
"childrenByOrder": {}
|
|
129
129
|
},
|
|
130
130
|
{
|
|
@@ -151,253 +151,15 @@
|
|
|
151
151
|
"hash": "787937730b6dc905",
|
|
152
152
|
"childrenByOrder": {}
|
|
153
153
|
},
|
|
154
|
-
{
|
|
155
|
-
"rendered": true,
|
|
156
|
-
"initial": false,
|
|
157
|
-
"entry": false,
|
|
158
|
-
"recorded": false,
|
|
159
|
-
"size": 7103,
|
|
160
|
-
"sizes": {
|
|
161
|
-
"javascript": 7103
|
|
162
|
-
},
|
|
163
|
-
"names": [],
|
|
164
|
-
"idHints": [],
|
|
165
|
-
"runtime": [
|
|
166
|
-
"@openmrs/esm-form-builder-app",
|
|
167
|
-
"main"
|
|
168
|
-
],
|
|
169
|
-
"files": [
|
|
170
|
-
"294.js"
|
|
171
|
-
],
|
|
172
|
-
"auxiliaryFiles": [
|
|
173
|
-
"294.js.map"
|
|
174
|
-
],
|
|
175
|
-
"hash": "b314e60f1c149ba9",
|
|
176
|
-
"childrenByOrder": {}
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"rendered": true,
|
|
180
|
-
"initial": false,
|
|
181
|
-
"entry": false,
|
|
182
|
-
"recorded": false,
|
|
183
|
-
"size": 9345,
|
|
184
|
-
"sizes": {
|
|
185
|
-
"javascript": 9345
|
|
186
|
-
},
|
|
187
|
-
"names": [],
|
|
188
|
-
"idHints": [],
|
|
189
|
-
"runtime": [
|
|
190
|
-
"@openmrs/esm-form-builder-app",
|
|
191
|
-
"main"
|
|
192
|
-
],
|
|
193
|
-
"files": [
|
|
194
|
-
"319.js"
|
|
195
|
-
],
|
|
196
|
-
"auxiliaryFiles": [],
|
|
197
|
-
"hash": "c49c5a43474341c0",
|
|
198
|
-
"childrenByOrder": {}
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"rendered": true,
|
|
202
|
-
"initial": false,
|
|
203
|
-
"entry": false,
|
|
204
|
-
"recorded": false,
|
|
205
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
206
|
-
"size": 2563762,
|
|
207
|
-
"sizes": {
|
|
208
|
-
"javascript": 2563762
|
|
209
|
-
},
|
|
210
|
-
"names": [],
|
|
211
|
-
"idHints": [
|
|
212
|
-
"vendors"
|
|
213
|
-
],
|
|
214
|
-
"runtime": [
|
|
215
|
-
"@openmrs/esm-form-builder-app",
|
|
216
|
-
"main"
|
|
217
|
-
],
|
|
218
|
-
"files": [
|
|
219
|
-
"333.js"
|
|
220
|
-
],
|
|
221
|
-
"auxiliaryFiles": [
|
|
222
|
-
"333.js.map"
|
|
223
|
-
],
|
|
224
|
-
"hash": "ec26bad1e23fa22b",
|
|
225
|
-
"childrenByOrder": {}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"rendered": true,
|
|
229
|
-
"initial": false,
|
|
230
|
-
"entry": false,
|
|
231
|
-
"recorded": false,
|
|
232
|
-
"size": 984,
|
|
233
|
-
"sizes": {
|
|
234
|
-
"javascript": 984
|
|
235
|
-
},
|
|
236
|
-
"names": [],
|
|
237
|
-
"idHints": [],
|
|
238
|
-
"runtime": [
|
|
239
|
-
"@openmrs/esm-form-builder-app",
|
|
240
|
-
"main"
|
|
241
|
-
],
|
|
242
|
-
"files": [
|
|
243
|
-
"447.js"
|
|
244
|
-
],
|
|
245
|
-
"auxiliaryFiles": [
|
|
246
|
-
"447.js.map"
|
|
247
|
-
],
|
|
248
|
-
"hash": "7fadd63088be49ea",
|
|
249
|
-
"childrenByOrder": {}
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"rendered": true,
|
|
253
|
-
"initial": false,
|
|
254
|
-
"entry": false,
|
|
255
|
-
"recorded": false,
|
|
256
|
-
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
257
|
-
"size": 29495,
|
|
258
|
-
"sizes": {
|
|
259
|
-
"javascript": 29495
|
|
260
|
-
},
|
|
261
|
-
"names": [],
|
|
262
|
-
"idHints": [
|
|
263
|
-
"vendors"
|
|
264
|
-
],
|
|
265
|
-
"runtime": [
|
|
266
|
-
"@openmrs/esm-form-builder-app",
|
|
267
|
-
"main"
|
|
268
|
-
],
|
|
269
|
-
"files": [
|
|
270
|
-
"527.js"
|
|
271
|
-
],
|
|
272
|
-
"auxiliaryFiles": [
|
|
273
|
-
"527.js.map"
|
|
274
|
-
],
|
|
275
|
-
"hash": "a720aabbfca50357",
|
|
276
|
-
"childrenByOrder": {}
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"rendered": true,
|
|
280
|
-
"initial": false,
|
|
281
|
-
"entry": false,
|
|
282
|
-
"recorded": false,
|
|
283
|
-
"size": 9260,
|
|
284
|
-
"sizes": {
|
|
285
|
-
"javascript": 9260
|
|
286
|
-
},
|
|
287
|
-
"names": [],
|
|
288
|
-
"idHints": [],
|
|
289
|
-
"runtime": [
|
|
290
|
-
"@openmrs/esm-form-builder-app",
|
|
291
|
-
"main"
|
|
292
|
-
],
|
|
293
|
-
"files": [
|
|
294
|
-
"574.js"
|
|
295
|
-
],
|
|
296
|
-
"auxiliaryFiles": [],
|
|
297
|
-
"hash": "1da013de0387b341",
|
|
298
|
-
"childrenByOrder": {}
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"rendered": true,
|
|
302
|
-
"initial": false,
|
|
303
|
-
"entry": false,
|
|
304
|
-
"recorded": false,
|
|
305
|
-
"size": 11051,
|
|
306
|
-
"sizes": {
|
|
307
|
-
"javascript": 11051
|
|
308
|
-
},
|
|
309
|
-
"names": [],
|
|
310
|
-
"idHints": [],
|
|
311
|
-
"runtime": [
|
|
312
|
-
"@openmrs/esm-form-builder-app",
|
|
313
|
-
"main"
|
|
314
|
-
],
|
|
315
|
-
"files": [
|
|
316
|
-
"626.js"
|
|
317
|
-
],
|
|
318
|
-
"auxiliaryFiles": [
|
|
319
|
-
"626.js.map"
|
|
320
|
-
],
|
|
321
|
-
"hash": "8121ff38bfc8ddc9",
|
|
322
|
-
"childrenByOrder": {}
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"rendered": false,
|
|
326
|
-
"initial": false,
|
|
327
|
-
"entry": false,
|
|
328
|
-
"recorded": false,
|
|
329
|
-
"reason": "reused as split chunk (cache group: default)",
|
|
330
|
-
"size": 42,
|
|
331
|
-
"sizes": {
|
|
332
|
-
"consume-shared": 42
|
|
333
|
-
},
|
|
334
|
-
"names": [],
|
|
335
|
-
"idHints": [],
|
|
336
|
-
"runtime": [
|
|
337
|
-
"@openmrs/esm-form-builder-app",
|
|
338
|
-
"main"
|
|
339
|
-
],
|
|
340
|
-
"files": [],
|
|
341
|
-
"auxiliaryFiles": [],
|
|
342
|
-
"hash": "c20b64ea6ed751d0",
|
|
343
|
-
"childrenByOrder": {}
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"rendered": true,
|
|
347
|
-
"initial": false,
|
|
348
|
-
"entry": false,
|
|
349
|
-
"recorded": false,
|
|
350
|
-
"size": 323548,
|
|
351
|
-
"sizes": {
|
|
352
|
-
"javascript": 323506,
|
|
353
|
-
"consume-shared": 42
|
|
354
|
-
},
|
|
355
|
-
"names": [],
|
|
356
|
-
"idHints": [],
|
|
357
|
-
"runtime": [
|
|
358
|
-
"@openmrs/esm-form-builder-app",
|
|
359
|
-
"main"
|
|
360
|
-
],
|
|
361
|
-
"files": [
|
|
362
|
-
"729.js"
|
|
363
|
-
],
|
|
364
|
-
"auxiliaryFiles": [
|
|
365
|
-
"729.js.map"
|
|
366
|
-
],
|
|
367
|
-
"hash": "2f208eb093a15b7b",
|
|
368
|
-
"childrenByOrder": {}
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
"rendered": true,
|
|
372
|
-
"initial": false,
|
|
373
|
-
"entry": false,
|
|
374
|
-
"recorded": false,
|
|
375
|
-
"size": 9345,
|
|
376
|
-
"sizes": {
|
|
377
|
-
"javascript": 9345
|
|
378
|
-
},
|
|
379
|
-
"names": [],
|
|
380
|
-
"idHints": [],
|
|
381
|
-
"runtime": [
|
|
382
|
-
"@openmrs/esm-form-builder-app",
|
|
383
|
-
"main"
|
|
384
|
-
],
|
|
385
|
-
"files": [
|
|
386
|
-
"757.js"
|
|
387
|
-
],
|
|
388
|
-
"auxiliaryFiles": [],
|
|
389
|
-
"hash": "e3182ff4297c5147",
|
|
390
|
-
"childrenByOrder": {}
|
|
391
|
-
},
|
|
392
154
|
{
|
|
393
155
|
"rendered": true,
|
|
394
156
|
"initial": false,
|
|
395
157
|
"entry": false,
|
|
396
158
|
"recorded": false,
|
|
397
159
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
398
|
-
"size":
|
|
160
|
+
"size": 4293801,
|
|
399
161
|
"sizes": {
|
|
400
|
-
"javascript":
|
|
162
|
+
"javascript": 4293801
|
|
401
163
|
},
|
|
402
164
|
"names": [],
|
|
403
165
|
"idHints": [
|
|
@@ -408,7 +170,7 @@
|
|
|
408
170
|
"main"
|
|
409
171
|
],
|
|
410
172
|
"files": [
|
|
411
|
-
"
|
|
173
|
+
"279.js"
|
|
412
174
|
],
|
|
413
175
|
"auxiliaryFiles": [
|
|
414
176
|
"002a2ac7b7d3b3b807ddcb210cfc91eb.js",
|
|
@@ -489,6 +251,7 @@
|
|
|
489
251
|
"277128dcbc226dfeb8fde9391fb24787.js",
|
|
490
252
|
"2772fa250d538d9b7a8702fb6c50d195.js",
|
|
491
253
|
"27730a0bdc6f430cc85049a46a73a029.js",
|
|
254
|
+
"279.js.map",
|
|
492
255
|
"283970c76db99e2d0d90f0e7c45494f9.js",
|
|
493
256
|
"28785bea435918d49b290d27bf660baa.js",
|
|
494
257
|
"2ad349208b3a727abb3c9f943865a27c.js",
|
|
@@ -647,7 +410,6 @@
|
|
|
647
410
|
"755114145e5b97e5571a160a39e716db.js",
|
|
648
411
|
"7620537538da40e17ccbf70a43f4fd0c.js",
|
|
649
412
|
"764b59bdd3a89e14f88c9d63020551a1.js",
|
|
650
|
-
"772.js.map",
|
|
651
413
|
"77aaca51c1c32acaf32656d45f4dc017.js",
|
|
652
414
|
"77c629df0ebf40b066d0ffeb34b7711b.js",
|
|
653
415
|
"78b1ba82f7882d931072c4ef6e87f579.js",
|
|
@@ -856,7 +618,245 @@
|
|
|
856
618
|
"ffb6d262efb0718a20d60b5fecb76ea6.js",
|
|
857
619
|
"ffd3b83e8b5878f4785591ff54b1dfff.js"
|
|
858
620
|
],
|
|
859
|
-
"hash": "
|
|
621
|
+
"hash": "f4cfc16783ab0897",
|
|
622
|
+
"childrenByOrder": {}
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"rendered": true,
|
|
626
|
+
"initial": false,
|
|
627
|
+
"entry": false,
|
|
628
|
+
"recorded": false,
|
|
629
|
+
"size": 7103,
|
|
630
|
+
"sizes": {
|
|
631
|
+
"javascript": 7103
|
|
632
|
+
},
|
|
633
|
+
"names": [],
|
|
634
|
+
"idHints": [],
|
|
635
|
+
"runtime": [
|
|
636
|
+
"@openmrs/esm-form-builder-app",
|
|
637
|
+
"main"
|
|
638
|
+
],
|
|
639
|
+
"files": [
|
|
640
|
+
"294.js"
|
|
641
|
+
],
|
|
642
|
+
"auxiliaryFiles": [
|
|
643
|
+
"294.js.map"
|
|
644
|
+
],
|
|
645
|
+
"hash": "b314e60f1c149ba9",
|
|
646
|
+
"childrenByOrder": {}
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"rendered": true,
|
|
650
|
+
"initial": false,
|
|
651
|
+
"entry": false,
|
|
652
|
+
"recorded": false,
|
|
653
|
+
"size": 9345,
|
|
654
|
+
"sizes": {
|
|
655
|
+
"javascript": 9345
|
|
656
|
+
},
|
|
657
|
+
"names": [],
|
|
658
|
+
"idHints": [],
|
|
659
|
+
"runtime": [
|
|
660
|
+
"@openmrs/esm-form-builder-app",
|
|
661
|
+
"main"
|
|
662
|
+
],
|
|
663
|
+
"files": [
|
|
664
|
+
"319.js"
|
|
665
|
+
],
|
|
666
|
+
"auxiliaryFiles": [],
|
|
667
|
+
"hash": "c49c5a43474341c0",
|
|
668
|
+
"childrenByOrder": {}
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"rendered": true,
|
|
672
|
+
"initial": false,
|
|
673
|
+
"entry": false,
|
|
674
|
+
"recorded": false,
|
|
675
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
676
|
+
"size": 2563762,
|
|
677
|
+
"sizes": {
|
|
678
|
+
"javascript": 2563762
|
|
679
|
+
},
|
|
680
|
+
"names": [],
|
|
681
|
+
"idHints": [
|
|
682
|
+
"vendors"
|
|
683
|
+
],
|
|
684
|
+
"runtime": [
|
|
685
|
+
"@openmrs/esm-form-builder-app",
|
|
686
|
+
"main"
|
|
687
|
+
],
|
|
688
|
+
"files": [
|
|
689
|
+
"333.js"
|
|
690
|
+
],
|
|
691
|
+
"auxiliaryFiles": [
|
|
692
|
+
"333.js.map"
|
|
693
|
+
],
|
|
694
|
+
"hash": "ec26bad1e23fa22b",
|
|
695
|
+
"childrenByOrder": {}
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"rendered": true,
|
|
699
|
+
"initial": false,
|
|
700
|
+
"entry": false,
|
|
701
|
+
"recorded": false,
|
|
702
|
+
"size": 984,
|
|
703
|
+
"sizes": {
|
|
704
|
+
"javascript": 984
|
|
705
|
+
},
|
|
706
|
+
"names": [],
|
|
707
|
+
"idHints": [],
|
|
708
|
+
"runtime": [
|
|
709
|
+
"@openmrs/esm-form-builder-app",
|
|
710
|
+
"main"
|
|
711
|
+
],
|
|
712
|
+
"files": [
|
|
713
|
+
"447.js"
|
|
714
|
+
],
|
|
715
|
+
"auxiliaryFiles": [
|
|
716
|
+
"447.js.map"
|
|
717
|
+
],
|
|
718
|
+
"hash": "7fadd63088be49ea",
|
|
719
|
+
"childrenByOrder": {}
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"rendered": true,
|
|
723
|
+
"initial": false,
|
|
724
|
+
"entry": false,
|
|
725
|
+
"recorded": false,
|
|
726
|
+
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
727
|
+
"size": 29495,
|
|
728
|
+
"sizes": {
|
|
729
|
+
"javascript": 29495
|
|
730
|
+
},
|
|
731
|
+
"names": [],
|
|
732
|
+
"idHints": [
|
|
733
|
+
"vendors"
|
|
734
|
+
],
|
|
735
|
+
"runtime": [
|
|
736
|
+
"@openmrs/esm-form-builder-app",
|
|
737
|
+
"main"
|
|
738
|
+
],
|
|
739
|
+
"files": [
|
|
740
|
+
"527.js"
|
|
741
|
+
],
|
|
742
|
+
"auxiliaryFiles": [
|
|
743
|
+
"527.js.map"
|
|
744
|
+
],
|
|
745
|
+
"hash": "a720aabbfca50357",
|
|
746
|
+
"childrenByOrder": {}
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"rendered": true,
|
|
750
|
+
"initial": false,
|
|
751
|
+
"entry": false,
|
|
752
|
+
"recorded": false,
|
|
753
|
+
"size": 9260,
|
|
754
|
+
"sizes": {
|
|
755
|
+
"javascript": 9260
|
|
756
|
+
},
|
|
757
|
+
"names": [],
|
|
758
|
+
"idHints": [],
|
|
759
|
+
"runtime": [
|
|
760
|
+
"@openmrs/esm-form-builder-app",
|
|
761
|
+
"main"
|
|
762
|
+
],
|
|
763
|
+
"files": [
|
|
764
|
+
"574.js"
|
|
765
|
+
],
|
|
766
|
+
"auxiliaryFiles": [],
|
|
767
|
+
"hash": "1da013de0387b341",
|
|
768
|
+
"childrenByOrder": {}
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"rendered": true,
|
|
772
|
+
"initial": false,
|
|
773
|
+
"entry": false,
|
|
774
|
+
"recorded": false,
|
|
775
|
+
"size": 11051,
|
|
776
|
+
"sizes": {
|
|
777
|
+
"javascript": 11051
|
|
778
|
+
},
|
|
779
|
+
"names": [],
|
|
780
|
+
"idHints": [],
|
|
781
|
+
"runtime": [
|
|
782
|
+
"@openmrs/esm-form-builder-app",
|
|
783
|
+
"main"
|
|
784
|
+
],
|
|
785
|
+
"files": [
|
|
786
|
+
"626.js"
|
|
787
|
+
],
|
|
788
|
+
"auxiliaryFiles": [
|
|
789
|
+
"626.js.map"
|
|
790
|
+
],
|
|
791
|
+
"hash": "8121ff38bfc8ddc9",
|
|
792
|
+
"childrenByOrder": {}
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"rendered": false,
|
|
796
|
+
"initial": false,
|
|
797
|
+
"entry": false,
|
|
798
|
+
"recorded": false,
|
|
799
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
800
|
+
"size": 42,
|
|
801
|
+
"sizes": {
|
|
802
|
+
"consume-shared": 42
|
|
803
|
+
},
|
|
804
|
+
"names": [],
|
|
805
|
+
"idHints": [],
|
|
806
|
+
"runtime": [
|
|
807
|
+
"@openmrs/esm-form-builder-app",
|
|
808
|
+
"main"
|
|
809
|
+
],
|
|
810
|
+
"files": [],
|
|
811
|
+
"auxiliaryFiles": [],
|
|
812
|
+
"hash": "c20b64ea6ed751d0",
|
|
813
|
+
"childrenByOrder": {}
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"rendered": true,
|
|
817
|
+
"initial": false,
|
|
818
|
+
"entry": false,
|
|
819
|
+
"recorded": false,
|
|
820
|
+
"size": 324555,
|
|
821
|
+
"sizes": {
|
|
822
|
+
"javascript": 324513,
|
|
823
|
+
"consume-shared": 42
|
|
824
|
+
},
|
|
825
|
+
"names": [],
|
|
826
|
+
"idHints": [],
|
|
827
|
+
"runtime": [
|
|
828
|
+
"@openmrs/esm-form-builder-app",
|
|
829
|
+
"main"
|
|
830
|
+
],
|
|
831
|
+
"files": [
|
|
832
|
+
"729.js"
|
|
833
|
+
],
|
|
834
|
+
"auxiliaryFiles": [
|
|
835
|
+
"729.js.map"
|
|
836
|
+
],
|
|
837
|
+
"hash": "c7d141e55a939f03",
|
|
838
|
+
"childrenByOrder": {}
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"rendered": true,
|
|
842
|
+
"initial": false,
|
|
843
|
+
"entry": false,
|
|
844
|
+
"recorded": false,
|
|
845
|
+
"size": 9345,
|
|
846
|
+
"sizes": {
|
|
847
|
+
"javascript": 9345
|
|
848
|
+
},
|
|
849
|
+
"names": [],
|
|
850
|
+
"idHints": [],
|
|
851
|
+
"runtime": [
|
|
852
|
+
"@openmrs/esm-form-builder-app",
|
|
853
|
+
"main"
|
|
854
|
+
],
|
|
855
|
+
"files": [
|
|
856
|
+
"757.js"
|
|
857
|
+
],
|
|
858
|
+
"auxiliaryFiles": [],
|
|
859
|
+
"hash": "e3182ff4297c5147",
|
|
860
860
|
"childrenByOrder": {}
|
|
861
861
|
},
|
|
862
862
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.2.0"},"pages":[{"component":"root","route":"form-builder","online":true,"offline":true,"order":1}],"extensions":[{"name":"system-administration-form-builder-card-link","slot":"system-admin-page-card-link-slot","component":"systemAdministrationFormBuilderCardLink","online":true,"offline":true}],"version":"2.3.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.2.0"},"pages":[{"component":"root","route":"form-builder","online":true,"offline":true,"order":1}],"extensions":[{"name":"system-administration-form-builder-card-link","slot":"system-admin-page-card-link-slot","component":"systemAdministrationFormBuilderCardLink","online":true,"offline":true}],"version":"2.3.1-pre.702"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import {
|
|
3
4
|
Button,
|
|
4
5
|
Column,
|
|
@@ -17,9 +18,10 @@ import {
|
|
|
17
18
|
TabPanels,
|
|
18
19
|
TabPanel,
|
|
19
20
|
} from '@carbon/react';
|
|
20
|
-
import { ArrowLeft, Download } from '@carbon/react/icons';
|
|
21
|
+
import { ArrowLeft, Download, Maximize, Minimize } from '@carbon/react/icons';
|
|
21
22
|
import { useParams } from 'react-router-dom';
|
|
22
23
|
import { useTranslation } from 'react-i18next';
|
|
24
|
+
import { ConfigurableLink } from '@openmrs/esm-framework';
|
|
23
25
|
import type { OHRIFormSchema } from '@openmrs/openmrs-form-engine-lib';
|
|
24
26
|
import type { Schema } from '../../types';
|
|
25
27
|
import { useClobdata } from '../../hooks/useClobdata';
|
|
@@ -31,7 +33,6 @@ import Header from '../header/header.component';
|
|
|
31
33
|
import InteractiveBuilder from '../interactive-builder/interactive-builder.component';
|
|
32
34
|
import SchemaEditor from '../schema-editor/schema-editor.component';
|
|
33
35
|
import styles from './form-editor.scss';
|
|
34
|
-
import { ConfigurableLink } from '@openmrs/esm-framework';
|
|
35
36
|
|
|
36
37
|
interface ErrorProps {
|
|
37
38
|
error: Error;
|
|
@@ -61,6 +62,7 @@ const FormEditor: React.FC = () => {
|
|
|
61
62
|
const { form, formError, isLoadingForm } = useForm(formUuid);
|
|
62
63
|
const { clobdata, clobdataError, isLoadingClobdata } = useClobdata(form);
|
|
63
64
|
const [status, setStatus] = useState<Status>('idle');
|
|
65
|
+
const [isMaximized, setIsMaximized] = useState(false);
|
|
64
66
|
const [stringifiedSchema, setStringifiedSchema] = useState(schema ? JSON.stringify(schema, null, 2) : '');
|
|
65
67
|
|
|
66
68
|
const isLoadingFormOrSchema = Boolean(formUuid) && (isLoadingClobdata || isLoadingForm);
|
|
@@ -239,14 +241,24 @@ const FormEditor: React.FC = () => {
|
|
|
239
241
|
await navigator.clipboard.writeText(stringifiedSchema);
|
|
240
242
|
}, [stringifiedSchema]);
|
|
241
243
|
|
|
244
|
+
const handleToggleMaximize = () => {
|
|
245
|
+
setIsMaximized(!isMaximized);
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
const responsiveSize = isMaximized ? 16 : 8;
|
|
249
|
+
|
|
242
250
|
return (
|
|
243
251
|
<>
|
|
244
252
|
<Header title={t('schemaEditor', 'Schema editor')} />
|
|
245
253
|
<BackButton />
|
|
246
254
|
<div className={styles.container}>
|
|
247
255
|
{showDraftSchemaModal && <DraftSchemaModal />}
|
|
248
|
-
<Grid
|
|
249
|
-
|
|
256
|
+
<Grid
|
|
257
|
+
className={classNames(styles.grid as string, {
|
|
258
|
+
[styles.maximized]: isMaximized,
|
|
259
|
+
})}
|
|
260
|
+
>
|
|
261
|
+
<Column lg={responsiveSize} md={responsiveSize} className={styles.column}>
|
|
250
262
|
<div className={styles.actionButtons}>
|
|
251
263
|
{isLoadingFormOrSchema ? (
|
|
252
264
|
<InlineLoading description={t('loadingSchema', 'Loading schema') + '...'} />
|
|
@@ -271,6 +283,18 @@ const FormEditor: React.FC = () => {
|
|
|
271
283
|
<span className={styles.tabHeading}>{t('schemaEditor', 'Schema editor')}</span>
|
|
272
284
|
{schema ? (
|
|
273
285
|
<>
|
|
286
|
+
<Button
|
|
287
|
+
enterDelayMs={300}
|
|
288
|
+
renderIcon={isMaximized ? Minimize : Maximize}
|
|
289
|
+
kind={'ghost'}
|
|
290
|
+
iconDescription={
|
|
291
|
+
isMaximized ? t('minimizeEditor', 'Minimize editor') : t('maximizeEditor', 'Maximize editor')
|
|
292
|
+
}
|
|
293
|
+
hasIconOnly
|
|
294
|
+
size="md"
|
|
295
|
+
tooltipAlignment="start"
|
|
296
|
+
onClick={handleToggleMaximize}
|
|
297
|
+
/>
|
|
274
298
|
<CopyButton
|
|
275
299
|
align="top"
|
|
276
300
|
className="cds--btn--md"
|