impaktapps-ui-builder 0.0.99 → 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 +1827 -1484
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- 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 +28 -21
- 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 +9 -21
- 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 +3 -8
- 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 +8 -10
- 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 +13 -8
- 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 +9 -27
- 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 +24 -20
- package/src/impaktapps-ui-builder/runtime/services/service.ts +47 -48
|
@@ -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
|
}
|
|
@@ -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":
|
|
@@ -7612,6 +7960,11 @@ const buildPropertiesSection = function(type) {
|
|
|
7612
7960
|
emptyBox$1("MultipleSelectEmpty2")
|
|
7613
7961
|
];
|
|
7614
7962
|
break;
|
|
7963
|
+
case "Thought":
|
|
7964
|
+
uiSchema.elements = [
|
|
7965
|
+
getTextArea("thought", "Today's thought", false)
|
|
7966
|
+
];
|
|
7967
|
+
break;
|
|
7615
7968
|
}
|
|
7616
7969
|
return uiSchema;
|
|
7617
7970
|
};
|
|
@@ -7685,6 +8038,27 @@ const TableSection = (theme) => {
|
|
|
7685
8038
|
}
|
|
7686
8039
|
}
|
|
7687
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
|
+
}
|
|
7688
8062
|
}
|
|
7689
8063
|
]
|
|
7690
8064
|
},
|
|
@@ -7744,6 +8118,26 @@ const TableSection = (theme) => {
|
|
|
7744
8118
|
}
|
|
7745
8119
|
}
|
|
7746
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
|
+
}
|
|
7747
8141
|
}
|
|
7748
8142
|
]
|
|
7749
8143
|
}
|
|
@@ -7880,8 +8274,8 @@ var buildConfig = (FormData) => {
|
|
|
7880
8274
|
component = { ...formData, ...component };
|
|
7881
8275
|
return component;
|
|
7882
8276
|
};
|
|
7883
|
-
const createLayoutFormat = (
|
|
7884
|
-
if (_.isEmpty(
|
|
8277
|
+
const createLayoutFormat = (config2) => {
|
|
8278
|
+
if (_.isEmpty(config2)) {
|
|
7885
8279
|
return {
|
|
7886
8280
|
xs: 12,
|
|
7887
8281
|
sm: 12,
|
|
@@ -7890,17 +8284,17 @@ const createLayoutFormat = (config) => {
|
|
|
7890
8284
|
};
|
|
7891
8285
|
}
|
|
7892
8286
|
let data = {};
|
|
7893
|
-
|
|
8287
|
+
config2.map((e) => {
|
|
7894
8288
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
7895
8289
|
});
|
|
7896
8290
|
return data;
|
|
7897
8291
|
};
|
|
7898
|
-
const flatObjectValueInArray = (
|
|
7899
|
-
if (
|
|
8292
|
+
const flatObjectValueInArray = (config2 = []) => {
|
|
8293
|
+
if (config2.length < 1) {
|
|
7900
8294
|
return;
|
|
7901
8295
|
}
|
|
7902
|
-
const keyName = Object.keys(
|
|
7903
|
-
const data =
|
|
8296
|
+
const keyName = Object.keys(config2[0])[0];
|
|
8297
|
+
const data = config2.map((e) => {
|
|
7904
8298
|
return e[keyName];
|
|
7905
8299
|
});
|
|
7906
8300
|
return data;
|
|
@@ -7908,9 +8302,9 @@ const flatObjectValueInArray = (config = []) => {
|
|
|
7908
8302
|
const clearFromSessionStorage = () => {
|
|
7909
8303
|
sessionStorage.removeItem("pageFormdata");
|
|
7910
8304
|
};
|
|
7911
|
-
const getNavigationHistory = (
|
|
8305
|
+
const getNavigationHistory = (config2, path) => {
|
|
7912
8306
|
if (path) {
|
|
7913
|
-
let urlRoutes =
|
|
8307
|
+
let urlRoutes = config2.name;
|
|
7914
8308
|
const pathArrayAll = path.split(".");
|
|
7915
8309
|
const arr = [];
|
|
7916
8310
|
pathArrayAll.map((e, i) => {
|
|
@@ -7921,7 +8315,7 @@ const getNavigationHistory = (config, path) => {
|
|
|
7921
8315
|
arr.push(`${arr[i - 1]}.${e}`);
|
|
7922
8316
|
});
|
|
7923
8317
|
arr.map((e) => {
|
|
7924
|
-
const data = _.get(
|
|
8318
|
+
const data = _.get(config2, e);
|
|
7925
8319
|
if (data) {
|
|
7926
8320
|
urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
|
|
7927
8321
|
} else {
|
|
@@ -7955,16 +8349,16 @@ const getFormdataFromSessionStorage = (path) => {
|
|
|
7955
8349
|
}
|
|
7956
8350
|
return returnValue || pageFormdata;
|
|
7957
8351
|
};
|
|
7958
|
-
async function saveHandler(store2, service2, submitHandler
|
|
8352
|
+
async function saveHandler(store2, service2, submitHandler) {
|
|
7959
8353
|
var _a, _b;
|
|
7960
8354
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7961
8355
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7962
8356
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
7963
|
-
const
|
|
8357
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
7964
8358
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7965
8359
|
try {
|
|
7966
|
-
const saveReturn = await submitHandler(store2, service2,
|
|
7967
|
-
navigateHandler(store2, true,
|
|
8360
|
+
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8361
|
+
navigateHandler(store2, true, "/PageMasterRecords");
|
|
7968
8362
|
} catch (err) {
|
|
7969
8363
|
navigateHandler(store2, false);
|
|
7970
8364
|
}
|
|
@@ -8033,9 +8427,10 @@ const sectionLabels = {
|
|
|
8033
8427
|
DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
|
|
8034
8428
|
InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
8035
8429
|
TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
|
|
8036
|
-
ColumnGroup: ["Core", "Components"]
|
|
8430
|
+
ColumnGroup: ["Core", "Components"],
|
|
8431
|
+
Thought: ["Core", "Properties", "Event", "Style", "Validation"]
|
|
8037
8432
|
};
|
|
8038
|
-
|
|
8433
|
+
function refreshPage(type, store2) {
|
|
8039
8434
|
var _a;
|
|
8040
8435
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8041
8436
|
if (type) {
|
|
@@ -8052,8 +8447,11 @@ const refreshPage = (type, store2) => {
|
|
|
8052
8447
|
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
|
|
8053
8448
|
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8054
8449
|
}
|
|
8450
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8451
|
+
this.ElementPathSetter(UiSchema);
|
|
8452
|
+
}
|
|
8055
8453
|
store2.setUiSchema(UiSchema);
|
|
8056
|
-
}
|
|
8454
|
+
}
|
|
8057
8455
|
var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
8058
8456
|
return {
|
|
8059
8457
|
setPage: async function() {
|
|
@@ -8070,10 +8468,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8070
8468
|
return getFormdataFromSessionStorage(path);
|
|
8071
8469
|
},
|
|
8072
8470
|
getSchema: function() {
|
|
8073
|
-
|
|
8471
|
+
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8472
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8473
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8474
|
+
}
|
|
8475
|
+
return schema2;
|
|
8074
8476
|
},
|
|
8075
8477
|
okHandler: () => okHandler(store2),
|
|
8076
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
8478
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
8077
8479
|
onChange: function() {
|
|
8078
8480
|
var _a, _b, _c, _d;
|
|
8079
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) {
|
|
@@ -8165,6 +8567,84 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8165
8567
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8166
8568
|
sessionStorage.setItem("rowId", rowId);
|
|
8167
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}`;
|
|
8168
8648
|
}
|
|
8169
8649
|
};
|
|
8170
8650
|
};
|
|
@@ -8182,19 +8662,27 @@ var pageMaster = (funcParams) => {
|
|
|
8182
8662
|
getFormdata: async function() {
|
|
8183
8663
|
var _a;
|
|
8184
8664
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8185
|
-
const
|
|
8665
|
+
const config2 = await funcParams.pageConfigProvider(id);
|
|
8186
8666
|
const formData = getFormdataFromSessionStorage();
|
|
8187
8667
|
if (formData) {
|
|
8188
8668
|
return formData;
|
|
8189
8669
|
}
|
|
8190
|
-
saveFormdataInSessionStorage(
|
|
8191
|
-
return
|
|
8670
|
+
saveFormdataInSessionStorage(config2);
|
|
8671
|
+
return config2;
|
|
8192
8672
|
},
|
|
8193
8673
|
getUiSchema: function() {
|
|
8194
|
-
|
|
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;
|
|
8195
8679
|
},
|
|
8196
8680
|
getSchema: () => {
|
|
8197
|
-
|
|
8681
|
+
const schema2 = _.cloneDeep(PageMasterSchema);
|
|
8682
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8683
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8684
|
+
}
|
|
8685
|
+
return schema2;
|
|
8198
8686
|
},
|
|
8199
8687
|
backHandler: () => {
|
|
8200
8688
|
sessionStorage.removeItem("pageFormdata");
|
|
@@ -8258,6 +8746,12 @@ var pageMaster = (funcParams) => {
|
|
|
8258
8746
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8259
8747
|
sessionStorage.setItem("rowId", rowId);
|
|
8260
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);
|
|
8261
8755
|
}
|
|
8262
8756
|
};
|
|
8263
8757
|
};
|
|
@@ -8346,6 +8840,9 @@ const EventSchema = {
|
|
|
8346
8840
|
}
|
|
8347
8841
|
}
|
|
8348
8842
|
}
|
|
8843
|
+
},
|
|
8844
|
+
RemoveItemButton: {
|
|
8845
|
+
disabled: true
|
|
8349
8846
|
}
|
|
8350
8847
|
},
|
|
8351
8848
|
required: ["eventType", "Handler"]
|
|
@@ -8445,6 +8942,27 @@ const EventUiSchema = (theme) => {
|
|
|
8445
8942
|
}
|
|
8446
8943
|
}
|
|
8447
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
|
+
}
|
|
8448
8966
|
}
|
|
8449
8967
|
]
|
|
8450
8968
|
},
|
|
@@ -8503,21 +9021,86 @@ const EventUiSchema = (theme) => {
|
|
|
8503
9021
|
}
|
|
8504
9022
|
}
|
|
8505
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
|
+
}
|
|
8506
9043
|
}
|
|
8507
9044
|
]
|
|
8508
9045
|
}
|
|
8509
9046
|
]
|
|
8510
9047
|
},
|
|
8511
|
-
{
|
|
8512
|
-
type: "
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
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"
|
|
9089
|
+
}
|
|
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
|
+
}
|
|
9101
|
+
}
|
|
9102
|
+
]
|
|
9103
|
+
},
|
|
8521
9104
|
{
|
|
8522
9105
|
type: "Control",
|
|
8523
9106
|
scope: "#/properties/btn",
|
|
@@ -8570,26 +9153,18 @@ const EventUiSchema = (theme) => {
|
|
|
8570
9153
|
layout: {
|
|
8571
9154
|
xs: 12,
|
|
8572
9155
|
sm: 12,
|
|
8573
|
-
md:
|
|
8574
|
-
lg:
|
|
9156
|
+
md: 12,
|
|
9157
|
+
lg: 12
|
|
8575
9158
|
},
|
|
8576
|
-
main: {
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
},
|
|
8581
|
-
"& .MuiTypography-root": {
|
|
8582
|
-
padding: 0
|
|
8583
|
-
},
|
|
8584
|
-
wrapperStyle: {
|
|
8585
|
-
width: { xs: "100%", sm: "100%", md: "98%" }
|
|
8586
|
-
}
|
|
8587
|
-
}
|
|
9159
|
+
main: {
|
|
9160
|
+
title: "WARNING!"
|
|
9161
|
+
},
|
|
9162
|
+
style: {}
|
|
8588
9163
|
},
|
|
8589
9164
|
elements: [
|
|
8590
9165
|
{
|
|
8591
9166
|
type: "Control",
|
|
8592
|
-
scope: "#/properties/
|
|
9167
|
+
scope: "#/properties/popupText",
|
|
8593
9168
|
options: {
|
|
8594
9169
|
widget: "Box"
|
|
8595
9170
|
},
|
|
@@ -8599,58 +9174,95 @@ const EventUiSchema = (theme) => {
|
|
|
8599
9174
|
heading: "Are you sure you want to delete ?"
|
|
8600
9175
|
},
|
|
8601
9176
|
style: {
|
|
8602
|
-
marginTop: "-
|
|
9177
|
+
marginTop: "-20px",
|
|
9178
|
+
fontSize: "20px",
|
|
9179
|
+
"&.MuiTypography-root": {
|
|
9180
|
+
padding: "10px 30px 20px 30px",
|
|
9181
|
+
textAlign: "center",
|
|
9182
|
+
lineHeight: "1"
|
|
9183
|
+
}
|
|
8603
9184
|
}
|
|
8604
9185
|
}
|
|
8605
9186
|
},
|
|
8606
9187
|
{
|
|
8607
|
-
type: "
|
|
8608
|
-
scope: "#/properties/EmptyBox",
|
|
8609
|
-
options: {
|
|
8610
|
-
widget: "EmptyBox"
|
|
8611
|
-
},
|
|
8612
|
-
config: {
|
|
8613
|
-
main: {},
|
|
8614
|
-
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
8615
|
-
}
|
|
8616
|
-
},
|
|
8617
|
-
{
|
|
8618
|
-
type: "Control",
|
|
8619
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
8620
|
-
options: {
|
|
8621
|
-
widget: "Button"
|
|
8622
|
-
},
|
|
9188
|
+
type: "WrapperLayout",
|
|
8623
9189
|
config: {
|
|
8624
|
-
layout:
|
|
8625
|
-
main: {
|
|
8626
|
-
name: "Yes",
|
|
8627
|
-
startIcon: "ApproveIcon",
|
|
8628
|
-
variant: "contained",
|
|
8629
|
-
color: "error",
|
|
8630
|
-
type: "text",
|
|
8631
|
-
onClick: "deleteEvent",
|
|
8632
|
-
size: "small"
|
|
8633
|
-
}
|
|
8634
|
-
}
|
|
8635
|
-
},
|
|
8636
|
-
{
|
|
8637
|
-
type: "Control",
|
|
8638
|
-
scope: "#/properties/CancelDeleteEventButton",
|
|
8639
|
-
options: {
|
|
8640
|
-
widget: "Button"
|
|
9190
|
+
layout: 12,
|
|
9191
|
+
main: {}
|
|
8641
9192
|
},
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
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
|
+
}
|
|
8652
9264
|
}
|
|
8653
|
-
|
|
9265
|
+
]
|
|
8654
9266
|
}
|
|
8655
9267
|
]
|
|
8656
9268
|
},
|
|
@@ -8694,13 +9306,14 @@ const EventUiSchema = (theme) => {
|
|
|
8694
9306
|
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
8695
9307
|
fontSize: "12px",
|
|
8696
9308
|
textAlign: "center",
|
|
8697
|
-
lineHeight:
|
|
9309
|
+
lineHeight: 2,
|
|
8698
9310
|
width: "fit-content",
|
|
8699
9311
|
left: "50%",
|
|
8700
9312
|
position: "relative",
|
|
8701
9313
|
margin: 0,
|
|
8702
9314
|
flexGrow: 1,
|
|
8703
|
-
height: 0
|
|
9315
|
+
height: 0,
|
|
9316
|
+
transform: "translate(-50%,0%)"
|
|
8704
9317
|
}
|
|
8705
9318
|
}
|
|
8706
9319
|
},
|
|
@@ -9050,6 +9663,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9050
9663
|
...functionsName
|
|
9051
9664
|
];
|
|
9052
9665
|
}
|
|
9666
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
9667
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
|
|
9668
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
9669
|
+
}
|
|
9053
9670
|
store22.setSchema(schema2);
|
|
9054
9671
|
store22.setUiSchema(uiSchema);
|
|
9055
9672
|
},
|
|
@@ -9058,10 +9675,14 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9058
9675
|
return EventUiSchema;
|
|
9059
9676
|
},
|
|
9060
9677
|
getSchema: () => {
|
|
9061
|
-
|
|
9678
|
+
const schema2 = _.cloneDeep(EventSchema);
|
|
9679
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
9680
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
9681
|
+
}
|
|
9682
|
+
return schema2;
|
|
9062
9683
|
},
|
|
9063
9684
|
okHandler: () => okHandler(store2),
|
|
9064
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
9685
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
9065
9686
|
onChange: function() {
|
|
9066
9687
|
var _a, _b, _c;
|
|
9067
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) {
|
|
@@ -9101,6 +9722,12 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9101
9722
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9102
9723
|
sessionStorage.setItem("rowId", rowId);
|
|
9103
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);
|
|
9104
9731
|
}
|
|
9105
9732
|
};
|
|
9106
9733
|
};
|
|
@@ -9271,37 +9898,41 @@ function executeCustomHandler(params) {
|
|
|
9271
9898
|
}
|
|
9272
9899
|
}
|
|
9273
9900
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9274
|
-
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9901
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
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
|
+
}
|
|
9284
9913
|
}
|
|
9285
|
-
}
|
|
9286
|
-
};
|
|
9287
|
-
}
|
|
9288
|
-
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9914
|
+
};
|
|
9915
|
+
});
|
|
9916
|
+
}
|
|
9917
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
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
|
+
}
|
|
9300
9931
|
}
|
|
9301
9932
|
}
|
|
9302
|
-
}
|
|
9303
|
-
};
|
|
9304
|
-
}
|
|
9933
|
+
};
|
|
9934
|
+
});
|
|
9935
|
+
}
|
|
9305
9936
|
} else if (eventConfig.type === "page") {
|
|
9306
9937
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9307
9938
|
store2.newData = {
|
|
@@ -9468,7 +10099,7 @@ var service = (funcParams) => {
|
|
|
9468
10099
|
};
|
|
9469
10100
|
return {
|
|
9470
10101
|
setPage: async function() {
|
|
9471
|
-
var _a, _b, _c, _d;
|
|
10102
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
9472
10103
|
funcParams.store.setFormdata({});
|
|
9473
10104
|
funcParams.store.newData = {};
|
|
9474
10105
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
@@ -9482,10 +10113,10 @@ var service = (funcParams) => {
|
|
|
9482
10113
|
config: pageData == null ? void 0 : pageData.config
|
|
9483
10114
|
}));
|
|
9484
10115
|
}
|
|
9485
|
-
const
|
|
10116
|
+
const config2 = pageData == null ? void 0 : pageData.config;
|
|
9486
10117
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
9487
10118
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
9488
|
-
detail: { pageName:
|
|
10119
|
+
detail: { pageName: config2.label }
|
|
9489
10120
|
});
|
|
9490
10121
|
window.dispatchEvent(event2);
|
|
9491
10122
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -9500,7 +10131,6 @@ var service = (funcParams) => {
|
|
|
9500
10131
|
flexDirection: "row",
|
|
9501
10132
|
position: "absolute",
|
|
9502
10133
|
bottom: 0,
|
|
9503
|
-
marginBottom: "-8px",
|
|
9504
10134
|
height: "fit-content",
|
|
9505
10135
|
overflow: "hidden",
|
|
9506
10136
|
zIndex: 1e3,
|
|
@@ -9519,7 +10149,7 @@ var service = (funcParams) => {
|
|
|
9519
10149
|
heading: "Copywriter@ACT21.IO"
|
|
9520
10150
|
},
|
|
9521
10151
|
style: {
|
|
9522
|
-
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
10152
|
+
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
9523
10153
|
fontSize: "12px",
|
|
9524
10154
|
textAlign: "center",
|
|
9525
10155
|
lineHeight: 2,
|
|
@@ -9529,13 +10159,13 @@ var service = (funcParams) => {
|
|
|
9529
10159
|
margin: 0,
|
|
9530
10160
|
flexGrow: 1,
|
|
9531
10161
|
height: 0,
|
|
9532
|
-
transform: "translate(-50%,0%)"
|
|
10162
|
+
transform: "translate(-50%, 0%)"
|
|
9533
10163
|
}
|
|
9534
10164
|
}
|
|
9535
10165
|
},
|
|
9536
10166
|
{
|
|
9537
10167
|
type: "Control",
|
|
9538
|
-
scope: "#/properties/
|
|
10168
|
+
scope: "#/properties/FooterBackIcon",
|
|
9539
10169
|
options: {
|
|
9540
10170
|
widget: "Box"
|
|
9541
10171
|
},
|
|
@@ -9546,24 +10176,24 @@ var service = (funcParams) => {
|
|
|
9546
10176
|
width: "fit-content"
|
|
9547
10177
|
},
|
|
9548
10178
|
style: {
|
|
9549
|
-
fill: theme.palette.primary.main,
|
|
10179
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
9550
10180
|
width: 20,
|
|
9551
10181
|
height: 0,
|
|
9552
|
-
margin: 0,
|
|
9553
10182
|
top: 0,
|
|
9554
10183
|
right: { xs: "12px", sm: "84px" },
|
|
9555
10184
|
position: "absolute",
|
|
9556
10185
|
fontSize: "12px",
|
|
9557
10186
|
cursor: "pointer",
|
|
9558
10187
|
":hover": {
|
|
9559
|
-
fill: theme.palette.primary.dark
|
|
9560
|
-
}
|
|
10188
|
+
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10189
|
+
},
|
|
10190
|
+
marginRight: "13px"
|
|
9561
10191
|
}
|
|
9562
10192
|
}
|
|
9563
10193
|
},
|
|
9564
10194
|
{
|
|
9565
10195
|
type: "Control",
|
|
9566
|
-
scope: "#/properties/
|
|
10196
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
9567
10197
|
options: {
|
|
9568
10198
|
widget: "Box"
|
|
9569
10199
|
},
|
|
@@ -9578,25 +10208,25 @@ var service = (funcParams) => {
|
|
|
9578
10208
|
lineHeight: 1,
|
|
9579
10209
|
height: 0,
|
|
9580
10210
|
width: "fit-content",
|
|
9581
|
-
color: theme.palette.primary.main,
|
|
9582
|
-
fontSize: "
|
|
10211
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
10212
|
+
fontSize: "14px",
|
|
9583
10213
|
cursor: "pointer",
|
|
9584
10214
|
marginLeft: "2px",
|
|
9585
|
-
marginRight: 0,
|
|
9586
10215
|
top: 3,
|
|
9587
10216
|
right: "12px",
|
|
9588
10217
|
position: "absolute",
|
|
9589
10218
|
":hover": {
|
|
9590
|
-
color: theme.palette.primary.dark
|
|
9591
|
-
}
|
|
10219
|
+
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
10220
|
+
},
|
|
10221
|
+
marginRight: "4px"
|
|
9592
10222
|
}
|
|
9593
10223
|
}
|
|
9594
10224
|
}
|
|
9595
10225
|
]
|
|
9596
10226
|
}
|
|
9597
10227
|
);
|
|
9598
|
-
const schema2 = (
|
|
9599
|
-
eventGroups = extractEvents(
|
|
10228
|
+
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10229
|
+
eventGroups = extractEvents(config2);
|
|
9600
10230
|
executeEventsParameters = {
|
|
9601
10231
|
config: {},
|
|
9602
10232
|
componentName: "",
|
|
@@ -9731,431 +10361,105 @@ var service = (funcParams) => {
|
|
|
9731
10361
|
eventConfig.events = responseEvent != null ? responseEvent : [];
|
|
9732
10362
|
LastCallResponse = await executeEvents({
|
|
9733
10363
|
...executeEventsParameters,
|
|
9734
|
-
config: eventConfig,
|
|
9735
|
-
componentName: paramValue.path
|
|
9736
|
-
});
|
|
9737
|
-
}
|
|
9738
|
-
return LastCallResponse;
|
|
9739
|
-
},
|
|
9740
|
-
onBack: async function(functionParameters) {
|
|
9741
|
-
var _a, _b;
|
|
9742
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9743
|
-
await this.callHandler("onBack", functionParameters);
|
|
9744
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups["onBack"]) == null ? void 0 : _b[path]) === void 0) {
|
|
9745
|
-
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
9746
|
-
}
|
|
9747
|
-
},
|
|
9748
|
-
onNext: async function(functionParameters) {
|
|
9749
|
-
var _a, _b;
|
|
9750
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9751
|
-
await this.callHandler("onNext", functionParameters);
|
|
9752
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
9753
|
-
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
9754
|
-
}
|
|
9755
|
-
},
|
|
9756
|
-
onReset: async function(functionParameters) {
|
|
9757
|
-
var _a, _b;
|
|
9758
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9759
|
-
await this.callHandler("onReset", functionParameters);
|
|
9760
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
9761
|
-
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
9762
|
-
}
|
|
9763
|
-
},
|
|
9764
|
-
callHandler: async function(eventType, functionParameters) {
|
|
9765
|
-
var _a, _b, _c;
|
|
9766
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9767
|
-
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
9768
|
-
Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
9769
|
-
executeEventsParameters.store.functionParameters = functionParameters;
|
|
9770
|
-
executeEvents({
|
|
9771
|
-
...executeEventsParameters,
|
|
9772
|
-
config: eventConfig,
|
|
9773
|
-
componentName: path
|
|
9774
|
-
});
|
|
9775
|
-
}));
|
|
9776
|
-
}
|
|
9777
|
-
},
|
|
9778
|
-
downloadFile: downloadFile$1,
|
|
9779
|
-
download: doDownload,
|
|
9780
|
-
...funcParams.functionsProvider
|
|
9781
|
-
};
|
|
9782
|
-
};
|
|
9783
|
-
var leaderBoard = {
|
|
9784
|
-
type: "WrapperLayout",
|
|
9785
|
-
config: {
|
|
9786
|
-
main: {
|
|
9787
|
-
rowSpacing: 3,
|
|
9788
|
-
header: true,
|
|
9789
|
-
label: "LeaderBoard",
|
|
9790
|
-
divider: true
|
|
9791
|
-
},
|
|
9792
|
-
style: {},
|
|
9793
|
-
wrapperStyle: {
|
|
9794
|
-
position: "relative",
|
|
9795
|
-
width: "100%"
|
|
9796
|
-
},
|
|
9797
|
-
componentsBoxStyle: {
|
|
9798
|
-
display: "flex",
|
|
9799
|
-
flexDirection: "column",
|
|
9800
|
-
gap: "20px"
|
|
9801
|
-
}
|
|
9802
|
-
},
|
|
9803
|
-
elements: [
|
|
9804
|
-
{
|
|
9805
|
-
type: "Control",
|
|
9806
|
-
scope: "#/properties/leaderBoard/properties/firstImage",
|
|
9807
|
-
config: {
|
|
9808
|
-
main: {
|
|
9809
|
-
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
|
|
9810
|
-
},
|
|
9811
|
-
style: {
|
|
9812
|
-
imageStyle: {
|
|
9813
|
-
objectFit: "cover",
|
|
9814
|
-
width: "100%",
|
|
9815
|
-
height: "100%",
|
|
9816
|
-
borderRadius: "50%"
|
|
9817
|
-
},
|
|
9818
|
-
containerStyle: {
|
|
9819
|
-
objectFit: "cover",
|
|
9820
|
-
position: "absolute",
|
|
9821
|
-
top: { xs: "90px", "md": "60px" },
|
|
9822
|
-
left: { "xs": "calc(50% - 50px)", "sm": "calc(50% - 50px)", "md": "calc(50% - 100px)" },
|
|
9823
|
-
width: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
9824
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
9825
|
-
height: { "xs": "100px", "sm": "100px", "md": "200px" },
|
|
9826
|
-
borderRadius: "50%"
|
|
9827
|
-
}
|
|
9828
|
-
},
|
|
9829
|
-
layout: 6
|
|
9830
|
-
},
|
|
9831
|
-
options: {
|
|
9832
|
-
widget: "Image"
|
|
9833
|
-
}
|
|
9834
|
-
},
|
|
9835
|
-
{
|
|
9836
|
-
type: "Control",
|
|
9837
|
-
scope: "#/properties/leaderBoard/properties/secondImage",
|
|
9838
|
-
config: {
|
|
9839
|
-
main: {
|
|
9840
|
-
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
|
|
9841
|
-
},
|
|
9842
|
-
style: {
|
|
9843
|
-
imageStyle: {
|
|
9844
|
-
objectFit: "cover",
|
|
9845
|
-
width: "100%",
|
|
9846
|
-
height: "100%",
|
|
9847
|
-
borderRadius: "50%"
|
|
9848
|
-
},
|
|
9849
|
-
containerStyle: {
|
|
9850
|
-
objectFit: "cover",
|
|
9851
|
-
position: "absolute",
|
|
9852
|
-
top: { xs: "160px", "md": "130px" },
|
|
9853
|
-
left: { "xs": "calc(25% - 45px)", "sm": "calc(25% - 45px)", "md": "calc(25% - 90px)" },
|
|
9854
|
-
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9855
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
9856
|
-
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9857
|
-
borderRadius: "50%"
|
|
9858
|
-
}
|
|
9859
|
-
},
|
|
9860
|
-
layout: 6
|
|
9861
|
-
},
|
|
9862
|
-
options: {
|
|
9863
|
-
widget: "Image"
|
|
9864
|
-
}
|
|
9865
|
-
},
|
|
9866
|
-
{
|
|
9867
|
-
type: "Control",
|
|
9868
|
-
scope: "#/properties/leaderBoard/properties/thirdImage",
|
|
9869
|
-
config: {
|
|
9870
|
-
main: {
|
|
9871
|
-
url: "https://my.alfred.edu/zoom/_images/foster-lake.jpg"
|
|
9872
|
-
},
|
|
9873
|
-
style: {
|
|
9874
|
-
imageStyle: {
|
|
9875
|
-
objectFit: "cover",
|
|
9876
|
-
width: "100%",
|
|
9877
|
-
height: "100%",
|
|
9878
|
-
borderRadius: "50%"
|
|
9879
|
-
},
|
|
9880
|
-
containerStyle: {
|
|
9881
|
-
objectFit: "cover",
|
|
9882
|
-
position: "absolute",
|
|
9883
|
-
top: { xs: "160px", "md": "130px" },
|
|
9884
|
-
left: { "xs": "calc(75% - 42.5px)", "sm": "calc(75% - 42.5px)", "md": "calc(75% - 85px)" },
|
|
9885
|
-
width: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9886
|
-
border: "5px solid rgb(179, 198, 255)",
|
|
9887
|
-
height: { "xs": "80px", "sm": "80px", "md": "180px" },
|
|
9888
|
-
borderRadius: "50%"
|
|
9889
|
-
}
|
|
9890
|
-
},
|
|
9891
|
-
layout: 6
|
|
9892
|
-
},
|
|
9893
|
-
options: {
|
|
9894
|
-
widget: "Image"
|
|
9895
|
-
}
|
|
9896
|
-
},
|
|
9897
|
-
{
|
|
9898
|
-
type: "Control",
|
|
9899
|
-
scope: "#/properties/leaderBoard/properties/firstName",
|
|
9900
|
-
config: {
|
|
9901
|
-
main: {
|
|
9902
|
-
heading: "Satendra Raghav"
|
|
9903
|
-
},
|
|
9904
|
-
style: {
|
|
9905
|
-
objectFit: "cover",
|
|
9906
|
-
position: "absolute",
|
|
9907
|
-
display: "flex",
|
|
9908
|
-
justifyContent: "center",
|
|
9909
|
-
alignItems: "center",
|
|
9910
|
-
color: "black",
|
|
9911
|
-
top: { xs: "190px", md: "270px" },
|
|
9912
|
-
fontSize: { xs: "12px", md: "20px" },
|
|
9913
|
-
left: "calc(50% - 90px)",
|
|
9914
|
-
width: "180px",
|
|
9915
|
-
fontWeight: "bold",
|
|
9916
|
-
borderRadius: "50%",
|
|
9917
|
-
zIndex: 7
|
|
9918
|
-
},
|
|
9919
|
-
layout: 6
|
|
9920
|
-
},
|
|
9921
|
-
options: {
|
|
9922
|
-
widget: "Box"
|
|
9923
|
-
}
|
|
9924
|
-
},
|
|
9925
|
-
{
|
|
9926
|
-
type: "Control",
|
|
9927
|
-
scope: "#/properties/leaderBoard/properties/secondName",
|
|
9928
|
-
config: {
|
|
9929
|
-
main: {
|
|
9930
|
-
heading: "Satendra Raghav"
|
|
9931
|
-
},
|
|
9932
|
-
style: {
|
|
9933
|
-
objectFit: "cover",
|
|
9934
|
-
position: "absolute",
|
|
9935
|
-
display: "flex",
|
|
9936
|
-
justifyContent: "center",
|
|
9937
|
-
alignItems: "center",
|
|
9938
|
-
color: "black",
|
|
9939
|
-
top: { xs: "240px", md: "320px" },
|
|
9940
|
-
fontSize: { xs: "12px", md: "20px" },
|
|
9941
|
-
left: "calc(25% - 90px)",
|
|
9942
|
-
width: "180px",
|
|
9943
|
-
fontWeight: "bold",
|
|
9944
|
-
borderRadius: "50%"
|
|
9945
|
-
},
|
|
9946
|
-
layout: 6
|
|
9947
|
-
},
|
|
9948
|
-
options: {
|
|
9949
|
-
widget: "Box"
|
|
9950
|
-
}
|
|
9951
|
-
},
|
|
9952
|
-
{
|
|
9953
|
-
type: "Control",
|
|
9954
|
-
scope: "#/properties/leaderBoard/properties/thirdName",
|
|
9955
|
-
config: {
|
|
9956
|
-
main: {
|
|
9957
|
-
heading: "Satendra Raghav"
|
|
9958
|
-
},
|
|
9959
|
-
style: {
|
|
9960
|
-
objectFit: "cover",
|
|
9961
|
-
position: "absolute",
|
|
9962
|
-
display: "flex",
|
|
9963
|
-
justifyContent: "center",
|
|
9964
|
-
alignItems: "center",
|
|
9965
|
-
color: "black",
|
|
9966
|
-
top: { xs: "240px", md: "320px" },
|
|
9967
|
-
fontSize: { xs: "12px", md: "20px" },
|
|
9968
|
-
left: "calc(75% - 90px)",
|
|
9969
|
-
width: "180px",
|
|
9970
|
-
fontWeight: "bold",
|
|
9971
|
-
borderRadius: "50%"
|
|
9972
|
-
},
|
|
9973
|
-
layout: 6
|
|
9974
|
-
},
|
|
9975
|
-
options: {
|
|
9976
|
-
widget: "Box"
|
|
10364
|
+
config: eventConfig,
|
|
10365
|
+
componentName: paramValue.path
|
|
10366
|
+
});
|
|
9977
10367
|
}
|
|
10368
|
+
return LastCallResponse;
|
|
9978
10369
|
},
|
|
9979
|
-
{
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
},
|
|
9986
|
-
style: {
|
|
9987
|
-
objectFit: "cover",
|
|
9988
|
-
position: "absolute",
|
|
9989
|
-
display: "flex",
|
|
9990
|
-
justifyContent: "center",
|
|
9991
|
-
alignItems: "center",
|
|
9992
|
-
textShadow: "2px 2px 5px #5065C7",
|
|
9993
|
-
background: "green",
|
|
9994
|
-
color: "white",
|
|
9995
|
-
top: { xs: "225px", md: "280px" },
|
|
9996
|
-
fontSize: { xs: "12px", md: "16px" },
|
|
9997
|
-
left: { xs: "calc(25% - 12px)", md: "calc(25% - 16px)" },
|
|
9998
|
-
width: { xs: "20px", md: "40px" },
|
|
9999
|
-
border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
|
|
10000
|
-
height: { xs: "20px", md: "40px" },
|
|
10001
|
-
"@keyframes rotateAnimation": {
|
|
10002
|
-
from: {
|
|
10003
|
-
transform: "rotate(0deg)"
|
|
10004
|
-
},
|
|
10005
|
-
to: {
|
|
10006
|
-
transform: "rotate(360deg)"
|
|
10007
|
-
}
|
|
10008
|
-
},
|
|
10009
|
-
animation: "rotateAnimation 4s infinite",
|
|
10010
|
-
borderRadius: "50%",
|
|
10011
|
-
zIndex: 5
|
|
10012
|
-
},
|
|
10013
|
-
layout: 6
|
|
10014
|
-
},
|
|
10015
|
-
options: {
|
|
10016
|
-
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();
|
|
10017
10376
|
}
|
|
10018
10377
|
},
|
|
10019
|
-
{
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
},
|
|
10026
|
-
style: {
|
|
10027
|
-
objectFit: "cover",
|
|
10028
|
-
position: "absolute",
|
|
10029
|
-
display: "flex",
|
|
10030
|
-
justifyContent: "center",
|
|
10031
|
-
alignItems: "center",
|
|
10032
|
-
textShadow: "2px 2px 5px #5065C7",
|
|
10033
|
-
background: "green",
|
|
10034
|
-
color: "white",
|
|
10035
|
-
top: { xs: "175px", md: "230px" },
|
|
10036
|
-
fontSize: { xs: "12px", md: "16px" },
|
|
10037
|
-
left: { xs: "calc(50% - 12px)", md: "calc(50% - 16px)" },
|
|
10038
|
-
"@keyframes rotateAnimation": {
|
|
10039
|
-
from: {
|
|
10040
|
-
transform: "rotate(0deg)"
|
|
10041
|
-
},
|
|
10042
|
-
to: {
|
|
10043
|
-
transform: "rotate(360deg)"
|
|
10044
|
-
}
|
|
10045
|
-
},
|
|
10046
|
-
animation: "rotateAnimation 4s infinite",
|
|
10047
|
-
width: { xs: "20px", md: "40px" },
|
|
10048
|
-
border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
|
|
10049
|
-
height: { xs: "20px", md: "40px" },
|
|
10050
|
-
borderRadius: "50%",
|
|
10051
|
-
zIndex: 5
|
|
10052
|
-
},
|
|
10053
|
-
layout: 6
|
|
10054
|
-
},
|
|
10055
|
-
options: {
|
|
10056
|
-
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();
|
|
10057
10384
|
}
|
|
10058
10385
|
},
|
|
10059
|
-
{
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
},
|
|
10066
|
-
style: {
|
|
10067
|
-
objectFit: "cover",
|
|
10068
|
-
position: "absolute",
|
|
10069
|
-
display: "flex",
|
|
10070
|
-
justifyContent: "center",
|
|
10071
|
-
alignItems: "center",
|
|
10072
|
-
textShadow: "2px 2px 5px #5065C7",
|
|
10073
|
-
background: "green",
|
|
10074
|
-
color: "white",
|
|
10075
|
-
top: { xs: "225px", md: "280px" },
|
|
10076
|
-
fontSize: { xs: "12px", md: "16px" },
|
|
10077
|
-
left: { xs: "calc(75% - 12px)", md: "calc(75% - 16px)" },
|
|
10078
|
-
width: { xs: "20px", md: "40px" },
|
|
10079
|
-
border: { xs: "2px solid rgb(179, 198, 255)", md: "5px solid rgb(179, 198, 255)" },
|
|
10080
|
-
height: { xs: "20px", md: "40px" },
|
|
10081
|
-
"@keyframes rotateAnimation": {
|
|
10082
|
-
from: {
|
|
10083
|
-
transform: "rotate(0deg)"
|
|
10084
|
-
},
|
|
10085
|
-
to: {
|
|
10086
|
-
transform: "rotate(360deg)"
|
|
10087
|
-
}
|
|
10088
|
-
},
|
|
10089
|
-
animation: "rotateAnimation 4s infinite",
|
|
10090
|
-
borderRadius: "50%",
|
|
10091
|
-
zIndex: 5
|
|
10092
|
-
},
|
|
10093
|
-
layout: 6
|
|
10094
|
-
},
|
|
10095
|
-
options: {
|
|
10096
|
-
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();
|
|
10097
10392
|
}
|
|
10098
10393
|
},
|
|
10099
|
-
{
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
},
|
|
10112
|
-
top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
|
|
10113
|
-
border: "2px solid rgb(179, 198, 255)",
|
|
10114
|
-
width: "95%",
|
|
10115
|
-
left: "2.5%",
|
|
10116
|
-
margin: "auto"
|
|
10117
|
-
},
|
|
10118
|
-
main: {
|
|
10119
|
-
disableAction: true,
|
|
10120
|
-
disableSelection: true
|
|
10121
|
-
}
|
|
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
|
+
}));
|
|
10122
10406
|
}
|
|
10123
|
-
}
|
|
10124
|
-
|
|
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
|
+
}
|
|
10125
10423
|
};
|
|
10126
|
-
const buildLeaderBoard = (
|
|
10424
|
+
const buildLeaderBoard = (config2) => {
|
|
10127
10425
|
const LeaderBoard = _.cloneDeep(leaderBoard);
|
|
10128
|
-
if (
|
|
10129
|
-
const modifyColumns =
|
|
10426
|
+
if (config2.elements) {
|
|
10427
|
+
const modifyColumns = config2.elements.map((e, i) => {
|
|
10130
10428
|
if (!e.type) {
|
|
10131
10429
|
return { accessorKey: e.name, header: e.label || e.name };
|
|
10132
10430
|
}
|
|
10133
10431
|
const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name };
|
|
10134
10432
|
return { ...widgetSchema };
|
|
10135
10433
|
});
|
|
10136
|
-
LeaderBoard.elements
|
|
10434
|
+
LeaderBoard.elements = modifyColumns;
|
|
10137
10435
|
}
|
|
10138
|
-
LeaderBoard.config.main.label =
|
|
10139
|
-
if (
|
|
10140
|
-
LeaderBoard.
|
|
10141
|
-
LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
|
|
10142
|
-
LeaderBoard.elements[1].scope = `#/properties/${config.name}/properties/secondImage`;
|
|
10143
|
-
LeaderBoard.elements[4].scope = `#/properties/${config.name}/properties/secondName`;
|
|
10144
|
-
LeaderBoard.elements[2].scope = `#/properties/${config.name}/properties/thirdImage`;
|
|
10145
|
-
LeaderBoard.elements[5].scope = `#/properties/${config.name}/properties/thirdName`;
|
|
10146
|
-
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}`;
|
|
10147
10439
|
}
|
|
10148
|
-
if (
|
|
10149
|
-
LeaderBoard.
|
|
10440
|
+
if (config2.firstImage) {
|
|
10441
|
+
LeaderBoard.config.main.firstImage = config2.firstImage;
|
|
10150
10442
|
}
|
|
10151
|
-
if (
|
|
10152
|
-
LeaderBoard.
|
|
10443
|
+
if (config2.secondImage) {
|
|
10444
|
+
LeaderBoard.config.main.secondImage = config2.secondImage;
|
|
10153
10445
|
}
|
|
10154
|
-
if (
|
|
10155
|
-
LeaderBoard.
|
|
10446
|
+
if (config2.thirdImage) {
|
|
10447
|
+
LeaderBoard.config.main.thirdImage = config2.thirdImage;
|
|
10156
10448
|
}
|
|
10157
|
-
if (
|
|
10158
|
-
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);
|
|
10159
10463
|
}
|
|
10160
10464
|
return LeaderBoard;
|
|
10161
10465
|
};
|
|
@@ -10166,7 +10470,7 @@ var progressBar = {
|
|
|
10166
10470
|
widget: "ProgressBar"
|
|
10167
10471
|
},
|
|
10168
10472
|
config: {
|
|
10169
|
-
layout: 6,
|
|
10473
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
10170
10474
|
main: {
|
|
10171
10475
|
developOnlyProgresBar: false,
|
|
10172
10476
|
bottomLabel_3: "Remaining",
|
|
@@ -10174,44 +10478,44 @@ var progressBar = {
|
|
|
10174
10478
|
}
|
|
10175
10479
|
}
|
|
10176
10480
|
};
|
|
10177
|
-
const buildProgressBarCard = (
|
|
10481
|
+
const buildProgressBarCard = (config2, myScope) => {
|
|
10178
10482
|
const progressBarCard = _.cloneDeep(progressBar);
|
|
10179
10483
|
progressBarCard.scope = myScope;
|
|
10180
|
-
if (
|
|
10181
|
-
progressBarCard.config.main.heading =
|
|
10484
|
+
if (config2.heading) {
|
|
10485
|
+
progressBarCard.config.main.heading = config2.heading;
|
|
10182
10486
|
}
|
|
10183
|
-
if (
|
|
10184
|
-
progressBarCard.config.main.bottomLabel_3 =
|
|
10487
|
+
if (config2.bottomLabel_3) {
|
|
10488
|
+
progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10185
10489
|
}
|
|
10186
|
-
if (
|
|
10187
|
-
progressBarCard.config.main.bottomLabel_2 =
|
|
10490
|
+
if (config2.bottomLabel_2) {
|
|
10491
|
+
progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10188
10492
|
}
|
|
10189
|
-
if (
|
|
10190
|
-
progressBarCard.elements[0].config.main.bottomLabel_1 =
|
|
10493
|
+
if (config2.bottomLabel_1) {
|
|
10494
|
+
progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
|
|
10191
10495
|
}
|
|
10192
|
-
if (
|
|
10193
|
-
progressBarCard.config.layout = createLayoutFormat(
|
|
10496
|
+
if (config2.layout) {
|
|
10497
|
+
progressBarCard.config.layout = createLayoutFormat(config2.layout);
|
|
10194
10498
|
}
|
|
10195
10499
|
return progressBarCard;
|
|
10196
10500
|
};
|
|
10197
|
-
const buildProgressBar = (
|
|
10501
|
+
const buildProgressBar = (config2, componentScope2) => {
|
|
10198
10502
|
const ProgressBar = _.cloneDeep(progressBar);
|
|
10199
|
-
ProgressBar.scope =
|
|
10200
|
-
if (
|
|
10201
|
-
ProgressBar.config.layout =
|
|
10503
|
+
ProgressBar.scope = componentScope2;
|
|
10504
|
+
if (config2.layout) {
|
|
10505
|
+
ProgressBar.config.layout = config2.layout;
|
|
10202
10506
|
}
|
|
10203
|
-
ProgressBar.config.main.heading =
|
|
10204
|
-
if (
|
|
10205
|
-
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;
|
|
10206
10510
|
}
|
|
10207
|
-
if (
|
|
10208
|
-
ProgressBar.config.layout = createLayoutFormat(
|
|
10511
|
+
if (config2.layout) {
|
|
10512
|
+
ProgressBar.config.layout = createLayoutFormat(config2.layout);
|
|
10209
10513
|
}
|
|
10210
|
-
if (
|
|
10211
|
-
ProgressBar.config.main.bottomLabel_2 =
|
|
10514
|
+
if (config2.bottomLabel_2) {
|
|
10515
|
+
ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10212
10516
|
}
|
|
10213
|
-
if (
|
|
10214
|
-
ProgressBar.config.main.bottomLabel_1 =
|
|
10517
|
+
if (config2.bottomLabel_1) {
|
|
10518
|
+
ProgressBar.config.main.bottomLabel_1 = config2.bottomLabel_1;
|
|
10215
10519
|
}
|
|
10216
10520
|
return ProgressBar;
|
|
10217
10521
|
};
|
|
@@ -10223,8 +10527,11 @@ const BarGraph = {
|
|
|
10223
10527
|
},
|
|
10224
10528
|
config: {
|
|
10225
10529
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10226
|
-
main: {
|
|
10227
|
-
|
|
10530
|
+
main: {
|
|
10531
|
+
type: "BarGraph",
|
|
10532
|
+
legendLabels: null
|
|
10533
|
+
},
|
|
10534
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10228
10535
|
}
|
|
10229
10536
|
};
|
|
10230
10537
|
const PieGraph = {
|
|
@@ -10236,9 +10543,10 @@ const PieGraph = {
|
|
|
10236
10543
|
config: {
|
|
10237
10544
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10238
10545
|
main: {
|
|
10239
|
-
type: "PieGraph"
|
|
10546
|
+
type: "PieGraph",
|
|
10547
|
+
legendLabels: null
|
|
10240
10548
|
},
|
|
10241
|
-
style: {}
|
|
10549
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
|
|
10242
10550
|
}
|
|
10243
10551
|
};
|
|
10244
10552
|
const LineGraph = {
|
|
@@ -10251,29 +10559,9 @@ const LineGraph = {
|
|
|
10251
10559
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10252
10560
|
main: {
|
|
10253
10561
|
type: "LineGraph",
|
|
10254
|
-
|
|
10255
|
-
bottomLabel: "Years",
|
|
10256
|
-
leftLabel: "Incentive",
|
|
10257
|
-
gridHidden: true,
|
|
10258
|
-
numHidden: false,
|
|
10259
|
-
tooltipDataKey: ["MAMA New Project", "Second", "Third"],
|
|
10260
|
-
axisLeft: true,
|
|
10261
|
-
axisBottom: true,
|
|
10262
|
-
hideLeftAxisLine: false,
|
|
10263
|
-
hideBottomAxisLine: false,
|
|
10264
|
-
legend: {
|
|
10265
|
-
labelColor: "green",
|
|
10266
|
-
direction: "row",
|
|
10267
|
-
align: "right",
|
|
10268
|
-
colorRectWidth: 20
|
|
10269
|
-
}
|
|
10562
|
+
legendLabels: null
|
|
10270
10563
|
},
|
|
10271
|
-
style: {
|
|
10272
|
-
containerStyle: {},
|
|
10273
|
-
headerStyle: {},
|
|
10274
|
-
labelStyle: {},
|
|
10275
|
-
lineStyle: {}
|
|
10276
|
-
}
|
|
10564
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
|
|
10277
10565
|
}
|
|
10278
10566
|
};
|
|
10279
10567
|
const HorizontalBarGraph = {
|
|
@@ -10285,56 +10573,49 @@ const HorizontalBarGraph = {
|
|
|
10285
10573
|
config: {
|
|
10286
10574
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10287
10575
|
main: {
|
|
10288
|
-
type: "HorizontalBarGraph"
|
|
10576
|
+
type: "HorizontalBarGraph",
|
|
10577
|
+
legendLabels: null
|
|
10289
10578
|
},
|
|
10290
|
-
style: {}
|
|
10579
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10291
10580
|
}
|
|
10292
10581
|
};
|
|
10293
|
-
const buildHorizontalBarGraph = (
|
|
10582
|
+
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
10294
10583
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10295
|
-
horizontalBarGraph.scope =
|
|
10296
|
-
if (
|
|
10297
|
-
horizontalBarGraph.config.layout = createLayoutFormat(
|
|
10584
|
+
horizontalBarGraph.scope = componentScope2;
|
|
10585
|
+
if (config2.layout) {
|
|
10586
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10298
10587
|
}
|
|
10299
|
-
horizontalBarGraph.config.main.type =
|
|
10300
|
-
horizontalBarGraph.scope =
|
|
10301
|
-
horizontalBarGraph.config.main.header =
|
|
10302
|
-
if (
|
|
10303
|
-
horizontalBarGraph.config.main.legendAvailable =
|
|
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;
|
|
10304
10593
|
}
|
|
10305
|
-
if (
|
|
10306
|
-
horizontalBarGraph.config.main.bottomAxisAngle =
|
|
10594
|
+
if (config2.bottomAxisAngle) {
|
|
10595
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10307
10596
|
}
|
|
10308
|
-
if (
|
|
10309
|
-
horizontalBarGraph.config.
|
|
10597
|
+
if (config2.legendLabels) {
|
|
10598
|
+
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10310
10599
|
}
|
|
10311
|
-
if (
|
|
10312
|
-
horizontalBarGraph.config.
|
|
10600
|
+
if (config2.pieArcColors) {
|
|
10601
|
+
horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10313
10602
|
}
|
|
10314
|
-
if (
|
|
10315
|
-
horizontalBarGraph.config.
|
|
10603
|
+
if (config2.xAxisValue) {
|
|
10604
|
+
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10316
10605
|
}
|
|
10317
|
-
if (
|
|
10318
|
-
horizontalBarGraph.config.style =
|
|
10319
|
-
containerStyle: {
|
|
10320
|
-
height: config.height
|
|
10321
|
-
}
|
|
10322
|
-
};
|
|
10606
|
+
if (config2.height) {
|
|
10607
|
+
horizontalBarGraph.config.style.containerStyle.height = config2.height;
|
|
10323
10608
|
}
|
|
10324
|
-
if (
|
|
10325
|
-
horizontalBarGraph.config.style = {
|
|
10326
|
-
|
|
10327
|
-
margin: {
|
|
10328
|
-
left: config.leftMargin
|
|
10329
|
-
}
|
|
10330
|
-
}
|
|
10609
|
+
if (config2.leftMargin) {
|
|
10610
|
+
horizontalBarGraph.config.style.labelStyle.margin = {
|
|
10611
|
+
left: config2.leftMargin
|
|
10331
10612
|
};
|
|
10332
10613
|
}
|
|
10333
|
-
if (
|
|
10334
|
-
horizontalBarGraph.config.main.bottomLabel =
|
|
10614
|
+
if (config2.bottomLabel) {
|
|
10615
|
+
horizontalBarGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
10335
10616
|
}
|
|
10336
|
-
if (
|
|
10337
|
-
horizontalBarGraph.config.main.leftLabel =
|
|
10617
|
+
if (config2.leftLabel) {
|
|
10618
|
+
horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
|
|
10338
10619
|
}
|
|
10339
10620
|
return horizontalBarGraph;
|
|
10340
10621
|
};
|
|
@@ -10384,20 +10665,20 @@ var SpeedoMeter = {
|
|
|
10384
10665
|
}
|
|
10385
10666
|
}
|
|
10386
10667
|
};
|
|
10387
|
-
const buildSpeedoMeter = (
|
|
10668
|
+
const buildSpeedoMeter = (config2, componentScope2) => {
|
|
10388
10669
|
const speedoMeter = _.cloneDeep(SpeedoMeter);
|
|
10389
|
-
speedoMeter.scope =
|
|
10390
|
-
if (
|
|
10391
|
-
speedoMeter.config.layout = createLayoutFormat(
|
|
10670
|
+
speedoMeter.scope = componentScope2;
|
|
10671
|
+
if (config2.layout) {
|
|
10672
|
+
speedoMeter.config.layout = createLayoutFormat(config2.layout);
|
|
10392
10673
|
}
|
|
10393
|
-
if (
|
|
10394
|
-
speedoMeter.config.main.header =
|
|
10674
|
+
if (config2.heading) {
|
|
10675
|
+
speedoMeter.config.main.header = config2.heading;
|
|
10395
10676
|
}
|
|
10396
|
-
if (
|
|
10397
|
-
speedoMeter.config.main.segments =
|
|
10677
|
+
if (config2.segments) {
|
|
10678
|
+
speedoMeter.config.main.segments = config2.segments;
|
|
10398
10679
|
}
|
|
10399
|
-
if (
|
|
10400
|
-
const styleObj = JSON.parse(
|
|
10680
|
+
if (config2.style) {
|
|
10681
|
+
const styleObj = JSON.parse(config2.style);
|
|
10401
10682
|
if (styleObj == null ? void 0 : styleObj.style) {
|
|
10402
10683
|
speedoMeter.config.style = { ...speedoMeter.config.style, ...styleObj.style };
|
|
10403
10684
|
}
|
|
@@ -10405,103 +10686,95 @@ const buildSpeedoMeter = (config, componentScope) => {
|
|
|
10405
10686
|
speedoMeter.config.style.containerStyle = { ...speedoMeter.config.style.containerStyle, ...styleObj.containerStyle };
|
|
10406
10687
|
}
|
|
10407
10688
|
}
|
|
10408
|
-
if (
|
|
10409
|
-
speedoMeter.config.main.width =
|
|
10689
|
+
if (config2.width) {
|
|
10690
|
+
speedoMeter.config.main.width = config2.width;
|
|
10410
10691
|
}
|
|
10411
|
-
if (
|
|
10412
|
-
speedoMeter.config.main.currentValueText =
|
|
10692
|
+
if (config2.speedoCaption) {
|
|
10693
|
+
speedoMeter.config.main.currentValueText = config2.speedoCaption;
|
|
10413
10694
|
}
|
|
10414
|
-
if (
|
|
10415
|
-
speedoMeter.config.main.data =
|
|
10695
|
+
if (config2.data) {
|
|
10696
|
+
speedoMeter.config.main.data = config2.data;
|
|
10416
10697
|
}
|
|
10417
|
-
if (
|
|
10418
|
-
speedoMeter.config.style.needleColor =
|
|
10698
|
+
if (config2.needleColor) {
|
|
10699
|
+
speedoMeter.config.style.needleColor = config2.needleColor;
|
|
10419
10700
|
}
|
|
10420
|
-
if (
|
|
10421
|
-
speedoMeter.config.style.segments =
|
|
10701
|
+
if (config2.segments) {
|
|
10702
|
+
speedoMeter.config.style.segments = config2.segments;
|
|
10422
10703
|
}
|
|
10423
|
-
if (
|
|
10424
|
-
speedoMeter.config.style.endColor =
|
|
10704
|
+
if (config2.endColor) {
|
|
10705
|
+
speedoMeter.config.style.endColor = config2.endColor;
|
|
10425
10706
|
}
|
|
10426
|
-
if (
|
|
10427
|
-
speedoMeter.config.style.startColor =
|
|
10707
|
+
if (config2.startColor) {
|
|
10708
|
+
speedoMeter.config.style.startColor = config2.startColor;
|
|
10428
10709
|
}
|
|
10429
|
-
if (
|
|
10430
|
-
speedoMeter.config.style.segmentColors =
|
|
10710
|
+
if (config2.segmentColors) {
|
|
10711
|
+
speedoMeter.config.style.segmentColors = config2.segmentColors;
|
|
10431
10712
|
}
|
|
10432
10713
|
return speedoMeter;
|
|
10433
10714
|
};
|
|
10434
|
-
const buildPieGraph = (
|
|
10715
|
+
const buildPieGraph = (config2, componentScope2) => {
|
|
10435
10716
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10436
|
-
if (
|
|
10437
|
-
pieGraph.config.layout = createLayoutFormat(
|
|
10717
|
+
if (config2.layout) {
|
|
10718
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10438
10719
|
}
|
|
10439
|
-
if (
|
|
10440
|
-
pieGraph.config.style =
|
|
10441
|
-
containerStyle: {
|
|
10442
|
-
height: config.height
|
|
10443
|
-
}
|
|
10444
|
-
};
|
|
10720
|
+
if (config2.height) {
|
|
10721
|
+
pieGraph.config.style.containerStyle.height = config2.height;
|
|
10445
10722
|
}
|
|
10446
|
-
if (
|
|
10447
|
-
pieGraph.config.main.
|
|
10723
|
+
if (config2.legendHide) {
|
|
10724
|
+
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10448
10725
|
}
|
|
10449
|
-
pieGraph.scope =
|
|
10450
|
-
pieGraph.config.main.header =
|
|
10451
|
-
if (
|
|
10452
|
-
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);
|
|
10453
10730
|
}
|
|
10454
|
-
if (
|
|
10455
|
-
pieGraph.config.main.xAxisValue =
|
|
10731
|
+
if (config2.xAxisValue) {
|
|
10732
|
+
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10456
10733
|
}
|
|
10457
|
-
if (
|
|
10458
|
-
pieGraph.config.style =
|
|
10459
|
-
pieStyle: {
|
|
10460
|
-
colorRange: flatObjectValueInArray(config.pieArcColors)
|
|
10461
|
-
}
|
|
10462
|
-
};
|
|
10734
|
+
if (config2.pieArcColors) {
|
|
10735
|
+
pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10463
10736
|
}
|
|
10464
10737
|
return pieGraph;
|
|
10465
10738
|
};
|
|
10466
|
-
const buildStackbarGraph = (
|
|
10739
|
+
const buildStackbarGraph = (config2, componentScope2) => {
|
|
10740
|
+
var _a;
|
|
10467
10741
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10468
|
-
if (
|
|
10469
|
-
barGraph.config.layout = createLayoutFormat(
|
|
10742
|
+
if (config2.layout) {
|
|
10743
|
+
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10470
10744
|
}
|
|
10471
|
-
if (
|
|
10472
|
-
barGraph.config.main.legendAvailable =
|
|
10473
|
-
barGraph.config.main.legendAvailable =
|
|
10745
|
+
if (config2.legendHide) {
|
|
10746
|
+
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
10747
|
+
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10474
10748
|
}
|
|
10475
|
-
if (
|
|
10476
|
-
barGraph.config.main.bottomAxisAngle =
|
|
10749
|
+
if (config2.bottomAxisAngle) {
|
|
10750
|
+
barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10477
10751
|
}
|
|
10478
|
-
barGraph.config.main.type =
|
|
10479
|
-
barGraph.config.main.header =
|
|
10480
|
-
if (
|
|
10481
|
-
barGraph.config.
|
|
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);
|
|
10482
10756
|
}
|
|
10483
|
-
if (
|
|
10484
|
-
barGraph.config.
|
|
10757
|
+
if (config2.pieArcColors) {
|
|
10758
|
+
barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10485
10759
|
}
|
|
10486
|
-
if (
|
|
10487
|
-
barGraph.config.
|
|
10760
|
+
if (config2.xAxisValue) {
|
|
10761
|
+
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10488
10762
|
}
|
|
10489
|
-
if (
|
|
10490
|
-
barGraph.config.style =
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
}
|
|
10763
|
+
if (config2.height) {
|
|
10764
|
+
barGraph.config.style.containerStyle.height = config2.height;
|
|
10765
|
+
}
|
|
10766
|
+
if (config2.leftMargin) {
|
|
10767
|
+
barGraph.config.style.labelStyle.margin = {
|
|
10768
|
+
left: config2.leftMargin
|
|
10496
10769
|
};
|
|
10497
10770
|
}
|
|
10498
|
-
if (
|
|
10499
|
-
barGraph.config.main.bottomLabel =
|
|
10771
|
+
if (config2.bottomLabel) {
|
|
10772
|
+
barGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
10500
10773
|
}
|
|
10501
|
-
if (
|
|
10502
|
-
barGraph.config.main.leftLabel =
|
|
10774
|
+
if (config2.leftLabel) {
|
|
10775
|
+
barGraph.config.main.leftLabel = config2.leftLabel;
|
|
10503
10776
|
}
|
|
10504
|
-
barGraph.scope =
|
|
10777
|
+
barGraph.scope = componentScope2;
|
|
10505
10778
|
return barGraph;
|
|
10506
10779
|
};
|
|
10507
10780
|
var RunnerBoyProgressBar = {
|
|
@@ -10511,15 +10784,15 @@ var RunnerBoyProgressBar = {
|
|
|
10511
10784
|
widget: "RunnerBoyProgressBar"
|
|
10512
10785
|
},
|
|
10513
10786
|
config: {
|
|
10514
|
-
layout: { xs:
|
|
10787
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
10515
10788
|
main: {}
|
|
10516
10789
|
}
|
|
10517
10790
|
};
|
|
10518
|
-
const RunnerBoyProgressbar = (
|
|
10791
|
+
const RunnerBoyProgressbar = (config2, componentScope2) => {
|
|
10519
10792
|
const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
|
|
10520
|
-
RunnerBoy.scope =
|
|
10521
|
-
if (
|
|
10522
|
-
RunnerBoy.config.layout = createLayoutFormat(
|
|
10793
|
+
RunnerBoy.scope = componentScope2;
|
|
10794
|
+
if (config2.layout) {
|
|
10795
|
+
RunnerBoy.config.layout = createLayoutFormat(config2.layout);
|
|
10523
10796
|
}
|
|
10524
10797
|
return RunnerBoy;
|
|
10525
10798
|
};
|
|
@@ -10534,19 +10807,19 @@ var Tabsection = {
|
|
|
10534
10807
|
},
|
|
10535
10808
|
elements: []
|
|
10536
10809
|
};
|
|
10537
|
-
const buildTabSection = (
|
|
10810
|
+
const buildTabSection = (config2, componentScope2) => {
|
|
10538
10811
|
const tab = _.cloneDeep(Tabsection);
|
|
10539
|
-
tab.scope =
|
|
10540
|
-
if (
|
|
10541
|
-
tab.config.main.lazyLoad =
|
|
10812
|
+
tab.scope = componentScope2;
|
|
10813
|
+
if (config2.lazyLoad) {
|
|
10814
|
+
tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
|
|
10542
10815
|
}
|
|
10543
|
-
if (
|
|
10544
|
-
tab.config.main.orientation =
|
|
10816
|
+
if (config2.orientation) {
|
|
10817
|
+
tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
|
|
10545
10818
|
}
|
|
10546
|
-
if (
|
|
10547
|
-
tab.config.main.tabLabels =
|
|
10819
|
+
if (config2.sectionLabels) {
|
|
10820
|
+
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
10548
10821
|
}
|
|
10549
|
-
tab.config.main.id =
|
|
10822
|
+
tab.config.main.id = config2.name;
|
|
10550
10823
|
return tab;
|
|
10551
10824
|
};
|
|
10552
10825
|
var WrapperSection = {
|
|
@@ -10561,20 +10834,20 @@ var WrapperSection = {
|
|
|
10561
10834
|
},
|
|
10562
10835
|
elements: []
|
|
10563
10836
|
};
|
|
10564
|
-
const buildWrapperSection = (
|
|
10837
|
+
const buildWrapperSection = (config2, componentScope2) => {
|
|
10565
10838
|
const wrapper = _.cloneDeep(WrapperSection);
|
|
10566
|
-
wrapper.scope =
|
|
10567
|
-
wrapper.config.main.label =
|
|
10568
|
-
wrapper.config.main.divider =
|
|
10569
|
-
wrapper.config.main.isAccordion =
|
|
10570
|
-
if (
|
|
10571
|
-
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;
|
|
10572
10845
|
}
|
|
10573
|
-
if (
|
|
10574
|
-
wrapper.config.style = JSON.parse(
|
|
10846
|
+
if (config2.style) {
|
|
10847
|
+
wrapper.config.style = JSON.parse(config2.style);
|
|
10575
10848
|
}
|
|
10576
|
-
if (
|
|
10577
|
-
wrapper.config.layout = createLayoutFormat(
|
|
10849
|
+
if (config2.layout) {
|
|
10850
|
+
wrapper.config.layout = createLayoutFormat(config2.layout);
|
|
10578
10851
|
}
|
|
10579
10852
|
return wrapper;
|
|
10580
10853
|
};
|
|
@@ -10592,23 +10865,23 @@ var TextInputField = {
|
|
|
10592
10865
|
style: {}
|
|
10593
10866
|
}
|
|
10594
10867
|
};
|
|
10595
|
-
const buildTextField = (
|
|
10868
|
+
const buildTextField = (config2, componentScope2) => {
|
|
10596
10869
|
const inputField = _.cloneDeep(TextInputField);
|
|
10597
|
-
inputField.config.main.label =
|
|
10598
|
-
if (
|
|
10599
|
-
inputField.config.style = JSON.parse(
|
|
10870
|
+
inputField.config.main.label = config2.label;
|
|
10871
|
+
if (config2.style) {
|
|
10872
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
10600
10873
|
}
|
|
10601
|
-
if (
|
|
10602
|
-
inputField.config.main.formatStrArray =
|
|
10874
|
+
if (config2.InputFormatingAndMasking) {
|
|
10875
|
+
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10603
10876
|
}
|
|
10604
|
-
if (
|
|
10605
|
-
inputField.config.main.placeholder =
|
|
10877
|
+
if (config2.placeholder) {
|
|
10878
|
+
inputField.config.main.placeholder = config2.placeholder;
|
|
10606
10879
|
}
|
|
10607
|
-
if (
|
|
10608
|
-
inputField.config.layout = createLayoutFormat(
|
|
10880
|
+
if (config2.layout) {
|
|
10881
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
10609
10882
|
}
|
|
10610
|
-
inputField.config.main.errorMessage = `${
|
|
10611
|
-
inputField.scope =
|
|
10883
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
10884
|
+
inputField.scope = componentScope2;
|
|
10612
10885
|
return inputField;
|
|
10613
10886
|
};
|
|
10614
10887
|
var SelectInputField = {
|
|
@@ -10626,22 +10899,22 @@ var SelectInputField = {
|
|
|
10626
10899
|
}
|
|
10627
10900
|
}
|
|
10628
10901
|
};
|
|
10629
|
-
const buildSelect = (
|
|
10902
|
+
const buildSelect = (config2, componentScope2) => {
|
|
10630
10903
|
const selectInputField = _.cloneDeep(SelectInputField);
|
|
10631
|
-
selectInputField.config.main.label =
|
|
10632
|
-
if (
|
|
10633
|
-
selectInputField.config.main.options =
|
|
10904
|
+
selectInputField.config.main.label = config2.label;
|
|
10905
|
+
if (config2.value) {
|
|
10906
|
+
selectInputField.config.main.options = config2.value;
|
|
10634
10907
|
}
|
|
10635
|
-
if (
|
|
10636
|
-
selectInputField.config.main.freeSolo =
|
|
10908
|
+
if (config2.freeSolo) {
|
|
10909
|
+
selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
|
|
10637
10910
|
}
|
|
10638
|
-
if (
|
|
10639
|
-
selectInputField.config.main.lazyLoading =
|
|
10911
|
+
if (config2.lazyLoading) {
|
|
10912
|
+
selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
10640
10913
|
}
|
|
10641
|
-
if (
|
|
10642
|
-
selectInputField.config.layout = createLayoutFormat(
|
|
10914
|
+
if (config2.layout) {
|
|
10915
|
+
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
10643
10916
|
}
|
|
10644
|
-
selectInputField.scope =
|
|
10917
|
+
selectInputField.scope = componentScope2;
|
|
10645
10918
|
return selectInputField;
|
|
10646
10919
|
};
|
|
10647
10920
|
var Button = {
|
|
@@ -10655,7 +10928,6 @@ var Button = {
|
|
|
10655
10928
|
main: {
|
|
10656
10929
|
name: "Compare",
|
|
10657
10930
|
variant: "contained",
|
|
10658
|
-
color: "info",
|
|
10659
10931
|
type: "text",
|
|
10660
10932
|
startIcon: "",
|
|
10661
10933
|
styleDefault: false,
|
|
@@ -10666,37 +10938,37 @@ var Button = {
|
|
|
10666
10938
|
style: {}
|
|
10667
10939
|
}
|
|
10668
10940
|
};
|
|
10669
|
-
const buildButton = (
|
|
10941
|
+
const buildButton = (config2, componentScope2) => {
|
|
10670
10942
|
const button = _.cloneDeep(Button);
|
|
10671
|
-
if (
|
|
10672
|
-
button.options.widget =
|
|
10673
|
-
|
|
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;
|
|
10674
10946
|
}
|
|
10675
|
-
if (
|
|
10676
|
-
button.config.layout = createLayoutFormat(
|
|
10947
|
+
if (config2.layout) {
|
|
10948
|
+
button.config.layout = createLayoutFormat(config2.layout);
|
|
10677
10949
|
}
|
|
10678
|
-
if (
|
|
10679
|
-
button.config.main.tooltipMessage =
|
|
10950
|
+
if (config2.tooltipMessage) {
|
|
10951
|
+
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
10680
10952
|
}
|
|
10681
|
-
if (
|
|
10682
|
-
if (
|
|
10683
|
-
button.config.main.styleDefault =
|
|
10953
|
+
if (config2.defaultStyle) {
|
|
10954
|
+
if (config2.buttonType === "IconButton") {
|
|
10955
|
+
button.config.main.styleDefault = config2.defaultStyle === "true" ? true : false;
|
|
10684
10956
|
} else {
|
|
10685
|
-
button.config.main.enableDefaultStyle =
|
|
10957
|
+
button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
|
|
10686
10958
|
}
|
|
10687
10959
|
}
|
|
10688
|
-
button.scope =
|
|
10689
|
-
if (
|
|
10690
|
-
button.config.style = JSON.parse(
|
|
10960
|
+
button.scope = componentScope2;
|
|
10961
|
+
if (config2.style) {
|
|
10962
|
+
button.config.style = JSON.parse(config2.style);
|
|
10691
10963
|
}
|
|
10692
|
-
if (
|
|
10693
|
-
button.config.main.size =
|
|
10964
|
+
if (config2.size) {
|
|
10965
|
+
button.config.main.size = config2.size;
|
|
10694
10966
|
}
|
|
10695
|
-
if (
|
|
10696
|
-
button.config.main.color =
|
|
10967
|
+
if (config2.color) {
|
|
10968
|
+
button.config.main.color = config2.color;
|
|
10697
10969
|
}
|
|
10698
|
-
if (
|
|
10699
|
-
button.config.main.name =
|
|
10970
|
+
if (config2.label) {
|
|
10971
|
+
button.config.main.name = config2.label;
|
|
10700
10972
|
}
|
|
10701
10973
|
return button;
|
|
10702
10974
|
};
|
|
@@ -10720,71 +10992,71 @@ var Table = {
|
|
|
10720
10992
|
}
|
|
10721
10993
|
}
|
|
10722
10994
|
};
|
|
10723
|
-
const buildTable = (
|
|
10995
|
+
const buildTable = (config2, componentScope2) => {
|
|
10724
10996
|
const table = _.cloneDeep(Table);
|
|
10725
|
-
table.scope =
|
|
10726
|
-
if (
|
|
10727
|
-
table.config.style = JSON.parse(
|
|
10997
|
+
table.scope = componentScope2;
|
|
10998
|
+
if (config2.style) {
|
|
10999
|
+
table.config.style = JSON.parse(config2.style);
|
|
10728
11000
|
}
|
|
10729
|
-
if (
|
|
10730
|
-
table.config.main.lazyLoading =
|
|
11001
|
+
if (config2.lazyLoading) {
|
|
11002
|
+
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
10731
11003
|
}
|
|
10732
|
-
if (
|
|
10733
|
-
table.config.main.enableRowMovement =
|
|
11004
|
+
if (config2.enableRowMovement) {
|
|
11005
|
+
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
10734
11006
|
}
|
|
10735
|
-
if (
|
|
10736
|
-
table.config.main.enableExpanding =
|
|
11007
|
+
if (config2.enableExpanding) {
|
|
11008
|
+
table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
|
|
10737
11009
|
}
|
|
10738
|
-
if (
|
|
10739
|
-
table.config.main.enableExpandAll =
|
|
11010
|
+
if (config2.enableExpandAll) {
|
|
11011
|
+
table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
|
|
10740
11012
|
}
|
|
10741
|
-
if (
|
|
10742
|
-
table.config.main.paginateExpandedRows =
|
|
11013
|
+
if (config2.paginateExpandedRows) {
|
|
11014
|
+
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
10743
11015
|
}
|
|
10744
|
-
if (
|
|
10745
|
-
table.config.main.treeStructure =
|
|
11016
|
+
if (config2.treeStructure) {
|
|
11017
|
+
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
10746
11018
|
}
|
|
10747
|
-
if (
|
|
10748
|
-
table.config.main.Selection =
|
|
11019
|
+
if (config2.SelectionAvailable) {
|
|
11020
|
+
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
10749
11021
|
}
|
|
10750
|
-
if (
|
|
10751
|
-
table.config.main.disableColumnResizing =
|
|
11022
|
+
if (config2.ColumnResizingAvailable) {
|
|
11023
|
+
table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
|
|
10752
11024
|
}
|
|
10753
|
-
if (
|
|
10754
|
-
table.config.main.enableDrag =
|
|
11025
|
+
if (config2.DragAvailable) {
|
|
11026
|
+
table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
|
|
10755
11027
|
}
|
|
10756
|
-
if (
|
|
10757
|
-
table.config.main.downloadAllData =
|
|
11028
|
+
if (config2.downloadAllData) {
|
|
11029
|
+
table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
|
|
10758
11030
|
}
|
|
10759
|
-
if (
|
|
10760
|
-
table.config.main.disableGlobalSearch =
|
|
11031
|
+
if (config2.disableGlobalSearch) {
|
|
11032
|
+
table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
|
|
10761
11033
|
}
|
|
10762
|
-
if (
|
|
10763
|
-
table.config.main.disableColumnFilter =
|
|
11034
|
+
if (config2.disableColumnFilter) {
|
|
11035
|
+
table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
|
|
10764
11036
|
}
|
|
10765
|
-
if (
|
|
10766
|
-
table.config.main.disableSorting =
|
|
11037
|
+
if (config2.disableSorting) {
|
|
11038
|
+
table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
|
|
10767
11039
|
}
|
|
10768
|
-
if (
|
|
10769
|
-
table.config.main.disableEditColumn =
|
|
11040
|
+
if (config2.disableEditColumn) {
|
|
11041
|
+
table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
|
|
10770
11042
|
}
|
|
10771
|
-
if (
|
|
10772
|
-
table.config.main.disableFullScreenToggle =
|
|
11043
|
+
if (config2.disableFullScreenToggle) {
|
|
11044
|
+
table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
|
|
10773
11045
|
}
|
|
10774
|
-
if (
|
|
10775
|
-
table.config.main.disableDensityToggle =
|
|
11046
|
+
if (config2.disableDensityToggle) {
|
|
11047
|
+
table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
|
|
10776
11048
|
}
|
|
10777
|
-
if (
|
|
10778
|
-
table.config.main.disableDownloadFile =
|
|
11049
|
+
if (config2.disableDownloadFile) {
|
|
11050
|
+
table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
|
|
10779
11051
|
}
|
|
10780
|
-
if (
|
|
10781
|
-
table.config.main.disablePagination =
|
|
11052
|
+
if (config2.disablePagination) {
|
|
11053
|
+
table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
|
|
10782
11054
|
}
|
|
10783
|
-
if (
|
|
10784
|
-
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);
|
|
10785
11057
|
}
|
|
10786
|
-
if (
|
|
10787
|
-
table.config.main.selectKey =
|
|
11058
|
+
if (config2.selectKey) {
|
|
11059
|
+
table.config.main.selectKey = config2.selectKey;
|
|
10788
11060
|
}
|
|
10789
11061
|
return table;
|
|
10790
11062
|
};
|
|
@@ -10800,15 +11072,15 @@ const Box = {
|
|
|
10800
11072
|
style: {}
|
|
10801
11073
|
}
|
|
10802
11074
|
};
|
|
10803
|
-
const buildLabel = (
|
|
11075
|
+
const buildLabel = (config2, componentScope2) => {
|
|
10804
11076
|
const box = _.cloneDeep(Box);
|
|
10805
|
-
box.scope =
|
|
10806
|
-
box.config.main.heading =
|
|
10807
|
-
if (
|
|
10808
|
-
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);
|
|
10809
11081
|
}
|
|
10810
|
-
if (
|
|
10811
|
-
box.config.style = JSON.parse(
|
|
11082
|
+
if (config2.style) {
|
|
11083
|
+
box.config.style = JSON.parse(config2.style);
|
|
10812
11084
|
}
|
|
10813
11085
|
return box;
|
|
10814
11086
|
};
|
|
@@ -10848,42 +11120,39 @@ const downloadFile = {
|
|
|
10848
11120
|
"widget": "DownloadFile"
|
|
10849
11121
|
}
|
|
10850
11122
|
};
|
|
10851
|
-
const buildUploadFile = (
|
|
11123
|
+
const buildUploadFile = (config2, componentScope2) => {
|
|
10852
11124
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
10853
|
-
UploadFile.scope =
|
|
10854
|
-
UploadFile.config.main.label =
|
|
10855
|
-
if (
|
|
10856
|
-
UploadFile.config.layout =
|
|
11125
|
+
UploadFile.scope = componentScope2;
|
|
11126
|
+
UploadFile.config.main.label = config2.label;
|
|
11127
|
+
if (config2.layout) {
|
|
11128
|
+
UploadFile.config.layout = createLayoutFormat(config2.layout);
|
|
10857
11129
|
}
|
|
10858
|
-
if (
|
|
10859
|
-
|
|
10860
|
-
}
|
|
10861
|
-
if (config.style) {
|
|
10862
|
-
UploadFile.config.style = config.style;
|
|
11130
|
+
if (config2.style) {
|
|
11131
|
+
UploadFile.config.style = config2.style;
|
|
10863
11132
|
}
|
|
10864
|
-
if (
|
|
11133
|
+
if (config2.required) {
|
|
10865
11134
|
UploadFile.config.main.required = true;
|
|
10866
11135
|
}
|
|
10867
|
-
UploadFile.config.main.errorMessage =
|
|
11136
|
+
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
10868
11137
|
return UploadFile;
|
|
10869
11138
|
};
|
|
10870
|
-
const buildDownloadFile = (
|
|
11139
|
+
const buildDownloadFile = (config2, componentScope2) => {
|
|
10871
11140
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
10872
|
-
DownloadFile.scope =
|
|
10873
|
-
if (
|
|
10874
|
-
DownloadFile.config.layout =
|
|
11141
|
+
DownloadFile.scope = componentScope2;
|
|
11142
|
+
if (config2.layout) {
|
|
11143
|
+
DownloadFile.config.layout = config2.layout;
|
|
10875
11144
|
}
|
|
10876
|
-
if (
|
|
10877
|
-
DownloadFile.config.style =
|
|
11145
|
+
if (config2.style) {
|
|
11146
|
+
DownloadFile.config.style = config2.style;
|
|
10878
11147
|
}
|
|
10879
|
-
if (
|
|
11148
|
+
if (config2.required) {
|
|
10880
11149
|
DownloadFile.config.main.required = true;
|
|
10881
11150
|
}
|
|
10882
|
-
if (
|
|
10883
|
-
DownloadFile.config.layout = createLayoutFormat(
|
|
11151
|
+
if (config2.layout) {
|
|
11152
|
+
DownloadFile.config.layout = createLayoutFormat(config2.layout);
|
|
10884
11153
|
}
|
|
10885
|
-
if (
|
|
10886
|
-
DownloadFile.config.main.errorMessage =
|
|
11154
|
+
if (config2.errorMessage) {
|
|
11155
|
+
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
10887
11156
|
}
|
|
10888
11157
|
return DownloadFile;
|
|
10889
11158
|
};
|
|
@@ -10892,15 +11161,23 @@ function Card(theme) {
|
|
|
10892
11161
|
type: "WrapperLayout",
|
|
10893
11162
|
config: {
|
|
10894
11163
|
main: {},
|
|
10895
|
-
wrapperStyle: {
|
|
11164
|
+
wrapperStyle: {
|
|
11165
|
+
position: "relative",
|
|
11166
|
+
top: "50%",
|
|
11167
|
+
transform: "translateY(-50%)"
|
|
11168
|
+
},
|
|
10896
11169
|
componentsBoxStyle: {
|
|
11170
|
+
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
10897
11171
|
flexDirection: "row",
|
|
10898
11172
|
flexWrap: "nowrap",
|
|
10899
|
-
width: "100%",
|
|
11173
|
+
width: "100% !important",
|
|
10900
11174
|
background: "transparent",
|
|
10901
|
-
border: `1.5px solid ${theme.palette.primary.
|
|
10902
|
-
borderRadius: "
|
|
10903
|
-
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",
|
|
10904
11181
|
"&: hover": {
|
|
10905
11182
|
background: `${theme.palette.primary.main}`,
|
|
10906
11183
|
border: `1.5px solid black`,
|
|
@@ -10926,7 +11203,6 @@ function Card(theme) {
|
|
|
10926
11203
|
gap: 0
|
|
10927
11204
|
},
|
|
10928
11205
|
wrapperStyle: {
|
|
10929
|
-
marginTop: "4px",
|
|
10930
11206
|
background: "transparent"
|
|
10931
11207
|
},
|
|
10932
11208
|
componentsBoxStyle: {
|
|
@@ -10941,27 +11217,78 @@ function Card(theme) {
|
|
|
10941
11217
|
},
|
|
10942
11218
|
elements: [
|
|
10943
11219
|
{
|
|
10944
|
-
type: "
|
|
10945
|
-
scope: "#/properties/programType",
|
|
11220
|
+
type: "WrapperLayout",
|
|
10946
11221
|
config: {
|
|
10947
11222
|
main: {
|
|
10948
|
-
|
|
11223
|
+
columnSpacing: 0,
|
|
11224
|
+
gap: 0
|
|
10949
11225
|
},
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
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"
|
|
10959
11240
|
},
|
|
10960
11241
|
layout: 12
|
|
10961
11242
|
},
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
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
|
+
]
|
|
10965
11292
|
},
|
|
10966
11293
|
{
|
|
10967
11294
|
type: "Control",
|
|
@@ -10976,8 +11303,9 @@ function Card(theme) {
|
|
|
10976
11303
|
justifyContent: "center",
|
|
10977
11304
|
textWrap: "wrap",
|
|
10978
11305
|
background: "inherit",
|
|
10979
|
-
width: "calc(100%+
|
|
11306
|
+
width: "calc(100%+8px)",
|
|
10980
11307
|
margin: "-8px",
|
|
11308
|
+
marginTop: "12px",
|
|
10981
11309
|
lineHeight: "1"
|
|
10982
11310
|
},
|
|
10983
11311
|
layout: 12
|
|
@@ -11001,13 +11329,13 @@ function Card(theme) {
|
|
|
11001
11329
|
containerStyle: {
|
|
11002
11330
|
height: "100%",
|
|
11003
11331
|
display: "flex",
|
|
11004
|
-
justifyContent: "
|
|
11332
|
+
justifyContent: "end"
|
|
11005
11333
|
},
|
|
11006
11334
|
imageStyle: {
|
|
11007
|
-
height: "100%",
|
|
11008
11335
|
fontSize: "none",
|
|
11009
11336
|
padding: "4px",
|
|
11010
|
-
|
|
11337
|
+
margin: "0px 0px 0px 8px",
|
|
11338
|
+
height: "64px"
|
|
11011
11339
|
}
|
|
11012
11340
|
},
|
|
11013
11341
|
layout: 4
|
|
@@ -11020,19 +11348,23 @@ function Card(theme) {
|
|
|
11020
11348
|
};
|
|
11021
11349
|
return uiSchema;
|
|
11022
11350
|
}
|
|
11023
|
-
const buildCard = (config, componentScope,
|
|
11024
|
-
const card = _.cloneDeep(Card(
|
|
11351
|
+
const buildCard = (config, componentScope, store) => {
|
|
11352
|
+
const card = _.cloneDeep(Card(store.theme.myTheme));
|
|
11025
11353
|
if (config.style) {
|
|
11026
|
-
card.config.
|
|
11354
|
+
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11027
11355
|
}
|
|
11028
|
-
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`;
|
|
11029
11357
|
card.elements[1].scope = `#/properties/${config.name}/properties/url`;
|
|
11030
11358
|
card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
|
|
11031
11359
|
if (config.layout) {
|
|
11032
11360
|
card.config.layout = createLayoutFormat(config.layout);
|
|
11033
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
|
+
}
|
|
11034
11366
|
if (config.label) {
|
|
11035
|
-
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;
|
|
11036
11368
|
}
|
|
11037
11369
|
if (config.url) {
|
|
11038
11370
|
card.elements[1].config.main.url = config.url;
|
|
@@ -11070,23 +11402,23 @@ const DateTime = {
|
|
|
11070
11402
|
}
|
|
11071
11403
|
}
|
|
11072
11404
|
};
|
|
11073
|
-
const buildDate = (
|
|
11405
|
+
const buildDate = (config2, componentScope2) => {
|
|
11074
11406
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11075
|
-
dateInputField.config.main.label =
|
|
11076
|
-
dateInputField.config.main.errorMessage = `${
|
|
11077
|
-
dateInputField.scope =
|
|
11078
|
-
if (
|
|
11079
|
-
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);
|
|
11080
11412
|
}
|
|
11081
11413
|
return dateInputField;
|
|
11082
11414
|
};
|
|
11083
|
-
const buildDateTime = (
|
|
11415
|
+
const buildDateTime = (config2, componentScope2) => {
|
|
11084
11416
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11085
|
-
dateTimeInputField.config.main.label =
|
|
11086
|
-
dateTimeInputField.config.main.errorMessage = `${
|
|
11087
|
-
dateTimeInputField.scope =
|
|
11088
|
-
if (
|
|
11089
|
-
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);
|
|
11090
11422
|
}
|
|
11091
11423
|
return dateTimeInputField;
|
|
11092
11424
|
};
|
|
@@ -11097,27 +11429,21 @@ var RankCard = {
|
|
|
11097
11429
|
widget: "RankCard"
|
|
11098
11430
|
},
|
|
11099
11431
|
config: {
|
|
11100
|
-
layout: { xs:
|
|
11432
|
+
layout: { xs: 12, sm: 6, md: 6, lg: 6 },
|
|
11101
11433
|
main: {}
|
|
11102
11434
|
}
|
|
11103
11435
|
};
|
|
11104
|
-
const buildRankCard = (
|
|
11436
|
+
const buildRankCard = (config2, componentScope2) => {
|
|
11105
11437
|
const rankCard = _.cloneDeep(RankCard);
|
|
11106
|
-
rankCard.scope =
|
|
11107
|
-
if (
|
|
11108
|
-
rankCard.config.main.
|
|
11109
|
-
}
|
|
11110
|
-
if (config.title) {
|
|
11111
|
-
rankCard.config.main.title = config.title;
|
|
11112
|
-
}
|
|
11113
|
-
if (config.description) {
|
|
11114
|
-
rankCard.config.main.description = config.description;
|
|
11438
|
+
rankCard.scope = componentScope2;
|
|
11439
|
+
if (config2.rank) {
|
|
11440
|
+
rankCard.config.main.rank = `${config2.rank}`;
|
|
11115
11441
|
}
|
|
11116
|
-
if (
|
|
11117
|
-
rankCard.config.main.
|
|
11442
|
+
if (config2.height) {
|
|
11443
|
+
rankCard.config.main.height = `${config2.height}px`;
|
|
11118
11444
|
}
|
|
11119
|
-
if (
|
|
11120
|
-
rankCard.config.layout = createLayoutFormat(
|
|
11445
|
+
if (config2.layout) {
|
|
11446
|
+
rankCard.config.layout = createLayoutFormat(config2.layout);
|
|
11121
11447
|
}
|
|
11122
11448
|
return rankCard;
|
|
11123
11449
|
};
|
|
@@ -11132,13 +11458,13 @@ var RollAndDice = {
|
|
|
11132
11458
|
main: {}
|
|
11133
11459
|
}
|
|
11134
11460
|
};
|
|
11135
|
-
const buildRollAndDice = (
|
|
11461
|
+
const buildRollAndDice = (config2, componentScope2) => {
|
|
11136
11462
|
const rank = _.cloneDeep(RollAndDice);
|
|
11137
|
-
if (
|
|
11138
|
-
rank.scope =
|
|
11463
|
+
if (config2.name) {
|
|
11464
|
+
rank.scope = componentScope2;
|
|
11139
11465
|
}
|
|
11140
|
-
if (
|
|
11141
|
-
rank.config.layout = createLayoutFormat(
|
|
11466
|
+
if (config2.layout) {
|
|
11467
|
+
rank.config.layout = createLayoutFormat(config2.layout);
|
|
11142
11468
|
}
|
|
11143
11469
|
return rank;
|
|
11144
11470
|
};
|
|
@@ -11152,34 +11478,21 @@ var Timer = {
|
|
|
11152
11478
|
layout: {
|
|
11153
11479
|
xs: 12,
|
|
11154
11480
|
sm: 12,
|
|
11155
|
-
md:
|
|
11156
|
-
lg:
|
|
11481
|
+
md: 6,
|
|
11482
|
+
lg: 6
|
|
11157
11483
|
},
|
|
11158
11484
|
main: {},
|
|
11159
|
-
style: {
|
|
11160
|
-
digitContainer: {
|
|
11161
|
-
borderRadius: "4px",
|
|
11162
|
-
textShawdow: "none",
|
|
11163
|
-
width: "22%"
|
|
11164
|
-
},
|
|
11165
|
-
container: {
|
|
11166
|
-
backgroundColor: "#FFFFFF",
|
|
11167
|
-
borderRadius: "18px"
|
|
11168
|
-
},
|
|
11169
|
-
containerLabelColor: {
|
|
11170
|
-
color: "red"
|
|
11171
|
-
}
|
|
11172
|
-
}
|
|
11485
|
+
style: {}
|
|
11173
11486
|
}
|
|
11174
11487
|
};
|
|
11175
|
-
const buildTimer = (
|
|
11488
|
+
const buildTimer = (config2, componentScope2) => {
|
|
11176
11489
|
const timer = _.cloneDeep(Timer);
|
|
11177
|
-
timer.scope =
|
|
11178
|
-
if (
|
|
11179
|
-
timer.config.main.label =
|
|
11490
|
+
timer.scope = componentScope2;
|
|
11491
|
+
if (config2.label) {
|
|
11492
|
+
timer.config.main.label = config2.label;
|
|
11180
11493
|
}
|
|
11181
|
-
if (
|
|
11182
|
-
timer.config.layout = createLayoutFormat(
|
|
11494
|
+
if (config2.layout) {
|
|
11495
|
+
timer.config.layout = createLayoutFormat(config2.layout);
|
|
11183
11496
|
}
|
|
11184
11497
|
return timer;
|
|
11185
11498
|
};
|
|
@@ -11200,30 +11513,30 @@ var MultipleSelect = {
|
|
|
11200
11513
|
}
|
|
11201
11514
|
}
|
|
11202
11515
|
};
|
|
11203
|
-
const buildMultiSelect = (
|
|
11516
|
+
const buildMultiSelect = (config2, componentScope2) => {
|
|
11204
11517
|
const multipleSelect = _.cloneDeep(MultipleSelect);
|
|
11205
|
-
multipleSelect.scope =
|
|
11206
|
-
if (
|
|
11207
|
-
multipleSelect.config.main.label =
|
|
11518
|
+
multipleSelect.scope = componentScope2;
|
|
11519
|
+
if (config2.label) {
|
|
11520
|
+
multipleSelect.config.main.label = config2.label;
|
|
11208
11521
|
}
|
|
11209
|
-
if (
|
|
11210
|
-
multipleSelect.config.layout = createLayoutFormat(
|
|
11522
|
+
if (config2.layout) {
|
|
11523
|
+
multipleSelect.config.layout = createLayoutFormat(config2.layout);
|
|
11211
11524
|
}
|
|
11212
|
-
if (
|
|
11213
|
-
multipleSelect.config.main.options =
|
|
11525
|
+
if (config2.value) {
|
|
11526
|
+
multipleSelect.config.main.options = config2.value;
|
|
11214
11527
|
}
|
|
11215
|
-
if (
|
|
11216
|
-
multipleSelect.config.main.lazyLoading =
|
|
11528
|
+
if (config2.lazyLoading) {
|
|
11529
|
+
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11217
11530
|
}
|
|
11218
11531
|
return multipleSelect;
|
|
11219
11532
|
};
|
|
11220
|
-
const buildBasicUiSchema = (
|
|
11533
|
+
const buildBasicUiSchema = (config2) => {
|
|
11221
11534
|
return {
|
|
11222
11535
|
"type": "HorizontalLayout",
|
|
11223
|
-
pageName:
|
|
11224
|
-
name:
|
|
11225
|
-
accessorKey:
|
|
11226
|
-
heading:
|
|
11536
|
+
pageName: config2.name,
|
|
11537
|
+
name: config2.name,
|
|
11538
|
+
accessorKey: config2.name,
|
|
11539
|
+
heading: config2.label || config2.name,
|
|
11227
11540
|
"elements": []
|
|
11228
11541
|
};
|
|
11229
11542
|
};
|
|
@@ -11254,25 +11567,25 @@ const TextArea = {
|
|
|
11254
11567
|
}
|
|
11255
11568
|
}
|
|
11256
11569
|
};
|
|
11257
|
-
const buildTextArea = (
|
|
11570
|
+
const buildTextArea = (config2, componentScope2) => {
|
|
11258
11571
|
const textArea = _.cloneDeep(TextArea);
|
|
11259
|
-
textArea.config.main.heading =
|
|
11260
|
-
if (
|
|
11261
|
-
textArea.config.layout = createLayoutFormat(
|
|
11572
|
+
textArea.config.main.heading = config2.label;
|
|
11573
|
+
if (config2.layout) {
|
|
11574
|
+
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11262
11575
|
}
|
|
11263
|
-
if (
|
|
11264
|
-
textArea.config.style = JSON.parse(
|
|
11576
|
+
if (config2.style) {
|
|
11577
|
+
textArea.config.style = JSON.parse(config2.style);
|
|
11265
11578
|
}
|
|
11266
|
-
if (
|
|
11267
|
-
textArea.config.main.placeholder =
|
|
11579
|
+
if (config2.placeholder) {
|
|
11580
|
+
textArea.config.main.placeholder = config2.placeholder;
|
|
11268
11581
|
}
|
|
11269
|
-
if (
|
|
11270
|
-
textArea.config.main.enableCodeEditor =
|
|
11582
|
+
if (config2.enableCodeEditor) {
|
|
11583
|
+
textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
|
|
11271
11584
|
}
|
|
11272
|
-
if (
|
|
11273
|
-
textArea.config.main.codeEditorLanguage =
|
|
11585
|
+
if (config2.codeEditorLanguage) {
|
|
11586
|
+
textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
|
|
11274
11587
|
}
|
|
11275
|
-
textArea.scope =
|
|
11588
|
+
textArea.scope = componentScope2;
|
|
11276
11589
|
return textArea;
|
|
11277
11590
|
};
|
|
11278
11591
|
var cardSlider = {
|
|
@@ -11287,13 +11600,13 @@ var cardSlider = {
|
|
|
11287
11600
|
main: {}
|
|
11288
11601
|
}
|
|
11289
11602
|
};
|
|
11290
|
-
const buildSlider = (
|
|
11603
|
+
const buildSlider = (config2, componentScope2) => {
|
|
11291
11604
|
const slider = _.cloneDeep(cardSlider);
|
|
11292
|
-
if (
|
|
11293
|
-
slider.scope =
|
|
11605
|
+
if (config2.name) {
|
|
11606
|
+
slider.scope = componentScope2;
|
|
11294
11607
|
}
|
|
11295
|
-
if (
|
|
11296
|
-
slider.config.layout = createLayoutFormat(
|
|
11608
|
+
if (config2.layout) {
|
|
11609
|
+
slider.config.layout = createLayoutFormat(config2.layout);
|
|
11297
11610
|
}
|
|
11298
11611
|
return slider;
|
|
11299
11612
|
};
|
|
@@ -11310,61 +11623,57 @@ const Checkbox = {
|
|
|
11310
11623
|
}
|
|
11311
11624
|
}
|
|
11312
11625
|
};
|
|
11313
|
-
const buildCheckbox = (
|
|
11626
|
+
const buildCheckbox = (config2, componentScope2) => {
|
|
11314
11627
|
const check = _.cloneDeep(Checkbox);
|
|
11315
|
-
check.scope =
|
|
11316
|
-
check.config.main.label =
|
|
11317
|
-
if (
|
|
11318
|
-
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);
|
|
11319
11632
|
}
|
|
11320
|
-
if (
|
|
11321
|
-
check.config.style = JSON.parse(
|
|
11633
|
+
if (config2.style) {
|
|
11634
|
+
check.config.style = JSON.parse(config2.style);
|
|
11322
11635
|
}
|
|
11323
11636
|
return check;
|
|
11324
11637
|
};
|
|
11325
|
-
const buildLineGraph = (
|
|
11638
|
+
const buildLineGraph = (config2, componentScope2) => {
|
|
11326
11639
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11327
|
-
if (
|
|
11328
|
-
lineGraph.config.layout = createLayoutFormat(
|
|
11640
|
+
if (config2.layout) {
|
|
11641
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11329
11642
|
}
|
|
11330
|
-
lineGraph.config.main.header =
|
|
11331
|
-
if (
|
|
11332
|
-
lineGraph.config.style.containerStyle.height =
|
|
11643
|
+
lineGraph.config.main.header = config2.heading;
|
|
11644
|
+
if (config2.height) {
|
|
11645
|
+
lineGraph.config.style.containerStyle.height = config2.height;
|
|
11333
11646
|
}
|
|
11334
|
-
if (
|
|
11335
|
-
lineGraph.config.style = {
|
|
11336
|
-
|
|
11337
|
-
margin: {
|
|
11338
|
-
left: config.leftMargin
|
|
11339
|
-
}
|
|
11340
|
-
}
|
|
11647
|
+
if (config2.leftMargin) {
|
|
11648
|
+
lineGraph.config.style.labelStyle.margin = {
|
|
11649
|
+
left: config2.leftMargin
|
|
11341
11650
|
};
|
|
11342
11651
|
}
|
|
11343
|
-
if (
|
|
11344
|
-
lineGraph.config.main.bottomLabel =
|
|
11652
|
+
if (config2.bottomLabel) {
|
|
11653
|
+
lineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
11345
11654
|
}
|
|
11346
|
-
if (
|
|
11347
|
-
lineGraph.config.main.yAxisValue =
|
|
11655
|
+
if (config2.yAxisValue) {
|
|
11656
|
+
lineGraph.config.main.yAxisValue = config2.yAxisValue;
|
|
11348
11657
|
}
|
|
11349
|
-
if (
|
|
11350
|
-
lineGraph.config.main.xAxisValue =
|
|
11658
|
+
if (config2.xAxisValue) {
|
|
11659
|
+
lineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11351
11660
|
}
|
|
11352
|
-
if (
|
|
11353
|
-
lineGraph.config.main.leftLabel =
|
|
11661
|
+
if (config2.leftLabel) {
|
|
11662
|
+
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
11354
11663
|
}
|
|
11355
|
-
if (
|
|
11356
|
-
lineGraph.config.main.
|
|
11664
|
+
if (config2.legendHide) {
|
|
11665
|
+
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11357
11666
|
}
|
|
11358
|
-
if (
|
|
11359
|
-
lineGraph.config.main.bottomAxisAngle =
|
|
11667
|
+
if (config2.bottomAxisAngle) {
|
|
11668
|
+
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11360
11669
|
}
|
|
11361
|
-
if (
|
|
11362
|
-
lineGraph.config.main.
|
|
11670
|
+
if (config2.legendLabels) {
|
|
11671
|
+
lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
11363
11672
|
}
|
|
11364
|
-
if (
|
|
11365
|
-
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(
|
|
11673
|
+
if (config2.pieArcColors) {
|
|
11674
|
+
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
11366
11675
|
}
|
|
11367
|
-
lineGraph.scope =
|
|
11676
|
+
lineGraph.scope = componentScope2;
|
|
11368
11677
|
return lineGraph;
|
|
11369
11678
|
};
|
|
11370
11679
|
const RadioUiSchema = {
|
|
@@ -11382,25 +11691,25 @@ const RadioUiSchema = {
|
|
|
11382
11691
|
}
|
|
11383
11692
|
}
|
|
11384
11693
|
};
|
|
11385
|
-
const buildRadio = (
|
|
11694
|
+
const buildRadio = (config2, componentScope2) => {
|
|
11386
11695
|
const Radio = _.cloneDeep(RadioUiSchema);
|
|
11387
|
-
Radio.scope =
|
|
11388
|
-
Radio.config.main.label =
|
|
11389
|
-
if (
|
|
11390
|
-
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);
|
|
11391
11700
|
}
|
|
11392
|
-
if (
|
|
11393
|
-
Radio.config.main.options =
|
|
11701
|
+
if (config2.sectionLabels) {
|
|
11702
|
+
Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
|
|
11394
11703
|
}
|
|
11395
|
-
if (
|
|
11396
|
-
Radio.config.style = JSON.parse(
|
|
11704
|
+
if (config2.style) {
|
|
11705
|
+
Radio.config.style = JSON.parse(config2.style);
|
|
11397
11706
|
}
|
|
11398
11707
|
return Radio;
|
|
11399
11708
|
};
|
|
11400
|
-
const buildEmptyBox = (
|
|
11709
|
+
const buildEmptyBox = (config2, componentScope2) => {
|
|
11401
11710
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11402
|
-
if (
|
|
11403
|
-
EmptyBox.config.layout = createLayoutFormat(
|
|
11711
|
+
if (config2.layout) {
|
|
11712
|
+
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
11404
11713
|
}
|
|
11405
11714
|
return EmptyBox;
|
|
11406
11715
|
};
|
|
@@ -11415,9 +11724,9 @@ const ArrayUiSchema = {
|
|
|
11415
11724
|
}
|
|
11416
11725
|
}
|
|
11417
11726
|
};
|
|
11418
|
-
const buildArray = (
|
|
11727
|
+
const buildArray = (config2, componentScope2) => {
|
|
11419
11728
|
const array = _.cloneDeep(ArrayUiSchema);
|
|
11420
|
-
array.scope =
|
|
11729
|
+
array.scope = componentScope2;
|
|
11421
11730
|
return array;
|
|
11422
11731
|
};
|
|
11423
11732
|
const TextField = {
|
|
@@ -11435,17 +11744,17 @@ const TextField = {
|
|
|
11435
11744
|
}
|
|
11436
11745
|
}
|
|
11437
11746
|
};
|
|
11438
|
-
const buildAdhaarField = (
|
|
11747
|
+
const buildAdhaarField = (config2, componentScope2) => {
|
|
11439
11748
|
const inputField = _.cloneDeep(TextField);
|
|
11440
|
-
inputField.config.main.label =
|
|
11441
|
-
if (
|
|
11442
|
-
inputField.config.style = JSON.parse(
|
|
11749
|
+
inputField.config.main.label = config2.label;
|
|
11750
|
+
if (config2.style) {
|
|
11751
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11443
11752
|
}
|
|
11444
|
-
if (
|
|
11445
|
-
inputField.config.layout = createLayoutFormat(
|
|
11753
|
+
if (config2.layout) {
|
|
11754
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11446
11755
|
}
|
|
11447
|
-
inputField.config.main.errorMessage = `${
|
|
11448
|
-
inputField.scope =
|
|
11756
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11757
|
+
inputField.scope = componentScope2;
|
|
11449
11758
|
return inputField;
|
|
11450
11759
|
};
|
|
11451
11760
|
const PanField = {
|
|
@@ -11463,17 +11772,17 @@ const PanField = {
|
|
|
11463
11772
|
}
|
|
11464
11773
|
}
|
|
11465
11774
|
};
|
|
11466
|
-
const buildPanField = (
|
|
11775
|
+
const buildPanField = (config2, componentScope2) => {
|
|
11467
11776
|
const inputField = _.cloneDeep(PanField);
|
|
11468
|
-
inputField.config.main.label =
|
|
11469
|
-
if (
|
|
11470
|
-
inputField.config.style = JSON.parse(
|
|
11777
|
+
inputField.config.main.label = config2.label;
|
|
11778
|
+
if (config2.style) {
|
|
11779
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11471
11780
|
}
|
|
11472
|
-
if (
|
|
11473
|
-
inputField.config.layout = createLayoutFormat(
|
|
11781
|
+
if (config2.layout) {
|
|
11782
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11474
11783
|
}
|
|
11475
|
-
inputField.config.main.errorMessage = `${
|
|
11476
|
-
inputField.scope =
|
|
11784
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11785
|
+
inputField.scope = componentScope2;
|
|
11477
11786
|
return inputField;
|
|
11478
11787
|
};
|
|
11479
11788
|
const FileInput = {
|
|
@@ -11495,15 +11804,15 @@ const FileInput = {
|
|
|
11495
11804
|
}
|
|
11496
11805
|
}
|
|
11497
11806
|
};
|
|
11498
|
-
const buildFileInput = (
|
|
11807
|
+
const buildFileInput = (config2, componentScope2) => {
|
|
11499
11808
|
const box = _.cloneDeep(FileInput);
|
|
11500
|
-
box.scope =
|
|
11501
|
-
box.config.main.label =
|
|
11502
|
-
if (
|
|
11503
|
-
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);
|
|
11504
11813
|
}
|
|
11505
|
-
if (
|
|
11506
|
-
box.config.style = JSON.parse(
|
|
11814
|
+
if (config2.style) {
|
|
11815
|
+
box.config.style = JSON.parse(config2.style);
|
|
11507
11816
|
}
|
|
11508
11817
|
return box;
|
|
11509
11818
|
};
|
|
@@ -11523,26 +11832,26 @@ const Stepper = {
|
|
|
11523
11832
|
},
|
|
11524
11833
|
"elements": []
|
|
11525
11834
|
};
|
|
11526
|
-
const buildStepper = (
|
|
11835
|
+
const buildStepper = (config2, componentScope2) => {
|
|
11527
11836
|
const stepper = _.cloneDeep(Stepper);
|
|
11528
|
-
stepper.scope =
|
|
11529
|
-
stepper.config.main.resetButton =
|
|
11530
|
-
if (
|
|
11531
|
-
stepper.config.main.defaultButtonAvailable =
|
|
11532
|
-
}
|
|
11533
|
-
stepper.config.main.resetText =
|
|
11534
|
-
stepper.config.main.completeText =
|
|
11535
|
-
stepper.config.main.orientation =
|
|
11536
|
-
if (
|
|
11537
|
-
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) => {
|
|
11538
11847
|
return { label: e.label, id: i };
|
|
11539
11848
|
});
|
|
11540
11849
|
}
|
|
11541
|
-
if (
|
|
11542
|
-
stepper.config.layout = createLayoutFormat(
|
|
11850
|
+
if (config2.layout) {
|
|
11851
|
+
stepper.config.layout = createLayoutFormat(config2.layout);
|
|
11543
11852
|
}
|
|
11544
|
-
if (
|
|
11545
|
-
stepper.config.style = JSON.parse(
|
|
11853
|
+
if (config2.style) {
|
|
11854
|
+
stepper.config.style = JSON.parse(config2.style);
|
|
11546
11855
|
}
|
|
11547
11856
|
return stepper;
|
|
11548
11857
|
};
|
|
@@ -11570,18 +11879,18 @@ const PopUP = {
|
|
|
11570
11879
|
style: {}
|
|
11571
11880
|
}
|
|
11572
11881
|
};
|
|
11573
|
-
const buildPopUp = (
|
|
11882
|
+
const buildPopUp = (config2, componentScope2) => {
|
|
11574
11883
|
const popup = _.cloneDeep(PopUP);
|
|
11575
|
-
popup.scope =
|
|
11576
|
-
popup.config.main.title =
|
|
11577
|
-
popup.config.main.fullScreen =
|
|
11578
|
-
popup.config.main.fullWidth =
|
|
11579
|
-
popup.config.main.maxWidth =
|
|
11580
|
-
if (
|
|
11581
|
-
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);
|
|
11582
11891
|
}
|
|
11583
|
-
if (
|
|
11584
|
-
PopUP.config.style = JSON.parse(
|
|
11892
|
+
if (config2.style) {
|
|
11893
|
+
PopUP.config.style = JSON.parse(config2.style);
|
|
11585
11894
|
}
|
|
11586
11895
|
return popup;
|
|
11587
11896
|
};
|
|
@@ -11601,30 +11910,30 @@ const dataGrid = {
|
|
|
11601
11910
|
style: {}
|
|
11602
11911
|
}
|
|
11603
11912
|
};
|
|
11604
|
-
const buildDataGrid = (
|
|
11913
|
+
const buildDataGrid = (config2, componentScope2) => {
|
|
11605
11914
|
const DataGrid = _.cloneDeep(dataGrid);
|
|
11606
|
-
DataGrid.scope =
|
|
11607
|
-
if (
|
|
11608
|
-
DataGrid.config.main.elevation = +
|
|
11915
|
+
DataGrid.scope = componentScope2;
|
|
11916
|
+
if (config2.elevation) {
|
|
11917
|
+
DataGrid.config.main.elevation = +config2.elevation;
|
|
11609
11918
|
}
|
|
11610
|
-
DataGrid.config.main.divider =
|
|
11611
|
-
if (
|
|
11612
|
-
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`;
|
|
11613
11922
|
}
|
|
11614
|
-
if (
|
|
11615
|
-
DataGrid.config.main.justifyContent =
|
|
11923
|
+
if (config2.justifyContent) {
|
|
11924
|
+
DataGrid.config.main.justifyContent = config2.justifyContent;
|
|
11616
11925
|
}
|
|
11617
|
-
if (
|
|
11618
|
-
DataGrid.config.main.label =
|
|
11926
|
+
if (config2.label) {
|
|
11927
|
+
DataGrid.config.main.label = config2.label;
|
|
11619
11928
|
}
|
|
11620
|
-
if (
|
|
11621
|
-
DataGrid.config.layout = createLayoutFormat(
|
|
11929
|
+
if (config2.layout) {
|
|
11930
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
11622
11931
|
}
|
|
11623
|
-
if (
|
|
11624
|
-
DataGrid.config.cardLayout = createLayoutFormat(
|
|
11932
|
+
if (config2.cardLayout) {
|
|
11933
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
11625
11934
|
}
|
|
11626
|
-
if (
|
|
11627
|
-
DataGrid.config.style = JSON.parse(
|
|
11935
|
+
if (config2.style) {
|
|
11936
|
+
DataGrid.config.style = JSON.parse(config2.style);
|
|
11628
11937
|
}
|
|
11629
11938
|
return DataGrid;
|
|
11630
11939
|
};
|
|
@@ -11635,7 +11944,7 @@ const InputSlider = {
|
|
|
11635
11944
|
widget: "InputSlider"
|
|
11636
11945
|
},
|
|
11637
11946
|
config: {
|
|
11638
|
-
layout: 12,
|
|
11947
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
11639
11948
|
main: {
|
|
11640
11949
|
limitToMax: false,
|
|
11641
11950
|
max: 1e4,
|
|
@@ -11645,27 +11954,27 @@ const InputSlider = {
|
|
|
11645
11954
|
}
|
|
11646
11955
|
}
|
|
11647
11956
|
};
|
|
11648
|
-
const buildInputSlider = (
|
|
11957
|
+
const buildInputSlider = (config2, componentScope2) => {
|
|
11649
11958
|
const inputSlider = _.cloneDeep(InputSlider);
|
|
11650
|
-
inputSlider.scope =
|
|
11651
|
-
inputSlider.config.main.label =
|
|
11652
|
-
if (
|
|
11653
|
-
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);
|
|
11654
11963
|
}
|
|
11655
|
-
if (
|
|
11656
|
-
inputSlider.config.main.limitToMax =
|
|
11964
|
+
if (config2.limitToMax) {
|
|
11965
|
+
inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
|
|
11657
11966
|
}
|
|
11658
|
-
if (
|
|
11659
|
-
inputSlider.config.main.max =
|
|
11967
|
+
if (config2.max) {
|
|
11968
|
+
inputSlider.config.main.max = config2.max;
|
|
11660
11969
|
}
|
|
11661
|
-
if (
|
|
11662
|
-
inputSlider.config.main.step =
|
|
11970
|
+
if (config2.step) {
|
|
11971
|
+
inputSlider.config.main.step = config2.step;
|
|
11663
11972
|
}
|
|
11664
|
-
if (
|
|
11665
|
-
inputSlider.config.main.min =
|
|
11973
|
+
if (config2.min) {
|
|
11974
|
+
inputSlider.config.main.min = config2.min;
|
|
11666
11975
|
}
|
|
11667
|
-
if (
|
|
11668
|
-
inputSlider.config.main.defaultStyle = JSON.parse(
|
|
11976
|
+
if (config2.style) {
|
|
11977
|
+
inputSlider.config.main.defaultStyle = JSON.parse(config2.style);
|
|
11669
11978
|
}
|
|
11670
11979
|
return inputSlider;
|
|
11671
11980
|
};
|
|
@@ -11691,38 +12000,66 @@ const TreeMap = {
|
|
|
11691
12000
|
},
|
|
11692
12001
|
elements: []
|
|
11693
12002
|
};
|
|
11694
|
-
const buildTreeMap = (
|
|
12003
|
+
const buildTreeMap = (config2, componentScope2) => {
|
|
11695
12004
|
const treMap = _.cloneDeep(TreeMap);
|
|
11696
|
-
treMap.scope =
|
|
11697
|
-
if (
|
|
11698
|
-
treMap.config.main.header =
|
|
12005
|
+
treMap.scope = componentScope2;
|
|
12006
|
+
if (config2.label) {
|
|
12007
|
+
treMap.config.main.header = config2.label;
|
|
11699
12008
|
}
|
|
11700
|
-
if (
|
|
11701
|
-
treMap.config.layout = createLayoutFormat(
|
|
12009
|
+
if (config2.layout) {
|
|
12010
|
+
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
11702
12011
|
}
|
|
11703
|
-
if (
|
|
11704
|
-
treMap.config.main.orientation =
|
|
12012
|
+
if (config2.orientation) {
|
|
12013
|
+
treMap.config.main.orientation = config2.orientation;
|
|
11705
12014
|
}
|
|
11706
|
-
if (
|
|
11707
|
-
treMap.config.main.linkType =
|
|
12015
|
+
if (config2.linkType) {
|
|
12016
|
+
treMap.config.main.linkType = config2.linkType;
|
|
11708
12017
|
}
|
|
11709
|
-
if (
|
|
11710
|
-
treMap.config.main.graphHeight =
|
|
12018
|
+
if (config2.graphHeight) {
|
|
12019
|
+
treMap.config.main.graphHeight = config2.graphHeight;
|
|
11711
12020
|
}
|
|
11712
|
-
if (
|
|
11713
|
-
treMap.config.main.graphWidth =
|
|
12021
|
+
if (config2.graphWidth) {
|
|
12022
|
+
treMap.config.main.graphWidth = config2.graphWidth;
|
|
11714
12023
|
}
|
|
11715
|
-
if (
|
|
11716
|
-
treMap.config.main.graphZoomHeight =
|
|
12024
|
+
if (config2.graphZoomHeight) {
|
|
12025
|
+
treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
|
|
11717
12026
|
}
|
|
11718
|
-
if (
|
|
11719
|
-
treMap.config.main.graphZoomWidth =
|
|
12027
|
+
if (config2.graphZoomWidth) {
|
|
12028
|
+
treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
|
|
11720
12029
|
}
|
|
11721
|
-
if (
|
|
11722
|
-
treMap.config.style = JSON.parse(
|
|
12030
|
+
if (config2.style) {
|
|
12031
|
+
treMap.config.style = JSON.parse(config2.style);
|
|
11723
12032
|
}
|
|
11724
12033
|
return treMap;
|
|
11725
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
|
+
};
|
|
11726
12063
|
let schema = {
|
|
11727
12064
|
type: "object",
|
|
11728
12065
|
properties: {},
|
|
@@ -11812,12 +12149,12 @@ function buildRule(configObj, tableName, arrayHolderName) {
|
|
|
11812
12149
|
});
|
|
11813
12150
|
}
|
|
11814
12151
|
}
|
|
11815
|
-
const buildSchema = (
|
|
11816
|
-
buildRule(
|
|
11817
|
-
if (
|
|
11818
|
-
if (
|
|
11819
|
-
if (!schema.properties[
|
|
11820
|
-
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] = {
|
|
11821
12158
|
type: "array",
|
|
11822
12159
|
items: {
|
|
11823
12160
|
type: "object",
|
|
@@ -11826,150 +12163,156 @@ const buildSchema = (config, tableName, isArrayType) => {
|
|
|
11826
12163
|
}
|
|
11827
12164
|
};
|
|
11828
12165
|
}
|
|
11829
|
-
|
|
11830
|
-
buildSchema(e,
|
|
12166
|
+
config2.elements.map((e, elemInd) => {
|
|
12167
|
+
buildSchema(e, config2.name, config2.type === "Array" ? true : false);
|
|
11831
12168
|
});
|
|
11832
12169
|
} else {
|
|
11833
|
-
|
|
12170
|
+
config2.elements.map((e, elemInd) => {
|
|
11834
12171
|
buildSchema(e);
|
|
11835
12172
|
});
|
|
11836
12173
|
}
|
|
11837
12174
|
}
|
|
11838
12175
|
return schema;
|
|
11839
12176
|
};
|
|
11840
|
-
const buildUiSchema = (
|
|
12177
|
+
const buildUiSchema = (config2, store2) => {
|
|
11841
12178
|
let elements = {};
|
|
11842
|
-
const
|
|
11843
|
-
switch (
|
|
12179
|
+
const componentScope2 = `#/properties/${config2.name}`;
|
|
12180
|
+
switch (config2.type) {
|
|
11844
12181
|
case "TreeMap":
|
|
11845
|
-
elements = buildTreeMap(
|
|
12182
|
+
elements = buildTreeMap(config2, componentScope2);
|
|
11846
12183
|
break;
|
|
11847
12184
|
case "DateTime":
|
|
11848
|
-
elements = buildDateTime(
|
|
12185
|
+
elements = buildDateTime(config2, componentScope2);
|
|
11849
12186
|
break;
|
|
11850
12187
|
case "InputSlider":
|
|
11851
|
-
elements = buildInputSlider(
|
|
12188
|
+
elements = buildInputSlider(config2, componentScope2);
|
|
11852
12189
|
break;
|
|
11853
12190
|
case "DataGrid":
|
|
11854
|
-
elements = buildDataGrid(
|
|
12191
|
+
elements = buildDataGrid(config2, componentScope2);
|
|
11855
12192
|
break;
|
|
11856
12193
|
case "Stepper":
|
|
11857
|
-
elements = buildStepper(
|
|
12194
|
+
elements = buildStepper(config2, componentScope2);
|
|
11858
12195
|
break;
|
|
11859
12196
|
case "PopUp":
|
|
11860
|
-
elements = buildPopUp(
|
|
12197
|
+
elements = buildPopUp(config2, componentScope2);
|
|
11861
12198
|
break;
|
|
11862
12199
|
case "FileInput":
|
|
11863
|
-
elements = buildFileInput(
|
|
12200
|
+
elements = buildFileInput(config2, componentScope2);
|
|
11864
12201
|
break;
|
|
11865
12202
|
case "AadharcardText":
|
|
11866
|
-
elements = buildAdhaarField(
|
|
12203
|
+
elements = buildAdhaarField(config2, componentScope2);
|
|
11867
12204
|
break;
|
|
11868
12205
|
case "PanCardText":
|
|
11869
|
-
elements = buildPanField(
|
|
12206
|
+
elements = buildPanField(config2, componentScope2);
|
|
11870
12207
|
break;
|
|
11871
12208
|
case "TabSection":
|
|
11872
|
-
elements = buildTabSection(
|
|
12209
|
+
elements = buildTabSection(config2, componentScope2);
|
|
11873
12210
|
break;
|
|
11874
12211
|
case "RunnerBoyProgressBar":
|
|
11875
|
-
elements = RunnerBoyProgressbar(
|
|
12212
|
+
elements = RunnerBoyProgressbar(config2, componentScope2);
|
|
11876
12213
|
break;
|
|
11877
12214
|
case "WrapperSection":
|
|
11878
|
-
elements = buildWrapperSection(
|
|
12215
|
+
elements = buildWrapperSection(config2, componentScope2);
|
|
11879
12216
|
break;
|
|
11880
12217
|
case "Text":
|
|
11881
|
-
elements = buildTextField(
|
|
12218
|
+
elements = buildTextField(config2, componentScope2);
|
|
11882
12219
|
break;
|
|
11883
12220
|
case "TextArea":
|
|
11884
|
-
elements = buildTextArea(
|
|
12221
|
+
elements = buildTextArea(config2, componentScope2);
|
|
11885
12222
|
break;
|
|
11886
12223
|
case "Date":
|
|
11887
|
-
elements = buildDate(
|
|
12224
|
+
elements = buildDate(config2, componentScope2);
|
|
11888
12225
|
break;
|
|
11889
12226
|
case "Select":
|
|
11890
|
-
elements = buildSelect(
|
|
12227
|
+
elements = buildSelect(config2, componentScope2);
|
|
11891
12228
|
break;
|
|
11892
12229
|
case "Radio":
|
|
11893
|
-
elements = buildRadio(
|
|
12230
|
+
elements = buildRadio(config2, componentScope2);
|
|
11894
12231
|
break;
|
|
11895
12232
|
case "Button":
|
|
11896
|
-
elements = buildButton(
|
|
12233
|
+
elements = buildButton(config2, componentScope2);
|
|
11897
12234
|
break;
|
|
11898
12235
|
case "Table":
|
|
11899
|
-
elements = buildTable(
|
|
12236
|
+
elements = buildTable(config2, componentScope2);
|
|
11900
12237
|
break;
|
|
11901
12238
|
case "Array":
|
|
11902
|
-
elements = buildArray(
|
|
12239
|
+
elements = buildArray(config2, componentScope2);
|
|
11903
12240
|
break;
|
|
11904
12241
|
case "Box":
|
|
11905
|
-
elements = buildLabel(
|
|
12242
|
+
elements = buildLabel(config2, componentScope2);
|
|
11906
12243
|
break;
|
|
11907
12244
|
case "CheckBox":
|
|
11908
|
-
elements = buildCheckbox(
|
|
12245
|
+
elements = buildCheckbox(config2, componentScope2);
|
|
11909
12246
|
break;
|
|
11910
12247
|
case "UploadFile":
|
|
11911
|
-
elements = buildUploadFile(
|
|
12248
|
+
elements = buildUploadFile(config2, componentScope2);
|
|
11912
12249
|
break;
|
|
11913
12250
|
case "DownloadFile":
|
|
11914
|
-
elements = buildDownloadFile(
|
|
12251
|
+
elements = buildDownloadFile(config2, componentScope2);
|
|
11915
12252
|
break;
|
|
11916
12253
|
case "EmptyBox":
|
|
11917
|
-
elements = buildEmptyBox(
|
|
12254
|
+
elements = buildEmptyBox(config2);
|
|
11918
12255
|
break;
|
|
11919
12256
|
case "card":
|
|
11920
|
-
elements = buildCard(
|
|
12257
|
+
elements = buildCard(config2, componentScope2, store2);
|
|
11921
12258
|
break;
|
|
11922
12259
|
case "Graph":
|
|
11923
|
-
switch (
|
|
12260
|
+
switch (config2.graphType) {
|
|
11924
12261
|
case "BarGraph":
|
|
11925
12262
|
case "StackBarGraph":
|
|
11926
|
-
elements = buildStackbarGraph(
|
|
12263
|
+
elements = buildStackbarGraph(config2, componentScope2);
|
|
11927
12264
|
break;
|
|
11928
12265
|
case "LineGraph":
|
|
11929
|
-
elements = buildLineGraph(
|
|
12266
|
+
elements = buildLineGraph(config2, componentScope2);
|
|
11930
12267
|
break;
|
|
11931
12268
|
case "PieGraph":
|
|
11932
|
-
elements = buildPieGraph(
|
|
12269
|
+
elements = buildPieGraph(config2, componentScope2);
|
|
11933
12270
|
break;
|
|
11934
12271
|
case "HorizontalBarGraph":
|
|
11935
12272
|
case "HorizontalStackBarGraph":
|
|
11936
|
-
elements = buildHorizontalBarGraph(
|
|
12273
|
+
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12274
|
+
break;
|
|
12275
|
+
default:
|
|
12276
|
+
elements = buildStackbarGraph(config2, componentScope2);
|
|
11937
12277
|
break;
|
|
11938
12278
|
}
|
|
11939
12279
|
break;
|
|
11940
12280
|
case "ProgressBar":
|
|
11941
|
-
elements = buildProgressBar(
|
|
12281
|
+
elements = buildProgressBar(config2, componentScope2);
|
|
11942
12282
|
break;
|
|
11943
12283
|
case "SpeedoMeter":
|
|
11944
|
-
elements = buildSpeedoMeter(
|
|
12284
|
+
elements = buildSpeedoMeter(config2, componentScope2);
|
|
11945
12285
|
break;
|
|
11946
12286
|
case "ProgressBarCard":
|
|
11947
|
-
elements = buildProgressBarCard(
|
|
12287
|
+
elements = buildProgressBarCard(config2, componentScope2);
|
|
11948
12288
|
break;
|
|
11949
12289
|
case "RankCard":
|
|
11950
|
-
elements = buildRankCard(
|
|
12290
|
+
elements = buildRankCard(config2, componentScope2);
|
|
11951
12291
|
break;
|
|
11952
12292
|
case "Rank":
|
|
11953
|
-
elements = buildRollAndDice(
|
|
12293
|
+
elements = buildRollAndDice(config2, componentScope2);
|
|
11954
12294
|
break;
|
|
11955
12295
|
case "Slider":
|
|
11956
|
-
elements = buildSlider(
|
|
12296
|
+
elements = buildSlider(config2, componentScope2);
|
|
11957
12297
|
break;
|
|
11958
12298
|
case "Timer":
|
|
11959
|
-
elements = buildTimer(
|
|
12299
|
+
elements = buildTimer(config2, componentScope2);
|
|
11960
12300
|
break;
|
|
11961
12301
|
case "ColumnGroup":
|
|
11962
12302
|
elements = {
|
|
11963
|
-
accessorKey:
|
|
11964
|
-
header:
|
|
12303
|
+
accessorKey: config2.name,
|
|
12304
|
+
header: config2.label || config2.name,
|
|
11965
12305
|
elements: []
|
|
11966
12306
|
};
|
|
11967
12307
|
break;
|
|
11968
12308
|
case "MultipleSelect":
|
|
11969
|
-
elements = buildMultiSelect(
|
|
12309
|
+
elements = buildMultiSelect(config2, componentScope2);
|
|
11970
12310
|
break;
|
|
11971
12311
|
case "LeaderBoard":
|
|
11972
|
-
elements = buildLeaderBoard(
|
|
12312
|
+
elements = buildLeaderBoard(config2);
|
|
12313
|
+
break;
|
|
12314
|
+
case "Thought":
|
|
12315
|
+
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
11973
12316
|
break;
|
|
11974
12317
|
default:
|
|
11975
12318
|
schema = {
|
|
@@ -11977,19 +12320,19 @@ const buildUiSchema = (config, store2) => {
|
|
|
11977
12320
|
properties: {},
|
|
11978
12321
|
required: []
|
|
11979
12322
|
};
|
|
11980
|
-
elements = buildBasicUiSchema(
|
|
12323
|
+
elements = buildBasicUiSchema(config2);
|
|
11981
12324
|
}
|
|
11982
|
-
if (
|
|
11983
|
-
if ((
|
|
12325
|
+
if (config2 == null ? void 0 : config2.elements) {
|
|
12326
|
+
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
11984
12327
|
return elements;
|
|
11985
|
-
} else if (
|
|
12328
|
+
} else if (config2.type == "ColumnGroup") {
|
|
11986
12329
|
const sizeMap = {};
|
|
11987
|
-
if (
|
|
11988
|
-
|
|
12330
|
+
if (config2.sizeHolder) {
|
|
12331
|
+
config2.sizeHolder.map((e, i) => {
|
|
11989
12332
|
sizeMap[e.keyName] = e.value;
|
|
11990
12333
|
});
|
|
11991
12334
|
}
|
|
11992
|
-
elements.elements =
|
|
12335
|
+
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
11993
12336
|
return {
|
|
11994
12337
|
accessorKey: cellElem.name,
|
|
11995
12338
|
header: cellElem.label || cellElem.name,
|
|
@@ -11998,20 +12341,20 @@ const buildUiSchema = (config, store2) => {
|
|
|
11998
12341
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
|
|
11999
12342
|
};
|
|
12000
12343
|
});
|
|
12001
|
-
} else if (
|
|
12344
|
+
} else if (config2.type == "Table") {
|
|
12002
12345
|
const sizeMap = {};
|
|
12003
12346
|
const filterMap = {};
|
|
12004
|
-
if (
|
|
12005
|
-
|
|
12347
|
+
if (config2.sizeHolder) {
|
|
12348
|
+
config2.sizeHolder.map((e, i) => {
|
|
12006
12349
|
sizeMap[e.keyName] = e.value;
|
|
12007
12350
|
});
|
|
12008
12351
|
}
|
|
12009
|
-
if (
|
|
12010
|
-
|
|
12352
|
+
if (config2.enableColumnFilter) {
|
|
12353
|
+
config2.enableColumnFilter.map((e) => {
|
|
12011
12354
|
filterMap[e.keyName] = true;
|
|
12012
12355
|
});
|
|
12013
12356
|
}
|
|
12014
|
-
elements.elements =
|
|
12357
|
+
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12015
12358
|
var _a, _b;
|
|
12016
12359
|
if (cellElem.type) {
|
|
12017
12360
|
return {
|
|
@@ -12022,7 +12365,7 @@ const buildUiSchema = (config, store2) => {
|
|
|
12022
12365
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12023
12366
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12024
12367
|
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
|
|
12025
|
-
columnFilterModeOptions:
|
|
12368
|
+
columnFilterModeOptions: config2.filteringOptions
|
|
12026
12369
|
};
|
|
12027
12370
|
} else {
|
|
12028
12371
|
return {
|
|
@@ -12031,16 +12374,16 @@ const buildUiSchema = (config, store2) => {
|
|
|
12031
12374
|
header: cellElem.label || cellElem.name,
|
|
12032
12375
|
size: sizeMap[cellElem.name] || 180,
|
|
12033
12376
|
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
|
|
12034
|
-
columnFilterModeOptions:
|
|
12377
|
+
columnFilterModeOptions: config2.filteringOptions
|
|
12035
12378
|
};
|
|
12036
12379
|
}
|
|
12037
12380
|
});
|
|
12038
|
-
} else if (
|
|
12039
|
-
elements.options.detail.elements =
|
|
12381
|
+
} else if (config2.type == "Array") {
|
|
12382
|
+
elements.options.detail.elements = config2.elements.map((e, elemInd) => {
|
|
12040
12383
|
return buildUiSchema(e, store2);
|
|
12041
12384
|
});
|
|
12042
12385
|
} else {
|
|
12043
|
-
elements.elements =
|
|
12386
|
+
elements.elements = config2.elements.map((e, elemInd) => {
|
|
12044
12387
|
return buildUiSchema(e, store2);
|
|
12045
12388
|
});
|
|
12046
12389
|
}
|