impaktapps-ui-builder 0.0.412-hi → 0.0.412-i
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 +490 -22
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +14 -14
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +4 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +178 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +236 -59
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +87 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +22 -4
- package/src/impaktapps-ui-builder/builder/services/event.ts +9 -1
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +14 -5
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -257,7 +257,7 @@ const PageMasterUiSchema = {
|
|
|
257
257
|
main: {
|
|
258
258
|
icon: "RejectIcon",
|
|
259
259
|
color: "error",
|
|
260
|
-
onClick: "
|
|
260
|
+
onClick: "deletePopUpComponent",
|
|
261
261
|
tooltipMessage: "Reject This Record"
|
|
262
262
|
}
|
|
263
263
|
}
|
|
@@ -376,7 +376,7 @@ const PageMasterUiSchema = {
|
|
|
376
376
|
icon: "RejectIcon",
|
|
377
377
|
color: "error",
|
|
378
378
|
tooltipMessage: "Reject This Record",
|
|
379
|
-
onClick: "
|
|
379
|
+
onClick: "deletePopUpEvent"
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
@@ -387,6 +387,172 @@ const PageMasterUiSchema = {
|
|
|
387
387
|
}
|
|
388
388
|
]
|
|
389
389
|
},
|
|
390
|
+
{
|
|
391
|
+
type: "Control",
|
|
392
|
+
scope: "#/properties/popUpPageMasterEvent",
|
|
393
|
+
options: {
|
|
394
|
+
widget: "PopUp"
|
|
395
|
+
},
|
|
396
|
+
config: {
|
|
397
|
+
layout: {
|
|
398
|
+
xs: 12,
|
|
399
|
+
sm: 12,
|
|
400
|
+
md: 12,
|
|
401
|
+
lg: 12
|
|
402
|
+
},
|
|
403
|
+
main: {}
|
|
404
|
+
},
|
|
405
|
+
elements: [
|
|
406
|
+
{
|
|
407
|
+
type: "Control",
|
|
408
|
+
scope: "#/properties/label",
|
|
409
|
+
options: {
|
|
410
|
+
widget: "Box"
|
|
411
|
+
},
|
|
412
|
+
config: {
|
|
413
|
+
layout: 12,
|
|
414
|
+
main: {
|
|
415
|
+
heading: "Are you sure you want to delete ?"
|
|
416
|
+
},
|
|
417
|
+
style: {
|
|
418
|
+
marginTop: "-40px"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
type: "Control",
|
|
424
|
+
scope: "#/properties/EmptyBox",
|
|
425
|
+
options: {
|
|
426
|
+
widget: "EmptyBox"
|
|
427
|
+
},
|
|
428
|
+
config: {
|
|
429
|
+
main: {},
|
|
430
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
type: "Control",
|
|
435
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
436
|
+
options: {
|
|
437
|
+
widget: "Button"
|
|
438
|
+
},
|
|
439
|
+
config: {
|
|
440
|
+
layout: 3,
|
|
441
|
+
main: {
|
|
442
|
+
name: "Yes",
|
|
443
|
+
startIcon: "ApproveIcon",
|
|
444
|
+
variant: "contained",
|
|
445
|
+
color: "info",
|
|
446
|
+
type: "text",
|
|
447
|
+
onClick: "deleteEvent",
|
|
448
|
+
size: "small"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
type: "Control",
|
|
454
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
455
|
+
options: {
|
|
456
|
+
widget: "Button"
|
|
457
|
+
},
|
|
458
|
+
config: {
|
|
459
|
+
layout: 3,
|
|
460
|
+
main: {
|
|
461
|
+
name: "No",
|
|
462
|
+
startIcon: "ApproveIcon",
|
|
463
|
+
variant: "contained",
|
|
464
|
+
color: "info",
|
|
465
|
+
type: "text",
|
|
466
|
+
onClick: "deletePopUpEvent",
|
|
467
|
+
size: "small"
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
type: "Control",
|
|
475
|
+
scope: "#/properties/popUpPageMasterComponent",
|
|
476
|
+
options: {
|
|
477
|
+
widget: "PopUp"
|
|
478
|
+
},
|
|
479
|
+
config: {
|
|
480
|
+
layout: {
|
|
481
|
+
xs: 12,
|
|
482
|
+
sm: 12,
|
|
483
|
+
md: 12,
|
|
484
|
+
lg: 12
|
|
485
|
+
},
|
|
486
|
+
main: {}
|
|
487
|
+
},
|
|
488
|
+
elements: [
|
|
489
|
+
{
|
|
490
|
+
type: "Control",
|
|
491
|
+
scope: "#/properties/label",
|
|
492
|
+
options: {
|
|
493
|
+
widget: "Box"
|
|
494
|
+
},
|
|
495
|
+
config: {
|
|
496
|
+
layout: 12,
|
|
497
|
+
main: {
|
|
498
|
+
heading: "Are you sure you want to delete ?"
|
|
499
|
+
},
|
|
500
|
+
style: {
|
|
501
|
+
marginTop: "-40px"
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
type: "Control",
|
|
507
|
+
scope: "#/properties/EmptyBox",
|
|
508
|
+
options: {
|
|
509
|
+
widget: "EmptyBox"
|
|
510
|
+
},
|
|
511
|
+
config: {
|
|
512
|
+
main: {},
|
|
513
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
type: "Control",
|
|
518
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
519
|
+
options: {
|
|
520
|
+
widget: "Button"
|
|
521
|
+
},
|
|
522
|
+
config: {
|
|
523
|
+
layout: 3,
|
|
524
|
+
main: {
|
|
525
|
+
name: "Yes",
|
|
526
|
+
startIcon: "ApproveIcon",
|
|
527
|
+
variant: "contained",
|
|
528
|
+
color: "info",
|
|
529
|
+
type: "text",
|
|
530
|
+
onClick: "Delete_Components",
|
|
531
|
+
size: "small"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
type: "Control",
|
|
537
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
538
|
+
options: {
|
|
539
|
+
widget: "Button"
|
|
540
|
+
},
|
|
541
|
+
config: {
|
|
542
|
+
layout: 3,
|
|
543
|
+
main: {
|
|
544
|
+
name: "No",
|
|
545
|
+
startIcon: "ApproveIcon",
|
|
546
|
+
variant: "contained",
|
|
547
|
+
color: "info",
|
|
548
|
+
type: "text",
|
|
549
|
+
onClick: "deletePopUpComponent",
|
|
550
|
+
size: "small"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
]
|
|
555
|
+
},
|
|
390
556
|
{
|
|
391
557
|
type: "Control",
|
|
392
558
|
scope: "#/properties/btn",
|
|
@@ -6398,6 +6564,172 @@ const componentBasicUiSchema = {
|
|
|
6398
6564
|
}
|
|
6399
6565
|
]
|
|
6400
6566
|
},
|
|
6567
|
+
{
|
|
6568
|
+
type: "Control",
|
|
6569
|
+
scope: "#/properties/popUpComponentSection",
|
|
6570
|
+
options: {
|
|
6571
|
+
widget: "PopUp"
|
|
6572
|
+
},
|
|
6573
|
+
config: {
|
|
6574
|
+
layout: {
|
|
6575
|
+
xs: 12,
|
|
6576
|
+
sm: 12,
|
|
6577
|
+
md: 12,
|
|
6578
|
+
lg: 12
|
|
6579
|
+
},
|
|
6580
|
+
main: {}
|
|
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: "-40px"
|
|
6596
|
+
}
|
|
6597
|
+
}
|
|
6598
|
+
},
|
|
6599
|
+
{
|
|
6600
|
+
type: "Control",
|
|
6601
|
+
scope: "#/properties/EmptyBox",
|
|
6602
|
+
options: {
|
|
6603
|
+
widget: "EmptyBox"
|
|
6604
|
+
},
|
|
6605
|
+
config: {
|
|
6606
|
+
main: {},
|
|
6607
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
6608
|
+
}
|
|
6609
|
+
},
|
|
6610
|
+
{
|
|
6611
|
+
type: "Control",
|
|
6612
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
6613
|
+
options: {
|
|
6614
|
+
widget: "Button"
|
|
6615
|
+
},
|
|
6616
|
+
config: {
|
|
6617
|
+
layout: 3,
|
|
6618
|
+
main: {
|
|
6619
|
+
name: "Yes",
|
|
6620
|
+
startIcon: "ApproveIcon",
|
|
6621
|
+
variant: "contained",
|
|
6622
|
+
color: "info",
|
|
6623
|
+
type: "text",
|
|
6624
|
+
onClick: "deleteComponents",
|
|
6625
|
+
size: "small"
|
|
6626
|
+
}
|
|
6627
|
+
}
|
|
6628
|
+
},
|
|
6629
|
+
{
|
|
6630
|
+
type: "Control",
|
|
6631
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
6632
|
+
options: {
|
|
6633
|
+
widget: "Button"
|
|
6634
|
+
},
|
|
6635
|
+
config: {
|
|
6636
|
+
layout: 3,
|
|
6637
|
+
main: {
|
|
6638
|
+
name: "No",
|
|
6639
|
+
startIcon: "ApproveIcon",
|
|
6640
|
+
variant: "contained",
|
|
6641
|
+
color: "info",
|
|
6642
|
+
type: "text",
|
|
6643
|
+
onClick: "deletePopUpComponent",
|
|
6644
|
+
size: "small"
|
|
6645
|
+
}
|
|
6646
|
+
}
|
|
6647
|
+
}
|
|
6648
|
+
]
|
|
6649
|
+
},
|
|
6650
|
+
{
|
|
6651
|
+
type: "Control",
|
|
6652
|
+
scope: "#/properties/popUpEventSection",
|
|
6653
|
+
options: {
|
|
6654
|
+
widget: "PopUp"
|
|
6655
|
+
},
|
|
6656
|
+
config: {
|
|
6657
|
+
layout: {
|
|
6658
|
+
xs: 12,
|
|
6659
|
+
sm: 12,
|
|
6660
|
+
md: 12,
|
|
6661
|
+
lg: 12
|
|
6662
|
+
},
|
|
6663
|
+
main: {}
|
|
6664
|
+
},
|
|
6665
|
+
elements: [
|
|
6666
|
+
{
|
|
6667
|
+
type: "Control",
|
|
6668
|
+
scope: "#/properties/label",
|
|
6669
|
+
options: {
|
|
6670
|
+
widget: "Box"
|
|
6671
|
+
},
|
|
6672
|
+
config: {
|
|
6673
|
+
layout: 12,
|
|
6674
|
+
main: {
|
|
6675
|
+
heading: "Are you sure you want to delete ?"
|
|
6676
|
+
},
|
|
6677
|
+
style: {
|
|
6678
|
+
marginTop: "-40px"
|
|
6679
|
+
}
|
|
6680
|
+
}
|
|
6681
|
+
},
|
|
6682
|
+
{
|
|
6683
|
+
type: "Control",
|
|
6684
|
+
scope: "#/properties/EmptyBox",
|
|
6685
|
+
options: {
|
|
6686
|
+
widget: "EmptyBox"
|
|
6687
|
+
},
|
|
6688
|
+
config: {
|
|
6689
|
+
main: {},
|
|
6690
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
6691
|
+
}
|
|
6692
|
+
},
|
|
6693
|
+
{
|
|
6694
|
+
type: "Control",
|
|
6695
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
6696
|
+
options: {
|
|
6697
|
+
widget: "Button"
|
|
6698
|
+
},
|
|
6699
|
+
config: {
|
|
6700
|
+
layout: 3,
|
|
6701
|
+
main: {
|
|
6702
|
+
name: "Yes",
|
|
6703
|
+
startIcon: "ApproveIcon",
|
|
6704
|
+
variant: "contained",
|
|
6705
|
+
color: "info",
|
|
6706
|
+
type: "text",
|
|
6707
|
+
onClick: "deleteEvent",
|
|
6708
|
+
size: "small"
|
|
6709
|
+
}
|
|
6710
|
+
}
|
|
6711
|
+
},
|
|
6712
|
+
{
|
|
6713
|
+
type: "Control",
|
|
6714
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
6715
|
+
options: {
|
|
6716
|
+
widget: "Button"
|
|
6717
|
+
},
|
|
6718
|
+
config: {
|
|
6719
|
+
layout: 3,
|
|
6720
|
+
main: {
|
|
6721
|
+
name: "No",
|
|
6722
|
+
startIcon: "ApproveIcon",
|
|
6723
|
+
variant: "contained",
|
|
6724
|
+
color: "info",
|
|
6725
|
+
type: "text",
|
|
6726
|
+
onClick: "deletePopUpEvent",
|
|
6727
|
+
size: "small"
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
}
|
|
6731
|
+
]
|
|
6732
|
+
},
|
|
6401
6733
|
{
|
|
6402
6734
|
type: "Control",
|
|
6403
6735
|
scope: "#/properties/proc",
|
|
@@ -6722,7 +7054,7 @@ const EventSection = {
|
|
|
6722
7054
|
icon: "RejectIcon",
|
|
6723
7055
|
color: "error",
|
|
6724
7056
|
tooltipMessage: "Reject This Record",
|
|
6725
|
-
onClick: "
|
|
7057
|
+
onClick: "deletePopUpEvent"
|
|
6726
7058
|
}
|
|
6727
7059
|
}
|
|
6728
7060
|
}
|
|
@@ -7264,7 +7596,7 @@ const TableSection = {
|
|
|
7264
7596
|
main: {
|
|
7265
7597
|
icon: "RejectIcon",
|
|
7266
7598
|
color: "error",
|
|
7267
|
-
onClick: "
|
|
7599
|
+
onClick: "deletePopUpComponent",
|
|
7268
7600
|
tooltipMessage: "Reject This Record"
|
|
7269
7601
|
}
|
|
7270
7602
|
}
|
|
@@ -7622,22 +7954,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7622
7954
|
store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
|
|
7623
7955
|
}
|
|
7624
7956
|
},
|
|
7625
|
-
deleteComponents: function() {
|
|
7957
|
+
deleteComponents: function(shouldUpdateDialog = true) {
|
|
7626
7958
|
var _a;
|
|
7627
7959
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7628
|
-
const rowId =
|
|
7960
|
+
const rowId = localStorage.getItem("rowId");
|
|
7629
7961
|
store2.formData.elements.splice(rowId, 1);
|
|
7630
7962
|
const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7631
7963
|
const data = path ? _.get(response, path) : response;
|
|
7632
7964
|
store2.setFormdata(data);
|
|
7965
|
+
if (shouldUpdateDialog) {
|
|
7966
|
+
store2.updateDialog("popUpComponentSection");
|
|
7967
|
+
}
|
|
7968
|
+
localStorage.removeItem("rowId");
|
|
7633
7969
|
},
|
|
7634
|
-
deleteEvent: function() {
|
|
7970
|
+
deleteEvent: function(shouldUpdateDialog = true) {
|
|
7635
7971
|
var _a;
|
|
7636
7972
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7637
|
-
const rowId =
|
|
7973
|
+
const rowId = localStorage.getItem("rowId");
|
|
7638
7974
|
store2.formData.events.splice(rowId, 1);
|
|
7639
7975
|
const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7640
7976
|
store2.setFormdata(_.get(response, path));
|
|
7977
|
+
if (shouldUpdateDialog) {
|
|
7978
|
+
store2.updateDialog("popUpEventSection");
|
|
7979
|
+
}
|
|
7980
|
+
localStorage.removeItem("rowId");
|
|
7641
7981
|
},
|
|
7642
7982
|
widgetAddClickHandler: function() {
|
|
7643
7983
|
var _a;
|
|
@@ -7673,6 +8013,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
7673
8013
|
},
|
|
7674
8014
|
backHandler: function() {
|
|
7675
8015
|
store2.navigate(-1);
|
|
8016
|
+
},
|
|
8017
|
+
deletePopUpComponent: function() {
|
|
8018
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8019
|
+
localStorage.setItem("rowId", rowId);
|
|
8020
|
+
store2.updateDialog("popUpComponentSection");
|
|
8021
|
+
},
|
|
8022
|
+
deletePopUpEvent: function() {
|
|
8023
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8024
|
+
localStorage.setItem("rowId", rowId);
|
|
8025
|
+
store2.updateDialog("popUpEventSection");
|
|
7676
8026
|
}
|
|
7677
8027
|
};
|
|
7678
8028
|
};
|
|
@@ -7727,7 +8077,10 @@ var pageMaster = (funcParams) => {
|
|
|
7727
8077
|
},
|
|
7728
8078
|
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
7729
8079
|
Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
|
|
7730
|
-
Delete_Components:
|
|
8080
|
+
Delete_Components: async function() {
|
|
8081
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
|
|
8082
|
+
store2.updateDialog("popUpPageMasterComponent");
|
|
8083
|
+
},
|
|
7731
8084
|
eventAddHandler: function() {
|
|
7732
8085
|
var _a;
|
|
7733
8086
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
@@ -7747,10 +8100,22 @@ var pageMaster = (funcParams) => {
|
|
|
7747
8100
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7748
8101
|
},
|
|
7749
8102
|
deleteEvent: function() {
|
|
7750
|
-
const rowId =
|
|
8103
|
+
const rowId = localStorage.getItem("rowId");
|
|
7751
8104
|
store2.formData.events.splice(rowId, 1);
|
|
7752
8105
|
const response = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7753
8106
|
store2.setFormdata(response);
|
|
8107
|
+
store2.updateDialog("popUpPageMasterEvent");
|
|
8108
|
+
localStorage.removeItem("rowId");
|
|
8109
|
+
},
|
|
8110
|
+
deletePopUpComponent: function() {
|
|
8111
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8112
|
+
localStorage.setItem("rowId", rowId);
|
|
8113
|
+
store2.updateDialog("popUpPageMasterComponent");
|
|
8114
|
+
},
|
|
8115
|
+
deletePopUpEvent: function() {
|
|
8116
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8117
|
+
localStorage.setItem("rowId", rowId);
|
|
8118
|
+
store2.updateDialog("popUpPageMasterEvent");
|
|
7754
8119
|
}
|
|
7755
8120
|
};
|
|
7756
8121
|
};
|
|
@@ -8052,7 +8417,7 @@ const EventUiSchema = {
|
|
|
8052
8417
|
icon: "RejectIcon",
|
|
8053
8418
|
color: "error",
|
|
8054
8419
|
tooltipMessage: "Reject This Record",
|
|
8055
|
-
onClick: "
|
|
8420
|
+
onClick: "deletePopUpEvent"
|
|
8056
8421
|
}
|
|
8057
8422
|
}
|
|
8058
8423
|
}
|
|
@@ -8063,6 +8428,89 @@ const EventUiSchema = {
|
|
|
8063
8428
|
}
|
|
8064
8429
|
]
|
|
8065
8430
|
},
|
|
8431
|
+
{
|
|
8432
|
+
type: "Control",
|
|
8433
|
+
scope: "#/properties/popUpEvent",
|
|
8434
|
+
options: {
|
|
8435
|
+
widget: "PopUp"
|
|
8436
|
+
},
|
|
8437
|
+
config: {
|
|
8438
|
+
layout: {
|
|
8439
|
+
xs: 12,
|
|
8440
|
+
sm: 12,
|
|
8441
|
+
md: 12,
|
|
8442
|
+
lg: 12
|
|
8443
|
+
},
|
|
8444
|
+
main: {}
|
|
8445
|
+
},
|
|
8446
|
+
elements: [
|
|
8447
|
+
{
|
|
8448
|
+
type: "Control",
|
|
8449
|
+
scope: "#/properties/label",
|
|
8450
|
+
options: {
|
|
8451
|
+
widget: "Box"
|
|
8452
|
+
},
|
|
8453
|
+
config: {
|
|
8454
|
+
layout: 12,
|
|
8455
|
+
main: {
|
|
8456
|
+
heading: "Are you sure you want to delete ?"
|
|
8457
|
+
},
|
|
8458
|
+
style: {
|
|
8459
|
+
marginTop: "-40px"
|
|
8460
|
+
}
|
|
8461
|
+
}
|
|
8462
|
+
},
|
|
8463
|
+
{
|
|
8464
|
+
type: "Control",
|
|
8465
|
+
scope: "#/properties/EmptyBox",
|
|
8466
|
+
options: {
|
|
8467
|
+
widget: "EmptyBox"
|
|
8468
|
+
},
|
|
8469
|
+
config: {
|
|
8470
|
+
main: {},
|
|
8471
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
|
|
8472
|
+
}
|
|
8473
|
+
},
|
|
8474
|
+
{
|
|
8475
|
+
type: "Control",
|
|
8476
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
8477
|
+
options: {
|
|
8478
|
+
widget: "Button"
|
|
8479
|
+
},
|
|
8480
|
+
config: {
|
|
8481
|
+
layout: 3,
|
|
8482
|
+
main: {
|
|
8483
|
+
name: "Yes",
|
|
8484
|
+
startIcon: "ApproveIcon",
|
|
8485
|
+
variant: "contained",
|
|
8486
|
+
color: "info",
|
|
8487
|
+
type: "text",
|
|
8488
|
+
onClick: "deleteEvent",
|
|
8489
|
+
size: "small"
|
|
8490
|
+
}
|
|
8491
|
+
}
|
|
8492
|
+
},
|
|
8493
|
+
{
|
|
8494
|
+
type: "Control",
|
|
8495
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
8496
|
+
options: {
|
|
8497
|
+
widget: "Button"
|
|
8498
|
+
},
|
|
8499
|
+
config: {
|
|
8500
|
+
layout: 3,
|
|
8501
|
+
main: {
|
|
8502
|
+
name: "No",
|
|
8503
|
+
startIcon: "ApproveIcon",
|
|
8504
|
+
variant: "contained",
|
|
8505
|
+
color: "info",
|
|
8506
|
+
type: "text",
|
|
8507
|
+
onClick: "deletePopUpEvent",
|
|
8508
|
+
size: "small"
|
|
8509
|
+
}
|
|
8510
|
+
}
|
|
8511
|
+
}
|
|
8512
|
+
]
|
|
8513
|
+
},
|
|
8066
8514
|
{
|
|
8067
8515
|
type: "Control",
|
|
8068
8516
|
scope: "#/properties/proc",
|
|
@@ -8414,9 +8862,17 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8414
8862
|
store2.setSearchParams(store2.searchParams);
|
|
8415
8863
|
this.setPage();
|
|
8416
8864
|
},
|
|
8417
|
-
deleteEvent:
|
|
8865
|
+
deleteEvent: async function() {
|
|
8866
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
|
|
8867
|
+
store2.updateDialog("popUpEvent");
|
|
8868
|
+
},
|
|
8418
8869
|
backHandler: function() {
|
|
8419
8870
|
store2.navigate(-1);
|
|
8871
|
+
},
|
|
8872
|
+
deletePopUpEvent: function() {
|
|
8873
|
+
const rowId = dynamicData2.path.split(".")[1];
|
|
8874
|
+
localStorage.setItem("rowId", rowId);
|
|
8875
|
+
store2.updateDialog("popUpEvent");
|
|
8420
8876
|
}
|
|
8421
8877
|
};
|
|
8422
8878
|
};
|
|
@@ -8640,17 +9096,25 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
8640
9096
|
}
|
|
8641
9097
|
}
|
|
8642
9098
|
}
|
|
8643
|
-
const buildBodyFormat = (body2, formData, userValue2) => {
|
|
9099
|
+
const buildBodyFormat = (body2, formData, userValue2, store2) => {
|
|
8644
9100
|
let finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
|
|
8645
9101
|
body2.map((elem) => {
|
|
8646
|
-
var _a, _b;
|
|
9102
|
+
var _a, _b, _c, _d, _e;
|
|
8647
9103
|
if (typeof (elem == null ? void 0 : elem.value) !== "string") {
|
|
8648
9104
|
finalBody[elem.key] = elem.value;
|
|
8649
9105
|
} else {
|
|
8650
9106
|
if ((_a = elem == null ? void 0 : elem.value) == null ? void 0 : _a.startsWith("$userValue")) {
|
|
8651
9107
|
const finalpath = elem.value.substring(11);
|
|
8652
9108
|
finalBody[elem.key] = _.get(userValue2, finalpath);
|
|
8653
|
-
} else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
|
|
9109
|
+
} else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$urlParams")) {
|
|
9110
|
+
const finalpath = elem.value.substring(11);
|
|
9111
|
+
const value = (_c = store2 == null ? void 0 : store2.searchParams) == null ? void 0 : _c.get(finalpath);
|
|
9112
|
+
finalBody[elem.key] = value;
|
|
9113
|
+
} else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
|
|
9114
|
+
const finalpath = elem.value.substring(7);
|
|
9115
|
+
const value = JSON.parse(localStorage.getItem(finalpath) || '""');
|
|
9116
|
+
finalBody[elem.key] = value;
|
|
9117
|
+
} else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
|
|
8654
9118
|
const finalpath = elem.value.substring(1);
|
|
8655
9119
|
finalBody[elem.key] = _.get(formData, finalpath);
|
|
8656
9120
|
} else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
|
|
@@ -8698,7 +9162,7 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
|
|
|
8698
9162
|
headers = buildHeadersFormat(compConfig.headers);
|
|
8699
9163
|
}
|
|
8700
9164
|
if (compConfig.body) {
|
|
8701
|
-
body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue) };
|
|
9165
|
+
body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue, store) };
|
|
8702
9166
|
}
|
|
8703
9167
|
const promiseChain = { body, headers };
|
|
8704
9168
|
if (compConfig.apiBody) {
|
|
@@ -8817,7 +9281,8 @@ var service = (funcParams) => {
|
|
|
8817
9281
|
userValue: funcParams.userValue,
|
|
8818
9282
|
service: funcParams.service,
|
|
8819
9283
|
serviceHolder: this,
|
|
8820
|
-
eventGroups
|
|
9284
|
+
eventGroups,
|
|
9285
|
+
formDataHolder
|
|
8821
9286
|
});
|
|
8822
9287
|
const jsonres = await fetch("https://jsonplaceholder.typicode.com/todos/1");
|
|
8823
9288
|
await jsonres.json();
|
|
@@ -8980,9 +9445,12 @@ var leaderBoard = {
|
|
|
8980
9445
|
label: "LeaderBoard",
|
|
8981
9446
|
divider: true
|
|
8982
9447
|
},
|
|
8983
|
-
style: {
|
|
8984
|
-
|
|
8985
|
-
|
|
9448
|
+
style: {
|
|
9449
|
+
wrapperStyle: {
|
|
9450
|
+
display: "flex",
|
|
9451
|
+
gap: "10px"
|
|
9452
|
+
}
|
|
9453
|
+
},
|
|
8986
9454
|
wrapperStyle: {
|
|
8987
9455
|
position: "relative",
|
|
8988
9456
|
width: "100%"
|
|
@@ -9291,11 +9759,11 @@ var leaderBoard = {
|
|
|
9291
9759
|
fontWeight: 900,
|
|
9292
9760
|
background: "rgb(179, 198, 255)"
|
|
9293
9761
|
},
|
|
9294
|
-
position: "absolute",
|
|
9295
9762
|
top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
|
|
9296
9763
|
border: "2px solid rgb(179, 198, 255)",
|
|
9297
9764
|
width: "95%",
|
|
9298
|
-
left: "2.5%"
|
|
9765
|
+
left: "2.5%",
|
|
9766
|
+
margin: "auto"
|
|
9299
9767
|
},
|
|
9300
9768
|
main: {
|
|
9301
9769
|
disableAction: true,
|