impaktapps-ui-builder 0.0.591 → 0.0.592-alpha.2
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 +371 -298
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +16 -16
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +104 -83
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +6 -6
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +7 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +64 -47
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +132 -90
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +11 -11
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +6 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +3 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +3 -3
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +15 -31
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +18 -11
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +7 -16
- package/src/impaktapps-ui-builder/builder/services/component.ts +15 -22
- package/src/impaktapps-ui-builder/builder/services/event.ts +33 -7
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +12 -12
- package/src/impaktapps-ui-builder/builder/services/utils.ts +12 -12
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +7 -5
|
@@ -66,7 +66,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
66
66
|
widget: "InputField"
|
|
67
67
|
},
|
|
68
68
|
config: {
|
|
69
|
-
layout: { xs:
|
|
69
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
70
70
|
main: {
|
|
71
71
|
label: "Name",
|
|
72
72
|
options: [],
|
|
@@ -84,7 +84,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
84
84
|
widget: "SelectInputField"
|
|
85
85
|
},
|
|
86
86
|
config: {
|
|
87
|
-
layout: { xs:
|
|
87
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
88
88
|
main: {
|
|
89
89
|
label: "Template",
|
|
90
90
|
options: [
|
|
@@ -104,7 +104,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
104
104
|
widget: "InputField"
|
|
105
105
|
},
|
|
106
106
|
config: {
|
|
107
|
-
layout: { xs:
|
|
107
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
108
108
|
main: {
|
|
109
109
|
label: "Label",
|
|
110
110
|
options: [],
|
|
@@ -112,6 +112,16 @@ const PageMasterUiSchema = (theme) => {
|
|
|
112
112
|
required: true
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: "Control",
|
|
118
|
+
scope: "#/properties/EmptyBox",
|
|
119
|
+
config: {
|
|
120
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 0 }
|
|
121
|
+
},
|
|
122
|
+
options: {
|
|
123
|
+
widget: "EmptyBox"
|
|
124
|
+
}
|
|
115
125
|
}
|
|
116
126
|
]
|
|
117
127
|
},
|
|
@@ -317,7 +327,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
317
327
|
widget: "EmptyBox"
|
|
318
328
|
},
|
|
319
329
|
config: {
|
|
320
|
-
layout: { xs:
|
|
330
|
+
layout: { xs: 8, sm: 10 }
|
|
321
331
|
}
|
|
322
332
|
},
|
|
323
333
|
{
|
|
@@ -327,7 +337,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
327
337
|
widget: "Button"
|
|
328
338
|
},
|
|
329
339
|
config: {
|
|
330
|
-
layout:
|
|
340
|
+
layout: { xs: 4, sm: 2 },
|
|
331
341
|
main: {
|
|
332
342
|
name: "Save",
|
|
333
343
|
startIcon: "ApproveIcon",
|
|
@@ -335,10 +345,6 @@ const PageMasterUiSchema = (theme) => {
|
|
|
335
345
|
type: "text",
|
|
336
346
|
onClick: "saveHandler",
|
|
337
347
|
size: "medium"
|
|
338
|
-
},
|
|
339
|
-
style: {
|
|
340
|
-
width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
|
|
341
|
-
float: "right"
|
|
342
348
|
}
|
|
343
349
|
}
|
|
344
350
|
},
|
|
@@ -592,7 +598,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
592
598
|
height: 0,
|
|
593
599
|
margin: 0,
|
|
594
600
|
top: 0,
|
|
595
|
-
right: "
|
|
601
|
+
right: { xs: "12px", sm: "84px" },
|
|
596
602
|
position: "absolute",
|
|
597
603
|
fontSize: "12px",
|
|
598
604
|
cursor: "pointer",
|
|
@@ -614,6 +620,7 @@ const PageMasterUiSchema = (theme) => {
|
|
|
614
620
|
onClick: "backHandler"
|
|
615
621
|
},
|
|
616
622
|
style: {
|
|
623
|
+
display: { xs: "none", sm: "flex" },
|
|
617
624
|
textAlign: "left",
|
|
618
625
|
lineHeight: 1,
|
|
619
626
|
height: 0,
|
|
@@ -6426,7 +6433,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6426
6433
|
widget: "SelectInputField"
|
|
6427
6434
|
},
|
|
6428
6435
|
config: {
|
|
6429
|
-
layout: { xs:
|
|
6436
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6430
6437
|
main: {
|
|
6431
6438
|
label: "Type"
|
|
6432
6439
|
}
|
|
@@ -6439,7 +6446,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6439
6446
|
widget: "InputField"
|
|
6440
6447
|
},
|
|
6441
6448
|
config: {
|
|
6442
|
-
layout: { xs:
|
|
6449
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6443
6450
|
main: {
|
|
6444
6451
|
label: "Name",
|
|
6445
6452
|
options: [],
|
|
@@ -6455,7 +6462,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6455
6462
|
widget: "InputField"
|
|
6456
6463
|
},
|
|
6457
6464
|
config: {
|
|
6458
|
-
layout: { xs:
|
|
6465
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6459
6466
|
main: {
|
|
6460
6467
|
label: "Label",
|
|
6461
6468
|
options: [],
|
|
@@ -6471,7 +6478,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6471
6478
|
widget: "SelectInputField"
|
|
6472
6479
|
},
|
|
6473
6480
|
config: {
|
|
6474
|
-
layout: { xs:
|
|
6481
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6475
6482
|
main: {
|
|
6476
6483
|
label: "Column Format"
|
|
6477
6484
|
}
|
|
@@ -6481,7 +6488,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6481
6488
|
type: "Control",
|
|
6482
6489
|
scope: "#/properties/proc",
|
|
6483
6490
|
config: {
|
|
6484
|
-
layout: { xs: 0, sm:
|
|
6491
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6485
6492
|
},
|
|
6486
6493
|
options: {
|
|
6487
6494
|
widget: "EmptyBox"
|
|
@@ -6491,7 +6498,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6491
6498
|
type: "Control",
|
|
6492
6499
|
scope: "#/properties/proc",
|
|
6493
6500
|
config: {
|
|
6494
|
-
layout: { xs: 0, sm:
|
|
6501
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6495
6502
|
},
|
|
6496
6503
|
options: {
|
|
6497
6504
|
widget: "EmptyBox"
|
|
@@ -6512,7 +6519,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6512
6519
|
widget: "SelectInputField"
|
|
6513
6520
|
},
|
|
6514
6521
|
config: {
|
|
6515
|
-
layout: { xs:
|
|
6522
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6516
6523
|
main: {
|
|
6517
6524
|
label: "Screen Size"
|
|
6518
6525
|
}
|
|
@@ -6525,7 +6532,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6525
6532
|
widget: "InputField"
|
|
6526
6533
|
},
|
|
6527
6534
|
config: {
|
|
6528
|
-
layout: { xs:
|
|
6535
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6529
6536
|
main: {
|
|
6530
6537
|
label: "Value",
|
|
6531
6538
|
type: "number",
|
|
@@ -6538,7 +6545,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6538
6545
|
type: "Control",
|
|
6539
6546
|
scope: "#/properties/proc",
|
|
6540
6547
|
config: {
|
|
6541
|
-
layout: { xs: 0, sm:
|
|
6548
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6542
6549
|
},
|
|
6543
6550
|
options: {
|
|
6544
6551
|
widget: "EmptyBox"
|
|
@@ -6741,17 +6748,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6741
6748
|
widget: "EmptyBox"
|
|
6742
6749
|
},
|
|
6743
6750
|
config: {
|
|
6744
|
-
layout: { xs:
|
|
6745
|
-
}
|
|
6746
|
-
},
|
|
6747
|
-
{
|
|
6748
|
-
type: "Control",
|
|
6749
|
-
scope: "#/properties/EmptyBox",
|
|
6750
|
-
options: {
|
|
6751
|
-
widget: "EmptyBox"
|
|
6752
|
-
},
|
|
6753
|
-
config: {
|
|
6754
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 }
|
|
6751
|
+
layout: { xs: 4, sm: 8 }
|
|
6755
6752
|
}
|
|
6756
6753
|
},
|
|
6757
6754
|
{
|
|
@@ -6761,7 +6758,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6761
6758
|
widget: "Button"
|
|
6762
6759
|
},
|
|
6763
6760
|
config: {
|
|
6764
|
-
layout:
|
|
6761
|
+
layout: { xs: 4, sm: 2 },
|
|
6765
6762
|
main: {
|
|
6766
6763
|
name: "Ok",
|
|
6767
6764
|
startIcon: "ApproveIcon",
|
|
@@ -6769,9 +6766,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6769
6766
|
type: "text",
|
|
6770
6767
|
onClick: "okHandler",
|
|
6771
6768
|
size: "medium"
|
|
6772
|
-
},
|
|
6773
|
-
style: {
|
|
6774
|
-
float: "right"
|
|
6775
6769
|
}
|
|
6776
6770
|
}
|
|
6777
6771
|
},
|
|
@@ -6782,7 +6776,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6782
6776
|
widget: "Button"
|
|
6783
6777
|
},
|
|
6784
6778
|
config: {
|
|
6785
|
-
layout:
|
|
6779
|
+
layout: { xs: 4, sm: 2 },
|
|
6786
6780
|
main: {
|
|
6787
6781
|
name: "Save & Exit",
|
|
6788
6782
|
startIcon: "ApproveIcon",
|
|
@@ -6790,9 +6784,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6790
6784
|
type: "text",
|
|
6791
6785
|
onClick: "saveHandler",
|
|
6792
6786
|
size: "medium"
|
|
6793
|
-
},
|
|
6794
|
-
style: {
|
|
6795
|
-
float: "right"
|
|
6796
6787
|
}
|
|
6797
6788
|
}
|
|
6798
6789
|
},
|
|
@@ -6864,7 +6855,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6864
6855
|
height: 0,
|
|
6865
6856
|
margin: 0,
|
|
6866
6857
|
top: 0,
|
|
6867
|
-
right: "
|
|
6858
|
+
right: { xs: "12px", sm: "84px" },
|
|
6868
6859
|
position: "absolute",
|
|
6869
6860
|
fontSize: "12px",
|
|
6870
6861
|
cursor: "pointer",
|
|
@@ -6886,6 +6877,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6886
6877
|
onClick: "backHandler"
|
|
6887
6878
|
},
|
|
6888
6879
|
style: {
|
|
6880
|
+
display: { xs: "none", sm: "flex" },
|
|
6889
6881
|
textAlign: "left",
|
|
6890
6882
|
lineHeight: 1,
|
|
6891
6883
|
height: 0,
|
|
@@ -6896,7 +6888,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6896
6888
|
marginLeft: "2px",
|
|
6897
6889
|
marginRight: 0,
|
|
6898
6890
|
top: 3,
|
|
6899
|
-
right: "
|
|
6891
|
+
right: "12px",
|
|
6900
6892
|
position: "absolute",
|
|
6901
6893
|
":hover": {
|
|
6902
6894
|
color: theme.palette.primary.dark
|
|
@@ -6920,7 +6912,7 @@ const CoreSection = {
|
|
|
6920
6912
|
widget: "SelectInputField"
|
|
6921
6913
|
},
|
|
6922
6914
|
config: {
|
|
6923
|
-
layout: { xs:
|
|
6915
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6924
6916
|
main: {
|
|
6925
6917
|
label: "Type",
|
|
6926
6918
|
type: "text"
|
|
@@ -6934,7 +6926,7 @@ const CoreSection = {
|
|
|
6934
6926
|
widget: "InputField"
|
|
6935
6927
|
},
|
|
6936
6928
|
config: {
|
|
6937
|
-
layout: { xs:
|
|
6929
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6938
6930
|
main: {
|
|
6939
6931
|
label: "Name"
|
|
6940
6932
|
}
|
|
@@ -6947,7 +6939,7 @@ const CoreSection = {
|
|
|
6947
6939
|
widget: "InputField"
|
|
6948
6940
|
},
|
|
6949
6941
|
config: {
|
|
6950
|
-
layout: { xs:
|
|
6942
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6951
6943
|
main: {
|
|
6952
6944
|
label: "Label"
|
|
6953
6945
|
}
|
|
@@ -6960,7 +6952,7 @@ const CoreSection = {
|
|
|
6960
6952
|
widget: "SelectInputField"
|
|
6961
6953
|
},
|
|
6962
6954
|
config: {
|
|
6963
|
-
layout: { xs:
|
|
6955
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6964
6956
|
main: {
|
|
6965
6957
|
label: "Column Format"
|
|
6966
6958
|
}
|
|
@@ -6970,7 +6962,7 @@ const CoreSection = {
|
|
|
6970
6962
|
type: "Control",
|
|
6971
6963
|
scope: "#/properties/proc",
|
|
6972
6964
|
config: {
|
|
6973
|
-
layout: { xs: 0, sm:
|
|
6965
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6974
6966
|
},
|
|
6975
6967
|
options: {
|
|
6976
6968
|
widget: "EmptyBox"
|
|
@@ -6980,7 +6972,7 @@ const CoreSection = {
|
|
|
6980
6972
|
type: "Control",
|
|
6981
6973
|
scope: "#/properties/proc",
|
|
6982
6974
|
config: {
|
|
6983
|
-
layout: { xs: 0, sm:
|
|
6975
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6984
6976
|
},
|
|
6985
6977
|
options: {
|
|
6986
6978
|
widget: "EmptyBox"
|
|
@@ -7002,7 +6994,7 @@ const CoreSection = {
|
|
|
7002
6994
|
widget: "SelectInputField"
|
|
7003
6995
|
},
|
|
7004
6996
|
config: {
|
|
7005
|
-
layout: { xs:
|
|
6997
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7006
6998
|
main: {
|
|
7007
6999
|
label: "Screen Size"
|
|
7008
7000
|
}
|
|
@@ -7015,7 +7007,7 @@ const CoreSection = {
|
|
|
7015
7007
|
widget: "InputField"
|
|
7016
7008
|
},
|
|
7017
7009
|
config: {
|
|
7018
|
-
layout: { xs:
|
|
7010
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7019
7011
|
main: {
|
|
7020
7012
|
label: "Value",
|
|
7021
7013
|
type: "number",
|
|
@@ -7028,7 +7020,7 @@ const CoreSection = {
|
|
|
7028
7020
|
type: "Control",
|
|
7029
7021
|
scope: "#/properties/proc",
|
|
7030
7022
|
config: {
|
|
7031
|
-
layout: { xs: 0, sm:
|
|
7023
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7032
7024
|
},
|
|
7033
7025
|
options: {
|
|
7034
7026
|
widget: "EmptyBox"
|
|
@@ -7141,17 +7133,29 @@ const EventSection = (theme) => {
|
|
|
7141
7133
|
};
|
|
7142
7134
|
return uiSchema;
|
|
7143
7135
|
};
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7136
|
+
const emptyBox$1 = (scope, layout) => {
|
|
7137
|
+
if (layout !== void 0) {
|
|
7138
|
+
return {
|
|
7139
|
+
type: "Control",
|
|
7140
|
+
scope: `#/properties/${scope}`,
|
|
7141
|
+
options: {
|
|
7142
|
+
widget: "EmptyBox"
|
|
7143
|
+
},
|
|
7144
|
+
config: {
|
|
7145
|
+
layout
|
|
7146
|
+
}
|
|
7147
|
+
};
|
|
7154
7148
|
}
|
|
7149
|
+
return {
|
|
7150
|
+
type: "Control",
|
|
7151
|
+
scope: "#/properties/empty",
|
|
7152
|
+
options: {
|
|
7153
|
+
widget: "EmptyBox"
|
|
7154
|
+
},
|
|
7155
|
+
config: {
|
|
7156
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7157
|
+
}
|
|
7158
|
+
};
|
|
7155
7159
|
};
|
|
7156
7160
|
const cardLayout = {
|
|
7157
7161
|
type: "Control",
|
|
@@ -7168,7 +7172,7 @@ const cardLayout = {
|
|
|
7168
7172
|
widget: "SelectInputField"
|
|
7169
7173
|
},
|
|
7170
7174
|
config: {
|
|
7171
|
-
layout: { xs:
|
|
7175
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7172
7176
|
main: {
|
|
7173
7177
|
label: "Screen Size"
|
|
7174
7178
|
}
|
|
@@ -7181,7 +7185,7 @@ const cardLayout = {
|
|
|
7181
7185
|
widget: "InputField"
|
|
7182
7186
|
},
|
|
7183
7187
|
config: {
|
|
7184
|
-
layout: { xs:
|
|
7188
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7185
7189
|
main: {
|
|
7186
7190
|
label: "Value",
|
|
7187
7191
|
type: "number",
|
|
@@ -7190,7 +7194,7 @@ const cardLayout = {
|
|
|
7190
7194
|
}
|
|
7191
7195
|
}
|
|
7192
7196
|
},
|
|
7193
|
-
emptyBox
|
|
7197
|
+
emptyBox$1("cardEmpty")
|
|
7194
7198
|
]
|
|
7195
7199
|
}
|
|
7196
7200
|
}
|
|
@@ -7212,14 +7216,14 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7212
7216
|
widget: "InputField"
|
|
7213
7217
|
},
|
|
7214
7218
|
config: {
|
|
7215
|
-
layout: { xs:
|
|
7219
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7216
7220
|
main: {
|
|
7217
7221
|
label: childLabel || "Labels for Tab"
|
|
7218
7222
|
}
|
|
7219
7223
|
}
|
|
7220
7224
|
},
|
|
7221
|
-
emptyBox,
|
|
7222
|
-
emptyBox
|
|
7225
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7226
|
+
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7223
7227
|
]
|
|
7224
7228
|
}
|
|
7225
7229
|
}
|
|
@@ -7233,13 +7237,13 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7233
7237
|
widget: "InputField"
|
|
7234
7238
|
},
|
|
7235
7239
|
config: {
|
|
7236
|
-
layout: { xs:
|
|
7240
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7237
7241
|
main: {
|
|
7238
7242
|
label: "Size"
|
|
7239
7243
|
}
|
|
7240
7244
|
}
|
|
7241
7245
|
};
|
|
7242
|
-
sizeHolder.options.detail.elements[2] = emptyBox;
|
|
7246
|
+
sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7243
7247
|
const getInputField = (scope, label) => {
|
|
7244
7248
|
return {
|
|
7245
7249
|
type: "Control",
|
|
@@ -7248,7 +7252,7 @@ const getInputField = (scope, label) => {
|
|
|
7248
7252
|
widget: "InputField"
|
|
7249
7253
|
},
|
|
7250
7254
|
config: {
|
|
7251
|
-
layout: { xs:
|
|
7255
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7252
7256
|
main: {
|
|
7253
7257
|
label
|
|
7254
7258
|
}
|
|
@@ -7263,7 +7267,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7263
7267
|
widget: "RadioInputField"
|
|
7264
7268
|
},
|
|
7265
7269
|
config: {
|
|
7266
|
-
layout: { xs:
|
|
7270
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
7267
7271
|
main: {
|
|
7268
7272
|
label,
|
|
7269
7273
|
options
|
|
@@ -7281,7 +7285,9 @@ const buildWrapper = (label, elements) => {
|
|
|
7281
7285
|
},
|
|
7282
7286
|
wrapperStyle: {
|
|
7283
7287
|
marginTop: "-6px",
|
|
7284
|
-
marginBottom: "-8px"
|
|
7288
|
+
marginBottom: "-8px",
|
|
7289
|
+
marginLeft: "-34px",
|
|
7290
|
+
width: "108%"
|
|
7285
7291
|
},
|
|
7286
7292
|
componentsBoxStyle: {
|
|
7287
7293
|
marginLeft: "24px"
|
|
@@ -7326,7 +7332,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7326
7332
|
widget: "SelectInputField"
|
|
7327
7333
|
},
|
|
7328
7334
|
config: {
|
|
7329
|
-
layout: { xs:
|
|
7335
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7330
7336
|
main: {
|
|
7331
7337
|
label,
|
|
7332
7338
|
type: "text"
|
|
@@ -7335,7 +7341,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7335
7341
|
};
|
|
7336
7342
|
};
|
|
7337
7343
|
const GraphSection = {
|
|
7338
|
-
type: "
|
|
7344
|
+
type: "WrapperLayout",
|
|
7339
7345
|
elements: []
|
|
7340
7346
|
};
|
|
7341
7347
|
const buildPropertiesSection = function(type) {
|
|
@@ -7348,7 +7354,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7348
7354
|
getInputField("graphHeight", "Graph Height"),
|
|
7349
7355
|
getInputField("graphWidth", "Graph Width"),
|
|
7350
7356
|
getInputField("graphZoomHeight", "Zoom Height"),
|
|
7351
|
-
emptyBox
|
|
7357
|
+
emptyBox$1("TreeEmpty", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7352
7358
|
];
|
|
7353
7359
|
break;
|
|
7354
7360
|
case "InputSlider":
|
|
@@ -7356,9 +7362,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7356
7362
|
getInputField("max", "Max Limit"),
|
|
7357
7363
|
getInputField("step", "Step"),
|
|
7358
7364
|
getInputField("min", "Min Limit"),
|
|
7365
|
+
emptyBox$1("InputSliderEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7359
7366
|
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
|
|
7360
|
-
emptyBox,
|
|
7361
|
-
emptyBox
|
|
7367
|
+
emptyBox$1("InputSliderEmpty2", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7362
7368
|
];
|
|
7363
7369
|
break;
|
|
7364
7370
|
case "DataGrid":
|
|
@@ -7367,8 +7373,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7367
7373
|
getInputField("elevation", "Card Elevation"),
|
|
7368
7374
|
getInputField("height", "Grid height"),
|
|
7369
7375
|
getInputField("justifyContent", "justifyContent"),
|
|
7370
|
-
emptyBox,
|
|
7371
|
-
emptyBox,
|
|
7376
|
+
emptyBox$1("DataGridEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
7377
|
+
emptyBox$1("DataGridEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7372
7378
|
cardLayout
|
|
7373
7379
|
];
|
|
7374
7380
|
break;
|
|
@@ -7379,7 +7385,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7379
7385
|
getInputField("resetText", "Reset Text"),
|
|
7380
7386
|
getInputField("completeText", "Complete Text"),
|
|
7381
7387
|
getSelectField("orientation", "Orientation Type"),
|
|
7382
|
-
emptyBox,
|
|
7388
|
+
emptyBox$1("Stepper", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7383
7389
|
getArrayControl("sectionLabels", "label")
|
|
7384
7390
|
];
|
|
7385
7391
|
break;
|
|
@@ -7387,22 +7393,23 @@ const buildPropertiesSection = function(type) {
|
|
|
7387
7393
|
uiSchema.elements = [
|
|
7388
7394
|
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
7389
7395
|
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
7390
|
-
getInputField("maxWidth", "Max. Width")
|
|
7396
|
+
getInputField("maxWidth", "Max. Width"),
|
|
7397
|
+
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7391
7398
|
];
|
|
7392
7399
|
break;
|
|
7393
7400
|
case "Text":
|
|
7394
7401
|
uiSchema.elements = [
|
|
7395
7402
|
getInputField("placeholder", "Placeholder"),
|
|
7396
|
-
emptyBox,
|
|
7397
|
-
emptyBox,
|
|
7403
|
+
emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7404
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7398
7405
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7399
7406
|
];
|
|
7400
7407
|
break;
|
|
7401
7408
|
case "TextArea":
|
|
7402
7409
|
uiSchema.elements = [
|
|
7403
7410
|
getInputField("placeholder", "Placeholder"),
|
|
7404
|
-
emptyBox,
|
|
7405
|
-
emptyBox
|
|
7411
|
+
emptyBox$1("TextAreaEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7412
|
+
emptyBox$1("TextAreaEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7406
7413
|
];
|
|
7407
7414
|
break;
|
|
7408
7415
|
case "SpeedoMeter":
|
|
@@ -7412,7 +7419,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7412
7419
|
getInputField("heading", "Container Heading"),
|
|
7413
7420
|
getInputField("speedoCaption", "Speedometer Caption"),
|
|
7414
7421
|
getInputField("width", "Speedometer Width"),
|
|
7415
|
-
emptyBox
|
|
7422
|
+
emptyBox$1("SpeedoMeterEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7416
7423
|
];
|
|
7417
7424
|
break;
|
|
7418
7425
|
case "RankCard":
|
|
@@ -7421,8 +7428,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7421
7428
|
getInputField("image", "Image Url"),
|
|
7422
7429
|
getInputField("title", "Card Title"),
|
|
7423
7430
|
getInputField("description", "Card Description"),
|
|
7424
|
-
emptyBox,
|
|
7425
|
-
emptyBox
|
|
7431
|
+
emptyBox$1("RankCardEmpty1"),
|
|
7432
|
+
emptyBox$1("RankCardEmpty2")
|
|
7426
7433
|
];
|
|
7427
7434
|
break;
|
|
7428
7435
|
case "LeaderBoard":
|
|
@@ -7431,8 +7438,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7431
7438
|
getInputField("firstImage", "First Image url"),
|
|
7432
7439
|
getInputField("secondImage", "Second Image url"),
|
|
7433
7440
|
getInputField("thirdImage", "Third Image url"),
|
|
7434
|
-
emptyBox,
|
|
7435
|
-
emptyBox,
|
|
7441
|
+
emptyBox$1("LeaderBoardEmpty1"),
|
|
7442
|
+
emptyBox$1("LeaderBoardEmpty2"),
|
|
7436
7443
|
getTextArea("functionCode", "Write Compare Code", false)
|
|
7437
7444
|
];
|
|
7438
7445
|
break;
|
|
@@ -7449,8 +7456,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7449
7456
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
7450
7457
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7451
7458
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7452
|
-
emptyBox,
|
|
7453
|
-
emptyBox
|
|
7459
|
+
emptyBox$1("ProgressBarCardEmpty1"),
|
|
7460
|
+
emptyBox$1("ProgressBarCardEmpty2")
|
|
7454
7461
|
];
|
|
7455
7462
|
break;
|
|
7456
7463
|
case "card":
|
|
@@ -7458,7 +7465,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7458
7465
|
getInputField("url", "Image Url"),
|
|
7459
7466
|
getInputField("label", "Label"),
|
|
7460
7467
|
getInputField("description", "Description"),
|
|
7461
|
-
emptyBox
|
|
7468
|
+
emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7462
7469
|
];
|
|
7463
7470
|
break;
|
|
7464
7471
|
case "Button":
|
|
@@ -7468,7 +7475,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7468
7475
|
getSelectField("color", "Color"),
|
|
7469
7476
|
getInputField("tooltipMessage", "Tooltip Message"),
|
|
7470
7477
|
getSelectField("defaultStyle", "Default Style"),
|
|
7471
|
-
emptyBox
|
|
7478
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7472
7479
|
];
|
|
7473
7480
|
break;
|
|
7474
7481
|
case "Graph":
|
|
@@ -7478,10 +7485,11 @@ const buildPropertiesSection = function(type) {
|
|
|
7478
7485
|
getSelectField("graphType", "Graph Type"),
|
|
7479
7486
|
getInputField("leftLabel", "Left Label"),
|
|
7480
7487
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7488
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7481
7489
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7482
7490
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7483
7491
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7484
|
-
emptyBox,
|
|
7492
|
+
emptyBox$1("GraphEmpty2"),
|
|
7485
7493
|
getArrayControl("legendLabels", "label"),
|
|
7486
7494
|
getArrayControl("pieArcColors", "color")
|
|
7487
7495
|
];
|
|
@@ -7492,15 +7500,15 @@ const buildPropertiesSection = function(type) {
|
|
|
7492
7500
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
7493
7501
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
7494
7502
|
getInputField("rowSpacing", "Row Spacing"),
|
|
7495
|
-
emptyBox,
|
|
7496
|
-
emptyBox
|
|
7503
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
7504
|
+
emptyBox$1("WrapperSectionEmpty2")
|
|
7497
7505
|
];
|
|
7498
7506
|
break;
|
|
7499
7507
|
case "TabSection":
|
|
7500
7508
|
uiSchema.elements = [
|
|
7501
7509
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
7502
7510
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
7503
|
-
emptyBox,
|
|
7511
|
+
emptyBox$1("TabEmpty"),
|
|
7504
7512
|
getArrayControl("sectionLabels", "label")
|
|
7505
7513
|
];
|
|
7506
7514
|
break;
|
|
@@ -7513,14 +7521,14 @@ const buildPropertiesSection = function(type) {
|
|
|
7513
7521
|
getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
|
|
7514
7522
|
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
7515
7523
|
getInputField("selectKey", "Selection Key"),
|
|
7516
|
-
emptyBox,
|
|
7524
|
+
emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7517
7525
|
buildWrapper("Tree Table Properties", [
|
|
7518
7526
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7519
7527
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
7520
7528
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
7521
7529
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
7522
|
-
emptyBox,
|
|
7523
|
-
emptyBox
|
|
7530
|
+
emptyBox$1("LazyLoadingTableEmpty2"),
|
|
7531
|
+
emptyBox$1("LazyLoadingTableEmpty3")
|
|
7524
7532
|
]),
|
|
7525
7533
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
7526
7534
|
sizeHolder
|
|
@@ -7535,14 +7543,14 @@ const buildPropertiesSection = function(type) {
|
|
|
7535
7543
|
uiSchema.elements = [
|
|
7536
7544
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7537
7545
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
7538
|
-
emptyBox
|
|
7546
|
+
emptyBox$1("SelectEmpty")
|
|
7539
7547
|
];
|
|
7540
7548
|
break;
|
|
7541
7549
|
case "MultipleSelect":
|
|
7542
7550
|
uiSchema.elements = [
|
|
7543
7551
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7544
|
-
emptyBox,
|
|
7545
|
-
emptyBox
|
|
7552
|
+
emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
7553
|
+
emptyBox$1("MultipleSelectEmpty2")
|
|
7546
7554
|
];
|
|
7547
7555
|
break;
|
|
7548
7556
|
}
|
|
@@ -7702,7 +7710,7 @@ const ValueTab = {
|
|
|
7702
7710
|
widget: "InputField"
|
|
7703
7711
|
},
|
|
7704
7712
|
config: {
|
|
7705
|
-
layout: { xs:
|
|
7713
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7706
7714
|
main: {
|
|
7707
7715
|
label: "Label"
|
|
7708
7716
|
}
|
|
@@ -7715,7 +7723,7 @@ const ValueTab = {
|
|
|
7715
7723
|
widget: "InputField"
|
|
7716
7724
|
},
|
|
7717
7725
|
config: {
|
|
7718
|
-
layout: { xs:
|
|
7726
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7719
7727
|
main: {
|
|
7720
7728
|
label: "Value"
|
|
7721
7729
|
}
|
|
@@ -7728,7 +7736,7 @@ const ValueTab = {
|
|
|
7728
7736
|
widget: "EmptyBox"
|
|
7729
7737
|
},
|
|
7730
7738
|
config: {
|
|
7731
|
-
layout: { xs: 0, sm:
|
|
7739
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7732
7740
|
}
|
|
7733
7741
|
}
|
|
7734
7742
|
]
|
|
@@ -7756,7 +7764,7 @@ const ValidationSection = {
|
|
|
7756
7764
|
widget: "SelectInputField"
|
|
7757
7765
|
},
|
|
7758
7766
|
config: {
|
|
7759
|
-
layout: { xs:
|
|
7767
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7760
7768
|
main: {
|
|
7761
7769
|
label: "Validation Type"
|
|
7762
7770
|
}
|
|
@@ -7769,7 +7777,7 @@ const ValidationSection = {
|
|
|
7769
7777
|
widget: "InputField"
|
|
7770
7778
|
},
|
|
7771
7779
|
config: {
|
|
7772
|
-
layout: { xs:
|
|
7780
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7773
7781
|
main: {
|
|
7774
7782
|
label: "Validation Value"
|
|
7775
7783
|
}
|
|
@@ -7782,7 +7790,7 @@ const ValidationSection = {
|
|
|
7782
7790
|
widget: "EmptyBox"
|
|
7783
7791
|
},
|
|
7784
7792
|
config: {
|
|
7785
|
-
layout: { xs: 0, sm: 4 }
|
|
7793
|
+
layout: { xs: 0, sm: 0, md: 4 }
|
|
7786
7794
|
}
|
|
7787
7795
|
}
|
|
7788
7796
|
]
|
|
@@ -7838,8 +7846,8 @@ const flatObjectValueInArray = (config = []) => {
|
|
|
7838
7846
|
});
|
|
7839
7847
|
return data;
|
|
7840
7848
|
};
|
|
7841
|
-
const
|
|
7842
|
-
|
|
7849
|
+
const clearFromSessionStorage = () => {
|
|
7850
|
+
sessionStorage.removeItem("pageFormdata");
|
|
7843
7851
|
};
|
|
7844
7852
|
const getNavigationHistory = (config, path) => {
|
|
7845
7853
|
if (path) {
|
|
@@ -7865,19 +7873,19 @@ const getNavigationHistory = (config, path) => {
|
|
|
7865
7873
|
}
|
|
7866
7874
|
return void 0;
|
|
7867
7875
|
};
|
|
7868
|
-
const
|
|
7876
|
+
const saveFormdataInSessionStorage = (formData, path) => {
|
|
7869
7877
|
let updatedFormdata;
|
|
7870
7878
|
if (path) {
|
|
7871
|
-
const pageFormdata =
|
|
7879
|
+
const pageFormdata = getFormdataFromSessionStorage();
|
|
7872
7880
|
updatedFormdata = _.set(pageFormdata, path, buildConfig(formData));
|
|
7873
7881
|
} else {
|
|
7874
7882
|
updatedFormdata = buildConfig(formData);
|
|
7875
7883
|
}
|
|
7876
|
-
|
|
7884
|
+
sessionStorage.setItem("pageFormdata", JSON.stringify(updatedFormdata));
|
|
7877
7885
|
return updatedFormdata;
|
|
7878
7886
|
};
|
|
7879
|
-
const
|
|
7880
|
-
const pageFormdata =
|
|
7887
|
+
const getFormdataFromSessionStorage = (path) => {
|
|
7888
|
+
const pageFormdata = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
|
|
7881
7889
|
let returnValue;
|
|
7882
7890
|
if (path) {
|
|
7883
7891
|
returnValue = _.get(pageFormdata, path);
|
|
@@ -7892,8 +7900,8 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
|
7892
7900
|
var _a, _b;
|
|
7893
7901
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7894
7902
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7895
|
-
|
|
7896
|
-
const config = JSON.parse(
|
|
7903
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
7904
|
+
const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
7897
7905
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7898
7906
|
try {
|
|
7899
7907
|
const saveReturn = await submitHandler(store2, service2, config);
|
|
@@ -7905,7 +7913,7 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
|
7905
7913
|
}
|
|
7906
7914
|
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
7907
7915
|
if (isSubmitted) {
|
|
7908
|
-
|
|
7916
|
+
sessionStorage.removeItem("pageFormdata");
|
|
7909
7917
|
store2.navigate(pageName || -1);
|
|
7910
7918
|
store2.setNotify({
|
|
7911
7919
|
SuccessMessage: "Submit Successfully",
|
|
@@ -7923,7 +7931,7 @@ function okHandler(store2) {
|
|
|
7923
7931
|
var _a;
|
|
7924
7932
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7925
7933
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7926
|
-
|
|
7934
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
7927
7935
|
store2.navigate(-1);
|
|
7928
7936
|
store2.setNotify({
|
|
7929
7937
|
SuccessMessage: "Save Successfully",
|
|
@@ -8000,7 +8008,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8000
8008
|
getFormdata: function() {
|
|
8001
8009
|
var _a;
|
|
8002
8010
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8003
|
-
return
|
|
8011
|
+
return getFormdataFromSessionStorage(path);
|
|
8004
8012
|
},
|
|
8005
8013
|
getSchema: function() {
|
|
8006
8014
|
return ComponentSchema;
|
|
@@ -8018,7 +8026,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8018
8026
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8019
8027
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8020
8028
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8021
|
-
|
|
8029
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8022
8030
|
if (path) {
|
|
8023
8031
|
const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
|
|
8024
8032
|
const finalPath = `${path2}.elements[${rowId}]`;
|
|
@@ -8032,27 +8040,27 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8032
8040
|
deleteComponents: function(shouldUpdateDialog = true) {
|
|
8033
8041
|
var _a;
|
|
8034
8042
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8035
|
-
const rowId =
|
|
8043
|
+
const rowId = sessionStorage.getItem("rowId");
|
|
8036
8044
|
store2.formData.elements.splice(rowId, 1);
|
|
8037
|
-
const response =
|
|
8045
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8038
8046
|
const data = path ? _.get(response, path) : response;
|
|
8039
8047
|
store2.setFormdata(data);
|
|
8040
8048
|
if (shouldUpdateDialog) {
|
|
8041
8049
|
store2.updateDialog("popUpComponentSection");
|
|
8042
8050
|
}
|
|
8043
|
-
|
|
8051
|
+
sessionStorage.removeItem("rowId");
|
|
8044
8052
|
},
|
|
8045
8053
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8046
8054
|
var _a;
|
|
8047
8055
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8048
|
-
const rowId =
|
|
8056
|
+
const rowId = sessionStorage.getItem("rowId");
|
|
8049
8057
|
store2.formData.events.splice(rowId, 1);
|
|
8050
|
-
const response =
|
|
8058
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8051
8059
|
store2.setFormdata(_.get(response, path));
|
|
8052
8060
|
if (shouldUpdateDialog) {
|
|
8053
8061
|
store2.updateDialog("popUpEventSection");
|
|
8054
8062
|
}
|
|
8055
|
-
|
|
8063
|
+
sessionStorage.removeItem("rowId");
|
|
8056
8064
|
},
|
|
8057
8065
|
widgetAddClickHandler: function() {
|
|
8058
8066
|
var _a;
|
|
@@ -8060,7 +8068,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8060
8068
|
store2.formData.elements = [];
|
|
8061
8069
|
}
|
|
8062
8070
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8063
|
-
|
|
8071
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8064
8072
|
const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
|
|
8065
8073
|
store2.searchParams.set("path", finalPath);
|
|
8066
8074
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -8071,7 +8079,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8071
8079
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8072
8080
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8073
8081
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8074
|
-
|
|
8082
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8075
8083
|
const finalPath = `${path}.events[${rowId}]`;
|
|
8076
8084
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8077
8085
|
},
|
|
@@ -8082,7 +8090,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8082
8090
|
if (!Array.isArray(store2.formData.events)) {
|
|
8083
8091
|
store2.formData.events = [];
|
|
8084
8092
|
}
|
|
8085
|
-
|
|
8093
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8086
8094
|
const finalPath = `${path}.events[${store2.formData.events.length}]`;
|
|
8087
8095
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8088
8096
|
},
|
|
@@ -8091,12 +8099,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8091
8099
|
},
|
|
8092
8100
|
deletePopUpComponent: function() {
|
|
8093
8101
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8094
|
-
|
|
8102
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8095
8103
|
store2.updateDialog("popUpComponentSection");
|
|
8096
8104
|
},
|
|
8097
8105
|
deletePopUpEvent: function() {
|
|
8098
8106
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8099
|
-
|
|
8107
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8100
8108
|
store2.updateDialog("popUpEventSection");
|
|
8101
8109
|
}
|
|
8102
8110
|
};
|
|
@@ -8116,11 +8124,11 @@ var pageMaster = (funcParams) => {
|
|
|
8116
8124
|
var _a;
|
|
8117
8125
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8118
8126
|
const config = await funcParams.pageConfigProvider(id);
|
|
8119
|
-
const formData =
|
|
8127
|
+
const formData = getFormdataFromSessionStorage();
|
|
8120
8128
|
if (formData) {
|
|
8121
8129
|
return formData;
|
|
8122
8130
|
}
|
|
8123
|
-
|
|
8131
|
+
saveFormdataInSessionStorage(config);
|
|
8124
8132
|
return config;
|
|
8125
8133
|
},
|
|
8126
8134
|
getUiSchema: function() {
|
|
@@ -8130,7 +8138,7 @@ var pageMaster = (funcParams) => {
|
|
|
8130
8138
|
return PageMasterSchema;
|
|
8131
8139
|
},
|
|
8132
8140
|
backHandler: () => {
|
|
8133
|
-
|
|
8141
|
+
sessionStorage.removeItem("pageFormdata");
|
|
8134
8142
|
store2.navigate("/PageMasterRecords");
|
|
8135
8143
|
},
|
|
8136
8144
|
onAddClickHandler: function() {
|
|
@@ -8139,7 +8147,7 @@ var pageMaster = (funcParams) => {
|
|
|
8139
8147
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8140
8148
|
store2.formData.elements = [];
|
|
8141
8149
|
}
|
|
8142
|
-
const response =
|
|
8150
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8143
8151
|
if (id) {
|
|
8144
8152
|
store2.navigate(
|
|
8145
8153
|
`/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
|
|
@@ -8162,7 +8170,7 @@ var pageMaster = (funcParams) => {
|
|
|
8162
8170
|
if (!Array.isArray(store2.formData.events)) {
|
|
8163
8171
|
store2.formData.events = [];
|
|
8164
8172
|
}
|
|
8165
|
-
|
|
8173
|
+
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8166
8174
|
const finalPath = `events[${store2.formData.events.length}]`;
|
|
8167
8175
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8168
8176
|
},
|
|
@@ -8170,26 +8178,26 @@ var pageMaster = (funcParams) => {
|
|
|
8170
8178
|
var _a;
|
|
8171
8179
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8172
8180
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8173
|
-
|
|
8181
|
+
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8174
8182
|
const finalPath = `events[${rowId}]`;
|
|
8175
8183
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8176
8184
|
},
|
|
8177
8185
|
deleteEvent: function() {
|
|
8178
|
-
const rowId =
|
|
8186
|
+
const rowId = sessionStorage.getItem("rowId");
|
|
8179
8187
|
store2.formData.events.splice(rowId, 1);
|
|
8180
|
-
const response =
|
|
8188
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8181
8189
|
store2.setFormdata(response);
|
|
8182
8190
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8183
|
-
|
|
8191
|
+
sessionStorage.removeItem("rowId");
|
|
8184
8192
|
},
|
|
8185
8193
|
deletePopUpComponent: function() {
|
|
8186
8194
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8187
|
-
|
|
8195
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8188
8196
|
store2.updateDialog("popUpPageMasterComponent");
|
|
8189
8197
|
},
|
|
8190
8198
|
deletePopUpEvent: function() {
|
|
8191
8199
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8192
|
-
|
|
8200
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8193
8201
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8194
8202
|
}
|
|
8195
8203
|
};
|
|
@@ -8328,7 +8336,7 @@ const EventUiSchema = (theme) => {
|
|
|
8328
8336
|
widget: "SelectInputField"
|
|
8329
8337
|
},
|
|
8330
8338
|
config: {
|
|
8331
|
-
layout: { xs:
|
|
8339
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8332
8340
|
main: {
|
|
8333
8341
|
label: "Event Type",
|
|
8334
8342
|
type: "text"
|
|
@@ -8448,17 +8456,7 @@ const EventUiSchema = (theme) => {
|
|
|
8448
8456
|
widget: "EmptyBox"
|
|
8449
8457
|
},
|
|
8450
8458
|
config: {
|
|
8451
|
-
layout: { xs:
|
|
8452
|
-
}
|
|
8453
|
-
},
|
|
8454
|
-
{
|
|
8455
|
-
type: "Control",
|
|
8456
|
-
scope: "#/properties/EmptyBox",
|
|
8457
|
-
options: {
|
|
8458
|
-
widget: "EmptyBox"
|
|
8459
|
-
},
|
|
8460
|
-
config: {
|
|
8461
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 }
|
|
8459
|
+
layout: { xs: 4, sm: 8 }
|
|
8462
8460
|
}
|
|
8463
8461
|
},
|
|
8464
8462
|
{
|
|
@@ -8468,7 +8466,7 @@ const EventUiSchema = (theme) => {
|
|
|
8468
8466
|
widget: "Button"
|
|
8469
8467
|
},
|
|
8470
8468
|
config: {
|
|
8471
|
-
layout:
|
|
8469
|
+
layout: { xs: 4, sm: 2 },
|
|
8472
8470
|
main: {
|
|
8473
8471
|
name: "Ok",
|
|
8474
8472
|
startIcon: "ApproveIcon",
|
|
@@ -8489,7 +8487,7 @@ const EventUiSchema = (theme) => {
|
|
|
8489
8487
|
widget: "Button"
|
|
8490
8488
|
},
|
|
8491
8489
|
config: {
|
|
8492
|
-
layout:
|
|
8490
|
+
layout: { xs: 4, sm: 2 },
|
|
8493
8491
|
main: {
|
|
8494
8492
|
name: "Save & Exit",
|
|
8495
8493
|
startIcon: "ApproveIcon",
|
|
@@ -8665,7 +8663,7 @@ const EventUiSchema = (theme) => {
|
|
|
8665
8663
|
height: 0,
|
|
8666
8664
|
margin: 0,
|
|
8667
8665
|
top: 0,
|
|
8668
|
-
right: "
|
|
8666
|
+
right: { xs: "12px", sm: "84px" },
|
|
8669
8667
|
position: "absolute",
|
|
8670
8668
|
fontSize: "12px",
|
|
8671
8669
|
cursor: "pointer",
|
|
@@ -8687,6 +8685,7 @@ const EventUiSchema = (theme) => {
|
|
|
8687
8685
|
onClick: "backHandler"
|
|
8688
8686
|
},
|
|
8689
8687
|
style: {
|
|
8688
|
+
display: { xs: "none", sm: "flex" },
|
|
8690
8689
|
textAlign: "left",
|
|
8691
8690
|
lineHeight: 1,
|
|
8692
8691
|
height: 0,
|
|
@@ -8721,7 +8720,7 @@ const APISection = {
|
|
|
8721
8720
|
widget: "SelectInputField"
|
|
8722
8721
|
},
|
|
8723
8722
|
config: {
|
|
8724
|
-
layout: { xs:
|
|
8723
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8725
8724
|
main: {
|
|
8726
8725
|
label: "Method",
|
|
8727
8726
|
type: "text"
|
|
@@ -8735,7 +8734,7 @@ const APISection = {
|
|
|
8735
8734
|
widget: "InputField"
|
|
8736
8735
|
},
|
|
8737
8736
|
config: {
|
|
8738
|
-
layout: { xs:
|
|
8737
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8739
8738
|
main: {
|
|
8740
8739
|
label: "Path",
|
|
8741
8740
|
type: "text",
|
|
@@ -8751,7 +8750,7 @@ const APISection = {
|
|
|
8751
8750
|
widget: "EmptyBox"
|
|
8752
8751
|
},
|
|
8753
8752
|
config: {
|
|
8754
|
-
layout: { xs: 0, sm:
|
|
8753
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8755
8754
|
}
|
|
8756
8755
|
},
|
|
8757
8756
|
{
|
|
@@ -8761,7 +8760,7 @@ const APISection = {
|
|
|
8761
8760
|
widget: "EmptyBox"
|
|
8762
8761
|
},
|
|
8763
8762
|
config: {
|
|
8764
|
-
layout: { xs: 0, sm:
|
|
8763
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8765
8764
|
}
|
|
8766
8765
|
},
|
|
8767
8766
|
{
|
|
@@ -8780,7 +8779,7 @@ const APISection = {
|
|
|
8780
8779
|
widget: "InputField"
|
|
8781
8780
|
},
|
|
8782
8781
|
config: {
|
|
8783
|
-
layout: { xs:
|
|
8782
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8784
8783
|
main: {
|
|
8785
8784
|
label: "Key"
|
|
8786
8785
|
}
|
|
@@ -8793,7 +8792,7 @@ const APISection = {
|
|
|
8793
8792
|
widget: "InputField"
|
|
8794
8793
|
},
|
|
8795
8794
|
config: {
|
|
8796
|
-
layout: { xs:
|
|
8795
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8797
8796
|
main: {
|
|
8798
8797
|
label: "Value"
|
|
8799
8798
|
}
|
|
@@ -8806,7 +8805,7 @@ const APISection = {
|
|
|
8806
8805
|
widget: "EmptyBox"
|
|
8807
8806
|
},
|
|
8808
8807
|
config: {
|
|
8809
|
-
layout: { xs: 0, sm:
|
|
8808
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8810
8809
|
}
|
|
8811
8810
|
}
|
|
8812
8811
|
]
|
|
@@ -8829,7 +8828,7 @@ const APISection = {
|
|
|
8829
8828
|
widget: "InputField"
|
|
8830
8829
|
},
|
|
8831
8830
|
config: {
|
|
8832
|
-
layout: { xs:
|
|
8831
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8833
8832
|
main: {
|
|
8834
8833
|
label: "Key"
|
|
8835
8834
|
}
|
|
@@ -8842,7 +8841,7 @@ const APISection = {
|
|
|
8842
8841
|
widget: "InputField"
|
|
8843
8842
|
},
|
|
8844
8843
|
config: {
|
|
8845
|
-
layout: { xs:
|
|
8844
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8846
8845
|
main: {
|
|
8847
8846
|
label: "Value"
|
|
8848
8847
|
}
|
|
@@ -8855,7 +8854,7 @@ const APISection = {
|
|
|
8855
8854
|
widget: "EmptyBox"
|
|
8856
8855
|
},
|
|
8857
8856
|
config: {
|
|
8858
|
-
layout: { xs: 0, sm:
|
|
8857
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8859
8858
|
}
|
|
8860
8859
|
}
|
|
8861
8860
|
]
|
|
@@ -8883,7 +8882,7 @@ const refreshSectionUiSchema = {
|
|
|
8883
8882
|
widget: "InputField"
|
|
8884
8883
|
},
|
|
8885
8884
|
config: {
|
|
8886
|
-
layout: { xs:
|
|
8885
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
8887
8886
|
main: {
|
|
8888
8887
|
label: "Value"
|
|
8889
8888
|
}
|
|
@@ -8896,7 +8895,7 @@ const refreshSectionUiSchema = {
|
|
|
8896
8895
|
widget: "EmptyBox"
|
|
8897
8896
|
},
|
|
8898
8897
|
config: {
|
|
8899
|
-
layout: { xs: 0, sm:
|
|
8898
|
+
layout: { xs: 0, sm: 6, md: 4, lg: 4 },
|
|
8900
8899
|
main: {}
|
|
8901
8900
|
}
|
|
8902
8901
|
},
|
|
@@ -8907,7 +8906,7 @@ const refreshSectionUiSchema = {
|
|
|
8907
8906
|
widget: "EmptyBox"
|
|
8908
8907
|
},
|
|
8909
8908
|
config: {
|
|
8910
|
-
layout: { xs: 0, sm:
|
|
8909
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
8911
8910
|
main: {}
|
|
8912
8911
|
}
|
|
8913
8912
|
}
|
|
@@ -8917,6 +8916,18 @@ const refreshSectionUiSchema = {
|
|
|
8917
8916
|
}
|
|
8918
8917
|
]
|
|
8919
8918
|
};
|
|
8919
|
+
var emptyBox = {
|
|
8920
|
+
type: "Control",
|
|
8921
|
+
scope: "#/properties/emptyBox",
|
|
8922
|
+
options: {
|
|
8923
|
+
widget: "EmptyBox"
|
|
8924
|
+
},
|
|
8925
|
+
config: {
|
|
8926
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
8927
|
+
main: {},
|
|
8928
|
+
style: {}
|
|
8929
|
+
}
|
|
8930
|
+
};
|
|
8920
8931
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
8921
8932
|
return {
|
|
8922
8933
|
setPage: async function() {
|
|
@@ -8932,7 +8943,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8932
8943
|
if (handlerType) {
|
|
8933
8944
|
if (handlerType === "custom") {
|
|
8934
8945
|
uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
|
|
8935
|
-
uiSchema.elements[1].elements[0].elements[3] =
|
|
8946
|
+
uiSchema.elements[1].elements[0].elements[3] = {
|
|
8947
|
+
type: "Control",
|
|
8948
|
+
scope: "#/properties/emptyBox",
|
|
8949
|
+
options: {
|
|
8950
|
+
widget: "EmptyBox"
|
|
8951
|
+
},
|
|
8952
|
+
config: {
|
|
8953
|
+
layout: { xs: 0, sm: 6, md: 0, lg: 0 },
|
|
8954
|
+
main: {},
|
|
8955
|
+
style: {}
|
|
8956
|
+
}
|
|
8957
|
+
};
|
|
8958
|
+
uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
|
|
8936
8959
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
8937
8960
|
} else if (handlerType === "api") {
|
|
8938
8961
|
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
@@ -8940,7 +8963,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8940
8963
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
8941
8964
|
} else if (handlerType === "inBuiltFunction") {
|
|
8942
8965
|
uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
|
|
8943
|
-
uiSchema.elements[1].elements[0].elements[3] =
|
|
8966
|
+
uiSchema.elements[1].elements[0].elements[3] = {
|
|
8967
|
+
type: "Control",
|
|
8968
|
+
scope: "#/properties/emptyBox",
|
|
8969
|
+
options: {
|
|
8970
|
+
widget: "EmptyBox"
|
|
8971
|
+
},
|
|
8972
|
+
config: {
|
|
8973
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 0 },
|
|
8974
|
+
main: {},
|
|
8975
|
+
style: {}
|
|
8976
|
+
}
|
|
8977
|
+
};
|
|
8978
|
+
uiSchema.elements[1].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
8944
8979
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
8945
8980
|
} else if (handlerType === "refresh") {
|
|
8946
8981
|
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
@@ -8980,7 +9015,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8980
9015
|
if (!Array.isArray(store2.formData.events)) {
|
|
8981
9016
|
store2.formData.events = [];
|
|
8982
9017
|
}
|
|
8983
|
-
|
|
9018
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8984
9019
|
const finalPath = `${path}.events[${(_c = (_b = store2.formData) == null ? void 0 : _b.events) == null ? void 0 : _c.length}]`;
|
|
8985
9020
|
store2.searchParams.set("path", finalPath);
|
|
8986
9021
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -8990,7 +9025,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8990
9025
|
var _a;
|
|
8991
9026
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8992
9027
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8993
|
-
|
|
9028
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8994
9029
|
const finalPath = `${path}.events[${rowId}]`;
|
|
8995
9030
|
store2.searchParams.set("path", finalPath);
|
|
8996
9031
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -9005,7 +9040,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9005
9040
|
},
|
|
9006
9041
|
deletePopUpEvent: function() {
|
|
9007
9042
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9008
|
-
|
|
9043
|
+
sessionStorage.setItem("rowId", rowId);
|
|
9009
9044
|
store2.updateDialog("popUpEvent");
|
|
9010
9045
|
}
|
|
9011
9046
|
};
|
|
@@ -9177,7 +9212,7 @@ function executeCustomHandler(params) {
|
|
|
9177
9212
|
return response;
|
|
9178
9213
|
}
|
|
9179
9214
|
}
|
|
9180
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2,
|
|
9215
|
+
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9181
9216
|
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9182
9217
|
store2.setSchema((pre) => {
|
|
9183
9218
|
var _a;
|
|
@@ -9221,9 +9256,9 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9221
9256
|
}
|
|
9222
9257
|
} else {
|
|
9223
9258
|
if (handlerResponse) {
|
|
9224
|
-
|
|
9259
|
+
formDataHolder[componentName] = handlerResponse.data;
|
|
9225
9260
|
store2.setFormdata((pre) => {
|
|
9226
|
-
return { ...pre, ...
|
|
9261
|
+
return { ...pre, ...formDataHolder };
|
|
9227
9262
|
});
|
|
9228
9263
|
}
|
|
9229
9264
|
}
|
|
@@ -9244,7 +9279,7 @@ const buildBodyFormat = (body2, formData, userValue2, store2) => {
|
|
|
9244
9279
|
finalBody[elem.key] = value;
|
|
9245
9280
|
} else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
|
|
9246
9281
|
const finalpath = elem.value.substring(7);
|
|
9247
|
-
const value = JSON.parse(
|
|
9282
|
+
const value = JSON.parse(sessionStorage.getItem(finalpath) || '""');
|
|
9248
9283
|
finalBody[elem.key] = value;
|
|
9249
9284
|
} else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
|
|
9250
9285
|
const finalpath = elem.value.substring(1);
|
|
@@ -9313,7 +9348,6 @@ const notifyUiSchema = {
|
|
|
9313
9348
|
},
|
|
9314
9349
|
layout: 6
|
|
9315
9350
|
};
|
|
9316
|
-
let formDataHolder = {};
|
|
9317
9351
|
let pageData = false;
|
|
9318
9352
|
const extractEvents = (eventConfig) => {
|
|
9319
9353
|
function extractsConfigEvents(eventConfigObj) {
|
|
@@ -9356,6 +9390,7 @@ const extractEvents = (eventConfig) => {
|
|
|
9356
9390
|
};
|
|
9357
9391
|
var service = (funcParams) => {
|
|
9358
9392
|
eventGroups = {};
|
|
9393
|
+
const formDataHolder = {};
|
|
9359
9394
|
if (pageData) {
|
|
9360
9395
|
if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
|
|
9361
9396
|
eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
|
|
@@ -9378,12 +9413,12 @@ var service = (funcParams) => {
|
|
|
9378
9413
|
var _a, _b, _c, _d;
|
|
9379
9414
|
funcParams.store.setFormdata({});
|
|
9380
9415
|
funcParams.store.newData = {};
|
|
9381
|
-
const pageBasicDetailString =
|
|
9416
|
+
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
9382
9417
|
if (pageBasicDetailString) {
|
|
9383
9418
|
pageData = JSON.parse(pageBasicDetailString);
|
|
9384
9419
|
} else {
|
|
9385
9420
|
pageData = await funcParams.pageDataProvider();
|
|
9386
|
-
|
|
9421
|
+
sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
9387
9422
|
schema: pageData == null ? void 0 : pageData.schema,
|
|
9388
9423
|
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
9389
9424
|
config: pageData == null ? void 0 : pageData.config
|
|
@@ -9457,7 +9492,7 @@ var service = (funcParams) => {
|
|
|
9457
9492
|
height: 0,
|
|
9458
9493
|
margin: 0,
|
|
9459
9494
|
top: 0,
|
|
9460
|
-
right: "
|
|
9495
|
+
right: { xs: "12px", sm: "84px" },
|
|
9461
9496
|
position: "absolute",
|
|
9462
9497
|
fontSize: "12px",
|
|
9463
9498
|
cursor: "pointer",
|
|
@@ -9479,6 +9514,7 @@ var service = (funcParams) => {
|
|
|
9479
9514
|
onClick: "backHandler"
|
|
9480
9515
|
},
|
|
9481
9516
|
style: {
|
|
9517
|
+
display: { xs: "none", sm: "flex" },
|
|
9482
9518
|
textAlign: "left",
|
|
9483
9519
|
lineHeight: 1,
|
|
9484
9520
|
height: 0,
|
|
@@ -10105,7 +10141,7 @@ const buildProgressBar = (config, componentScope) => {
|
|
|
10105
10141
|
if (config.layout) {
|
|
10106
10142
|
ProgressBar.config.layout = config.layout;
|
|
10107
10143
|
}
|
|
10108
|
-
ProgressBar.config.main.heading = config.
|
|
10144
|
+
ProgressBar.config.main.heading = config.label;
|
|
10109
10145
|
if (config.bottomLabel_3) {
|
|
10110
10146
|
ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
|
|
10111
10147
|
}
|
|
@@ -10450,7 +10486,7 @@ var TextInputField = {
|
|
|
10450
10486
|
widget: "InputField"
|
|
10451
10487
|
},
|
|
10452
10488
|
config: {
|
|
10453
|
-
layout: { xs:
|
|
10489
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
10454
10490
|
main: {
|
|
10455
10491
|
label: ""
|
|
10456
10492
|
},
|
|
@@ -10483,7 +10519,7 @@ var SelectInputField = {
|
|
|
10483
10519
|
widget: "SelectInputField"
|
|
10484
10520
|
},
|
|
10485
10521
|
config: {
|
|
10486
|
-
layout: { xs:
|
|
10522
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
10487
10523
|
main: {
|
|
10488
10524
|
label: "",
|
|
10489
10525
|
type: "text",
|
|
@@ -10707,7 +10743,7 @@ const uploadFile = {
|
|
|
10707
10743
|
"style": {
|
|
10708
10744
|
"backgroundColor": "none"
|
|
10709
10745
|
},
|
|
10710
|
-
layout: { xs:
|
|
10746
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 }
|
|
10711
10747
|
},
|
|
10712
10748
|
"options": {
|
|
10713
10749
|
"widget": "UploadFile"
|
|
@@ -10724,7 +10760,7 @@ const downloadFile = {
|
|
|
10724
10760
|
"style": {
|
|
10725
10761
|
"backgroundColor": "none"
|
|
10726
10762
|
},
|
|
10727
|
-
layout: { xs:
|
|
10763
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 }
|
|
10728
10764
|
},
|
|
10729
10765
|
"options": {
|
|
10730
10766
|
"widget": "DownloadFile"
|
|
@@ -10769,121 +10805,158 @@ const buildDownloadFile = (config, componentScope) => {
|
|
|
10769
10805
|
}
|
|
10770
10806
|
return DownloadFile;
|
|
10771
10807
|
};
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
config: {
|
|
10794
|
-
main: {
|
|
10795
|
-
heading: "$5000.00"
|
|
10796
|
-
},
|
|
10797
|
-
style: {
|
|
10798
|
-
position: "absolute",
|
|
10799
|
-
left: "10%",
|
|
10800
|
-
top: "15%",
|
|
10801
|
-
color: "#f5effc",
|
|
10802
|
-
height: "80px",
|
|
10803
|
-
display: "flex",
|
|
10804
|
-
fontSize: { xs: "24px", md: "32px" },
|
|
10805
|
-
alignItems: "center",
|
|
10806
|
-
background: "inherit",
|
|
10807
|
-
justifyContent: "flex-start"
|
|
10808
|
-
},
|
|
10809
|
-
layout: 5
|
|
10808
|
+
function Card(theme) {
|
|
10809
|
+
const uiSchema = {
|
|
10810
|
+
type: "WrapperLayout",
|
|
10811
|
+
config: {
|
|
10812
|
+
main: {},
|
|
10813
|
+
wrapperStyle: {},
|
|
10814
|
+
componentsBoxStyle: {
|
|
10815
|
+
flexDirection: "row",
|
|
10816
|
+
flexWrap: "nowrap",
|
|
10817
|
+
width: "100%",
|
|
10818
|
+
background: "transparent",
|
|
10819
|
+
border: `1.5px solid ${theme.palette.primary.main}`,
|
|
10820
|
+
borderRadius: "20px",
|
|
10821
|
+
padding: "0px 20px 0px 20px",
|
|
10822
|
+
"&: hover": {
|
|
10823
|
+
background: `${theme.palette.primary.main}`,
|
|
10824
|
+
border: `1.5px solid black`,
|
|
10825
|
+
"& p": {
|
|
10826
|
+
color: "white"
|
|
10827
|
+
}
|
|
10828
|
+
}
|
|
10810
10829
|
},
|
|
10811
|
-
|
|
10812
|
-
widget: "Box"
|
|
10813
|
-
}
|
|
10830
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 }
|
|
10814
10831
|
},
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
10821
|
-
},
|
|
10822
|
-
style: {
|
|
10823
|
-
color: "#f5effc",
|
|
10824
|
-
objectFit: "contain",
|
|
10825
|
-
position: "absolute",
|
|
10826
|
-
top: "10px",
|
|
10827
|
-
right: "10px",
|
|
10828
|
-
height: "80%",
|
|
10829
|
-
width: "35%",
|
|
10830
|
-
display: "flex",
|
|
10831
|
-
fontSize: "34px",
|
|
10832
|
-
alignItems: "center",
|
|
10833
|
-
background: "inherit",
|
|
10834
|
-
padding: "20px",
|
|
10835
|
-
justifyContent: "left"
|
|
10832
|
+
elements: [
|
|
10833
|
+
{
|
|
10834
|
+
type: "HorizontalLayout",
|
|
10835
|
+
config: {
|
|
10836
|
+
layout: 8
|
|
10836
10837
|
},
|
|
10837
|
-
|
|
10838
|
+
elements: [
|
|
10839
|
+
{
|
|
10840
|
+
type: "WrapperLayout",
|
|
10841
|
+
config: {
|
|
10842
|
+
main: {
|
|
10843
|
+
columnSpacing: 0,
|
|
10844
|
+
gap: 0
|
|
10845
|
+
},
|
|
10846
|
+
wrapperStyle: {
|
|
10847
|
+
marginTop: "4px",
|
|
10848
|
+
background: "transparent"
|
|
10849
|
+
},
|
|
10850
|
+
componentsBoxStyle: {
|
|
10851
|
+
flexDirection: "column",
|
|
10852
|
+
flexWrap: "nowrap",
|
|
10853
|
+
width: "100%",
|
|
10854
|
+
height: "inherit",
|
|
10855
|
+
background: "transparent",
|
|
10856
|
+
borderRadius: "0px"
|
|
10857
|
+
},
|
|
10858
|
+
layout: 12
|
|
10859
|
+
},
|
|
10860
|
+
elements: [
|
|
10861
|
+
{
|
|
10862
|
+
type: "Control",
|
|
10863
|
+
scope: "#/properties/programType",
|
|
10864
|
+
config: {
|
|
10865
|
+
main: {
|
|
10866
|
+
heading: "$5000.00"
|
|
10867
|
+
},
|
|
10868
|
+
style: {
|
|
10869
|
+
color: "black",
|
|
10870
|
+
display: "flex",
|
|
10871
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
10872
|
+
fontWeight: "bold",
|
|
10873
|
+
background: "inherit",
|
|
10874
|
+
justifyContent: "flex-start",
|
|
10875
|
+
width: "calc(100%+8px)",
|
|
10876
|
+
margin: "-8px"
|
|
10877
|
+
},
|
|
10878
|
+
layout: 12
|
|
10879
|
+
},
|
|
10880
|
+
options: {
|
|
10881
|
+
widget: "Box"
|
|
10882
|
+
}
|
|
10883
|
+
},
|
|
10884
|
+
{
|
|
10885
|
+
type: "Control",
|
|
10886
|
+
scope: "#/properties/programType",
|
|
10887
|
+
config: {
|
|
10888
|
+
main: {
|
|
10889
|
+
heading: "Total Earnings"
|
|
10890
|
+
},
|
|
10891
|
+
style: {
|
|
10892
|
+
color: "black",
|
|
10893
|
+
fontSize: "16px",
|
|
10894
|
+
justifyContent: "center",
|
|
10895
|
+
textWrap: "wrap",
|
|
10896
|
+
background: "inherit",
|
|
10897
|
+
width: "calc(100%+8pc)",
|
|
10898
|
+
margin: "-8px",
|
|
10899
|
+
lineHeight: "1"
|
|
10900
|
+
},
|
|
10901
|
+
layout: 12
|
|
10902
|
+
},
|
|
10903
|
+
options: {
|
|
10904
|
+
widget: "Box"
|
|
10905
|
+
}
|
|
10906
|
+
}
|
|
10907
|
+
]
|
|
10908
|
+
}
|
|
10909
|
+
]
|
|
10838
10910
|
},
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10911
|
+
{
|
|
10912
|
+
type: "Control",
|
|
10913
|
+
scope: "#/properties/programType",
|
|
10914
|
+
config: {
|
|
10915
|
+
main: {
|
|
10916
|
+
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
10917
|
+
},
|
|
10918
|
+
style: {
|
|
10919
|
+
containerStyle: {
|
|
10920
|
+
height: "100%",
|
|
10921
|
+
display: "flex",
|
|
10922
|
+
justifyContent: "center"
|
|
10923
|
+
},
|
|
10924
|
+
imageStyle: {
|
|
10925
|
+
height: "100%",
|
|
10926
|
+
fontSize: "none",
|
|
10927
|
+
padding: "4px",
|
|
10928
|
+
marginLeft: "8px"
|
|
10929
|
+
}
|
|
10930
|
+
},
|
|
10931
|
+
layout: 4
|
|
10859
10932
|
},
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
widget: "Box"
|
|
10933
|
+
options: {
|
|
10934
|
+
widget: "Image"
|
|
10935
|
+
}
|
|
10864
10936
|
}
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10937
|
+
]
|
|
10938
|
+
};
|
|
10939
|
+
return uiSchema;
|
|
10940
|
+
}
|
|
10941
|
+
const buildCard = (config, componentScope, store2) => {
|
|
10942
|
+
const card = _.cloneDeep(Card(store2.theme.myTheme));
|
|
10870
10943
|
if (config.style) {
|
|
10871
10944
|
card.config.style = JSON.parse(config.style);
|
|
10872
10945
|
}
|
|
10873
|
-
card.elements[0].scope = `#/properties/${config.name}/properties/value`;
|
|
10946
|
+
card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
|
|
10874
10947
|
card.elements[1].scope = `#/properties/${config.name}/properties/url`;
|
|
10875
|
-
card.elements[
|
|
10948
|
+
card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
|
|
10876
10949
|
if (config.layout) {
|
|
10877
10950
|
card.config.layout = createLayoutFormat(config.layout);
|
|
10878
10951
|
}
|
|
10879
10952
|
if (config.label) {
|
|
10880
|
-
card.elements[0].config.main.heading = config.label;
|
|
10953
|
+
card.elements[0].elements[0].elements[0].config.main.heading = config.label;
|
|
10881
10954
|
}
|
|
10882
10955
|
if (config.url) {
|
|
10883
10956
|
card.elements[1].config.main.url = config.url;
|
|
10884
10957
|
}
|
|
10885
10958
|
if (config.description) {
|
|
10886
|
-
card.elements[
|
|
10959
|
+
card.elements[0].elements[0].elements[1].config.main.heading = config.description;
|
|
10887
10960
|
}
|
|
10888
10961
|
return card;
|
|
10889
10962
|
};
|
|
@@ -10894,7 +10967,7 @@ var DateInputField = {
|
|
|
10894
10967
|
widget: "DateInputField"
|
|
10895
10968
|
},
|
|
10896
10969
|
config: {
|
|
10897
|
-
layout: { xs:
|
|
10970
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
10898
10971
|
main: {
|
|
10899
10972
|
label: "",
|
|
10900
10973
|
type: "date"
|
|
@@ -10908,7 +10981,7 @@ const DateTime = {
|
|
|
10908
10981
|
widget: "DateTimeInputField"
|
|
10909
10982
|
},
|
|
10910
10983
|
config: {
|
|
10911
|
-
layout: { xs:
|
|
10984
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
10912
10985
|
main: {
|
|
10913
10986
|
label: "DateTime",
|
|
10914
10987
|
type: "date"
|
|
@@ -11035,7 +11108,7 @@ var MultipleSelect = {
|
|
|
11035
11108
|
widget: "MultipleSelect"
|
|
11036
11109
|
},
|
|
11037
11110
|
config: {
|
|
11038
|
-
layout: { xs:
|
|
11111
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
11039
11112
|
main: {
|
|
11040
11113
|
label: "",
|
|
11041
11114
|
type: "text",
|
|
@@ -11201,7 +11274,7 @@ const RadioUiSchema = {
|
|
|
11201
11274
|
widget: "RadioInputField"
|
|
11202
11275
|
},
|
|
11203
11276
|
config: {
|
|
11204
|
-
layout: { xs:
|
|
11277
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11205
11278
|
main: {
|
|
11206
11279
|
label: "Enabled",
|
|
11207
11280
|
options: ["YES", "NO"],
|
|
@@ -11310,7 +11383,7 @@ const FileInput = {
|
|
|
11310
11383
|
widget: "FileInputField"
|
|
11311
11384
|
},
|
|
11312
11385
|
config: {
|
|
11313
|
-
layout: { xs:
|
|
11386
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
11314
11387
|
main: {
|
|
11315
11388
|
required: false,
|
|
11316
11389
|
onUpload: "onFileUpload",
|
|
@@ -11664,7 +11737,7 @@ const buildSchema = (config, tableName, isArrayType) => {
|
|
|
11664
11737
|
}
|
|
11665
11738
|
return schema;
|
|
11666
11739
|
};
|
|
11667
|
-
const buildUiSchema = (config) => {
|
|
11740
|
+
const buildUiSchema = (config, store2) => {
|
|
11668
11741
|
let elements = {};
|
|
11669
11742
|
const componentScope = `#/properties/${config.name}`;
|
|
11670
11743
|
switch (config.type) {
|
|
@@ -11747,7 +11820,7 @@ const buildUiSchema = (config) => {
|
|
|
11747
11820
|
elements = buildEmptyBox(config);
|
|
11748
11821
|
break;
|
|
11749
11822
|
case "card":
|
|
11750
|
-
elements = buildCard(config);
|
|
11823
|
+
elements = buildCard(config, componentScope, store2);
|
|
11751
11824
|
break;
|
|
11752
11825
|
case "Graph":
|
|
11753
11826
|
switch (config.graphType) {
|
|
@@ -11824,7 +11897,7 @@ const buildUiSchema = (config) => {
|
|
|
11824
11897
|
header: cellElem.label || cellElem.name,
|
|
11825
11898
|
size: sizeMap[cellElem.name] || 180,
|
|
11826
11899
|
type: cellElem.columnFormat,
|
|
11827
|
-
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
11900
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
|
|
11828
11901
|
};
|
|
11829
11902
|
});
|
|
11830
11903
|
} else if (config.type == "Table") {
|
|
@@ -11841,8 +11914,8 @@ const buildUiSchema = (config) => {
|
|
|
11841
11914
|
header: cellElem.label || cellElem.name,
|
|
11842
11915
|
size: sizeMap[cellElem.name] || 180,
|
|
11843
11916
|
type: cellElem.columnFormat,
|
|
11844
|
-
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : void 0,
|
|
11845
|
-
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
11917
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
11918
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
|
|
11846
11919
|
};
|
|
11847
11920
|
} else {
|
|
11848
11921
|
return {
|
|
@@ -11855,15 +11928,15 @@ const buildUiSchema = (config) => {
|
|
|
11855
11928
|
});
|
|
11856
11929
|
} else if (config.type == "Array") {
|
|
11857
11930
|
elements.options.detail.elements = config.elements.map((e, elemInd) => {
|
|
11858
|
-
return buildUiSchema(e);
|
|
11931
|
+
return buildUiSchema(e, store2);
|
|
11859
11932
|
});
|
|
11860
11933
|
} else {
|
|
11861
11934
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
11862
|
-
return buildUiSchema(e);
|
|
11935
|
+
return buildUiSchema(e, store2);
|
|
11863
11936
|
});
|
|
11864
11937
|
}
|
|
11865
11938
|
}
|
|
11866
11939
|
return elements;
|
|
11867
11940
|
};
|
|
11868
|
-
export { buildConfig, buildSchema, buildUiSchema,
|
|
11941
|
+
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
11869
11942
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|