impaktapps-ui-builder 0.0.99 → 0.0.101-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +1909 -1522
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +17 -17
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
- 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 +94 -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/pdfViewer.d.ts +19 -0
- 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/buildAadharCard.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +7 -2
- 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/buildPdfViewer.ts +22 -0
- 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 +11 -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 +103 -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/pdfViewer.ts +18 -0
- 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 +6 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +424 -202
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +479 -167
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +339 -111
- 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 +151 -47
|
@@ -39,12 +39,15 @@ const PageMasterSchema = {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
},
|
|
43
|
+
RemoveItemButton: {
|
|
44
|
+
disabled: true
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
47
|
required: ["template", "name", "label"]
|
|
45
48
|
};
|
|
46
49
|
const PageMasterUiSchema = (theme) => {
|
|
47
|
-
var _a;
|
|
50
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
48
51
|
const uiSchema = {
|
|
49
52
|
type: "HorizontalLayout",
|
|
50
53
|
heading: "Page Master",
|
|
@@ -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,84 +487,116 @@ 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
|
},
|
|
381
505
|
config: {
|
|
382
|
-
layout:
|
|
506
|
+
layout: 11,
|
|
383
507
|
main: {
|
|
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: 11,
|
|
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,84 +610,116 @@ 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
|
},
|
|
472
628
|
config: {
|
|
473
|
-
layout:
|
|
629
|
+
layout: 11,
|
|
474
630
|
main: {
|
|
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: 11,
|
|
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
|
},
|
|
@@ -548,7 +741,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
548
741
|
flexDirection: "row",
|
|
549
742
|
position: "absolute",
|
|
550
743
|
bottom: 0,
|
|
551
|
-
marginBottom: "-8px",
|
|
552
744
|
height: "fit-content",
|
|
553
745
|
overflow: "hidden",
|
|
554
746
|
zIndex: 1e3,
|
|
@@ -567,22 +759,23 @@ const PageMasterUiSchema = (theme) => {
|
|
|
567
759
|
heading: "Copywriter@ACT21.IO"
|
|
568
760
|
},
|
|
569
761
|
style: {
|
|
570
|
-
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
571
|
-
fontSize: "
|
|
762
|
+
color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
|
|
763
|
+
fontSize: "11px",
|
|
572
764
|
textAlign: "center",
|
|
573
|
-
lineHeight:
|
|
765
|
+
lineHeight: 2,
|
|
574
766
|
width: "fit-content",
|
|
575
767
|
left: "50%",
|
|
576
768
|
position: "relative",
|
|
577
769
|
margin: 0,
|
|
578
770
|
flexGrow: 1,
|
|
579
|
-
height: 0
|
|
771
|
+
height: 0,
|
|
772
|
+
transform: "translate(-50%, 0%)"
|
|
580
773
|
}
|
|
581
774
|
}
|
|
582
775
|
},
|
|
583
776
|
{
|
|
584
777
|
type: "Control",
|
|
585
|
-
scope: "#/properties/
|
|
778
|
+
scope: "#/properties/FooterBackIcon",
|
|
586
779
|
options: {
|
|
587
780
|
widget: "Box"
|
|
588
781
|
},
|
|
@@ -593,24 +786,24 @@ const PageMasterUiSchema = (theme) => {
|
|
|
593
786
|
width: "fit-content"
|
|
594
787
|
},
|
|
595
788
|
style: {
|
|
596
|
-
fill: theme.palette.primary.main,
|
|
789
|
+
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
597
790
|
width: 20,
|
|
598
791
|
height: 0,
|
|
599
|
-
margin: 0,
|
|
600
792
|
top: 0,
|
|
601
793
|
right: { xs: "12px", sm: "84px" },
|
|
602
794
|
position: "absolute",
|
|
603
795
|
fontSize: "12px",
|
|
604
796
|
cursor: "pointer",
|
|
605
797
|
":hover": {
|
|
606
|
-
fill: theme.palette.primary.dark
|
|
607
|
-
}
|
|
798
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
799
|
+
},
|
|
800
|
+
marginRight: "20px"
|
|
608
801
|
}
|
|
609
802
|
}
|
|
610
803
|
},
|
|
611
804
|
{
|
|
612
805
|
type: "Control",
|
|
613
|
-
scope: "#/properties/
|
|
806
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
614
807
|
options: {
|
|
615
808
|
widget: "Box"
|
|
616
809
|
},
|
|
@@ -625,17 +818,17 @@ const PageMasterUiSchema = (theme) => {
|
|
|
625
818
|
lineHeight: 1,
|
|
626
819
|
height: 0,
|
|
627
820
|
width: "fit-content",
|
|
628
|
-
color: theme.palette.primary.main,
|
|
821
|
+
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
629
822
|
fontSize: "12px",
|
|
630
823
|
cursor: "pointer",
|
|
631
824
|
marginLeft: "2px",
|
|
632
|
-
marginRight: 0,
|
|
633
825
|
top: 3,
|
|
634
826
|
right: "12px",
|
|
635
827
|
position: "absolute",
|
|
636
828
|
":hover": {
|
|
637
|
-
color: theme.palette.primary.dark
|
|
638
|
-
}
|
|
829
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
830
|
+
},
|
|
831
|
+
marginRight: "4px"
|
|
639
832
|
}
|
|
640
833
|
}
|
|
641
834
|
}
|
|
@@ -6126,7 +6319,9 @@ const ComponentSchema = {
|
|
|
6126
6319
|
{ title: "Timer", const: "Timer" },
|
|
6127
6320
|
{ title: "Upload File", const: "UploadFile" },
|
|
6128
6321
|
{ title: "TreeMap", const: "TreeMap" },
|
|
6129
|
-
{ title: "ColumnGroup", const: "ColumnGroup" }
|
|
6322
|
+
{ title: "ColumnGroup", const: "ColumnGroup" },
|
|
6323
|
+
{ title: "Thought of the Day", const: "Thought" },
|
|
6324
|
+
{ title: "Pdf Viewer", const: "PdfViewer" }
|
|
6130
6325
|
]
|
|
6131
6326
|
},
|
|
6132
6327
|
columnFormat: {
|
|
@@ -6415,12 +6610,15 @@ 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
|
};
|
|
6422
6620
|
const componentBasicUiSchema = (theme) => {
|
|
6423
|
-
var _a;
|
|
6621
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
6424
6622
|
const uiSchema = {
|
|
6425
6623
|
type: "HorizontalLayout",
|
|
6426
6624
|
heading: "Component",
|
|
@@ -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: "
|
|
6638
|
-
},
|
|
6639
|
-
config: {
|
|
6640
|
-
main: {},
|
|
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"
|
|
6820
|
+
widget: "Box"
|
|
6649
6821
|
},
|
|
6650
6822
|
config: {
|
|
6651
|
-
layout:
|
|
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,130 +6893,239 @@ 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
|
},
|
|
6714
6908
|
config: {
|
|
6715
|
-
layout:
|
|
6909
|
+
layout: 11,
|
|
6716
6910
|
main: {
|
|
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: 11,
|
|
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
|
|
7018
|
+
},
|
|
7019
|
+
main: {
|
|
7020
|
+
title: "WARNING!"
|
|
6734
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: 11,
|
|
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: 11,
|
|
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",
|
|
@@ -6836,7 +7144,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6836
7144
|
flexDirection: "row",
|
|
6837
7145
|
position: "absolute",
|
|
6838
7146
|
bottom: 0,
|
|
6839
|
-
marginBottom: "-8px",
|
|
6840
7147
|
height: "fit-content",
|
|
6841
7148
|
overflow: "hidden",
|
|
6842
7149
|
zIndex: 1e3,
|
|
@@ -6855,22 +7162,23 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6855
7162
|
heading: "Copywriter@ACT21.IO"
|
|
6856
7163
|
},
|
|
6857
7164
|
style: {
|
|
6858
|
-
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
6859
|
-
fontSize: "
|
|
7165
|
+
color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
|
|
7166
|
+
fontSize: "11px",
|
|
6860
7167
|
textAlign: "center",
|
|
6861
|
-
lineHeight:
|
|
7168
|
+
lineHeight: 2,
|
|
6862
7169
|
width: "fit-content",
|
|
6863
7170
|
left: "50%",
|
|
6864
7171
|
position: "relative",
|
|
6865
7172
|
margin: 0,
|
|
6866
7173
|
flexGrow: 1,
|
|
6867
|
-
height: 0
|
|
7174
|
+
height: 0,
|
|
7175
|
+
transform: "translate(-50%, 0%)"
|
|
6868
7176
|
}
|
|
6869
7177
|
}
|
|
6870
7178
|
},
|
|
6871
7179
|
{
|
|
6872
7180
|
type: "Control",
|
|
6873
|
-
scope: "#/properties/
|
|
7181
|
+
scope: "#/properties/FooterBackIcon",
|
|
6874
7182
|
options: {
|
|
6875
7183
|
widget: "Box"
|
|
6876
7184
|
},
|
|
@@ -6881,24 +7189,24 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6881
7189
|
width: "fit-content"
|
|
6882
7190
|
},
|
|
6883
7191
|
style: {
|
|
6884
|
-
fill: theme.palette.primary.main,
|
|
7192
|
+
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
6885
7193
|
width: 20,
|
|
6886
7194
|
height: 0,
|
|
6887
|
-
margin: 0,
|
|
6888
7195
|
top: 0,
|
|
6889
7196
|
right: { xs: "12px", sm: "84px" },
|
|
6890
7197
|
position: "absolute",
|
|
6891
7198
|
fontSize: "12px",
|
|
6892
7199
|
cursor: "pointer",
|
|
6893
7200
|
":hover": {
|
|
6894
|
-
fill: theme.palette.primary.dark
|
|
6895
|
-
}
|
|
7201
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
7202
|
+
},
|
|
7203
|
+
marginRight: "20px"
|
|
6896
7204
|
}
|
|
6897
7205
|
}
|
|
6898
7206
|
},
|
|
6899
7207
|
{
|
|
6900
7208
|
type: "Control",
|
|
6901
|
-
scope: "#/properties/
|
|
7209
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
6902
7210
|
options: {
|
|
6903
7211
|
widget: "Box"
|
|
6904
7212
|
},
|
|
@@ -6913,17 +7221,17 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6913
7221
|
lineHeight: 1,
|
|
6914
7222
|
height: 0,
|
|
6915
7223
|
width: "fit-content",
|
|
6916
|
-
color: theme.palette.primary.main,
|
|
7224
|
+
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
6917
7225
|
fontSize: "12px",
|
|
6918
7226
|
cursor: "pointer",
|
|
6919
7227
|
marginLeft: "2px",
|
|
6920
|
-
marginRight: 0,
|
|
6921
7228
|
top: 3,
|
|
6922
7229
|
right: "12px",
|
|
6923
7230
|
position: "absolute",
|
|
6924
7231
|
":hover": {
|
|
6925
|
-
color: theme.palette.primary.dark
|
|
6926
|
-
}
|
|
7232
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
7233
|
+
},
|
|
7234
|
+
marginRight: "4px"
|
|
6927
7235
|
}
|
|
6928
7236
|
}
|
|
6929
7237
|
}
|
|
@@ -7098,6 +7406,27 @@ const EventSection = (theme) => {
|
|
|
7098
7406
|
}
|
|
7099
7407
|
}
|
|
7100
7408
|
}
|
|
7409
|
+
},
|
|
7410
|
+
{
|
|
7411
|
+
widget: {
|
|
7412
|
+
type: "Control",
|
|
7413
|
+
scope: "#/properties/Paste_Event",
|
|
7414
|
+
options: {
|
|
7415
|
+
widget: "IconButton"
|
|
7416
|
+
},
|
|
7417
|
+
config: {
|
|
7418
|
+
main: {
|
|
7419
|
+
onClick: "copyPasteElement",
|
|
7420
|
+
size: "small",
|
|
7421
|
+
icon: "PasteIcon",
|
|
7422
|
+
iconLabel: "Paste",
|
|
7423
|
+
styleDefault: true
|
|
7424
|
+
},
|
|
7425
|
+
style: {
|
|
7426
|
+
mt: "6px"
|
|
7427
|
+
}
|
|
7428
|
+
}
|
|
7429
|
+
}
|
|
7101
7430
|
}
|
|
7102
7431
|
]
|
|
7103
7432
|
},
|
|
@@ -7157,6 +7486,26 @@ const EventSection = (theme) => {
|
|
|
7157
7486
|
}
|
|
7158
7487
|
}
|
|
7159
7488
|
}
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
header: "Copy",
|
|
7492
|
+
field: "Copy_Event",
|
|
7493
|
+
flex: 1,
|
|
7494
|
+
widget: {
|
|
7495
|
+
type: "Control",
|
|
7496
|
+
scope: "#/properties/Copy_Event",
|
|
7497
|
+
options: {
|
|
7498
|
+
widget: "IconButton"
|
|
7499
|
+
},
|
|
7500
|
+
config: {
|
|
7501
|
+
main: {
|
|
7502
|
+
icon: "FileCopyIcon",
|
|
7503
|
+
onClick: "copyPasteElement",
|
|
7504
|
+
tooltipMessage: "Reject This Record",
|
|
7505
|
+
styleDefault: true
|
|
7506
|
+
}
|
|
7507
|
+
}
|
|
7508
|
+
}
|
|
7160
7509
|
}
|
|
7161
7510
|
]
|
|
7162
7511
|
}
|
|
@@ -7474,22 +7823,19 @@ const buildPropertiesSection = function(type) {
|
|
|
7474
7823
|
case "RankCard":
|
|
7475
7824
|
uiSchema.elements = [
|
|
7476
7825
|
getInputField("rank", "Rank"),
|
|
7477
|
-
getInputField("
|
|
7478
|
-
|
|
7479
|
-
getInputField("description", "Card Description"),
|
|
7480
|
-
emptyBox$1("RankCardEmpty1"),
|
|
7481
|
-
emptyBox$1("RankCardEmpty2")
|
|
7826
|
+
getInputField("height", "Height"),
|
|
7827
|
+
emptyBox$1("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7482
7828
|
];
|
|
7483
7829
|
break;
|
|
7484
7830
|
case "LeaderBoard":
|
|
7485
7831
|
uiSchema.elements = [
|
|
7486
|
-
getInputField("valueLabel", "Value Label"),
|
|
7487
7832
|
getInputField("firstImage", "First Image url"),
|
|
7488
7833
|
getInputField("secondImage", "Second Image url"),
|
|
7489
7834
|
getInputField("thirdImage", "Third Image url"),
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7835
|
+
getInputField("nameKey", "Key for Name"),
|
|
7836
|
+
getInputField("imageKey", "Key for Image"),
|
|
7837
|
+
getInputField("scoreKey", "Key for comparing parameter"),
|
|
7838
|
+
emptyBox$1("LeaderBoardEmpty1", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7493
7839
|
];
|
|
7494
7840
|
break;
|
|
7495
7841
|
case "CardSlider":
|
|
@@ -7513,8 +7859,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7513
7859
|
uiSchema.elements = [
|
|
7514
7860
|
getInputField("url", "Image Url"),
|
|
7515
7861
|
getInputField("label", "Label"),
|
|
7862
|
+
getInputField("titleIcon", "Unicode of Icon for title"),
|
|
7516
7863
|
getInputField("description", "Description"),
|
|
7517
|
-
emptyBox$1("cardEmpty", { xs:
|
|
7864
|
+
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7518
7865
|
];
|
|
7519
7866
|
break;
|
|
7520
7867
|
case "Button":
|
|
@@ -7612,6 +7959,11 @@ const buildPropertiesSection = function(type) {
|
|
|
7612
7959
|
emptyBox$1("MultipleSelectEmpty2")
|
|
7613
7960
|
];
|
|
7614
7961
|
break;
|
|
7962
|
+
case "Thought":
|
|
7963
|
+
uiSchema.elements = [
|
|
7964
|
+
getTextArea("thought", "Today's thought", false)
|
|
7965
|
+
];
|
|
7966
|
+
break;
|
|
7615
7967
|
}
|
|
7616
7968
|
return uiSchema;
|
|
7617
7969
|
};
|
|
@@ -7685,6 +8037,27 @@ const TableSection = (theme) => {
|
|
|
7685
8037
|
}
|
|
7686
8038
|
}
|
|
7687
8039
|
}
|
|
8040
|
+
},
|
|
8041
|
+
{
|
|
8042
|
+
widget: {
|
|
8043
|
+
type: "Control",
|
|
8044
|
+
scope: "#/properties/Paste_Component",
|
|
8045
|
+
options: {
|
|
8046
|
+
widget: "IconButton"
|
|
8047
|
+
},
|
|
8048
|
+
config: {
|
|
8049
|
+
main: {
|
|
8050
|
+
onClick: "copyPasteElement",
|
|
8051
|
+
size: "small",
|
|
8052
|
+
icon: "PasteIcon",
|
|
8053
|
+
iconLabel: "Paste",
|
|
8054
|
+
styleDefault: true
|
|
8055
|
+
},
|
|
8056
|
+
style: {
|
|
8057
|
+
mt: "6px"
|
|
8058
|
+
}
|
|
8059
|
+
}
|
|
8060
|
+
}
|
|
7688
8061
|
}
|
|
7689
8062
|
]
|
|
7690
8063
|
},
|
|
@@ -7744,6 +8117,26 @@ const TableSection = (theme) => {
|
|
|
7744
8117
|
}
|
|
7745
8118
|
}
|
|
7746
8119
|
}
|
|
8120
|
+
},
|
|
8121
|
+
{
|
|
8122
|
+
header: "Copy",
|
|
8123
|
+
field: "Copy_Component",
|
|
8124
|
+
flex: 1,
|
|
8125
|
+
widget: {
|
|
8126
|
+
type: "Control",
|
|
8127
|
+
scope: "#/properties/Copy_Component",
|
|
8128
|
+
options: {
|
|
8129
|
+
widget: "IconButton"
|
|
8130
|
+
},
|
|
8131
|
+
config: {
|
|
8132
|
+
main: {
|
|
8133
|
+
icon: "FileCopyIcon",
|
|
8134
|
+
onClick: "copyPasteElement",
|
|
8135
|
+
styleDefault: true,
|
|
8136
|
+
disabled: false
|
|
8137
|
+
}
|
|
8138
|
+
}
|
|
8139
|
+
}
|
|
7747
8140
|
}
|
|
7748
8141
|
]
|
|
7749
8142
|
}
|
|
@@ -7880,8 +8273,8 @@ var buildConfig = (FormData) => {
|
|
|
7880
8273
|
component = { ...formData, ...component };
|
|
7881
8274
|
return component;
|
|
7882
8275
|
};
|
|
7883
|
-
const createLayoutFormat = (
|
|
7884
|
-
if (_.isEmpty(
|
|
8276
|
+
const createLayoutFormat = (config2) => {
|
|
8277
|
+
if (_.isEmpty(config2)) {
|
|
7885
8278
|
return {
|
|
7886
8279
|
xs: 12,
|
|
7887
8280
|
sm: 12,
|
|
@@ -7889,18 +8282,23 @@ const createLayoutFormat = (config) => {
|
|
|
7889
8282
|
lg: 12
|
|
7890
8283
|
};
|
|
7891
8284
|
}
|
|
7892
|
-
let data = {
|
|
7893
|
-
|
|
8285
|
+
let data = {
|
|
8286
|
+
xs: 12,
|
|
8287
|
+
sm: 12,
|
|
8288
|
+
md: 6,
|
|
8289
|
+
lg: 6
|
|
8290
|
+
};
|
|
8291
|
+
config2.map((e) => {
|
|
7894
8292
|
data[e.key || "xs"] = +e.value || 5.5;
|
|
7895
8293
|
});
|
|
7896
8294
|
return data;
|
|
7897
8295
|
};
|
|
7898
|
-
const flatObjectValueInArray = (
|
|
7899
|
-
if (
|
|
8296
|
+
const flatObjectValueInArray = (config2 = []) => {
|
|
8297
|
+
if (config2.length < 1) {
|
|
7900
8298
|
return;
|
|
7901
8299
|
}
|
|
7902
|
-
const keyName = Object.keys(
|
|
7903
|
-
const data =
|
|
8300
|
+
const keyName = Object.keys(config2[0])[0];
|
|
8301
|
+
const data = config2.map((e) => {
|
|
7904
8302
|
return e[keyName];
|
|
7905
8303
|
});
|
|
7906
8304
|
return data;
|
|
@@ -7908,9 +8306,9 @@ const flatObjectValueInArray = (config = []) => {
|
|
|
7908
8306
|
const clearFromSessionStorage = () => {
|
|
7909
8307
|
sessionStorage.removeItem("pageFormdata");
|
|
7910
8308
|
};
|
|
7911
|
-
const getNavigationHistory = (
|
|
8309
|
+
const getNavigationHistory = (config2, path) => {
|
|
7912
8310
|
if (path) {
|
|
7913
|
-
let urlRoutes =
|
|
8311
|
+
let urlRoutes = config2.name;
|
|
7914
8312
|
const pathArrayAll = path.split(".");
|
|
7915
8313
|
const arr = [];
|
|
7916
8314
|
pathArrayAll.map((e, i) => {
|
|
@@ -7921,7 +8319,7 @@ const getNavigationHistory = (config, path) => {
|
|
|
7921
8319
|
arr.push(`${arr[i - 1]}.${e}`);
|
|
7922
8320
|
});
|
|
7923
8321
|
arr.map((e) => {
|
|
7924
|
-
const data = _.get(
|
|
8322
|
+
const data = _.get(config2, e);
|
|
7925
8323
|
if (data) {
|
|
7926
8324
|
urlRoutes = urlRoutes + ` > ${(data == null ? void 0 : data.name) || (data == null ? void 0 : data.eventType)}`;
|
|
7927
8325
|
} else {
|
|
@@ -7955,16 +8353,16 @@ const getFormdataFromSessionStorage = (path) => {
|
|
|
7955
8353
|
}
|
|
7956
8354
|
return returnValue || pageFormdata;
|
|
7957
8355
|
};
|
|
7958
|
-
async function saveHandler(store2, service2, submitHandler
|
|
8356
|
+
async function saveHandler(store2, service2, submitHandler) {
|
|
7959
8357
|
var _a, _b;
|
|
7960
8358
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7961
8359
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7962
8360
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
7963
|
-
const
|
|
8361
|
+
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
7964
8362
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7965
8363
|
try {
|
|
7966
|
-
const saveReturn = await submitHandler(store2, service2,
|
|
7967
|
-
navigateHandler(store2, true,
|
|
8364
|
+
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8365
|
+
navigateHandler(store2, true, "/PageMasterRecords");
|
|
7968
8366
|
} catch (err) {
|
|
7969
8367
|
navigateHandler(store2, false);
|
|
7970
8368
|
}
|
|
@@ -8033,9 +8431,10 @@ const sectionLabels = {
|
|
|
8033
8431
|
DataGrid: ["Core", "Components", "Properties", "Event", "Style"],
|
|
8034
8432
|
InputSlider: ["Core", "Properties", "Event", "Style", "Validation"],
|
|
8035
8433
|
TreeMap: ["Core", "Components", "Properties", "Event", "Style"],
|
|
8036
|
-
ColumnGroup: ["Core", "Components"]
|
|
8434
|
+
ColumnGroup: ["Core", "Components"],
|
|
8435
|
+
Thought: ["Core", "Properties", "Event", "Style", "Validation"]
|
|
8037
8436
|
};
|
|
8038
|
-
|
|
8437
|
+
function refreshPage(type, store2) {
|
|
8039
8438
|
var _a;
|
|
8040
8439
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8041
8440
|
if (type) {
|
|
@@ -8052,8 +8451,11 @@ const refreshPage = (type, store2) => {
|
|
|
8052
8451
|
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
|
|
8053
8452
|
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8054
8453
|
}
|
|
8454
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8455
|
+
this.ElementPathSetter(UiSchema);
|
|
8456
|
+
}
|
|
8055
8457
|
store2.setUiSchema(UiSchema);
|
|
8056
|
-
}
|
|
8458
|
+
}
|
|
8057
8459
|
var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
8058
8460
|
return {
|
|
8059
8461
|
setPage: async function() {
|
|
@@ -8070,10 +8472,14 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8070
8472
|
return getFormdataFromSessionStorage(path);
|
|
8071
8473
|
},
|
|
8072
8474
|
getSchema: function() {
|
|
8073
|
-
|
|
8475
|
+
const schema2 = _.cloneDeep(ComponentSchema);
|
|
8476
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8477
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8478
|
+
}
|
|
8479
|
+
return schema2;
|
|
8074
8480
|
},
|
|
8075
8481
|
okHandler: () => okHandler(store2),
|
|
8076
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
8482
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
8077
8483
|
onChange: function() {
|
|
8078
8484
|
var _a, _b, _c, _d;
|
|
8079
8485
|
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 +8571,84 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8165
8571
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8166
8572
|
sessionStorage.setItem("rowId", rowId);
|
|
8167
8573
|
store2.updateDialog("popUpEventSection");
|
|
8574
|
+
},
|
|
8575
|
+
copyPasteElement: function(paramStore, setPage = this.setPage.bind(this)) {
|
|
8576
|
+
var _a;
|
|
8577
|
+
const [actionType, elementType] = (_a = dynamicData2.path.split(".").pop()) == null ? void 0 : _a.split("_");
|
|
8578
|
+
actionType === "Copy" ? this.CopyElement(paramStore, elementType) : this.PasteElement(setPage, elementType);
|
|
8579
|
+
},
|
|
8580
|
+
CopyElement: function(paramStore = store2, elementType) {
|
|
8581
|
+
var _a;
|
|
8582
|
+
const schema2 = lodash.exports.cloneDeep(paramStore.schema);
|
|
8583
|
+
const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
|
|
8584
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8585
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8586
|
+
const parentPathOfCopiedComponent = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8587
|
+
const copiedElementPath = this.elementPathHandler(parentPathOfCopiedComponent, rowId, elementType);
|
|
8588
|
+
const copiedFormData = getFormdataFromSessionStorage(copiedElementPath);
|
|
8589
|
+
this.ElementPathSetter(uiSchema, copiedFormData);
|
|
8590
|
+
sessionStorage.setItem("copiedConfig", JSON.stringify(copiedFormData));
|
|
8591
|
+
store2.setSchema(schema2);
|
|
8592
|
+
store2.setUiSchema(uiSchema);
|
|
8593
|
+
},
|
|
8594
|
+
PasteElement: function(setPage, elementType) {
|
|
8595
|
+
var _a;
|
|
8596
|
+
if (!sessionStorage.getItem("copiedConfig")) {
|
|
8597
|
+
store2.setNotify({
|
|
8598
|
+
FailMessage: "No item has been copied.",
|
|
8599
|
+
Fail: true
|
|
8600
|
+
});
|
|
8601
|
+
return;
|
|
8602
|
+
}
|
|
8603
|
+
const pastedElementParentPath = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8604
|
+
if (!Array.isArray(store2.formData.elements)) {
|
|
8605
|
+
store2.formData.elements = [];
|
|
8606
|
+
}
|
|
8607
|
+
if (!Array.isArray(store2.formData.events)) {
|
|
8608
|
+
store2.formData.events = [];
|
|
8609
|
+
}
|
|
8610
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, pastedElementParentPath);
|
|
8611
|
+
const formData = getFormdataFromSessionStorage(pastedElementParentPath);
|
|
8612
|
+
const insertElementIndex = elementType === "Component" ? formData.elements.length : formData.events.length;
|
|
8613
|
+
const pastedElementPath = this.elementPathHandler(pastedElementParentPath, insertElementIndex, elementType);
|
|
8614
|
+
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8615
|
+
const notificationMessages = {
|
|
8616
|
+
Event: " The event cannot be integrated into the component section.",
|
|
8617
|
+
Component: "The component cannot be integrated into the event section."
|
|
8618
|
+
};
|
|
8619
|
+
if (copiedConfig.Handler && elementType === "Component") {
|
|
8620
|
+
store2.setNotify({
|
|
8621
|
+
FailMessage: notificationMessages.Event,
|
|
8622
|
+
Fail: true
|
|
8623
|
+
});
|
|
8624
|
+
} else if (copiedConfig.name && elementType === "Event") {
|
|
8625
|
+
store2.setNotify({
|
|
8626
|
+
FailMessage: notificationMessages.Component,
|
|
8627
|
+
Fail: true
|
|
8628
|
+
});
|
|
8629
|
+
} else {
|
|
8630
|
+
saveFormdataInSessionStorage(copiedConfig, pastedElementPath);
|
|
8631
|
+
setPage();
|
|
8632
|
+
}
|
|
8633
|
+
},
|
|
8634
|
+
RemoveItemButton: function(paramStore = store2) {
|
|
8635
|
+
const schema2 = lodash.exports.cloneDeep(paramStore.schema);
|
|
8636
|
+
const uiSchema = lodash.exports.cloneDeep(paramStore.uiSchema);
|
|
8637
|
+
schema2.properties.RemoveItemButton.disabled = true;
|
|
8638
|
+
uiSchema.elements[2].elements[1].config.main.heading = `No element copied`;
|
|
8639
|
+
sessionStorage.removeItem("copiedConfig");
|
|
8640
|
+
store2.setSchema(schema2);
|
|
8641
|
+
store2.setUiSchema(uiSchema);
|
|
8642
|
+
},
|
|
8643
|
+
elementPathHandler: function(parentPath, rowId, elementType) {
|
|
8644
|
+
if (elementType === "Component") {
|
|
8645
|
+
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
8646
|
+
}
|
|
8647
|
+
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
8648
|
+
},
|
|
8649
|
+
ElementPathSetter: function(uiSchema, copiedFormData) {
|
|
8650
|
+
const formData = copiedFormData || JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
8651
|
+
uiSchema.elements[2].elements[1].config.main.heading = `Copied Path: ${formData.pageName}`;
|
|
8168
8652
|
}
|
|
8169
8653
|
};
|
|
8170
8654
|
};
|
|
@@ -8182,19 +8666,27 @@ var pageMaster = (funcParams) => {
|
|
|
8182
8666
|
getFormdata: async function() {
|
|
8183
8667
|
var _a;
|
|
8184
8668
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8185
|
-
const
|
|
8669
|
+
const config2 = await funcParams.pageConfigProvider(id);
|
|
8186
8670
|
const formData = getFormdataFromSessionStorage();
|
|
8187
8671
|
if (formData) {
|
|
8188
8672
|
return formData;
|
|
8189
8673
|
}
|
|
8190
|
-
saveFormdataInSessionStorage(
|
|
8191
|
-
return
|
|
8674
|
+
saveFormdataInSessionStorage(config2);
|
|
8675
|
+
return config2;
|
|
8192
8676
|
},
|
|
8193
8677
|
getUiSchema: function() {
|
|
8194
|
-
|
|
8678
|
+
const UiSchema = _.cloneDeep(PageMasterUiSchema(store2.theme.myTheme));
|
|
8679
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8680
|
+
Component(store2, dynamicData2, submitHandler, service2).ElementPathSetter(UiSchema);
|
|
8681
|
+
}
|
|
8682
|
+
return UiSchema;
|
|
8195
8683
|
},
|
|
8196
8684
|
getSchema: () => {
|
|
8197
|
-
|
|
8685
|
+
const schema2 = _.cloneDeep(PageMasterSchema);
|
|
8686
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
8687
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
8688
|
+
}
|
|
8689
|
+
return schema2;
|
|
8198
8690
|
},
|
|
8199
8691
|
backHandler: () => {
|
|
8200
8692
|
sessionStorage.removeItem("pageFormdata");
|
|
@@ -8258,6 +8750,12 @@ var pageMaster = (funcParams) => {
|
|
|
8258
8750
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8259
8751
|
sessionStorage.setItem("rowId", rowId);
|
|
8260
8752
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8753
|
+
},
|
|
8754
|
+
copyPasteElement: function() {
|
|
8755
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
|
|
8756
|
+
},
|
|
8757
|
+
RemoveItemButton: function() {
|
|
8758
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
|
|
8261
8759
|
}
|
|
8262
8760
|
};
|
|
8263
8761
|
};
|
|
@@ -8346,12 +8844,15 @@ const EventSchema = {
|
|
|
8346
8844
|
}
|
|
8347
8845
|
}
|
|
8348
8846
|
}
|
|
8847
|
+
},
|
|
8848
|
+
RemoveItemButton: {
|
|
8849
|
+
disabled: true
|
|
8349
8850
|
}
|
|
8350
8851
|
},
|
|
8351
8852
|
required: ["eventType", "Handler"]
|
|
8352
8853
|
};
|
|
8353
8854
|
const EventUiSchema = (theme) => {
|
|
8354
|
-
var _a;
|
|
8855
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
8355
8856
|
const uiSchema = {
|
|
8356
8857
|
type: "HorizontalLayout",
|
|
8357
8858
|
heading: "Component",
|
|
@@ -8445,6 +8946,27 @@ const EventUiSchema = (theme) => {
|
|
|
8445
8946
|
}
|
|
8446
8947
|
}
|
|
8447
8948
|
}
|
|
8949
|
+
},
|
|
8950
|
+
{
|
|
8951
|
+
widget: {
|
|
8952
|
+
type: "Control",
|
|
8953
|
+
scope: "#/properties/Paste_Event",
|
|
8954
|
+
options: {
|
|
8955
|
+
widget: "IconButton"
|
|
8956
|
+
},
|
|
8957
|
+
config: {
|
|
8958
|
+
main: {
|
|
8959
|
+
onClick: "copyPasteElement",
|
|
8960
|
+
size: "small",
|
|
8961
|
+
icon: "PasteIcon",
|
|
8962
|
+
iconLabel: "Paste",
|
|
8963
|
+
styleDefault: true
|
|
8964
|
+
},
|
|
8965
|
+
style: {
|
|
8966
|
+
mt: "6px"
|
|
8967
|
+
}
|
|
8968
|
+
}
|
|
8969
|
+
}
|
|
8448
8970
|
}
|
|
8449
8971
|
]
|
|
8450
8972
|
},
|
|
@@ -8503,21 +9025,86 @@ const EventUiSchema = (theme) => {
|
|
|
8503
9025
|
}
|
|
8504
9026
|
}
|
|
8505
9027
|
}
|
|
9028
|
+
},
|
|
9029
|
+
{
|
|
9030
|
+
header: "Copy",
|
|
9031
|
+
field: "Copy_Event",
|
|
9032
|
+
flex: 1,
|
|
9033
|
+
widget: {
|
|
9034
|
+
type: "Control",
|
|
9035
|
+
scope: "#/properties/Copy_Event",
|
|
9036
|
+
options: {
|
|
9037
|
+
widget: "IconButton"
|
|
9038
|
+
},
|
|
9039
|
+
config: {
|
|
9040
|
+
main: {
|
|
9041
|
+
icon: "FileCopyIcon",
|
|
9042
|
+
onClick: "copyPasteElement",
|
|
9043
|
+
styleDefault: true
|
|
9044
|
+
}
|
|
9045
|
+
}
|
|
9046
|
+
}
|
|
8506
9047
|
}
|
|
8507
9048
|
]
|
|
8508
9049
|
}
|
|
8509
9050
|
]
|
|
8510
9051
|
},
|
|
8511
|
-
{
|
|
8512
|
-
type: "
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
9052
|
+
{
|
|
9053
|
+
type: "HorizontalLayout",
|
|
9054
|
+
config: {
|
|
9055
|
+
layout: { xs: 12, sm: 6 }
|
|
9056
|
+
},
|
|
9057
|
+
elements: [
|
|
9058
|
+
{
|
|
9059
|
+
type: "Control",
|
|
9060
|
+
scope: "#/properties/RemoveItemButton",
|
|
9061
|
+
options: {
|
|
9062
|
+
widget: "IconButton"
|
|
9063
|
+
},
|
|
9064
|
+
config: {
|
|
9065
|
+
layout: { xs: 1, sm: 1 },
|
|
9066
|
+
main: {
|
|
9067
|
+
onClick: "RemoveItemButton",
|
|
9068
|
+
size: "large",
|
|
9069
|
+
icon: "RejectIcon",
|
|
9070
|
+
styleDefault: true
|
|
9071
|
+
},
|
|
9072
|
+
style: {
|
|
9073
|
+
marginLeft: "-10px"
|
|
9074
|
+
}
|
|
9075
|
+
}
|
|
9076
|
+
},
|
|
9077
|
+
{
|
|
9078
|
+
type: "Control",
|
|
9079
|
+
scope: "#/properties/copiedElementDetails",
|
|
9080
|
+
options: {
|
|
9081
|
+
widget: "Box"
|
|
9082
|
+
},
|
|
9083
|
+
config: {
|
|
9084
|
+
layout: { xs: 6, sm: 6 },
|
|
9085
|
+
main: {
|
|
9086
|
+
heading: "No element copied"
|
|
9087
|
+
},
|
|
9088
|
+
style: {
|
|
9089
|
+
color: "#535557",
|
|
9090
|
+
marginLeft: "-10px",
|
|
9091
|
+
fontSize: "12px",
|
|
9092
|
+
marginTop: "4px"
|
|
9093
|
+
}
|
|
9094
|
+
}
|
|
9095
|
+
},
|
|
9096
|
+
{
|
|
9097
|
+
type: "Control",
|
|
9098
|
+
scope: "#/properties/EmptyBox",
|
|
9099
|
+
options: {
|
|
9100
|
+
widget: "EmptyBox"
|
|
9101
|
+
},
|
|
9102
|
+
config: {
|
|
9103
|
+
layout: { xs: 1, sm: 5 }
|
|
9104
|
+
}
|
|
9105
|
+
}
|
|
9106
|
+
]
|
|
9107
|
+
},
|
|
8521
9108
|
{
|
|
8522
9109
|
type: "Control",
|
|
8523
9110
|
scope: "#/properties/btn",
|
|
@@ -8570,87 +9157,116 @@ const EventUiSchema = (theme) => {
|
|
|
8570
9157
|
layout: {
|
|
8571
9158
|
xs: 12,
|
|
8572
9159
|
sm: 12,
|
|
8573
|
-
md:
|
|
8574
|
-
lg:
|
|
9160
|
+
md: 12,
|
|
9161
|
+
lg: 12
|
|
8575
9162
|
},
|
|
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
|
-
}
|
|
9163
|
+
main: {
|
|
9164
|
+
title: "WARNING!"
|
|
9165
|
+
},
|
|
9166
|
+
style: {}
|
|
8588
9167
|
},
|
|
8589
9168
|
elements: [
|
|
8590
9169
|
{
|
|
8591
9170
|
type: "Control",
|
|
8592
|
-
scope: "#/properties/
|
|
9171
|
+
scope: "#/properties/popupText",
|
|
8593
9172
|
options: {
|
|
8594
9173
|
widget: "Box"
|
|
8595
9174
|
},
|
|
8596
9175
|
config: {
|
|
8597
|
-
layout:
|
|
9176
|
+
layout: 11,
|
|
8598
9177
|
main: {
|
|
8599
9178
|
heading: "Are you sure you want to delete ?"
|
|
8600
9179
|
},
|
|
8601
9180
|
style: {
|
|
8602
|
-
marginTop: "-
|
|
9181
|
+
marginTop: "-20px",
|
|
9182
|
+
fontSize: "20px",
|
|
9183
|
+
"&.MuiTypography-root": {
|
|
9184
|
+
padding: "10px 30px 20px 30px",
|
|
9185
|
+
textAlign: "center",
|
|
9186
|
+
lineHeight: "1"
|
|
9187
|
+
}
|
|
8603
9188
|
}
|
|
8604
9189
|
}
|
|
8605
9190
|
},
|
|
8606
9191
|
{
|
|
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
|
-
},
|
|
9192
|
+
type: "WrapperLayout",
|
|
8623
9193
|
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"
|
|
9194
|
+
layout: 11,
|
|
9195
|
+
main: {}
|
|
8641
9196
|
},
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
9197
|
+
elements: [
|
|
9198
|
+
{
|
|
9199
|
+
type: "Control",
|
|
9200
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
9201
|
+
options: {
|
|
9202
|
+
widget: "Button"
|
|
9203
|
+
},
|
|
9204
|
+
config: {
|
|
9205
|
+
layout: 6,
|
|
9206
|
+
main: {
|
|
9207
|
+
name: "No",
|
|
9208
|
+
startIcon: "ApproveIcon",
|
|
9209
|
+
variant: "contained",
|
|
9210
|
+
color: "info",
|
|
9211
|
+
type: "text",
|
|
9212
|
+
onClick: "deletePopUpEvent",
|
|
9213
|
+
size: "large"
|
|
9214
|
+
},
|
|
9215
|
+
style: {
|
|
9216
|
+
position: "absolute",
|
|
9217
|
+
bottom: 0,
|
|
9218
|
+
left: 0,
|
|
9219
|
+
width: "50%",
|
|
9220
|
+
borderRadius: 0,
|
|
9221
|
+
boxShadow: 0,
|
|
9222
|
+
backgroundColor: "transparent",
|
|
9223
|
+
color: theme.palette.primary.main,
|
|
9224
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9225
|
+
borderRight: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9226
|
+
"&:hover": {
|
|
9227
|
+
color: theme.palette.primary.contrastText,
|
|
9228
|
+
backgroundColor: theme.palette.primary.main,
|
|
9229
|
+
boxShadow: "none"
|
|
9230
|
+
}
|
|
9231
|
+
}
|
|
9232
|
+
}
|
|
9233
|
+
},
|
|
9234
|
+
{
|
|
9235
|
+
type: "Control",
|
|
9236
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
9237
|
+
options: {
|
|
9238
|
+
widget: "Button"
|
|
9239
|
+
},
|
|
9240
|
+
config: {
|
|
9241
|
+
layout: 6,
|
|
9242
|
+
main: {
|
|
9243
|
+
name: "Yes",
|
|
9244
|
+
startIcon: "ApproveIcon",
|
|
9245
|
+
variant: "contained",
|
|
9246
|
+
color: "error",
|
|
9247
|
+
type: "text",
|
|
9248
|
+
onClick: "deleteEvent",
|
|
9249
|
+
size: "large"
|
|
9250
|
+
},
|
|
9251
|
+
style: {
|
|
9252
|
+
position: "absolute",
|
|
9253
|
+
bottom: 0,
|
|
9254
|
+
right: 0,
|
|
9255
|
+
width: "50%",
|
|
9256
|
+
borderRadius: 0,
|
|
9257
|
+
boxShadow: 0,
|
|
9258
|
+
backgroundColor: "transparent",
|
|
9259
|
+
color: theme.palette.error.main,
|
|
9260
|
+
borderTop: `0.5px solid ${theme.palette.grey[600]}`,
|
|
9261
|
+
"&:hover": {
|
|
9262
|
+
color: theme.palette.error.contrastText,
|
|
9263
|
+
backgroundColor: theme.palette.error.main,
|
|
9264
|
+
boxShadow: "none"
|
|
9265
|
+
}
|
|
9266
|
+
}
|
|
9267
|
+
}
|
|
8652
9268
|
}
|
|
8653
|
-
|
|
9269
|
+
]
|
|
8654
9270
|
}
|
|
8655
9271
|
]
|
|
8656
9272
|
},
|
|
@@ -8672,7 +9288,6 @@ const EventUiSchema = (theme) => {
|
|
|
8672
9288
|
flexDirection: "row",
|
|
8673
9289
|
position: "absolute",
|
|
8674
9290
|
bottom: 0,
|
|
8675
|
-
marginBottom: "-8px",
|
|
8676
9291
|
height: "fit-content",
|
|
8677
9292
|
overflow: "hidden",
|
|
8678
9293
|
zIndex: 1e3,
|
|
@@ -8691,22 +9306,23 @@ const EventUiSchema = (theme) => {
|
|
|
8691
9306
|
heading: "Copywriter@ACT21.IO"
|
|
8692
9307
|
},
|
|
8693
9308
|
style: {
|
|
8694
|
-
color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
|
|
8695
|
-
fontSize: "
|
|
9309
|
+
color: ((_b = (_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text) == null ? void 0 : _b.disabled) || "#AFAFAF",
|
|
9310
|
+
fontSize: "11px",
|
|
8696
9311
|
textAlign: "center",
|
|
8697
|
-
lineHeight:
|
|
9312
|
+
lineHeight: 2,
|
|
8698
9313
|
width: "fit-content",
|
|
8699
9314
|
left: "50%",
|
|
8700
9315
|
position: "relative",
|
|
8701
9316
|
margin: 0,
|
|
8702
9317
|
flexGrow: 1,
|
|
8703
|
-
height: 0
|
|
9318
|
+
height: 0,
|
|
9319
|
+
transform: "translate(-50%, 0%)"
|
|
8704
9320
|
}
|
|
8705
9321
|
}
|
|
8706
9322
|
},
|
|
8707
9323
|
{
|
|
8708
9324
|
type: "Control",
|
|
8709
|
-
scope: "#/properties/
|
|
9325
|
+
scope: "#/properties/FooterBackIcon",
|
|
8710
9326
|
options: {
|
|
8711
9327
|
widget: "Box"
|
|
8712
9328
|
},
|
|
@@ -8717,24 +9333,24 @@ const EventUiSchema = (theme) => {
|
|
|
8717
9333
|
width: "fit-content"
|
|
8718
9334
|
},
|
|
8719
9335
|
style: {
|
|
8720
|
-
fill: theme.palette.primary.main,
|
|
9336
|
+
fill: (_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.primary) == null ? void 0 : _d.main,
|
|
8721
9337
|
width: 20,
|
|
8722
9338
|
height: 0,
|
|
8723
|
-
margin: 0,
|
|
8724
9339
|
top: 0,
|
|
8725
9340
|
right: { xs: "12px", sm: "84px" },
|
|
8726
9341
|
position: "absolute",
|
|
8727
9342
|
fontSize: "12px",
|
|
8728
9343
|
cursor: "pointer",
|
|
8729
9344
|
":hover": {
|
|
8730
|
-
fill: theme.palette.primary.dark
|
|
8731
|
-
}
|
|
9345
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.dark
|
|
9346
|
+
},
|
|
9347
|
+
marginRight: "20px"
|
|
8732
9348
|
}
|
|
8733
9349
|
}
|
|
8734
9350
|
},
|
|
8735
9351
|
{
|
|
8736
9352
|
type: "Control",
|
|
8737
|
-
scope: "#/properties/
|
|
9353
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
8738
9354
|
options: {
|
|
8739
9355
|
widget: "Box"
|
|
8740
9356
|
},
|
|
@@ -8749,17 +9365,17 @@ const EventUiSchema = (theme) => {
|
|
|
8749
9365
|
lineHeight: 1,
|
|
8750
9366
|
height: 0,
|
|
8751
9367
|
width: "fit-content",
|
|
8752
|
-
color: theme.palette.primary.main,
|
|
9368
|
+
color: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.main,
|
|
8753
9369
|
fontSize: "12px",
|
|
8754
9370
|
cursor: "pointer",
|
|
8755
9371
|
marginLeft: "2px",
|
|
8756
|
-
marginRight: 0,
|
|
8757
9372
|
top: 3,
|
|
8758
9373
|
right: "12px",
|
|
8759
9374
|
position: "absolute",
|
|
8760
9375
|
":hover": {
|
|
8761
|
-
color: theme.palette.primary.dark
|
|
8762
|
-
}
|
|
9376
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.dark
|
|
9377
|
+
},
|
|
9378
|
+
marginRight: "4px"
|
|
8763
9379
|
}
|
|
8764
9380
|
}
|
|
8765
9381
|
}
|
|
@@ -9050,6 +9666,10 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9050
9666
|
...functionsName
|
|
9051
9667
|
];
|
|
9052
9668
|
}
|
|
9669
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
9670
|
+
Component(store22, dynamicData2, submitHandler, service2).ElementPathSetter(uiSchema);
|
|
9671
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
9672
|
+
}
|
|
9053
9673
|
store22.setSchema(schema2);
|
|
9054
9674
|
store22.setUiSchema(uiSchema);
|
|
9055
9675
|
},
|
|
@@ -9058,10 +9678,14 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9058
9678
|
return EventUiSchema;
|
|
9059
9679
|
},
|
|
9060
9680
|
getSchema: () => {
|
|
9061
|
-
|
|
9681
|
+
const schema2 = _.cloneDeep(EventSchema);
|
|
9682
|
+
if (sessionStorage.getItem("copiedConfig")) {
|
|
9683
|
+
schema2.properties.RemoveItemButton.disabled = false;
|
|
9684
|
+
}
|
|
9685
|
+
return schema2;
|
|
9062
9686
|
},
|
|
9063
9687
|
okHandler: () => okHandler(store2),
|
|
9064
|
-
saveHandler: async () => await saveHandler(store2, service2, submitHandler
|
|
9688
|
+
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
9065
9689
|
onChange: function() {
|
|
9066
9690
|
var _a, _b, _c;
|
|
9067
9691
|
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 +9725,12 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9101
9725
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9102
9726
|
sessionStorage.setItem("rowId", rowId);
|
|
9103
9727
|
store2.updateDialog("popUpEvent");
|
|
9728
|
+
},
|
|
9729
|
+
copyPasteElement: function() {
|
|
9730
|
+
Component(store2, dynamicData2, submitHandler, service2).copyPasteElement(store2, this.setPage.bind(this));
|
|
9731
|
+
},
|
|
9732
|
+
RemoveItemButton: function() {
|
|
9733
|
+
Component(store2, dynamicData2, submitHandler, service2).RemoveItemButton(store2);
|
|
9104
9734
|
}
|
|
9105
9735
|
};
|
|
9106
9736
|
};
|
|
@@ -9271,37 +9901,41 @@ function executeCustomHandler(params) {
|
|
|
9271
9901
|
}
|
|
9272
9902
|
}
|
|
9273
9903
|
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
|
-
|
|
9904
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9905
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9906
|
+
store2.setSchema((pre) => {
|
|
9907
|
+
var _a;
|
|
9908
|
+
return {
|
|
9909
|
+
...pre,
|
|
9910
|
+
properties: {
|
|
9911
|
+
...pre.properties,
|
|
9912
|
+
[componentName]: {
|
|
9913
|
+
...(_a = pre.properties) == null ? void 0 : _a[componentName],
|
|
9914
|
+
oneOf: handlerResponse.data
|
|
9915
|
+
}
|
|
9284
9916
|
}
|
|
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
|
-
|
|
9917
|
+
};
|
|
9918
|
+
});
|
|
9919
|
+
}
|
|
9920
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9921
|
+
if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9922
|
+
store2.setSchema((pre) => {
|
|
9923
|
+
var _a;
|
|
9924
|
+
return {
|
|
9925
|
+
...pre,
|
|
9926
|
+
properties: {
|
|
9927
|
+
...pre.properties,
|
|
9928
|
+
[componentName]: {
|
|
9929
|
+
...(_a = pre.properties) == null ? void 0 : _a[componentName],
|
|
9930
|
+
type: "array",
|
|
9931
|
+
items: {
|
|
9932
|
+
oneOf: handlerResponse == null ? void 0 : handlerResponse.data
|
|
9933
|
+
}
|
|
9300
9934
|
}
|
|
9301
9935
|
}
|
|
9302
|
-
}
|
|
9303
|
-
};
|
|
9304
|
-
}
|
|
9936
|
+
};
|
|
9937
|
+
});
|
|
9938
|
+
}
|
|
9305
9939
|
} else if (eventConfig.type === "page") {
|
|
9306
9940
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9307
9941
|
store2.newData = {
|
|
@@ -9468,7 +10102,7 @@ var service = (funcParams) => {
|
|
|
9468
10102
|
};
|
|
9469
10103
|
return {
|
|
9470
10104
|
setPage: async function() {
|
|
9471
|
-
var _a, _b, _c, _d;
|
|
10105
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
9472
10106
|
funcParams.store.setFormdata({});
|
|
9473
10107
|
funcParams.store.newData = {};
|
|
9474
10108
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
@@ -9482,10 +10116,10 @@ var service = (funcParams) => {
|
|
|
9482
10116
|
config: pageData == null ? void 0 : pageData.config
|
|
9483
10117
|
}));
|
|
9484
10118
|
}
|
|
9485
|
-
const
|
|
10119
|
+
const config2 = pageData == null ? void 0 : pageData.config;
|
|
9486
10120
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
9487
10121
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
9488
|
-
detail: { pageName:
|
|
10122
|
+
detail: { pageName: config2.label }
|
|
9489
10123
|
});
|
|
9490
10124
|
window.dispatchEvent(event2);
|
|
9491
10125
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -9500,7 +10134,6 @@ var service = (funcParams) => {
|
|
|
9500
10134
|
flexDirection: "row",
|
|
9501
10135
|
position: "absolute",
|
|
9502
10136
|
bottom: 0,
|
|
9503
|
-
marginBottom: "-8px",
|
|
9504
10137
|
height: "fit-content",
|
|
9505
10138
|
overflow: "hidden",
|
|
9506
10139
|
zIndex: 1e3,
|
|
@@ -9519,8 +10152,8 @@ var service = (funcParams) => {
|
|
|
9519
10152
|
heading: "Copywriter@ACT21.IO"
|
|
9520
10153
|
},
|
|
9521
10154
|
style: {
|
|
9522
|
-
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
9523
|
-
fontSize: "
|
|
10155
|
+
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
10156
|
+
fontSize: "11px",
|
|
9524
10157
|
textAlign: "center",
|
|
9525
10158
|
lineHeight: 2,
|
|
9526
10159
|
width: "fit-content",
|
|
@@ -9529,13 +10162,13 @@ var service = (funcParams) => {
|
|
|
9529
10162
|
margin: 0,
|
|
9530
10163
|
flexGrow: 1,
|
|
9531
10164
|
height: 0,
|
|
9532
|
-
transform: "translate(-50%,0%)"
|
|
10165
|
+
transform: "translate(-50%, 0%)"
|
|
9533
10166
|
}
|
|
9534
10167
|
}
|
|
9535
10168
|
},
|
|
9536
10169
|
{
|
|
9537
10170
|
type: "Control",
|
|
9538
|
-
scope: "#/properties/
|
|
10171
|
+
scope: "#/properties/FooterBackIcon",
|
|
9539
10172
|
options: {
|
|
9540
10173
|
widget: "Box"
|
|
9541
10174
|
},
|
|
@@ -9546,24 +10179,24 @@ var service = (funcParams) => {
|
|
|
9546
10179
|
width: "fit-content"
|
|
9547
10180
|
},
|
|
9548
10181
|
style: {
|
|
9549
|
-
fill: theme.palette.primary.main,
|
|
10182
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
9550
10183
|
width: 20,
|
|
9551
10184
|
height: 0,
|
|
9552
|
-
margin: 0,
|
|
9553
10185
|
top: 0,
|
|
9554
10186
|
right: { xs: "12px", sm: "84px" },
|
|
9555
10187
|
position: "absolute",
|
|
9556
10188
|
fontSize: "12px",
|
|
9557
10189
|
cursor: "pointer",
|
|
9558
10190
|
":hover": {
|
|
9559
|
-
fill: theme.palette.primary.dark
|
|
9560
|
-
}
|
|
10191
|
+
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
10192
|
+
},
|
|
10193
|
+
marginRight: "20px"
|
|
9561
10194
|
}
|
|
9562
10195
|
}
|
|
9563
10196
|
},
|
|
9564
10197
|
{
|
|
9565
10198
|
type: "Control",
|
|
9566
|
-
scope: "#/properties/
|
|
10199
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
9567
10200
|
options: {
|
|
9568
10201
|
widget: "Box"
|
|
9569
10202
|
},
|
|
@@ -9578,25 +10211,25 @@ var service = (funcParams) => {
|
|
|
9578
10211
|
lineHeight: 1,
|
|
9579
10212
|
height: 0,
|
|
9580
10213
|
width: "fit-content",
|
|
9581
|
-
color: theme.palette.primary.main,
|
|
10214
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
9582
10215
|
fontSize: "12px",
|
|
9583
10216
|
cursor: "pointer",
|
|
9584
10217
|
marginLeft: "2px",
|
|
9585
|
-
marginRight: 0,
|
|
9586
10218
|
top: 3,
|
|
9587
10219
|
right: "12px",
|
|
9588
10220
|
position: "absolute",
|
|
9589
10221
|
":hover": {
|
|
9590
|
-
color: theme.palette.primary.dark
|
|
9591
|
-
}
|
|
10222
|
+
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
10223
|
+
},
|
|
10224
|
+
marginRight: "4px"
|
|
9592
10225
|
}
|
|
9593
10226
|
}
|
|
9594
10227
|
}
|
|
9595
10228
|
]
|
|
9596
10229
|
}
|
|
9597
10230
|
);
|
|
9598
|
-
const schema2 = (
|
|
9599
|
-
eventGroups = extractEvents(
|
|
10231
|
+
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
10232
|
+
eventGroups = extractEvents(config2);
|
|
9600
10233
|
executeEventsParameters = {
|
|
9601
10234
|
config: {},
|
|
9602
10235
|
componentName: "",
|
|
@@ -9742,420 +10375,94 @@ var service = (funcParams) => {
|
|
|
9742
10375
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
9743
10376
|
await this.callHandler("onBack", functionParameters);
|
|
9744
10377
|
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"
|
|
9977
|
-
}
|
|
9978
|
-
},
|
|
9979
|
-
{
|
|
9980
|
-
type: "Control",
|
|
9981
|
-
scope: "#/properties/econd",
|
|
9982
|
-
config: {
|
|
9983
|
-
main: {
|
|
9984
|
-
heading: "2"
|
|
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"
|
|
10378
|
+
functionParameters == null ? void 0 : functionParameters.handleBack();
|
|
10017
10379
|
}
|
|
10018
10380
|
},
|
|
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"
|
|
10381
|
+
onNext: async function(functionParameters) {
|
|
10382
|
+
var _a, _b;
|
|
10383
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10384
|
+
await this.callHandler("onNext", functionParameters);
|
|
10385
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onNext"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10386
|
+
functionParameters == null ? void 0 : functionParameters.handleNext();
|
|
10057
10387
|
}
|
|
10058
10388
|
},
|
|
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"
|
|
10389
|
+
onReset: async function(functionParameters) {
|
|
10390
|
+
var _a, _b;
|
|
10391
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10392
|
+
await this.callHandler("onReset", functionParameters);
|
|
10393
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups["onReset"]) == null ? void 0 : _b[path]) === void 0) {
|
|
10394
|
+
functionParameters == null ? void 0 : functionParameters.handleReset();
|
|
10097
10395
|
}
|
|
10098
10396
|
},
|
|
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
|
-
}
|
|
10397
|
+
callHandler: async function(eventType, functionParameters) {
|
|
10398
|
+
var _a, _b, _c;
|
|
10399
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
|
|
10400
|
+
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
10401
|
+
Promise.all((_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
10402
|
+
executeEventsParameters.store.functionParameters = functionParameters;
|
|
10403
|
+
executeEvents({
|
|
10404
|
+
...executeEventsParameters,
|
|
10405
|
+
config: eventConfig,
|
|
10406
|
+
componentName: path
|
|
10407
|
+
});
|
|
10408
|
+
}));
|
|
10122
10409
|
}
|
|
10123
|
-
}
|
|
10124
|
-
|
|
10410
|
+
},
|
|
10411
|
+
downloadFile: downloadFile$1,
|
|
10412
|
+
download: doDownload,
|
|
10413
|
+
...funcParams.functionsProvider
|
|
10414
|
+
};
|
|
10415
|
+
};
|
|
10416
|
+
var leaderBoard = {
|
|
10417
|
+
type: "Control",
|
|
10418
|
+
scope: "#/properties/path",
|
|
10419
|
+
options: {
|
|
10420
|
+
widget: "LeaderBoard"
|
|
10421
|
+
},
|
|
10422
|
+
config: {
|
|
10423
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
10424
|
+
main: {}
|
|
10425
|
+
}
|
|
10125
10426
|
};
|
|
10126
|
-
const buildLeaderBoard = (
|
|
10427
|
+
const buildLeaderBoard = (config2) => {
|
|
10127
10428
|
const LeaderBoard = _.cloneDeep(leaderBoard);
|
|
10128
|
-
if (
|
|
10129
|
-
const modifyColumns =
|
|
10429
|
+
if (config2.elements) {
|
|
10430
|
+
const modifyColumns = config2.elements.map((e, i) => {
|
|
10130
10431
|
if (!e.type) {
|
|
10131
10432
|
return { accessorKey: e.name, header: e.label || e.name };
|
|
10132
10433
|
}
|
|
10133
10434
|
const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name };
|
|
10134
10435
|
return { ...widgetSchema };
|
|
10135
10436
|
});
|
|
10136
|
-
LeaderBoard.elements
|
|
10437
|
+
LeaderBoard.elements = modifyColumns;
|
|
10137
10438
|
}
|
|
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`;
|
|
10439
|
+
LeaderBoard.config.main.label = config2.label;
|
|
10440
|
+
if (config2.name) {
|
|
10441
|
+
LeaderBoard.scope = `#/properties/${config2.name}`;
|
|
10147
10442
|
}
|
|
10148
|
-
if (
|
|
10149
|
-
LeaderBoard.
|
|
10443
|
+
if (config2.firstImage) {
|
|
10444
|
+
LeaderBoard.config.main.firstImage = config2.firstImage;
|
|
10150
10445
|
}
|
|
10151
|
-
if (
|
|
10152
|
-
LeaderBoard.
|
|
10446
|
+
if (config2.secondImage) {
|
|
10447
|
+
LeaderBoard.config.main.secondImage = config2.secondImage;
|
|
10153
10448
|
}
|
|
10154
|
-
if (
|
|
10155
|
-
LeaderBoard.
|
|
10449
|
+
if (config2.thirdImage) {
|
|
10450
|
+
LeaderBoard.config.main.thirdImage = config2.thirdImage;
|
|
10156
10451
|
}
|
|
10157
|
-
if (
|
|
10158
|
-
LeaderBoard.config.
|
|
10452
|
+
if (config2.nameKey) {
|
|
10453
|
+
LeaderBoard.config.main.nameKey = config2.nameKey;
|
|
10454
|
+
}
|
|
10455
|
+
if (config2.imageKey) {
|
|
10456
|
+
LeaderBoard.config.main.imageKey = config2.imageKey;
|
|
10457
|
+
}
|
|
10458
|
+
if (config2.scoreKey) {
|
|
10459
|
+
LeaderBoard.config.main.scoreKey = config2.scoreKey;
|
|
10460
|
+
}
|
|
10461
|
+
if (config2.layout) {
|
|
10462
|
+
LeaderBoard.config.layout = createLayoutFormat(config2.layout);
|
|
10463
|
+
}
|
|
10464
|
+
if (config2.style) {
|
|
10465
|
+
LeaderBoard.config.style = JSON.parse(config2.style);
|
|
10159
10466
|
}
|
|
10160
10467
|
return LeaderBoard;
|
|
10161
10468
|
};
|
|
@@ -10166,7 +10473,7 @@ var progressBar = {
|
|
|
10166
10473
|
widget: "ProgressBar"
|
|
10167
10474
|
},
|
|
10168
10475
|
config: {
|
|
10169
|
-
layout: 6,
|
|
10476
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
10170
10477
|
main: {
|
|
10171
10478
|
developOnlyProgresBar: false,
|
|
10172
10479
|
bottomLabel_3: "Remaining",
|
|
@@ -10174,44 +10481,44 @@ var progressBar = {
|
|
|
10174
10481
|
}
|
|
10175
10482
|
}
|
|
10176
10483
|
};
|
|
10177
|
-
const buildProgressBarCard = (
|
|
10484
|
+
const buildProgressBarCard = (config2, myScope) => {
|
|
10178
10485
|
const progressBarCard = _.cloneDeep(progressBar);
|
|
10179
10486
|
progressBarCard.scope = myScope;
|
|
10180
|
-
if (
|
|
10181
|
-
progressBarCard.config.main.heading =
|
|
10487
|
+
if (config2.heading) {
|
|
10488
|
+
progressBarCard.config.main.heading = config2.heading;
|
|
10182
10489
|
}
|
|
10183
|
-
if (
|
|
10184
|
-
progressBarCard.config.main.bottomLabel_3 =
|
|
10490
|
+
if (config2.bottomLabel_3) {
|
|
10491
|
+
progressBarCard.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10185
10492
|
}
|
|
10186
|
-
if (
|
|
10187
|
-
progressBarCard.config.main.bottomLabel_2 =
|
|
10493
|
+
if (config2.bottomLabel_2) {
|
|
10494
|
+
progressBarCard.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10188
10495
|
}
|
|
10189
|
-
if (
|
|
10190
|
-
progressBarCard.elements[0].config.main.bottomLabel_1 =
|
|
10496
|
+
if (config2.bottomLabel_1) {
|
|
10497
|
+
progressBarCard.elements[0].config.main.bottomLabel_1 = config2.bottomLabel_1;
|
|
10191
10498
|
}
|
|
10192
|
-
if (
|
|
10193
|
-
progressBarCard.config.layout = createLayoutFormat(
|
|
10499
|
+
if (config2.layout) {
|
|
10500
|
+
progressBarCard.config.layout = createLayoutFormat(config2.layout);
|
|
10194
10501
|
}
|
|
10195
10502
|
return progressBarCard;
|
|
10196
10503
|
};
|
|
10197
|
-
const buildProgressBar = (
|
|
10504
|
+
const buildProgressBar = (config2, componentScope2) => {
|
|
10198
10505
|
const ProgressBar = _.cloneDeep(progressBar);
|
|
10199
|
-
ProgressBar.scope =
|
|
10200
|
-
if (
|
|
10201
|
-
ProgressBar.config.layout =
|
|
10506
|
+
ProgressBar.scope = componentScope2;
|
|
10507
|
+
if (config2.layout) {
|
|
10508
|
+
ProgressBar.config.layout = config2.layout;
|
|
10202
10509
|
}
|
|
10203
|
-
ProgressBar.config.main.heading =
|
|
10204
|
-
if (
|
|
10205
|
-
ProgressBar.config.main.bottomLabel_3 =
|
|
10510
|
+
ProgressBar.config.main.heading = config2.label;
|
|
10511
|
+
if (config2.bottomLabel_3) {
|
|
10512
|
+
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10206
10513
|
}
|
|
10207
|
-
if (
|
|
10208
|
-
ProgressBar.config.layout = createLayoutFormat(
|
|
10514
|
+
if (config2.layout) {
|
|
10515
|
+
ProgressBar.config.layout = createLayoutFormat(config2.layout);
|
|
10209
10516
|
}
|
|
10210
|
-
if (
|
|
10211
|
-
ProgressBar.config.main.bottomLabel_2 =
|
|
10517
|
+
if (config2.bottomLabel_2) {
|
|
10518
|
+
ProgressBar.config.main.bottomLabel_2 = config2.bottomLabel_2;
|
|
10212
10519
|
}
|
|
10213
|
-
if (
|
|
10214
|
-
ProgressBar.config.main.bottomLabel_1 =
|
|
10520
|
+
if (config2.bottomLabel_1) {
|
|
10521
|
+
ProgressBar.config.main.bottomLabel_1 = config2.bottomLabel_1;
|
|
10215
10522
|
}
|
|
10216
10523
|
return ProgressBar;
|
|
10217
10524
|
};
|
|
@@ -10223,8 +10530,11 @@ const BarGraph = {
|
|
|
10223
10530
|
},
|
|
10224
10531
|
config: {
|
|
10225
10532
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10226
|
-
main: {
|
|
10227
|
-
|
|
10533
|
+
main: {
|
|
10534
|
+
type: "BarGraph",
|
|
10535
|
+
legendLabels: null
|
|
10536
|
+
},
|
|
10537
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10228
10538
|
}
|
|
10229
10539
|
};
|
|
10230
10540
|
const PieGraph = {
|
|
@@ -10236,9 +10546,10 @@ const PieGraph = {
|
|
|
10236
10546
|
config: {
|
|
10237
10547
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10238
10548
|
main: {
|
|
10239
|
-
type: "PieGraph"
|
|
10549
|
+
type: "PieGraph",
|
|
10550
|
+
legendLabels: null
|
|
10240
10551
|
},
|
|
10241
|
-
style: {}
|
|
10552
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, pieStyle: {} }
|
|
10242
10553
|
}
|
|
10243
10554
|
};
|
|
10244
10555
|
const LineGraph = {
|
|
@@ -10251,29 +10562,9 @@ const LineGraph = {
|
|
|
10251
10562
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10252
10563
|
main: {
|
|
10253
10564
|
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
|
-
}
|
|
10565
|
+
legendLabels: null
|
|
10270
10566
|
},
|
|
10271
|
-
style: {
|
|
10272
|
-
containerStyle: {},
|
|
10273
|
-
headerStyle: {},
|
|
10274
|
-
labelStyle: {},
|
|
10275
|
-
lineStyle: {}
|
|
10276
|
-
}
|
|
10567
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, lineStyle: {} }
|
|
10277
10568
|
}
|
|
10278
10569
|
};
|
|
10279
10570
|
const HorizontalBarGraph = {
|
|
@@ -10285,56 +10576,49 @@ const HorizontalBarGraph = {
|
|
|
10285
10576
|
config: {
|
|
10286
10577
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10287
10578
|
main: {
|
|
10288
|
-
type: "HorizontalBarGraph"
|
|
10579
|
+
type: "HorizontalBarGraph",
|
|
10580
|
+
legendLabels: null
|
|
10289
10581
|
},
|
|
10290
|
-
style: {}
|
|
10582
|
+
style: { containerStyle: {}, labelStyle: { margin: {} }, barStyle: {} }
|
|
10291
10583
|
}
|
|
10292
10584
|
};
|
|
10293
|
-
const buildHorizontalBarGraph = (
|
|
10585
|
+
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
10294
10586
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
10295
|
-
horizontalBarGraph.scope =
|
|
10296
|
-
if (
|
|
10297
|
-
horizontalBarGraph.config.layout = createLayoutFormat(
|
|
10587
|
+
horizontalBarGraph.scope = componentScope2;
|
|
10588
|
+
if (config2.layout) {
|
|
10589
|
+
horizontalBarGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10298
10590
|
}
|
|
10299
|
-
horizontalBarGraph.config.main.type =
|
|
10300
|
-
horizontalBarGraph.scope =
|
|
10301
|
-
horizontalBarGraph.config.main.header =
|
|
10302
|
-
if (
|
|
10303
|
-
horizontalBarGraph.config.main.legendAvailable =
|
|
10591
|
+
horizontalBarGraph.config.main.type = config2.graphType;
|
|
10592
|
+
horizontalBarGraph.scope = componentScope2;
|
|
10593
|
+
horizontalBarGraph.config.main.header = config2.heading;
|
|
10594
|
+
if (config2.legendHide) {
|
|
10595
|
+
horizontalBarGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10304
10596
|
}
|
|
10305
|
-
if (
|
|
10306
|
-
horizontalBarGraph.config.main.bottomAxisAngle =
|
|
10597
|
+
if (config2.bottomAxisAngle) {
|
|
10598
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10307
10599
|
}
|
|
10308
|
-
if (
|
|
10309
|
-
horizontalBarGraph.config.
|
|
10600
|
+
if (config2.legendLabels) {
|
|
10601
|
+
horizontalBarGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10310
10602
|
}
|
|
10311
|
-
if (
|
|
10312
|
-
horizontalBarGraph.config.
|
|
10603
|
+
if (config2.pieArcColors) {
|
|
10604
|
+
horizontalBarGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10313
10605
|
}
|
|
10314
|
-
if (
|
|
10315
|
-
horizontalBarGraph.config.
|
|
10606
|
+
if (config2.xAxisValue) {
|
|
10607
|
+
horizontalBarGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10316
10608
|
}
|
|
10317
|
-
if (
|
|
10318
|
-
horizontalBarGraph.config.style =
|
|
10319
|
-
containerStyle: {
|
|
10320
|
-
height: config.height
|
|
10321
|
-
}
|
|
10322
|
-
};
|
|
10609
|
+
if (config2.height) {
|
|
10610
|
+
horizontalBarGraph.config.style.containerStyle.height = config2.height;
|
|
10323
10611
|
}
|
|
10324
|
-
if (
|
|
10325
|
-
horizontalBarGraph.config.style = {
|
|
10326
|
-
|
|
10327
|
-
margin: {
|
|
10328
|
-
left: config.leftMargin
|
|
10329
|
-
}
|
|
10330
|
-
}
|
|
10612
|
+
if (config2.leftMargin) {
|
|
10613
|
+
horizontalBarGraph.config.style.labelStyle.margin = {
|
|
10614
|
+
left: config2.leftMargin
|
|
10331
10615
|
};
|
|
10332
10616
|
}
|
|
10333
|
-
if (
|
|
10334
|
-
horizontalBarGraph.config.main.bottomLabel =
|
|
10617
|
+
if (config2.bottomLabel) {
|
|
10618
|
+
horizontalBarGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
10335
10619
|
}
|
|
10336
|
-
if (
|
|
10337
|
-
horizontalBarGraph.config.main.leftLabel =
|
|
10620
|
+
if (config2.leftLabel) {
|
|
10621
|
+
horizontalBarGraph.config.main.leftLabel = config2.leftLabel;
|
|
10338
10622
|
}
|
|
10339
10623
|
return horizontalBarGraph;
|
|
10340
10624
|
};
|
|
@@ -10384,20 +10668,20 @@ var SpeedoMeter = {
|
|
|
10384
10668
|
}
|
|
10385
10669
|
}
|
|
10386
10670
|
};
|
|
10387
|
-
const buildSpeedoMeter = (
|
|
10671
|
+
const buildSpeedoMeter = (config2, componentScope2) => {
|
|
10388
10672
|
const speedoMeter = _.cloneDeep(SpeedoMeter);
|
|
10389
|
-
speedoMeter.scope =
|
|
10390
|
-
if (
|
|
10391
|
-
speedoMeter.config.layout = createLayoutFormat(
|
|
10673
|
+
speedoMeter.scope = componentScope2;
|
|
10674
|
+
if (config2.layout) {
|
|
10675
|
+
speedoMeter.config.layout = createLayoutFormat(config2.layout);
|
|
10392
10676
|
}
|
|
10393
|
-
if (
|
|
10394
|
-
speedoMeter.config.main.header =
|
|
10677
|
+
if (config2.heading) {
|
|
10678
|
+
speedoMeter.config.main.header = config2.heading;
|
|
10395
10679
|
}
|
|
10396
|
-
if (
|
|
10397
|
-
speedoMeter.config.main.segments =
|
|
10680
|
+
if (config2.segments) {
|
|
10681
|
+
speedoMeter.config.main.segments = config2.segments;
|
|
10398
10682
|
}
|
|
10399
|
-
if (
|
|
10400
|
-
const styleObj = JSON.parse(
|
|
10683
|
+
if (config2.style) {
|
|
10684
|
+
const styleObj = JSON.parse(config2.style);
|
|
10401
10685
|
if (styleObj == null ? void 0 : styleObj.style) {
|
|
10402
10686
|
speedoMeter.config.style = { ...speedoMeter.config.style, ...styleObj.style };
|
|
10403
10687
|
}
|
|
@@ -10405,103 +10689,95 @@ const buildSpeedoMeter = (config, componentScope) => {
|
|
|
10405
10689
|
speedoMeter.config.style.containerStyle = { ...speedoMeter.config.style.containerStyle, ...styleObj.containerStyle };
|
|
10406
10690
|
}
|
|
10407
10691
|
}
|
|
10408
|
-
if (
|
|
10409
|
-
speedoMeter.config.main.width =
|
|
10692
|
+
if (config2.width) {
|
|
10693
|
+
speedoMeter.config.main.width = config2.width;
|
|
10410
10694
|
}
|
|
10411
|
-
if (
|
|
10412
|
-
speedoMeter.config.main.currentValueText =
|
|
10695
|
+
if (config2.speedoCaption) {
|
|
10696
|
+
speedoMeter.config.main.currentValueText = config2.speedoCaption;
|
|
10413
10697
|
}
|
|
10414
|
-
if (
|
|
10415
|
-
speedoMeter.config.main.data =
|
|
10698
|
+
if (config2.data) {
|
|
10699
|
+
speedoMeter.config.main.data = config2.data;
|
|
10416
10700
|
}
|
|
10417
|
-
if (
|
|
10418
|
-
speedoMeter.config.style.needleColor =
|
|
10701
|
+
if (config2.needleColor) {
|
|
10702
|
+
speedoMeter.config.style.needleColor = config2.needleColor;
|
|
10419
10703
|
}
|
|
10420
|
-
if (
|
|
10421
|
-
speedoMeter.config.style.segments =
|
|
10704
|
+
if (config2.segments) {
|
|
10705
|
+
speedoMeter.config.style.segments = config2.segments;
|
|
10422
10706
|
}
|
|
10423
|
-
if (
|
|
10424
|
-
speedoMeter.config.style.endColor =
|
|
10707
|
+
if (config2.endColor) {
|
|
10708
|
+
speedoMeter.config.style.endColor = config2.endColor;
|
|
10425
10709
|
}
|
|
10426
|
-
if (
|
|
10427
|
-
speedoMeter.config.style.startColor =
|
|
10710
|
+
if (config2.startColor) {
|
|
10711
|
+
speedoMeter.config.style.startColor = config2.startColor;
|
|
10428
10712
|
}
|
|
10429
|
-
if (
|
|
10430
|
-
speedoMeter.config.style.segmentColors =
|
|
10713
|
+
if (config2.segmentColors) {
|
|
10714
|
+
speedoMeter.config.style.segmentColors = config2.segmentColors;
|
|
10431
10715
|
}
|
|
10432
10716
|
return speedoMeter;
|
|
10433
10717
|
};
|
|
10434
|
-
const buildPieGraph = (
|
|
10718
|
+
const buildPieGraph = (config2, componentScope2) => {
|
|
10435
10719
|
const pieGraph = _.cloneDeep(PieGraph);
|
|
10436
|
-
if (
|
|
10437
|
-
pieGraph.config.layout = createLayoutFormat(
|
|
10720
|
+
if (config2.layout) {
|
|
10721
|
+
pieGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10438
10722
|
}
|
|
10439
|
-
if (
|
|
10440
|
-
pieGraph.config.style =
|
|
10441
|
-
containerStyle: {
|
|
10442
|
-
height: config.height
|
|
10443
|
-
}
|
|
10444
|
-
};
|
|
10723
|
+
if (config2.height) {
|
|
10724
|
+
pieGraph.config.style.containerStyle.height = config2.height;
|
|
10445
10725
|
}
|
|
10446
|
-
if (
|
|
10447
|
-
pieGraph.config.main.
|
|
10726
|
+
if (config2.legendHide) {
|
|
10727
|
+
pieGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10448
10728
|
}
|
|
10449
|
-
pieGraph.scope =
|
|
10450
|
-
pieGraph.config.main.header =
|
|
10451
|
-
if (
|
|
10452
|
-
pieGraph.config.main.
|
|
10729
|
+
pieGraph.scope = componentScope2;
|
|
10730
|
+
pieGraph.config.main.header = config2.heading;
|
|
10731
|
+
if (config2.legendLabels) {
|
|
10732
|
+
pieGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10453
10733
|
}
|
|
10454
|
-
if (
|
|
10455
|
-
pieGraph.config.main.xAxisValue =
|
|
10734
|
+
if (config2.xAxisValue) {
|
|
10735
|
+
pieGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10456
10736
|
}
|
|
10457
|
-
if (
|
|
10458
|
-
pieGraph.config.style =
|
|
10459
|
-
pieStyle: {
|
|
10460
|
-
colorRange: flatObjectValueInArray(config.pieArcColors)
|
|
10461
|
-
}
|
|
10462
|
-
};
|
|
10737
|
+
if (config2.pieArcColors) {
|
|
10738
|
+
pieGraph.config.style.pieStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10463
10739
|
}
|
|
10464
10740
|
return pieGraph;
|
|
10465
10741
|
};
|
|
10466
|
-
const buildStackbarGraph = (
|
|
10742
|
+
const buildStackbarGraph = (config2, componentScope2) => {
|
|
10743
|
+
var _a;
|
|
10467
10744
|
const barGraph = _.cloneDeep(BarGraph);
|
|
10468
|
-
if (
|
|
10469
|
-
barGraph.config.layout = createLayoutFormat(
|
|
10745
|
+
if (config2.layout) {
|
|
10746
|
+
barGraph.config.layout = createLayoutFormat(config2.layout);
|
|
10470
10747
|
}
|
|
10471
|
-
if (
|
|
10472
|
-
barGraph.config.main.legendAvailable =
|
|
10473
|
-
barGraph.config.main.legendAvailable =
|
|
10748
|
+
if (config2.legendHide) {
|
|
10749
|
+
barGraph.config.main.legendAvailable = config2.legendHide;
|
|
10750
|
+
barGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
10474
10751
|
}
|
|
10475
|
-
if (
|
|
10476
|
-
barGraph.config.main.bottomAxisAngle =
|
|
10752
|
+
if (config2.bottomAxisAngle) {
|
|
10753
|
+
barGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
10477
10754
|
}
|
|
10478
|
-
barGraph.config.main.type =
|
|
10479
|
-
barGraph.config.main.header =
|
|
10480
|
-
if (
|
|
10481
|
-
barGraph.config.
|
|
10755
|
+
barGraph.config.main.type = (_a = config2 == null ? void 0 : config2.graphType) != null ? _a : "BarGraph";
|
|
10756
|
+
barGraph.config.main.header = config2.heading;
|
|
10757
|
+
if (config2.legendLabels) {
|
|
10758
|
+
barGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
10482
10759
|
}
|
|
10483
|
-
if (
|
|
10484
|
-
barGraph.config.
|
|
10760
|
+
if (config2.pieArcColors) {
|
|
10761
|
+
barGraph.config.style.barStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10485
10762
|
}
|
|
10486
|
-
if (
|
|
10487
|
-
barGraph.config.
|
|
10763
|
+
if (config2.xAxisValue) {
|
|
10764
|
+
barGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
10488
10765
|
}
|
|
10489
|
-
if (
|
|
10490
|
-
barGraph.config.style =
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
}
|
|
10766
|
+
if (config2.height) {
|
|
10767
|
+
barGraph.config.style.containerStyle.height = config2.height;
|
|
10768
|
+
}
|
|
10769
|
+
if (config2.leftMargin) {
|
|
10770
|
+
barGraph.config.style.labelStyle.margin = {
|
|
10771
|
+
left: config2.leftMargin
|
|
10496
10772
|
};
|
|
10497
10773
|
}
|
|
10498
|
-
if (
|
|
10499
|
-
barGraph.config.main.bottomLabel =
|
|
10774
|
+
if (config2.bottomLabel) {
|
|
10775
|
+
barGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
10500
10776
|
}
|
|
10501
|
-
if (
|
|
10502
|
-
barGraph.config.main.leftLabel =
|
|
10777
|
+
if (config2.leftLabel) {
|
|
10778
|
+
barGraph.config.main.leftLabel = config2.leftLabel;
|
|
10503
10779
|
}
|
|
10504
|
-
barGraph.scope =
|
|
10780
|
+
barGraph.scope = componentScope2;
|
|
10505
10781
|
return barGraph;
|
|
10506
10782
|
};
|
|
10507
10783
|
var RunnerBoyProgressBar = {
|
|
@@ -10511,15 +10787,15 @@ var RunnerBoyProgressBar = {
|
|
|
10511
10787
|
widget: "RunnerBoyProgressBar"
|
|
10512
10788
|
},
|
|
10513
10789
|
config: {
|
|
10514
|
-
layout: { xs:
|
|
10790
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
10515
10791
|
main: {}
|
|
10516
10792
|
}
|
|
10517
10793
|
};
|
|
10518
|
-
const RunnerBoyProgressbar = (
|
|
10794
|
+
const RunnerBoyProgressbar = (config2, componentScope2) => {
|
|
10519
10795
|
const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
|
|
10520
|
-
RunnerBoy.scope =
|
|
10521
|
-
if (
|
|
10522
|
-
RunnerBoy.config.layout = createLayoutFormat(
|
|
10796
|
+
RunnerBoy.scope = componentScope2;
|
|
10797
|
+
if (config2.layout) {
|
|
10798
|
+
RunnerBoy.config.layout = createLayoutFormat(config2.layout);
|
|
10523
10799
|
}
|
|
10524
10800
|
return RunnerBoy;
|
|
10525
10801
|
};
|
|
@@ -10534,19 +10810,19 @@ var Tabsection = {
|
|
|
10534
10810
|
},
|
|
10535
10811
|
elements: []
|
|
10536
10812
|
};
|
|
10537
|
-
const buildTabSection = (
|
|
10813
|
+
const buildTabSection = (config2, componentScope2) => {
|
|
10538
10814
|
const tab = _.cloneDeep(Tabsection);
|
|
10539
|
-
tab.scope =
|
|
10540
|
-
if (
|
|
10541
|
-
tab.config.main.lazyLoad =
|
|
10815
|
+
tab.scope = componentScope2;
|
|
10816
|
+
if (config2.lazyLoad) {
|
|
10817
|
+
tab.config.main.lazyLoad = config2.lazyLoad === "YES" ? true : false;
|
|
10542
10818
|
}
|
|
10543
|
-
if (
|
|
10544
|
-
tab.config.main.orientation =
|
|
10819
|
+
if (config2.orientation) {
|
|
10820
|
+
tab.config.main.orientation = config2.orientation === "YES" ? "vertical" : "horizontal";
|
|
10545
10821
|
}
|
|
10546
|
-
if (
|
|
10547
|
-
tab.config.main.tabLabels =
|
|
10822
|
+
if (config2.sectionLabels) {
|
|
10823
|
+
tab.config.main.tabLabels = config2.sectionLabels.map((e) => e.label);
|
|
10548
10824
|
}
|
|
10549
|
-
tab.config.main.id =
|
|
10825
|
+
tab.config.main.id = config2.name;
|
|
10550
10826
|
return tab;
|
|
10551
10827
|
};
|
|
10552
10828
|
var WrapperSection = {
|
|
@@ -10561,20 +10837,20 @@ var WrapperSection = {
|
|
|
10561
10837
|
},
|
|
10562
10838
|
elements: []
|
|
10563
10839
|
};
|
|
10564
|
-
const buildWrapperSection = (
|
|
10840
|
+
const buildWrapperSection = (config2, componentScope2) => {
|
|
10565
10841
|
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 =
|
|
10842
|
+
wrapper.scope = componentScope2;
|
|
10843
|
+
wrapper.config.main.label = config2.label;
|
|
10844
|
+
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
10845
|
+
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
10846
|
+
if (config2.defaultStyle) {
|
|
10847
|
+
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
10572
10848
|
}
|
|
10573
|
-
if (
|
|
10574
|
-
wrapper.config.style = JSON.parse(
|
|
10849
|
+
if (config2.style) {
|
|
10850
|
+
wrapper.config.style = JSON.parse(config2.style);
|
|
10575
10851
|
}
|
|
10576
|
-
if (
|
|
10577
|
-
wrapper.config.layout = createLayoutFormat(
|
|
10852
|
+
if (config2.layout) {
|
|
10853
|
+
wrapper.config.layout = createLayoutFormat(config2.layout);
|
|
10578
10854
|
}
|
|
10579
10855
|
return wrapper;
|
|
10580
10856
|
};
|
|
@@ -10592,23 +10868,23 @@ var TextInputField = {
|
|
|
10592
10868
|
style: {}
|
|
10593
10869
|
}
|
|
10594
10870
|
};
|
|
10595
|
-
const buildTextField = (
|
|
10871
|
+
const buildTextField = (config2, componentScope2) => {
|
|
10596
10872
|
const inputField = _.cloneDeep(TextInputField);
|
|
10597
|
-
inputField.config.main.label =
|
|
10598
|
-
if (
|
|
10599
|
-
inputField.config.style = JSON.parse(
|
|
10873
|
+
inputField.config.main.label = config2.label;
|
|
10874
|
+
if (config2.style) {
|
|
10875
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
10600
10876
|
}
|
|
10601
|
-
if (
|
|
10602
|
-
inputField.config.main.formatStrArray =
|
|
10877
|
+
if (config2.InputFormatingAndMasking) {
|
|
10878
|
+
inputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
10603
10879
|
}
|
|
10604
|
-
if (
|
|
10605
|
-
inputField.config.main.placeholder =
|
|
10880
|
+
if (config2.placeholder) {
|
|
10881
|
+
inputField.config.main.placeholder = config2.placeholder;
|
|
10606
10882
|
}
|
|
10607
|
-
if (
|
|
10608
|
-
inputField.config.layout = createLayoutFormat(
|
|
10883
|
+
if (config2.layout) {
|
|
10884
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
10609
10885
|
}
|
|
10610
|
-
inputField.config.main.errorMessage = `${
|
|
10611
|
-
inputField.scope =
|
|
10886
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
10887
|
+
inputField.scope = componentScope2;
|
|
10612
10888
|
return inputField;
|
|
10613
10889
|
};
|
|
10614
10890
|
var SelectInputField = {
|
|
@@ -10626,22 +10902,22 @@ var SelectInputField = {
|
|
|
10626
10902
|
}
|
|
10627
10903
|
}
|
|
10628
10904
|
};
|
|
10629
|
-
const buildSelect = (
|
|
10905
|
+
const buildSelect = (config2, componentScope2) => {
|
|
10630
10906
|
const selectInputField = _.cloneDeep(SelectInputField);
|
|
10631
|
-
selectInputField.config.main.label =
|
|
10632
|
-
if (
|
|
10633
|
-
selectInputField.config.main.options =
|
|
10907
|
+
selectInputField.config.main.label = config2.label;
|
|
10908
|
+
if (config2.value) {
|
|
10909
|
+
selectInputField.config.main.options = config2.value;
|
|
10634
10910
|
}
|
|
10635
|
-
if (
|
|
10636
|
-
selectInputField.config.main.freeSolo =
|
|
10911
|
+
if (config2.freeSolo) {
|
|
10912
|
+
selectInputField.config.main.freeSolo = config2.freeSolo === "YES" ? true : false;
|
|
10637
10913
|
}
|
|
10638
|
-
if (
|
|
10639
|
-
selectInputField.config.main.lazyLoading =
|
|
10914
|
+
if (config2.lazyLoading) {
|
|
10915
|
+
selectInputField.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
10640
10916
|
}
|
|
10641
|
-
if (
|
|
10642
|
-
selectInputField.config.layout = createLayoutFormat(
|
|
10917
|
+
if (config2.layout) {
|
|
10918
|
+
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
10643
10919
|
}
|
|
10644
|
-
selectInputField.scope =
|
|
10920
|
+
selectInputField.scope = componentScope2;
|
|
10645
10921
|
return selectInputField;
|
|
10646
10922
|
};
|
|
10647
10923
|
var Button = {
|
|
@@ -10655,7 +10931,6 @@ var Button = {
|
|
|
10655
10931
|
main: {
|
|
10656
10932
|
name: "Compare",
|
|
10657
10933
|
variant: "contained",
|
|
10658
|
-
color: "info",
|
|
10659
10934
|
type: "text",
|
|
10660
10935
|
startIcon: "",
|
|
10661
10936
|
styleDefault: false,
|
|
@@ -10666,37 +10941,37 @@ var Button = {
|
|
|
10666
10941
|
style: {}
|
|
10667
10942
|
}
|
|
10668
10943
|
};
|
|
10669
|
-
const buildButton = (
|
|
10944
|
+
const buildButton = (config2, componentScope2) => {
|
|
10670
10945
|
const button = _.cloneDeep(Button);
|
|
10671
|
-
if (
|
|
10672
|
-
button.options.widget =
|
|
10673
|
-
|
|
10946
|
+
if (config2.buttonType) {
|
|
10947
|
+
button.options.widget = config2.buttonType === "IconButton" ? "IconButton" : "Button";
|
|
10948
|
+
config2.buttonType === "ButtonWithIconAndText" ? button.config.main.startIcon = config2.iconName : button.config.main.icon = config2.iconName;
|
|
10674
10949
|
}
|
|
10675
|
-
if (
|
|
10676
|
-
button.config.layout = createLayoutFormat(
|
|
10950
|
+
if (config2.layout) {
|
|
10951
|
+
button.config.layout = createLayoutFormat(config2.layout);
|
|
10677
10952
|
}
|
|
10678
|
-
if (
|
|
10679
|
-
button.config.main.tooltipMessage =
|
|
10953
|
+
if (config2.tooltipMessage) {
|
|
10954
|
+
button.config.main.tooltipMessage = config2.tooltipMessage;
|
|
10680
10955
|
}
|
|
10681
|
-
if (
|
|
10682
|
-
if (
|
|
10683
|
-
button.config.main.styleDefault =
|
|
10956
|
+
if (config2.defaultStyle) {
|
|
10957
|
+
if (config2.buttonType === "IconButton") {
|
|
10958
|
+
button.config.main.styleDefault = config2.defaultStyle === "true" ? true : false;
|
|
10684
10959
|
} else {
|
|
10685
|
-
button.config.main.enableDefaultStyle =
|
|
10960
|
+
button.config.main.enableDefaultStyle = config2.defaultStyle === "true" ? false : true;
|
|
10686
10961
|
}
|
|
10687
10962
|
}
|
|
10688
|
-
button.scope =
|
|
10689
|
-
if (
|
|
10690
|
-
button.config.style = JSON.parse(
|
|
10963
|
+
button.scope = componentScope2;
|
|
10964
|
+
if (config2.style) {
|
|
10965
|
+
button.config.style = JSON.parse(config2.style);
|
|
10691
10966
|
}
|
|
10692
|
-
if (
|
|
10693
|
-
button.config.main.size =
|
|
10967
|
+
if (config2.size) {
|
|
10968
|
+
button.config.main.size = config2.size;
|
|
10694
10969
|
}
|
|
10695
|
-
if (
|
|
10696
|
-
button.config.main.color =
|
|
10970
|
+
if (config2.color) {
|
|
10971
|
+
button.config.main.color = config2.color;
|
|
10697
10972
|
}
|
|
10698
|
-
if (
|
|
10699
|
-
button.config.main.name =
|
|
10973
|
+
if (config2.label) {
|
|
10974
|
+
button.config.main.name = config2.label;
|
|
10700
10975
|
}
|
|
10701
10976
|
return button;
|
|
10702
10977
|
};
|
|
@@ -10720,71 +10995,71 @@ var Table = {
|
|
|
10720
10995
|
}
|
|
10721
10996
|
}
|
|
10722
10997
|
};
|
|
10723
|
-
const buildTable = (
|
|
10998
|
+
const buildTable = (config2, componentScope2) => {
|
|
10724
10999
|
const table = _.cloneDeep(Table);
|
|
10725
|
-
table.scope =
|
|
10726
|
-
if (
|
|
10727
|
-
table.config.style = JSON.parse(
|
|
11000
|
+
table.scope = componentScope2;
|
|
11001
|
+
if (config2.style) {
|
|
11002
|
+
table.config.style = JSON.parse(config2.style);
|
|
10728
11003
|
}
|
|
10729
|
-
if (
|
|
10730
|
-
table.config.main.lazyLoading =
|
|
11004
|
+
if (config2.lazyLoading) {
|
|
11005
|
+
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
10731
11006
|
}
|
|
10732
|
-
if (
|
|
10733
|
-
table.config.main.enableRowMovement =
|
|
11007
|
+
if (config2.enableRowMovement) {
|
|
11008
|
+
table.config.main.enableRowMovement = config2.enableRowMovement === "YES" ? true : false;
|
|
10734
11009
|
}
|
|
10735
|
-
if (
|
|
10736
|
-
table.config.main.enableExpanding =
|
|
11010
|
+
if (config2.enableExpanding) {
|
|
11011
|
+
table.config.main.enableExpanding = config2.enableExpanding === "YES" ? true : false;
|
|
10737
11012
|
}
|
|
10738
|
-
if (
|
|
10739
|
-
table.config.main.enableExpandAll =
|
|
11013
|
+
if (config2.enableExpandAll) {
|
|
11014
|
+
table.config.main.enableExpandAll = config2.enableExpandAll === "YES" ? true : false;
|
|
10740
11015
|
}
|
|
10741
|
-
if (
|
|
10742
|
-
table.config.main.paginateExpandedRows =
|
|
11016
|
+
if (config2.paginateExpandedRows) {
|
|
11017
|
+
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
10743
11018
|
}
|
|
10744
|
-
if (
|
|
10745
|
-
table.config.main.treeStructure =
|
|
11019
|
+
if (config2.treeStructure) {
|
|
11020
|
+
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
10746
11021
|
}
|
|
10747
|
-
if (
|
|
10748
|
-
table.config.main.Selection =
|
|
11022
|
+
if (config2.SelectionAvailable) {
|
|
11023
|
+
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
10749
11024
|
}
|
|
10750
|
-
if (
|
|
10751
|
-
table.config.main.disableColumnResizing =
|
|
11025
|
+
if (config2.ColumnResizingAvailable) {
|
|
11026
|
+
table.config.main.disableColumnResizing = config2.ColumnResizingAvailable === "YES" ? false : true;
|
|
10752
11027
|
}
|
|
10753
|
-
if (
|
|
10754
|
-
table.config.main.enableDrag =
|
|
11028
|
+
if (config2.DragAvailable) {
|
|
11029
|
+
table.config.main.enableDrag = config2.DragAvailable === "YES" ? true : false;
|
|
10755
11030
|
}
|
|
10756
|
-
if (
|
|
10757
|
-
table.config.main.downloadAllData =
|
|
11031
|
+
if (config2.downloadAllData) {
|
|
11032
|
+
table.config.main.downloadAllData = config2.downloadAllData === "YES" ? true : false;
|
|
10758
11033
|
}
|
|
10759
|
-
if (
|
|
10760
|
-
table.config.main.disableGlobalSearch =
|
|
11034
|
+
if (config2.disableGlobalSearch) {
|
|
11035
|
+
table.config.main.disableGlobalSearch = config2.disableGlobalSearch === "YES" ? true : false;
|
|
10761
11036
|
}
|
|
10762
|
-
if (
|
|
10763
|
-
table.config.main.disableColumnFilter =
|
|
11037
|
+
if (config2.disableColumnFilter) {
|
|
11038
|
+
table.config.main.disableColumnFilter = config2.disableColumnFilter === "YES" ? true : false;
|
|
10764
11039
|
}
|
|
10765
|
-
if (
|
|
10766
|
-
table.config.main.disableSorting =
|
|
11040
|
+
if (config2.disableSorting) {
|
|
11041
|
+
table.config.main.disableSorting = config2.disableSorting === "YES" ? true : false;
|
|
10767
11042
|
}
|
|
10768
|
-
if (
|
|
10769
|
-
table.config.main.disableEditColumn =
|
|
11043
|
+
if (config2.disableEditColumn) {
|
|
11044
|
+
table.config.main.disableEditColumn = config2.disableEditColumn === "YES" ? true : false;
|
|
10770
11045
|
}
|
|
10771
|
-
if (
|
|
10772
|
-
table.config.main.disableFullScreenToggle =
|
|
11046
|
+
if (config2.disableFullScreenToggle) {
|
|
11047
|
+
table.config.main.disableFullScreenToggle = config2.disableFullScreenToggle === "YES" ? true : false;
|
|
10773
11048
|
}
|
|
10774
|
-
if (
|
|
10775
|
-
table.config.main.disableDensityToggle =
|
|
11049
|
+
if (config2.disableDensityToggle) {
|
|
11050
|
+
table.config.main.disableDensityToggle = config2.disableDensityToggle === "YES" ? true : false;
|
|
10776
11051
|
}
|
|
10777
|
-
if (
|
|
10778
|
-
table.config.main.disableDownloadFile =
|
|
11052
|
+
if (config2.disableDownloadFile) {
|
|
11053
|
+
table.config.main.disableDownloadFile = config2.disableDownloadFile === "YES" ? true : false;
|
|
10779
11054
|
}
|
|
10780
|
-
if (
|
|
10781
|
-
table.config.main.disablePagination =
|
|
11055
|
+
if (config2.disablePagination) {
|
|
11056
|
+
table.config.main.disablePagination = config2.disablePagination === "YES" ? true : false;
|
|
10782
11057
|
}
|
|
10783
|
-
if (
|
|
10784
|
-
table.config.main.TableDownloadKeysName =
|
|
11058
|
+
if (config2.Table_Download_Keys_Name) {
|
|
11059
|
+
table.config.main.TableDownloadKeysName = config2.Table_Download_Keys_Name.map((e) => e.KeyName);
|
|
10785
11060
|
}
|
|
10786
|
-
if (
|
|
10787
|
-
table.config.main.selectKey =
|
|
11061
|
+
if (config2.selectKey) {
|
|
11062
|
+
table.config.main.selectKey = config2.selectKey;
|
|
10788
11063
|
}
|
|
10789
11064
|
return table;
|
|
10790
11065
|
};
|
|
@@ -10800,15 +11075,15 @@ const Box = {
|
|
|
10800
11075
|
style: {}
|
|
10801
11076
|
}
|
|
10802
11077
|
};
|
|
10803
|
-
const buildLabel = (
|
|
11078
|
+
const buildLabel = (config2, componentScope2) => {
|
|
10804
11079
|
const box = _.cloneDeep(Box);
|
|
10805
|
-
box.scope =
|
|
10806
|
-
box.config.main.heading =
|
|
10807
|
-
if (
|
|
10808
|
-
box.config.layout = createLayoutFormat(
|
|
11080
|
+
box.scope = componentScope2;
|
|
11081
|
+
box.config.main.heading = config2.label;
|
|
11082
|
+
if (config2.layout) {
|
|
11083
|
+
box.config.layout = createLayoutFormat(config2.layout);
|
|
10809
11084
|
}
|
|
10810
|
-
if (
|
|
10811
|
-
box.config.style = JSON.parse(
|
|
11085
|
+
if (config2.style) {
|
|
11086
|
+
box.config.style = JSON.parse(config2.style);
|
|
10812
11087
|
}
|
|
10813
11088
|
return box;
|
|
10814
11089
|
};
|
|
@@ -10848,42 +11123,39 @@ const downloadFile = {
|
|
|
10848
11123
|
"widget": "DownloadFile"
|
|
10849
11124
|
}
|
|
10850
11125
|
};
|
|
10851
|
-
const buildUploadFile = (
|
|
11126
|
+
const buildUploadFile = (config2, componentScope2) => {
|
|
10852
11127
|
const UploadFile = _.cloneDeep(uploadFile);
|
|
10853
|
-
UploadFile.scope =
|
|
10854
|
-
UploadFile.config.main.label =
|
|
10855
|
-
if (
|
|
10856
|
-
UploadFile.config.layout =
|
|
10857
|
-
}
|
|
10858
|
-
if (config.layout) {
|
|
10859
|
-
uploadFile.config.layout = createLayoutFormat(config.layout);
|
|
11128
|
+
UploadFile.scope = componentScope2;
|
|
11129
|
+
UploadFile.config.main.label = config2.label;
|
|
11130
|
+
if (config2.layout) {
|
|
11131
|
+
UploadFile.config.layout = createLayoutFormat(config2.layout);
|
|
10860
11132
|
}
|
|
10861
|
-
if (
|
|
10862
|
-
UploadFile.config.style =
|
|
11133
|
+
if (config2.style) {
|
|
11134
|
+
UploadFile.config.style = config2.style;
|
|
10863
11135
|
}
|
|
10864
|
-
if (
|
|
11136
|
+
if (config2.required) {
|
|
10865
11137
|
UploadFile.config.main.required = true;
|
|
10866
11138
|
}
|
|
10867
|
-
UploadFile.config.main.errorMessage =
|
|
11139
|
+
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
10868
11140
|
return UploadFile;
|
|
10869
11141
|
};
|
|
10870
|
-
const buildDownloadFile = (
|
|
11142
|
+
const buildDownloadFile = (config2, componentScope2) => {
|
|
10871
11143
|
const DownloadFile = _.cloneDeep(downloadFile);
|
|
10872
|
-
DownloadFile.scope =
|
|
10873
|
-
if (
|
|
10874
|
-
DownloadFile.config.layout =
|
|
11144
|
+
DownloadFile.scope = componentScope2;
|
|
11145
|
+
if (config2.layout) {
|
|
11146
|
+
DownloadFile.config.layout = config2.layout;
|
|
10875
11147
|
}
|
|
10876
|
-
if (
|
|
10877
|
-
DownloadFile.config.style =
|
|
11148
|
+
if (config2.style) {
|
|
11149
|
+
DownloadFile.config.style = config2.style;
|
|
10878
11150
|
}
|
|
10879
|
-
if (
|
|
11151
|
+
if (config2.required) {
|
|
10880
11152
|
DownloadFile.config.main.required = true;
|
|
10881
11153
|
}
|
|
10882
|
-
if (
|
|
10883
|
-
DownloadFile.config.layout = createLayoutFormat(
|
|
11154
|
+
if (config2.layout) {
|
|
11155
|
+
DownloadFile.config.layout = createLayoutFormat(config2.layout);
|
|
10884
11156
|
}
|
|
10885
|
-
if (
|
|
10886
|
-
DownloadFile.config.main.errorMessage =
|
|
11157
|
+
if (config2.errorMessage) {
|
|
11158
|
+
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
10887
11159
|
}
|
|
10888
11160
|
return DownloadFile;
|
|
10889
11161
|
};
|
|
@@ -10892,15 +11164,23 @@ function Card(theme) {
|
|
|
10892
11164
|
type: "WrapperLayout",
|
|
10893
11165
|
config: {
|
|
10894
11166
|
main: {},
|
|
10895
|
-
wrapperStyle: {
|
|
11167
|
+
wrapperStyle: {
|
|
11168
|
+
position: "relative",
|
|
11169
|
+
top: "50%",
|
|
11170
|
+
transform: "translateY(-50%)"
|
|
11171
|
+
},
|
|
10896
11172
|
componentsBoxStyle: {
|
|
11173
|
+
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
10897
11174
|
flexDirection: "row",
|
|
10898
11175
|
flexWrap: "nowrap",
|
|
10899
|
-
width: "100%",
|
|
11176
|
+
width: "100% !important",
|
|
10900
11177
|
background: "transparent",
|
|
10901
|
-
border: `1.5px solid ${theme.palette.primary.
|
|
10902
|
-
borderRadius: "
|
|
10903
|
-
padding: "0px
|
|
11178
|
+
border: `1.5px solid ${theme.palette.primary.light}`,
|
|
11179
|
+
borderRadius: "8px",
|
|
11180
|
+
padding: "0px 4px",
|
|
11181
|
+
height: "100%",
|
|
11182
|
+
alignItems: "center",
|
|
11183
|
+
marginLeft: "0px",
|
|
10904
11184
|
"&: hover": {
|
|
10905
11185
|
background: `${theme.palette.primary.main}`,
|
|
10906
11186
|
border: `1.5px solid black`,
|
|
@@ -10926,7 +11206,6 @@ function Card(theme) {
|
|
|
10926
11206
|
gap: 0
|
|
10927
11207
|
},
|
|
10928
11208
|
wrapperStyle: {
|
|
10929
|
-
marginTop: "4px",
|
|
10930
11209
|
background: "transparent"
|
|
10931
11210
|
},
|
|
10932
11211
|
componentsBoxStyle: {
|
|
@@ -10941,27 +11220,78 @@ function Card(theme) {
|
|
|
10941
11220
|
},
|
|
10942
11221
|
elements: [
|
|
10943
11222
|
{
|
|
10944
|
-
type: "
|
|
10945
|
-
scope: "#/properties/programType",
|
|
11223
|
+
type: "WrapperLayout",
|
|
10946
11224
|
config: {
|
|
10947
11225
|
main: {
|
|
10948
|
-
|
|
11226
|
+
columnSpacing: 0,
|
|
11227
|
+
gap: 0
|
|
10949
11228
|
},
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
11229
|
+
wrapperStyle: {
|
|
11230
|
+
background: "transparent"
|
|
11231
|
+
},
|
|
11232
|
+
componentsBoxStyle: {
|
|
11233
|
+
flexDirection: "row",
|
|
11234
|
+
flexWrap: "nowrap",
|
|
11235
|
+
width: "100%",
|
|
11236
|
+
height: "0",
|
|
11237
|
+
background: "transparent",
|
|
11238
|
+
borderRadius: "0px",
|
|
11239
|
+
marginLeft: "-10px",
|
|
11240
|
+
marginTop: "-8px",
|
|
11241
|
+
justifyContent: "start",
|
|
11242
|
+
position: "relative"
|
|
10959
11243
|
},
|
|
10960
11244
|
layout: 12
|
|
10961
11245
|
},
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
11246
|
+
elements: [
|
|
11247
|
+
{
|
|
11248
|
+
type: "Control",
|
|
11249
|
+
scope: "#/properties/programType",
|
|
11250
|
+
config: {
|
|
11251
|
+
main: {
|
|
11252
|
+
heading: ""
|
|
11253
|
+
},
|
|
11254
|
+
style: {
|
|
11255
|
+
color: "black",
|
|
11256
|
+
display: "flex",
|
|
11257
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
11258
|
+
fontWeight: "bold",
|
|
11259
|
+
background: "inherit",
|
|
11260
|
+
justifyContent: "flex-start",
|
|
11261
|
+
width: "auto",
|
|
11262
|
+
margin: "-8px",
|
|
11263
|
+
height: 0
|
|
11264
|
+
}
|
|
11265
|
+
},
|
|
11266
|
+
options: {
|
|
11267
|
+
widget: "Box"
|
|
11268
|
+
}
|
|
11269
|
+
},
|
|
11270
|
+
{
|
|
11271
|
+
type: "Control",
|
|
11272
|
+
scope: "#/properties/programType",
|
|
11273
|
+
config: {
|
|
11274
|
+
main: {
|
|
11275
|
+
heading: "5000.00"
|
|
11276
|
+
},
|
|
11277
|
+
style: {
|
|
11278
|
+
color: "black",
|
|
11279
|
+
display: "flex",
|
|
11280
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
11281
|
+
fontWeight: "bold",
|
|
11282
|
+
background: "inherit",
|
|
11283
|
+
justifyContent: "flex-start",
|
|
11284
|
+
width: "auto",
|
|
11285
|
+
margin: "-8px",
|
|
11286
|
+
position: "absolute",
|
|
11287
|
+
left: "8px"
|
|
11288
|
+
}
|
|
11289
|
+
},
|
|
11290
|
+
options: {
|
|
11291
|
+
widget: "Box"
|
|
11292
|
+
}
|
|
11293
|
+
}
|
|
11294
|
+
]
|
|
10965
11295
|
},
|
|
10966
11296
|
{
|
|
10967
11297
|
type: "Control",
|
|
@@ -10976,8 +11306,9 @@ function Card(theme) {
|
|
|
10976
11306
|
justifyContent: "center",
|
|
10977
11307
|
textWrap: "wrap",
|
|
10978
11308
|
background: "inherit",
|
|
10979
|
-
width: "calc(100%+
|
|
11309
|
+
width: "calc(100%+8px)",
|
|
10980
11310
|
margin: "-8px",
|
|
11311
|
+
marginTop: { xs: "0px", md: "12px" },
|
|
10981
11312
|
lineHeight: "1"
|
|
10982
11313
|
},
|
|
10983
11314
|
layout: 12
|
|
@@ -11001,13 +11332,14 @@ function Card(theme) {
|
|
|
11001
11332
|
containerStyle: {
|
|
11002
11333
|
height: "100%",
|
|
11003
11334
|
display: "flex",
|
|
11004
|
-
justifyContent: "
|
|
11335
|
+
justifyContent: "end"
|
|
11005
11336
|
},
|
|
11006
11337
|
imageStyle: {
|
|
11007
|
-
|
|
11338
|
+
width: "unset",
|
|
11008
11339
|
fontSize: "none",
|
|
11009
11340
|
padding: "4px",
|
|
11010
|
-
|
|
11341
|
+
margin: "0px 0px 0px 8px",
|
|
11342
|
+
height: "64px"
|
|
11011
11343
|
}
|
|
11012
11344
|
},
|
|
11013
11345
|
layout: 4
|
|
@@ -11020,19 +11352,23 @@ function Card(theme) {
|
|
|
11020
11352
|
};
|
|
11021
11353
|
return uiSchema;
|
|
11022
11354
|
}
|
|
11023
|
-
const buildCard = (config, componentScope,
|
|
11024
|
-
const card = _.cloneDeep(Card(
|
|
11355
|
+
const buildCard = (config, componentScope, store) => {
|
|
11356
|
+
const card = _.cloneDeep(Card(store.theme.myTheme));
|
|
11025
11357
|
if (config.style) {
|
|
11026
|
-
card.config.
|
|
11358
|
+
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11027
11359
|
}
|
|
11028
|
-
card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
|
|
11360
|
+
card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
|
|
11029
11361
|
card.elements[1].scope = `#/properties/${config.name}/properties/url`;
|
|
11030
11362
|
card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
|
|
11031
11363
|
if (config.layout) {
|
|
11032
11364
|
card.config.layout = createLayoutFormat(config.layout);
|
|
11033
11365
|
}
|
|
11366
|
+
if (config == null ? void 0 : config.titleIcon) {
|
|
11367
|
+
card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
|
|
11368
|
+
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11369
|
+
}
|
|
11034
11370
|
if (config.label) {
|
|
11035
|
-
card.elements[0].elements[0].elements[0].config.main.heading = config.label;
|
|
11371
|
+
card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
|
|
11036
11372
|
}
|
|
11037
11373
|
if (config.url) {
|
|
11038
11374
|
card.elements[1].config.main.url = config.url;
|
|
@@ -11070,23 +11406,23 @@ const DateTime = {
|
|
|
11070
11406
|
}
|
|
11071
11407
|
}
|
|
11072
11408
|
};
|
|
11073
|
-
const buildDate = (
|
|
11409
|
+
const buildDate = (config2, componentScope2) => {
|
|
11074
11410
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
11075
|
-
dateInputField.config.main.label =
|
|
11076
|
-
dateInputField.config.main.errorMessage = `${
|
|
11077
|
-
dateInputField.scope =
|
|
11078
|
-
if (
|
|
11079
|
-
dateInputField.config.layout = createLayoutFormat(
|
|
11411
|
+
dateInputField.config.main.label = config2.label;
|
|
11412
|
+
dateInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11413
|
+
dateInputField.scope = componentScope2;
|
|
11414
|
+
if (config2.layout) {
|
|
11415
|
+
dateInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11080
11416
|
}
|
|
11081
11417
|
return dateInputField;
|
|
11082
11418
|
};
|
|
11083
|
-
const buildDateTime = (
|
|
11419
|
+
const buildDateTime = (config2, componentScope2) => {
|
|
11084
11420
|
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
11085
|
-
dateTimeInputField.config.main.label =
|
|
11086
|
-
dateTimeInputField.config.main.errorMessage = `${
|
|
11087
|
-
dateTimeInputField.scope =
|
|
11088
|
-
if (
|
|
11089
|
-
dateTimeInputField.config.layout = createLayoutFormat(
|
|
11421
|
+
dateTimeInputField.config.main.label = config2.label;
|
|
11422
|
+
dateTimeInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11423
|
+
dateTimeInputField.scope = componentScope2;
|
|
11424
|
+
if (config2.layout) {
|
|
11425
|
+
dateTimeInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11090
11426
|
}
|
|
11091
11427
|
return dateTimeInputField;
|
|
11092
11428
|
};
|
|
@@ -11097,27 +11433,21 @@ var RankCard = {
|
|
|
11097
11433
|
widget: "RankCard"
|
|
11098
11434
|
},
|
|
11099
11435
|
config: {
|
|
11100
|
-
layout: { xs:
|
|
11436
|
+
layout: { xs: 12, sm: 6, md: 6, lg: 6 },
|
|
11101
11437
|
main: {}
|
|
11102
11438
|
}
|
|
11103
11439
|
};
|
|
11104
|
-
const buildRankCard = (
|
|
11440
|
+
const buildRankCard = (config2, componentScope2) => {
|
|
11105
11441
|
const rankCard = _.cloneDeep(RankCard);
|
|
11106
|
-
rankCard.scope =
|
|
11107
|
-
if (
|
|
11108
|
-
rankCard.config.main.
|
|
11442
|
+
rankCard.scope = componentScope2;
|
|
11443
|
+
if (config2.rank) {
|
|
11444
|
+
rankCard.config.main.rank = `${config2.rank}`;
|
|
11109
11445
|
}
|
|
11110
|
-
if (
|
|
11111
|
-
rankCard.config.main.
|
|
11446
|
+
if (config2.height) {
|
|
11447
|
+
rankCard.config.main.height = `${config2.height}px`;
|
|
11112
11448
|
}
|
|
11113
|
-
if (
|
|
11114
|
-
rankCard.config.
|
|
11115
|
-
}
|
|
11116
|
-
if (config.rank) {
|
|
11117
|
-
rankCard.config.main.rank = `#${config.rank}`;
|
|
11118
|
-
}
|
|
11119
|
-
if (config.layout) {
|
|
11120
|
-
rankCard.config.layout = createLayoutFormat(config.layout);
|
|
11449
|
+
if (config2.layout) {
|
|
11450
|
+
rankCard.config.layout = createLayoutFormat(config2.layout);
|
|
11121
11451
|
}
|
|
11122
11452
|
return rankCard;
|
|
11123
11453
|
};
|
|
@@ -11132,13 +11462,13 @@ var RollAndDice = {
|
|
|
11132
11462
|
main: {}
|
|
11133
11463
|
}
|
|
11134
11464
|
};
|
|
11135
|
-
const buildRollAndDice = (
|
|
11465
|
+
const buildRollAndDice = (config2, componentScope2) => {
|
|
11136
11466
|
const rank = _.cloneDeep(RollAndDice);
|
|
11137
|
-
if (
|
|
11138
|
-
rank.scope =
|
|
11467
|
+
if (config2.name) {
|
|
11468
|
+
rank.scope = componentScope2;
|
|
11139
11469
|
}
|
|
11140
|
-
if (
|
|
11141
|
-
rank.config.layout = createLayoutFormat(
|
|
11470
|
+
if (config2.layout) {
|
|
11471
|
+
rank.config.layout = createLayoutFormat(config2.layout);
|
|
11142
11472
|
}
|
|
11143
11473
|
return rank;
|
|
11144
11474
|
};
|
|
@@ -11152,34 +11482,21 @@ var Timer = {
|
|
|
11152
11482
|
layout: {
|
|
11153
11483
|
xs: 12,
|
|
11154
11484
|
sm: 12,
|
|
11155
|
-
md:
|
|
11156
|
-
lg:
|
|
11485
|
+
md: 6,
|
|
11486
|
+
lg: 6
|
|
11157
11487
|
},
|
|
11158
11488
|
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
|
-
}
|
|
11489
|
+
style: {}
|
|
11173
11490
|
}
|
|
11174
11491
|
};
|
|
11175
|
-
const buildTimer = (
|
|
11492
|
+
const buildTimer = (config2, componentScope2) => {
|
|
11176
11493
|
const timer = _.cloneDeep(Timer);
|
|
11177
|
-
timer.scope =
|
|
11178
|
-
if (
|
|
11179
|
-
timer.config.main.label =
|
|
11494
|
+
timer.scope = componentScope2;
|
|
11495
|
+
if (config2.label) {
|
|
11496
|
+
timer.config.main.label = config2.label;
|
|
11180
11497
|
}
|
|
11181
|
-
if (
|
|
11182
|
-
timer.config.layout = createLayoutFormat(
|
|
11498
|
+
if (config2.layout) {
|
|
11499
|
+
timer.config.layout = createLayoutFormat(config2.layout);
|
|
11183
11500
|
}
|
|
11184
11501
|
return timer;
|
|
11185
11502
|
};
|
|
@@ -11200,30 +11517,30 @@ var MultipleSelect = {
|
|
|
11200
11517
|
}
|
|
11201
11518
|
}
|
|
11202
11519
|
};
|
|
11203
|
-
const buildMultiSelect = (
|
|
11520
|
+
const buildMultiSelect = (config2, componentScope2) => {
|
|
11204
11521
|
const multipleSelect = _.cloneDeep(MultipleSelect);
|
|
11205
|
-
multipleSelect.scope =
|
|
11206
|
-
if (
|
|
11207
|
-
multipleSelect.config.main.label =
|
|
11522
|
+
multipleSelect.scope = componentScope2;
|
|
11523
|
+
if (config2.label) {
|
|
11524
|
+
multipleSelect.config.main.label = config2.label;
|
|
11208
11525
|
}
|
|
11209
|
-
if (
|
|
11210
|
-
multipleSelect.config.layout = createLayoutFormat(
|
|
11526
|
+
if (config2.layout) {
|
|
11527
|
+
multipleSelect.config.layout = createLayoutFormat(config2.layout);
|
|
11211
11528
|
}
|
|
11212
|
-
if (
|
|
11213
|
-
multipleSelect.config.main.options =
|
|
11529
|
+
if (config2.value) {
|
|
11530
|
+
multipleSelect.config.main.options = config2.value;
|
|
11214
11531
|
}
|
|
11215
|
-
if (
|
|
11216
|
-
multipleSelect.config.main.lazyLoading =
|
|
11532
|
+
if (config2.lazyLoading) {
|
|
11533
|
+
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11217
11534
|
}
|
|
11218
11535
|
return multipleSelect;
|
|
11219
11536
|
};
|
|
11220
|
-
const buildBasicUiSchema = (
|
|
11537
|
+
const buildBasicUiSchema = (config2) => {
|
|
11221
11538
|
return {
|
|
11222
11539
|
"type": "HorizontalLayout",
|
|
11223
|
-
pageName:
|
|
11224
|
-
name:
|
|
11225
|
-
accessorKey:
|
|
11226
|
-
heading:
|
|
11540
|
+
pageName: config2.name,
|
|
11541
|
+
name: config2.name,
|
|
11542
|
+
accessorKey: config2.name,
|
|
11543
|
+
heading: config2.label || config2.name,
|
|
11227
11544
|
"elements": []
|
|
11228
11545
|
};
|
|
11229
11546
|
};
|
|
@@ -11254,25 +11571,25 @@ const TextArea = {
|
|
|
11254
11571
|
}
|
|
11255
11572
|
}
|
|
11256
11573
|
};
|
|
11257
|
-
const buildTextArea = (
|
|
11574
|
+
const buildTextArea = (config2, componentScope2) => {
|
|
11258
11575
|
const textArea = _.cloneDeep(TextArea);
|
|
11259
|
-
textArea.config.main.heading =
|
|
11260
|
-
if (
|
|
11261
|
-
textArea.config.layout = createLayoutFormat(
|
|
11576
|
+
textArea.config.main.heading = config2.label;
|
|
11577
|
+
if (config2.layout) {
|
|
11578
|
+
textArea.config.layout = createLayoutFormat(config2.layout);
|
|
11262
11579
|
}
|
|
11263
|
-
if (
|
|
11264
|
-
textArea.config.style = JSON.parse(
|
|
11580
|
+
if (config2.style) {
|
|
11581
|
+
textArea.config.style = JSON.parse(config2.style);
|
|
11265
11582
|
}
|
|
11266
|
-
if (
|
|
11267
|
-
textArea.config.main.placeholder =
|
|
11583
|
+
if (config2.placeholder) {
|
|
11584
|
+
textArea.config.main.placeholder = config2.placeholder;
|
|
11268
11585
|
}
|
|
11269
|
-
if (
|
|
11270
|
-
textArea.config.main.enableCodeEditor =
|
|
11586
|
+
if (config2.enableCodeEditor) {
|
|
11587
|
+
textArea.config.main.enableCodeEditor = config2.enableCodeEditor === "YES" ? true : false;
|
|
11271
11588
|
}
|
|
11272
|
-
if (
|
|
11273
|
-
textArea.config.main.codeEditorLanguage =
|
|
11589
|
+
if (config2.codeEditorLanguage) {
|
|
11590
|
+
textArea.config.main.codeEditorLanguage = config2.codeEditorLanguage;
|
|
11274
11591
|
}
|
|
11275
|
-
textArea.scope =
|
|
11592
|
+
textArea.scope = componentScope2;
|
|
11276
11593
|
return textArea;
|
|
11277
11594
|
};
|
|
11278
11595
|
var cardSlider = {
|
|
@@ -11287,13 +11604,13 @@ var cardSlider = {
|
|
|
11287
11604
|
main: {}
|
|
11288
11605
|
}
|
|
11289
11606
|
};
|
|
11290
|
-
const buildSlider = (
|
|
11607
|
+
const buildSlider = (config2, componentScope2) => {
|
|
11291
11608
|
const slider = _.cloneDeep(cardSlider);
|
|
11292
|
-
if (
|
|
11293
|
-
slider.scope =
|
|
11609
|
+
if (config2.name) {
|
|
11610
|
+
slider.scope = componentScope2;
|
|
11294
11611
|
}
|
|
11295
|
-
if (
|
|
11296
|
-
slider.config.layout = createLayoutFormat(
|
|
11612
|
+
if (config2.layout) {
|
|
11613
|
+
slider.config.layout = createLayoutFormat(config2.layout);
|
|
11297
11614
|
}
|
|
11298
11615
|
return slider;
|
|
11299
11616
|
};
|
|
@@ -11310,61 +11627,57 @@ const Checkbox = {
|
|
|
11310
11627
|
}
|
|
11311
11628
|
}
|
|
11312
11629
|
};
|
|
11313
|
-
const buildCheckbox = (
|
|
11630
|
+
const buildCheckbox = (config2, componentScope2) => {
|
|
11314
11631
|
const check = _.cloneDeep(Checkbox);
|
|
11315
|
-
check.scope =
|
|
11316
|
-
check.config.main.label =
|
|
11317
|
-
if (
|
|
11318
|
-
check.config.layout = createLayoutFormat(
|
|
11632
|
+
check.scope = componentScope2;
|
|
11633
|
+
check.config.main.label = config2.label;
|
|
11634
|
+
if (config2.layout) {
|
|
11635
|
+
check.config.layout = createLayoutFormat(config2.layout);
|
|
11319
11636
|
}
|
|
11320
|
-
if (
|
|
11321
|
-
check.config.style = JSON.parse(
|
|
11637
|
+
if (config2.style) {
|
|
11638
|
+
check.config.style = JSON.parse(config2.style);
|
|
11322
11639
|
}
|
|
11323
11640
|
return check;
|
|
11324
11641
|
};
|
|
11325
|
-
const buildLineGraph = (
|
|
11642
|
+
const buildLineGraph = (config2, componentScope2) => {
|
|
11326
11643
|
const lineGraph = _.cloneDeep(LineGraph);
|
|
11327
|
-
if (
|
|
11328
|
-
lineGraph.config.layout = createLayoutFormat(
|
|
11644
|
+
if (config2.layout) {
|
|
11645
|
+
lineGraph.config.layout = createLayoutFormat(config2.layout);
|
|
11329
11646
|
}
|
|
11330
|
-
lineGraph.config.main.header =
|
|
11331
|
-
if (
|
|
11332
|
-
lineGraph.config.style.containerStyle.height =
|
|
11647
|
+
lineGraph.config.main.header = config2.heading;
|
|
11648
|
+
if (config2.height) {
|
|
11649
|
+
lineGraph.config.style.containerStyle.height = config2.height;
|
|
11333
11650
|
}
|
|
11334
|
-
if (
|
|
11335
|
-
lineGraph.config.style = {
|
|
11336
|
-
|
|
11337
|
-
margin: {
|
|
11338
|
-
left: config.leftMargin
|
|
11339
|
-
}
|
|
11340
|
-
}
|
|
11651
|
+
if (config2.leftMargin) {
|
|
11652
|
+
lineGraph.config.style.labelStyle.margin = {
|
|
11653
|
+
left: config2.leftMargin
|
|
11341
11654
|
};
|
|
11342
11655
|
}
|
|
11343
|
-
if (
|
|
11344
|
-
lineGraph.config.main.bottomLabel =
|
|
11656
|
+
if (config2.bottomLabel) {
|
|
11657
|
+
lineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
11345
11658
|
}
|
|
11346
|
-
if (
|
|
11347
|
-
lineGraph.config.main.yAxisValue =
|
|
11659
|
+
if (config2.yAxisValue) {
|
|
11660
|
+
lineGraph.config.main.yAxisValue = config2.yAxisValue;
|
|
11348
11661
|
}
|
|
11349
|
-
if (
|
|
11350
|
-
lineGraph.config.main.xAxisValue =
|
|
11662
|
+
if (config2.xAxisValue) {
|
|
11663
|
+
lineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
11351
11664
|
}
|
|
11352
|
-
if (
|
|
11353
|
-
lineGraph.config.main.leftLabel =
|
|
11665
|
+
if (config2.leftLabel) {
|
|
11666
|
+
lineGraph.config.main.leftLabel = config2.leftLabel;
|
|
11354
11667
|
}
|
|
11355
|
-
if (
|
|
11356
|
-
lineGraph.config.main.
|
|
11668
|
+
if (config2.legendHide) {
|
|
11669
|
+
lineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
11357
11670
|
}
|
|
11358
|
-
if (
|
|
11359
|
-
lineGraph.config.main.bottomAxisAngle =
|
|
11671
|
+
if (config2.bottomAxisAngle) {
|
|
11672
|
+
lineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
11360
11673
|
}
|
|
11361
|
-
if (
|
|
11362
|
-
lineGraph.config.main.
|
|
11674
|
+
if (config2.legendLabels) {
|
|
11675
|
+
lineGraph.config.main.legendLabels = flatObjectValueInArray(config2.legendLabels);
|
|
11363
11676
|
}
|
|
11364
|
-
if (
|
|
11365
|
-
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(
|
|
11677
|
+
if (config2.pieArcColors) {
|
|
11678
|
+
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
11366
11679
|
}
|
|
11367
|
-
lineGraph.scope =
|
|
11680
|
+
lineGraph.scope = componentScope2;
|
|
11368
11681
|
return lineGraph;
|
|
11369
11682
|
};
|
|
11370
11683
|
const RadioUiSchema = {
|
|
@@ -11382,25 +11695,25 @@ const RadioUiSchema = {
|
|
|
11382
11695
|
}
|
|
11383
11696
|
}
|
|
11384
11697
|
};
|
|
11385
|
-
const buildRadio = (
|
|
11698
|
+
const buildRadio = (config2, componentScope2) => {
|
|
11386
11699
|
const Radio = _.cloneDeep(RadioUiSchema);
|
|
11387
|
-
Radio.scope =
|
|
11388
|
-
Radio.config.main.label =
|
|
11389
|
-
if (
|
|
11390
|
-
Radio.config.layout = createLayoutFormat(
|
|
11700
|
+
Radio.scope = componentScope2;
|
|
11701
|
+
Radio.config.main.label = config2.label;
|
|
11702
|
+
if (config2.layout) {
|
|
11703
|
+
Radio.config.layout = createLayoutFormat(config2.layout);
|
|
11391
11704
|
}
|
|
11392
|
-
if (
|
|
11393
|
-
Radio.config.main.options =
|
|
11705
|
+
if (config2.sectionLabels) {
|
|
11706
|
+
Radio.config.main.options = config2.sectionLabels.map((e) => e.label || e.Options);
|
|
11394
11707
|
}
|
|
11395
|
-
if (
|
|
11396
|
-
Radio.config.style = JSON.parse(
|
|
11708
|
+
if (config2.style) {
|
|
11709
|
+
Radio.config.style = JSON.parse(config2.style);
|
|
11397
11710
|
}
|
|
11398
11711
|
return Radio;
|
|
11399
11712
|
};
|
|
11400
|
-
const buildEmptyBox = (
|
|
11713
|
+
const buildEmptyBox = (config2, componentScope2) => {
|
|
11401
11714
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
11402
|
-
if (
|
|
11403
|
-
EmptyBox.config.layout = createLayoutFormat(
|
|
11715
|
+
if (config2.layout) {
|
|
11716
|
+
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
11404
11717
|
}
|
|
11405
11718
|
return EmptyBox;
|
|
11406
11719
|
};
|
|
@@ -11415,9 +11728,9 @@ const ArrayUiSchema = {
|
|
|
11415
11728
|
}
|
|
11416
11729
|
}
|
|
11417
11730
|
};
|
|
11418
|
-
const buildArray = (
|
|
11731
|
+
const buildArray = (config2, componentScope2) => {
|
|
11419
11732
|
const array = _.cloneDeep(ArrayUiSchema);
|
|
11420
|
-
array.scope =
|
|
11733
|
+
array.scope = componentScope2;
|
|
11421
11734
|
return array;
|
|
11422
11735
|
};
|
|
11423
11736
|
const TextField = {
|
|
@@ -11428,6 +11741,7 @@ const TextField = {
|
|
|
11428
11741
|
"widget": "InputField"
|
|
11429
11742
|
},
|
|
11430
11743
|
config: {
|
|
11744
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11431
11745
|
main: {
|
|
11432
11746
|
label: "Adhaar Card",
|
|
11433
11747
|
formatStrArray: ["9", "9", "9", "9", " ", "9", "9", "9", "9", " ", "X9", "X9", "X9", "X9"],
|
|
@@ -11435,17 +11749,17 @@ const TextField = {
|
|
|
11435
11749
|
}
|
|
11436
11750
|
}
|
|
11437
11751
|
};
|
|
11438
|
-
const buildAdhaarField = (
|
|
11752
|
+
const buildAdhaarField = (config2, componentScope2) => {
|
|
11439
11753
|
const inputField = _.cloneDeep(TextField);
|
|
11440
|
-
inputField.config.main.label =
|
|
11441
|
-
if (
|
|
11442
|
-
inputField.config.style = JSON.parse(
|
|
11754
|
+
inputField.config.main.label = config2.label;
|
|
11755
|
+
if (config2.style) {
|
|
11756
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11443
11757
|
}
|
|
11444
|
-
if (
|
|
11445
|
-
inputField.config.layout = createLayoutFormat(
|
|
11758
|
+
if (config2.layout) {
|
|
11759
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11446
11760
|
}
|
|
11447
|
-
inputField.config.main.errorMessage = `${
|
|
11448
|
-
inputField.scope =
|
|
11761
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11762
|
+
inputField.scope = componentScope2;
|
|
11449
11763
|
return inputField;
|
|
11450
11764
|
};
|
|
11451
11765
|
const PanField = {
|
|
@@ -11456,6 +11770,7 @@ const PanField = {
|
|
|
11456
11770
|
"widget": "InputField"
|
|
11457
11771
|
},
|
|
11458
11772
|
config: {
|
|
11773
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11459
11774
|
main: {
|
|
11460
11775
|
label: "Pan Card",
|
|
11461
11776
|
placeholder: "AAAAA0000A",
|
|
@@ -11463,17 +11778,17 @@ const PanField = {
|
|
|
11463
11778
|
}
|
|
11464
11779
|
}
|
|
11465
11780
|
};
|
|
11466
|
-
const buildPanField = (
|
|
11781
|
+
const buildPanField = (config2, componentScope2) => {
|
|
11467
11782
|
const inputField = _.cloneDeep(PanField);
|
|
11468
|
-
inputField.config.main.label =
|
|
11469
|
-
if (
|
|
11470
|
-
inputField.config.style = JSON.parse(
|
|
11783
|
+
inputField.config.main.label = config2.label;
|
|
11784
|
+
if (config2.style) {
|
|
11785
|
+
inputField.config.style = JSON.parse(config2.style);
|
|
11471
11786
|
}
|
|
11472
|
-
if (
|
|
11473
|
-
inputField.config.layout = createLayoutFormat(
|
|
11787
|
+
if (config2.layout) {
|
|
11788
|
+
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11474
11789
|
}
|
|
11475
|
-
inputField.config.main.errorMessage = `${
|
|
11476
|
-
inputField.scope =
|
|
11790
|
+
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11791
|
+
inputField.scope = componentScope2;
|
|
11477
11792
|
return inputField;
|
|
11478
11793
|
};
|
|
11479
11794
|
const FileInput = {
|
|
@@ -11495,15 +11810,15 @@ const FileInput = {
|
|
|
11495
11810
|
}
|
|
11496
11811
|
}
|
|
11497
11812
|
};
|
|
11498
|
-
const buildFileInput = (
|
|
11813
|
+
const buildFileInput = (config2, componentScope2) => {
|
|
11499
11814
|
const box = _.cloneDeep(FileInput);
|
|
11500
|
-
box.scope =
|
|
11501
|
-
box.config.main.label =
|
|
11502
|
-
if (
|
|
11503
|
-
box.config.layout = createLayoutFormat(
|
|
11815
|
+
box.scope = componentScope2;
|
|
11816
|
+
box.config.main.label = config2.label;
|
|
11817
|
+
if (config2.layout) {
|
|
11818
|
+
box.config.layout = createLayoutFormat(config2.layout);
|
|
11504
11819
|
}
|
|
11505
|
-
if (
|
|
11506
|
-
box.config.style = JSON.parse(
|
|
11820
|
+
if (config2.style) {
|
|
11821
|
+
box.config.style = JSON.parse(config2.style);
|
|
11507
11822
|
}
|
|
11508
11823
|
return box;
|
|
11509
11824
|
};
|
|
@@ -11523,26 +11838,26 @@ const Stepper = {
|
|
|
11523
11838
|
},
|
|
11524
11839
|
"elements": []
|
|
11525
11840
|
};
|
|
11526
|
-
const buildStepper = (
|
|
11841
|
+
const buildStepper = (config2, componentScope2) => {
|
|
11527
11842
|
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 =
|
|
11843
|
+
stepper.scope = componentScope2;
|
|
11844
|
+
stepper.config.main.resetButton = config2.resetButton === "YES" ? true : false;
|
|
11845
|
+
if (config2.defaultButtonAvailable) {
|
|
11846
|
+
stepper.config.main.defaultButtonAvailable = config2.defaultButtonAvailable === "YES" ? true : false;
|
|
11847
|
+
}
|
|
11848
|
+
stepper.config.main.resetText = config2.resetText || "ResetData";
|
|
11849
|
+
stepper.config.main.completeText = config2.completeText || "Complete Text";
|
|
11850
|
+
stepper.config.main.orientation = config2.orientation || "horizontal";
|
|
11851
|
+
if (config2.sectionLabels) {
|
|
11852
|
+
stepper.config.main.steps = config2.sectionLabels.map((e, i) => {
|
|
11538
11853
|
return { label: e.label, id: i };
|
|
11539
11854
|
});
|
|
11540
11855
|
}
|
|
11541
|
-
if (
|
|
11542
|
-
stepper.config.layout = createLayoutFormat(
|
|
11856
|
+
if (config2.layout) {
|
|
11857
|
+
stepper.config.layout = createLayoutFormat(config2.layout);
|
|
11543
11858
|
}
|
|
11544
|
-
if (
|
|
11545
|
-
stepper.config.style = JSON.parse(
|
|
11859
|
+
if (config2.style) {
|
|
11860
|
+
stepper.config.style = JSON.parse(config2.style);
|
|
11546
11861
|
}
|
|
11547
11862
|
return stepper;
|
|
11548
11863
|
};
|
|
@@ -11570,18 +11885,18 @@ const PopUP = {
|
|
|
11570
11885
|
style: {}
|
|
11571
11886
|
}
|
|
11572
11887
|
};
|
|
11573
|
-
const buildPopUp = (
|
|
11888
|
+
const buildPopUp = (config2, componentScope2) => {
|
|
11574
11889
|
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(
|
|
11890
|
+
popup.scope = componentScope2;
|
|
11891
|
+
popup.config.main.title = config2.label;
|
|
11892
|
+
popup.config.main.fullScreen = config2.fullScreen === "YES" ? true : false;
|
|
11893
|
+
popup.config.main.fullWidth = config2.fullWidth === "YES" ? true : false;
|
|
11894
|
+
popup.config.main.maxWidth = config2.maxWidth || false;
|
|
11895
|
+
if (config2.layout) {
|
|
11896
|
+
popup.config.layout = createLayoutFormat(config2.layout);
|
|
11582
11897
|
}
|
|
11583
|
-
if (
|
|
11584
|
-
PopUP.config.style = JSON.parse(
|
|
11898
|
+
if (config2.style) {
|
|
11899
|
+
PopUP.config.style = JSON.parse(config2.style);
|
|
11585
11900
|
}
|
|
11586
11901
|
return popup;
|
|
11587
11902
|
};
|
|
@@ -11601,30 +11916,30 @@ const dataGrid = {
|
|
|
11601
11916
|
style: {}
|
|
11602
11917
|
}
|
|
11603
11918
|
};
|
|
11604
|
-
const buildDataGrid = (
|
|
11919
|
+
const buildDataGrid = (config2, componentScope2) => {
|
|
11605
11920
|
const DataGrid = _.cloneDeep(dataGrid);
|
|
11606
|
-
DataGrid.scope =
|
|
11607
|
-
if (
|
|
11608
|
-
DataGrid.config.main.elevation = +
|
|
11921
|
+
DataGrid.scope = componentScope2;
|
|
11922
|
+
if (config2.elevation) {
|
|
11923
|
+
DataGrid.config.main.elevation = +config2.elevation;
|
|
11609
11924
|
}
|
|
11610
|
-
DataGrid.config.main.divider =
|
|
11611
|
-
if (
|
|
11612
|
-
DataGrid.config.main.height = `${
|
|
11925
|
+
DataGrid.config.main.divider = config2.divider === "NO" ? false : true;
|
|
11926
|
+
if (config2.height) {
|
|
11927
|
+
DataGrid.config.main.height = `${config2.height}px`;
|
|
11613
11928
|
}
|
|
11614
|
-
if (
|
|
11615
|
-
DataGrid.config.main.justifyContent =
|
|
11929
|
+
if (config2.justifyContent) {
|
|
11930
|
+
DataGrid.config.main.justifyContent = config2.justifyContent;
|
|
11616
11931
|
}
|
|
11617
|
-
if (
|
|
11618
|
-
DataGrid.config.main.label =
|
|
11932
|
+
if (config2.label) {
|
|
11933
|
+
DataGrid.config.main.label = config2.label;
|
|
11619
11934
|
}
|
|
11620
|
-
if (
|
|
11621
|
-
DataGrid.config.layout = createLayoutFormat(
|
|
11935
|
+
if (config2.layout) {
|
|
11936
|
+
DataGrid.config.layout = createLayoutFormat(config2.layout);
|
|
11622
11937
|
}
|
|
11623
|
-
if (
|
|
11624
|
-
DataGrid.config.cardLayout = createLayoutFormat(
|
|
11938
|
+
if (config2.cardLayout) {
|
|
11939
|
+
DataGrid.config.cardLayout = createLayoutFormat(config2.cardLayout);
|
|
11625
11940
|
}
|
|
11626
|
-
if (
|
|
11627
|
-
DataGrid.config.style = JSON.parse(
|
|
11941
|
+
if (config2.style) {
|
|
11942
|
+
DataGrid.config.style = JSON.parse(config2.style);
|
|
11628
11943
|
}
|
|
11629
11944
|
return DataGrid;
|
|
11630
11945
|
};
|
|
@@ -11635,7 +11950,7 @@ const InputSlider = {
|
|
|
11635
11950
|
widget: "InputSlider"
|
|
11636
11951
|
},
|
|
11637
11952
|
config: {
|
|
11638
|
-
layout: 12,
|
|
11953
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 },
|
|
11639
11954
|
main: {
|
|
11640
11955
|
limitToMax: false,
|
|
11641
11956
|
max: 1e4,
|
|
@@ -11645,27 +11960,27 @@ const InputSlider = {
|
|
|
11645
11960
|
}
|
|
11646
11961
|
}
|
|
11647
11962
|
};
|
|
11648
|
-
const buildInputSlider = (
|
|
11963
|
+
const buildInputSlider = (config2, componentScope2) => {
|
|
11649
11964
|
const inputSlider = _.cloneDeep(InputSlider);
|
|
11650
|
-
inputSlider.scope =
|
|
11651
|
-
inputSlider.config.main.label =
|
|
11652
|
-
if (
|
|
11653
|
-
inputSlider.config.layout = createLayoutFormat(
|
|
11965
|
+
inputSlider.scope = componentScope2;
|
|
11966
|
+
inputSlider.config.main.label = config2.label;
|
|
11967
|
+
if (config2.layout) {
|
|
11968
|
+
inputSlider.config.layout = createLayoutFormat(config2.layout);
|
|
11654
11969
|
}
|
|
11655
|
-
if (
|
|
11656
|
-
inputSlider.config.main.limitToMax =
|
|
11970
|
+
if (config2.limitToMax) {
|
|
11971
|
+
inputSlider.config.main.limitToMax = config2.limitToMax === "YES" ? true : false;
|
|
11657
11972
|
}
|
|
11658
|
-
if (
|
|
11659
|
-
inputSlider.config.main.max =
|
|
11973
|
+
if (config2.max) {
|
|
11974
|
+
inputSlider.config.main.max = config2.max;
|
|
11660
11975
|
}
|
|
11661
|
-
if (
|
|
11662
|
-
inputSlider.config.main.step =
|
|
11976
|
+
if (config2.step) {
|
|
11977
|
+
inputSlider.config.main.step = config2.step;
|
|
11663
11978
|
}
|
|
11664
|
-
if (
|
|
11665
|
-
inputSlider.config.main.min =
|
|
11979
|
+
if (config2.min) {
|
|
11980
|
+
inputSlider.config.main.min = config2.min;
|
|
11666
11981
|
}
|
|
11667
|
-
if (
|
|
11668
|
-
inputSlider.config.main.defaultStyle = JSON.parse(
|
|
11982
|
+
if (config2.style) {
|
|
11983
|
+
inputSlider.config.main.defaultStyle = JSON.parse(config2.style);
|
|
11669
11984
|
}
|
|
11670
11985
|
return inputSlider;
|
|
11671
11986
|
};
|
|
@@ -11691,38 +12006,101 @@ const TreeMap = {
|
|
|
11691
12006
|
},
|
|
11692
12007
|
elements: []
|
|
11693
12008
|
};
|
|
11694
|
-
const buildTreeMap = (
|
|
12009
|
+
const buildTreeMap = (config2, componentScope2) => {
|
|
11695
12010
|
const treMap = _.cloneDeep(TreeMap);
|
|
11696
|
-
treMap.scope =
|
|
11697
|
-
if (
|
|
11698
|
-
treMap.config.main.header =
|
|
12011
|
+
treMap.scope = componentScope2;
|
|
12012
|
+
if (config2.label) {
|
|
12013
|
+
treMap.config.main.header = config2.label;
|
|
11699
12014
|
}
|
|
11700
|
-
if (
|
|
11701
|
-
treMap.config.layout = createLayoutFormat(
|
|
12015
|
+
if (config2.layout) {
|
|
12016
|
+
treMap.config.layout = createLayoutFormat(config2.layout);
|
|
11702
12017
|
}
|
|
11703
|
-
if (
|
|
11704
|
-
treMap.config.main.orientation =
|
|
12018
|
+
if (config2.orientation) {
|
|
12019
|
+
treMap.config.main.orientation = config2.orientation;
|
|
11705
12020
|
}
|
|
11706
|
-
if (
|
|
11707
|
-
treMap.config.main.linkType =
|
|
12021
|
+
if (config2.linkType) {
|
|
12022
|
+
treMap.config.main.linkType = config2.linkType;
|
|
11708
12023
|
}
|
|
11709
|
-
if (
|
|
11710
|
-
treMap.config.main.graphHeight =
|
|
12024
|
+
if (config2.graphHeight) {
|
|
12025
|
+
treMap.config.main.graphHeight = config2.graphHeight;
|
|
11711
12026
|
}
|
|
11712
|
-
if (
|
|
11713
|
-
treMap.config.main.graphWidth =
|
|
12027
|
+
if (config2.graphWidth) {
|
|
12028
|
+
treMap.config.main.graphWidth = config2.graphWidth;
|
|
11714
12029
|
}
|
|
11715
|
-
if (
|
|
11716
|
-
treMap.config.main.graphZoomHeight =
|
|
12030
|
+
if (config2.graphZoomHeight) {
|
|
12031
|
+
treMap.config.main.graphZoomHeight = config2.graphZoomHeight;
|
|
11717
12032
|
}
|
|
11718
|
-
if (
|
|
11719
|
-
treMap.config.main.graphZoomWidth =
|
|
12033
|
+
if (config2.graphZoomWidth) {
|
|
12034
|
+
treMap.config.main.graphZoomWidth = config2.graphZoomWidth;
|
|
11720
12035
|
}
|
|
11721
|
-
if (
|
|
11722
|
-
treMap.config.style = JSON.parse(
|
|
12036
|
+
if (config2.style) {
|
|
12037
|
+
treMap.config.style = JSON.parse(config2.style);
|
|
11723
12038
|
}
|
|
11724
12039
|
return treMap;
|
|
11725
12040
|
};
|
|
12041
|
+
var Thought = {
|
|
12042
|
+
type: "Control",
|
|
12043
|
+
scope: "#/properties/path",
|
|
12044
|
+
options: {
|
|
12045
|
+
widget: "Thought"
|
|
12046
|
+
},
|
|
12047
|
+
config: {
|
|
12048
|
+
layout: { xs: 11.5, sm: 11.5, md: 8, lg: 8 },
|
|
12049
|
+
main: {}
|
|
12050
|
+
}
|
|
12051
|
+
};
|
|
12052
|
+
const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
12053
|
+
const thought = _.cloneDeep(Thought);
|
|
12054
|
+
thought.scope = componentScope2;
|
|
12055
|
+
if (config2.thought) {
|
|
12056
|
+
thought.config.main.thought = `${config2.thought}`;
|
|
12057
|
+
}
|
|
12058
|
+
if (config2.layout) {
|
|
12059
|
+
thought.config.layout = createLayoutFormat(config2.layout);
|
|
12060
|
+
}
|
|
12061
|
+
if (config2.label) {
|
|
12062
|
+
thought.config.main.label = config2.label;
|
|
12063
|
+
}
|
|
12064
|
+
if (config2.style) {
|
|
12065
|
+
thought.config.style = JSON.parse(config2.style);
|
|
12066
|
+
}
|
|
12067
|
+
return thought;
|
|
12068
|
+
};
|
|
12069
|
+
var pdfViewer = {
|
|
12070
|
+
type: "Control",
|
|
12071
|
+
scope: "#/properties/pdfviewer",
|
|
12072
|
+
options: {
|
|
12073
|
+
widget: "PdfViewer"
|
|
12074
|
+
},
|
|
12075
|
+
config: {
|
|
12076
|
+
layout: {
|
|
12077
|
+
xs: 12,
|
|
12078
|
+
sm: 12,
|
|
12079
|
+
md: 12,
|
|
12080
|
+
lg: 12
|
|
12081
|
+
},
|
|
12082
|
+
main: {
|
|
12083
|
+
title: "PDF"
|
|
12084
|
+
}
|
|
12085
|
+
}
|
|
12086
|
+
};
|
|
12087
|
+
const buildPdfViewer = (config2) => {
|
|
12088
|
+
const PdfViewer = _.cloneDeep(pdfViewer);
|
|
12089
|
+
PdfViewer.config.main.label = config2.label;
|
|
12090
|
+
if (config2.name) {
|
|
12091
|
+
PdfViewer.scope = `#/properties/${config2.name}`;
|
|
12092
|
+
}
|
|
12093
|
+
if (config2.layout) {
|
|
12094
|
+
PdfViewer.config.layout = createLayoutFormat(config2.layout);
|
|
12095
|
+
}
|
|
12096
|
+
if (config2.label) {
|
|
12097
|
+
PdfViewer.config.main.title = config2.label;
|
|
12098
|
+
}
|
|
12099
|
+
if (config2.style) {
|
|
12100
|
+
PdfViewer.config.style = JSON.parse(config2.style);
|
|
12101
|
+
}
|
|
12102
|
+
return PdfViewer;
|
|
12103
|
+
};
|
|
11726
12104
|
let schema = {
|
|
11727
12105
|
type: "object",
|
|
11728
12106
|
properties: {},
|
|
@@ -11812,12 +12190,12 @@ function buildRule(configObj, tableName, arrayHolderName) {
|
|
|
11812
12190
|
});
|
|
11813
12191
|
}
|
|
11814
12192
|
}
|
|
11815
|
-
const buildSchema = (
|
|
11816
|
-
buildRule(
|
|
11817
|
-
if (
|
|
11818
|
-
if (
|
|
11819
|
-
if (!schema.properties[
|
|
11820
|
-
schema.properties[
|
|
12193
|
+
const buildSchema = (config2, tableName, isArrayType) => {
|
|
12194
|
+
buildRule(config2, tableName, isArrayType);
|
|
12195
|
+
if (config2 == null ? void 0 : config2.elements) {
|
|
12196
|
+
if (config2.type == "Table" || config2.type == "Array") {
|
|
12197
|
+
if (!schema.properties[config2.name]) {
|
|
12198
|
+
schema.properties[config2.name] = {
|
|
11821
12199
|
type: "array",
|
|
11822
12200
|
items: {
|
|
11823
12201
|
type: "object",
|
|
@@ -11826,150 +12204,159 @@ const buildSchema = (config, tableName, isArrayType) => {
|
|
|
11826
12204
|
}
|
|
11827
12205
|
};
|
|
11828
12206
|
}
|
|
11829
|
-
|
|
11830
|
-
buildSchema(e,
|
|
12207
|
+
config2.elements.map((e, elemInd) => {
|
|
12208
|
+
buildSchema(e, config2.name, config2.type === "Array" ? true : false);
|
|
11831
12209
|
});
|
|
11832
12210
|
} else {
|
|
11833
|
-
|
|
12211
|
+
config2.elements.map((e, elemInd) => {
|
|
11834
12212
|
buildSchema(e);
|
|
11835
12213
|
});
|
|
11836
12214
|
}
|
|
11837
12215
|
}
|
|
11838
12216
|
return schema;
|
|
11839
12217
|
};
|
|
11840
|
-
const buildUiSchema = (
|
|
12218
|
+
const buildUiSchema = (config2, store2) => {
|
|
11841
12219
|
let elements = {};
|
|
11842
|
-
const
|
|
11843
|
-
switch (
|
|
12220
|
+
const componentScope2 = `#/properties/${config2.name}`;
|
|
12221
|
+
switch (config2.type) {
|
|
11844
12222
|
case "TreeMap":
|
|
11845
|
-
elements = buildTreeMap(
|
|
12223
|
+
elements = buildTreeMap(config2, componentScope2);
|
|
11846
12224
|
break;
|
|
11847
12225
|
case "DateTime":
|
|
11848
|
-
elements = buildDateTime(
|
|
12226
|
+
elements = buildDateTime(config2, componentScope2);
|
|
11849
12227
|
break;
|
|
11850
12228
|
case "InputSlider":
|
|
11851
|
-
elements = buildInputSlider(
|
|
12229
|
+
elements = buildInputSlider(config2, componentScope2);
|
|
11852
12230
|
break;
|
|
11853
12231
|
case "DataGrid":
|
|
11854
|
-
elements = buildDataGrid(
|
|
12232
|
+
elements = buildDataGrid(config2, componentScope2);
|
|
11855
12233
|
break;
|
|
11856
12234
|
case "Stepper":
|
|
11857
|
-
elements = buildStepper(
|
|
12235
|
+
elements = buildStepper(config2, componentScope2);
|
|
11858
12236
|
break;
|
|
11859
12237
|
case "PopUp":
|
|
11860
|
-
elements = buildPopUp(
|
|
12238
|
+
elements = buildPopUp(config2, componentScope2);
|
|
11861
12239
|
break;
|
|
11862
12240
|
case "FileInput":
|
|
11863
|
-
elements = buildFileInput(
|
|
12241
|
+
elements = buildFileInput(config2, componentScope2);
|
|
11864
12242
|
break;
|
|
11865
12243
|
case "AadharcardText":
|
|
11866
|
-
elements = buildAdhaarField(
|
|
12244
|
+
elements = buildAdhaarField(config2, componentScope2);
|
|
11867
12245
|
break;
|
|
11868
12246
|
case "PanCardText":
|
|
11869
|
-
elements = buildPanField(
|
|
12247
|
+
elements = buildPanField(config2, componentScope2);
|
|
11870
12248
|
break;
|
|
11871
12249
|
case "TabSection":
|
|
11872
|
-
elements = buildTabSection(
|
|
12250
|
+
elements = buildTabSection(config2, componentScope2);
|
|
11873
12251
|
break;
|
|
11874
12252
|
case "RunnerBoyProgressBar":
|
|
11875
|
-
elements = RunnerBoyProgressbar(
|
|
12253
|
+
elements = RunnerBoyProgressbar(config2, componentScope2);
|
|
11876
12254
|
break;
|
|
11877
12255
|
case "WrapperSection":
|
|
11878
|
-
elements = buildWrapperSection(
|
|
12256
|
+
elements = buildWrapperSection(config2, componentScope2);
|
|
11879
12257
|
break;
|
|
11880
12258
|
case "Text":
|
|
11881
|
-
elements = buildTextField(
|
|
12259
|
+
elements = buildTextField(config2, componentScope2);
|
|
11882
12260
|
break;
|
|
11883
12261
|
case "TextArea":
|
|
11884
|
-
elements = buildTextArea(
|
|
12262
|
+
elements = buildTextArea(config2, componentScope2);
|
|
11885
12263
|
break;
|
|
11886
12264
|
case "Date":
|
|
11887
|
-
elements = buildDate(
|
|
12265
|
+
elements = buildDate(config2, componentScope2);
|
|
11888
12266
|
break;
|
|
11889
12267
|
case "Select":
|
|
11890
|
-
elements = buildSelect(
|
|
12268
|
+
elements = buildSelect(config2, componentScope2);
|
|
11891
12269
|
break;
|
|
11892
12270
|
case "Radio":
|
|
11893
|
-
elements = buildRadio(
|
|
12271
|
+
elements = buildRadio(config2, componentScope2);
|
|
11894
12272
|
break;
|
|
11895
12273
|
case "Button":
|
|
11896
|
-
elements = buildButton(
|
|
12274
|
+
elements = buildButton(config2, componentScope2);
|
|
11897
12275
|
break;
|
|
11898
12276
|
case "Table":
|
|
11899
|
-
elements = buildTable(
|
|
12277
|
+
elements = buildTable(config2, componentScope2);
|
|
11900
12278
|
break;
|
|
11901
12279
|
case "Array":
|
|
11902
|
-
elements = buildArray(
|
|
12280
|
+
elements = buildArray(config2, componentScope2);
|
|
11903
12281
|
break;
|
|
11904
12282
|
case "Box":
|
|
11905
|
-
elements = buildLabel(
|
|
12283
|
+
elements = buildLabel(config2, componentScope2);
|
|
11906
12284
|
break;
|
|
11907
12285
|
case "CheckBox":
|
|
11908
|
-
elements = buildCheckbox(
|
|
12286
|
+
elements = buildCheckbox(config2, componentScope2);
|
|
11909
12287
|
break;
|
|
11910
12288
|
case "UploadFile":
|
|
11911
|
-
elements = buildUploadFile(
|
|
12289
|
+
elements = buildUploadFile(config2, componentScope2);
|
|
11912
12290
|
break;
|
|
11913
12291
|
case "DownloadFile":
|
|
11914
|
-
elements = buildDownloadFile(
|
|
12292
|
+
elements = buildDownloadFile(config2, componentScope2);
|
|
11915
12293
|
break;
|
|
11916
12294
|
case "EmptyBox":
|
|
11917
|
-
elements = buildEmptyBox(
|
|
12295
|
+
elements = buildEmptyBox(config2);
|
|
11918
12296
|
break;
|
|
11919
12297
|
case "card":
|
|
11920
|
-
elements = buildCard(
|
|
12298
|
+
elements = buildCard(config2, componentScope2, store2);
|
|
11921
12299
|
break;
|
|
11922
12300
|
case "Graph":
|
|
11923
|
-
switch (
|
|
12301
|
+
switch (config2.graphType) {
|
|
11924
12302
|
case "BarGraph":
|
|
11925
12303
|
case "StackBarGraph":
|
|
11926
|
-
elements = buildStackbarGraph(
|
|
12304
|
+
elements = buildStackbarGraph(config2, componentScope2);
|
|
11927
12305
|
break;
|
|
11928
12306
|
case "LineGraph":
|
|
11929
|
-
elements = buildLineGraph(
|
|
12307
|
+
elements = buildLineGraph(config2, componentScope2);
|
|
11930
12308
|
break;
|
|
11931
12309
|
case "PieGraph":
|
|
11932
|
-
elements = buildPieGraph(
|
|
12310
|
+
elements = buildPieGraph(config2, componentScope2);
|
|
11933
12311
|
break;
|
|
11934
12312
|
case "HorizontalBarGraph":
|
|
11935
12313
|
case "HorizontalStackBarGraph":
|
|
11936
|
-
elements = buildHorizontalBarGraph(
|
|
12314
|
+
elements = buildHorizontalBarGraph(config2, componentScope2);
|
|
12315
|
+
break;
|
|
12316
|
+
default:
|
|
12317
|
+
elements = buildStackbarGraph(config2, componentScope2);
|
|
11937
12318
|
break;
|
|
11938
12319
|
}
|
|
11939
12320
|
break;
|
|
11940
12321
|
case "ProgressBar":
|
|
11941
|
-
elements = buildProgressBar(
|
|
12322
|
+
elements = buildProgressBar(config2, componentScope2);
|
|
11942
12323
|
break;
|
|
11943
12324
|
case "SpeedoMeter":
|
|
11944
|
-
elements = buildSpeedoMeter(
|
|
12325
|
+
elements = buildSpeedoMeter(config2, componentScope2);
|
|
11945
12326
|
break;
|
|
11946
12327
|
case "ProgressBarCard":
|
|
11947
|
-
elements = buildProgressBarCard(
|
|
12328
|
+
elements = buildProgressBarCard(config2, componentScope2);
|
|
11948
12329
|
break;
|
|
11949
12330
|
case "RankCard":
|
|
11950
|
-
elements = buildRankCard(
|
|
12331
|
+
elements = buildRankCard(config2, componentScope2);
|
|
11951
12332
|
break;
|
|
11952
12333
|
case "Rank":
|
|
11953
|
-
elements = buildRollAndDice(
|
|
12334
|
+
elements = buildRollAndDice(config2, componentScope2);
|
|
11954
12335
|
break;
|
|
11955
12336
|
case "Slider":
|
|
11956
|
-
elements = buildSlider(
|
|
12337
|
+
elements = buildSlider(config2, componentScope2);
|
|
11957
12338
|
break;
|
|
11958
12339
|
case "Timer":
|
|
11959
|
-
elements = buildTimer(
|
|
12340
|
+
elements = buildTimer(config2, componentScope2);
|
|
11960
12341
|
break;
|
|
11961
12342
|
case "ColumnGroup":
|
|
11962
12343
|
elements = {
|
|
11963
|
-
accessorKey:
|
|
11964
|
-
header:
|
|
12344
|
+
accessorKey: config2.name,
|
|
12345
|
+
header: config2.label || config2.name,
|
|
11965
12346
|
elements: []
|
|
11966
12347
|
};
|
|
11967
12348
|
break;
|
|
11968
12349
|
case "MultipleSelect":
|
|
11969
|
-
elements = buildMultiSelect(
|
|
12350
|
+
elements = buildMultiSelect(config2, componentScope2);
|
|
11970
12351
|
break;
|
|
11971
12352
|
case "LeaderBoard":
|
|
11972
|
-
elements = buildLeaderBoard(
|
|
12353
|
+
elements = buildLeaderBoard(config2);
|
|
12354
|
+
break;
|
|
12355
|
+
case "Thought":
|
|
12356
|
+
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12357
|
+
break;
|
|
12358
|
+
case "PdfViewer":
|
|
12359
|
+
elements = buildPdfViewer(config2);
|
|
11973
12360
|
break;
|
|
11974
12361
|
default:
|
|
11975
12362
|
schema = {
|
|
@@ -11977,19 +12364,19 @@ const buildUiSchema = (config, store2) => {
|
|
|
11977
12364
|
properties: {},
|
|
11978
12365
|
required: []
|
|
11979
12366
|
};
|
|
11980
|
-
elements = buildBasicUiSchema(
|
|
12367
|
+
elements = buildBasicUiSchema(config2);
|
|
11981
12368
|
}
|
|
11982
|
-
if (
|
|
11983
|
-
if ((
|
|
12369
|
+
if (config2 == null ? void 0 : config2.elements) {
|
|
12370
|
+
if ((config2 == null ? void 0 : config2.type) === "LeaderBoard") {
|
|
11984
12371
|
return elements;
|
|
11985
|
-
} else if (
|
|
12372
|
+
} else if (config2.type == "ColumnGroup") {
|
|
11986
12373
|
const sizeMap = {};
|
|
11987
|
-
if (
|
|
11988
|
-
|
|
12374
|
+
if (config2.sizeHolder) {
|
|
12375
|
+
config2.sizeHolder.map((e, i) => {
|
|
11989
12376
|
sizeMap[e.keyName] = e.value;
|
|
11990
12377
|
});
|
|
11991
12378
|
}
|
|
11992
|
-
elements.elements =
|
|
12379
|
+
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
11993
12380
|
return {
|
|
11994
12381
|
accessorKey: cellElem.name,
|
|
11995
12382
|
header: cellElem.label || cellElem.name,
|
|
@@ -11998,20 +12385,20 @@ const buildUiSchema = (config, store2) => {
|
|
|
11998
12385
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
|
|
11999
12386
|
};
|
|
12000
12387
|
});
|
|
12001
|
-
} else if (
|
|
12388
|
+
} else if (config2.type == "Table") {
|
|
12002
12389
|
const sizeMap = {};
|
|
12003
12390
|
const filterMap = {};
|
|
12004
|
-
if (
|
|
12005
|
-
|
|
12391
|
+
if (config2.sizeHolder) {
|
|
12392
|
+
config2.sizeHolder.map((e, i) => {
|
|
12006
12393
|
sizeMap[e.keyName] = e.value;
|
|
12007
12394
|
});
|
|
12008
12395
|
}
|
|
12009
|
-
if (
|
|
12010
|
-
|
|
12396
|
+
if (config2.enableColumnFilter) {
|
|
12397
|
+
config2.enableColumnFilter.map((e) => {
|
|
12011
12398
|
filterMap[e.keyName] = true;
|
|
12012
12399
|
});
|
|
12013
12400
|
}
|
|
12014
|
-
elements.elements =
|
|
12401
|
+
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12015
12402
|
var _a, _b;
|
|
12016
12403
|
if (cellElem.type) {
|
|
12017
12404
|
return {
|
|
@@ -12022,7 +12409,7 @@ const buildUiSchema = (config, store2) => {
|
|
|
12022
12409
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12023
12410
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12024
12411
|
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_a = filterMap[cellElem.name]) != null ? _a : false,
|
|
12025
|
-
columnFilterModeOptions:
|
|
12412
|
+
columnFilterModeOptions: config2.filteringOptions
|
|
12026
12413
|
};
|
|
12027
12414
|
} else {
|
|
12028
12415
|
return {
|
|
@@ -12031,16 +12418,16 @@ const buildUiSchema = (config, store2) => {
|
|
|
12031
12418
|
header: cellElem.label || cellElem.name,
|
|
12032
12419
|
size: sizeMap[cellElem.name] || 180,
|
|
12033
12420
|
enableColumnFilter: Object.keys(filterMap).length === 0 ? true : (_b = filterMap[cellElem.name]) != null ? _b : false,
|
|
12034
|
-
columnFilterModeOptions:
|
|
12421
|
+
columnFilterModeOptions: config2.filteringOptions
|
|
12035
12422
|
};
|
|
12036
12423
|
}
|
|
12037
12424
|
});
|
|
12038
|
-
} else if (
|
|
12039
|
-
elements.options.detail.elements =
|
|
12425
|
+
} else if (config2.type == "Array") {
|
|
12426
|
+
elements.options.detail.elements = config2.elements.map((e, elemInd) => {
|
|
12040
12427
|
return buildUiSchema(e, store2);
|
|
12041
12428
|
});
|
|
12042
12429
|
} else {
|
|
12043
|
-
elements.elements =
|
|
12430
|
+
elements.elements = config2.elements.map((e, elemInd) => {
|
|
12044
12431
|
return buildUiSchema(e, store2);
|
|
12045
12432
|
});
|
|
12046
12433
|
}
|