impaktapps-ui-builder 0.0.409 → 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 +602 -218
- 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 +14 -24
- 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 = [
|
|
@@ -8729,16 +9209,17 @@ var service = (funcParams) => {
|
|
|
8729
9209
|
{ key: "searchValue", value: param.serachValue },
|
|
8730
9210
|
{ key: "currentValue", value: param.currentValue }
|
|
8731
9211
|
];
|
|
8732
|
-
|
|
8733
|
-
return response2 == null ? void 0 : response2.data;
|
|
9212
|
+
return await this.updateConfigApiBody(param, apiBody);
|
|
8734
9213
|
}
|
|
8735
9214
|
},
|
|
8736
9215
|
onChange: async function() {
|
|
9216
|
+
var _a, _b;
|
|
8737
9217
|
if (eventGroups.onChange) {
|
|
9218
|
+
(_a = funcParams.dynamicData) == null ? void 0 : _a.setLoading(true);
|
|
8738
9219
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
8739
9220
|
Promise.all(ChangeEventsKeysArray.map(async (componentName) => {
|
|
8740
|
-
var
|
|
8741
|
-
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) {
|
|
8742
9223
|
for (const eventConfig of eventGroups.onChange[componentName]) {
|
|
8743
9224
|
await executeEvents({
|
|
8744
9225
|
...executeEventsParameters,
|
|
@@ -8748,6 +9229,7 @@ var service = (funcParams) => {
|
|
|
8748
9229
|
}
|
|
8749
9230
|
}
|
|
8750
9231
|
}));
|
|
9232
|
+
(_b = funcParams.dynamicData) == null ? void 0 : _b.setLoading(false);
|
|
8751
9233
|
}
|
|
8752
9234
|
},
|
|
8753
9235
|
updateConfigApiBody: async function(paramValue, apiBody) {
|
|
@@ -8813,8 +9295,7 @@ var service = (funcParams) => {
|
|
|
8813
9295
|
}
|
|
8814
9296
|
},
|
|
8815
9297
|
downloadFile: downloadFile$1,
|
|
8816
|
-
download: doDownload
|
|
8817
|
-
...funcParams.functionsProvider
|
|
9298
|
+
download: doDownload
|
|
8818
9299
|
};
|
|
8819
9300
|
};
|
|
8820
9301
|
var leaderBoard = {
|
|
@@ -9163,7 +9644,6 @@ const buildLeaderBoard = (config) => {
|
|
|
9163
9644
|
});
|
|
9164
9645
|
LeaderBoard.elements[9].elements = modifyColumns;
|
|
9165
9646
|
}
|
|
9166
|
-
LeaderBoard.config.main.label = config.label;
|
|
9167
9647
|
if (config.name) {
|
|
9168
9648
|
LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
|
|
9169
9649
|
LeaderBoard.elements[3].scope = `#/properties/${config.name}/properties/firstName`;
|
|
@@ -9183,7 +9663,7 @@ const buildLeaderBoard = (config) => {
|
|
|
9183
9663
|
LeaderBoard.elements[2].config.main.url = config.thirdImage;
|
|
9184
9664
|
}
|
|
9185
9665
|
if (config.layout) {
|
|
9186
|
-
LeaderBoard.config.layout =
|
|
9666
|
+
LeaderBoard.config.layout = config.layout;
|
|
9187
9667
|
}
|
|
9188
9668
|
return LeaderBoard;
|
|
9189
9669
|
};
|
|
@@ -9363,7 +9843,7 @@ const LineGraph = {
|
|
|
9363
9843
|
leftLabel: "Incentive",
|
|
9364
9844
|
gridHidden: true,
|
|
9365
9845
|
numHidden: false,
|
|
9366
|
-
tooltipDataKey: ["
|
|
9846
|
+
tooltipDataKey: ["MAMA New Project", "Second", "Third"],
|
|
9367
9847
|
axisLeft: true,
|
|
9368
9848
|
axisBottom: true,
|
|
9369
9849
|
hideLeftAxisLine: false,
|
|
@@ -9616,13 +10096,6 @@ var Tabsection = {
|
|
|
9616
10096
|
};
|
|
9617
10097
|
const buildTabSection = (config, componentScope) => {
|
|
9618
10098
|
const tab = _.cloneDeep(Tabsection);
|
|
9619
|
-
tab.scope = componentScope;
|
|
9620
|
-
if (config.lazyLoad) {
|
|
9621
|
-
tab.config.main.lazyLoad = config.lazyLoad === "YES" ? true : false;
|
|
9622
|
-
}
|
|
9623
|
-
if (config.orientation) {
|
|
9624
|
-
tab.config.main.orientation = config.orientation === "YES" ? "vertical" : "horizontal";
|
|
9625
|
-
}
|
|
9626
10099
|
if (config.sectionLabels) {
|
|
9627
10100
|
tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
|
|
9628
10101
|
}
|
|
@@ -9642,10 +10115,8 @@ var WrapperSection = {
|
|
|
9642
10115
|
};
|
|
9643
10116
|
const buildWrapperSection = (config, componentScope) => {
|
|
9644
10117
|
const wrapper = _.cloneDeep(WrapperSection);
|
|
9645
|
-
wrapper.scope = componentScope;
|
|
9646
10118
|
wrapper.config.main.label = config.label;
|
|
9647
10119
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
9648
|
-
wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
|
|
9649
10120
|
if (config.style) {
|
|
9650
10121
|
wrapper.config.style = JSON.parse(config.style);
|
|
9651
10122
|
}
|
|
@@ -9800,7 +10271,6 @@ var Table = {
|
|
|
9800
10271
|
elements: [],
|
|
9801
10272
|
config: {
|
|
9802
10273
|
main: {
|
|
9803
|
-
onMount: "onMount",
|
|
9804
10274
|
allRowData: [],
|
|
9805
10275
|
downloadAllData: false,
|
|
9806
10276
|
columns: {
|
|
@@ -9819,7 +10289,6 @@ var lazyLoadingTable = {
|
|
|
9819
10289
|
elements: [],
|
|
9820
10290
|
config: {
|
|
9821
10291
|
main: {
|
|
9822
|
-
onMount: "onMount",
|
|
9823
10292
|
columns: {}
|
|
9824
10293
|
}
|
|
9825
10294
|
}
|
|
@@ -10128,25 +10597,6 @@ var DateInputField = {
|
|
|
10128
10597
|
}
|
|
10129
10598
|
}
|
|
10130
10599
|
};
|
|
10131
|
-
const DateTime = {
|
|
10132
|
-
type: "Control",
|
|
10133
|
-
scope: "#/properties/date",
|
|
10134
|
-
options: {
|
|
10135
|
-
widget: "DateTimeInputField"
|
|
10136
|
-
},
|
|
10137
|
-
config: {
|
|
10138
|
-
layout: {
|
|
10139
|
-
xs: 11,
|
|
10140
|
-
sm: 11,
|
|
10141
|
-
md: 5.5,
|
|
10142
|
-
lg: 5.5
|
|
10143
|
-
},
|
|
10144
|
-
main: {
|
|
10145
|
-
label: "DateTime",
|
|
10146
|
-
type: "date"
|
|
10147
|
-
}
|
|
10148
|
-
}
|
|
10149
|
-
};
|
|
10150
10600
|
const buildDate = (config, componentScope) => {
|
|
10151
10601
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
10152
10602
|
dateInputField.config.main.label = config.label;
|
|
@@ -10157,16 +10607,6 @@ const buildDate = (config, componentScope) => {
|
|
|
10157
10607
|
}
|
|
10158
10608
|
return dateInputField;
|
|
10159
10609
|
};
|
|
10160
|
-
const buildDateTime = (config, componentScope) => {
|
|
10161
|
-
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
10162
|
-
dateTimeInputField.config.main.label = config.label;
|
|
10163
|
-
dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
10164
|
-
dateTimeInputField.scope = componentScope;
|
|
10165
|
-
if (config.layout) {
|
|
10166
|
-
dateTimeInputField.config.layout = createLayoutFormat(config.layout);
|
|
10167
|
-
}
|
|
10168
|
-
return dateTimeInputField;
|
|
10169
|
-
};
|
|
10170
10610
|
var RankCard = {
|
|
10171
10611
|
type: "Control",
|
|
10172
10612
|
scope: "#/properties/path",
|
|
@@ -10298,7 +10738,6 @@ const buildBasicUiSchema = (config) => {
|
|
|
10298
10738
|
return {
|
|
10299
10739
|
"type": "HorizontalLayout",
|
|
10300
10740
|
pageName: `${config.name}`,
|
|
10301
|
-
scope: `${config.name}`,
|
|
10302
10741
|
"elements": []
|
|
10303
10742
|
};
|
|
10304
10743
|
};
|
|
@@ -10403,12 +10842,6 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
10403
10842
|
if (config.bottomLabel) {
|
|
10404
10843
|
lineGraph.config.main.bottomLabel = config.bottomLabel;
|
|
10405
10844
|
}
|
|
10406
|
-
if (config.yAxisValue) {
|
|
10407
|
-
lineGraph.config.main.yAxisValue = config.yAxisValue;
|
|
10408
|
-
}
|
|
10409
|
-
if (config.xAxisValue) {
|
|
10410
|
-
lineGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10411
|
-
}
|
|
10412
10845
|
if (config.leftLabel) {
|
|
10413
10846
|
lineGraph.config.main.leftLabel = config.leftLabel;
|
|
10414
10847
|
}
|
|
@@ -10697,47 +11130,6 @@ const buildDataGrid = (config, componentScope) => {
|
|
|
10697
11130
|
}
|
|
10698
11131
|
return DataGrid;
|
|
10699
11132
|
};
|
|
10700
|
-
const InputSlider = {
|
|
10701
|
-
type: "Control",
|
|
10702
|
-
scope: "#/properties/inputSlider",
|
|
10703
|
-
options: {
|
|
10704
|
-
widget: "InputSlider"
|
|
10705
|
-
},
|
|
10706
|
-
config: {
|
|
10707
|
-
layout: 12,
|
|
10708
|
-
main: {
|
|
10709
|
-
limitToMax: false,
|
|
10710
|
-
max: 1e4,
|
|
10711
|
-
step: 1e3,
|
|
10712
|
-
min: 0,
|
|
10713
|
-
label: "Slider"
|
|
10714
|
-
}
|
|
10715
|
-
}
|
|
10716
|
-
};
|
|
10717
|
-
const buildInputSlider = (config, componentScope) => {
|
|
10718
|
-
const inputSlider = _.cloneDeep(InputSlider);
|
|
10719
|
-
inputSlider.scope = componentScope;
|
|
10720
|
-
inputSlider.config.main.label = config.label;
|
|
10721
|
-
if (config.layout) {
|
|
10722
|
-
inputSlider.config.layout = createLayoutFormat(config.layout);
|
|
10723
|
-
}
|
|
10724
|
-
if (config.limitToMax) {
|
|
10725
|
-
inputSlider.config.main.limitToMax = config.limitToMax === "YES" ? true : false;
|
|
10726
|
-
}
|
|
10727
|
-
if (config.max) {
|
|
10728
|
-
inputSlider.config.main.max = config.max;
|
|
10729
|
-
}
|
|
10730
|
-
if (config.step) {
|
|
10731
|
-
inputSlider.config.main.step = config.step;
|
|
10732
|
-
}
|
|
10733
|
-
if (config.min) {
|
|
10734
|
-
inputSlider.config.main.min = config.min;
|
|
10735
|
-
}
|
|
10736
|
-
if (config.style) {
|
|
10737
|
-
inputSlider.config.main.defaultStyle = JSON.parse(config.style);
|
|
10738
|
-
}
|
|
10739
|
-
return inputSlider;
|
|
10740
|
-
};
|
|
10741
11133
|
let schema = {
|
|
10742
11134
|
type: "object",
|
|
10743
11135
|
properties: {},
|
|
@@ -10856,12 +11248,6 @@ const buildUiSchema = (config) => {
|
|
|
10856
11248
|
let elements = {};
|
|
10857
11249
|
const componentScope = `#/properties/${config.name}`;
|
|
10858
11250
|
switch (config.type) {
|
|
10859
|
-
case "DateTime":
|
|
10860
|
-
elements = buildDateTime(config, componentScope);
|
|
10861
|
-
break;
|
|
10862
|
-
case "InputSlider":
|
|
10863
|
-
elements = buildInputSlider(config, componentScope);
|
|
10864
|
-
break;
|
|
10865
11251
|
case "DataGrid":
|
|
10866
11252
|
elements = buildDataGrid(config, componentScope);
|
|
10867
11253
|
break;
|
|
@@ -10881,13 +11267,13 @@ const buildUiSchema = (config) => {
|
|
|
10881
11267
|
elements = buildPanField(config, componentScope);
|
|
10882
11268
|
break;
|
|
10883
11269
|
case "TabSection":
|
|
10884
|
-
elements = buildTabSection(config
|
|
11270
|
+
elements = buildTabSection(config);
|
|
10885
11271
|
break;
|
|
10886
11272
|
case "RunnerBoyProgressBar":
|
|
10887
11273
|
elements = RunnerBoyProgressbar(config, componentScope);
|
|
10888
11274
|
break;
|
|
10889
11275
|
case "WrapperSection":
|
|
10890
|
-
elements = buildWrapperSection(config
|
|
11276
|
+
elements = buildWrapperSection(config);
|
|
10891
11277
|
break;
|
|
10892
11278
|
case "Text":
|
|
10893
11279
|
elements = buildTextField(config, componentScope);
|
|
@@ -10997,17 +11383,15 @@ const buildUiSchema = (config) => {
|
|
|
10997
11383
|
});
|
|
10998
11384
|
}
|
|
10999
11385
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
11000
|
-
if (e.type
|
|
11386
|
+
if (e.type) {
|
|
11001
11387
|
return {
|
|
11002
11388
|
accessorKey: e.name,
|
|
11003
11389
|
header: e.label || e.name,
|
|
11004
11390
|
size: sizeMap[e.name] || 180,
|
|
11005
|
-
type: e.type,
|
|
11006
11391
|
widget: buildUiSchema(e)
|
|
11007
11392
|
};
|
|
11008
11393
|
}
|
|
11009
11394
|
return {
|
|
11010
|
-
type: e.type,
|
|
11011
11395
|
accessorKey: e.name,
|
|
11012
11396
|
header: e.label || e.name,
|
|
11013
11397
|
size: sizeMap[e.name] || 180
|