impaktapps-ui-builder 0.0.100 → 0.0.101
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/impaktapps-ui-builder.es.js +1825 -1436
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +16 -16
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +90 -23
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +52 -22
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
- package/package.json +5 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +18 -14
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -2
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +16 -4
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +7 -0
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +17 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +102 -46
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -28
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +5 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +271 -154
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +327 -120
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +188 -65
- package/src/impaktapps-ui-builder/builder/services/component.ts +94 -8
- package/src/impaktapps-ui-builder/builder/services/event.ts +19 -4
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
- package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +23 -19
|
@@ -39,6 +39,9 @@ const PageMasterSchema = {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
},
|
|
43
|
+
RemoveItemButton: {
|
|
44
|
+
disabled: true
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
47
|
required: ["template", "name", "label"]
|
|
@@ -129,7 +132,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
129
132
|
type: "TabLayout",
|
|
130
133
|
config: {
|
|
131
134
|
main: {
|
|
132
|
-
tabLabels: ["Components", "
|
|
135
|
+
tabLabels: ["Components", "Events"],
|
|
133
136
|
divider: true
|
|
134
137
|
},
|
|
135
138
|
defaultStyle: true
|
|
@@ -165,6 +168,27 @@ const PageMasterUiSchema = (theme) => {
|
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
170
|
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
widget: {
|
|
174
|
+
type: "Control",
|
|
175
|
+
scope: "#/properties/Paste_Component",
|
|
176
|
+
options: {
|
|
177
|
+
widget: "IconButton"
|
|
178
|
+
},
|
|
179
|
+
config: {
|
|
180
|
+
main: {
|
|
181
|
+
onClick: "copyPasteElement",
|
|
182
|
+
size: "small",
|
|
183
|
+
icon: "PasteIcon",
|
|
184
|
+
iconLabel: "Paste",
|
|
185
|
+
styleDefault: true
|
|
186
|
+
},
|
|
187
|
+
style: {
|
|
188
|
+
mt: "6px"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
168
192
|
}
|
|
169
193
|
]
|
|
170
194
|
},
|
|
@@ -224,6 +248,25 @@ const PageMasterUiSchema = (theme) => {
|
|
|
224
248
|
}
|
|
225
249
|
}
|
|
226
250
|
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
header: "Copy",
|
|
254
|
+
field: "Copy_Component",
|
|
255
|
+
flex: 1,
|
|
256
|
+
widget: {
|
|
257
|
+
type: "Control",
|
|
258
|
+
scope: "#/properties/Copy_Component",
|
|
259
|
+
options: {
|
|
260
|
+
widget: "IconButton"
|
|
261
|
+
},
|
|
262
|
+
config: {
|
|
263
|
+
main: {
|
|
264
|
+
icon: "FileCopyIcon",
|
|
265
|
+
onClick: "copyPasteElement",
|
|
266
|
+
styleDefault: true
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
227
270
|
}
|
|
228
271
|
]
|
|
229
272
|
},
|
|
@@ -257,6 +300,27 @@ const PageMasterUiSchema = (theme) => {
|
|
|
257
300
|
}
|
|
258
301
|
}
|
|
259
302
|
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
widget: {
|
|
306
|
+
type: "Control",
|
|
307
|
+
scope: "#/properties/Paste_Event",
|
|
308
|
+
options: {
|
|
309
|
+
widget: "IconButton"
|
|
310
|
+
},
|
|
311
|
+
config: {
|
|
312
|
+
main: {
|
|
313
|
+
onClick: "copyPasteElement",
|
|
314
|
+
size: "small",
|
|
315
|
+
icon: "PasteIcon",
|
|
316
|
+
iconLabel: "Paste",
|
|
317
|
+
styleDefault: true
|
|
318
|
+
},
|
|
319
|
+
style: {
|
|
320
|
+
mt: "6px"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
260
324
|
}
|
|
261
325
|
]
|
|
262
326
|
},
|
|
@@ -315,20 +379,85 @@ const PageMasterUiSchema = (theme) => {
|
|
|
315
379
|
}
|
|
316
380
|
}
|
|
317
381
|
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
header: "Copy",
|
|
385
|
+
field: "Copy_Event",
|
|
386
|
+
flex: 1,
|
|
387
|
+
widget: {
|
|
388
|
+
type: "Control",
|
|
389
|
+
scope: "#/properties/Copy_Event",
|
|
390
|
+
options: {
|
|
391
|
+
widget: "IconButton"
|
|
392
|
+
},
|
|
393
|
+
config: {
|
|
394
|
+
main: {
|
|
395
|
+
icon: "FileCopyIcon",
|
|
396
|
+
onClick: "copyPasteElement",
|
|
397
|
+
styleDefault: true
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
318
401
|
}
|
|
319
402
|
]
|
|
320
403
|
}
|
|
321
404
|
]
|
|
322
405
|
},
|
|
323
406
|
{
|
|
324
|
-
type: "
|
|
325
|
-
scope: "#/properties/btn",
|
|
326
|
-
options: {
|
|
327
|
-
widget: "EmptyBox"
|
|
328
|
-
},
|
|
407
|
+
type: "HorizontalLayout",
|
|
329
408
|
config: {
|
|
330
|
-
layout: { xs:
|
|
331
|
-
}
|
|
409
|
+
layout: { xs: 12, sm: 9 }
|
|
410
|
+
},
|
|
411
|
+
elements: [
|
|
412
|
+
{
|
|
413
|
+
type: "Control",
|
|
414
|
+
scope: "#/properties/RemoveItemButton",
|
|
415
|
+
options: {
|
|
416
|
+
widget: "IconButton"
|
|
417
|
+
},
|
|
418
|
+
config: {
|
|
419
|
+
layout: { xs: 1, sm: 1 },
|
|
420
|
+
main: {
|
|
421
|
+
onClick: "RemoveItemButton",
|
|
422
|
+
size: "large",
|
|
423
|
+
icon: "RejectIcon",
|
|
424
|
+
styleDefault: true
|
|
425
|
+
},
|
|
426
|
+
style: {
|
|
427
|
+
marginLeft: "-5px"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
type: "Control",
|
|
433
|
+
scope: "#/properties/copiedElementDetails",
|
|
434
|
+
options: {
|
|
435
|
+
widget: "Box"
|
|
436
|
+
},
|
|
437
|
+
config: {
|
|
438
|
+
layout: { xs: 6, sm: 6 },
|
|
439
|
+
main: {
|
|
440
|
+
heading: "No element copied"
|
|
441
|
+
},
|
|
442
|
+
style: {
|
|
443
|
+
color: "#535557",
|
|
444
|
+
marginLeft: "-30px",
|
|
445
|
+
fontSize: "12px",
|
|
446
|
+
marginTop: "4px"
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
type: "Control",
|
|
452
|
+
scope: "#/properties/EmptyBox",
|
|
453
|
+
options: {
|
|
454
|
+
widget: "EmptyBox"
|
|
455
|
+
},
|
|
456
|
+
config: {
|
|
457
|
+
layout: { xs: 1, sm: 5 }
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
]
|
|
332
461
|
},
|
|
333
462
|
{
|
|
334
463
|
type: "Control",
|
|
@@ -358,23 +487,18 @@ const PageMasterUiSchema = (theme) => {
|
|
|
358
487
|
layout: {
|
|
359
488
|
xs: 12,
|
|
360
489
|
sm: 12,
|
|
361
|
-
md:
|
|
362
|
-
lg:
|
|
490
|
+
md: 12,
|
|
491
|
+
lg: 12
|
|
363
492
|
},
|
|
364
|
-
main: {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
"& .MuiTypography-root": {
|
|
370
|
-
padding: 0
|
|
371
|
-
}
|
|
372
|
-
}
|
|
493
|
+
main: {
|
|
494
|
+
title: "WARNING!"
|
|
495
|
+
},
|
|
496
|
+
style: {}
|
|
373
497
|
},
|
|
374
498
|
elements: [
|
|
375
499
|
{
|
|
376
500
|
type: "Control",
|
|
377
|
-
scope: "#/properties/
|
|
501
|
+
scope: "#/properties/popText",
|
|
378
502
|
options: {
|
|
379
503
|
widget: "Box"
|
|
380
504
|
},
|
|
@@ -384,58 +508,95 @@ const PageMasterUiSchema = (theme) => {
|
|
|
384
508
|
heading: "Are you sure you want to delete ?"
|
|
385
509
|
},
|
|
386
510
|
style: {
|
|
387
|
-
marginTop: "-
|
|
511
|
+
marginTop: "-20px",
|
|
512
|
+
fontSize: "20px",
|
|
513
|
+
"&.MuiTypography-root": {
|
|
514
|
+
padding: "10px 30px 20px 30px",
|
|
515
|
+
textAlign: "center",
|
|
516
|
+
lineHeight: "1"
|
|
517
|
+
}
|
|
388
518
|
}
|
|
389
519
|
}
|
|
390
520
|
},
|
|
391
521
|
{
|
|
392
|
-
type: "
|
|
393
|
-
scope: "#/properties/EmptyBox",
|
|
394
|
-
options: {
|
|
395
|
-
widget: "EmptyBox"
|
|
396
|
-
},
|
|
397
|
-
config: {
|
|
398
|
-
main: {},
|
|
399
|
-
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
type: "Control",
|
|
404
|
-
scope: "#/properties/ConfirmDeleteCompButton",
|
|
405
|
-
options: {
|
|
406
|
-
widget: "Button"
|
|
407
|
-
},
|
|
522
|
+
type: "WrapperLayout",
|
|
408
523
|
config: {
|
|
409
|
-
layout:
|
|
410
|
-
main: {
|
|
411
|
-
name: "Yes",
|
|
412
|
-
startIcon: "ApproveIcon",
|
|
413
|
-
variant: "contained",
|
|
414
|
-
color: "info",
|
|
415
|
-
type: "text",
|
|
416
|
-
onClick: "Delete_Components",
|
|
417
|
-
size: "small"
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
type: "Control",
|
|
423
|
-
scope: "#/properties/CancelDeleteCompButton",
|
|
424
|
-
options: {
|
|
425
|
-
widget: "Button"
|
|
524
|
+
layout: 12,
|
|
525
|
+
main: {}
|
|
426
526
|
},
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
527
|
+
elements: [
|
|
528
|
+
{
|
|
529
|
+
type: "Control",
|
|
530
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
531
|
+
options: {
|
|
532
|
+
widget: "Button"
|
|
533
|
+
},
|
|
534
|
+
config: {
|
|
535
|
+
layout: 6,
|
|
536
|
+
main: {
|
|
537
|
+
name: "No",
|
|
538
|
+
startIcon: "ApproveIcon",
|
|
539
|
+
variant: "contained",
|
|
540
|
+
color: "info",
|
|
541
|
+
type: "text",
|
|
542
|
+
onClick: "deletePopUpComponent",
|
|
543
|
+
size: "large"
|
|
544
|
+
},
|
|
545
|
+
style: {
|
|
546
|
+
position: "absolute",
|
|
547
|
+
bottom: 0,
|
|
548
|
+
left: 0,
|
|
549
|
+
width: "50%",
|
|
550
|
+
borderRadius: 0,
|
|
551
|
+
boxShadow: 0,
|
|
552
|
+
backgroundColor: "transparent",
|
|
553
|
+
color: theme.palette.primary.main,
|
|
554
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
555
|
+
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
556
|
+
"&:hover": {
|
|
557
|
+
color: theme.palette.primary.contrastText,
|
|
558
|
+
backgroundColor: theme.palette.primary.main,
|
|
559
|
+
boxShadow: "none"
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
type: "Control",
|
|
566
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
567
|
+
options: {
|
|
568
|
+
widget: "Button"
|
|
569
|
+
},
|
|
570
|
+
config: {
|
|
571
|
+
layout: 6,
|
|
572
|
+
main: {
|
|
573
|
+
name: "Yes",
|
|
574
|
+
startIcon: "ApproveIcon",
|
|
575
|
+
variant: "contained",
|
|
576
|
+
color: "error",
|
|
577
|
+
type: "text",
|
|
578
|
+
onClick: "Delete_Components",
|
|
579
|
+
size: "large"
|
|
580
|
+
},
|
|
581
|
+
style: {
|
|
582
|
+
position: "absolute",
|
|
583
|
+
bottom: 0,
|
|
584
|
+
right: 0,
|
|
585
|
+
width: "50%",
|
|
586
|
+
borderRadius: 0,
|
|
587
|
+
boxShadow: 0,
|
|
588
|
+
backgroundColor: "transparent",
|
|
589
|
+
color: theme.palette.error.main,
|
|
590
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
591
|
+
"&:hover": {
|
|
592
|
+
color: theme.palette.error.contrastText,
|
|
593
|
+
backgroundColor: theme.palette.error.main,
|
|
594
|
+
boxShadow: "none"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
437
598
|
}
|
|
438
|
-
|
|
599
|
+
]
|
|
439
600
|
}
|
|
440
601
|
]
|
|
441
602
|
},
|
|
@@ -449,23 +610,18 @@ const PageMasterUiSchema = (theme) => {
|
|
|
449
610
|
layout: {
|
|
450
611
|
xs: 12,
|
|
451
612
|
sm: 12,
|
|
452
|
-
md:
|
|
453
|
-
lg:
|
|
613
|
+
md: 12,
|
|
614
|
+
lg: 12
|
|
454
615
|
},
|
|
455
|
-
main: {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
},
|
|
460
|
-
"& .MuiTypography-root": {
|
|
461
|
-
padding: 0
|
|
462
|
-
}
|
|
463
|
-
}
|
|
616
|
+
main: {
|
|
617
|
+
title: "WARNING!"
|
|
618
|
+
},
|
|
619
|
+
style: {}
|
|
464
620
|
},
|
|
465
621
|
elements: [
|
|
466
622
|
{
|
|
467
623
|
type: "Control",
|
|
468
|
-
scope: "#/properties/
|
|
624
|
+
scope: "#/properties/popText1",
|
|
469
625
|
options: {
|
|
470
626
|
widget: "Box"
|
|
471
627
|
},
|
|
@@ -475,58 +631,95 @@ const PageMasterUiSchema = (theme) => {
|
|
|
475
631
|
heading: "Are you sure you want to delete ?"
|
|
476
632
|
},
|
|
477
633
|
style: {
|
|
478
|
-
marginTop: "-
|
|
634
|
+
marginTop: "-20px",
|
|
635
|
+
fontSize: "20px",
|
|
636
|
+
"&.MuiTypography-root": {
|
|
637
|
+
padding: "10px 30px 20px 30px",
|
|
638
|
+
textAlign: "center",
|
|
639
|
+
lineHeight: "1"
|
|
640
|
+
}
|
|
479
641
|
}
|
|
480
642
|
}
|
|
481
643
|
},
|
|
482
644
|
{
|
|
483
|
-
type: "
|
|
484
|
-
scope: "#/properties/EmptyBox",
|
|
485
|
-
options: {
|
|
486
|
-
widget: "EmptyBox"
|
|
487
|
-
},
|
|
488
|
-
config: {
|
|
489
|
-
main: {},
|
|
490
|
-
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
type: "Control",
|
|
495
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
496
|
-
options: {
|
|
497
|
-
widget: "Button"
|
|
498
|
-
},
|
|
645
|
+
type: "WrapperLayout",
|
|
499
646
|
config: {
|
|
500
|
-
layout:
|
|
501
|
-
main: {
|
|
502
|
-
name: "Yes",
|
|
503
|
-
startIcon: "ApproveIcon",
|
|
504
|
-
variant: "contained",
|
|
505
|
-
color: "info",
|
|
506
|
-
type: "text",
|
|
507
|
-
onClick: "deleteEvent",
|
|
508
|
-
size: "small"
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
type: "Control",
|
|
514
|
-
scope: "#/properties/CancelDeleteEventButton",
|
|
515
|
-
options: {
|
|
516
|
-
widget: "Button"
|
|
647
|
+
layout: 12,
|
|
648
|
+
main: {}
|
|
517
649
|
},
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
650
|
+
elements: [
|
|
651
|
+
{
|
|
652
|
+
type: "Control",
|
|
653
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
654
|
+
options: {
|
|
655
|
+
widget: "Button"
|
|
656
|
+
},
|
|
657
|
+
config: {
|
|
658
|
+
layout: 6,
|
|
659
|
+
main: {
|
|
660
|
+
name: "No",
|
|
661
|
+
startIcon: "ApproveIcon",
|
|
662
|
+
variant: "contained",
|
|
663
|
+
color: "info",
|
|
664
|
+
type: "text",
|
|
665
|
+
onClick: "deletePopUpEvent",
|
|
666
|
+
size: "large"
|
|
667
|
+
},
|
|
668
|
+
style: {
|
|
669
|
+
position: "absolute",
|
|
670
|
+
bottom: 0,
|
|
671
|
+
left: 0,
|
|
672
|
+
width: "50%",
|
|
673
|
+
borderRadius: 0,
|
|
674
|
+
boxShadow: 0,
|
|
675
|
+
backgroundColor: "transparent",
|
|
676
|
+
color: theme.palette.primary.main,
|
|
677
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
678
|
+
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
679
|
+
"&:hover": {
|
|
680
|
+
color: theme.palette.primary.contrastText,
|
|
681
|
+
backgroundColor: theme.palette.primary.main,
|
|
682
|
+
boxShadow: "none"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
type: "Control",
|
|
689
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
690
|
+
options: {
|
|
691
|
+
widget: "Button"
|
|
692
|
+
},
|
|
693
|
+
config: {
|
|
694
|
+
layout: 6,
|
|
695
|
+
main: {
|
|
696
|
+
name: "Yes",
|
|
697
|
+
startIcon: "ApproveIcon",
|
|
698
|
+
variant: "contained",
|
|
699
|
+
color: "error",
|
|
700
|
+
type: "text",
|
|
701
|
+
onClick: "deleteEvent",
|
|
702
|
+
size: "large"
|
|
703
|
+
},
|
|
704
|
+
style: {
|
|
705
|
+
position: "absolute",
|
|
706
|
+
bottom: 0,
|
|
707
|
+
right: 0,
|
|
708
|
+
width: "50%",
|
|
709
|
+
borderRadius: 0,
|
|
710
|
+
boxShadow: 0,
|
|
711
|
+
backgroundColor: "transparent",
|
|
712
|
+
color: theme.palette.error.main,
|
|
713
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
714
|
+
"&:hover": {
|
|
715
|
+
color: theme.palette.error.contrastText,
|
|
716
|
+
backgroundColor: theme.palette.error.main,
|
|
717
|
+
boxShadow: "none"
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}
|
|
528
721
|
}
|
|
529
|
-
|
|
722
|
+
]
|
|
530
723
|
}
|
|
531
724
|
]
|
|
532
725
|
},
|
|
@@ -570,13 +763,14 @@ const PageMasterUiSchema = (theme) => {
|
|
|
570
763
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
571
764
|
fontSize: "12px",
|
|
572
765
|
textAlign: "center",
|
|
573
|
-
lineHeight:
|
|
766
|
+
lineHeight: 2,
|
|
574
767
|
width: "fit-content",
|
|
575
768
|
left: "50%",
|
|
576
769
|
position: "relative",
|
|
577
770
|
margin: 0,
|
|
578
771
|
flexGrow: 1,
|
|
579
|
-
height: 0
|
|
772
|
+
height: 0,
|
|
773
|
+
transform: "translate(-50%,0%)"
|
|
580
774
|
}
|
|
581
775
|
}
|
|
582
776
|
},
|
|
@@ -6126,7 +6320,8 @@ const ComponentSchema = {
|
|
|
6126
6320
|
{ title: "Timer", const: "Timer" },
|
|
6127
6321
|
{ title: "Upload File", const: "UploadFile" },
|
|
6128
6322
|
{ title: "TreeMap", const: "TreeMap" },
|
|
6129
|
-
{ title: "ColumnGroup", const: "ColumnGroup" }
|
|
6323
|
+
{ title: "ColumnGroup", const: "ColumnGroup" },
|
|
6324
|
+
{ title: "Thought of the Day", const: "Thought" }
|
|
6130
6325
|
]
|
|
6131
6326
|
},
|
|
6132
6327
|
columnFormat: {
|
|
@@ -6415,7 +6610,10 @@ const ComponentSchema = {
|
|
|
6415
6610
|
name: {
|
|
6416
6611
|
type: "string"
|
|
6417
6612
|
},
|
|
6418
|
-
label: { type: "string" }
|
|
6613
|
+
label: { type: "string" },
|
|
6614
|
+
RemoveItemButton: {
|
|
6615
|
+
disabled: true
|
|
6616
|
+
}
|
|
6419
6617
|
},
|
|
6420
6618
|
required: ["name"]
|
|
6421
6619
|
};
|
|
@@ -6591,99 +6789,100 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6591
6789
|
]
|
|
6592
6790
|
},
|
|
6593
6791
|
{
|
|
6594
|
-
type: "
|
|
6595
|
-
scope: "#/properties/popUpComponentSection",
|
|
6596
|
-
options: {
|
|
6597
|
-
widget: "PopUp"
|
|
6598
|
-
},
|
|
6792
|
+
type: "HorizontalLayout",
|
|
6599
6793
|
config: {
|
|
6600
|
-
layout: {
|
|
6601
|
-
xs: 12,
|
|
6602
|
-
sm: 12,
|
|
6603
|
-
md: 12,
|
|
6604
|
-
lg: 12
|
|
6605
|
-
},
|
|
6606
|
-
main: {},
|
|
6607
|
-
style: {
|
|
6608
|
-
"& .MuiPaper-root": {
|
|
6609
|
-
width: "30%"
|
|
6610
|
-
},
|
|
6611
|
-
"& .MuiTypography-root": {
|
|
6612
|
-
padding: 0
|
|
6613
|
-
}
|
|
6614
|
-
}
|
|
6794
|
+
layout: { xs: 12, sm: 6 }
|
|
6615
6795
|
},
|
|
6616
6796
|
elements: [
|
|
6617
6797
|
{
|
|
6618
6798
|
type: "Control",
|
|
6619
|
-
scope: "#/properties/
|
|
6799
|
+
scope: "#/properties/RemoveItemButton",
|
|
6620
6800
|
options: {
|
|
6621
|
-
widget: "
|
|
6801
|
+
widget: "IconButton"
|
|
6622
6802
|
},
|
|
6623
6803
|
config: {
|
|
6624
|
-
layout:
|
|
6804
|
+
layout: { xs: 1, sm: 1 },
|
|
6625
6805
|
main: {
|
|
6626
|
-
|
|
6806
|
+
onClick: "RemoveItemButton",
|
|
6807
|
+
size: "large",
|
|
6808
|
+
icon: "RejectIcon",
|
|
6809
|
+
styleDefault: true
|
|
6627
6810
|
},
|
|
6628
6811
|
style: {
|
|
6629
|
-
|
|
6812
|
+
marginLeft: "-10px"
|
|
6630
6813
|
}
|
|
6631
6814
|
}
|
|
6632
6815
|
},
|
|
6633
6816
|
{
|
|
6634
6817
|
type: "Control",
|
|
6635
|
-
scope: "#/properties/
|
|
6818
|
+
scope: "#/properties/copiedElementDetails",
|
|
6636
6819
|
options: {
|
|
6637
|
-
widget: "
|
|
6820
|
+
widget: "Box"
|
|
6638
6821
|
},
|
|
6639
6822
|
config: {
|
|
6640
|
-
|
|
6641
|
-
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
6642
|
-
}
|
|
6643
|
-
},
|
|
6644
|
-
{
|
|
6645
|
-
type: "Control",
|
|
6646
|
-
scope: "#/properties/ConfirmDeleteCompButton",
|
|
6647
|
-
options: {
|
|
6648
|
-
widget: "Button"
|
|
6649
|
-
},
|
|
6650
|
-
config: {
|
|
6651
|
-
layout: 3,
|
|
6823
|
+
layout: { xs: 6, sm: 6 },
|
|
6652
6824
|
main: {
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
color: "
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6825
|
+
heading: "No element copied"
|
|
6826
|
+
},
|
|
6827
|
+
style: {
|
|
6828
|
+
color: "#535557",
|
|
6829
|
+
marginLeft: "-10px",
|
|
6830
|
+
fontSize: "12px",
|
|
6831
|
+
marginTop: "4px"
|
|
6660
6832
|
}
|
|
6661
6833
|
}
|
|
6662
6834
|
},
|
|
6663
6835
|
{
|
|
6664
6836
|
type: "Control",
|
|
6665
|
-
scope: "#/properties/
|
|
6837
|
+
scope: "#/properties/EmptyBox",
|
|
6666
6838
|
options: {
|
|
6667
|
-
widget: "
|
|
6839
|
+
widget: "EmptyBox"
|
|
6668
6840
|
},
|
|
6669
6841
|
config: {
|
|
6670
|
-
layout:
|
|
6671
|
-
main: {
|
|
6672
|
-
name: "No",
|
|
6673
|
-
startIcon: "ApproveIcon",
|
|
6674
|
-
variant: "contained",
|
|
6675
|
-
color: "info",
|
|
6676
|
-
type: "text",
|
|
6677
|
-
onClick: "deletePopUpComponent",
|
|
6678
|
-
size: "small"
|
|
6679
|
-
}
|
|
6842
|
+
layout: { xs: 1, sm: 5 }
|
|
6680
6843
|
}
|
|
6681
6844
|
}
|
|
6682
6845
|
]
|
|
6683
6846
|
},
|
|
6684
6847
|
{
|
|
6685
6848
|
type: "Control",
|
|
6686
|
-
scope: "#/properties/
|
|
6849
|
+
scope: "#/properties/btn",
|
|
6850
|
+
options: {
|
|
6851
|
+
widget: "Button"
|
|
6852
|
+
},
|
|
6853
|
+
config: {
|
|
6854
|
+
layout: { xs: 4, sm: 2 },
|
|
6855
|
+
main: {
|
|
6856
|
+
name: "Ok",
|
|
6857
|
+
startIcon: "ApproveIcon",
|
|
6858
|
+
variant: "contained",
|
|
6859
|
+
type: "text",
|
|
6860
|
+
onClick: "okHandler",
|
|
6861
|
+
size: "medium"
|
|
6862
|
+
}
|
|
6863
|
+
}
|
|
6864
|
+
},
|
|
6865
|
+
{
|
|
6866
|
+
type: "Control",
|
|
6867
|
+
scope: "#/properties/btnSubmit",
|
|
6868
|
+
options: {
|
|
6869
|
+
widget: "Button"
|
|
6870
|
+
},
|
|
6871
|
+
config: {
|
|
6872
|
+
layout: { xs: 4, sm: 2 },
|
|
6873
|
+
main: {
|
|
6874
|
+
name: "Save & Exit",
|
|
6875
|
+
startIcon: "ApproveIcon",
|
|
6876
|
+
variant: "contained",
|
|
6877
|
+
type: "text",
|
|
6878
|
+
onClick: "saveHandler",
|
|
6879
|
+
size: "medium"
|
|
6880
|
+
}
|
|
6881
|
+
}
|
|
6882
|
+
},
|
|
6883
|
+
{
|
|
6884
|
+
type: "Control",
|
|
6885
|
+
scope: "#/properties/popUpComponentSection",
|
|
6687
6886
|
options: {
|
|
6688
6887
|
widget: "PopUp"
|
|
6689
6888
|
},
|
|
@@ -6694,20 +6893,15 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6694
6893
|
md: 12,
|
|
6695
6894
|
lg: 12
|
|
6696
6895
|
},
|
|
6697
|
-
main: {
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
},
|
|
6702
|
-
"& .MuiTypography-root": {
|
|
6703
|
-
padding: 0
|
|
6704
|
-
}
|
|
6705
|
-
}
|
|
6896
|
+
main: {
|
|
6897
|
+
title: "WARNING!"
|
|
6898
|
+
},
|
|
6899
|
+
style: {}
|
|
6706
6900
|
},
|
|
6707
6901
|
elements: [
|
|
6708
6902
|
{
|
|
6709
6903
|
type: "Control",
|
|
6710
|
-
scope: "#/properties/
|
|
6904
|
+
scope: "#/properties/popupText",
|
|
6711
6905
|
options: {
|
|
6712
6906
|
widget: "Box"
|
|
6713
6907
|
},
|
|
@@ -6717,107 +6911,221 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6717
6911
|
heading: "Are you sure you want to delete ?"
|
|
6718
6912
|
},
|
|
6719
6913
|
style: {
|
|
6720
|
-
marginTop: "-
|
|
6914
|
+
marginTop: "-20px",
|
|
6915
|
+
fontSize: "20px",
|
|
6916
|
+
"&.MuiTypography-root": {
|
|
6917
|
+
padding: "10px 30px 20px 30px",
|
|
6918
|
+
textAlign: "center",
|
|
6919
|
+
lineHeight: "1"
|
|
6920
|
+
}
|
|
6721
6921
|
}
|
|
6722
6922
|
}
|
|
6723
6923
|
},
|
|
6724
6924
|
{
|
|
6725
|
-
type: "
|
|
6726
|
-
scope: "#/properties/EmptyBox",
|
|
6727
|
-
options: {
|
|
6728
|
-
widget: "EmptyBox"
|
|
6729
|
-
},
|
|
6925
|
+
type: "WrapperLayout",
|
|
6730
6926
|
config: {
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
}
|
|
6927
|
+
layout: 12,
|
|
6928
|
+
main: {}
|
|
6929
|
+
},
|
|
6930
|
+
elements: [
|
|
6931
|
+
{
|
|
6932
|
+
type: "Control",
|
|
6933
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
6934
|
+
options: {
|
|
6935
|
+
widget: "Button"
|
|
6936
|
+
},
|
|
6937
|
+
config: {
|
|
6938
|
+
layout: 6,
|
|
6939
|
+
main: {
|
|
6940
|
+
name: "No",
|
|
6941
|
+
startIcon: "ApproveIcon",
|
|
6942
|
+
variant: "contained",
|
|
6943
|
+
color: "info",
|
|
6944
|
+
type: "text",
|
|
6945
|
+
onClick: "deletePopUpComponent",
|
|
6946
|
+
size: "large"
|
|
6947
|
+
},
|
|
6948
|
+
style: {
|
|
6949
|
+
position: "absolute",
|
|
6950
|
+
bottom: 0,
|
|
6951
|
+
left: 0,
|
|
6952
|
+
width: "50%",
|
|
6953
|
+
borderRadius: 0,
|
|
6954
|
+
boxShadow: 0,
|
|
6955
|
+
backgroundColor: "transparent",
|
|
6956
|
+
color: theme.palette.primary.main,
|
|
6957
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
6958
|
+
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
6959
|
+
"&:hover": {
|
|
6960
|
+
color: theme.palette.primary.contrastText,
|
|
6961
|
+
backgroundColor: theme.palette.primary.main,
|
|
6962
|
+
boxShadow: "none"
|
|
6963
|
+
}
|
|
6964
|
+
}
|
|
6965
|
+
}
|
|
6966
|
+
},
|
|
6967
|
+
{
|
|
6968
|
+
type: "Control",
|
|
6969
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
6970
|
+
options: {
|
|
6971
|
+
widget: "Button"
|
|
6972
|
+
},
|
|
6973
|
+
config: {
|
|
6974
|
+
layout: 6,
|
|
6975
|
+
main: {
|
|
6976
|
+
name: "Yes",
|
|
6977
|
+
startIcon: "ApproveIcon",
|
|
6978
|
+
variant: "contained",
|
|
6979
|
+
color: "error",
|
|
6980
|
+
type: "text",
|
|
6981
|
+
onClick: "deleteComponents",
|
|
6982
|
+
size: "large"
|
|
6983
|
+
},
|
|
6984
|
+
style: {
|
|
6985
|
+
position: "absolute",
|
|
6986
|
+
bottom: 0,
|
|
6987
|
+
right: 0,
|
|
6988
|
+
width: "50%",
|
|
6989
|
+
borderRadius: 0,
|
|
6990
|
+
boxShadow: 0,
|
|
6991
|
+
backgroundColor: "transparent",
|
|
6992
|
+
color: theme.palette.error.main,
|
|
6993
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
6994
|
+
"&:hover": {
|
|
6995
|
+
color: theme.palette.error.contrastText,
|
|
6996
|
+
backgroundColor: theme.palette.error.main,
|
|
6997
|
+
boxShadow: "none"
|
|
6998
|
+
}
|
|
6999
|
+
}
|
|
7000
|
+
}
|
|
7001
|
+
}
|
|
7002
|
+
]
|
|
7003
|
+
}
|
|
7004
|
+
]
|
|
7005
|
+
},
|
|
7006
|
+
{
|
|
7007
|
+
type: "Control",
|
|
7008
|
+
scope: "#/properties/popUpEventSection",
|
|
7009
|
+
options: {
|
|
7010
|
+
widget: "PopUp"
|
|
7011
|
+
},
|
|
7012
|
+
config: {
|
|
7013
|
+
layout: {
|
|
7014
|
+
xs: 12,
|
|
7015
|
+
sm: 12,
|
|
7016
|
+
md: 12,
|
|
7017
|
+
lg: 12
|
|
6734
7018
|
},
|
|
7019
|
+
main: {
|
|
7020
|
+
title: "WARNING!"
|
|
7021
|
+
},
|
|
7022
|
+
style: {}
|
|
7023
|
+
},
|
|
7024
|
+
elements: [
|
|
6735
7025
|
{
|
|
6736
7026
|
type: "Control",
|
|
6737
|
-
scope: "#/properties/
|
|
7027
|
+
scope: "#/properties/popupText1",
|
|
6738
7028
|
options: {
|
|
6739
|
-
widget: "
|
|
7029
|
+
widget: "Box"
|
|
6740
7030
|
},
|
|
6741
7031
|
config: {
|
|
6742
|
-
layout:
|
|
7032
|
+
layout: 12,
|
|
6743
7033
|
main: {
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
7034
|
+
heading: "Are you sure you want to delete ?"
|
|
7035
|
+
},
|
|
7036
|
+
style: {
|
|
7037
|
+
marginTop: "-20px",
|
|
7038
|
+
fontSize: "20px",
|
|
7039
|
+
"&.MuiTypography-root": {
|
|
7040
|
+
padding: "10px 30px 20px 30px",
|
|
7041
|
+
textAlign: "center",
|
|
7042
|
+
lineHeight: "1"
|
|
7043
|
+
}
|
|
6751
7044
|
}
|
|
6752
7045
|
}
|
|
6753
7046
|
},
|
|
6754
7047
|
{
|
|
6755
|
-
type: "
|
|
6756
|
-
scope: "#/properties/CancelDeleteEventButton",
|
|
6757
|
-
options: {
|
|
6758
|
-
widget: "Button"
|
|
6759
|
-
},
|
|
7048
|
+
type: "WrapperLayout",
|
|
6760
7049
|
config: {
|
|
6761
|
-
layout:
|
|
6762
|
-
main: {
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
7050
|
+
layout: 12,
|
|
7051
|
+
main: {}
|
|
7052
|
+
},
|
|
7053
|
+
elements: [
|
|
7054
|
+
{
|
|
7055
|
+
type: "Control",
|
|
7056
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
7057
|
+
options: {
|
|
7058
|
+
widget: "Button"
|
|
7059
|
+
},
|
|
7060
|
+
config: {
|
|
7061
|
+
layout: 6,
|
|
7062
|
+
main: {
|
|
7063
|
+
name: "No",
|
|
7064
|
+
startIcon: "ApproveIcon",
|
|
7065
|
+
variant: "contained",
|
|
7066
|
+
color: "info",
|
|
7067
|
+
type: "text",
|
|
7068
|
+
onClick: "deletePopUpEvent",
|
|
7069
|
+
size: "large"
|
|
7070
|
+
},
|
|
7071
|
+
style: {
|
|
7072
|
+
position: "absolute",
|
|
7073
|
+
bottom: 0,
|
|
7074
|
+
left: 0,
|
|
7075
|
+
width: "50%",
|
|
7076
|
+
borderRadius: 0,
|
|
7077
|
+
boxShadow: 0,
|
|
7078
|
+
backgroundColor: "transparent",
|
|
7079
|
+
color: theme.palette.primary.main,
|
|
7080
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
7081
|
+
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
7082
|
+
"&:hover": {
|
|
7083
|
+
color: theme.palette.primary.contrastText,
|
|
7084
|
+
backgroundColor: theme.palette.primary.main,
|
|
7085
|
+
boxShadow: "none"
|
|
7086
|
+
}
|
|
7087
|
+
}
|
|
7088
|
+
}
|
|
7089
|
+
},
|
|
7090
|
+
{
|
|
7091
|
+
type: "Control",
|
|
7092
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
7093
|
+
options: {
|
|
7094
|
+
widget: "Button"
|
|
7095
|
+
},
|
|
7096
|
+
config: {
|
|
7097
|
+
layout: 6,
|
|
7098
|
+
main: {
|
|
7099
|
+
name: "Yes",
|
|
7100
|
+
startIcon: "ApproveIcon",
|
|
7101
|
+
variant: "contained",
|
|
7102
|
+
color: "error",
|
|
7103
|
+
type: "text",
|
|
7104
|
+
onClick: "deleteEvent",
|
|
7105
|
+
size: "large"
|
|
7106
|
+
},
|
|
7107
|
+
style: {
|
|
7108
|
+
position: "absolute",
|
|
7109
|
+
bottom: 0,
|
|
7110
|
+
right: 0,
|
|
7111
|
+
width: "50%",
|
|
7112
|
+
borderRadius: 0,
|
|
7113
|
+
boxShadow: 0,
|
|
7114
|
+
backgroundColor: "transparent",
|
|
7115
|
+
color: theme.palette.error.main,
|
|
7116
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
7117
|
+
"&:hover": {
|
|
7118
|
+
color: theme.palette.error.contrastText,
|
|
7119
|
+
backgroundColor: theme.palette.error.main,
|
|
7120
|
+
boxShadow: "none"
|
|
7121
|
+
}
|
|
7122
|
+
}
|
|
7123
|
+
}
|
|
6770
7124
|
}
|
|
6771
|
-
|
|
7125
|
+
]
|
|
6772
7126
|
}
|
|
6773
7127
|
]
|
|
6774
7128
|
},
|
|
6775
|
-
{
|
|
6776
|
-
type: "Control",
|
|
6777
|
-
scope: "#/properties/EmptyBox",
|
|
6778
|
-
options: {
|
|
6779
|
-
widget: "EmptyBox"
|
|
6780
|
-
},
|
|
6781
|
-
config: {
|
|
6782
|
-
layout: { xs: 4, sm: 8 }
|
|
6783
|
-
}
|
|
6784
|
-
},
|
|
6785
|
-
{
|
|
6786
|
-
type: "Control",
|
|
6787
|
-
scope: "#/properties/btn",
|
|
6788
|
-
options: {
|
|
6789
|
-
widget: "Button"
|
|
6790
|
-
},
|
|
6791
|
-
config: {
|
|
6792
|
-
layout: { xs: 4, sm: 2 },
|
|
6793
|
-
main: {
|
|
6794
|
-
name: "Ok",
|
|
6795
|
-
startIcon: "ApproveIcon",
|
|
6796
|
-
variant: "contained",
|
|
6797
|
-
type: "text",
|
|
6798
|
-
onClick: "okHandler",
|
|
6799
|
-
size: "medium"
|
|
6800
|
-
}
|
|
6801
|
-
}
|
|
6802
|
-
},
|
|
6803
|
-
{
|
|
6804
|
-
type: "Control",
|
|
6805
|
-
scope: "#/properties/btnSubmit",
|
|
6806
|
-
options: {
|
|
6807
|
-
widget: "Button"
|
|
6808
|
-
},
|
|
6809
|
-
config: {
|
|
6810
|
-
layout: { xs: 4, sm: 2 },
|
|
6811
|
-
main: {
|
|
6812
|
-
name: "Save & Exit",
|
|
6813
|
-
startIcon: "ApproveIcon",
|
|
6814
|
-
variant: "contained",
|
|
6815
|
-
type: "text",
|
|
6816
|
-
onClick: "saveHandler",
|
|
6817
|
-
size: "medium"
|
|
6818
|
-
}
|
|
6819
|
-
}
|
|
6820
|
-
},
|
|
6821
7129
|
{
|
|
6822
7130
|
type: "Control",
|
|
6823
7131
|
scope: "#/properties/notify",
|
|
@@ -6858,13 +7166,14 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6858
7166
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
6859
7167
|
fontSize: "12px",
|
|
6860
7168
|
textAlign: "center",
|
|
6861
|
-
lineHeight:
|
|
7169
|
+
lineHeight: 2,
|
|
6862
7170
|
width: "fit-content",
|
|
6863
7171
|
left: "50%",
|
|
6864
7172
|
position: "relative",
|
|
6865
7173
|
margin: 0,
|
|
6866
7174
|
flexGrow: 1,
|
|
6867
|
-
height: 0
|
|
7175
|
+
height: 0,
|
|
7176
|
+
transform: "translate(-50%,0%)"
|
|
6868
7177
|
}
|
|
6869
7178
|
}
|
|
6870
7179
|
},
|
|
@@ -7098,6 +7407,27 @@ const EventSection = (theme) => {
|
|
|
7098
7407
|
}
|
|
7099
7408
|
}
|
|
7100
7409
|
}
|
|
7410
|
+
},
|
|
7411
|
+
{
|
|
7412
|
+
widget: {
|
|
7413
|
+
type: "Control",
|
|
7414
|
+
scope: "#/properties/Paste_Event",
|
|
7415
|
+
options: {
|
|
7416
|
+
widget: "IconButton"
|
|
7417
|
+
},
|
|
7418
|
+
config: {
|
|
7419
|
+
main: {
|
|
7420
|
+
onClick: "copyPasteElement",
|
|
7421
|
+
size: "small",
|
|
7422
|
+
icon: "PasteIcon",
|
|
7423
|
+
iconLabel: "Paste",
|
|
7424
|
+
styleDefault: true
|
|
7425
|
+
},
|
|
7426
|
+
style: {
|
|
7427
|
+
mt: "6px"
|
|
7428
|
+
}
|
|
7429
|
+
}
|
|
7430
|
+
}
|
|
7101
7431
|
}
|
|
7102
7432
|
]
|
|
7103
7433
|
},
|
|
@@ -7157,6 +7487,26 @@ const EventSection = (theme) => {
|
|
|
7157
7487
|
}
|
|
7158
7488
|
}
|
|
7159
7489
|
}
|
|
7490
|
+
},
|
|
7491
|
+
{
|
|
7492
|
+
header: "Copy",
|
|
7493
|
+
field: "Copy_Event",
|
|
7494
|
+
flex: 1,
|
|
7495
|
+
widget: {
|
|
7496
|
+
type: "Control",
|
|
7497
|
+
scope: "#/properties/Copy_Event",
|
|
7498
|
+
options: {
|
|
7499
|
+
widget: "IconButton"
|
|
7500
|
+
},
|
|
7501
|
+
config: {
|
|
7502
|
+
main: {
|
|
7503
|
+
icon: "FileCopyIcon",
|
|
7504
|
+
onClick: "copyPasteElement",
|
|
7505
|
+
tooltipMessage: "Reject This Record",
|
|
7506
|
+
styleDefault: true
|
|
7507
|
+
}
|
|
7508
|
+
}
|
|
7509
|
+
}
|
|
7160
7510
|
}
|
|
7161
7511
|
]
|
|
7162
7512
|
}
|
|
@@ -7321,7 +7671,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7321
7671
|
width: "108%"
|
|
7322
7672
|
},
|
|
7323
7673
|
componentsBoxStyle: {
|
|
7324
|
-
marginLeft: "
|
|
7674
|
+
marginLeft: "12px"
|
|
7325
7675
|
},
|
|
7326
7676
|
defaultStyle: true
|
|
7327
7677
|
},
|
|
@@ -7474,22 +7824,19 @@ const buildPropertiesSection = function(type) {
|
|
|
7474
7824
|
case "RankCard":
|
|
7475
7825
|
uiSchema.elements = [
|
|
7476
7826
|
getInputField("rank", "Rank"),
|
|
7477
|
-
getInputField("
|
|
7478
|
-
|
|
7479
|
-
getInputField("description", "Card Description"),
|
|
7480
|
-
emptyBox$1("RankCardEmpty1"),
|
|
7481
|
-
emptyBox$1("RankCardEmpty2")
|
|
7827
|
+
getInputField("height", "Height"),
|
|
7828
|
+
emptyBox$1("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7482
7829
|
];
|
|
7483
7830
|
break;
|
|
7484
7831
|
case "LeaderBoard":
|
|
7485
7832
|
uiSchema.elements = [
|
|
7486
|
-
getInputField("valueLabel", "Value Label"),
|
|
7487
7833
|
getInputField("firstImage", "First Image url"),
|
|
7488
7834
|
getInputField("secondImage", "Second Image url"),
|
|
7489
7835
|
getInputField("thirdImage", "Third Image url"),
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7836
|
+
getInputField("nameKey", "Key for Name"),
|
|
7837
|
+
getInputField("imageKey", "Key for Image"),
|
|
7838
|
+
getInputField("scoreKey", "Key for comparing parameter"),
|
|
7839
|
+
emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7493
7840
|
];
|
|
7494
7841
|
break;
|
|
7495
7842
|
case "CardSlider":
|
|
@@ -7513,8 +7860,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7513
7860
|
uiSchema.elements = [
|
|
7514
7861
|
getInputField("url", "Image Url"),
|
|
7515
7862
|
getInputField("label", "Label"),
|
|
7863
|
+
getInputField("titleIcon", "Unicode of Icon for title"),
|
|
7516
7864
|
getInputField("description", "Description"),
|
|
7517
|
-
emptyBox$1("cardEmpty", { xs:
|
|
7865
|
+
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7518
7866
|
];
|
|
7519
7867
|
break;
|
|
7520
7868
|
case "Button":
|
|
@@ -7538,7 +7886,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7538
7886
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7539
7887
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7540
7888
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7541
|
-
|
|
7889
|
+
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7890
|
+
getInputField("leftMargin", "Left Margin"),
|
|
7891
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 8 }),
|
|
7542
7892
|
getArrayControl("legendLabels", "label"),
|
|
7543
7893
|
getArrayControl("pieArcColors", "color")
|
|
7544
7894
|
];
|
|
@@ -7610,6 +7960,11 @@ const buildPropertiesSection = function(type) {
|
|
|
7610
7960
|
emptyBox$1("MultipleSelectEmpty2")
|
|
7611
7961
|
];
|
|
7612
7962
|
break;
|
|
7963
|
+
case "Thought":
|
|
7964
|
+
uiSchema.elements = [
|
|
7965
|
+
getTextArea("thought", "Today's thought", false)
|
|
7966
|
+
];
|
|
7967
|
+
break;
|
|
7613
7968
|
}
|
|
7614
7969
|
return uiSchema;
|
|
7615
7970
|
};
|
|
@@ -7683,6 +8038,27 @@ const TableSection = (theme) => {
|
|
|
7683
8038
|
}
|
|
7684
8039
|
}
|
|
7685
8040
|
}
|
|
8041
|
+
},
|
|
8042
|
+
{
|
|
8043
|
+
widget: {
|
|
8044
|
+
type: "Control",
|
|
8045
|
+
scope: "#/properties/Paste_Component",
|
|
8046
|
+
options: {
|
|
8047
|
+
widget: "IconButton"
|
|
8048
|
+
},
|
|
8049
|
+
config: {
|
|
8050
|
+
main: {
|
|
8051
|
+
onClick: "copyPasteElement",
|
|
8052
|
+
size: "small",
|
|
8053
|
+
icon: "PasteIcon",
|
|
8054
|
+
iconLabel: "Paste",
|
|
8055
|
+
styleDefault: true
|
|
8056
|
+
},
|
|
8057
|
+
style: {
|
|
8058
|
+
mt: "6px"
|
|
8059
|
+
}
|
|
8060
|
+
}
|
|
8061
|
+
}
|
|
7686
8062
|
}
|
|
7687
8063
|
]
|
|
7688
8064
|
},
|
|
@@ -7742,6 +8118,26 @@ const TableSection = (theme) => {
|
|
|
7742
8118
|
}
|
|
7743
8119
|
}
|
|
7744
8120
|
}
|
|
8121
|
+
},
|
|
8122
|
+
{
|
|
8123
|
+
header: "Copy",
|
|
8124
|
+
field: "Copy_Component",
|
|
8125
|
+
flex: 1,
|
|
8126
|
+
widget: {
|
|
8127
|
+
type: "Control",
|
|
8128
|
+
scope: "#/properties/Copy_Component",
|
|
8129
|
+
options: {
|
|
8130
|
+
widget: "IconButton"
|
|
8131
|
+
},
|
|
8132
|
+
config: {
|
|
8133
|
+
main: {
|
|
8134
|
+
icon: "FileCopyIcon",
|
|
8135
|
+
onClick: "copyPasteElement",
|
|
8136
|
+
styleDefault: true,
|
|
8137
|
+
disabled: false
|
|
8138
|
+
}
|
|
8139
|
+
}
|
|
8140
|
+
}
|
|
7745
8141
|
}
|
|
7746
8142
|
]
|
|
7747
8143
|
}
|
|
@@ -7878,8 +8274,8 @@ var buildConfig = (FormData) => {
|
|
|
7878
8274
|
component = { ...formData, ...component };
|
|
7879
8275
|
return component;
|
|
7880
8276
|
};
|
|
7881
|
-
const createLayoutFormat = (
|
|
7882
|
-
if (_.isEmpty(
|
|
8277
|
+
const createLayoutFormat = (config2) => {
|
|
8278
|
+
if (_.isEmpty(config2)) {
|
|
7883
8279
|
return {
|
|
7884
8280
|
xs: 12,
|
|
7885
8281
|
sm: 12,
|
|
@@ -7888,17 +8284,17 @@ const createLayoutFormat = (config) => {
|
|
|
7888
8284
|
};
|
|
7889
8285
|
}
|
|
7890
8286
|
let data = {};
|
|
7891
|
-
|
|
8287
|
+
config2.map((e) => {
|
|
7892
8288
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
7893
8289
|
});
|
|
7894
8290
|
return data;
|
|
7895
8291
|
};
|
|
7896
|
-
const flatObjectValueInArray = (
|
|
7897
|
-
if (
|
|
8292
|
+
const flatObjectValueInArray = (config2 = []) => {
|
|
8293
|
+
if (config2.length < 1) {
|
|
7898
8294
|
return;
|
|
7899
8295
|
}
|
|
7900
|
-
const keyName = Object.keys(
|
|
7901
|
-
const data =
|
|
8296
|
+
const keyName = Object.keys(config2[0])[0];
|
|
8297
|
+
const data = config2.map((e) => {
|
|
7902
8298
|
return e[keyName];
|
|
7903
8299
|
});
|
|
7904
8300
|
return data;
|
|
@@ -7906,9 +8302,9 @@ const flatObjectValueInArray = (config = []) => {
|
|
|
7906
8302
|
const clearFromSessionStorage = () => {
|
|
7907
8303
|
sessionStorage.removeItem("pageFormdata");
|
|
7908
8304
|
};
|
|
7909
|
-
const getNavigationHistory = (
|
|
8305
|
+
const getNavigationHistory = (config2, path) => {
|
|
7910
8306
|
if (path) {
|
|
7911
|
-
let urlRoutes =
|
|
8307
|
+
let urlRoutes = config2.name;
|
|
7912
8308
|
const pathArrayAll = path.split(".");
|
|
7913
8309
|
const arr = [];
|
|
7914
8310
|
pathArrayAll.map((e, i) => {
|
|
@@ -7919,7 +8315,7 @@ const getNavigationHistory = (config, path) => {
|
|
|
7919
8315
|
arr.push(`${arr[i - 1]}.${e}`);
|
|
7920
8316
|
});
|
|
7921
8317
|
arr.map((e) => {
|
|
7922
|
-
const data = _.get(
|
|
8318
|
+
const data = _.get(config2, e);
|
|
7923
8319
|
if (data) {
|
|
7924
8320
|
urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
|
|
7925
8321
|
} else {
|
|
@@ -7953,16 +8349,16 @@ const getFormdataFromSessionStorage = (path) => {
|
|
|
7953
8349
|
}
|
|
7954
8350
|
return returnValue || pageFormdata;
|
|
7955
8351
|
};
|
|
7956
|
-
async function saveHandler(store2, service2, submitHandler
|
|
8352
|
+
async function saveHandler(store2, service2, submitHandler) {
|
|
7957
8353
|
var _a, _b;
|
|
7958
8354
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7959
8355
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7960
8356
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
7961
|
-
const
|
|
8357
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
7962
8358
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7963
8359
|
try {
|
|
7964
|
-
const saveReturn = await submitHandler(store2, service2,
|
|
7965
|
-
navigateHandler(store2, true,
|
|
8360
|
+
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8361
|
+
navigateHandler(store2, true, "/PageMasterRecords");
|
|
7966
8362
|
} catch (err) {
|
|
7967
8363
|
navigateHandler(store2, false);
|
|
7968
8364
|
}
|
|
@@ -8031,9 +8427,10 @@ const sectionLabels = {
|
|
|
8031
8427
|
DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
|
|
8032
8428
|
InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
8033
8429
|
TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
|
|
8034
|
-
ColumnGroup: ["Core", "Components"]
|
|
8430
|
+
ColumnGroup: ["Core", "Components"],
|
|
8431
|
+
Thought: ["Core", "Properties", "Event", "Style", "Validation"]
|
|
8035
8432
|
};
|
|
8036
|
-
|
|
8433
|
+
function refreshPage(type, store2) {
|
|
8037
8434
|
var _a;
|
|
8038
8435
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8039
8436
|
if (type) {
|
|
@@ -8050,8 +8447,11 @@ const refreshPage = (type, store2) => {
|
|
|
8050
8447
|
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
|
|
8051
8448
|
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8052
8449
|
}
|
|
8450
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8451
|
+
this.ElementPathSetter(UiSchema);
|
|
8452
|
+
}
|
|
8053
8453
|
store2.setUiSchema(UiSchema);
|
|
8054
|
-
}
|
|
8454
|
+
}
|
|
8055
8455
|
var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
8056
8456
|
return {
|
|
8057
8457
|
setPage: async function() {
|
|
@@ -8068,10 +8468,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8068
8468
|
return getFormdataFromSessionStorage(path);
|
|
8069
8469
|
},
|
|
8070
8470
|
getSchema: function() {
|
|
8071
|
-
|
|
8471
|
+
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8472
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8473
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8474
|
+
}
|
|
8475
|
+
return schema2;
|
|
8072
8476
|
},
|
|
8073
8477
|
okHandler: () => okHandler(store2),
|
|
8074
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
8478
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
8075
8479
|
onChange: function() {
|
|
8076
8480
|
var _a, _b, _c, _d;
|
|
8077
8481
|
if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.type) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.type) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.type) !== void 0) {
|
|
@@ -8163,6 +8567,84 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8163
8567
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8164
8568
|
sessionStorage.setItem("rowId", rowId);
|
|
8165
8569
|
store2.updateDialog("popUpEventSection");
|
|
8570
|
+
},
|
|
8571
|
+
copyPasteElement: function(paramStore, setPage = this.setPage.bind(this)) {
|
|
8572
|
+
var _a;
|
|
8573
|
+
const [actionType, elementType] = (_a = dynamicData2.path.split(".").pop()) == null ? void 0 : _a.split("_");
|
|
8574
|
+
actionType === "Copy" ? this.CopyElement(paramStore, elementType) : this.PasteElement(setPage, elementType);
|
|
8575
|
+
},
|
|
8576
|
+
CopyElement: function(paramStore = store2, elementType) {
|
|
8577
|
+
var _a;
|
|
8578
|
+
const schema2 = lodash.exports.cloneDeep(paramStore.schema);
|
|
8579
|
+
const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
|
|
8580
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8581
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8582
|
+
const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8583
|
+
const copiedElementPath = this.elementPathHandler(parentPathOfCopiedComponent, rowId, elementType);
|
|
8584
|
+
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8585
|
+
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8586
|
+
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8587
|
+
store2.setSchema(schema2);
|
|
8588
|
+
store2.setUiSchema(uiSchema);
|
|
8589
|
+
},
|
|
8590
|
+
PasteElement: function(setPage, elementType) {
|
|
8591
|
+
var _a;
|
|
8592
|
+
if (!sessionStorage.getItem("copiedConfig")) {
|
|
8593
|
+
store2.setNotify({
|
|
8594
|
+
FailMessage: "No item has been copied.",
|
|
8595
|
+
Fail: true
|
|
8596
|
+
});
|
|
8597
|
+
return;
|
|
8598
|
+
}
|
|
8599
|
+
const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8600
|
+
if (!Array.isArray(store2.formData.elements)) {
|
|
8601
|
+
store2.formData.elements = [];
|
|
8602
|
+
}
|
|
8603
|
+
if (!Array.isArray(store2.formData.events)) {
|
|
8604
|
+
store2.formData.events = [];
|
|
8605
|
+
}
|
|
8606
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8607
|
+
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8608
|
+
const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
|
|
8609
|
+
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8610
|
+
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8611
|
+
const notificationMessages = {
|
|
8612
|
+
Event: " The event cannot be integrated into the component section.",
|
|
8613
|
+
Component: "The component cannot be integrated into the event section."
|
|
8614
|
+
};
|
|
8615
|
+
if (copiedConfig.Handler && elementType === "Component") {
|
|
8616
|
+
store2.setNotify({
|
|
8617
|
+
FailMessage: notificationMessages.Event,
|
|
8618
|
+
Fail: true
|
|
8619
|
+
});
|
|
8620
|
+
} else if (copiedConfig.name && elementType === "Event") {
|
|
8621
|
+
store2.setNotify({
|
|
8622
|
+
FailMessage: notificationMessages.Component,
|
|
8623
|
+
Fail: true
|
|
8624
|
+
});
|
|
8625
|
+
} else {
|
|
8626
|
+
saveFormdataInSessionStorage(copiedConfig, pastedElementPath);
|
|
8627
|
+
setPage();
|
|
8628
|
+
}
|
|
8629
|
+
},
|
|
8630
|
+
RemoveItemButton: function(paramStore = store2) {
|
|
8631
|
+
const schema2 = lodash.exports.cloneDeep(paramStore.schema);
|
|
8632
|
+
const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
|
|
8633
|
+
schema2.properties.RemoveItemButton.disabled = true;
|
|
8634
|
+
uiSchema.elements[2].elements[1].config.main.heading = `No element copied`;
|
|
8635
|
+
sessionStorage.removeItem("copiedConfig");
|
|
8636
|
+
store2.setSchema(schema2);
|
|
8637
|
+
store2.setUiSchema(uiSchema);
|
|
8638
|
+
},
|
|
8639
|
+
elementPathHandler: function(parentPath, rowId, elementType) {
|
|
8640
|
+
if (elementType === "Component") {
|
|
8641
|
+
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8642
|
+
}
|
|
8643
|
+
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8644
|
+
},
|
|
8645
|
+
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8646
|
+
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8647
|
+
uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
|
|
8166
8648
|
}
|
|
8167
8649
|
};
|
|
8168
8650
|
};
|
|
@@ -8180,19 +8662,27 @@ var pageMaster = (funcParams) => {
|
|
|
8180
8662
|
getFormdata: async function() {
|
|
8181
8663
|
var _a;
|
|
8182
8664
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8183
|
-
const
|
|
8665
|
+
const config2 = await funcParams.pageConfigProvider(id);
|
|
8184
8666
|
const formData = getFormdataFromSessionStorage();
|
|
8185
8667
|
if (formData) {
|
|
8186
8668
|
return formData;
|
|
8187
8669
|
}
|
|
8188
|
-
saveFormdataInSessionStorage(
|
|
8189
|
-
return
|
|
8670
|
+
saveFormdataInSessionStorage(config2);
|
|
8671
|
+
return config2;
|
|
8190
8672
|
},
|
|
8191
8673
|
getUiSchema: function() {
|
|
8192
|
-
|
|
8674
|
+
const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
|
|
8675
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8676
|
+
Component(store2, dynamicData2, submitHandler, service2).ElementPathSetter(UiSchema);
|
|
8677
|
+
}
|
|
8678
|
+
return UiSchema;
|
|
8193
8679
|
},
|
|
8194
8680
|
getSchema: () => {
|
|
8195
|
-
|
|
8681
|
+
const schema2 = _.cloneDeep(PageMasterSchema);
|
|
8682
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8683
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8684
|
+
}
|
|
8685
|
+
return schema2;
|
|
8196
8686
|
},
|
|
8197
8687
|
backHandler: () => {
|
|
8198
8688
|
sessionStorage.removeItem("pageFormdata");
|
|
@@ -8256,6 +8746,12 @@ var pageMaster = (funcParams) => {
|
|
|
8256
8746
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8257
8747
|
sessionStorage.setItem("rowId", rowId);
|
|
8258
8748
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8749
|
+
},
|
|
8750
|
+
copyPasteElement: function() {
|
|
8751
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
|
|
8752
|
+
},
|
|
8753
|
+
RemoveItemButton: function() {
|
|
8754
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
|
|
8259
8755
|
}
|
|
8260
8756
|
};
|
|
8261
8757
|
};
|
|
@@ -8344,6 +8840,9 @@ const EventSchema = {
|
|
|
8344
8840
|
}
|
|
8345
8841
|
}
|
|
8346
8842
|
}
|
|
8843
|
+
},
|
|
8844
|
+
RemoveItemButton: {
|
|
8845
|
+
disabled: true
|
|
8347
8846
|
}
|
|
8348
8847
|
},
|
|
8349
8848
|
required: ["eventType", "Handler"]
|
|
@@ -8443,6 +8942,27 @@ const EventUiSchema = (theme) => {
|
|
|
8443
8942
|
}
|
|
8444
8943
|
}
|
|
8445
8944
|
}
|
|
8945
|
+
},
|
|
8946
|
+
{
|
|
8947
|
+
widget: {
|
|
8948
|
+
type: "Control",
|
|
8949
|
+
scope: "#/properties/Paste_Event",
|
|
8950
|
+
options: {
|
|
8951
|
+
widget: "IconButton"
|
|
8952
|
+
},
|
|
8953
|
+
config: {
|
|
8954
|
+
main: {
|
|
8955
|
+
onClick: "copyPasteElement",
|
|
8956
|
+
size: "small",
|
|
8957
|
+
icon: "PasteIcon",
|
|
8958
|
+
iconLabel: "Paste",
|
|
8959
|
+
styleDefault: true
|
|
8960
|
+
},
|
|
8961
|
+
style: {
|
|
8962
|
+
mt: "6px"
|
|
8963
|
+
}
|
|
8964
|
+
}
|
|
8965
|
+
}
|
|
8446
8966
|
}
|
|
8447
8967
|
]
|
|
8448
8968
|
},
|
|
@@ -8501,21 +9021,86 @@ const EventUiSchema = (theme) => {
|
|
|
8501
9021
|
}
|
|
8502
9022
|
}
|
|
8503
9023
|
}
|
|
9024
|
+
},
|
|
9025
|
+
{
|
|
9026
|
+
header: "Copy",
|
|
9027
|
+
field: "Copy_Event",
|
|
9028
|
+
flex: 1,
|
|
9029
|
+
widget: {
|
|
9030
|
+
type: "Control",
|
|
9031
|
+
scope: "#/properties/Copy_Event",
|
|
9032
|
+
options: {
|
|
9033
|
+
widget: "IconButton"
|
|
9034
|
+
},
|
|
9035
|
+
config: {
|
|
9036
|
+
main: {
|
|
9037
|
+
icon: "FileCopyIcon",
|
|
9038
|
+
onClick: "copyPasteElement",
|
|
9039
|
+
styleDefault: true
|
|
9040
|
+
}
|
|
9041
|
+
}
|
|
9042
|
+
}
|
|
9043
|
+
}
|
|
9044
|
+
]
|
|
9045
|
+
}
|
|
9046
|
+
]
|
|
9047
|
+
},
|
|
9048
|
+
{
|
|
9049
|
+
type: "HorizontalLayout",
|
|
9050
|
+
config: {
|
|
9051
|
+
layout: { xs: 12, sm: 6 }
|
|
9052
|
+
},
|
|
9053
|
+
elements: [
|
|
9054
|
+
{
|
|
9055
|
+
type: "Control",
|
|
9056
|
+
scope: "#/properties/RemoveItemButton",
|
|
9057
|
+
options: {
|
|
9058
|
+
widget: "IconButton"
|
|
9059
|
+
},
|
|
9060
|
+
config: {
|
|
9061
|
+
layout: { xs: 1, sm: 1 },
|
|
9062
|
+
main: {
|
|
9063
|
+
onClick: "RemoveItemButton",
|
|
9064
|
+
size: "large",
|
|
9065
|
+
icon: "RejectIcon",
|
|
9066
|
+
styleDefault: true
|
|
9067
|
+
},
|
|
9068
|
+
style: {
|
|
9069
|
+
marginLeft: "-10px"
|
|
9070
|
+
}
|
|
9071
|
+
}
|
|
9072
|
+
},
|
|
9073
|
+
{
|
|
9074
|
+
type: "Control",
|
|
9075
|
+
scope: "#/properties/copiedElementDetails",
|
|
9076
|
+
options: {
|
|
9077
|
+
widget: "Box"
|
|
9078
|
+
},
|
|
9079
|
+
config: {
|
|
9080
|
+
layout: { xs: 6, sm: 6 },
|
|
9081
|
+
main: {
|
|
9082
|
+
heading: "No element copied"
|
|
9083
|
+
},
|
|
9084
|
+
style: {
|
|
9085
|
+
color: "#535557",
|
|
9086
|
+
marginLeft: "-10px",
|
|
9087
|
+
fontSize: "12px",
|
|
9088
|
+
marginTop: "4px"
|
|
8504
9089
|
}
|
|
8505
|
-
|
|
9090
|
+
}
|
|
9091
|
+
},
|
|
9092
|
+
{
|
|
9093
|
+
type: "Control",
|
|
9094
|
+
scope: "#/properties/EmptyBox",
|
|
9095
|
+
options: {
|
|
9096
|
+
widget: "EmptyBox"
|
|
9097
|
+
},
|
|
9098
|
+
config: {
|
|
9099
|
+
layout: { xs: 1, sm: 5 }
|
|
9100
|
+
}
|
|
8506
9101
|
}
|
|
8507
9102
|
]
|
|
8508
9103
|
},
|
|
8509
|
-
{
|
|
8510
|
-
type: "Control",
|
|
8511
|
-
scope: "#/properties/EmptyBox",
|
|
8512
|
-
options: {
|
|
8513
|
-
widget: "EmptyBox"
|
|
8514
|
-
},
|
|
8515
|
-
config: {
|
|
8516
|
-
layout: { xs: 4, sm: 8 }
|
|
8517
|
-
}
|
|
8518
|
-
},
|
|
8519
9104
|
{
|
|
8520
9105
|
type: "Control",
|
|
8521
9106
|
scope: "#/properties/btn",
|
|
@@ -8568,26 +9153,18 @@ const EventUiSchema = (theme) => {
|
|
|
8568
9153
|
layout: {
|
|
8569
9154
|
xs: 12,
|
|
8570
9155
|
sm: 12,
|
|
8571
|
-
md:
|
|
8572
|
-
lg:
|
|
9156
|
+
md: 12,
|
|
9157
|
+
lg: 12
|
|
8573
9158
|
},
|
|
8574
|
-
main: {
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
},
|
|
8579
|
-
"& .MuiTypography-root": {
|
|
8580
|
-
padding: 0
|
|
8581
|
-
},
|
|
8582
|
-
wrapperStyle: {
|
|
8583
|
-
width: { xs: "100%", sm: "100%", md: "98%" }
|
|
8584
|
-
}
|
|
8585
|
-
}
|
|
9159
|
+
main: {
|
|
9160
|
+
title: "WARNING!"
|
|
9161
|
+
},
|
|
9162
|
+
style: {}
|
|
8586
9163
|
},
|
|
8587
9164
|
elements: [
|
|
8588
9165
|
{
|
|
8589
9166
|
type: "Control",
|
|
8590
|
-
scope: "#/properties/
|
|
9167
|
+
scope: "#/properties/popupText",
|
|
8591
9168
|
options: {
|
|
8592
9169
|
widget: "Box"
|
|
8593
9170
|
},
|
|
@@ -8597,58 +9174,95 @@ const EventUiSchema = (theme) => {
|
|
|
8597
9174
|
heading: "Are you sure you want to delete ?"
|
|
8598
9175
|
},
|
|
8599
9176
|
style: {
|
|
8600
|
-
marginTop: "-
|
|
9177
|
+
marginTop: "-20px",
|
|
9178
|
+
fontSize: "20px",
|
|
9179
|
+
"&.MuiTypography-root": {
|
|
9180
|
+
padding: "10px 30px 20px 30px",
|
|
9181
|
+
textAlign: "center",
|
|
9182
|
+
lineHeight: "1"
|
|
9183
|
+
}
|
|
8601
9184
|
}
|
|
8602
9185
|
}
|
|
8603
9186
|
},
|
|
8604
9187
|
{
|
|
8605
|
-
type: "
|
|
8606
|
-
scope: "#/properties/EmptyBox",
|
|
8607
|
-
options: {
|
|
8608
|
-
widget: "EmptyBox"
|
|
8609
|
-
},
|
|
8610
|
-
config: {
|
|
8611
|
-
main: {},
|
|
8612
|
-
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
8613
|
-
}
|
|
8614
|
-
},
|
|
8615
|
-
{
|
|
8616
|
-
type: "Control",
|
|
8617
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
8618
|
-
options: {
|
|
8619
|
-
widget: "Button"
|
|
8620
|
-
},
|
|
9188
|
+
type: "WrapperLayout",
|
|
8621
9189
|
config: {
|
|
8622
|
-
layout:
|
|
8623
|
-
main: {
|
|
8624
|
-
name: "Yes",
|
|
8625
|
-
startIcon: "ApproveIcon",
|
|
8626
|
-
variant: "contained",
|
|
8627
|
-
color: "error",
|
|
8628
|
-
type: "text",
|
|
8629
|
-
onClick: "deleteEvent",
|
|
8630
|
-
size: "small"
|
|
8631
|
-
}
|
|
8632
|
-
}
|
|
8633
|
-
},
|
|
8634
|
-
{
|
|
8635
|
-
type: "Control",
|
|
8636
|
-
scope: "#/properties/CancelDeleteEventButton",
|
|
8637
|
-
options: {
|
|
8638
|
-
widget: "Button"
|
|
9190
|
+
layout: 12,
|
|
9191
|
+
main: {}
|
|
8639
9192
|
},
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
9193
|
+
elements: [
|
|
9194
|
+
{
|
|
9195
|
+
type: "Control",
|
|
9196
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
9197
|
+
options: {
|
|
9198
|
+
widget: "Button"
|
|
9199
|
+
},
|
|
9200
|
+
config: {
|
|
9201
|
+
layout: 6,
|
|
9202
|
+
main: {
|
|
9203
|
+
name: "No",
|
|
9204
|
+
startIcon: "ApproveIcon",
|
|
9205
|
+
variant: "contained",
|
|
9206
|
+
color: "info",
|
|
9207
|
+
type: "text",
|
|
9208
|
+
onClick: "deletePopUpEvent",
|
|
9209
|
+
size: "large"
|
|
9210
|
+
},
|
|
9211
|
+
style: {
|
|
9212
|
+
position: "absolute",
|
|
9213
|
+
bottom: 0,
|
|
9214
|
+
left: 0,
|
|
9215
|
+
width: "50%",
|
|
9216
|
+
borderRadius: 0,
|
|
9217
|
+
boxShadow: 0,
|
|
9218
|
+
backgroundColor: "transparent",
|
|
9219
|
+
color: theme.palette.primary.main,
|
|
9220
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9221
|
+
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9222
|
+
"&:hover": {
|
|
9223
|
+
color: theme.palette.primary.contrastText,
|
|
9224
|
+
backgroundColor: theme.palette.primary.main,
|
|
9225
|
+
boxShadow: "none"
|
|
9226
|
+
}
|
|
9227
|
+
}
|
|
9228
|
+
}
|
|
9229
|
+
},
|
|
9230
|
+
{
|
|
9231
|
+
type: "Control",
|
|
9232
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
9233
|
+
options: {
|
|
9234
|
+
widget: "Button"
|
|
9235
|
+
},
|
|
9236
|
+
config: {
|
|
9237
|
+
layout: 6,
|
|
9238
|
+
main: {
|
|
9239
|
+
name: "Yes",
|
|
9240
|
+
startIcon: "ApproveIcon",
|
|
9241
|
+
variant: "contained",
|
|
9242
|
+
color: "error",
|
|
9243
|
+
type: "text",
|
|
9244
|
+
onClick: "deleteEvent",
|
|
9245
|
+
size: "large"
|
|
9246
|
+
},
|
|
9247
|
+
style: {
|
|
9248
|
+
position: "absolute",
|
|
9249
|
+
bottom: 0,
|
|
9250
|
+
right: 0,
|
|
9251
|
+
width: "50%",
|
|
9252
|
+
borderRadius: 0,
|
|
9253
|
+
boxShadow: 0,
|
|
9254
|
+
backgroundColor: "transparent",
|
|
9255
|
+
color: theme.palette.error.main,
|
|
9256
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9257
|
+
"&:hover": {
|
|
9258
|
+
color: theme.palette.error.contrastText,
|
|
9259
|
+
backgroundColor: theme.palette.error.main,
|
|
9260
|
+
boxShadow: "none"
|
|
9261
|
+
}
|
|
9262
|
+
}
|
|
9263
|
+
}
|
|
8650
9264
|
}
|
|
8651
|
-
|
|
9265
|
+
]
|
|
8652
9266
|
}
|
|
8653
9267
|
]
|
|
8654
9268
|
},
|
|
@@ -8692,13 +9306,14 @@ const EventUiSchema = (theme) => {
|
|
|
8692
9306
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
8693
9307
|
fontSize: "12px",
|
|
8694
9308
|
textAlign: "center",
|
|
8695
|
-
lineHeight:
|
|
9309
|
+
lineHeight: 2,
|
|
8696
9310
|
width: "fit-content",
|
|
8697
9311
|
left: "50%",
|
|
8698
9312
|
position: "relative",
|
|
8699
9313
|
margin: 0,
|
|
8700
9314
|
flexGrow: 1,
|
|
8701
|
-
height: 0
|
|
9315
|
+
height: 0,
|
|
9316
|
+
transform: "translate(-50%,0%)"
|
|
8702
9317
|
}
|
|
8703
9318
|
}
|
|
8704
9319
|
},
|
|
@@ -9048,6 +9663,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9048
9663
|
...functionsName
|
|
9049
9664
|
];
|
|
9050
9665
|
}
|
|
9666
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
9667
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
|
|
9668
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
9669
|
+
}
|
|
9051
9670
|
store22.setSchema(schema2);
|
|
9052
9671
|
store22.setUiSchema(uiSchema);
|
|
9053
9672
|
},
|
|
@@ -9056,10 +9675,14 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9056
9675
|
return EventUiSchema;
|
|
9057
9676
|
},
|
|
9058
9677
|
getSchema: () => {
|
|
9059
|
-
|
|
9678
|
+
const schema2 = _.cloneDeep(EventSchema);
|
|
9679
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
9680
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
9681
|
+
}
|
|
9682
|
+
return schema2;
|
|
9060
9683
|
},
|
|
9061
9684
|
okHandler: () => okHandler(store2),
|
|
9062
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
9685
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
9063
9686
|
onChange: function() {
|
|
9064
9687
|
var _a, _b, _c;
|
|
9065
9688
|
if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.Handler) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.Handler) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.Handler) !== void 0) {
|
|
@@ -9099,6 +9722,12 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9099
9722
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9100
9723
|
sessionStorage.setItem("rowId", rowId);
|
|
9101
9724
|
store2.updateDialog("popUpEvent");
|
|
9725
|
+
},
|
|
9726
|
+
copyPasteElement: function() {
|
|
9727
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
|
|
9728
|
+
},
|
|
9729
|
+
RemoveItemButton: function() {
|
|
9730
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
|
|
9102
9731
|
}
|
|
9103
9732
|
};
|
|
9104
9733
|
};
|
|
@@ -9270,36 +9899,40 @@ function executeCustomHandler(params) {
|
|
|
9270
9899
|
}
|
|
9271
9900
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9272
9901
|
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9902
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9903
|
+
store2.setSchema((pre) => {
|
|
9904
|
+
var _a;
|
|
9905
|
+
return {
|
|
9906
|
+
...pre,
|
|
9907
|
+
properties: {
|
|
9908
|
+
...pre.properties,
|
|
9909
|
+
[componentName]: {
|
|
9910
|
+
...(_a = pre.properties) == null ? void 0 : _a[componentName],
|
|
9911
|
+
oneOf: handlerResponse.data
|
|
9912
|
+
}
|
|
9282
9913
|
}
|
|
9283
|
-
}
|
|
9284
|
-
};
|
|
9285
|
-
}
|
|
9914
|
+
};
|
|
9915
|
+
});
|
|
9916
|
+
}
|
|
9286
9917
|
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9918
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9919
|
+
store2.setSchema((pre) => {
|
|
9920
|
+
var _a;
|
|
9921
|
+
return {
|
|
9922
|
+
...pre,
|
|
9923
|
+
properties: {
|
|
9924
|
+
...pre.properties,
|
|
9925
|
+
[componentName]: {
|
|
9926
|
+
...(_a = pre.properties) == null ? void 0 : _a[componentName],
|
|
9927
|
+
type: "array",
|
|
9928
|
+
items: {
|
|
9929
|
+
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
9930
|
+
}
|
|
9298
9931
|
}
|
|
9299
9932
|
}
|
|
9300
|
-
}
|
|
9301
|
-
};
|
|
9302
|
-
}
|
|
9933
|
+
};
|
|
9934
|
+
});
|
|
9935
|
+
}
|
|
9303
9936
|
} else if (eventConfig.type === "page") {
|
|
9304
9937
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9305
9938
|
store2.newData = {
|
|
@@ -9480,10 +10113,10 @@ var service = (funcParams) => {
|
|
|
9480
10113
|
config: pageData == null ? void 0 : pageData.config
|
|
9481
10114
|
}));
|
|
9482
10115
|
}
|
|
9483
|
-
const
|
|
10116
|
+
const config2 = pageData == null ? void 0 : pageData.config;
|
|
9484
10117
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
9485
10118
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
9486
|
-
detail: { pageName:
|
|
10119
|
+
detail: { pageName: config2.label }
|
|
9487
10120
|
});
|
|
9488
10121
|
window.dispatchEvent(event2);
|
|
9489
10122
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -9593,7 +10226,7 @@ var service = (funcParams) => {
|
|
|
9593
10226
|
}
|
|
9594
10227
|
);
|
|
9595
10228
|
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
9596
|
-
eventGroups = extractEvents(
|
|
10229
|
+
eventGroups = extractEvents(config2);
|
|
9597
10230
|
executeEventsParameters = {
|
|
9598
10231
|
config: {},
|
|
9599
10232
|
componentName: "",
|
|
@@ -9732,427 +10365,101 @@ var service = (funcParams) => {
|
|
|
9732
10365
|
componentName: paramValue.path
|
|
9733
10366
|
});
|
|
9734
10367
|
}
|
|
9735
|
-
return LastCallResponse;
|
|
9736
|
-
},
|
|
9737
|
-
onBack: async function(functionParameters) {
|
|
9738
|
-
var _a, _b;
|
|
9739
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9740
|
-
await this.callHandler("onBack", functionParameters);
|
|
9741
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
9742
|
-
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
9743
|
-
}
|
|
9744
|
-
},
|
|
9745
|
-
onNext: async function(functionParameters) {
|
|
9746
|
-
var _a, _b;
|
|
9747
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9748
|
-
await this.callHandler("onNext", functionParameters);
|
|
9749
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
9750
|
-
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
9751
|
-
}
|
|
9752
|
-
},
|
|
9753
|
-
onReset: async function(functionParameters) {
|
|
9754
|
-
var _a, _b;
|
|
9755
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9756
|
-
await this.callHandler("onReset", functionParameters);
|
|
9757
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
9758
|
-
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
9759
|
-
}
|
|
9760
|
-
},
|
|
9761
|
-
callHandler: async function(eventType, functionParameters) {
|
|
9762
|
-
var _a, _b, _c;
|
|
9763
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9764
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
9765
|
-
Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
9766
|
-
executeEventsParameters.store.functionParameters = functionParameters;
|
|
9767
|
-
executeEvents({
|
|
9768
|
-
...executeEventsParameters,
|
|
9769
|
-
config: eventConfig,
|
|
9770
|
-
componentName: path
|
|
9771
|
-
});
|
|
9772
|
-
}));
|
|
9773
|
-
}
|
|
9774
|
-
},
|
|
9775
|
-
downloadFile: downloadFile$1,
|
|
9776
|
-
download: doDownload,
|
|
9777
|
-
...funcParams.functionsProvider
|
|
9778
|
-
};
|
|
9779
|
-
};
|
|
9780
|
-
var leaderBoard = {
|
|
9781
|
-
type: "WrapperLayout",
|
|
9782
|
-
config: {
|
|
9783
|
-
main: {
|
|
9784
|
-
rowSpacing: 3,
|
|
9785
|
-
header: true,
|
|
9786
|
-
label: "LeaderBoard",
|
|
9787
|
-
divider: true
|
|
9788
|
-
},
|
|
9789
|
-
style: {},
|
|
9790
|
-
wrapperStyle: {
|
|
9791
|
-
position: "relative",
|
|
9792
|
-
width: "100%"
|
|
9793
|
-
},
|
|
9794
|
-
componentsBoxStyle: {
|
|
9795
|
-
display: "flex",
|
|
9796
|
-
flexDirection: "column",
|
|
9797
|
-
gap: "20px"
|
|
9798
|
-
}
|
|
9799
|
-
},
|
|
9800
|
-
elements: [
|
|
9801
|
-
{
|
|
9802
|
-
type: "Control",
|
|
9803
|
-
scope: "#/properties/leaderBoard/properties/firstImage",
|
|
9804
|
-
config: {
|
|
9805
|
-
main: {
|
|
9806
|
-
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
|
|
9807
|
-
},
|
|
9808
|
-
style: {
|
|
9809
|
-
imageStyle: {
|
|
9810
|
-
objectFit: "cover",
|
|
9811
|
-
width: "100%",
|
|
9812
|
-
height: "100%",
|
|
9813
|
-
borderRadius: "50%"
|
|
9814
|
-
},
|
|
9815
|
-
containerStyle: {
|
|
9816
|
-
objectFit: "cover",
|
|
9817
|
-
position: "absolute",
|
|
9818
|
-
top: { xs: "90px", "md": "60px" },
|
|
9819
|
-
left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
|
|
9820
|
-
width: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
9821
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
9822
|
-
height: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
9823
|
-
borderRadius: "50%"
|
|
9824
|
-
}
|
|
9825
|
-
},
|
|
9826
|
-
layout: 6
|
|
9827
|
-
},
|
|
9828
|
-
options: {
|
|
9829
|
-
widget: "Image"
|
|
9830
|
-
}
|
|
9831
|
-
},
|
|
9832
|
-
{
|
|
9833
|
-
type: "Control",
|
|
9834
|
-
scope: "#/properties/leaderBoard/properties/secondImage",
|
|
9835
|
-
config: {
|
|
9836
|
-
main: {
|
|
9837
|
-
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
|
|
9838
|
-
},
|
|
9839
|
-
style: {
|
|
9840
|
-
imageStyle: {
|
|
9841
|
-
objectFit: "cover",
|
|
9842
|
-
width: "100%",
|
|
9843
|
-
height: "100%",
|
|
9844
|
-
borderRadius: "50%"
|
|
9845
|
-
},
|
|
9846
|
-
containerStyle: {
|
|
9847
|
-
objectFit: "cover",
|
|
9848
|
-
position: "absolute",
|
|
9849
|
-
top: { xs: "160px", "md": "130px" },
|
|
9850
|
-
left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
|
|
9851
|
-
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9852
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
9853
|
-
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9854
|
-
borderRadius: "50%"
|
|
9855
|
-
}
|
|
9856
|
-
},
|
|
9857
|
-
layout: 6
|
|
9858
|
-
},
|
|
9859
|
-
options: {
|
|
9860
|
-
widget: "Image"
|
|
9861
|
-
}
|
|
9862
|
-
},
|
|
9863
|
-
{
|
|
9864
|
-
type: "Control",
|
|
9865
|
-
scope: "#/properties/leaderBoard/properties/thirdImage",
|
|
9866
|
-
config: {
|
|
9867
|
-
main: {
|
|
9868
|
-
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
|
|
9869
|
-
},
|
|
9870
|
-
style: {
|
|
9871
|
-
imageStyle: {
|
|
9872
|
-
objectFit: "cover",
|
|
9873
|
-
width: "100%",
|
|
9874
|
-
height: "100%",
|
|
9875
|
-
borderRadius: "50%"
|
|
9876
|
-
},
|
|
9877
|
-
containerStyle: {
|
|
9878
|
-
objectFit: "cover",
|
|
9879
|
-
position: "absolute",
|
|
9880
|
-
top: { xs: "160px", "md": "130px" },
|
|
9881
|
-
left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
|
|
9882
|
-
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9883
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
9884
|
-
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9885
|
-
borderRadius: "50%"
|
|
9886
|
-
}
|
|
9887
|
-
},
|
|
9888
|
-
layout: 6
|
|
9889
|
-
},
|
|
9890
|
-
options: {
|
|
9891
|
-
widget: "Image"
|
|
9892
|
-
}
|
|
9893
|
-
},
|
|
9894
|
-
{
|
|
9895
|
-
type: "Control",
|
|
9896
|
-
scope: "#/properties/leaderBoard/properties/firstName",
|
|
9897
|
-
config: {
|
|
9898
|
-
main: {
|
|
9899
|
-
heading: "Satendra Raghav"
|
|
9900
|
-
},
|
|
9901
|
-
style: {
|
|
9902
|
-
objectFit: "cover",
|
|
9903
|
-
position: "absolute",
|
|
9904
|
-
display: "flex",
|
|
9905
|
-
justifyContent: "center",
|
|
9906
|
-
alignItems: "center",
|
|
9907
|
-
color: "black",
|
|
9908
|
-
top: { xs: "190px", md: "270px" },
|
|
9909
|
-
fontSize: { xs: "12px", md: "20px" },
|
|
9910
|
-
left: "calc(50% - 90px)",
|
|
9911
|
-
width: "180px",
|
|
9912
|
-
fontWeight: "bold",
|
|
9913
|
-
borderRadius: "50%",
|
|
9914
|
-
zIndex: 7
|
|
9915
|
-
},
|
|
9916
|
-
layout: 6
|
|
9917
|
-
},
|
|
9918
|
-
options: {
|
|
9919
|
-
widget: "Box"
|
|
9920
|
-
}
|
|
9921
|
-
},
|
|
9922
|
-
{
|
|
9923
|
-
type: "Control",
|
|
9924
|
-
scope: "#/properties/leaderBoard/properties/secondName",
|
|
9925
|
-
config: {
|
|
9926
|
-
main: {
|
|
9927
|
-
heading: "Satendra Raghav"
|
|
9928
|
-
},
|
|
9929
|
-
style: {
|
|
9930
|
-
objectFit: "cover",
|
|
9931
|
-
position: "absolute",
|
|
9932
|
-
display: "flex",
|
|
9933
|
-
justifyContent: "center",
|
|
9934
|
-
alignItems: "center",
|
|
9935
|
-
color: "black",
|
|
9936
|
-
top: { xs: "240px", md: "320px" },
|
|
9937
|
-
fontSize: { xs: "12px", md: "20px" },
|
|
9938
|
-
left: "calc(25% - 90px)",
|
|
9939
|
-
width: "180px",
|
|
9940
|
-
fontWeight: "bold",
|
|
9941
|
-
borderRadius: "50%"
|
|
9942
|
-
},
|
|
9943
|
-
layout: 6
|
|
9944
|
-
},
|
|
9945
|
-
options: {
|
|
9946
|
-
widget: "Box"
|
|
9947
|
-
}
|
|
9948
|
-
},
|
|
9949
|
-
{
|
|
9950
|
-
type: "Control",
|
|
9951
|
-
scope: "#/properties/leaderBoard/properties/thirdName",
|
|
9952
|
-
config: {
|
|
9953
|
-
main: {
|
|
9954
|
-
heading: "Satendra Raghav"
|
|
9955
|
-
},
|
|
9956
|
-
style: {
|
|
9957
|
-
objectFit: "cover",
|
|
9958
|
-
position: "absolute",
|
|
9959
|
-
display: "flex",
|
|
9960
|
-
justifyContent: "center",
|
|
9961
|
-
alignItems: "center",
|
|
9962
|
-
color: "black",
|
|
9963
|
-
top: { xs: "240px", md: "320px" },
|
|
9964
|
-
fontSize: { xs: "12px", md: "20px" },
|
|
9965
|
-
left: "calc(75% - 90px)",
|
|
9966
|
-
width: "180px",
|
|
9967
|
-
fontWeight: "bold",
|
|
9968
|
-
borderRadius: "50%"
|
|
9969
|
-
},
|
|
9970
|
-
layout: 6
|
|
9971
|
-
},
|
|
9972
|
-
options: {
|
|
9973
|
-
widget: "Box"
|
|
9974
|
-
}
|
|
10368
|
+
return LastCallResponse;
|
|
9975
10369
|
},
|
|
9976
|
-
{
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
},
|
|
9983
|
-
style: {
|
|
9984
|
-
objectFit: "cover",
|
|
9985
|
-
position: "absolute",
|
|
9986
|
-
display: "flex",
|
|
9987
|
-
justifyContent: "center",
|
|
9988
|
-
alignItems: "center",
|
|
9989
|
-
textShadow: "2px 2px 5px #5065C7",
|
|
9990
|
-
background: "green",
|
|
9991
|
-
color: "white",
|
|
9992
|
-
top: { xs: "225px", md: "280px" },
|
|
9993
|
-
fontSize: { xs: "12px", md: "16px" },
|
|
9994
|
-
left: { xs: "calc(25% - 12px)", md: "calc(25% - 16px)" },
|
|
9995
|
-
width: { xs: "20px", md: "40px" },
|
|
9996
|
-
border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
|
|
9997
|
-
height: { xs: "20px", md: "40px" },
|
|
9998
|
-
"@keyframes rotateAnimation": {
|
|
9999
|
-
from: {
|
|
10000
|
-
transform: "rotate(0deg)"
|
|
10001
|
-
},
|
|
10002
|
-
to: {
|
|
10003
|
-
transform: "rotate(360deg)"
|
|
10004
|
-
}
|
|
10005
|
-
},
|
|
10006
|
-
animation: "rotateAnimation 4s infinite",
|
|
10007
|
-
borderRadius: "50%",
|
|
10008
|
-
zIndex: 5
|
|
10009
|
-
},
|
|
10010
|
-
layout: 6
|
|
10011
|
-
},
|
|
10012
|
-
options: {
|
|
10013
|
-
widget: "Box"
|
|
10370
|
+
onBack: async function(functionParameters) {
|
|
10371
|
+
var _a, _b;
|
|
10372
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10373
|
+
await this.callHandler("onBack", functionParameters);
|
|
10374
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10375
|
+
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
10014
10376
|
}
|
|
10015
10377
|
},
|
|
10016
|
-
{
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
},
|
|
10023
|
-
style: {
|
|
10024
|
-
objectFit: "cover",
|
|
10025
|
-
position: "absolute",
|
|
10026
|
-
display: "flex",
|
|
10027
|
-
justifyContent: "center",
|
|
10028
|
-
alignItems: "center",
|
|
10029
|
-
textShadow: "2px 2px 5px #5065C7",
|
|
10030
|
-
background: "green",
|
|
10031
|
-
color: "white",
|
|
10032
|
-
top: { xs: "175px", md: "230px" },
|
|
10033
|
-
fontSize: { xs: "12px", md: "16px" },
|
|
10034
|
-
left: { xs: "calc(50% - 12px)", md: "calc(50% - 16px)" },
|
|
10035
|
-
"@keyframes rotateAnimation": {
|
|
10036
|
-
from: {
|
|
10037
|
-
transform: "rotate(0deg)"
|
|
10038
|
-
},
|
|
10039
|
-
to: {
|
|
10040
|
-
transform: "rotate(360deg)"
|
|
10041
|
-
}
|
|
10042
|
-
},
|
|
10043
|
-
animation: "rotateAnimation 4s infinite",
|
|
10044
|
-
width: { xs: "20px", md: "40px" },
|
|
10045
|
-
border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
|
|
10046
|
-
height: { xs: "20px", md: "40px" },
|
|
10047
|
-
borderRadius: "50%",
|
|
10048
|
-
zIndex: 5
|
|
10049
|
-
},
|
|
10050
|
-
layout: 6
|
|
10051
|
-
},
|
|
10052
|
-
options: {
|
|
10053
|
-
widget: "Box"
|
|
10378
|
+
onNext: async function(functionParameters) {
|
|
10379
|
+
var _a, _b;
|
|
10380
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10381
|
+
await this.callHandler("onNext", functionParameters);
|
|
10382
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10383
|
+
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
10054
10384
|
}
|
|
10055
10385
|
},
|
|
10056
|
-
{
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
},
|
|
10063
|
-
style: {
|
|
10064
|
-
objectFit: "cover",
|
|
10065
|
-
position: "absolute",
|
|
10066
|
-
display: "flex",
|
|
10067
|
-
justifyContent: "center",
|
|
10068
|
-
alignItems: "center",
|
|
10069
|
-
textShadow: "2px 2px 5px #5065C7",
|
|
10070
|
-
background: "green",
|
|
10071
|
-
color: "white",
|
|
10072
|
-
top: { xs: "225px", md: "280px" },
|
|
10073
|
-
fontSize: { xs: "12px", md: "16px" },
|
|
10074
|
-
left: { xs: "calc(75% - 12px)", md: "calc(75% - 16px)" },
|
|
10075
|
-
width: { xs: "20px", md: "40px" },
|
|
10076
|
-
border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
|
|
10077
|
-
height: { xs: "20px", md: "40px" },
|
|
10078
|
-
"@keyframes rotateAnimation": {
|
|
10079
|
-
from: {
|
|
10080
|
-
transform: "rotate(0deg)"
|
|
10081
|
-
},
|
|
10082
|
-
to: {
|
|
10083
|
-
transform: "rotate(360deg)"
|
|
10084
|
-
}
|
|
10085
|
-
},
|
|
10086
|
-
animation: "rotateAnimation 4s infinite",
|
|
10087
|
-
borderRadius: "50%",
|
|
10088
|
-
zIndex: 5
|
|
10089
|
-
},
|
|
10090
|
-
layout: 6
|
|
10091
|
-
},
|
|
10092
|
-
options: {
|
|
10093
|
-
widget: "Box"
|
|
10386
|
+
onReset: async function(functionParameters) {
|
|
10387
|
+
var _a, _b;
|
|
10388
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10389
|
+
await this.callHandler("onReset", functionParameters);
|
|
10390
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10391
|
+
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
10094
10392
|
}
|
|
10095
10393
|
},
|
|
10096
|
-
{
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
},
|
|
10109
|
-
top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
|
|
10110
|
-
border: "2px solid rgb(179, 198, 255)",
|
|
10111
|
-
width: "95%",
|
|
10112
|
-
left: "2.5%",
|
|
10113
|
-
margin: "auto"
|
|
10114
|
-
},
|
|
10115
|
-
main: {
|
|
10116
|
-
disableAction: true,
|
|
10117
|
-
disableSelection: true
|
|
10118
|
-
}
|
|
10394
|
+
callHandler: async function(eventType, functionParameters) {
|
|
10395
|
+
var _a, _b, _c;
|
|
10396
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10397
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
10398
|
+
Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
10399
|
+
executeEventsParameters.store.functionParameters = functionParameters;
|
|
10400
|
+
executeEvents({
|
|
10401
|
+
...executeEventsParameters,
|
|
10402
|
+
config: eventConfig,
|
|
10403
|
+
componentName: path
|
|
10404
|
+
});
|
|
10405
|
+
}));
|
|
10119
10406
|
}
|
|
10120
|
-
}
|
|
10121
|
-
|
|
10407
|
+
},
|
|
10408
|
+
downloadFile: downloadFile$1,
|
|
10409
|
+
download: doDownload,
|
|
10410
|
+
...funcParams.functionsProvider
|
|
10411
|
+
};
|
|
10412
|
+
};
|
|
10413
|
+
var leaderBoard = {
|
|
10414
|
+
type: "Control",
|
|
10415
|
+
scope: "#/properties/path",
|
|
10416
|
+
options: {
|
|
10417
|
+
widget: "LeaderBoard"
|
|
10418
|
+
},
|
|
10419
|
+
config: {
|
|
10420
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
10421
|
+
main: {}
|
|
10422
|
+
}
|
|
10122
10423
|
};
|
|
10123
|
-
const buildLeaderBoard = (
|
|
10424
|
+
const buildLeaderBoard = (config2) => {
|
|
10124
10425
|
const LeaderBoard = _.cloneDeep(leaderBoard);
|
|
10125
|
-
if (
|
|
10126
|
-
const modifyColumns =
|
|
10426
|
+
if (config2.elements) {
|
|
10427
|
+
const modifyColumns = config2.elements.map((e, i) => {
|
|
10127
10428
|
if (!e.type) {
|
|
10128
10429
|
return { accessorKey: e.name, header: e.label || e.name };
|
|
10129
10430
|
}
|
|
10130
10431
|
const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name };
|
|
10131
10432
|
return { ...widgetSchema };
|
|
10132
10433
|
});
|
|
10133
|
-
LeaderBoard.elements
|
|
10434
|
+
LeaderBoard.elements = modifyColumns;
|
|
10134
10435
|
}
|
|
10135
|
-
LeaderBoard.config.main.label =
|
|
10136
|
-
if (
|
|
10137
|
-
LeaderBoard.
|
|
10138
|
-
LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
|
|
10139
|
-
LeaderBoard.elements[1].scope = `#/properties/${config.name}/properties/secondImage`;
|
|
10140
|
-
LeaderBoard.elements[4].scope = `#/properties/${config.name}/properties/secondName`;
|
|
10141
|
-
LeaderBoard.elements[2].scope = `#/properties/${config.name}/properties/thirdImage`;
|
|
10142
|
-
LeaderBoard.elements[5].scope = `#/properties/${config.name}/properties/thirdName`;
|
|
10143
|
-
LeaderBoard.elements[9].scope = `#/properties/${config.name}/properties/table`;
|
|
10436
|
+
LeaderBoard.config.main.label = config2.label;
|
|
10437
|
+
if (config2.name) {
|
|
10438
|
+
LeaderBoard.scope = `#/properties/${config2.name}`;
|
|
10144
10439
|
}
|
|
10145
|
-
if (
|
|
10146
|
-
LeaderBoard.
|
|
10440
|
+
if (config2.firstImage) {
|
|
10441
|
+
LeaderBoard.config.main.firstImage = config2.firstImage;
|
|
10147
10442
|
}
|
|
10148
|
-
if (
|
|
10149
|
-
LeaderBoard.
|
|
10443
|
+
if (config2.secondImage) {
|
|
10444
|
+
LeaderBoard.config.main.secondImage = config2.secondImage;
|
|
10150
10445
|
}
|
|
10151
|
-
if (
|
|
10152
|
-
LeaderBoard.
|
|
10446
|
+
if (config2.thirdImage) {
|
|
10447
|
+
LeaderBoard.config.main.thirdImage = config2.thirdImage;
|
|
10153
10448
|
}
|
|
10154
|
-
if (
|
|
10155
|
-
LeaderBoard.config.
|
|
10449
|
+
if (config2.nameKey) {
|
|
10450
|
+
LeaderBoard.config.main.nameKey = config2.nameKey;
|
|
10451
|
+
}
|
|
10452
|
+
if (config2.imageKey) {
|
|
10453
|
+
LeaderBoard.config.main.imageKey = config2.imageKey;
|
|
10454
|
+
}
|
|
10455
|
+
if (config2.scoreKey) {
|
|
10456
|
+
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10457
|
+
}
|
|
10458
|
+
if (config2.layout) {
|
|
10459
|
+
LeaderBoard.config.layout = createLayoutFormat(config2.layout);
|
|
10460
|
+
}
|
|
10461
|
+
if (config2.style) {
|
|
10462
|
+
LeaderBoard.config.style = JSON.parse(config2.style);
|
|
10156
10463
|
}
|
|
10157
10464
|
return LeaderBoard;
|
|
10158
10465
|
};
|
|
@@ -10163,7 +10470,7 @@ var progressBar = {
|
|
|
10163
10470
|
widget: "ProgressBar"
|
|
10164
10471
|
},
|
|
10165
10472
|
config: {
|
|
10166
|
-
layout: 6,
|
|
10473
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
10167
10474
|
main: {
|
|
10168
10475
|
developOnlyProgresBar: false,
|
|
10169
10476
|
bottomLabel_3: "Remaining",
|
|
@@ -10171,44 +10478,44 @@ var progressBar = {
|
|
|
10171
10478
|
}
|
|
10172
10479
|
}
|
|
10173
10480
|
};
|
|
10174
|
-
const buildProgressBarCard = (
|
|
10481
|
+
const buildProgressBarCard = (config2, myScope) => {
|
|
10175
10482
|
const progressBarCard = _.cloneDeep(progressBar);
|
|
10176
10483
|
progressBarCard.scope = myScope;
|
|
10177
|
-
if (
|
|
10178
|
-
progressBarCard.config.main.heading =
|
|
10484
|
+
if (config2.heading) {
|
|
10485
|
+
progressBarCard.config.main.heading = config2.heading;
|
|
10179
10486
|
}
|
|
10180
|
-
if (
|
|
10181
|
-
progressBarCard.config.main.bottomLabel_3 =
|
|
10487
|
+
if (config2.bottomLabel_3) {
|
|
10488
|
+
progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10182
10489
|
}
|
|
10183
|
-
if (
|
|
10184
|
-
progressBarCard.config.main.bottomLabel_2 =
|
|
10490
|
+
if (config2.bottomLabel_2) {
|
|
10491
|
+
progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10185
10492
|
}
|
|
10186
|
-
if (
|
|
10187
|
-
progressBarCard.elements[0].config.main.bottomLabel_1 =
|
|
10493
|
+
if (config2.bottomLabel_1) {
|
|
10494
|
+
progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
|
|
10188
10495
|
}
|
|
10189
|
-
if (
|
|
10190
|
-
progressBarCard.config.layout = createLayoutFormat(
|
|
10496
|
+
if (config2.layout) {
|
|
10497
|
+
progressBarCard.config.layout = createLayoutFormat(config2.layout);
|
|
10191
10498
|
}
|
|
10192
10499
|
return progressBarCard;
|
|
10193
10500
|
};
|
|
10194
|
-
const buildProgressBar = (
|
|
10501
|
+
const buildProgressBar = (config2, componentScope2) => {
|
|
10195
10502
|
const ProgressBar = _.cloneDeep(progressBar);
|
|
10196
|
-
ProgressBar.scope =
|
|
10197
|
-
if (
|
|
10198
|
-
ProgressBar.config.layout =
|
|
10503
|
+
ProgressBar.scope = componentScope2;
|
|
10504
|
+
if (config2.layout) {
|
|
10505
|
+
ProgressBar.config.layout = config2.layout;
|
|
10199
10506
|
}
|
|
10200
|
-
ProgressBar.config.main.heading =
|
|
10201
|
-
if (
|
|
10202
|
-
ProgressBar.config.main.bottomLabel_3 =
|
|
10507
|
+
ProgressBar.config.main.heading = config2.label;
|
|
10508
|
+
if (config2.bottomLabel_3) {
|
|
10509
|
+
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10203
10510
|
}
|
|
10204
|
-
if (
|
|
10205
|
-
ProgressBar.config.layout = createLayoutFormat(
|
|
10511
|
+
if (config2.layout) {
|
|
10512
|
+
ProgressBar.config.layout = createLayoutFormat(config2.layout);
|
|
10206
10513
|
}
|
|
10207
|
-
if (
|
|
10208
|
-
ProgressBar.config.main.bottomLabel_2 =
|
|
10514
|
+
if (config2.bottomLabel_2) {
|
|
10515
|
+
ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10209
10516
|
}
|
|
10210
|
-
if (
|
|
10211
|
-
ProgressBar.config.main.bottomLabel_1 =
|
|
10517
|
+
if (config2.bottomLabel_1) {
|
|
10518
|
+
ProgressBar.config.main.bottomLabel_1 = config2.bottomLabel_1;
|
|
10212
10519
|
}
|
|
10213
10520
|
return ProgressBar;
|
|
10214
10521
|
};
|
|
@@ -10219,8 +10526,12 @@ const BarGraph = {
|
|
|
10219
10526
|
widget: "Graph"
|
|
10220
10527
|
},
|
|
10221
10528
|
config: {
|
|
10222
|
-
|
|
10223
|
-
|
|
10529
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10530
|
+
main: {
|
|
10531
|
+
type: "BarGraph",
|
|
10532
|
+
legendLabels: null
|
|
10533
|
+
},
|
|
10534
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10224
10535
|
}
|
|
10225
10536
|
};
|
|
10226
10537
|
const PieGraph = {
|
|
@@ -10230,10 +10541,12 @@ const PieGraph = {
|
|
|
10230
10541
|
widget: "Graph"
|
|
10231
10542
|
},
|
|
10232
10543
|
config: {
|
|
10544
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10233
10545
|
main: {
|
|
10234
|
-
type: "PieGraph"
|
|
10546
|
+
type: "PieGraph",
|
|
10547
|
+
legendLabels: null
|
|
10235
10548
|
},
|
|
10236
|
-
style: {}
|
|
10549
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
|
|
10237
10550
|
}
|
|
10238
10551
|
};
|
|
10239
10552
|
const LineGraph = {
|
|
@@ -10243,32 +10556,12 @@ const LineGraph = {
|
|
|
10243
10556
|
widget: "Graph"
|
|
10244
10557
|
},
|
|
10245
10558
|
config: {
|
|
10246
|
-
layout: 12,
|
|
10559
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10247
10560
|
main: {
|
|
10248
10561
|
type: "LineGraph",
|
|
10249
|
-
|
|
10250
|
-
bottomLabel: "Years",
|
|
10251
|
-
leftLabel: "Incentive",
|
|
10252
|
-
gridHidden: true,
|
|
10253
|
-
numHidden: false,
|
|
10254
|
-
tooltipDataKey: ["MAMA New Project", "Second", "Third"],
|
|
10255
|
-
axisLeft: true,
|
|
10256
|
-
axisBottom: true,
|
|
10257
|
-
hideLeftAxisLine: false,
|
|
10258
|
-
hideBottomAxisLine: false,
|
|
10259
|
-
legend: {
|
|
10260
|
-
labelColor: "green",
|
|
10261
|
-
direction: "row",
|
|
10262
|
-
align: "right",
|
|
10263
|
-
colorRectWidth: 20
|
|
10264
|
-
}
|
|
10562
|
+
legendLabels: null
|
|
10265
10563
|
},
|
|
10266
|
-
style: {
|
|
10267
|
-
containerStyle: {},
|
|
10268
|
-
headerStyle: {},
|
|
10269
|
-
labelStyle: {},
|
|
10270
|
-
lineStyle: {}
|
|
10271
|
-
}
|
|
10564
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
|
|
10272
10565
|
}
|
|
10273
10566
|
};
|
|
10274
10567
|
const HorizontalBarGraph = {
|
|
@@ -10278,42 +10571,51 @@ const HorizontalBarGraph = {
|
|
|
10278
10571
|
widget: "Graph"
|
|
10279
10572
|
},
|
|
10280
10573
|
config: {
|
|
10574
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10281
10575
|
main: {
|
|
10282
|
-
type: "HorizontalBarGraph"
|
|
10576
|
+
type: "HorizontalBarGraph",
|
|
10577
|
+
legendLabels: null
|
|
10283
10578
|
},
|
|
10284
|
-
style: {}
|
|
10579
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10285
10580
|
}
|
|
10286
10581
|
};
|
|
10287
|
-
const buildHorizontalBarGraph = (
|
|
10582
|
+
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
10288
10583
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10289
|
-
horizontalBarGraph.scope =
|
|
10290
|
-
if (
|
|
10291
|
-
horizontalBarGraph.config.layout = createLayoutFormat(
|
|
10584
|
+
horizontalBarGraph.scope = componentScope2;
|
|
10585
|
+
if (config2.layout) {
|
|
10586
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10292
10587
|
}
|
|
10293
|
-
horizontalBarGraph.config.main.type =
|
|
10294
|
-
horizontalBarGraph.scope =
|
|
10295
|
-
horizontalBarGraph.config.main.header =
|
|
10296
|
-
if (
|
|
10297
|
-
horizontalBarGraph.config.
|
|
10588
|
+
horizontalBarGraph.config.main.type = config2.graphType;
|
|
10589
|
+
horizontalBarGraph.scope = componentScope2;
|
|
10590
|
+
horizontalBarGraph.config.main.header = config2.heading;
|
|
10591
|
+
if (config2.legendHide) {
|
|
10592
|
+
horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10298
10593
|
}
|
|
10299
|
-
if (
|
|
10300
|
-
horizontalBarGraph.config.main.
|
|
10594
|
+
if (config2.bottomAxisAngle) {
|
|
10595
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10301
10596
|
}
|
|
10302
|
-
if (
|
|
10303
|
-
horizontalBarGraph.config.
|
|
10597
|
+
if (config2.legendLabels) {
|
|
10598
|
+
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10304
10599
|
}
|
|
10305
|
-
if (
|
|
10306
|
-
horizontalBarGraph.config.style =
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10600
|
+
if (config2.pieArcColors) {
|
|
10601
|
+
horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10602
|
+
}
|
|
10603
|
+
if (config2.xAxisValue) {
|
|
10604
|
+
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10605
|
+
}
|
|
10606
|
+
if (config2.height) {
|
|
10607
|
+
horizontalBarGraph.config.style.containerStyle.height = config2.height;
|
|
10608
|
+
}
|
|
10609
|
+
if (config2.leftMargin) {
|
|
10610
|
+
horizontalBarGraph.config.style.labelStyle.margin = {
|
|
10611
|
+
left: config2.leftMargin
|
|
10310
10612
|
};
|
|
10311
10613
|
}
|
|
10312
|
-
if (
|
|
10313
|
-
horizontalBarGraph.config.main.bottomLabel =
|
|
10614
|
+
if (config2.bottomLabel) {
|
|
10615
|
+
horizontalBarGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
10314
10616
|
}
|
|
10315
|
-
if (
|
|
10316
|
-
horizontalBarGraph.config.main.leftLabel =
|
|
10617
|
+
if (config2.leftLabel) {
|
|
10618
|
+
horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
|
|
10317
10619
|
}
|
|
10318
10620
|
return horizontalBarGraph;
|
|
10319
10621
|
};
|
|
@@ -10363,20 +10665,20 @@ var SpeedoMeter = {
|
|
|
10363
10665
|
}
|
|
10364
10666
|
}
|
|
10365
10667
|
};
|
|
10366
|
-
const buildSpeedoMeter = (
|
|
10668
|
+
const buildSpeedoMeter = (config2, componentScope2) => {
|
|
10367
10669
|
const speedoMeter = _.cloneDeep(SpeedoMeter);
|
|
10368
|
-
speedoMeter.scope =
|
|
10369
|
-
if (
|
|
10370
|
-
speedoMeter.config.layout = createLayoutFormat(
|
|
10670
|
+
speedoMeter.scope = componentScope2;
|
|
10671
|
+
if (config2.layout) {
|
|
10672
|
+
speedoMeter.config.layout = createLayoutFormat(config2.layout);
|
|
10371
10673
|
}
|
|
10372
|
-
if (
|
|
10373
|
-
speedoMeter.config.main.header =
|
|
10674
|
+
if (config2.heading) {
|
|
10675
|
+
speedoMeter.config.main.header = config2.heading;
|
|
10374
10676
|
}
|
|
10375
|
-
if (
|
|
10376
|
-
speedoMeter.config.main.segments =
|
|
10677
|
+
if (config2.segments) {
|
|
10678
|
+
speedoMeter.config.main.segments = config2.segments;
|
|
10377
10679
|
}
|
|
10378
|
-
if (
|
|
10379
|
-
const styleObj = JSON.parse(
|
|
10680
|
+
if (config2.style) {
|
|
10681
|
+
const styleObj = JSON.parse(config2.style);
|
|
10380
10682
|
if (styleObj == null ? void 0 : styleObj.style) {
|
|
10381
10683
|
speedoMeter.config.style = { ...speedoMeter.config.style, ...styleObj.style };
|
|
10382
10684
|
}
|
|
@@ -10384,90 +10686,95 @@ const buildSpeedoMeter = (config, componentScope) => {
|
|
|
10384
10686
|
speedoMeter.config.style.containerStyle = { ...speedoMeter.config.style.containerStyle, ...styleObj.containerStyle };
|
|
10385
10687
|
}
|
|
10386
10688
|
}
|
|
10387
|
-
if (
|
|
10388
|
-
speedoMeter.config.main.width =
|
|
10689
|
+
if (config2.width) {
|
|
10690
|
+
speedoMeter.config.main.width = config2.width;
|
|
10389
10691
|
}
|
|
10390
|
-
if (
|
|
10391
|
-
speedoMeter.config.main.currentValueText =
|
|
10692
|
+
if (config2.speedoCaption) {
|
|
10693
|
+
speedoMeter.config.main.currentValueText = config2.speedoCaption;
|
|
10392
10694
|
}
|
|
10393
|
-
if (
|
|
10394
|
-
speedoMeter.config.main.data =
|
|
10695
|
+
if (config2.data) {
|
|
10696
|
+
speedoMeter.config.main.data = config2.data;
|
|
10395
10697
|
}
|
|
10396
|
-
if (
|
|
10397
|
-
speedoMeter.config.style.needleColor =
|
|
10698
|
+
if (config2.needleColor) {
|
|
10699
|
+
speedoMeter.config.style.needleColor = config2.needleColor;
|
|
10398
10700
|
}
|
|
10399
|
-
if (
|
|
10400
|
-
speedoMeter.config.style.segments =
|
|
10701
|
+
if (config2.segments) {
|
|
10702
|
+
speedoMeter.config.style.segments = config2.segments;
|
|
10401
10703
|
}
|
|
10402
|
-
if (
|
|
10403
|
-
speedoMeter.config.style.endColor =
|
|
10704
|
+
if (config2.endColor) {
|
|
10705
|
+
speedoMeter.config.style.endColor = config2.endColor;
|
|
10404
10706
|
}
|
|
10405
|
-
if (
|
|
10406
|
-
speedoMeter.config.style.startColor =
|
|
10707
|
+
if (config2.startColor) {
|
|
10708
|
+
speedoMeter.config.style.startColor = config2.startColor;
|
|
10407
10709
|
}
|
|
10408
|
-
if (
|
|
10409
|
-
speedoMeter.config.style.segmentColors =
|
|
10710
|
+
if (config2.segmentColors) {
|
|
10711
|
+
speedoMeter.config.style.segmentColors = config2.segmentColors;
|
|
10410
10712
|
}
|
|
10411
10713
|
return speedoMeter;
|
|
10412
10714
|
};
|
|
10413
|
-
const buildPieGraph = (
|
|
10715
|
+
const buildPieGraph = (config2, componentScope2) => {
|
|
10414
10716
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10415
|
-
if (
|
|
10416
|
-
pieGraph.config.layout = createLayoutFormat(
|
|
10717
|
+
if (config2.layout) {
|
|
10718
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10417
10719
|
}
|
|
10418
|
-
if (
|
|
10419
|
-
pieGraph.config.style =
|
|
10420
|
-
containerStyle: {
|
|
10421
|
-
height: config.height
|
|
10422
|
-
}
|
|
10423
|
-
};
|
|
10720
|
+
if (config2.height) {
|
|
10721
|
+
pieGraph.config.style.containerStyle.height = config2.height;
|
|
10424
10722
|
}
|
|
10425
|
-
if (
|
|
10426
|
-
pieGraph.config.main.
|
|
10723
|
+
if (config2.legendHide) {
|
|
10724
|
+
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10427
10725
|
}
|
|
10428
|
-
pieGraph.scope =
|
|
10429
|
-
pieGraph.config.main.header =
|
|
10430
|
-
if (
|
|
10431
|
-
pieGraph.config.main.
|
|
10726
|
+
pieGraph.scope = componentScope2;
|
|
10727
|
+
pieGraph.config.main.header = config2.heading;
|
|
10728
|
+
if (config2.legendLabels) {
|
|
10729
|
+
pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10432
10730
|
}
|
|
10433
|
-
if (
|
|
10434
|
-
pieGraph.config.main.xAxisValue =
|
|
10731
|
+
if (config2.xAxisValue) {
|
|
10732
|
+
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10435
10733
|
}
|
|
10436
|
-
if (
|
|
10437
|
-
pieGraph.config.style =
|
|
10438
|
-
pieStyle: {
|
|
10439
|
-
colorRange: flatObjectValueInArray(config.pieArcColors)
|
|
10440
|
-
}
|
|
10441
|
-
};
|
|
10734
|
+
if (config2.pieArcColors) {
|
|
10735
|
+
pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10442
10736
|
}
|
|
10443
10737
|
return pieGraph;
|
|
10444
10738
|
};
|
|
10445
|
-
const buildStackbarGraph = (
|
|
10739
|
+
const buildStackbarGraph = (config2, componentScope2) => {
|
|
10740
|
+
var _a;
|
|
10446
10741
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10447
|
-
if (
|
|
10448
|
-
barGraph.config.layout = createLayoutFormat(
|
|
10742
|
+
if (config2.layout) {
|
|
10743
|
+
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10744
|
+
}
|
|
10745
|
+
if (config2.legendHide) {
|
|
10746
|
+
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
10747
|
+
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10748
|
+
}
|
|
10749
|
+
if (config2.bottomAxisAngle) {
|
|
10750
|
+
barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10751
|
+
}
|
|
10752
|
+
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
10753
|
+
barGraph.config.main.header = config2.heading;
|
|
10754
|
+
if (config2.legendLabels) {
|
|
10755
|
+
barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10449
10756
|
}
|
|
10450
|
-
if (
|
|
10451
|
-
barGraph.config.
|
|
10757
|
+
if (config2.pieArcColors) {
|
|
10758
|
+
barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10452
10759
|
}
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
if (config.barColor) {
|
|
10456
|
-
barGraph.config.barStyle.color = config.barColor;
|
|
10760
|
+
if (config2.xAxisValue) {
|
|
10761
|
+
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10457
10762
|
}
|
|
10458
|
-
if (
|
|
10459
|
-
barGraph.config.
|
|
10763
|
+
if (config2.height) {
|
|
10764
|
+
barGraph.config.style.containerStyle.height = config2.height;
|
|
10460
10765
|
}
|
|
10461
|
-
if (
|
|
10462
|
-
barGraph.config.style.
|
|
10766
|
+
if (config2.leftMargin) {
|
|
10767
|
+
barGraph.config.style.labelStyle.margin = {
|
|
10768
|
+
left: config2.leftMargin
|
|
10769
|
+
};
|
|
10463
10770
|
}
|
|
10464
|
-
if (
|
|
10465
|
-
barGraph.config.main.bottomLabel =
|
|
10771
|
+
if (config2.bottomLabel) {
|
|
10772
|
+
barGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
10466
10773
|
}
|
|
10467
|
-
if (
|
|
10468
|
-
barGraph.config.main.leftLabel =
|
|
10774
|
+
if (config2.leftLabel) {
|
|
10775
|
+
barGraph.config.main.leftLabel = config2.leftLabel;
|
|
10469
10776
|
}
|
|
10470
|
-
barGraph.scope =
|
|
10777
|
+
barGraph.scope = componentScope2;
|
|
10471
10778
|
return barGraph;
|
|
10472
10779
|
};
|
|
10473
10780
|
var RunnerBoyProgressBar = {
|
|
@@ -10477,15 +10784,15 @@ var RunnerBoyProgressBar = {
|
|
|
10477
10784
|
widget: "RunnerBoyProgressBar"
|
|
10478
10785
|
},
|
|
10479
10786
|
config: {
|
|
10480
|
-
layout: { xs:
|
|
10787
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
10481
10788
|
main: {}
|
|
10482
10789
|
}
|
|
10483
10790
|
};
|
|
10484
|
-
const RunnerBoyProgressbar = (
|
|
10791
|
+
const RunnerBoyProgressbar = (config2, componentScope2) => {
|
|
10485
10792
|
const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
|
|
10486
|
-
RunnerBoy.scope =
|
|
10487
|
-
if (
|
|
10488
|
-
RunnerBoy.config.layout = createLayoutFormat(
|
|
10793
|
+
RunnerBoy.scope = componentScope2;
|
|
10794
|
+
if (config2.layout) {
|
|
10795
|
+
RunnerBoy.config.layout = createLayoutFormat(config2.layout);
|
|
10489
10796
|
}
|
|
10490
10797
|
return RunnerBoy;
|
|
10491
10798
|
};
|
|
@@ -10500,19 +10807,19 @@ var Tabsection = {
|
|
|
10500
10807
|
},
|
|
10501
10808
|
elements: []
|
|
10502
10809
|
};
|
|
10503
|
-
const buildTabSection = (
|
|
10810
|
+
const buildTabSection = (config2, componentScope2) => {
|
|
10504
10811
|
const tab = _.cloneDeep(Tabsection);
|
|
10505
|
-
tab.scope =
|
|
10506
|
-
if (
|
|
10507
|
-
tab.config.main.lazyLoad =
|
|
10812
|
+
tab.scope = componentScope2;
|
|
10813
|
+
if (config2.lazyLoad) {
|
|
10814
|
+
tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
|
|
10508
10815
|
}
|
|
10509
|
-
if (
|
|
10510
|
-
tab.config.main.orientation =
|
|
10816
|
+
if (config2.orientation) {
|
|
10817
|
+
tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
|
|
10511
10818
|
}
|
|
10512
|
-
if (
|
|
10513
|
-
tab.config.main.tabLabels =
|
|
10819
|
+
if (config2.sectionLabels) {
|
|
10820
|
+
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
10514
10821
|
}
|
|
10515
|
-
tab.config.main.id =
|
|
10822
|
+
tab.config.main.id = config2.name;
|
|
10516
10823
|
return tab;
|
|
10517
10824
|
};
|
|
10518
10825
|
var WrapperSection = {
|
|
@@ -10527,20 +10834,20 @@ var WrapperSection = {
|
|
|
10527
10834
|
},
|
|
10528
10835
|
elements: []
|
|
10529
10836
|
};
|
|
10530
|
-
const buildWrapperSection = (
|
|
10837
|
+
const buildWrapperSection = (config2, componentScope2) => {
|
|
10531
10838
|
const wrapper = _.cloneDeep(WrapperSection);
|
|
10532
|
-
wrapper.scope =
|
|
10533
|
-
wrapper.config.main.label =
|
|
10534
|
-
wrapper.config.main.divider =
|
|
10535
|
-
wrapper.config.main.isAccordion =
|
|
10536
|
-
if (
|
|
10537
|
-
wrapper.config.defaultStyle =
|
|
10839
|
+
wrapper.scope = componentScope2;
|
|
10840
|
+
wrapper.config.main.label = config2.label;
|
|
10841
|
+
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
10842
|
+
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
10843
|
+
if (config2.defaultStyle) {
|
|
10844
|
+
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
10538
10845
|
}
|
|
10539
|
-
if (
|
|
10540
|
-
wrapper.config.style = JSON.parse(
|
|
10846
|
+
if (config2.style) {
|
|
10847
|
+
wrapper.config.style = JSON.parse(config2.style);
|
|
10541
10848
|
}
|
|
10542
|
-
if (
|
|
10543
|
-
wrapper.config.layout = createLayoutFormat(
|
|
10849
|
+
if (config2.layout) {
|
|
10850
|
+
wrapper.config.layout = createLayoutFormat(config2.layout);
|
|
10544
10851
|
}
|
|
10545
10852
|
return wrapper;
|
|
10546
10853
|
};
|
|
@@ -10558,23 +10865,23 @@ var TextInputField = {
|
|
|
10558
10865
|
style: {}
|
|
10559
10866
|
}
|
|
10560
10867
|
};
|
|
10561
|
-
const buildTextField = (
|
|
10868
|
+
const buildTextField = (config2, componentScope2) => {
|
|
10562
10869
|
const inputField = _.cloneDeep(TextInputField);
|
|
10563
|
-
inputField.config.main.label =
|
|
10564
|
-
if (
|
|
10565
|
-
inputField.config.style = JSON.parse(
|
|
10870
|
+
inputField.config.main.label = config2.label;
|
|
10871
|
+
if (config2.style) {
|
|
10872
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
10566
10873
|
}
|
|
10567
|
-
if (
|
|
10568
|
-
inputField.config.main.formatStrArray =
|
|
10874
|
+
if (config2.InputFormatingAndMasking) {
|
|
10875
|
+
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10569
10876
|
}
|
|
10570
|
-
if (
|
|
10571
|
-
inputField.config.main.placeholder =
|
|
10877
|
+
if (config2.placeholder) {
|
|
10878
|
+
inputField.config.main.placeholder = config2.placeholder;
|
|
10572
10879
|
}
|
|
10573
|
-
if (
|
|
10574
|
-
inputField.config.layout = createLayoutFormat(
|
|
10880
|
+
if (config2.layout) {
|
|
10881
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
10575
10882
|
}
|
|
10576
|
-
inputField.config.main.errorMessage = `${
|
|
10577
|
-
inputField.scope =
|
|
10883
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
10884
|
+
inputField.scope = componentScope2;
|
|
10578
10885
|
return inputField;
|
|
10579
10886
|
};
|
|
10580
10887
|
var SelectInputField = {
|
|
@@ -10592,22 +10899,22 @@ var SelectInputField = {
|
|
|
10592
10899
|
}
|
|
10593
10900
|
}
|
|
10594
10901
|
};
|
|
10595
|
-
const buildSelect = (
|
|
10902
|
+
const buildSelect = (config2, componentScope2) => {
|
|
10596
10903
|
const selectInputField = _.cloneDeep(SelectInputField);
|
|
10597
|
-
selectInputField.config.main.label =
|
|
10598
|
-
if (
|
|
10599
|
-
selectInputField.config.main.options =
|
|
10904
|
+
selectInputField.config.main.label = config2.label;
|
|
10905
|
+
if (config2.value) {
|
|
10906
|
+
selectInputField.config.main.options = config2.value;
|
|
10600
10907
|
}
|
|
10601
|
-
if (
|
|
10602
|
-
selectInputField.config.main.freeSolo =
|
|
10908
|
+
if (config2.freeSolo) {
|
|
10909
|
+
selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
|
|
10603
10910
|
}
|
|
10604
|
-
if (
|
|
10605
|
-
selectInputField.config.main.lazyLoading =
|
|
10911
|
+
if (config2.lazyLoading) {
|
|
10912
|
+
selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
10606
10913
|
}
|
|
10607
|
-
if (
|
|
10608
|
-
selectInputField.config.layout = createLayoutFormat(
|
|
10914
|
+
if (config2.layout) {
|
|
10915
|
+
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
10609
10916
|
}
|
|
10610
|
-
selectInputField.scope =
|
|
10917
|
+
selectInputField.scope = componentScope2;
|
|
10611
10918
|
return selectInputField;
|
|
10612
10919
|
};
|
|
10613
10920
|
var Button = {
|
|
@@ -10621,7 +10928,6 @@ var Button = {
|
|
|
10621
10928
|
main: {
|
|
10622
10929
|
name: "Compare",
|
|
10623
10930
|
variant: "contained",
|
|
10624
|
-
color: "info",
|
|
10625
10931
|
type: "text",
|
|
10626
10932
|
startIcon: "",
|
|
10627
10933
|
styleDefault: false,
|
|
@@ -10632,37 +10938,37 @@ var Button = {
|
|
|
10632
10938
|
style: {}
|
|
10633
10939
|
}
|
|
10634
10940
|
};
|
|
10635
|
-
const buildButton = (
|
|
10941
|
+
const buildButton = (config2, componentScope2) => {
|
|
10636
10942
|
const button = _.cloneDeep(Button);
|
|
10637
|
-
if (
|
|
10638
|
-
button.options.widget =
|
|
10639
|
-
|
|
10943
|
+
if (config2.buttonType) {
|
|
10944
|
+
button.options.widget = config2.buttonType === "IconButton" ? "IconButton" : "Button";
|
|
10945
|
+
config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
|
|
10640
10946
|
}
|
|
10641
|
-
if (
|
|
10642
|
-
button.config.layout = createLayoutFormat(
|
|
10947
|
+
if (config2.layout) {
|
|
10948
|
+
button.config.layout = createLayoutFormat(config2.layout);
|
|
10643
10949
|
}
|
|
10644
|
-
if (
|
|
10645
|
-
button.config.main.tooltipMessage =
|
|
10950
|
+
if (config2.tooltipMessage) {
|
|
10951
|
+
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
10646
10952
|
}
|
|
10647
|
-
if (
|
|
10648
|
-
if (
|
|
10649
|
-
button.config.main.styleDefault =
|
|
10953
|
+
if (config2.defaultStyle) {
|
|
10954
|
+
if (config2.buttonType === "IconButton") {
|
|
10955
|
+
button.config.main.styleDefault = config2.defaultStyle === "true" ? true : false;
|
|
10650
10956
|
} else {
|
|
10651
|
-
button.config.main.enableDefaultStyle =
|
|
10957
|
+
button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
|
|
10652
10958
|
}
|
|
10653
10959
|
}
|
|
10654
|
-
button.scope =
|
|
10655
|
-
if (
|
|
10656
|
-
button.config.style = JSON.parse(
|
|
10960
|
+
button.scope = componentScope2;
|
|
10961
|
+
if (config2.style) {
|
|
10962
|
+
button.config.style = JSON.parse(config2.style);
|
|
10657
10963
|
}
|
|
10658
|
-
if (
|
|
10659
|
-
button.config.main.size =
|
|
10964
|
+
if (config2.size) {
|
|
10965
|
+
button.config.main.size = config2.size;
|
|
10660
10966
|
}
|
|
10661
|
-
if (
|
|
10662
|
-
button.config.main.color =
|
|
10967
|
+
if (config2.color) {
|
|
10968
|
+
button.config.main.color = config2.color;
|
|
10663
10969
|
}
|
|
10664
|
-
if (
|
|
10665
|
-
button.config.main.name =
|
|
10970
|
+
if (config2.label) {
|
|
10971
|
+
button.config.main.name = config2.label;
|
|
10666
10972
|
}
|
|
10667
10973
|
return button;
|
|
10668
10974
|
};
|
|
@@ -10686,71 +10992,71 @@ var Table = {
|
|
|
10686
10992
|
}
|
|
10687
10993
|
}
|
|
10688
10994
|
};
|
|
10689
|
-
const buildTable = (
|
|
10995
|
+
const buildTable = (config2, componentScope2) => {
|
|
10690
10996
|
const table = _.cloneDeep(Table);
|
|
10691
|
-
table.scope =
|
|
10692
|
-
if (
|
|
10693
|
-
table.config.style = JSON.parse(
|
|
10997
|
+
table.scope = componentScope2;
|
|
10998
|
+
if (config2.style) {
|
|
10999
|
+
table.config.style = JSON.parse(config2.style);
|
|
10694
11000
|
}
|
|
10695
|
-
if (
|
|
10696
|
-
table.config.main.lazyLoading =
|
|
11001
|
+
if (config2.lazyLoading) {
|
|
11002
|
+
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
10697
11003
|
}
|
|
10698
|
-
if (
|
|
10699
|
-
table.config.main.enableRowMovement =
|
|
11004
|
+
if (config2.enableRowMovement) {
|
|
11005
|
+
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
10700
11006
|
}
|
|
10701
|
-
if (
|
|
10702
|
-
table.config.main.enableExpanding =
|
|
11007
|
+
if (config2.enableExpanding) {
|
|
11008
|
+
table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
|
|
10703
11009
|
}
|
|
10704
|
-
if (
|
|
10705
|
-
table.config.main.enableExpandAll =
|
|
11010
|
+
if (config2.enableExpandAll) {
|
|
11011
|
+
table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
|
|
10706
11012
|
}
|
|
10707
|
-
if (
|
|
10708
|
-
table.config.main.paginateExpandedRows =
|
|
11013
|
+
if (config2.paginateExpandedRows) {
|
|
11014
|
+
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
10709
11015
|
}
|
|
10710
|
-
if (
|
|
10711
|
-
table.config.main.treeStructure =
|
|
11016
|
+
if (config2.treeStructure) {
|
|
11017
|
+
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
10712
11018
|
}
|
|
10713
|
-
if (
|
|
10714
|
-
table.config.main.Selection =
|
|
11019
|
+
if (config2.SelectionAvailable) {
|
|
11020
|
+
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
10715
11021
|
}
|
|
10716
|
-
if (
|
|
10717
|
-
table.config.main.disableColumnResizing =
|
|
11022
|
+
if (config2.ColumnResizingAvailable) {
|
|
11023
|
+
table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
|
|
10718
11024
|
}
|
|
10719
|
-
if (
|
|
10720
|
-
table.config.main.enableDrag =
|
|
11025
|
+
if (config2.DragAvailable) {
|
|
11026
|
+
table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
|
|
10721
11027
|
}
|
|
10722
|
-
if (
|
|
10723
|
-
table.config.main.downloadAllData =
|
|
11028
|
+
if (config2.downloadAllData) {
|
|
11029
|
+
table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
|
|
10724
11030
|
}
|
|
10725
|
-
if (
|
|
10726
|
-
table.config.main.disableGlobalSearch =
|
|
11031
|
+
if (config2.disableGlobalSearch) {
|
|
11032
|
+
table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
|
|
10727
11033
|
}
|
|
10728
|
-
if (
|
|
10729
|
-
table.config.main.disableColumnFilter =
|
|
11034
|
+
if (config2.disableColumnFilter) {
|
|
11035
|
+
table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
|
|
10730
11036
|
}
|
|
10731
|
-
if (
|
|
10732
|
-
table.config.main.disableSorting =
|
|
11037
|
+
if (config2.disableSorting) {
|
|
11038
|
+
table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
|
|
10733
11039
|
}
|
|
10734
|
-
if (
|
|
10735
|
-
table.config.main.disableEditColumn =
|
|
11040
|
+
if (config2.disableEditColumn) {
|
|
11041
|
+
table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
|
|
10736
11042
|
}
|
|
10737
|
-
if (
|
|
10738
|
-
table.config.main.disableFullScreenToggle =
|
|
11043
|
+
if (config2.disableFullScreenToggle) {
|
|
11044
|
+
table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
|
|
10739
11045
|
}
|
|
10740
|
-
if (
|
|
10741
|
-
table.config.main.disableDensityToggle =
|
|
11046
|
+
if (config2.disableDensityToggle) {
|
|
11047
|
+
table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
|
|
10742
11048
|
}
|
|
10743
|
-
if (
|
|
10744
|
-
table.config.main.disableDownloadFile =
|
|
11049
|
+
if (config2.disableDownloadFile) {
|
|
11050
|
+
table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
|
|
10745
11051
|
}
|
|
10746
|
-
if (
|
|
10747
|
-
table.config.main.disablePagination =
|
|
11052
|
+
if (config2.disablePagination) {
|
|
11053
|
+
table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
|
|
10748
11054
|
}
|
|
10749
|
-
if (
|
|
10750
|
-
table.config.main.TableDownloadKeysName =
|
|
11055
|
+
if (config2.Table_Download_Keys_Name) {
|
|
11056
|
+
table.config.main.TableDownloadKeysName = config2.Table_Download_Keys_Name.map((e) => e.KeyName);
|
|
10751
11057
|
}
|
|
10752
|
-
if (
|
|
10753
|
-
table.config.main.selectKey =
|
|
11058
|
+
if (config2.selectKey) {
|
|
11059
|
+
table.config.main.selectKey = config2.selectKey;
|
|
10754
11060
|
}
|
|
10755
11061
|
return table;
|
|
10756
11062
|
};
|
|
@@ -10766,15 +11072,15 @@ const Box = {
|
|
|
10766
11072
|
style: {}
|
|
10767
11073
|
}
|
|
10768
11074
|
};
|
|
10769
|
-
const buildLabel = (
|
|
11075
|
+
const buildLabel = (config2, componentScope2) => {
|
|
10770
11076
|
const box = _.cloneDeep(Box);
|
|
10771
|
-
box.scope =
|
|
10772
|
-
box.config.main.heading =
|
|
10773
|
-
if (
|
|
10774
|
-
box.config.layout = createLayoutFormat(
|
|
11077
|
+
box.scope = componentScope2;
|
|
11078
|
+
box.config.main.heading = config2.label;
|
|
11079
|
+
if (config2.layout) {
|
|
11080
|
+
box.config.layout = createLayoutFormat(config2.layout);
|
|
10775
11081
|
}
|
|
10776
|
-
if (
|
|
10777
|
-
box.config.style = JSON.parse(
|
|
11082
|
+
if (config2.style) {
|
|
11083
|
+
box.config.style = JSON.parse(config2.style);
|
|
10778
11084
|
}
|
|
10779
11085
|
return box;
|
|
10780
11086
|
};
|
|
@@ -10814,42 +11120,39 @@ const downloadFile = {
|
|
|
10814
11120
|
"widget": "DownloadFile"
|
|
10815
11121
|
}
|
|
10816
11122
|
};
|
|
10817
|
-
const buildUploadFile = (
|
|
11123
|
+
const buildUploadFile = (config2, componentScope2) => {
|
|
10818
11124
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
10819
|
-
UploadFile.scope =
|
|
10820
|
-
UploadFile.config.main.label =
|
|
10821
|
-
if (
|
|
10822
|
-
UploadFile.config.layout =
|
|
10823
|
-
}
|
|
10824
|
-
if (config.layout) {
|
|
10825
|
-
uploadFile.config.layout = createLayoutFormat(config.layout);
|
|
11125
|
+
UploadFile.scope = componentScope2;
|
|
11126
|
+
UploadFile.config.main.label = config2.label;
|
|
11127
|
+
if (config2.layout) {
|
|
11128
|
+
UploadFile.config.layout = createLayoutFormat(config2.layout);
|
|
10826
11129
|
}
|
|
10827
|
-
if (
|
|
10828
|
-
UploadFile.config.style =
|
|
11130
|
+
if (config2.style) {
|
|
11131
|
+
UploadFile.config.style = config2.style;
|
|
10829
11132
|
}
|
|
10830
|
-
if (
|
|
11133
|
+
if (config2.required) {
|
|
10831
11134
|
UploadFile.config.main.required = true;
|
|
10832
11135
|
}
|
|
10833
|
-
UploadFile.config.main.errorMessage =
|
|
11136
|
+
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
10834
11137
|
return UploadFile;
|
|
10835
11138
|
};
|
|
10836
|
-
const buildDownloadFile = (
|
|
11139
|
+
const buildDownloadFile = (config2, componentScope2) => {
|
|
10837
11140
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
10838
|
-
DownloadFile.scope =
|
|
10839
|
-
if (
|
|
10840
|
-
DownloadFile.config.layout =
|
|
11141
|
+
DownloadFile.scope = componentScope2;
|
|
11142
|
+
if (config2.layout) {
|
|
11143
|
+
DownloadFile.config.layout = config2.layout;
|
|
10841
11144
|
}
|
|
10842
|
-
if (
|
|
10843
|
-
DownloadFile.config.style =
|
|
11145
|
+
if (config2.style) {
|
|
11146
|
+
DownloadFile.config.style = config2.style;
|
|
10844
11147
|
}
|
|
10845
|
-
if (
|
|
11148
|
+
if (config2.required) {
|
|
10846
11149
|
DownloadFile.config.main.required = true;
|
|
10847
11150
|
}
|
|
10848
|
-
if (
|
|
10849
|
-
DownloadFile.config.layout = createLayoutFormat(
|
|
11151
|
+
if (config2.layout) {
|
|
11152
|
+
DownloadFile.config.layout = createLayoutFormat(config2.layout);
|
|
10850
11153
|
}
|
|
10851
|
-
if (
|
|
10852
|
-
DownloadFile.config.main.errorMessage =
|
|
11154
|
+
if (config2.errorMessage) {
|
|
11155
|
+
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
10853
11156
|
}
|
|
10854
11157
|
return DownloadFile;
|
|
10855
11158
|
};
|
|
@@ -10858,15 +11161,23 @@ function Card(theme) {
|
|
|
10858
11161
|
type: "WrapperLayout",
|
|
10859
11162
|
config: {
|
|
10860
11163
|
main: {},
|
|
10861
|
-
wrapperStyle: {
|
|
11164
|
+
wrapperStyle: {
|
|
11165
|
+
position: "relative",
|
|
11166
|
+
top: "50%",
|
|
11167
|
+
transform: "translateY(-50%)"
|
|
11168
|
+
},
|
|
10862
11169
|
componentsBoxStyle: {
|
|
11170
|
+
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
10863
11171
|
flexDirection: "row",
|
|
10864
11172
|
flexWrap: "nowrap",
|
|
10865
|
-
width: "100%",
|
|
11173
|
+
width: "100% !important",
|
|
10866
11174
|
background: "transparent",
|
|
10867
|
-
border: `1.5px solid ${theme.palette.primary.
|
|
10868
|
-
borderRadius: "
|
|
10869
|
-
padding: "0px
|
|
11175
|
+
border: `1.5px solid ${theme.palette.primary.light}`,
|
|
11176
|
+
borderRadius: "8px",
|
|
11177
|
+
padding: "0px 4px",
|
|
11178
|
+
height: "100%",
|
|
11179
|
+
alignItems: "center",
|
|
11180
|
+
marginLeft: "0px",
|
|
10870
11181
|
"&: hover": {
|
|
10871
11182
|
background: `${theme.palette.primary.main}`,
|
|
10872
11183
|
border: `1.5px solid black`,
|
|
@@ -10892,7 +11203,6 @@ function Card(theme) {
|
|
|
10892
11203
|
gap: 0
|
|
10893
11204
|
},
|
|
10894
11205
|
wrapperStyle: {
|
|
10895
|
-
marginTop: "4px",
|
|
10896
11206
|
background: "transparent"
|
|
10897
11207
|
},
|
|
10898
11208
|
componentsBoxStyle: {
|
|
@@ -10907,27 +11217,78 @@ function Card(theme) {
|
|
|
10907
11217
|
},
|
|
10908
11218
|
elements: [
|
|
10909
11219
|
{
|
|
10910
|
-
type: "
|
|
10911
|
-
scope: "#/properties/programType",
|
|
11220
|
+
type: "WrapperLayout",
|
|
10912
11221
|
config: {
|
|
10913
11222
|
main: {
|
|
10914
|
-
|
|
11223
|
+
columnSpacing: 0,
|
|
11224
|
+
gap: 0
|
|
10915
11225
|
},
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
11226
|
+
wrapperStyle: {
|
|
11227
|
+
background: "transparent"
|
|
11228
|
+
},
|
|
11229
|
+
componentsBoxStyle: {
|
|
11230
|
+
flexDirection: "row",
|
|
11231
|
+
flexWrap: "nowrap",
|
|
11232
|
+
width: "100%",
|
|
11233
|
+
height: "0",
|
|
11234
|
+
background: "transparent",
|
|
11235
|
+
borderRadius: "0px",
|
|
11236
|
+
marginLeft: "-10px",
|
|
11237
|
+
marginTop: "-8px",
|
|
11238
|
+
justifyContent: "start",
|
|
11239
|
+
position: "relative"
|
|
10925
11240
|
},
|
|
10926
11241
|
layout: 12
|
|
10927
11242
|
},
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
11243
|
+
elements: [
|
|
11244
|
+
{
|
|
11245
|
+
type: "Control",
|
|
11246
|
+
scope: "#/properties/programType",
|
|
11247
|
+
config: {
|
|
11248
|
+
main: {
|
|
11249
|
+
heading: ""
|
|
11250
|
+
},
|
|
11251
|
+
style: {
|
|
11252
|
+
color: "black",
|
|
11253
|
+
display: "flex",
|
|
11254
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
11255
|
+
fontWeight: "bold",
|
|
11256
|
+
background: "inherit",
|
|
11257
|
+
justifyContent: "flex-start",
|
|
11258
|
+
width: "auto",
|
|
11259
|
+
margin: "-8px",
|
|
11260
|
+
height: 0
|
|
11261
|
+
}
|
|
11262
|
+
},
|
|
11263
|
+
options: {
|
|
11264
|
+
widget: "Box"
|
|
11265
|
+
}
|
|
11266
|
+
},
|
|
11267
|
+
{
|
|
11268
|
+
type: "Control",
|
|
11269
|
+
scope: "#/properties/programType",
|
|
11270
|
+
config: {
|
|
11271
|
+
main: {
|
|
11272
|
+
heading: "5000.00"
|
|
11273
|
+
},
|
|
11274
|
+
style: {
|
|
11275
|
+
color: "black",
|
|
11276
|
+
display: "flex",
|
|
11277
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
11278
|
+
fontWeight: "bold",
|
|
11279
|
+
background: "inherit",
|
|
11280
|
+
justifyContent: "flex-start",
|
|
11281
|
+
width: "auto",
|
|
11282
|
+
margin: "-8px",
|
|
11283
|
+
position: "absolute",
|
|
11284
|
+
left: "8px"
|
|
11285
|
+
}
|
|
11286
|
+
},
|
|
11287
|
+
options: {
|
|
11288
|
+
widget: "Box"
|
|
11289
|
+
}
|
|
11290
|
+
}
|
|
11291
|
+
]
|
|
10931
11292
|
},
|
|
10932
11293
|
{
|
|
10933
11294
|
type: "Control",
|
|
@@ -10942,8 +11303,9 @@ function Card(theme) {
|
|
|
10942
11303
|
justifyContent: "center",
|
|
10943
11304
|
textWrap: "wrap",
|
|
10944
11305
|
background: "inherit",
|
|
10945
|
-
width: "calc(100%+
|
|
11306
|
+
width: "calc(100%+8px)",
|
|
10946
11307
|
margin: "-8px",
|
|
11308
|
+
marginTop: "12px",
|
|
10947
11309
|
lineHeight: "1"
|
|
10948
11310
|
},
|
|
10949
11311
|
layout: 12
|
|
@@ -10967,13 +11329,13 @@ function Card(theme) {
|
|
|
10967
11329
|
containerStyle: {
|
|
10968
11330
|
height: "100%",
|
|
10969
11331
|
display: "flex",
|
|
10970
|
-
justifyContent: "
|
|
11332
|
+
justifyContent: "end"
|
|
10971
11333
|
},
|
|
10972
11334
|
imageStyle: {
|
|
10973
|
-
height: "100%",
|
|
10974
11335
|
fontSize: "none",
|
|
10975
11336
|
padding: "4px",
|
|
10976
|
-
|
|
11337
|
+
margin: "0px 0px 0px 8px",
|
|
11338
|
+
height: "64px"
|
|
10977
11339
|
}
|
|
10978
11340
|
},
|
|
10979
11341
|
layout: 4
|
|
@@ -10986,19 +11348,23 @@ function Card(theme) {
|
|
|
10986
11348
|
};
|
|
10987
11349
|
return uiSchema;
|
|
10988
11350
|
}
|
|
10989
|
-
const buildCard = (config, componentScope,
|
|
10990
|
-
const card = _.cloneDeep(Card(
|
|
11351
|
+
const buildCard = (config, componentScope, store) => {
|
|
11352
|
+
const card = _.cloneDeep(Card(store.theme.myTheme));
|
|
10991
11353
|
if (config.style) {
|
|
10992
|
-
card.config.
|
|
11354
|
+
card.config.wrapperStyle = JSON.parse(config.style);
|
|
10993
11355
|
}
|
|
10994
|
-
card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
|
|
11356
|
+
card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
|
|
10995
11357
|
card.elements[1].scope = `#/properties/${config.name}/properties/url`;
|
|
10996
11358
|
card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
|
|
10997
11359
|
if (config.layout) {
|
|
10998
11360
|
card.config.layout = createLayoutFormat(config.layout);
|
|
10999
11361
|
}
|
|
11362
|
+
if (config == null ? void 0 : config.titleIcon) {
|
|
11363
|
+
card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
|
|
11364
|
+
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11365
|
+
}
|
|
11000
11366
|
if (config.label) {
|
|
11001
|
-
card.elements[0].elements[0].elements[0].config.main.heading = config.label;
|
|
11367
|
+
card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
|
|
11002
11368
|
}
|
|
11003
11369
|
if (config.url) {
|
|
11004
11370
|
card.elements[1].config.main.url = config.url;
|
|
@@ -11036,23 +11402,23 @@ const DateTime = {
|
|
|
11036
11402
|
}
|
|
11037
11403
|
}
|
|
11038
11404
|
};
|
|
11039
|
-
const buildDate = (
|
|
11405
|
+
const buildDate = (config2, componentScope2) => {
|
|
11040
11406
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11041
|
-
dateInputField.config.main.label =
|
|
11042
|
-
dateInputField.config.main.errorMessage = `${
|
|
11043
|
-
dateInputField.scope =
|
|
11044
|
-
if (
|
|
11045
|
-
dateInputField.config.layout = createLayoutFormat(
|
|
11407
|
+
dateInputField.config.main.label = config2.label;
|
|
11408
|
+
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11409
|
+
dateInputField.scope = componentScope2;
|
|
11410
|
+
if (config2.layout) {
|
|
11411
|
+
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11046
11412
|
}
|
|
11047
11413
|
return dateInputField;
|
|
11048
11414
|
};
|
|
11049
|
-
const buildDateTime = (
|
|
11415
|
+
const buildDateTime = (config2, componentScope2) => {
|
|
11050
11416
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11051
|
-
dateTimeInputField.config.main.label =
|
|
11052
|
-
dateTimeInputField.config.main.errorMessage = `${
|
|
11053
|
-
dateTimeInputField.scope =
|
|
11054
|
-
if (
|
|
11055
|
-
dateTimeInputField.config.layout = createLayoutFormat(
|
|
11417
|
+
dateTimeInputField.config.main.label = config2.label;
|
|
11418
|
+
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11419
|
+
dateTimeInputField.scope = componentScope2;
|
|
11420
|
+
if (config2.layout) {
|
|
11421
|
+
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11056
11422
|
}
|
|
11057
11423
|
return dateTimeInputField;
|
|
11058
11424
|
};
|
|
@@ -11063,27 +11429,21 @@ var RankCard = {
|
|
|
11063
11429
|
widget: "RankCard"
|
|
11064
11430
|
},
|
|
11065
11431
|
config: {
|
|
11066
|
-
layout: { xs:
|
|
11432
|
+
layout: { xs: 12, sm: 6, md: 6, lg: 6 },
|
|
11067
11433
|
main: {}
|
|
11068
11434
|
}
|
|
11069
11435
|
};
|
|
11070
|
-
const buildRankCard = (
|
|
11436
|
+
const buildRankCard = (config2, componentScope2) => {
|
|
11071
11437
|
const rankCard = _.cloneDeep(RankCard);
|
|
11072
|
-
rankCard.scope =
|
|
11073
|
-
if (
|
|
11074
|
-
rankCard.config.main.
|
|
11075
|
-
}
|
|
11076
|
-
if (config.title) {
|
|
11077
|
-
rankCard.config.main.title = config.title;
|
|
11078
|
-
}
|
|
11079
|
-
if (config.description) {
|
|
11080
|
-
rankCard.config.main.description = config.description;
|
|
11438
|
+
rankCard.scope = componentScope2;
|
|
11439
|
+
if (config2.rank) {
|
|
11440
|
+
rankCard.config.main.rank = `${config2.rank}`;
|
|
11081
11441
|
}
|
|
11082
|
-
if (
|
|
11083
|
-
rankCard.config.main.
|
|
11442
|
+
if (config2.height) {
|
|
11443
|
+
rankCard.config.main.height = `${config2.height}px`;
|
|
11084
11444
|
}
|
|
11085
|
-
if (
|
|
11086
|
-
rankCard.config.layout = createLayoutFormat(
|
|
11445
|
+
if (config2.layout) {
|
|
11446
|
+
rankCard.config.layout = createLayoutFormat(config2.layout);
|
|
11087
11447
|
}
|
|
11088
11448
|
return rankCard;
|
|
11089
11449
|
};
|
|
@@ -11098,13 +11458,13 @@ var RollAndDice = {
|
|
|
11098
11458
|
main: {}
|
|
11099
11459
|
}
|
|
11100
11460
|
};
|
|
11101
|
-
const buildRollAndDice = (
|
|
11461
|
+
const buildRollAndDice = (config2, componentScope2) => {
|
|
11102
11462
|
const rank = _.cloneDeep(RollAndDice);
|
|
11103
|
-
if (
|
|
11104
|
-
rank.scope =
|
|
11463
|
+
if (config2.name) {
|
|
11464
|
+
rank.scope = componentScope2;
|
|
11105
11465
|
}
|
|
11106
|
-
if (
|
|
11107
|
-
rank.config.layout = createLayoutFormat(
|
|
11466
|
+
if (config2.layout) {
|
|
11467
|
+
rank.config.layout = createLayoutFormat(config2.layout);
|
|
11108
11468
|
}
|
|
11109
11469
|
return rank;
|
|
11110
11470
|
};
|
|
@@ -11118,34 +11478,21 @@ var Timer = {
|
|
|
11118
11478
|
layout: {
|
|
11119
11479
|
xs: 12,
|
|
11120
11480
|
sm: 12,
|
|
11121
|
-
md:
|
|
11122
|
-
lg:
|
|
11481
|
+
md: 6,
|
|
11482
|
+
lg: 6
|
|
11123
11483
|
},
|
|
11124
11484
|
main: {},
|
|
11125
|
-
style: {
|
|
11126
|
-
digitContainer: {
|
|
11127
|
-
borderRadius: "4px",
|
|
11128
|
-
textShawdow: "none",
|
|
11129
|
-
width: "22%"
|
|
11130
|
-
},
|
|
11131
|
-
container: {
|
|
11132
|
-
backgroundColor: "#FFFFFF",
|
|
11133
|
-
borderRadius: "18px"
|
|
11134
|
-
},
|
|
11135
|
-
containerLabelColor: {
|
|
11136
|
-
color: "red"
|
|
11137
|
-
}
|
|
11138
|
-
}
|
|
11485
|
+
style: {}
|
|
11139
11486
|
}
|
|
11140
11487
|
};
|
|
11141
|
-
const buildTimer = (
|
|
11488
|
+
const buildTimer = (config2, componentScope2) => {
|
|
11142
11489
|
const timer = _.cloneDeep(Timer);
|
|
11143
|
-
timer.scope =
|
|
11144
|
-
if (
|
|
11145
|
-
timer.config.main.label =
|
|
11490
|
+
timer.scope = componentScope2;
|
|
11491
|
+
if (config2.label) {
|
|
11492
|
+
timer.config.main.label = config2.label;
|
|
11146
11493
|
}
|
|
11147
|
-
if (
|
|
11148
|
-
timer.config.layout = createLayoutFormat(
|
|
11494
|
+
if (config2.layout) {
|
|
11495
|
+
timer.config.layout = createLayoutFormat(config2.layout);
|
|
11149
11496
|
}
|
|
11150
11497
|
return timer;
|
|
11151
11498
|
};
|
|
@@ -11166,30 +11513,30 @@ var MultipleSelect = {
|
|
|
11166
11513
|
}
|
|
11167
11514
|
}
|
|
11168
11515
|
};
|
|
11169
|
-
const buildMultiSelect = (
|
|
11516
|
+
const buildMultiSelect = (config2, componentScope2) => {
|
|
11170
11517
|
const multipleSelect = _.cloneDeep(MultipleSelect);
|
|
11171
|
-
multipleSelect.scope =
|
|
11172
|
-
if (
|
|
11173
|
-
multipleSelect.config.main.label =
|
|
11518
|
+
multipleSelect.scope = componentScope2;
|
|
11519
|
+
if (config2.label) {
|
|
11520
|
+
multipleSelect.config.main.label = config2.label;
|
|
11174
11521
|
}
|
|
11175
|
-
if (
|
|
11176
|
-
multipleSelect.config.layout = createLayoutFormat(
|
|
11522
|
+
if (config2.layout) {
|
|
11523
|
+
multipleSelect.config.layout = createLayoutFormat(config2.layout);
|
|
11177
11524
|
}
|
|
11178
|
-
if (
|
|
11179
|
-
multipleSelect.config.main.options =
|
|
11525
|
+
if (config2.value) {
|
|
11526
|
+
multipleSelect.config.main.options = config2.value;
|
|
11180
11527
|
}
|
|
11181
|
-
if (
|
|
11182
|
-
multipleSelect.config.main.lazyLoading =
|
|
11528
|
+
if (config2.lazyLoading) {
|
|
11529
|
+
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11183
11530
|
}
|
|
11184
11531
|
return multipleSelect;
|
|
11185
11532
|
};
|
|
11186
|
-
const buildBasicUiSchema = (
|
|
11533
|
+
const buildBasicUiSchema = (config2) => {
|
|
11187
11534
|
return {
|
|
11188
11535
|
"type": "HorizontalLayout",
|
|
11189
|
-
pageName:
|
|
11190
|
-
name:
|
|
11191
|
-
accessorKey:
|
|
11192
|
-
heading:
|
|
11536
|
+
pageName: config2.name,
|
|
11537
|
+
name: config2.name,
|
|
11538
|
+
accessorKey: config2.name,
|
|
11539
|
+
heading: config2.label || config2.name,
|
|
11193
11540
|
"elements": []
|
|
11194
11541
|
};
|
|
11195
11542
|
};
|
|
@@ -11220,25 +11567,25 @@ const TextArea = {
|
|
|
11220
11567
|
}
|
|
11221
11568
|
}
|
|
11222
11569
|
};
|
|
11223
|
-
const buildTextArea = (
|
|
11570
|
+
const buildTextArea = (config2, componentScope2) => {
|
|
11224
11571
|
const textArea = _.cloneDeep(TextArea);
|
|
11225
|
-
textArea.config.main.heading =
|
|
11226
|
-
if (
|
|
11227
|
-
textArea.config.layout = createLayoutFormat(
|
|
11572
|
+
textArea.config.main.heading = config2.label;
|
|
11573
|
+
if (config2.layout) {
|
|
11574
|
+
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11228
11575
|
}
|
|
11229
|
-
if (
|
|
11230
|
-
textArea.config.style = JSON.parse(
|
|
11576
|
+
if (config2.style) {
|
|
11577
|
+
textArea.config.style = JSON.parse(config2.style);
|
|
11231
11578
|
}
|
|
11232
|
-
if (
|
|
11233
|
-
textArea.config.main.placeholder =
|
|
11579
|
+
if (config2.placeholder) {
|
|
11580
|
+
textArea.config.main.placeholder = config2.placeholder;
|
|
11234
11581
|
}
|
|
11235
|
-
if (
|
|
11236
|
-
textArea.config.main.enableCodeEditor =
|
|
11582
|
+
if (config2.enableCodeEditor) {
|
|
11583
|
+
textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
|
|
11237
11584
|
}
|
|
11238
|
-
if (
|
|
11239
|
-
textArea.config.main.codeEditorLanguage =
|
|
11585
|
+
if (config2.codeEditorLanguage) {
|
|
11586
|
+
textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
|
|
11240
11587
|
}
|
|
11241
|
-
textArea.scope =
|
|
11588
|
+
textArea.scope = componentScope2;
|
|
11242
11589
|
return textArea;
|
|
11243
11590
|
};
|
|
11244
11591
|
var cardSlider = {
|
|
@@ -11253,13 +11600,13 @@ var cardSlider = {
|
|
|
11253
11600
|
main: {}
|
|
11254
11601
|
}
|
|
11255
11602
|
};
|
|
11256
|
-
const buildSlider = (
|
|
11603
|
+
const buildSlider = (config2, componentScope2) => {
|
|
11257
11604
|
const slider = _.cloneDeep(cardSlider);
|
|
11258
|
-
if (
|
|
11259
|
-
slider.scope =
|
|
11605
|
+
if (config2.name) {
|
|
11606
|
+
slider.scope = componentScope2;
|
|
11260
11607
|
}
|
|
11261
|
-
if (
|
|
11262
|
-
slider.config.layout = createLayoutFormat(
|
|
11608
|
+
if (config2.layout) {
|
|
11609
|
+
slider.config.layout = createLayoutFormat(config2.layout);
|
|
11263
11610
|
}
|
|
11264
11611
|
return slider;
|
|
11265
11612
|
};
|
|
@@ -11276,49 +11623,57 @@ const Checkbox = {
|
|
|
11276
11623
|
}
|
|
11277
11624
|
}
|
|
11278
11625
|
};
|
|
11279
|
-
const buildCheckbox = (
|
|
11626
|
+
const buildCheckbox = (config2, componentScope2) => {
|
|
11280
11627
|
const check = _.cloneDeep(Checkbox);
|
|
11281
|
-
check.scope =
|
|
11282
|
-
check.config.main.label =
|
|
11283
|
-
if (
|
|
11284
|
-
check.config.layout = createLayoutFormat(
|
|
11628
|
+
check.scope = componentScope2;
|
|
11629
|
+
check.config.main.label = config2.label;
|
|
11630
|
+
if (config2.layout) {
|
|
11631
|
+
check.config.layout = createLayoutFormat(config2.layout);
|
|
11285
11632
|
}
|
|
11286
|
-
if (
|
|
11287
|
-
check.config.style = JSON.parse(
|
|
11633
|
+
if (config2.style) {
|
|
11634
|
+
check.config.style = JSON.parse(config2.style);
|
|
11288
11635
|
}
|
|
11289
11636
|
return check;
|
|
11290
11637
|
};
|
|
11291
|
-
const buildLineGraph = (
|
|
11638
|
+
const buildLineGraph = (config2, componentScope2) => {
|
|
11292
11639
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11293
|
-
if (
|
|
11294
|
-
lineGraph.config.layout = createLayoutFormat(
|
|
11640
|
+
if (config2.layout) {
|
|
11641
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11295
11642
|
}
|
|
11296
|
-
lineGraph.config.main.header =
|
|
11297
|
-
if (
|
|
11298
|
-
lineGraph.config.style.containerStyle.height =
|
|
11643
|
+
lineGraph.config.main.header = config2.heading;
|
|
11644
|
+
if (config2.height) {
|
|
11645
|
+
lineGraph.config.style.containerStyle.height = config2.height;
|
|
11299
11646
|
}
|
|
11300
|
-
if (
|
|
11301
|
-
lineGraph.config.
|
|
11647
|
+
if (config2.leftMargin) {
|
|
11648
|
+
lineGraph.config.style.labelStyle.margin = {
|
|
11649
|
+
left: config2.leftMargin
|
|
11650
|
+
};
|
|
11651
|
+
}
|
|
11652
|
+
if (config2.bottomLabel) {
|
|
11653
|
+
lineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
11302
11654
|
}
|
|
11303
|
-
if (
|
|
11304
|
-
lineGraph.config.main.yAxisValue =
|
|
11655
|
+
if (config2.yAxisValue) {
|
|
11656
|
+
lineGraph.config.main.yAxisValue = config2.yAxisValue;
|
|
11305
11657
|
}
|
|
11306
|
-
if (
|
|
11307
|
-
lineGraph.config.main.xAxisValue =
|
|
11658
|
+
if (config2.xAxisValue) {
|
|
11659
|
+
lineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11308
11660
|
}
|
|
11309
|
-
if (
|
|
11310
|
-
lineGraph.config.main.leftLabel =
|
|
11661
|
+
if (config2.leftLabel) {
|
|
11662
|
+
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
11311
11663
|
}
|
|
11312
|
-
if (
|
|
11313
|
-
lineGraph.config.main.
|
|
11664
|
+
if (config2.legendHide) {
|
|
11665
|
+
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11314
11666
|
}
|
|
11315
|
-
if (
|
|
11316
|
-
lineGraph.config.main.
|
|
11667
|
+
if (config2.bottomAxisAngle) {
|
|
11668
|
+
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11317
11669
|
}
|
|
11318
|
-
if (
|
|
11319
|
-
lineGraph.config.
|
|
11670
|
+
if (config2.legendLabels) {
|
|
11671
|
+
lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
11320
11672
|
}
|
|
11321
|
-
|
|
11673
|
+
if (config2.pieArcColors) {
|
|
11674
|
+
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
11675
|
+
}
|
|
11676
|
+
lineGraph.scope = componentScope2;
|
|
11322
11677
|
return lineGraph;
|
|
11323
11678
|
};
|
|
11324
11679
|
const RadioUiSchema = {
|
|
@@ -11336,25 +11691,25 @@ const RadioUiSchema = {
|
|
|
11336
11691
|
}
|
|
11337
11692
|
}
|
|
11338
11693
|
};
|
|
11339
|
-
const buildRadio = (
|
|
11694
|
+
const buildRadio = (config2, componentScope2) => {
|
|
11340
11695
|
const Radio = _.cloneDeep(RadioUiSchema);
|
|
11341
|
-
Radio.scope =
|
|
11342
|
-
Radio.config.main.label =
|
|
11343
|
-
if (
|
|
11344
|
-
Radio.config.layout = createLayoutFormat(
|
|
11696
|
+
Radio.scope = componentScope2;
|
|
11697
|
+
Radio.config.main.label = config2.label;
|
|
11698
|
+
if (config2.layout) {
|
|
11699
|
+
Radio.config.layout = createLayoutFormat(config2.layout);
|
|
11345
11700
|
}
|
|
11346
|
-
if (
|
|
11347
|
-
Radio.config.main.options =
|
|
11701
|
+
if (config2.sectionLabels) {
|
|
11702
|
+
Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
|
|
11348
11703
|
}
|
|
11349
|
-
if (
|
|
11350
|
-
Radio.config.style = JSON.parse(
|
|
11704
|
+
if (config2.style) {
|
|
11705
|
+
Radio.config.style = JSON.parse(config2.style);
|
|
11351
11706
|
}
|
|
11352
11707
|
return Radio;
|
|
11353
11708
|
};
|
|
11354
|
-
const buildEmptyBox = (
|
|
11709
|
+
const buildEmptyBox = (config2, componentScope2) => {
|
|
11355
11710
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11356
|
-
if (
|
|
11357
|
-
EmptyBox.config.layout = createLayoutFormat(
|
|
11711
|
+
if (config2.layout) {
|
|
11712
|
+
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
11358
11713
|
}
|
|
11359
11714
|
return EmptyBox;
|
|
11360
11715
|
};
|
|
@@ -11369,9 +11724,9 @@ const ArrayUiSchema = {
|
|
|
11369
11724
|
}
|
|
11370
11725
|
}
|
|
11371
11726
|
};
|
|
11372
|
-
const buildArray = (
|
|
11727
|
+
const buildArray = (config2, componentScope2) => {
|
|
11373
11728
|
const array = _.cloneDeep(ArrayUiSchema);
|
|
11374
|
-
array.scope =
|
|
11729
|
+
array.scope = componentScope2;
|
|
11375
11730
|
return array;
|
|
11376
11731
|
};
|
|
11377
11732
|
const TextField = {
|
|
@@ -11389,17 +11744,17 @@ const TextField = {
|
|
|
11389
11744
|
}
|
|
11390
11745
|
}
|
|
11391
11746
|
};
|
|
11392
|
-
const buildAdhaarField = (
|
|
11747
|
+
const buildAdhaarField = (config2, componentScope2) => {
|
|
11393
11748
|
const inputField = _.cloneDeep(TextField);
|
|
11394
|
-
inputField.config.main.label =
|
|
11395
|
-
if (
|
|
11396
|
-
inputField.config.style = JSON.parse(
|
|
11749
|
+
inputField.config.main.label = config2.label;
|
|
11750
|
+
if (config2.style) {
|
|
11751
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11397
11752
|
}
|
|
11398
|
-
if (
|
|
11399
|
-
inputField.config.layout = createLayoutFormat(
|
|
11753
|
+
if (config2.layout) {
|
|
11754
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11400
11755
|
}
|
|
11401
|
-
inputField.config.main.errorMessage = `${
|
|
11402
|
-
inputField.scope =
|
|
11756
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11757
|
+
inputField.scope = componentScope2;
|
|
11403
11758
|
return inputField;
|
|
11404
11759
|
};
|
|
11405
11760
|
const PanField = {
|
|
@@ -11417,17 +11772,17 @@ const PanField = {
|
|
|
11417
11772
|
}
|
|
11418
11773
|
}
|
|
11419
11774
|
};
|
|
11420
|
-
const buildPanField = (
|
|
11775
|
+
const buildPanField = (config2, componentScope2) => {
|
|
11421
11776
|
const inputField = _.cloneDeep(PanField);
|
|
11422
|
-
inputField.config.main.label =
|
|
11423
|
-
if (
|
|
11424
|
-
inputField.config.style = JSON.parse(
|
|
11777
|
+
inputField.config.main.label = config2.label;
|
|
11778
|
+
if (config2.style) {
|
|
11779
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11425
11780
|
}
|
|
11426
|
-
if (
|
|
11427
|
-
inputField.config.layout = createLayoutFormat(
|
|
11781
|
+
if (config2.layout) {
|
|
11782
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11428
11783
|
}
|
|
11429
|
-
inputField.config.main.errorMessage = `${
|
|
11430
|
-
inputField.scope =
|
|
11784
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11785
|
+
inputField.scope = componentScope2;
|
|
11431
11786
|
return inputField;
|
|
11432
11787
|
};
|
|
11433
11788
|
const FileInput = {
|
|
@@ -11449,15 +11804,15 @@ const FileInput = {
|
|
|
11449
11804
|
}
|
|
11450
11805
|
}
|
|
11451
11806
|
};
|
|
11452
|
-
const buildFileInput = (
|
|
11807
|
+
const buildFileInput = (config2, componentScope2) => {
|
|
11453
11808
|
const box = _.cloneDeep(FileInput);
|
|
11454
|
-
box.scope =
|
|
11455
|
-
box.config.main.label =
|
|
11456
|
-
if (
|
|
11457
|
-
box.config.layout = createLayoutFormat(
|
|
11809
|
+
box.scope = componentScope2;
|
|
11810
|
+
box.config.main.label = config2.label;
|
|
11811
|
+
if (config2.layout) {
|
|
11812
|
+
box.config.layout = createLayoutFormat(config2.layout);
|
|
11458
11813
|
}
|
|
11459
|
-
if (
|
|
11460
|
-
box.config.style = JSON.parse(
|
|
11814
|
+
if (config2.style) {
|
|
11815
|
+
box.config.style = JSON.parse(config2.style);
|
|
11461
11816
|
}
|
|
11462
11817
|
return box;
|
|
11463
11818
|
};
|
|
@@ -11477,26 +11832,26 @@ const Stepper = {
|
|
|
11477
11832
|
},
|
|
11478
11833
|
"elements": []
|
|
11479
11834
|
};
|
|
11480
|
-
const buildStepper = (
|
|
11835
|
+
const buildStepper = (config2, componentScope2) => {
|
|
11481
11836
|
const stepper = _.cloneDeep(Stepper);
|
|
11482
|
-
stepper.scope =
|
|
11483
|
-
stepper.config.main.resetButton =
|
|
11484
|
-
if (
|
|
11485
|
-
stepper.config.main.defaultButtonAvailable =
|
|
11486
|
-
}
|
|
11487
|
-
stepper.config.main.resetText =
|
|
11488
|
-
stepper.config.main.completeText =
|
|
11489
|
-
stepper.config.main.orientation =
|
|
11490
|
-
if (
|
|
11491
|
-
stepper.config.main.steps =
|
|
11837
|
+
stepper.scope = componentScope2;
|
|
11838
|
+
stepper.config.main.resetButton = config2.resetButton === "YES" ? true : false;
|
|
11839
|
+
if (config2.defaultButtonAvailable) {
|
|
11840
|
+
stepper.config.main.defaultButtonAvailable = config2.defaultButtonAvailable === "YES" ? true : false;
|
|
11841
|
+
}
|
|
11842
|
+
stepper.config.main.resetText = config2.resetText || "ResetData";
|
|
11843
|
+
stepper.config.main.completeText = config2.completeText || "Complete Text";
|
|
11844
|
+
stepper.config.main.orientation = config2.orientation || "horizontal";
|
|
11845
|
+
if (config2.sectionLabels) {
|
|
11846
|
+
stepper.config.main.steps = config2.sectionLabels.map((e, i) => {
|
|
11492
11847
|
return { label: e.label, id: i };
|
|
11493
11848
|
});
|
|
11494
11849
|
}
|
|
11495
|
-
if (
|
|
11496
|
-
stepper.config.layout = createLayoutFormat(
|
|
11850
|
+
if (config2.layout) {
|
|
11851
|
+
stepper.config.layout = createLayoutFormat(config2.layout);
|
|
11497
11852
|
}
|
|
11498
|
-
if (
|
|
11499
|
-
stepper.config.style = JSON.parse(
|
|
11853
|
+
if (config2.style) {
|
|
11854
|
+
stepper.config.style = JSON.parse(config2.style);
|
|
11500
11855
|
}
|
|
11501
11856
|
return stepper;
|
|
11502
11857
|
};
|
|
@@ -11524,18 +11879,18 @@ const PopUP = {
|
|
|
11524
11879
|
style: {}
|
|
11525
11880
|
}
|
|
11526
11881
|
};
|
|
11527
|
-
const buildPopUp = (
|
|
11882
|
+
const buildPopUp = (config2, componentScope2) => {
|
|
11528
11883
|
const popup = _.cloneDeep(PopUP);
|
|
11529
|
-
popup.scope =
|
|
11530
|
-
popup.config.main.title =
|
|
11531
|
-
popup.config.main.fullScreen =
|
|
11532
|
-
popup.config.main.fullWidth =
|
|
11533
|
-
popup.config.main.maxWidth =
|
|
11534
|
-
if (
|
|
11535
|
-
popup.config.layout = createLayoutFormat(
|
|
11884
|
+
popup.scope = componentScope2;
|
|
11885
|
+
popup.config.main.title = config2.label;
|
|
11886
|
+
popup.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
|
|
11887
|
+
popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
11888
|
+
popup.config.main.maxWidth = config2.maxWidth || false;
|
|
11889
|
+
if (config2.layout) {
|
|
11890
|
+
popup.config.layout = createLayoutFormat(config2.layout);
|
|
11536
11891
|
}
|
|
11537
|
-
if (
|
|
11538
|
-
PopUP.config.style = JSON.parse(
|
|
11892
|
+
if (config2.style) {
|
|
11893
|
+
PopUP.config.style = JSON.parse(config2.style);
|
|
11539
11894
|
}
|
|
11540
11895
|
return popup;
|
|
11541
11896
|
};
|
|
@@ -11555,30 +11910,30 @@ const dataGrid = {
|
|
|
11555
11910
|
style: {}
|
|
11556
11911
|
}
|
|
11557
11912
|
};
|
|
11558
|
-
const buildDataGrid = (
|
|
11913
|
+
const buildDataGrid = (config2, componentScope2) => {
|
|
11559
11914
|
const DataGrid = _.cloneDeep(dataGrid);
|
|
11560
|
-
DataGrid.scope =
|
|
11561
|
-
if (
|
|
11562
|
-
DataGrid.config.main.elevation = +
|
|
11915
|
+
DataGrid.scope = componentScope2;
|
|
11916
|
+
if (config2.elevation) {
|
|
11917
|
+
DataGrid.config.main.elevation = +config2.elevation;
|
|
11563
11918
|
}
|
|
11564
|
-
DataGrid.config.main.divider =
|
|
11565
|
-
if (
|
|
11566
|
-
DataGrid.config.main.height = `${
|
|
11919
|
+
DataGrid.config.main.divider = config2.divider === "NO" ? false : true;
|
|
11920
|
+
if (config2.height) {
|
|
11921
|
+
DataGrid.config.main.height = `${config2.height}px`;
|
|
11567
11922
|
}
|
|
11568
|
-
if (
|
|
11569
|
-
DataGrid.config.main.justifyContent =
|
|
11923
|
+
if (config2.justifyContent) {
|
|
11924
|
+
DataGrid.config.main.justifyContent = config2.justifyContent;
|
|
11570
11925
|
}
|
|
11571
|
-
if (
|
|
11572
|
-
DataGrid.config.main.label =
|
|
11926
|
+
if (config2.label) {
|
|
11927
|
+
DataGrid.config.main.label = config2.label;
|
|
11573
11928
|
}
|
|
11574
|
-
if (
|
|
11575
|
-
DataGrid.config.layout = createLayoutFormat(
|
|
11929
|
+
if (config2.layout) {
|
|
11930
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
11576
11931
|
}
|
|
11577
|
-
if (
|
|
11578
|
-
DataGrid.config.cardLayout = createLayoutFormat(
|
|
11932
|
+
if (config2.cardLayout) {
|
|
11933
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
11579
11934
|
}
|
|
11580
|
-
if (
|
|
11581
|
-
DataGrid.config.style = JSON.parse(
|
|
11935
|
+
if (config2.style) {
|
|
11936
|
+
DataGrid.config.style = JSON.parse(config2.style);
|
|
11582
11937
|
}
|
|
11583
11938
|
return DataGrid;
|
|
11584
11939
|
};
|
|
@@ -11589,7 +11944,7 @@ const InputSlider = {
|
|
|
11589
11944
|
widget: "InputSlider"
|
|
11590
11945
|
},
|
|
11591
11946
|
config: {
|
|
11592
|
-
layout: 12,
|
|
11947
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
11593
11948
|
main: {
|
|
11594
11949
|
limitToMax: false,
|
|
11595
11950
|
max: 1e4,
|
|
@@ -11599,27 +11954,27 @@ const InputSlider = {
|
|
|
11599
11954
|
}
|
|
11600
11955
|
}
|
|
11601
11956
|
};
|
|
11602
|
-
const buildInputSlider = (
|
|
11957
|
+
const buildInputSlider = (config2, componentScope2) => {
|
|
11603
11958
|
const inputSlider = _.cloneDeep(InputSlider);
|
|
11604
|
-
inputSlider.scope =
|
|
11605
|
-
inputSlider.config.main.label =
|
|
11606
|
-
if (
|
|
11607
|
-
inputSlider.config.layout = createLayoutFormat(
|
|
11959
|
+
inputSlider.scope = componentScope2;
|
|
11960
|
+
inputSlider.config.main.label = config2.label;
|
|
11961
|
+
if (config2.layout) {
|
|
11962
|
+
inputSlider.config.layout = createLayoutFormat(config2.layout);
|
|
11608
11963
|
}
|
|
11609
|
-
if (
|
|
11610
|
-
inputSlider.config.main.limitToMax =
|
|
11964
|
+
if (config2.limitToMax) {
|
|
11965
|
+
inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
|
|
11611
11966
|
}
|
|
11612
|
-
if (
|
|
11613
|
-
inputSlider.config.main.max =
|
|
11967
|
+
if (config2.max) {
|
|
11968
|
+
inputSlider.config.main.max = config2.max;
|
|
11614
11969
|
}
|
|
11615
|
-
if (
|
|
11616
|
-
inputSlider.config.main.step =
|
|
11970
|
+
if (config2.step) {
|
|
11971
|
+
inputSlider.config.main.step = config2.step;
|
|
11617
11972
|
}
|
|
11618
|
-
if (
|
|
11619
|
-
inputSlider.config.main.min =
|
|
11973
|
+
if (config2.min) {
|
|
11974
|
+
inputSlider.config.main.min = config2.min;
|
|
11620
11975
|
}
|
|
11621
|
-
if (
|
|
11622
|
-
inputSlider.config.main.defaultStyle = JSON.parse(
|
|
11976
|
+
if (config2.style) {
|
|
11977
|
+
inputSlider.config.main.defaultStyle = JSON.parse(config2.style);
|
|
11623
11978
|
}
|
|
11624
11979
|
return inputSlider;
|
|
11625
11980
|
};
|
|
@@ -11645,38 +12000,66 @@ const TreeMap = {
|
|
|
11645
12000
|
},
|
|
11646
12001
|
elements: []
|
|
11647
12002
|
};
|
|
11648
|
-
const buildTreeMap = (
|
|
12003
|
+
const buildTreeMap = (config2, componentScope2) => {
|
|
11649
12004
|
const treMap = _.cloneDeep(TreeMap);
|
|
11650
|
-
treMap.scope =
|
|
11651
|
-
if (
|
|
11652
|
-
treMap.config.main.header =
|
|
12005
|
+
treMap.scope = componentScope2;
|
|
12006
|
+
if (config2.label) {
|
|
12007
|
+
treMap.config.main.header = config2.label;
|
|
11653
12008
|
}
|
|
11654
|
-
if (
|
|
11655
|
-
treMap.config.layout = createLayoutFormat(
|
|
12009
|
+
if (config2.layout) {
|
|
12010
|
+
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
11656
12011
|
}
|
|
11657
|
-
if (
|
|
11658
|
-
treMap.config.main.orientation =
|
|
12012
|
+
if (config2.orientation) {
|
|
12013
|
+
treMap.config.main.orientation = config2.orientation;
|
|
11659
12014
|
}
|
|
11660
|
-
if (
|
|
11661
|
-
treMap.config.main.linkType =
|
|
12015
|
+
if (config2.linkType) {
|
|
12016
|
+
treMap.config.main.linkType = config2.linkType;
|
|
11662
12017
|
}
|
|
11663
|
-
if (
|
|
11664
|
-
treMap.config.main.graphHeight =
|
|
12018
|
+
if (config2.graphHeight) {
|
|
12019
|
+
treMap.config.main.graphHeight = config2.graphHeight;
|
|
11665
12020
|
}
|
|
11666
|
-
if (
|
|
11667
|
-
treMap.config.main.graphWidth =
|
|
12021
|
+
if (config2.graphWidth) {
|
|
12022
|
+
treMap.config.main.graphWidth = config2.graphWidth;
|
|
11668
12023
|
}
|
|
11669
|
-
if (
|
|
11670
|
-
treMap.config.main.graphZoomHeight =
|
|
12024
|
+
if (config2.graphZoomHeight) {
|
|
12025
|
+
treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
|
|
11671
12026
|
}
|
|
11672
|
-
if (
|
|
11673
|
-
treMap.config.main.graphZoomWidth =
|
|
12027
|
+
if (config2.graphZoomWidth) {
|
|
12028
|
+
treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
|
|
11674
12029
|
}
|
|
11675
|
-
if (
|
|
11676
|
-
treMap.config.style = JSON.parse(
|
|
12030
|
+
if (config2.style) {
|
|
12031
|
+
treMap.config.style = JSON.parse(config2.style);
|
|
11677
12032
|
}
|
|
11678
12033
|
return treMap;
|
|
11679
12034
|
};
|
|
12035
|
+
var Thought = {
|
|
12036
|
+
type: "Control",
|
|
12037
|
+
scope: "#/properties/path",
|
|
12038
|
+
options: {
|
|
12039
|
+
widget: "Thought"
|
|
12040
|
+
},
|
|
12041
|
+
config: {
|
|
12042
|
+
layout: { xs: 11.5, sm: 11.5, md: 8, lg: 8 },
|
|
12043
|
+
main: {}
|
|
12044
|
+
}
|
|
12045
|
+
};
|
|
12046
|
+
const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
12047
|
+
const thought = _.cloneDeep(Thought);
|
|
12048
|
+
thought.scope = componentScope2;
|
|
12049
|
+
if (config2.thought) {
|
|
12050
|
+
thought.config.main.thought = `${config2.thought}`;
|
|
12051
|
+
}
|
|
12052
|
+
if (config2.layout) {
|
|
12053
|
+
thought.config.layout = createLayoutFormat(config2.layout);
|
|
12054
|
+
}
|
|
12055
|
+
if (config2.label) {
|
|
12056
|
+
thought.config.main.label = config2.label;
|
|
12057
|
+
}
|
|
12058
|
+
if (config2.style) {
|
|
12059
|
+
thought.config.style = JSON.parse(config2.style);
|
|
12060
|
+
}
|
|
12061
|
+
return thought;
|
|
12062
|
+
};
|
|
11680
12063
|
let schema = {
|
|
11681
12064
|
type: "object",
|
|
11682
12065
|
properties: {},
|
|
@@ -11766,12 +12149,12 @@ function buildRule(configObj, tableName, arrayHolderName) {
|
|
|
11766
12149
|
});
|
|
11767
12150
|
}
|
|
11768
12151
|
}
|
|
11769
|
-
const buildSchema = (
|
|
11770
|
-
buildRule(
|
|
11771
|
-
if (
|
|
11772
|
-
if (
|
|
11773
|
-
if (!schema.properties[
|
|
11774
|
-
schema.properties[
|
|
12152
|
+
const buildSchema = (config2, tableName, isArrayType) => {
|
|
12153
|
+
buildRule(config2, tableName, isArrayType);
|
|
12154
|
+
if (config2 == null ? void 0 : config2.elements) {
|
|
12155
|
+
if (config2.type == "Table" || config2.type == "Array") {
|
|
12156
|
+
if (!schema.properties[config2.name]) {
|
|
12157
|
+
schema.properties[config2.name] = {
|
|
11775
12158
|
type: "array",
|
|
11776
12159
|
items: {
|
|
11777
12160
|
type: "object",
|
|
@@ -11780,150 +12163,156 @@ const buildSchema = (config, tableName, isArrayType) => {
|
|
|
11780
12163
|
}
|
|
11781
12164
|
};
|
|
11782
12165
|
}
|
|
11783
|
-
|
|
11784
|
-
buildSchema(e,
|
|
12166
|
+
config2.elements.map((e, elemInd) => {
|
|
12167
|
+
buildSchema(e, config2.name, config2.type === "Array" ? true : false);
|
|
11785
12168
|
});
|
|
11786
12169
|
} else {
|
|
11787
|
-
|
|
12170
|
+
config2.elements.map((e, elemInd) => {
|
|
11788
12171
|
buildSchema(e);
|
|
11789
12172
|
});
|
|
11790
12173
|
}
|
|
11791
12174
|
}
|
|
11792
12175
|
return schema;
|
|
11793
12176
|
};
|
|
11794
|
-
const buildUiSchema = (
|
|
12177
|
+
const buildUiSchema = (config2, store2) => {
|
|
11795
12178
|
let elements = {};
|
|
11796
|
-
const
|
|
11797
|
-
switch (
|
|
12179
|
+
const componentScope2 = `#/properties/${config2.name}`;
|
|
12180
|
+
switch (config2.type) {
|
|
11798
12181
|
case "TreeMap":
|
|
11799
|
-
elements = buildTreeMap(
|
|
12182
|
+
elements = buildTreeMap(config2, componentScope2);
|
|
11800
12183
|
break;
|
|
11801
12184
|
case "DateTime":
|
|
11802
|
-
elements = buildDateTime(
|
|
12185
|
+
elements = buildDateTime(config2, componentScope2);
|
|
11803
12186
|
break;
|
|
11804
12187
|
case "InputSlider":
|
|
11805
|
-
elements = buildInputSlider(
|
|
12188
|
+
elements = buildInputSlider(config2, componentScope2);
|
|
11806
12189
|
break;
|
|
11807
12190
|
case "DataGrid":
|
|
11808
|
-
elements = buildDataGrid(
|
|
12191
|
+
elements = buildDataGrid(config2, componentScope2);
|
|
11809
12192
|
break;
|
|
11810
12193
|
case "Stepper":
|
|
11811
|
-
elements = buildStepper(
|
|
12194
|
+
elements = buildStepper(config2, componentScope2);
|
|
11812
12195
|
break;
|
|
11813
12196
|
case "PopUp":
|
|
11814
|
-
elements = buildPopUp(
|
|
12197
|
+
elements = buildPopUp(config2, componentScope2);
|
|
11815
12198
|
break;
|
|
11816
12199
|
case "FileInput":
|
|
11817
|
-
elements = buildFileInput(
|
|
12200
|
+
elements = buildFileInput(config2, componentScope2);
|
|
11818
12201
|
break;
|
|
11819
12202
|
case "AadharcardText":
|
|
11820
|
-
elements = buildAdhaarField(
|
|
12203
|
+
elements = buildAdhaarField(config2, componentScope2);
|
|
11821
12204
|
break;
|
|
11822
12205
|
case "PanCardText":
|
|
11823
|
-
elements = buildPanField(
|
|
12206
|
+
elements = buildPanField(config2, componentScope2);
|
|
11824
12207
|
break;
|
|
11825
12208
|
case "TabSection":
|
|
11826
|
-
elements = buildTabSection(
|
|
12209
|
+
elements = buildTabSection(config2, componentScope2);
|
|
11827
12210
|
break;
|
|
11828
12211
|
case "RunnerBoyProgressBar":
|
|
11829
|
-
elements = RunnerBoyProgressbar(
|
|
12212
|
+
elements = RunnerBoyProgressbar(config2, componentScope2);
|
|
11830
12213
|
break;
|
|
11831
12214
|
case "WrapperSection":
|
|
11832
|
-
elements = buildWrapperSection(
|
|
12215
|
+
elements = buildWrapperSection(config2, componentScope2);
|
|
11833
12216
|
break;
|
|
11834
12217
|
case "Text":
|
|
11835
|
-
elements = buildTextField(
|
|
12218
|
+
elements = buildTextField(config2, componentScope2);
|
|
11836
12219
|
break;
|
|
11837
12220
|
case "TextArea":
|
|
11838
|
-
elements = buildTextArea(
|
|
12221
|
+
elements = buildTextArea(config2, componentScope2);
|
|
11839
12222
|
break;
|
|
11840
12223
|
case "Date":
|
|
11841
|
-
elements = buildDate(
|
|
12224
|
+
elements = buildDate(config2, componentScope2);
|
|
11842
12225
|
break;
|
|
11843
12226
|
case "Select":
|
|
11844
|
-
elements = buildSelect(
|
|
12227
|
+
elements = buildSelect(config2, componentScope2);
|
|
11845
12228
|
break;
|
|
11846
12229
|
case "Radio":
|
|
11847
|
-
elements = buildRadio(
|
|
12230
|
+
elements = buildRadio(config2, componentScope2);
|
|
11848
12231
|
break;
|
|
11849
12232
|
case "Button":
|
|
11850
|
-
elements = buildButton(
|
|
12233
|
+
elements = buildButton(config2, componentScope2);
|
|
11851
12234
|
break;
|
|
11852
12235
|
case "Table":
|
|
11853
|
-
elements = buildTable(
|
|
12236
|
+
elements = buildTable(config2, componentScope2);
|
|
11854
12237
|
break;
|
|
11855
12238
|
case "Array":
|
|
11856
|
-
elements = buildArray(
|
|
12239
|
+
elements = buildArray(config2, componentScope2);
|
|
11857
12240
|
break;
|
|
11858
12241
|
case "Box":
|
|
11859
|
-
elements = buildLabel(
|
|
12242
|
+
elements = buildLabel(config2, componentScope2);
|
|
11860
12243
|
break;
|
|
11861
12244
|
case "CheckBox":
|
|
11862
|
-
elements = buildCheckbox(
|
|
12245
|
+
elements = buildCheckbox(config2, componentScope2);
|
|
11863
12246
|
break;
|
|
11864
12247
|
case "UploadFile":
|
|
11865
|
-
elements = buildUploadFile(
|
|
12248
|
+
elements = buildUploadFile(config2, componentScope2);
|
|
11866
12249
|
break;
|
|
11867
12250
|
case "DownloadFile":
|
|
11868
|
-
elements = buildDownloadFile(
|
|
12251
|
+
elements = buildDownloadFile(config2, componentScope2);
|
|
11869
12252
|
break;
|
|
11870
12253
|
case "EmptyBox":
|
|
11871
|
-
elements = buildEmptyBox(
|
|
12254
|
+
elements = buildEmptyBox(config2);
|
|
11872
12255
|
break;
|
|
11873
12256
|
case "card":
|
|
11874
|
-
elements = buildCard(
|
|
12257
|
+
elements = buildCard(config2, componentScope2, store2);
|
|
11875
12258
|
break;
|
|
11876
12259
|
case "Graph":
|
|
11877
|
-
switch (
|
|
12260
|
+
switch (config2.graphType) {
|
|
11878
12261
|
case "BarGraph":
|
|
11879
12262
|
case "StackBarGraph":
|
|
11880
|
-
elements = buildStackbarGraph(
|
|
12263
|
+
elements = buildStackbarGraph(config2, componentScope2);
|
|
11881
12264
|
break;
|
|
11882
12265
|
case "LineGraph":
|
|
11883
|
-
elements = buildLineGraph(
|
|
12266
|
+
elements = buildLineGraph(config2, componentScope2);
|
|
11884
12267
|
break;
|
|
11885
12268
|
case "PieGraph":
|
|
11886
|
-
elements = buildPieGraph(
|
|
12269
|
+
elements = buildPieGraph(config2, componentScope2);
|
|
11887
12270
|
break;
|
|
11888
12271
|
case "HorizontalBarGraph":
|
|
11889
12272
|
case "HorizontalStackBarGraph":
|
|
11890
|
-
elements = buildHorizontalBarGraph(
|
|
12273
|
+
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12274
|
+
break;
|
|
12275
|
+
default:
|
|
12276
|
+
elements = buildStackbarGraph(config2, componentScope2);
|
|
11891
12277
|
break;
|
|
11892
12278
|
}
|
|
11893
12279
|
break;
|
|
11894
12280
|
case "ProgressBar":
|
|
11895
|
-
elements = buildProgressBar(
|
|
12281
|
+
elements = buildProgressBar(config2, componentScope2);
|
|
11896
12282
|
break;
|
|
11897
12283
|
case "SpeedoMeter":
|
|
11898
|
-
elements = buildSpeedoMeter(
|
|
12284
|
+
elements = buildSpeedoMeter(config2, componentScope2);
|
|
11899
12285
|
break;
|
|
11900
12286
|
case "ProgressBarCard":
|
|
11901
|
-
elements = buildProgressBarCard(
|
|
12287
|
+
elements = buildProgressBarCard(config2, componentScope2);
|
|
11902
12288
|
break;
|
|
11903
12289
|
case "RankCard":
|
|
11904
|
-
elements = buildRankCard(
|
|
12290
|
+
elements = buildRankCard(config2, componentScope2);
|
|
11905
12291
|
break;
|
|
11906
12292
|
case "Rank":
|
|
11907
|
-
elements = buildRollAndDice(
|
|
12293
|
+
elements = buildRollAndDice(config2, componentScope2);
|
|
11908
12294
|
break;
|
|
11909
12295
|
case "Slider":
|
|
11910
|
-
elements = buildSlider(
|
|
12296
|
+
elements = buildSlider(config2, componentScope2);
|
|
11911
12297
|
break;
|
|
11912
12298
|
case "Timer":
|
|
11913
|
-
elements = buildTimer(
|
|
12299
|
+
elements = buildTimer(config2, componentScope2);
|
|
11914
12300
|
break;
|
|
11915
12301
|
case "ColumnGroup":
|
|
11916
12302
|
elements = {
|
|
11917
|
-
accessorKey:
|
|
11918
|
-
header:
|
|
12303
|
+
accessorKey: config2.name,
|
|
12304
|
+
header: config2.label || config2.name,
|
|
11919
12305
|
elements: []
|
|
11920
12306
|
};
|
|
11921
12307
|
break;
|
|
11922
12308
|
case "MultipleSelect":
|
|
11923
|
-
elements = buildMultiSelect(
|
|
12309
|
+
elements = buildMultiSelect(config2, componentScope2);
|
|
11924
12310
|
break;
|
|
11925
12311
|
case "LeaderBoard":
|
|
11926
|
-
elements = buildLeaderBoard(
|
|
12312
|
+
elements = buildLeaderBoard(config2);
|
|
12313
|
+
break;
|
|
12314
|
+
case "Thought":
|
|
12315
|
+
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
11927
12316
|
break;
|
|
11928
12317
|
default:
|
|
11929
12318
|
schema = {
|
|
@@ -11931,19 +12320,19 @@ const buildUiSchema = (config, store2) => {
|
|
|
11931
12320
|
properties: {},
|
|
11932
12321
|
required: []
|
|
11933
12322
|
};
|
|
11934
|
-
elements = buildBasicUiSchema(
|
|
12323
|
+
elements = buildBasicUiSchema(config2);
|
|
11935
12324
|
}
|
|
11936
|
-
if (
|
|
11937
|
-
if ((
|
|
12325
|
+
if (config2 == null ? void 0 : config2.elements) {
|
|
12326
|
+
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
11938
12327
|
return elements;
|
|
11939
|
-
} else if (
|
|
12328
|
+
} else if (config2.type == "ColumnGroup") {
|
|
11940
12329
|
const sizeMap = {};
|
|
11941
|
-
if (
|
|
11942
|
-
|
|
12330
|
+
if (config2.sizeHolder) {
|
|
12331
|
+
config2.sizeHolder.map((e, i) => {
|
|
11943
12332
|
sizeMap[e.keyName] = e.value;
|
|
11944
12333
|
});
|
|
11945
12334
|
}
|
|
11946
|
-
elements.elements =
|
|
12335
|
+
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
11947
12336
|
return {
|
|
11948
12337
|
accessorKey: cellElem.name,
|
|
11949
12338
|
header: cellElem.label || cellElem.name,
|
|
@@ -11952,20 +12341,20 @@ const buildUiSchema = (config, store2) => {
|
|
|
11952
12341
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
|
|
11953
12342
|
};
|
|
11954
12343
|
});
|
|
11955
|
-
} else if (
|
|
12344
|
+
} else if (config2.type == "Table") {
|
|
11956
12345
|
const sizeMap = {};
|
|
11957
12346
|
const filterMap = {};
|
|
11958
|
-
if (
|
|
11959
|
-
|
|
12347
|
+
if (config2.sizeHolder) {
|
|
12348
|
+
config2.sizeHolder.map((e, i) => {
|
|
11960
12349
|
sizeMap[e.keyName] = e.value;
|
|
11961
12350
|
});
|
|
11962
12351
|
}
|
|
11963
|
-
if (
|
|
11964
|
-
|
|
12352
|
+
if (config2.enableColumnFilter) {
|
|
12353
|
+
config2.enableColumnFilter.map((e) => {
|
|
11965
12354
|
filterMap[e.keyName] = true;
|
|
11966
12355
|
});
|
|
11967
12356
|
}
|
|
11968
|
-
elements.elements =
|
|
12357
|
+
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
11969
12358
|
var _a, _b;
|
|
11970
12359
|
if (cellElem.type) {
|
|
11971
12360
|
return {
|
|
@@ -11976,7 +12365,7 @@ const buildUiSchema = (config, store2) => {
|
|
|
11976
12365
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
11977
12366
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
11978
12367
|
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
|
|
11979
|
-
columnFilterModeOptions:
|
|
12368
|
+
columnFilterModeOptions: config2.filteringOptions
|
|
11980
12369
|
};
|
|
11981
12370
|
} else {
|
|
11982
12371
|
return {
|
|
@@ -11985,16 +12374,16 @@ const buildUiSchema = (config, store2) => {
|
|
|
11985
12374
|
header: cellElem.label || cellElem.name,
|
|
11986
12375
|
size: sizeMap[cellElem.name] || 180,
|
|
11987
12376
|
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
|
|
11988
|
-
columnFilterModeOptions:
|
|
12377
|
+
columnFilterModeOptions: config2.filteringOptions
|
|
11989
12378
|
};
|
|
11990
12379
|
}
|
|
11991
12380
|
});
|
|
11992
|
-
} else if (
|
|
11993
|
-
elements.options.detail.elements =
|
|
12381
|
+
} else if (config2.type == "Array") {
|
|
12382
|
+
elements.options.detail.elements = config2.elements.map((e, elemInd) => {
|
|
11994
12383
|
return buildUiSchema(e, store2);
|
|
11995
12384
|
});
|
|
11996
12385
|
} else {
|
|
11997
|
-
elements.elements =
|
|
12386
|
+
elements.elements = config2.elements.map((e, elemInd) => {
|
|
11998
12387
|
return buildUiSchema(e, store2);
|
|
11999
12388
|
});
|
|
12000
12389
|
}
|