impaktapps-ui-builder 0.0.408 → 0.0.410
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 +601 -216
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +0 -19
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +0 -6
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -5
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -7
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -3
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +8 -11
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +1 -11
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +6 -8
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +23 -22
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +2 -9
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +5 -14
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +0 -20
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +4 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -10
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +212 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -8
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +274 -67
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +104 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +22 -5
- package/src/impaktapps-ui-builder/builder/services/event.ts +11 -10
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +22 -13
- package/src/impaktapps-ui-builder/builder/services/utils.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +5 -12
- package/src/impaktapps-ui-builder/runtime/services/interface.ts +1 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +13 -22
- package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +0 -46
|
@@ -22,13 +22,6 @@ const PageMasterSchema = {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
template: {
|
|
26
|
-
oneOf: [
|
|
27
|
-
{ const: "Template-1", title: "template1" },
|
|
28
|
-
{ const: "Template-2", title: "template2" },
|
|
29
|
-
{ const: "Template-3", title: "template3" }
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
25
|
sectionLabels: {
|
|
33
26
|
type: "array",
|
|
34
27
|
items: {
|
|
@@ -41,7 +34,7 @@ const PageMasterSchema = {
|
|
|
41
34
|
}
|
|
42
35
|
}
|
|
43
36
|
},
|
|
44
|
-
required: ["
|
|
37
|
+
required: ["label", "name"]
|
|
45
38
|
};
|
|
46
39
|
const PageMasterUiSchema = {
|
|
47
40
|
type: "HorizontalLayout",
|
|
@@ -121,19 +114,15 @@ const PageMasterUiSchema = {
|
|
|
121
114
|
},
|
|
122
115
|
{
|
|
123
116
|
type: "Control",
|
|
124
|
-
scope: "#/properties/
|
|
117
|
+
scope: "#/properties/label",
|
|
125
118
|
options: {
|
|
126
|
-
widget: "
|
|
119
|
+
widget: "InputField"
|
|
127
120
|
},
|
|
128
121
|
config: {
|
|
129
122
|
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
130
123
|
main: {
|
|
131
|
-
label: "
|
|
132
|
-
options: [
|
|
133
|
-
{ const: "template1", title: "template1" },
|
|
134
|
-
{ const: "template2", title: "template2" },
|
|
135
|
-
{ const: "template3", title: "template3" }
|
|
136
|
-
],
|
|
124
|
+
label: "Label",
|
|
125
|
+
options: [],
|
|
137
126
|
color: "secondary",
|
|
138
127
|
required: true
|
|
139
128
|
}
|
|
@@ -257,7 +246,7 @@ const PageMasterUiSchema = {
|
|
|
257
246
|
main: {
|
|
258
247
|
icon: "RejectIcon",
|
|
259
248
|
color: "error",
|
|
260
|
-
onClick: "
|
|
249
|
+
onClick: "deletePopUpComponent",
|
|
261
250
|
tooltipMessage: "Reject This Record"
|
|
262
251
|
}
|
|
263
252
|
}
|
|
@@ -376,7 +365,7 @@ const PageMasterUiSchema = {
|
|
|
376
365
|
icon: "RejectIcon",
|
|
377
366
|
color: "error",
|
|
378
367
|
tooltipMessage: "Reject This Record",
|
|
379
|
-
onClick: "
|
|
368
|
+
onClick: "deletePopUpEvent"
|
|
380
369
|
}
|
|
381
370
|
}
|
|
382
371
|
}
|
|
@@ -387,6 +376,208 @@ const PageMasterUiSchema = {
|
|
|
387
376
|
}
|
|
388
377
|
]
|
|
389
378
|
},
|
|
379
|
+
{
|
|
380
|
+
type: "Control",
|
|
381
|
+
scope: "#/properties/popUpPageMasterEvent",
|
|
382
|
+
options: {
|
|
383
|
+
widget: "PopUp"
|
|
384
|
+
},
|
|
385
|
+
config: {
|
|
386
|
+
layout: {
|
|
387
|
+
xs: 12,
|
|
388
|
+
sm: 12,
|
|
389
|
+
md: 12,
|
|
390
|
+
lg: 12
|
|
391
|
+
},
|
|
392
|
+
main: {
|
|
393
|
+
title: "Delete Content"
|
|
394
|
+
},
|
|
395
|
+
style: {
|
|
396
|
+
width: "32%",
|
|
397
|
+
margin: "auto"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
elements: [
|
|
401
|
+
{
|
|
402
|
+
type: "Control",
|
|
403
|
+
scope: "#/properties/label",
|
|
404
|
+
options: {
|
|
405
|
+
widget: "Box"
|
|
406
|
+
},
|
|
407
|
+
config: {
|
|
408
|
+
layout: 12,
|
|
409
|
+
main: {
|
|
410
|
+
heading: "Are you sure you want to delete ?"
|
|
411
|
+
},
|
|
412
|
+
style: {
|
|
413
|
+
marginTop: "-25px",
|
|
414
|
+
marginLeft: "11px"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
type: "Control",
|
|
420
|
+
scope: "#/properties/EmptyBox",
|
|
421
|
+
options: {
|
|
422
|
+
widget: "EmptyBox"
|
|
423
|
+
},
|
|
424
|
+
config: {
|
|
425
|
+
main: {},
|
|
426
|
+
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
type: "Control",
|
|
431
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
432
|
+
options: {
|
|
433
|
+
widget: "Button"
|
|
434
|
+
},
|
|
435
|
+
config: {
|
|
436
|
+
layout: 3,
|
|
437
|
+
main: {
|
|
438
|
+
name: "Yes",
|
|
439
|
+
endIcon: "DeleteIcon",
|
|
440
|
+
variant: "contained",
|
|
441
|
+
color: "info",
|
|
442
|
+
type: "text",
|
|
443
|
+
onClick: "deleteEvent",
|
|
444
|
+
size: "small"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
type: "Control",
|
|
450
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
451
|
+
options: {
|
|
452
|
+
widget: "Button"
|
|
453
|
+
},
|
|
454
|
+
config: {
|
|
455
|
+
layout: 3,
|
|
456
|
+
main: {
|
|
457
|
+
name: "No",
|
|
458
|
+
endIcon: "CloseIcon",
|
|
459
|
+
variant: "contained",
|
|
460
|
+
color: "info",
|
|
461
|
+
type: "text",
|
|
462
|
+
onClick: "deletePopUpEvent",
|
|
463
|
+
size: "small"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
type: "Control",
|
|
469
|
+
scope: "#/properties/EmptyBox",
|
|
470
|
+
options: {
|
|
471
|
+
widget: "EmptyBox"
|
|
472
|
+
},
|
|
473
|
+
config: {
|
|
474
|
+
main: {},
|
|
475
|
+
layout: 0.5
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
type: "Control",
|
|
482
|
+
scope: "#/properties/popUpPageMasterComponent",
|
|
483
|
+
options: {
|
|
484
|
+
widget: "PopUp"
|
|
485
|
+
},
|
|
486
|
+
config: {
|
|
487
|
+
layout: {
|
|
488
|
+
xs: 12,
|
|
489
|
+
sm: 12,
|
|
490
|
+
md: 12,
|
|
491
|
+
lg: 12
|
|
492
|
+
},
|
|
493
|
+
main: {
|
|
494
|
+
title: "Delete Content"
|
|
495
|
+
},
|
|
496
|
+
style: {
|
|
497
|
+
width: "32%",
|
|
498
|
+
margin: "auto"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
elements: [
|
|
502
|
+
{
|
|
503
|
+
type: "Control",
|
|
504
|
+
scope: "#/properties/label",
|
|
505
|
+
options: {
|
|
506
|
+
widget: "Box"
|
|
507
|
+
},
|
|
508
|
+
config: {
|
|
509
|
+
layout: 12,
|
|
510
|
+
main: {
|
|
511
|
+
heading: "Are you sure you want to delete ?"
|
|
512
|
+
},
|
|
513
|
+
style: {
|
|
514
|
+
marginTop: "-25px",
|
|
515
|
+
marginLeft: "11px"
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
type: "Control",
|
|
521
|
+
scope: "#/properties/EmptyBox",
|
|
522
|
+
options: {
|
|
523
|
+
widget: "EmptyBox"
|
|
524
|
+
},
|
|
525
|
+
config: {
|
|
526
|
+
main: {},
|
|
527
|
+
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
type: "Control",
|
|
532
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
533
|
+
options: {
|
|
534
|
+
widget: "Button"
|
|
535
|
+
},
|
|
536
|
+
config: {
|
|
537
|
+
layout: 3,
|
|
538
|
+
main: {
|
|
539
|
+
name: "Yes",
|
|
540
|
+
endIcon: "DeleteIcon",
|
|
541
|
+
variant: "contained",
|
|
542
|
+
color: "info",
|
|
543
|
+
type: "text",
|
|
544
|
+
onClick: "Delete_Components",
|
|
545
|
+
size: "small"
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
type: "Control",
|
|
551
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
552
|
+
options: {
|
|
553
|
+
widget: "Button"
|
|
554
|
+
},
|
|
555
|
+
config: {
|
|
556
|
+
layout: 3,
|
|
557
|
+
main: {
|
|
558
|
+
name: "No",
|
|
559
|
+
endIcon: "CloseIcon",
|
|
560
|
+
variant: "contained",
|
|
561
|
+
color: "info",
|
|
562
|
+
type: "text",
|
|
563
|
+
onClick: "deletePopUpComponent",
|
|
564
|
+
size: "small"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
type: "Control",
|
|
570
|
+
scope: "#/properties/EmptyBox",
|
|
571
|
+
options: {
|
|
572
|
+
widget: "EmptyBox"
|
|
573
|
+
},
|
|
574
|
+
config: {
|
|
575
|
+
main: {},
|
|
576
|
+
layout: 0.5
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
},
|
|
390
581
|
{
|
|
391
582
|
type: "Control",
|
|
392
583
|
scope: "#/properties/btn",
|
|
@@ -5884,12 +6075,10 @@ const ComponentSchema = {
|
|
|
5884
6075
|
{ title: "Container", const: "WrapperSection" },
|
|
5885
6076
|
{ title: "DataGrid", const: "DataGrid" },
|
|
5886
6077
|
{ title: "Date", const: "Date" },
|
|
5887
|
-
{ title: "DateTime", const: "DateTime" },
|
|
5888
6078
|
{ title: "Download File", const: "DownloadFile" },
|
|
5889
6079
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
5890
6080
|
{ title: "File", const: "FileInput" },
|
|
5891
6081
|
{ title: "Graph", const: "Graph" },
|
|
5892
|
-
{ title: "Input Slider", const: "InputSlider" },
|
|
5893
6082
|
{ title: "Label", const: "Box" },
|
|
5894
6083
|
{ title: "LeaderBoard", const: "LeaderBoard" },
|
|
5895
6084
|
{ title: "MultipleSelect", const: "MultipleSelect" },
|
|
@@ -5910,13 +6099,7 @@ const ComponentSchema = {
|
|
|
5910
6099
|
{ title: "Text", const: "Text" },
|
|
5911
6100
|
{ title: "Text Area", const: "TextArea" },
|
|
5912
6101
|
{ title: "Timer", const: "Timer" },
|
|
5913
|
-
{ title: "Upload File", const: "UploadFile" }
|
|
5914
|
-
{ title: "Text Area", const: "TextArea" },
|
|
5915
|
-
{ title: "Timer", const: "Timer" },
|
|
5916
|
-
{ title: "Upload File", const: "UploadFile" },
|
|
5917
|
-
{ title: "Date Column", const: "date" },
|
|
5918
|
-
{ title: "DateTime Column", const: "dateTime" },
|
|
5919
|
-
{ title: "Amount Column", const: "amount" }
|
|
6102
|
+
{ title: "Upload File", const: "UploadFile" }
|
|
5920
6103
|
]
|
|
5921
6104
|
},
|
|
5922
6105
|
orientation: {
|
|
@@ -6375,6 +6558,208 @@ const componentBasicUiSchema = {
|
|
|
6375
6558
|
}
|
|
6376
6559
|
]
|
|
6377
6560
|
},
|
|
6561
|
+
{
|
|
6562
|
+
type: "Control",
|
|
6563
|
+
scope: "#/properties/popUpComponentSection",
|
|
6564
|
+
options: {
|
|
6565
|
+
widget: "PopUp"
|
|
6566
|
+
},
|
|
6567
|
+
config: {
|
|
6568
|
+
layout: {
|
|
6569
|
+
xs: 12,
|
|
6570
|
+
sm: 12,
|
|
6571
|
+
md: 12,
|
|
6572
|
+
lg: 12
|
|
6573
|
+
},
|
|
6574
|
+
main: {
|
|
6575
|
+
title: "Delete Content"
|
|
6576
|
+
},
|
|
6577
|
+
style: {
|
|
6578
|
+
width: "32%",
|
|
6579
|
+
margin: "auto"
|
|
6580
|
+
}
|
|
6581
|
+
},
|
|
6582
|
+
elements: [
|
|
6583
|
+
{
|
|
6584
|
+
type: "Control",
|
|
6585
|
+
scope: "#/properties/label",
|
|
6586
|
+
options: {
|
|
6587
|
+
widget: "Box"
|
|
6588
|
+
},
|
|
6589
|
+
config: {
|
|
6590
|
+
layout: 12,
|
|
6591
|
+
main: {
|
|
6592
|
+
heading: "Are you sure you want to delete ?"
|
|
6593
|
+
},
|
|
6594
|
+
style: {
|
|
6595
|
+
marginTop: "-25px",
|
|
6596
|
+
marginLeft: "11px"
|
|
6597
|
+
}
|
|
6598
|
+
}
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
type: "Control",
|
|
6602
|
+
scope: "#/properties/EmptyBox",
|
|
6603
|
+
options: {
|
|
6604
|
+
widget: "EmptyBox"
|
|
6605
|
+
},
|
|
6606
|
+
config: {
|
|
6607
|
+
main: {},
|
|
6608
|
+
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
6609
|
+
}
|
|
6610
|
+
},
|
|
6611
|
+
{
|
|
6612
|
+
type: "Control",
|
|
6613
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
6614
|
+
options: {
|
|
6615
|
+
widget: "Button"
|
|
6616
|
+
},
|
|
6617
|
+
config: {
|
|
6618
|
+
layout: 3,
|
|
6619
|
+
main: {
|
|
6620
|
+
name: "Yes",
|
|
6621
|
+
endIcon: "DeleteIcon",
|
|
6622
|
+
variant: "contained",
|
|
6623
|
+
color: "info",
|
|
6624
|
+
type: "text",
|
|
6625
|
+
onClick: "deleteComponents",
|
|
6626
|
+
size: "small"
|
|
6627
|
+
}
|
|
6628
|
+
}
|
|
6629
|
+
},
|
|
6630
|
+
{
|
|
6631
|
+
type: "Control",
|
|
6632
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
6633
|
+
options: {
|
|
6634
|
+
widget: "Button"
|
|
6635
|
+
},
|
|
6636
|
+
config: {
|
|
6637
|
+
layout: 3,
|
|
6638
|
+
main: {
|
|
6639
|
+
name: "No",
|
|
6640
|
+
endIcon: "CloseIcon",
|
|
6641
|
+
variant: "contained",
|
|
6642
|
+
color: "info",
|
|
6643
|
+
type: "text",
|
|
6644
|
+
onClick: "deletePopUpComponent",
|
|
6645
|
+
size: "small"
|
|
6646
|
+
}
|
|
6647
|
+
}
|
|
6648
|
+
},
|
|
6649
|
+
{
|
|
6650
|
+
type: "Control",
|
|
6651
|
+
scope: "#/properties/EmptyBox",
|
|
6652
|
+
options: {
|
|
6653
|
+
widget: "EmptyBox"
|
|
6654
|
+
},
|
|
6655
|
+
config: {
|
|
6656
|
+
main: {},
|
|
6657
|
+
layout: 0.5
|
|
6658
|
+
}
|
|
6659
|
+
}
|
|
6660
|
+
]
|
|
6661
|
+
},
|
|
6662
|
+
{
|
|
6663
|
+
type: "Control",
|
|
6664
|
+
scope: "#/properties/popUpEventSection",
|
|
6665
|
+
options: {
|
|
6666
|
+
widget: "PopUp"
|
|
6667
|
+
},
|
|
6668
|
+
config: {
|
|
6669
|
+
layout: {
|
|
6670
|
+
xs: 12,
|
|
6671
|
+
sm: 12,
|
|
6672
|
+
md: 12,
|
|
6673
|
+
lg: 12
|
|
6674
|
+
},
|
|
6675
|
+
style: {
|
|
6676
|
+
width: "32%",
|
|
6677
|
+
margin: "auto"
|
|
6678
|
+
},
|
|
6679
|
+
main: {
|
|
6680
|
+
title: "Delete Content"
|
|
6681
|
+
}
|
|
6682
|
+
},
|
|
6683
|
+
elements: [
|
|
6684
|
+
{
|
|
6685
|
+
type: "Control",
|
|
6686
|
+
scope: "#/properties/label",
|
|
6687
|
+
options: {
|
|
6688
|
+
widget: "Box"
|
|
6689
|
+
},
|
|
6690
|
+
config: {
|
|
6691
|
+
layout: 12,
|
|
6692
|
+
main: {
|
|
6693
|
+
heading: "Are you sure you want to delete ?"
|
|
6694
|
+
},
|
|
6695
|
+
style: {
|
|
6696
|
+
marginTop: "-25px",
|
|
6697
|
+
marginLeft: "11px"
|
|
6698
|
+
}
|
|
6699
|
+
}
|
|
6700
|
+
},
|
|
6701
|
+
{
|
|
6702
|
+
type: "Control",
|
|
6703
|
+
scope: "#/properties/EmptyBox",
|
|
6704
|
+
options: {
|
|
6705
|
+
widget: "EmptyBox"
|
|
6706
|
+
},
|
|
6707
|
+
config: {
|
|
6708
|
+
main: {},
|
|
6709
|
+
layout: { xs: 11, sm: 4.5, md: 4.5, lg: 4.5 }
|
|
6710
|
+
}
|
|
6711
|
+
},
|
|
6712
|
+
{
|
|
6713
|
+
type: "Control",
|
|
6714
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
6715
|
+
options: {
|
|
6716
|
+
widget: "Button"
|
|
6717
|
+
},
|
|
6718
|
+
config: {
|
|
6719
|
+
layout: 3,
|
|
6720
|
+
main: {
|
|
6721
|
+
name: "Yes",
|
|
6722
|
+
endIcon: "DeleteIcon",
|
|
6723
|
+
variant: "contained",
|
|
6724
|
+
color: "info",
|
|
6725
|
+
type: "text",
|
|
6726
|
+
onClick: "deleteEvent",
|
|
6727
|
+
size: "small"
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
},
|
|
6731
|
+
{
|
|
6732
|
+
type: "Control",
|
|
6733
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
6734
|
+
options: {
|
|
6735
|
+
widget: "Button"
|
|
6736
|
+
},
|
|
6737
|
+
config: {
|
|
6738
|
+
layout: 3,
|
|
6739
|
+
main: {
|
|
6740
|
+
name: "No",
|
|
6741
|
+
endIcon: "CloseIcon",
|
|
6742
|
+
variant: "contained",
|
|
6743
|
+
color: "info",
|
|
6744
|
+
type: "text",
|
|
6745
|
+
onClick: "deletePopUpEvent",
|
|
6746
|
+
size: "small"
|
|
6747
|
+
}
|
|
6748
|
+
}
|
|
6749
|
+
},
|
|
6750
|
+
{
|
|
6751
|
+
type: "Control",
|
|
6752
|
+
scope: "#/properties/EmptyBox",
|
|
6753
|
+
options: {
|
|
6754
|
+
widget: "EmptyBox"
|
|
6755
|
+
},
|
|
6756
|
+
config: {
|
|
6757
|
+
main: {},
|
|
6758
|
+
layout: 0.5
|
|
6759
|
+
}
|
|
6760
|
+
}
|
|
6761
|
+
]
|
|
6762
|
+
},
|
|
6378
6763
|
{
|
|
6379
6764
|
type: "Control",
|
|
6380
6765
|
scope: "#/properties/proc",
|
|
@@ -6681,7 +7066,7 @@ const EventSection = {
|
|
|
6681
7066
|
icon: "RejectIcon",
|
|
6682
7067
|
color: "error",
|
|
6683
7068
|
tooltipMessage: "Reject This Record",
|
|
6684
|
-
onClick: "
|
|
7069
|
+
onClick: "deletePopUpEvent"
|
|
6685
7070
|
}
|
|
6686
7071
|
}
|
|
6687
7072
|
}
|
|
@@ -6903,14 +7288,6 @@ const GraphSection = {
|
|
|
6903
7288
|
const buildPropertiesSection = function(type) {
|
|
6904
7289
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
6905
7290
|
switch (type) {
|
|
6906
|
-
case "InputSlider":
|
|
6907
|
-
uiSchema.elements = [
|
|
6908
|
-
getInputField("max", "Max Limit"),
|
|
6909
|
-
getInputField("step", "Step"),
|
|
6910
|
-
getInputField("min", "Min Limit"),
|
|
6911
|
-
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"])
|
|
6912
|
-
];
|
|
6913
|
-
break;
|
|
6914
7291
|
case "DataGrid":
|
|
6915
7292
|
uiSchema.elements = [
|
|
6916
7293
|
getRadioInputField("divider", "Use Header divider", ["YES", "NO"]),
|
|
@@ -7018,23 +7395,15 @@ const buildPropertiesSection = function(type) {
|
|
|
7018
7395
|
getInputField("leftLabel", "Left Label"),
|
|
7019
7396
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7020
7397
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7021
|
-
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7022
|
-
getInputField("xAxisValue", "X-AxisValue"),
|
|
7023
7398
|
getArrayControl("legendLabels", "label"),
|
|
7024
7399
|
getArrayControl("pieArcColors", "color")
|
|
7025
7400
|
];
|
|
7026
7401
|
break;
|
|
7027
7402
|
case "WrapperSection":
|
|
7028
|
-
uiSchema.elements = [
|
|
7029
|
-
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
7030
|
-
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
7031
|
-
EmptyBox
|
|
7032
|
-
];
|
|
7403
|
+
uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
|
|
7033
7404
|
break;
|
|
7034
7405
|
case "TabSection":
|
|
7035
7406
|
uiSchema.elements = [
|
|
7036
|
-
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
7037
|
-
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
7038
7407
|
getArrayControl("sectionLabels", "label")
|
|
7039
7408
|
];
|
|
7040
7409
|
break;
|
|
@@ -7213,7 +7582,7 @@ const TableSection = {
|
|
|
7213
7582
|
main: {
|
|
7214
7583
|
icon: "RejectIcon",
|
|
7215
7584
|
color: "error",
|
|
7216
|
-
onClick: "
|
|
7585
|
+
onClick: "deletePopUpComponent",
|
|
7217
7586
|
tooltipMessage: "Reject This Record"
|
|
7218
7587
|
}
|
|
7219
7588
|
}
|
|
@@ -7370,9 +7739,6 @@ const createLayoutFormat = (config) => {
|
|
|
7370
7739
|
return data2;
|
|
7371
7740
|
};
|
|
7372
7741
|
const flatObjectValueInArray = (config) => {
|
|
7373
|
-
if (config[0].length < 1) {
|
|
7374
|
-
return;
|
|
7375
|
-
}
|
|
7376
7742
|
const keyName = Object.keys(config[0])[0];
|
|
7377
7743
|
const data2 = config.map((e) => {
|
|
7378
7744
|
return e[keyName];
|
|
@@ -7431,14 +7797,14 @@ const getFormdataFromLocalStorage = (path) => {
|
|
|
7431
7797
|
};
|
|
7432
7798
|
async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
7433
7799
|
var _a, _b;
|
|
7434
|
-
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7800
|
+
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7435
7801
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7436
7802
|
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7437
7803
|
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
7438
7804
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7439
7805
|
try {
|
|
7440
7806
|
const saveReturn = await submitHandler(store2, service2, config);
|
|
7441
|
-
navigateHandler(store2, true, pageName ? `/${pageName}?id=${
|
|
7807
|
+
navigateHandler(store2, true, pageName ? `/${pageName}?id=${id}` : "/PageMasterRecords");
|
|
7442
7808
|
} catch (err) {
|
|
7443
7809
|
navigateHandler(store2, false);
|
|
7444
7810
|
}
|
|
@@ -7505,8 +7871,7 @@ const sectionLabels = {
|
|
|
7505
7871
|
TextArea: ["Core", "Properties", "style", "Event", "Validation"],
|
|
7506
7872
|
PopUp: ["Core", "Components", "Properties", "style"],
|
|
7507
7873
|
Stepper: ["Core", "Components", "Properties", "Event", "style"],
|
|
7508
|
-
DataGrid: ["Core", "Components", "Properties", "Event", "style"]
|
|
7509
|
-
InputSlider: ["Core", "Properties", "style", "Event", "Validation"]
|
|
7874
|
+
DataGrid: ["Core", "Components", "Properties", "Event", "style"]
|
|
7510
7875
|
};
|
|
7511
7876
|
const refreshPage = (type, store2) => {
|
|
7512
7877
|
var _a;
|
|
@@ -7569,22 +7934,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7569
7934
|
store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
|
|
7570
7935
|
}
|
|
7571
7936
|
},
|
|
7572
|
-
deleteComponents: function() {
|
|
7937
|
+
deleteComponents: function(shouldUpdateDialog = true) {
|
|
7573
7938
|
var _a;
|
|
7574
7939
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7575
|
-
const rowId =
|
|
7940
|
+
const rowId = localStorage.getItem("rowId");
|
|
7576
7941
|
store2.formData.elements.splice(rowId, 1);
|
|
7577
7942
|
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7578
7943
|
const data2 = path ? _.get(response2, path) : response2;
|
|
7579
7944
|
store2.setFormdata(data2);
|
|
7945
|
+
if (shouldUpdateDialog) {
|
|
7946
|
+
store2.updateDialog("popUpComponentSection");
|
|
7947
|
+
}
|
|
7948
|
+
localStorage.removeItem("rowId");
|
|
7580
7949
|
},
|
|
7581
|
-
deleteEvent: function() {
|
|
7950
|
+
deleteEvent: function(shouldUpdateDialog = true) {
|
|
7582
7951
|
var _a;
|
|
7583
7952
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7584
|
-
const rowId =
|
|
7953
|
+
const rowId = localStorage.getItem("rowId");
|
|
7585
7954
|
store2.formData.events.splice(rowId, 1);
|
|
7586
7955
|
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7587
7956
|
store2.setFormdata(_.get(response2, path));
|
|
7957
|
+
if (shouldUpdateDialog) {
|
|
7958
|
+
store2.updateDialog("popUpEventSection");
|
|
7959
|
+
}
|
|
7960
|
+
localStorage.removeItem("rowId");
|
|
7588
7961
|
},
|
|
7589
7962
|
widgetAddClickHandler: function() {
|
|
7590
7963
|
var _a;
|
|
@@ -7620,6 +7993,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7620
7993
|
},
|
|
7621
7994
|
backHandler: function() {
|
|
7622
7995
|
store2.navigate(-1);
|
|
7996
|
+
},
|
|
7997
|
+
deletePopUpComponent: function() {
|
|
7998
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
7999
|
+
localStorage.setItem("rowId", rowId);
|
|
8000
|
+
store2.updateDialog("popUpComponentSection");
|
|
8001
|
+
},
|
|
8002
|
+
deletePopUpEvent: function() {
|
|
8003
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8004
|
+
localStorage.setItem("rowId", rowId);
|
|
8005
|
+
store2.updateDialog("popUpEventSection");
|
|
7623
8006
|
}
|
|
7624
8007
|
};
|
|
7625
8008
|
};
|
|
@@ -7661,19 +8044,16 @@ var pageMaster = (funcParams) => {
|
|
|
7661
8044
|
store2.formData.elements = [];
|
|
7662
8045
|
}
|
|
7663
8046
|
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
);
|
|
7668
|
-
} else {
|
|
7669
|
-
store2.navigate(
|
|
7670
|
-
`/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}`
|
|
7671
|
-
);
|
|
7672
|
-
}
|
|
8047
|
+
store2.navigate(
|
|
8048
|
+
`/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
|
|
8049
|
+
);
|
|
7673
8050
|
},
|
|
7674
8051
|
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
7675
8052
|
Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
|
|
7676
|
-
Delete_Components:
|
|
8053
|
+
Delete_Components: async function() {
|
|
8054
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
|
|
8055
|
+
store2.updateDialog("popUpPageMasterComponent");
|
|
8056
|
+
},
|
|
7677
8057
|
eventAddHandler: function() {
|
|
7678
8058
|
var _a;
|
|
7679
8059
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
@@ -7693,10 +8073,22 @@ var pageMaster = (funcParams) => {
|
|
|
7693
8073
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7694
8074
|
},
|
|
7695
8075
|
deleteEvent: function() {
|
|
7696
|
-
const rowId =
|
|
8076
|
+
const rowId = localStorage.getItem("rowId");
|
|
7697
8077
|
store2.formData.events.splice(rowId, 1);
|
|
7698
8078
|
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7699
8079
|
store2.setFormdata(response2);
|
|
8080
|
+
store2.updateDialog("popUpPageMasterEvent");
|
|
8081
|
+
localStorage.removeItem("rowId");
|
|
8082
|
+
},
|
|
8083
|
+
deletePopUpComponent: function() {
|
|
8084
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8085
|
+
localStorage.setItem("rowId", rowId);
|
|
8086
|
+
store2.updateDialog("popUpPageMasterComponent");
|
|
8087
|
+
},
|
|
8088
|
+
deletePopUpEvent: function() {
|
|
8089
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8090
|
+
localStorage.setItem("rowId", rowId);
|
|
8091
|
+
store2.updateDialog("popUpPageMasterEvent");
|
|
7700
8092
|
}
|
|
7701
8093
|
};
|
|
7702
8094
|
};
|
|
@@ -7743,7 +8135,6 @@ const EventSchema = {
|
|
|
7743
8135
|
{ title: "Click Event", const: "onClick" },
|
|
7744
8136
|
{ title: "Load Event", const: "onLoad" },
|
|
7745
8137
|
{ title: "Change Event", const: "onChange" },
|
|
7746
|
-
{ title: "Mount Event", const: "onMount" },
|
|
7747
8138
|
{ title: "Success", const: "Success" },
|
|
7748
8139
|
{ title: "onStart", const: "onStart" },
|
|
7749
8140
|
{ title: "File Upload Event", const: "onUpload" },
|
|
@@ -7997,7 +8388,7 @@ const EventUiSchema = {
|
|
|
7997
8388
|
icon: "RejectIcon",
|
|
7998
8389
|
color: "error",
|
|
7999
8390
|
tooltipMessage: "Reject This Record",
|
|
8000
|
-
onClick: "
|
|
8391
|
+
onClick: "deletePopUpEvent"
|
|
8001
8392
|
}
|
|
8002
8393
|
}
|
|
8003
8394
|
}
|
|
@@ -8008,6 +8399,107 @@ const EventUiSchema = {
|
|
|
8008
8399
|
}
|
|
8009
8400
|
]
|
|
8010
8401
|
},
|
|
8402
|
+
{
|
|
8403
|
+
type: "Control",
|
|
8404
|
+
scope: "#/properties/popUpEvent",
|
|
8405
|
+
options: {
|
|
8406
|
+
widget: "PopUp"
|
|
8407
|
+
},
|
|
8408
|
+
config: {
|
|
8409
|
+
layout: {
|
|
8410
|
+
xs: 12,
|
|
8411
|
+
sm: 12,
|
|
8412
|
+
md: 12,
|
|
8413
|
+
lg: 12
|
|
8414
|
+
},
|
|
8415
|
+
style: {
|
|
8416
|
+
width: "32%",
|
|
8417
|
+
margin: "auto"
|
|
8418
|
+
},
|
|
8419
|
+
main: {
|
|
8420
|
+
title: "Delete Content"
|
|
8421
|
+
}
|
|
8422
|
+
},
|
|
8423
|
+
elements: [
|
|
8424
|
+
{
|
|
8425
|
+
type: "Control",
|
|
8426
|
+
scope: "#/properties/label",
|
|
8427
|
+
options: {
|
|
8428
|
+
widget: "Box"
|
|
8429
|
+
},
|
|
8430
|
+
config: {
|
|
8431
|
+
layout: 12,
|
|
8432
|
+
main: {
|
|
8433
|
+
heading: "Are you sure you want to delete ?"
|
|
8434
|
+
},
|
|
8435
|
+
style: {
|
|
8436
|
+
marginTop: "-25px",
|
|
8437
|
+
marginLeft: "11px"
|
|
8438
|
+
}
|
|
8439
|
+
}
|
|
8440
|
+
},
|
|
8441
|
+
{
|
|
8442
|
+
type: "Control",
|
|
8443
|
+
scope: "#/properties/EmptyBox",
|
|
8444
|
+
options: {
|
|
8445
|
+
widget: "EmptyBox"
|
|
8446
|
+
},
|
|
8447
|
+
config: {
|
|
8448
|
+
main: {},
|
|
8449
|
+
layout: { xs: 11, sm: 5.5, md: 4.5, lg: 4.5 }
|
|
8450
|
+
}
|
|
8451
|
+
},
|
|
8452
|
+
{
|
|
8453
|
+
type: "Control",
|
|
8454
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
8455
|
+
options: {
|
|
8456
|
+
widget: "Button"
|
|
8457
|
+
},
|
|
8458
|
+
config: {
|
|
8459
|
+
layout: 3,
|
|
8460
|
+
main: {
|
|
8461
|
+
name: "Yes",
|
|
8462
|
+
endIcon: "DeleteIcon",
|
|
8463
|
+
variant: "contained",
|
|
8464
|
+
color: "info",
|
|
8465
|
+
type: "text",
|
|
8466
|
+
onClick: "deleteEvent",
|
|
8467
|
+
size: "small"
|
|
8468
|
+
}
|
|
8469
|
+
}
|
|
8470
|
+
},
|
|
8471
|
+
{
|
|
8472
|
+
type: "Control",
|
|
8473
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
8474
|
+
options: {
|
|
8475
|
+
widget: "Button"
|
|
8476
|
+
},
|
|
8477
|
+
config: {
|
|
8478
|
+
layout: 3,
|
|
8479
|
+
main: {
|
|
8480
|
+
name: "No",
|
|
8481
|
+
endIcon: "CloseIcon",
|
|
8482
|
+
variant: "contained",
|
|
8483
|
+
color: "info",
|
|
8484
|
+
type: "text",
|
|
8485
|
+
onClick: "deletePopUpEvent",
|
|
8486
|
+
size: "small"
|
|
8487
|
+
}
|
|
8488
|
+
}
|
|
8489
|
+
},
|
|
8490
|
+
{
|
|
8491
|
+
type: "Control",
|
|
8492
|
+
scope: "#/properties/EmptyBox",
|
|
8493
|
+
options: {
|
|
8494
|
+
widget: "EmptyBox"
|
|
8495
|
+
},
|
|
8496
|
+
config: {
|
|
8497
|
+
main: {},
|
|
8498
|
+
layout: 0.5
|
|
8499
|
+
}
|
|
8500
|
+
}
|
|
8501
|
+
]
|
|
8502
|
+
},
|
|
8011
8503
|
{
|
|
8012
8504
|
type: "Control",
|
|
8013
8505
|
scope: "#/properties/proc",
|
|
@@ -8269,7 +8761,7 @@ const refreshSectionUiSchema = {
|
|
|
8269
8761
|
}
|
|
8270
8762
|
]
|
|
8271
8763
|
};
|
|
8272
|
-
var event = (store2, dynamicData2, submitHandler, service2
|
|
8764
|
+
var event = (store2, dynamicData2, submitHandler, service2) => {
|
|
8273
8765
|
return {
|
|
8274
8766
|
setPage: async function() {
|
|
8275
8767
|
const formdata = await this.getFormData();
|
|
@@ -8299,12 +8791,6 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8299
8791
|
schema2.required = ["eventType", "Handler", "refreshElements"];
|
|
8300
8792
|
}
|
|
8301
8793
|
}
|
|
8302
|
-
if (functionsName) {
|
|
8303
|
-
schema2.properties.inBuiltFunctionType.oneOf = [
|
|
8304
|
-
...schema2.properties.inBuiltFunctionType.oneOf,
|
|
8305
|
-
...functionsName
|
|
8306
|
-
];
|
|
8307
|
-
}
|
|
8308
8794
|
store22.setSchema(schema2);
|
|
8309
8795
|
store22.setUiSchema(uiSchema);
|
|
8310
8796
|
},
|
|
@@ -8345,9 +8831,17 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8345
8831
|
store2.setSearchParams(store2.searchParams);
|
|
8346
8832
|
this.setPage();
|
|
8347
8833
|
},
|
|
8348
|
-
deleteEvent:
|
|
8834
|
+
deleteEvent: async function() {
|
|
8835
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
|
|
8836
|
+
store2.updateDialog("popUpEvent");
|
|
8837
|
+
},
|
|
8349
8838
|
backHandler: function() {
|
|
8350
8839
|
store2.navigate(-1);
|
|
8840
|
+
},
|
|
8841
|
+
deletePopUpEvent: function() {
|
|
8842
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8843
|
+
localStorage.setItem("rowId", rowId);
|
|
8844
|
+
store2.updateDialog("popUpEvent");
|
|
8351
8845
|
}
|
|
8352
8846
|
};
|
|
8353
8847
|
};
|
|
@@ -8460,10 +8954,8 @@ async function executeInBuiltFunctionHandler(params) {
|
|
|
8460
8954
|
if (params.config.funcParametersCode) {
|
|
8461
8955
|
const makeFunc = eval(params.config.funcParametersCode);
|
|
8462
8956
|
parameter = makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8463
|
-
params.serviceHolder[params.config.inBuiltFunctionType](parameter, params.service);
|
|
8464
|
-
} else {
|
|
8465
|
-
params.serviceHolder[params.config.inBuiltFunctionType](params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service);
|
|
8466
8957
|
}
|
|
8958
|
+
params.serviceHolder[params.config.inBuiltFunctionType](parameter);
|
|
8467
8959
|
}
|
|
8468
8960
|
async function executeCustomHandler(params) {
|
|
8469
8961
|
const makeFunc = eval(params.config.eventCode);
|
|
@@ -8511,15 +9003,14 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8511
9003
|
} else {
|
|
8512
9004
|
if (handlerResponse) {
|
|
8513
9005
|
store2.setFormdata((pre) => {
|
|
8514
|
-
|
|
8515
|
-
return { ...pre, [componentName]: eventConfig.lazyLoading ? (_a = handlerResponse == null ? void 0 : handlerResponse.data) == null ? void 0 : _a.data : handlerResponse.data };
|
|
9006
|
+
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
|
|
8516
9007
|
});
|
|
8517
9008
|
await asyncOperation();
|
|
8518
9009
|
}
|
|
8519
9010
|
}
|
|
8520
9011
|
}
|
|
8521
9012
|
const buildBodyFormat = (body2, formData, userValue2) => {
|
|
8522
|
-
|
|
9013
|
+
const finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
|
|
8523
9014
|
body2.map((elem) => {
|
|
8524
9015
|
var _a, _b;
|
|
8525
9016
|
if (typeof (elem == null ? void 0 : elem.value) !== "string") {
|
|
@@ -8531,10 +9022,6 @@ const buildBodyFormat = (body2, formData, userValue2) => {
|
|
|
8531
9022
|
} else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
|
|
8532
9023
|
const finalpath = elem.value.substring(1);
|
|
8533
9024
|
finalBody[elem.key] = _.get(formData, finalpath);
|
|
8534
|
-
} else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
|
|
8535
|
-
finalBody = { ...finalBody, ...formData };
|
|
8536
|
-
} else if ((elem == null ? void 0 : elem.value) === "*") {
|
|
8537
|
-
finalBody[elem.key] = formData;
|
|
8538
9025
|
} else {
|
|
8539
9026
|
finalBody[elem.key] = elem.value;
|
|
8540
9027
|
}
|
|
@@ -8655,14 +9142,12 @@ var service = (funcParams) => {
|
|
|
8655
9142
|
dynamicData: funcParams.dynamicData,
|
|
8656
9143
|
userValue: funcParams.userValue,
|
|
8657
9144
|
service: funcParams.service,
|
|
8658
|
-
serviceHolder: { downloadFile: downloadFile$1, download: doDownload
|
|
8659
|
-
eventGroups
|
|
8660
|
-
functionsProvider: funcParams.functionsProvider
|
|
9145
|
+
serviceHolder: { downloadFile: downloadFile$1, download: doDownload },
|
|
9146
|
+
eventGroups
|
|
8661
9147
|
};
|
|
8662
9148
|
return {
|
|
8663
9149
|
setPage: async function() {
|
|
8664
9150
|
funcParams.store.setFormdata({});
|
|
8665
|
-
await asyncOperation();
|
|
8666
9151
|
executeEventsParameters = {
|
|
8667
9152
|
config: {},
|
|
8668
9153
|
componentName: "",
|
|
@@ -8670,21 +9155,9 @@ var service = (funcParams) => {
|
|
|
8670
9155
|
dynamicData: funcParams.dynamicData,
|
|
8671
9156
|
userValue: funcParams.userValue,
|
|
8672
9157
|
service: funcParams.service,
|
|
8673
|
-
functionsProvider: funcParams.functionsProvider,
|
|
8674
9158
|
serviceHolder: this,
|
|
8675
9159
|
eventGroups
|
|
8676
9160
|
};
|
|
8677
|
-
await executeRefreshHandler({
|
|
8678
|
-
config: {},
|
|
8679
|
-
componentName: "",
|
|
8680
|
-
store: funcParams.store,
|
|
8681
|
-
dynamicData: funcParams.dynamicData,
|
|
8682
|
-
userValue: funcParams.userValue,
|
|
8683
|
-
service: funcParams.service,
|
|
8684
|
-
serviceHolder: this,
|
|
8685
|
-
eventGroups
|
|
8686
|
-
});
|
|
8687
|
-
await asyncOperation();
|
|
8688
9161
|
funcParams.store.setSchema(
|
|
8689
9162
|
(pre) => {
|
|
8690
9163
|
return {
|
|
@@ -8695,12 +9168,22 @@ var service = (funcParams) => {
|
|
|
8695
9168
|
);
|
|
8696
9169
|
funcParams.uiSchema.elements.push(notifyUiSchema);
|
|
8697
9170
|
funcParams.store.setUiSchema(funcParams.uiSchema);
|
|
9171
|
+
await executeRefreshHandler({
|
|
9172
|
+
config: {},
|
|
9173
|
+
componentName: "",
|
|
9174
|
+
store: funcParams.store,
|
|
9175
|
+
dynamicData: funcParams.dynamicData,
|
|
9176
|
+
userValue: funcParams.userValue,
|
|
9177
|
+
service: funcParams.service,
|
|
9178
|
+
serviceHolder: this,
|
|
9179
|
+
eventGroups
|
|
9180
|
+
});
|
|
8698
9181
|
},
|
|
8699
9182
|
onClick: async function() {
|
|
9183
|
+
var _a, _b;
|
|
9184
|
+
(_a = funcParams.dynamicData) == null ? void 0 : _a.setLoading(true);
|
|
8700
9185
|
await this.callHandler("onClick");
|
|
8701
|
-
|
|
8702
|
-
onMount: async function() {
|
|
8703
|
-
await this.callHandler("onMount");
|
|
9186
|
+
(_b = funcParams.dynamicData) == null ? void 0 : _b.setLoading(false);
|
|
8704
9187
|
},
|
|
8705
9188
|
onFileDownload: async function() {
|
|
8706
9189
|
await this.callHandler("onDownload");
|
|
@@ -8708,9 +9191,6 @@ var service = (funcParams) => {
|
|
|
8708
9191
|
onFileUpload: async function() {
|
|
8709
9192
|
await this.callHandler("onUpload");
|
|
8710
9193
|
},
|
|
8711
|
-
backHandler: function() {
|
|
8712
|
-
funcParams.store.navigate(-1);
|
|
8713
|
-
},
|
|
8714
9194
|
onPaginationChange: async function(paginationValues) {
|
|
8715
9195
|
var _a;
|
|
8716
9196
|
const apiBody = [
|
|
@@ -8733,11 +9213,13 @@ var service = (funcParams) => {
|
|
|
8733
9213
|
}
|
|
8734
9214
|
},
|
|
8735
9215
|
onChange: async function() {
|
|
9216
|
+
var _a, _b;
|
|
8736
9217
|
if (eventGroups.onChange) {
|
|
9218
|
+
(_a = funcParams.dynamicData) == null ? void 0 : _a.setLoading(true);
|
|
8737
9219
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
8738
9220
|
Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
|
|
8739
|
-
var
|
|
8740
|
-
if (((
|
|
9221
|
+
var _a2, _b2;
|
|
9222
|
+
if (((_a2 = funcParams.store) == null ? void 0 : _a2.formData[componentName]) !== funcParams.store.newData[componentName] && ((_b2 = funcParams.store) == null ? void 0 : _b2.newData[componentName]) !== void 0) {
|
|
8741
9223
|
for (const eventConfig of eventGroups.onChange[componentName]) {
|
|
8742
9224
|
await executeEvents({
|
|
8743
9225
|
...executeEventsParameters,
|
|
@@ -8747,6 +9229,7 @@ var service = (funcParams) => {
|
|
|
8747
9229
|
}
|
|
8748
9230
|
}
|
|
8749
9231
|
}));
|
|
9232
|
+
(_b = funcParams.dynamicData) == null ? void 0 : _b.setLoading(false);
|
|
8750
9233
|
}
|
|
8751
9234
|
},
|
|
8752
9235
|
updateConfigApiBody: async function(paramValue, apiBody) {
|
|
@@ -8812,8 +9295,7 @@ var service = (funcParams) => {
|
|
|
8812
9295
|
}
|
|
8813
9296
|
},
|
|
8814
9297
|
downloadFile: downloadFile$1,
|
|
8815
|
-
download: doDownload
|
|
8816
|
-
...funcParams.functionsProvider
|
|
9298
|
+
download: doDownload
|
|
8817
9299
|
};
|
|
8818
9300
|
};
|
|
8819
9301
|
var leaderBoard = {
|
|
@@ -9162,7 +9644,6 @@ const buildLeaderBoard = (config) => {
|
|
|
9162
9644
|
});
|
|
9163
9645
|
LeaderBoard.elements[9].elements = modifyColumns;
|
|
9164
9646
|
}
|
|
9165
|
-
LeaderBoard.config.main.label = config.label;
|
|
9166
9647
|
if (config.name) {
|
|
9167
9648
|
LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
|
|
9168
9649
|
LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
|
|
@@ -9182,7 +9663,7 @@ const buildLeaderBoard = (config) => {
|
|
|
9182
9663
|
LeaderBoard.elements[2].config.main.url = config.thirdImage;
|
|
9183
9664
|
}
|
|
9184
9665
|
if (config.layout) {
|
|
9185
|
-
LeaderBoard.config.layout =
|
|
9666
|
+
LeaderBoard.config.layout = config.layout;
|
|
9186
9667
|
}
|
|
9187
9668
|
return LeaderBoard;
|
|
9188
9669
|
};
|
|
@@ -9362,7 +9843,7 @@ const LineGraph = {
|
|
|
9362
9843
|
leftLabel: "Incentive",
|
|
9363
9844
|
gridHidden: true,
|
|
9364
9845
|
numHidden: false,
|
|
9365
|
-
tooltipDataKey: ["
|
|
9846
|
+
tooltipDataKey: ["MAMA New Project", "Second", "Third"],
|
|
9366
9847
|
axisLeft: true,
|
|
9367
9848
|
axisBottom: true,
|
|
9368
9849
|
hideLeftAxisLine: false,
|
|
@@ -9615,13 +10096,6 @@ var Tabsection = {
|
|
|
9615
10096
|
};
|
|
9616
10097
|
const buildTabSection = (config, componentScope) => {
|
|
9617
10098
|
const tab = _.cloneDeep(Tabsection);
|
|
9618
|
-
tab.scope = componentScope;
|
|
9619
|
-
if (config.lazyLoad) {
|
|
9620
|
-
tab.config.main.lazyLoad = config.lazyLoad === "YES" ? true : false;
|
|
9621
|
-
}
|
|
9622
|
-
if (config.orientation) {
|
|
9623
|
-
tab.config.main.orientation = config.orientation === "YES" ? "vertical" : "horizontal";
|
|
9624
|
-
}
|
|
9625
10099
|
if (config.sectionLabels) {
|
|
9626
10100
|
tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
|
|
9627
10101
|
}
|
|
@@ -9641,10 +10115,8 @@ var WrapperSection = {
|
|
|
9641
10115
|
};
|
|
9642
10116
|
const buildWrapperSection = (config, componentScope) => {
|
|
9643
10117
|
const wrapper = _.cloneDeep(WrapperSection);
|
|
9644
|
-
wrapper.scope = componentScope;
|
|
9645
10118
|
wrapper.config.main.label = config.label;
|
|
9646
10119
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
9647
|
-
wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
|
|
9648
10120
|
if (config.style) {
|
|
9649
10121
|
wrapper.config.style = JSON.parse(config.style);
|
|
9650
10122
|
}
|
|
@@ -9799,7 +10271,6 @@ var Table = {
|
|
|
9799
10271
|
elements: [],
|
|
9800
10272
|
config: {
|
|
9801
10273
|
main: {
|
|
9802
|
-
onMount: "onMount",
|
|
9803
10274
|
allRowData: [],
|
|
9804
10275
|
downloadAllData: false,
|
|
9805
10276
|
columns: {
|
|
@@ -9818,7 +10289,6 @@ var lazyLoadingTable = {
|
|
|
9818
10289
|
elements: [],
|
|
9819
10290
|
config: {
|
|
9820
10291
|
main: {
|
|
9821
|
-
onMount: "onMount",
|
|
9822
10292
|
columns: {}
|
|
9823
10293
|
}
|
|
9824
10294
|
}
|
|
@@ -10127,25 +10597,6 @@ var DateInputField = {
|
|
|
10127
10597
|
}
|
|
10128
10598
|
}
|
|
10129
10599
|
};
|
|
10130
|
-
const DateTime = {
|
|
10131
|
-
type: "Control",
|
|
10132
|
-
scope: "#/properties/date",
|
|
10133
|
-
options: {
|
|
10134
|
-
widget: "DateTimeInputField"
|
|
10135
|
-
},
|
|
10136
|
-
config: {
|
|
10137
|
-
layout: {
|
|
10138
|
-
xs: 11,
|
|
10139
|
-
sm: 11,
|
|
10140
|
-
md: 5.5,
|
|
10141
|
-
lg: 5.5
|
|
10142
|
-
},
|
|
10143
|
-
main: {
|
|
10144
|
-
label: "DateTime",
|
|
10145
|
-
type: "date"
|
|
10146
|
-
}
|
|
10147
|
-
}
|
|
10148
|
-
};
|
|
10149
10600
|
const buildDate = (config, componentScope) => {
|
|
10150
10601
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
10151
10602
|
dateInputField.config.main.label = config.label;
|
|
@@ -10156,16 +10607,6 @@ const buildDate = (config, componentScope) => {
|
|
|
10156
10607
|
}
|
|
10157
10608
|
return dateInputField;
|
|
10158
10609
|
};
|
|
10159
|
-
const buildDateTime = (config, componentScope) => {
|
|
10160
|
-
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
10161
|
-
dateTimeInputField.config.main.label = config.label;
|
|
10162
|
-
dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
10163
|
-
dateTimeInputField.scope = componentScope;
|
|
10164
|
-
if (config.layout) {
|
|
10165
|
-
dateTimeInputField.config.layout = createLayoutFormat(config.layout);
|
|
10166
|
-
}
|
|
10167
|
-
return dateTimeInputField;
|
|
10168
|
-
};
|
|
10169
10610
|
var RankCard = {
|
|
10170
10611
|
type: "Control",
|
|
10171
10612
|
scope: "#/properties/path",
|
|
@@ -10297,7 +10738,6 @@ const buildBasicUiSchema = (config) => {
|
|
|
10297
10738
|
return {
|
|
10298
10739
|
"type": "HorizontalLayout",
|
|
10299
10740
|
pageName: `${config.name}`,
|
|
10300
|
-
scope: `${config.name}`,
|
|
10301
10741
|
"elements": []
|
|
10302
10742
|
};
|
|
10303
10743
|
};
|
|
@@ -10402,12 +10842,6 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
10402
10842
|
if (config.bottomLabel) {
|
|
10403
10843
|
lineGraph.config.main.bottomLabel = config.bottomLabel;
|
|
10404
10844
|
}
|
|
10405
|
-
if (config.yAxisValue) {
|
|
10406
|
-
lineGraph.config.main.yAxisValue = config.yAxisValue;
|
|
10407
|
-
}
|
|
10408
|
-
if (config.xAxisValue) {
|
|
10409
|
-
lineGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10410
|
-
}
|
|
10411
10845
|
if (config.leftLabel) {
|
|
10412
10846
|
lineGraph.config.main.leftLabel = config.leftLabel;
|
|
10413
10847
|
}
|
|
@@ -10696,47 +11130,6 @@ const buildDataGrid = (config, componentScope) => {
|
|
|
10696
11130
|
}
|
|
10697
11131
|
return DataGrid;
|
|
10698
11132
|
};
|
|
10699
|
-
const InputSlider = {
|
|
10700
|
-
type: "Control",
|
|
10701
|
-
scope: "#/properties/inputSlider",
|
|
10702
|
-
options: {
|
|
10703
|
-
widget: "InputSlider"
|
|
10704
|
-
},
|
|
10705
|
-
config: {
|
|
10706
|
-
layout: 12,
|
|
10707
|
-
main: {
|
|
10708
|
-
limitToMax: false,
|
|
10709
|
-
max: 1e4,
|
|
10710
|
-
step: 1e3,
|
|
10711
|
-
min: 0,
|
|
10712
|
-
label: "Slider"
|
|
10713
|
-
}
|
|
10714
|
-
}
|
|
10715
|
-
};
|
|
10716
|
-
const buildInputSlider = (config, componentScope) => {
|
|
10717
|
-
const inputSlider = _.cloneDeep(InputSlider);
|
|
10718
|
-
inputSlider.scope = componentScope;
|
|
10719
|
-
inputSlider.config.main.label = config.label;
|
|
10720
|
-
if (config.layout) {
|
|
10721
|
-
inputSlider.config.layout = createLayoutFormat(config.layout);
|
|
10722
|
-
}
|
|
10723
|
-
if (config.limitToMax) {
|
|
10724
|
-
inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
|
|
10725
|
-
}
|
|
10726
|
-
if (config.max) {
|
|
10727
|
-
inputSlider.config.main.max = config.max;
|
|
10728
|
-
}
|
|
10729
|
-
if (config.step) {
|
|
10730
|
-
inputSlider.config.main.step = config.step;
|
|
10731
|
-
}
|
|
10732
|
-
if (config.min) {
|
|
10733
|
-
inputSlider.config.main.min = config.min;
|
|
10734
|
-
}
|
|
10735
|
-
if (config.style) {
|
|
10736
|
-
inputSlider.config.main.defaultStyle = JSON.parse(config.style);
|
|
10737
|
-
}
|
|
10738
|
-
return inputSlider;
|
|
10739
|
-
};
|
|
10740
11133
|
let schema = {
|
|
10741
11134
|
type: "object",
|
|
10742
11135
|
properties: {},
|
|
@@ -10855,12 +11248,6 @@ const buildUiSchema = (config) => {
|
|
|
10855
11248
|
let elements = {};
|
|
10856
11249
|
const componentScope = `#/properties/${config.name}`;
|
|
10857
11250
|
switch (config.type) {
|
|
10858
|
-
case "DateTime":
|
|
10859
|
-
elements = buildDateTime(config, componentScope);
|
|
10860
|
-
break;
|
|
10861
|
-
case "InputSlider":
|
|
10862
|
-
elements = buildInputSlider(config, componentScope);
|
|
10863
|
-
break;
|
|
10864
11251
|
case "DataGrid":
|
|
10865
11252
|
elements = buildDataGrid(config, componentScope);
|
|
10866
11253
|
break;
|
|
@@ -10880,13 +11267,13 @@ const buildUiSchema = (config) => {
|
|
|
10880
11267
|
elements = buildPanField(config, componentScope);
|
|
10881
11268
|
break;
|
|
10882
11269
|
case "TabSection":
|
|
10883
|
-
elements = buildTabSection(config
|
|
11270
|
+
elements = buildTabSection(config);
|
|
10884
11271
|
break;
|
|
10885
11272
|
case "RunnerBoyProgressBar":
|
|
10886
11273
|
elements = RunnerBoyProgressbar(config, componentScope);
|
|
10887
11274
|
break;
|
|
10888
11275
|
case "WrapperSection":
|
|
10889
|
-
elements = buildWrapperSection(config
|
|
11276
|
+
elements = buildWrapperSection(config);
|
|
10890
11277
|
break;
|
|
10891
11278
|
case "Text":
|
|
10892
11279
|
elements = buildTextField(config, componentScope);
|
|
@@ -10996,17 +11383,15 @@ const buildUiSchema = (config) => {
|
|
|
10996
11383
|
});
|
|
10997
11384
|
}
|
|
10998
11385
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
10999
|
-
if (e.type
|
|
11386
|
+
if (e.type) {
|
|
11000
11387
|
return {
|
|
11001
11388
|
accessorKey: e.name,
|
|
11002
11389
|
header: e.label || e.name,
|
|
11003
11390
|
size: sizeMap[e.name] || 180,
|
|
11004
|
-
type: e.type,
|
|
11005
11391
|
widget: buildUiSchema(e)
|
|
11006
11392
|
};
|
|
11007
11393
|
}
|
|
11008
11394
|
return {
|
|
11009
|
-
type: e.type,
|
|
11010
11395
|
accessorKey: e.name,
|
|
11011
11396
|
header: e.label || e.name,
|
|
11012
11397
|
size: sizeMap[e.name] || 180
|