impaktapps-ui-builder 0.0.65 → 0.0.67-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +356 -260
- 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/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 +106 -83
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +25 -6
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -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/buildStackBarGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +8 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +66 -48
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +133 -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/graph.ts +0 -1
- 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/schema.ts +1 -0
- 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/event.ts +29 -3
- package/src/impaktapps-ui-builder/runtime/services/service.ts +3 -2
|
@@ -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,
|
|
@@ -1335,7 +1342,7 @@ var lodash = { exports: {} };
|
|
|
1335
1342
|
}
|
|
1336
1343
|
var runInContext = function runInContext2(context) {
|
|
1337
1344
|
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
|
1338
|
-
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp,
|
|
1345
|
+
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError = context.TypeError;
|
|
1339
1346
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
1340
1347
|
var coreJsData = context["__core-js_shared__"];
|
|
1341
1348
|
var funcToString = funcProto.toString;
|
|
@@ -1656,7 +1663,7 @@ var lodash = { exports: {} };
|
|
|
1656
1663
|
Stack.prototype.has = stackHas;
|
|
1657
1664
|
Stack.prototype.set = stackSet;
|
|
1658
1665
|
function arrayLikeKeys(value, inherited) {
|
|
1659
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length,
|
|
1666
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
|
|
1660
1667
|
for (var key in value) {
|
|
1661
1668
|
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
1662
1669
|
result2.push(key);
|
|
@@ -6339,7 +6346,8 @@ const ComponentSchema = {
|
|
|
6339
6346
|
{ title: "Stack Bar Graph", const: "StackBarGraph" },
|
|
6340
6347
|
{ title: "Line Graph", const: "LineGraph" },
|
|
6341
6348
|
{ title: "Pie Graph", const: "PieGraph" },
|
|
6342
|
-
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" }
|
|
6349
|
+
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
6350
|
+
{ title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
|
|
6343
6351
|
]
|
|
6344
6352
|
},
|
|
6345
6353
|
iconName: {
|
|
@@ -6426,7 +6434,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6426
6434
|
widget: "SelectInputField"
|
|
6427
6435
|
},
|
|
6428
6436
|
config: {
|
|
6429
|
-
layout: { xs:
|
|
6437
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6430
6438
|
main: {
|
|
6431
6439
|
label: "Type"
|
|
6432
6440
|
}
|
|
@@ -6439,7 +6447,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6439
6447
|
widget: "InputField"
|
|
6440
6448
|
},
|
|
6441
6449
|
config: {
|
|
6442
|
-
layout: { xs:
|
|
6450
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6443
6451
|
main: {
|
|
6444
6452
|
label: "Name",
|
|
6445
6453
|
options: [],
|
|
@@ -6455,7 +6463,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6455
6463
|
widget: "InputField"
|
|
6456
6464
|
},
|
|
6457
6465
|
config: {
|
|
6458
|
-
layout: { xs:
|
|
6466
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6459
6467
|
main: {
|
|
6460
6468
|
label: "Label",
|
|
6461
6469
|
options: [],
|
|
@@ -6471,7 +6479,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6471
6479
|
widget: "SelectInputField"
|
|
6472
6480
|
},
|
|
6473
6481
|
config: {
|
|
6474
|
-
layout: { xs:
|
|
6482
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6475
6483
|
main: {
|
|
6476
6484
|
label: "Column Format"
|
|
6477
6485
|
}
|
|
@@ -6481,7 +6489,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6481
6489
|
type: "Control",
|
|
6482
6490
|
scope: "#/properties/proc",
|
|
6483
6491
|
config: {
|
|
6484
|
-
layout: { xs: 0, sm:
|
|
6492
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6485
6493
|
},
|
|
6486
6494
|
options: {
|
|
6487
6495
|
widget: "EmptyBox"
|
|
@@ -6491,7 +6499,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6491
6499
|
type: "Control",
|
|
6492
6500
|
scope: "#/properties/proc",
|
|
6493
6501
|
config: {
|
|
6494
|
-
layout: { xs: 0, sm:
|
|
6502
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6495
6503
|
},
|
|
6496
6504
|
options: {
|
|
6497
6505
|
widget: "EmptyBox"
|
|
@@ -6512,7 +6520,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6512
6520
|
widget: "SelectInputField"
|
|
6513
6521
|
},
|
|
6514
6522
|
config: {
|
|
6515
|
-
layout: { xs:
|
|
6523
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6516
6524
|
main: {
|
|
6517
6525
|
label: "Screen Size"
|
|
6518
6526
|
}
|
|
@@ -6525,7 +6533,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6525
6533
|
widget: "InputField"
|
|
6526
6534
|
},
|
|
6527
6535
|
config: {
|
|
6528
|
-
layout: { xs:
|
|
6536
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6529
6537
|
main: {
|
|
6530
6538
|
label: "Value",
|
|
6531
6539
|
type: "number",
|
|
@@ -6538,7 +6546,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6538
6546
|
type: "Control",
|
|
6539
6547
|
scope: "#/properties/proc",
|
|
6540
6548
|
config: {
|
|
6541
|
-
layout: { xs: 0, sm:
|
|
6549
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6542
6550
|
},
|
|
6543
6551
|
options: {
|
|
6544
6552
|
widget: "EmptyBox"
|
|
@@ -6741,17 +6749,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6741
6749
|
widget: "EmptyBox"
|
|
6742
6750
|
},
|
|
6743
6751
|
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 }
|
|
6752
|
+
layout: { xs: 4, sm: 8 }
|
|
6755
6753
|
}
|
|
6756
6754
|
},
|
|
6757
6755
|
{
|
|
@@ -6761,7 +6759,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6761
6759
|
widget: "Button"
|
|
6762
6760
|
},
|
|
6763
6761
|
config: {
|
|
6764
|
-
layout:
|
|
6762
|
+
layout: { xs: 4, sm: 2 },
|
|
6765
6763
|
main: {
|
|
6766
6764
|
name: "Ok",
|
|
6767
6765
|
startIcon: "ApproveIcon",
|
|
@@ -6769,9 +6767,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6769
6767
|
type: "text",
|
|
6770
6768
|
onClick: "okHandler",
|
|
6771
6769
|
size: "medium"
|
|
6772
|
-
},
|
|
6773
|
-
style: {
|
|
6774
|
-
float: "right"
|
|
6775
6770
|
}
|
|
6776
6771
|
}
|
|
6777
6772
|
},
|
|
@@ -6782,7 +6777,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6782
6777
|
widget: "Button"
|
|
6783
6778
|
},
|
|
6784
6779
|
config: {
|
|
6785
|
-
layout:
|
|
6780
|
+
layout: { xs: 4, sm: 2 },
|
|
6786
6781
|
main: {
|
|
6787
6782
|
name: "Save & Exit",
|
|
6788
6783
|
startIcon: "ApproveIcon",
|
|
@@ -6790,9 +6785,6 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6790
6785
|
type: "text",
|
|
6791
6786
|
onClick: "saveHandler",
|
|
6792
6787
|
size: "medium"
|
|
6793
|
-
},
|
|
6794
|
-
style: {
|
|
6795
|
-
float: "right"
|
|
6796
6788
|
}
|
|
6797
6789
|
}
|
|
6798
6790
|
},
|
|
@@ -6864,7 +6856,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6864
6856
|
height: 0,
|
|
6865
6857
|
margin: 0,
|
|
6866
6858
|
top: 0,
|
|
6867
|
-
right: "
|
|
6859
|
+
right: { xs: "12px", sm: "84px" },
|
|
6868
6860
|
position: "absolute",
|
|
6869
6861
|
fontSize: "12px",
|
|
6870
6862
|
cursor: "pointer",
|
|
@@ -6886,6 +6878,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6886
6878
|
onClick: "backHandler"
|
|
6887
6879
|
},
|
|
6888
6880
|
style: {
|
|
6881
|
+
display: { xs: "none", sm: "flex" },
|
|
6889
6882
|
textAlign: "left",
|
|
6890
6883
|
lineHeight: 1,
|
|
6891
6884
|
height: 0,
|
|
@@ -6896,7 +6889,7 @@ const componentBasicUiSchema = (theme) => {
|
|
|
6896
6889
|
marginLeft: "2px",
|
|
6897
6890
|
marginRight: 0,
|
|
6898
6891
|
top: 3,
|
|
6899
|
-
right: "
|
|
6892
|
+
right: "12px",
|
|
6900
6893
|
position: "absolute",
|
|
6901
6894
|
":hover": {
|
|
6902
6895
|
color: theme.palette.primary.dark
|
|
@@ -6920,7 +6913,7 @@ const CoreSection = {
|
|
|
6920
6913
|
widget: "SelectInputField"
|
|
6921
6914
|
},
|
|
6922
6915
|
config: {
|
|
6923
|
-
layout: { xs:
|
|
6916
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6924
6917
|
main: {
|
|
6925
6918
|
label: "Type",
|
|
6926
6919
|
type: "text"
|
|
@@ -6934,7 +6927,7 @@ const CoreSection = {
|
|
|
6934
6927
|
widget: "InputField"
|
|
6935
6928
|
},
|
|
6936
6929
|
config: {
|
|
6937
|
-
layout: { xs:
|
|
6930
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6938
6931
|
main: {
|
|
6939
6932
|
label: "Name"
|
|
6940
6933
|
}
|
|
@@ -6947,7 +6940,7 @@ const CoreSection = {
|
|
|
6947
6940
|
widget: "InputField"
|
|
6948
6941
|
},
|
|
6949
6942
|
config: {
|
|
6950
|
-
layout: { xs:
|
|
6943
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6951
6944
|
main: {
|
|
6952
6945
|
label: "Label"
|
|
6953
6946
|
}
|
|
@@ -6960,7 +6953,7 @@ const CoreSection = {
|
|
|
6960
6953
|
widget: "SelectInputField"
|
|
6961
6954
|
},
|
|
6962
6955
|
config: {
|
|
6963
|
-
layout: { xs:
|
|
6956
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
6964
6957
|
main: {
|
|
6965
6958
|
label: "Column Format"
|
|
6966
6959
|
}
|
|
@@ -6970,7 +6963,7 @@ const CoreSection = {
|
|
|
6970
6963
|
type: "Control",
|
|
6971
6964
|
scope: "#/properties/proc",
|
|
6972
6965
|
config: {
|
|
6973
|
-
layout: { xs: 0, sm:
|
|
6966
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6974
6967
|
},
|
|
6975
6968
|
options: {
|
|
6976
6969
|
widget: "EmptyBox"
|
|
@@ -6980,7 +6973,7 @@ const CoreSection = {
|
|
|
6980
6973
|
type: "Control",
|
|
6981
6974
|
scope: "#/properties/proc",
|
|
6982
6975
|
config: {
|
|
6983
|
-
layout: { xs: 0, sm:
|
|
6976
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
6984
6977
|
},
|
|
6985
6978
|
options: {
|
|
6986
6979
|
widget: "EmptyBox"
|
|
@@ -7002,7 +6995,7 @@ const CoreSection = {
|
|
|
7002
6995
|
widget: "SelectInputField"
|
|
7003
6996
|
},
|
|
7004
6997
|
config: {
|
|
7005
|
-
layout: { xs:
|
|
6998
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7006
6999
|
main: {
|
|
7007
7000
|
label: "Screen Size"
|
|
7008
7001
|
}
|
|
@@ -7015,7 +7008,7 @@ const CoreSection = {
|
|
|
7015
7008
|
widget: "InputField"
|
|
7016
7009
|
},
|
|
7017
7010
|
config: {
|
|
7018
|
-
layout: { xs:
|
|
7011
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7019
7012
|
main: {
|
|
7020
7013
|
label: "Value",
|
|
7021
7014
|
type: "number",
|
|
@@ -7028,7 +7021,7 @@ const CoreSection = {
|
|
|
7028
7021
|
type: "Control",
|
|
7029
7022
|
scope: "#/properties/proc",
|
|
7030
7023
|
config: {
|
|
7031
|
-
layout: { xs: 0, sm:
|
|
7024
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7032
7025
|
},
|
|
7033
7026
|
options: {
|
|
7034
7027
|
widget: "EmptyBox"
|
|
@@ -7141,17 +7134,29 @@ const EventSection = (theme) => {
|
|
|
7141
7134
|
};
|
|
7142
7135
|
return uiSchema;
|
|
7143
7136
|
};
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7137
|
+
const emptyBox$1 = (scope, layout) => {
|
|
7138
|
+
if (layout !== void 0) {
|
|
7139
|
+
return {
|
|
7140
|
+
type: "Control",
|
|
7141
|
+
scope: `#/properties/${scope}`,
|
|
7142
|
+
options: {
|
|
7143
|
+
widget: "EmptyBox"
|
|
7144
|
+
},
|
|
7145
|
+
config: {
|
|
7146
|
+
layout
|
|
7147
|
+
}
|
|
7148
|
+
};
|
|
7154
7149
|
}
|
|
7150
|
+
return {
|
|
7151
|
+
type: "Control",
|
|
7152
|
+
scope: "#/properties/empty",
|
|
7153
|
+
options: {
|
|
7154
|
+
widget: "EmptyBox"
|
|
7155
|
+
},
|
|
7156
|
+
config: {
|
|
7157
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7158
|
+
}
|
|
7159
|
+
};
|
|
7155
7160
|
};
|
|
7156
7161
|
const cardLayout = {
|
|
7157
7162
|
type: "Control",
|
|
@@ -7168,7 +7173,7 @@ const cardLayout = {
|
|
|
7168
7173
|
widget: "SelectInputField"
|
|
7169
7174
|
},
|
|
7170
7175
|
config: {
|
|
7171
|
-
layout: { xs:
|
|
7176
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7172
7177
|
main: {
|
|
7173
7178
|
label: "Screen Size"
|
|
7174
7179
|
}
|
|
@@ -7181,7 +7186,7 @@ const cardLayout = {
|
|
|
7181
7186
|
widget: "InputField"
|
|
7182
7187
|
},
|
|
7183
7188
|
config: {
|
|
7184
|
-
layout: { xs:
|
|
7189
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7185
7190
|
main: {
|
|
7186
7191
|
label: "Value",
|
|
7187
7192
|
type: "number",
|
|
@@ -7190,7 +7195,7 @@ const cardLayout = {
|
|
|
7190
7195
|
}
|
|
7191
7196
|
}
|
|
7192
7197
|
},
|
|
7193
|
-
emptyBox
|
|
7198
|
+
emptyBox$1("cardEmpty")
|
|
7194
7199
|
]
|
|
7195
7200
|
}
|
|
7196
7201
|
}
|
|
@@ -7212,14 +7217,14 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7212
7217
|
widget: "InputField"
|
|
7213
7218
|
},
|
|
7214
7219
|
config: {
|
|
7215
|
-
layout: { xs:
|
|
7220
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7216
7221
|
main: {
|
|
7217
7222
|
label: childLabel || "Labels for Tab"
|
|
7218
7223
|
}
|
|
7219
7224
|
}
|
|
7220
7225
|
},
|
|
7221
|
-
emptyBox,
|
|
7222
|
-
emptyBox
|
|
7226
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7227
|
+
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7223
7228
|
]
|
|
7224
7229
|
}
|
|
7225
7230
|
}
|
|
@@ -7233,13 +7238,13 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7233
7238
|
widget: "InputField"
|
|
7234
7239
|
},
|
|
7235
7240
|
config: {
|
|
7236
|
-
layout: { xs:
|
|
7241
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7237
7242
|
main: {
|
|
7238
7243
|
label: "Size"
|
|
7239
7244
|
}
|
|
7240
7245
|
}
|
|
7241
7246
|
};
|
|
7242
|
-
sizeHolder.options.detail.elements[2] = emptyBox;
|
|
7247
|
+
sizeHolder.options.detail.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7243
7248
|
const getInputField = (scope, label) => {
|
|
7244
7249
|
return {
|
|
7245
7250
|
type: "Control",
|
|
@@ -7248,7 +7253,7 @@ const getInputField = (scope, label) => {
|
|
|
7248
7253
|
widget: "InputField"
|
|
7249
7254
|
},
|
|
7250
7255
|
config: {
|
|
7251
|
-
layout: { xs:
|
|
7256
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7252
7257
|
main: {
|
|
7253
7258
|
label
|
|
7254
7259
|
}
|
|
@@ -7263,7 +7268,7 @@ const getRadioInputField = (scope, label, options) => {
|
|
|
7263
7268
|
widget: "RadioInputField"
|
|
7264
7269
|
},
|
|
7265
7270
|
config: {
|
|
7266
|
-
layout: { xs:
|
|
7271
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
7267
7272
|
main: {
|
|
7268
7273
|
label,
|
|
7269
7274
|
options
|
|
@@ -7281,7 +7286,9 @@ const buildWrapper = (label, elements) => {
|
|
|
7281
7286
|
},
|
|
7282
7287
|
wrapperStyle: {
|
|
7283
7288
|
marginTop: "-6px",
|
|
7284
|
-
marginBottom: "-8px"
|
|
7289
|
+
marginBottom: "-8px",
|
|
7290
|
+
marginLeft: "-34px",
|
|
7291
|
+
width: "108%"
|
|
7285
7292
|
},
|
|
7286
7293
|
componentsBoxStyle: {
|
|
7287
7294
|
marginLeft: "24px"
|
|
@@ -7326,7 +7333,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7326
7333
|
widget: "SelectInputField"
|
|
7327
7334
|
},
|
|
7328
7335
|
config: {
|
|
7329
|
-
layout: { xs:
|
|
7336
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7330
7337
|
main: {
|
|
7331
7338
|
label,
|
|
7332
7339
|
type: "text"
|
|
@@ -7335,7 +7342,7 @@ const getSelectField = (scope, label, options) => {
|
|
|
7335
7342
|
};
|
|
7336
7343
|
};
|
|
7337
7344
|
const GraphSection = {
|
|
7338
|
-
type: "
|
|
7345
|
+
type: "WrapperLayout",
|
|
7339
7346
|
elements: []
|
|
7340
7347
|
};
|
|
7341
7348
|
const buildPropertiesSection = function(type) {
|
|
@@ -7348,7 +7355,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7348
7355
|
getInputField("graphHeight", "Graph Height"),
|
|
7349
7356
|
getInputField("graphWidth", "Graph Width"),
|
|
7350
7357
|
getInputField("graphZoomHeight", "Zoom Height"),
|
|
7351
|
-
emptyBox
|
|
7358
|
+
emptyBox$1("TreeEmpty", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7352
7359
|
];
|
|
7353
7360
|
break;
|
|
7354
7361
|
case "InputSlider":
|
|
@@ -7356,9 +7363,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7356
7363
|
getInputField("max", "Max Limit"),
|
|
7357
7364
|
getInputField("step", "Step"),
|
|
7358
7365
|
getInputField("min", "Min Limit"),
|
|
7366
|
+
emptyBox$1("InputSliderEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7359
7367
|
getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
|
|
7360
|
-
emptyBox,
|
|
7361
|
-
emptyBox
|
|
7368
|
+
emptyBox$1("InputSliderEmpty2", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7362
7369
|
];
|
|
7363
7370
|
break;
|
|
7364
7371
|
case "DataGrid":
|
|
@@ -7367,8 +7374,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7367
7374
|
getInputField("elevation", "Card Elevation"),
|
|
7368
7375
|
getInputField("height", "Grid height"),
|
|
7369
7376
|
getInputField("justifyContent", "justifyContent"),
|
|
7370
|
-
emptyBox,
|
|
7371
|
-
emptyBox,
|
|
7377
|
+
emptyBox$1("DataGridEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
7378
|
+
emptyBox$1("DataGridEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7372
7379
|
cardLayout
|
|
7373
7380
|
];
|
|
7374
7381
|
break;
|
|
@@ -7379,7 +7386,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7379
7386
|
getInputField("resetText", "Reset Text"),
|
|
7380
7387
|
getInputField("completeText", "Complete Text"),
|
|
7381
7388
|
getSelectField("orientation", "Orientation Type"),
|
|
7382
|
-
emptyBox,
|
|
7389
|
+
emptyBox$1("Stepper", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7383
7390
|
getArrayControl("sectionLabels", "label")
|
|
7384
7391
|
];
|
|
7385
7392
|
break;
|
|
@@ -7387,22 +7394,23 @@ const buildPropertiesSection = function(type) {
|
|
|
7387
7394
|
uiSchema.elements = [
|
|
7388
7395
|
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
7389
7396
|
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
7390
|
-
getInputField("maxWidth", "Max. Width")
|
|
7397
|
+
getInputField("maxWidth", "Max. Width"),
|
|
7398
|
+
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7391
7399
|
];
|
|
7392
7400
|
break;
|
|
7393
7401
|
case "Text":
|
|
7394
7402
|
uiSchema.elements = [
|
|
7395
7403
|
getInputField("placeholder", "Placeholder"),
|
|
7396
|
-
emptyBox,
|
|
7397
|
-
emptyBox,
|
|
7404
|
+
emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7405
|
+
emptyBox$1("TextEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 }),
|
|
7398
7406
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
|
|
7399
7407
|
];
|
|
7400
7408
|
break;
|
|
7401
7409
|
case "TextArea":
|
|
7402
7410
|
uiSchema.elements = [
|
|
7403
7411
|
getInputField("placeholder", "Placeholder"),
|
|
7404
|
-
emptyBox,
|
|
7405
|
-
emptyBox
|
|
7412
|
+
emptyBox$1("TextAreaEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7413
|
+
emptyBox$1("TextAreaEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7406
7414
|
];
|
|
7407
7415
|
break;
|
|
7408
7416
|
case "SpeedoMeter":
|
|
@@ -7412,7 +7420,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7412
7420
|
getInputField("heading", "Container Heading"),
|
|
7413
7421
|
getInputField("speedoCaption", "Speedometer Caption"),
|
|
7414
7422
|
getInputField("width", "Speedometer Width"),
|
|
7415
|
-
emptyBox
|
|
7423
|
+
emptyBox$1("SpeedoMeterEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7416
7424
|
];
|
|
7417
7425
|
break;
|
|
7418
7426
|
case "RankCard":
|
|
@@ -7421,8 +7429,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7421
7429
|
getInputField("image", "Image Url"),
|
|
7422
7430
|
getInputField("title", "Card Title"),
|
|
7423
7431
|
getInputField("description", "Card Description"),
|
|
7424
|
-
emptyBox,
|
|
7425
|
-
emptyBox
|
|
7432
|
+
emptyBox$1("RankCardEmpty1"),
|
|
7433
|
+
emptyBox$1("RankCardEmpty2")
|
|
7426
7434
|
];
|
|
7427
7435
|
break;
|
|
7428
7436
|
case "LeaderBoard":
|
|
@@ -7431,8 +7439,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7431
7439
|
getInputField("firstImage", "First Image url"),
|
|
7432
7440
|
getInputField("secondImage", "Second Image url"),
|
|
7433
7441
|
getInputField("thirdImage", "Third Image url"),
|
|
7434
|
-
emptyBox,
|
|
7435
|
-
emptyBox,
|
|
7442
|
+
emptyBox$1("LeaderBoardEmpty1"),
|
|
7443
|
+
emptyBox$1("LeaderBoardEmpty2"),
|
|
7436
7444
|
getTextArea("functionCode", "Write Compare Code", false)
|
|
7437
7445
|
];
|
|
7438
7446
|
break;
|
|
@@ -7449,16 +7457,17 @@ const buildPropertiesSection = function(type) {
|
|
|
7449
7457
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
7450
7458
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7451
7459
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7452
|
-
emptyBox,
|
|
7453
|
-
emptyBox
|
|
7460
|
+
emptyBox$1("ProgressBarCardEmpty1"),
|
|
7461
|
+
emptyBox$1("ProgressBarCardEmpty2")
|
|
7454
7462
|
];
|
|
7455
7463
|
break;
|
|
7456
7464
|
case "card":
|
|
7457
7465
|
uiSchema.elements = [
|
|
7458
7466
|
getInputField("url", "Image Url"),
|
|
7459
7467
|
getInputField("label", "Label"),
|
|
7468
|
+
getInputField("titleIcon", "Unicode of Icon for title"),
|
|
7460
7469
|
getInputField("description", "Description"),
|
|
7461
|
-
emptyBox
|
|
7470
|
+
emptyBox$1("cardEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
7462
7471
|
];
|
|
7463
7472
|
break;
|
|
7464
7473
|
case "Button":
|
|
@@ -7468,7 +7477,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7468
7477
|
getSelectField("color", "Color"),
|
|
7469
7478
|
getInputField("tooltipMessage", "Tooltip Message"),
|
|
7470
7479
|
getSelectField("defaultStyle", "Default Style"),
|
|
7471
|
-
emptyBox
|
|
7480
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7472
7481
|
];
|
|
7473
7482
|
break;
|
|
7474
7483
|
case "Graph":
|
|
@@ -7478,10 +7487,11 @@ const buildPropertiesSection = function(type) {
|
|
|
7478
7487
|
getSelectField("graphType", "Graph Type"),
|
|
7479
7488
|
getInputField("leftLabel", "Left Label"),
|
|
7480
7489
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7490
|
+
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7481
7491
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7482
7492
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7483
7493
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7484
|
-
emptyBox,
|
|
7494
|
+
emptyBox$1("GraphEmpty2"),
|
|
7485
7495
|
getArrayControl("legendLabels", "label"),
|
|
7486
7496
|
getArrayControl("pieArcColors", "color")
|
|
7487
7497
|
];
|
|
@@ -7492,15 +7502,15 @@ const buildPropertiesSection = function(type) {
|
|
|
7492
7502
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
7493
7503
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
7494
7504
|
getInputField("rowSpacing", "Row Spacing"),
|
|
7495
|
-
emptyBox,
|
|
7496
|
-
emptyBox
|
|
7505
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
7506
|
+
emptyBox$1("WrapperSectionEmpty2")
|
|
7497
7507
|
];
|
|
7498
7508
|
break;
|
|
7499
7509
|
case "TabSection":
|
|
7500
7510
|
uiSchema.elements = [
|
|
7501
7511
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
7502
7512
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
7503
|
-
emptyBox,
|
|
7513
|
+
emptyBox$1("TabEmpty"),
|
|
7504
7514
|
getArrayControl("sectionLabels", "label")
|
|
7505
7515
|
];
|
|
7506
7516
|
break;
|
|
@@ -7512,16 +7522,15 @@ const buildPropertiesSection = function(type) {
|
|
|
7512
7522
|
getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
|
|
7513
7523
|
getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
|
|
7514
7524
|
getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
|
|
7515
|
-
getRadioInputField("autoHeaders", "Auto Header", ["YES", "NO"]),
|
|
7516
7525
|
getInputField("selectKey", "Selection Key"),
|
|
7517
|
-
emptyBox,
|
|
7526
|
+
emptyBox$1("LazyLoadingTableEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7518
7527
|
buildWrapper("Tree Table Properties", [
|
|
7519
7528
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7520
7529
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
7521
7530
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
7522
7531
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
7523
|
-
emptyBox,
|
|
7524
|
-
emptyBox
|
|
7532
|
+
emptyBox$1("LazyLoadingTableEmpty2"),
|
|
7533
|
+
emptyBox$1("LazyLoadingTableEmpty3")
|
|
7525
7534
|
]),
|
|
7526
7535
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
7527
7536
|
sizeHolder
|
|
@@ -7536,14 +7545,14 @@ const buildPropertiesSection = function(type) {
|
|
|
7536
7545
|
uiSchema.elements = [
|
|
7537
7546
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7538
7547
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
7539
|
-
emptyBox
|
|
7548
|
+
emptyBox$1("SelectEmpty")
|
|
7540
7549
|
];
|
|
7541
7550
|
break;
|
|
7542
7551
|
case "MultipleSelect":
|
|
7543
7552
|
uiSchema.elements = [
|
|
7544
7553
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
7545
|
-
emptyBox,
|
|
7546
|
-
emptyBox
|
|
7554
|
+
emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
7555
|
+
emptyBox$1("MultipleSelectEmpty2")
|
|
7547
7556
|
];
|
|
7548
7557
|
break;
|
|
7549
7558
|
}
|
|
@@ -7703,7 +7712,7 @@ const ValueTab = {
|
|
|
7703
7712
|
widget: "InputField"
|
|
7704
7713
|
},
|
|
7705
7714
|
config: {
|
|
7706
|
-
layout: { xs:
|
|
7715
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7707
7716
|
main: {
|
|
7708
7717
|
label: "Label"
|
|
7709
7718
|
}
|
|
@@ -7716,7 +7725,7 @@ const ValueTab = {
|
|
|
7716
7725
|
widget: "InputField"
|
|
7717
7726
|
},
|
|
7718
7727
|
config: {
|
|
7719
|
-
layout: { xs:
|
|
7728
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7720
7729
|
main: {
|
|
7721
7730
|
label: "Value"
|
|
7722
7731
|
}
|
|
@@ -7729,7 +7738,7 @@ const ValueTab = {
|
|
|
7729
7738
|
widget: "EmptyBox"
|
|
7730
7739
|
},
|
|
7731
7740
|
config: {
|
|
7732
|
-
layout: { xs: 0, sm:
|
|
7741
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
7733
7742
|
}
|
|
7734
7743
|
}
|
|
7735
7744
|
]
|
|
@@ -7757,7 +7766,7 @@ const ValidationSection = {
|
|
|
7757
7766
|
widget: "SelectInputField"
|
|
7758
7767
|
},
|
|
7759
7768
|
config: {
|
|
7760
|
-
layout: { xs:
|
|
7769
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7761
7770
|
main: {
|
|
7762
7771
|
label: "Validation Type"
|
|
7763
7772
|
}
|
|
@@ -7770,7 +7779,7 @@ const ValidationSection = {
|
|
|
7770
7779
|
widget: "InputField"
|
|
7771
7780
|
},
|
|
7772
7781
|
config: {
|
|
7773
|
-
layout: { xs:
|
|
7782
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7774
7783
|
main: {
|
|
7775
7784
|
label: "Validation Value"
|
|
7776
7785
|
}
|
|
@@ -7783,7 +7792,7 @@ const ValidationSection = {
|
|
|
7783
7792
|
widget: "EmptyBox"
|
|
7784
7793
|
},
|
|
7785
7794
|
config: {
|
|
7786
|
-
layout: { xs: 0, sm: 4 }
|
|
7795
|
+
layout: { xs: 0, sm: 0, md: 4 }
|
|
7787
7796
|
}
|
|
7788
7797
|
}
|
|
7789
7798
|
]
|
|
@@ -8329,7 +8338,7 @@ const EventUiSchema = (theme) => {
|
|
|
8329
8338
|
widget: "SelectInputField"
|
|
8330
8339
|
},
|
|
8331
8340
|
config: {
|
|
8332
|
-
layout: { xs:
|
|
8341
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8333
8342
|
main: {
|
|
8334
8343
|
label: "Event Type",
|
|
8335
8344
|
type: "text"
|
|
@@ -8449,17 +8458,7 @@ const EventUiSchema = (theme) => {
|
|
|
8449
8458
|
widget: "EmptyBox"
|
|
8450
8459
|
},
|
|
8451
8460
|
config: {
|
|
8452
|
-
layout: { xs:
|
|
8453
|
-
}
|
|
8454
|
-
},
|
|
8455
|
-
{
|
|
8456
|
-
type: "Control",
|
|
8457
|
-
scope: "#/properties/EmptyBox",
|
|
8458
|
-
options: {
|
|
8459
|
-
widget: "EmptyBox"
|
|
8460
|
-
},
|
|
8461
|
-
config: {
|
|
8462
|
-
layout: { xs: 0, sm: 4, md: 4, lg: 4 }
|
|
8461
|
+
layout: { xs: 4, sm: 8 }
|
|
8463
8462
|
}
|
|
8464
8463
|
},
|
|
8465
8464
|
{
|
|
@@ -8469,7 +8468,7 @@ const EventUiSchema = (theme) => {
|
|
|
8469
8468
|
widget: "Button"
|
|
8470
8469
|
},
|
|
8471
8470
|
config: {
|
|
8472
|
-
layout:
|
|
8471
|
+
layout: { xs: 4, sm: 2 },
|
|
8473
8472
|
main: {
|
|
8474
8473
|
name: "Ok",
|
|
8475
8474
|
startIcon: "ApproveIcon",
|
|
@@ -8490,7 +8489,7 @@ const EventUiSchema = (theme) => {
|
|
|
8490
8489
|
widget: "Button"
|
|
8491
8490
|
},
|
|
8492
8491
|
config: {
|
|
8493
|
-
layout:
|
|
8492
|
+
layout: { xs: 4, sm: 2 },
|
|
8494
8493
|
main: {
|
|
8495
8494
|
name: "Save & Exit",
|
|
8496
8495
|
startIcon: "ApproveIcon",
|
|
@@ -8666,7 +8665,7 @@ const EventUiSchema = (theme) => {
|
|
|
8666
8665
|
height: 0,
|
|
8667
8666
|
margin: 0,
|
|
8668
8667
|
top: 0,
|
|
8669
|
-
right: "
|
|
8668
|
+
right: { xs: "12px", sm: "84px" },
|
|
8670
8669
|
position: "absolute",
|
|
8671
8670
|
fontSize: "12px",
|
|
8672
8671
|
cursor: "pointer",
|
|
@@ -8688,6 +8687,7 @@ const EventUiSchema = (theme) => {
|
|
|
8688
8687
|
onClick: "backHandler"
|
|
8689
8688
|
},
|
|
8690
8689
|
style: {
|
|
8690
|
+
display: { xs: "none", sm: "flex" },
|
|
8691
8691
|
textAlign: "left",
|
|
8692
8692
|
lineHeight: 1,
|
|
8693
8693
|
height: 0,
|
|
@@ -8722,7 +8722,7 @@ const APISection = {
|
|
|
8722
8722
|
widget: "SelectInputField"
|
|
8723
8723
|
},
|
|
8724
8724
|
config: {
|
|
8725
|
-
layout: { xs:
|
|
8725
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8726
8726
|
main: {
|
|
8727
8727
|
label: "Method",
|
|
8728
8728
|
type: "text"
|
|
@@ -8736,7 +8736,7 @@ const APISection = {
|
|
|
8736
8736
|
widget: "InputField"
|
|
8737
8737
|
},
|
|
8738
8738
|
config: {
|
|
8739
|
-
layout: { xs:
|
|
8739
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8740
8740
|
main: {
|
|
8741
8741
|
label: "Path",
|
|
8742
8742
|
type: "text",
|
|
@@ -8752,7 +8752,7 @@ const APISection = {
|
|
|
8752
8752
|
widget: "EmptyBox"
|
|
8753
8753
|
},
|
|
8754
8754
|
config: {
|
|
8755
|
-
layout: { xs: 0, sm:
|
|
8755
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8756
8756
|
}
|
|
8757
8757
|
},
|
|
8758
8758
|
{
|
|
@@ -8762,7 +8762,7 @@ const APISection = {
|
|
|
8762
8762
|
widget: "EmptyBox"
|
|
8763
8763
|
},
|
|
8764
8764
|
config: {
|
|
8765
|
-
layout: { xs: 0, sm:
|
|
8765
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8766
8766
|
}
|
|
8767
8767
|
},
|
|
8768
8768
|
{
|
|
@@ -8781,7 +8781,7 @@ const APISection = {
|
|
|
8781
8781
|
widget: "InputField"
|
|
8782
8782
|
},
|
|
8783
8783
|
config: {
|
|
8784
|
-
layout: { xs:
|
|
8784
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8785
8785
|
main: {
|
|
8786
8786
|
label: "Key"
|
|
8787
8787
|
}
|
|
@@ -8794,7 +8794,7 @@ const APISection = {
|
|
|
8794
8794
|
widget: "InputField"
|
|
8795
8795
|
},
|
|
8796
8796
|
config: {
|
|
8797
|
-
layout: { xs:
|
|
8797
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8798
8798
|
main: {
|
|
8799
8799
|
label: "Value"
|
|
8800
8800
|
}
|
|
@@ -8807,7 +8807,7 @@ const APISection = {
|
|
|
8807
8807
|
widget: "EmptyBox"
|
|
8808
8808
|
},
|
|
8809
8809
|
config: {
|
|
8810
|
-
layout: { xs: 0, sm:
|
|
8810
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8811
8811
|
}
|
|
8812
8812
|
}
|
|
8813
8813
|
]
|
|
@@ -8830,7 +8830,7 @@ const APISection = {
|
|
|
8830
8830
|
widget: "InputField"
|
|
8831
8831
|
},
|
|
8832
8832
|
config: {
|
|
8833
|
-
layout: { xs:
|
|
8833
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8834
8834
|
main: {
|
|
8835
8835
|
label: "Key"
|
|
8836
8836
|
}
|
|
@@ -8843,7 +8843,7 @@ const APISection = {
|
|
|
8843
8843
|
widget: "InputField"
|
|
8844
8844
|
},
|
|
8845
8845
|
config: {
|
|
8846
|
-
layout: { xs:
|
|
8846
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
8847
8847
|
main: {
|
|
8848
8848
|
label: "Value"
|
|
8849
8849
|
}
|
|
@@ -8856,7 +8856,7 @@ const APISection = {
|
|
|
8856
8856
|
widget: "EmptyBox"
|
|
8857
8857
|
},
|
|
8858
8858
|
config: {
|
|
8859
|
-
layout: { xs: 0, sm:
|
|
8859
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 }
|
|
8860
8860
|
}
|
|
8861
8861
|
}
|
|
8862
8862
|
]
|
|
@@ -8884,7 +8884,7 @@ const refreshSectionUiSchema = {
|
|
|
8884
8884
|
widget: "InputField"
|
|
8885
8885
|
},
|
|
8886
8886
|
config: {
|
|
8887
|
-
layout: { xs:
|
|
8887
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
8888
8888
|
main: {
|
|
8889
8889
|
label: "Value"
|
|
8890
8890
|
}
|
|
@@ -8897,7 +8897,7 @@ const refreshSectionUiSchema = {
|
|
|
8897
8897
|
widget: "EmptyBox"
|
|
8898
8898
|
},
|
|
8899
8899
|
config: {
|
|
8900
|
-
layout: { xs: 0, sm:
|
|
8900
|
+
layout: { xs: 0, sm: 6, md: 4, lg: 4 },
|
|
8901
8901
|
main: {}
|
|
8902
8902
|
}
|
|
8903
8903
|
},
|
|
@@ -8908,7 +8908,7 @@ const refreshSectionUiSchema = {
|
|
|
8908
8908
|
widget: "EmptyBox"
|
|
8909
8909
|
},
|
|
8910
8910
|
config: {
|
|
8911
|
-
layout: { xs: 0, sm:
|
|
8911
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 4 },
|
|
8912
8912
|
main: {}
|
|
8913
8913
|
}
|
|
8914
8914
|
}
|
|
@@ -8918,6 +8918,18 @@ const refreshSectionUiSchema = {
|
|
|
8918
8918
|
}
|
|
8919
8919
|
]
|
|
8920
8920
|
};
|
|
8921
|
+
var emptyBox = {
|
|
8922
|
+
type: "Control",
|
|
8923
|
+
scope: "#/properties/emptyBox",
|
|
8924
|
+
options: {
|
|
8925
|
+
widget: "EmptyBox"
|
|
8926
|
+
},
|
|
8927
|
+
config: {
|
|
8928
|
+
layout: { xs: 0, sm: 4, md: 4, lg: 4 },
|
|
8929
|
+
main: {},
|
|
8930
|
+
style: {}
|
|
8931
|
+
}
|
|
8932
|
+
};
|
|
8921
8933
|
var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
8922
8934
|
return {
|
|
8923
8935
|
setPage: async function() {
|
|
@@ -8933,7 +8945,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8933
8945
|
if (handlerType) {
|
|
8934
8946
|
if (handlerType === "custom") {
|
|
8935
8947
|
uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
|
|
8936
|
-
uiSchema.elements[1].elements[0].elements[3] =
|
|
8948
|
+
uiSchema.elements[1].elements[0].elements[3] = {
|
|
8949
|
+
type: "Control",
|
|
8950
|
+
scope: "#/properties/emptyBox",
|
|
8951
|
+
options: {
|
|
8952
|
+
widget: "EmptyBox"
|
|
8953
|
+
},
|
|
8954
|
+
config: {
|
|
8955
|
+
layout: { xs: 0, sm: 6, md: 0, lg: 0 },
|
|
8956
|
+
main: {},
|
|
8957
|
+
style: {}
|
|
8958
|
+
}
|
|
8959
|
+
};
|
|
8960
|
+
uiSchema.elements[1].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
|
|
8937
8961
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
8938
8962
|
} else if (handlerType === "api") {
|
|
8939
8963
|
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
@@ -8941,7 +8965,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
8941
8965
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
8942
8966
|
} else if (handlerType === "inBuiltFunction") {
|
|
8943
8967
|
uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
|
|
8944
|
-
uiSchema.elements[1].elements[0].elements[3] =
|
|
8968
|
+
uiSchema.elements[1].elements[0].elements[3] = {
|
|
8969
|
+
type: "Control",
|
|
8970
|
+
scope: "#/properties/emptyBox",
|
|
8971
|
+
options: {
|
|
8972
|
+
widget: "EmptyBox"
|
|
8973
|
+
},
|
|
8974
|
+
config: {
|
|
8975
|
+
layout: { xs: 6, sm: 6, md: 0, lg: 0 },
|
|
8976
|
+
main: {},
|
|
8977
|
+
style: {}
|
|
8978
|
+
}
|
|
8979
|
+
};
|
|
8980
|
+
uiSchema.elements[1].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
8945
8981
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
8946
8982
|
} else if (handlerType === "refresh") {
|
|
8947
8983
|
uiSchema.elements[1].elements[0].elements[2] = emptyBox;
|
|
@@ -9458,7 +9494,7 @@ var service = (funcParams) => {
|
|
|
9458
9494
|
height: 0,
|
|
9459
9495
|
margin: 0,
|
|
9460
9496
|
top: 0,
|
|
9461
|
-
right: "
|
|
9497
|
+
right: { xs: "12px", sm: "84px" },
|
|
9462
9498
|
position: "absolute",
|
|
9463
9499
|
fontSize: "12px",
|
|
9464
9500
|
cursor: "pointer",
|
|
@@ -9480,6 +9516,7 @@ var service = (funcParams) => {
|
|
|
9480
9516
|
onClick: "backHandler"
|
|
9481
9517
|
},
|
|
9482
9518
|
style: {
|
|
9519
|
+
display: { xs: "none", sm: "flex" },
|
|
9483
9520
|
textAlign: "left",
|
|
9484
9521
|
lineHeight: 1,
|
|
9485
9522
|
height: 0,
|
|
@@ -10106,7 +10143,7 @@ const buildProgressBar = (config, componentScope) => {
|
|
|
10106
10143
|
if (config.layout) {
|
|
10107
10144
|
ProgressBar.config.layout = config.layout;
|
|
10108
10145
|
}
|
|
10109
|
-
ProgressBar.config.main.heading = config.
|
|
10146
|
+
ProgressBar.config.main.heading = config.label;
|
|
10110
10147
|
if (config.bottomLabel_3) {
|
|
10111
10148
|
ProgressBar.config.main.bottomLabel_3 = config.bottomLabel_3;
|
|
10112
10149
|
}
|
|
@@ -10167,7 +10204,6 @@ const LineGraph = {
|
|
|
10167
10204
|
hideBottomAxisLine: false,
|
|
10168
10205
|
legend: {
|
|
10169
10206
|
labelColor: "green",
|
|
10170
|
-
legendTitle: "Our Assests",
|
|
10171
10207
|
direction: "row",
|
|
10172
10208
|
align: "right",
|
|
10173
10209
|
colorRectWidth: 20
|
|
@@ -10200,11 +10236,15 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10200
10236
|
if (config.layout) {
|
|
10201
10237
|
horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
|
|
10202
10238
|
}
|
|
10239
|
+
horizontalBarGraph.config.main.type = config.graphType;
|
|
10203
10240
|
horizontalBarGraph.scope = componentScope;
|
|
10204
10241
|
horizontalBarGraph.config.main.header = config.heading;
|
|
10205
10242
|
if (config.barColor) {
|
|
10206
10243
|
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
10207
10244
|
}
|
|
10245
|
+
if (config.xAxisValue) {
|
|
10246
|
+
horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10247
|
+
}
|
|
10208
10248
|
if (config.containerBackground) {
|
|
10209
10249
|
horizontalBarGraph.config.containerStyle.background = config.containerBackground;
|
|
10210
10250
|
}
|
|
@@ -10336,6 +10376,9 @@ const buildPieGraph = (config, componentScope) => {
|
|
|
10336
10376
|
if (config.legendLabels) {
|
|
10337
10377
|
pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
10338
10378
|
}
|
|
10379
|
+
if (config.xAxisValue) {
|
|
10380
|
+
pieGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10381
|
+
}
|
|
10339
10382
|
if (config.pieArcColors) {
|
|
10340
10383
|
pieGraph.config.style = {
|
|
10341
10384
|
pieStyle: {
|
|
@@ -10358,6 +10401,9 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10358
10401
|
if (config.barColor) {
|
|
10359
10402
|
barGraph.config.barStyle.color = config.barColor;
|
|
10360
10403
|
}
|
|
10404
|
+
if (config.xAxisValue) {
|
|
10405
|
+
barGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10406
|
+
}
|
|
10361
10407
|
if (config.height) {
|
|
10362
10408
|
barGraph.config.style.containerStyle.height = config.height;
|
|
10363
10409
|
}
|
|
@@ -10451,7 +10497,7 @@ var TextInputField = {
|
|
|
10451
10497
|
widget: "InputField"
|
|
10452
10498
|
},
|
|
10453
10499
|
config: {
|
|
10454
|
-
layout: { xs:
|
|
10500
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
10455
10501
|
main: {
|
|
10456
10502
|
label: ""
|
|
10457
10503
|
},
|
|
@@ -10484,7 +10530,7 @@ var SelectInputField = {
|
|
|
10484
10530
|
widget: "SelectInputField"
|
|
10485
10531
|
},
|
|
10486
10532
|
config: {
|
|
10487
|
-
layout: { xs:
|
|
10533
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
10488
10534
|
main: {
|
|
10489
10535
|
label: "",
|
|
10490
10536
|
type: "text",
|
|
@@ -10636,9 +10682,6 @@ const buildTable = (config, componentScope) => {
|
|
|
10636
10682
|
if (config.downloadAllData) {
|
|
10637
10683
|
table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false;
|
|
10638
10684
|
}
|
|
10639
|
-
if (config.autoHeaders) {
|
|
10640
|
-
table.config.main.autoHeaders = config.autoHeaders === "YES" ? true : false;
|
|
10641
|
-
}
|
|
10642
10685
|
if (config.Table_Download_Keys_Name) {
|
|
10643
10686
|
table.config.main.TableDownloadKeysName = config.Table_Download_Keys_Name.map((e) => e.KeyName);
|
|
10644
10687
|
}
|
|
@@ -10711,7 +10754,7 @@ const uploadFile = {
|
|
|
10711
10754
|
"style": {
|
|
10712
10755
|
"backgroundColor": "none"
|
|
10713
10756
|
},
|
|
10714
|
-
layout: { xs:
|
|
10757
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 }
|
|
10715
10758
|
},
|
|
10716
10759
|
"options": {
|
|
10717
10760
|
"widget": "UploadFile"
|
|
@@ -10728,7 +10771,7 @@ const downloadFile = {
|
|
|
10728
10771
|
"style": {
|
|
10729
10772
|
"backgroundColor": "none"
|
|
10730
10773
|
},
|
|
10731
|
-
layout: { xs:
|
|
10774
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 }
|
|
10732
10775
|
},
|
|
10733
10776
|
"options": {
|
|
10734
10777
|
"widget": "DownloadFile"
|
|
@@ -10773,121 +10816,173 @@ const buildDownloadFile = (config, componentScope) => {
|
|
|
10773
10816
|
}
|
|
10774
10817
|
return DownloadFile;
|
|
10775
10818
|
};
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
main: {
|
|
10799
|
-
heading: "$5000.00"
|
|
10800
|
-
},
|
|
10801
|
-
style: {
|
|
10802
|
-
position: "absolute",
|
|
10803
|
-
left: "10%",
|
|
10804
|
-
top: "15%",
|
|
10805
|
-
color: "#f5effc",
|
|
10806
|
-
height: "80px",
|
|
10807
|
-
display: "flex",
|
|
10808
|
-
fontSize: { xs: "24px", md: "32px" },
|
|
10809
|
-
alignItems: "center",
|
|
10810
|
-
background: "inherit",
|
|
10811
|
-
justifyContent: "flex-start"
|
|
10812
|
-
},
|
|
10813
|
-
layout: 5
|
|
10819
|
+
function Card(theme) {
|
|
10820
|
+
const uiSchema = {
|
|
10821
|
+
type: "WrapperLayout",
|
|
10822
|
+
config: {
|
|
10823
|
+
main: {},
|
|
10824
|
+
wrapperStyle: {},
|
|
10825
|
+
componentsBoxStyle: {
|
|
10826
|
+
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
10827
|
+
flexDirection: "row",
|
|
10828
|
+
flexWrap: "nowrap",
|
|
10829
|
+
width: "100%",
|
|
10830
|
+
background: "transparent",
|
|
10831
|
+
border: `1.5px solid ${theme.palette.primary.light}`,
|
|
10832
|
+
borderRadius: "8px",
|
|
10833
|
+
padding: "0px 4px",
|
|
10834
|
+
"&: hover": {
|
|
10835
|
+
background: `${theme.palette.primary.main}`,
|
|
10836
|
+
border: `1.5px solid black`,
|
|
10837
|
+
"& p": {
|
|
10838
|
+
color: "white"
|
|
10839
|
+
}
|
|
10840
|
+
}
|
|
10814
10841
|
},
|
|
10815
|
-
|
|
10816
|
-
widget: "Box"
|
|
10817
|
-
}
|
|
10842
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 }
|
|
10818
10843
|
},
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
10825
|
-
},
|
|
10826
|
-
style: {
|
|
10827
|
-
color: "#f5effc",
|
|
10828
|
-
objectFit: "contain",
|
|
10829
|
-
position: "absolute",
|
|
10830
|
-
top: "10px",
|
|
10831
|
-
right: "10px",
|
|
10832
|
-
height: "80%",
|
|
10833
|
-
width: "35%",
|
|
10834
|
-
display: "flex",
|
|
10835
|
-
fontSize: "34px",
|
|
10836
|
-
alignItems: "center",
|
|
10837
|
-
background: "inherit",
|
|
10838
|
-
padding: "20px",
|
|
10839
|
-
justifyContent: "left"
|
|
10844
|
+
elements: [
|
|
10845
|
+
{
|
|
10846
|
+
type: "HorizontalLayout",
|
|
10847
|
+
config: {
|
|
10848
|
+
layout: 8
|
|
10840
10849
|
},
|
|
10841
|
-
|
|
10850
|
+
elements: [
|
|
10851
|
+
{
|
|
10852
|
+
type: "WrapperLayout",
|
|
10853
|
+
config: {
|
|
10854
|
+
main: {
|
|
10855
|
+
columnSpacing: 0,
|
|
10856
|
+
gap: 0
|
|
10857
|
+
},
|
|
10858
|
+
wrapperStyle: {
|
|
10859
|
+
background: "transparent"
|
|
10860
|
+
},
|
|
10861
|
+
componentsBoxStyle: {
|
|
10862
|
+
flexDirection: "column",
|
|
10863
|
+
flexWrap: "nowrap",
|
|
10864
|
+
width: "100%",
|
|
10865
|
+
height: "inherit",
|
|
10866
|
+
background: "transparent",
|
|
10867
|
+
borderRadius: "0px"
|
|
10868
|
+
},
|
|
10869
|
+
layout: 12
|
|
10870
|
+
},
|
|
10871
|
+
elements: [
|
|
10872
|
+
{
|
|
10873
|
+
type: "Control",
|
|
10874
|
+
scope: "#/properties/programType",
|
|
10875
|
+
config: {
|
|
10876
|
+
main: {
|
|
10877
|
+
heading: "$5000.00"
|
|
10878
|
+
},
|
|
10879
|
+
style: {
|
|
10880
|
+
color: "black",
|
|
10881
|
+
display: "flex",
|
|
10882
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
10883
|
+
fontWeight: "bold",
|
|
10884
|
+
background: "inherit",
|
|
10885
|
+
justifyContent: "flex-start",
|
|
10886
|
+
width: "calc(100%+8px)",
|
|
10887
|
+
margin: "-8px"
|
|
10888
|
+
},
|
|
10889
|
+
layout: 12
|
|
10890
|
+
},
|
|
10891
|
+
options: {
|
|
10892
|
+
widget: "Box"
|
|
10893
|
+
}
|
|
10894
|
+
},
|
|
10895
|
+
{
|
|
10896
|
+
type: "Control",
|
|
10897
|
+
scope: "#/properties/programType",
|
|
10898
|
+
config: {
|
|
10899
|
+
main: {
|
|
10900
|
+
heading: "Total Earnings"
|
|
10901
|
+
},
|
|
10902
|
+
style: {
|
|
10903
|
+
color: "black",
|
|
10904
|
+
fontSize: "16px",
|
|
10905
|
+
justifyContent: "center",
|
|
10906
|
+
textWrap: "wrap",
|
|
10907
|
+
background: "inherit",
|
|
10908
|
+
width: "calc(100%+8pc)",
|
|
10909
|
+
margin: "-8px",
|
|
10910
|
+
marginTop: "-12px",
|
|
10911
|
+
lineHeight: "1"
|
|
10912
|
+
},
|
|
10913
|
+
layout: 12
|
|
10914
|
+
},
|
|
10915
|
+
options: {
|
|
10916
|
+
widget: "Box"
|
|
10917
|
+
}
|
|
10918
|
+
}
|
|
10919
|
+
]
|
|
10920
|
+
}
|
|
10921
|
+
]
|
|
10842
10922
|
},
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10923
|
+
{
|
|
10924
|
+
type: "Control",
|
|
10925
|
+
scope: "#/properties/programType",
|
|
10926
|
+
config: {
|
|
10927
|
+
main: {
|
|
10928
|
+
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
10929
|
+
},
|
|
10930
|
+
style: {
|
|
10931
|
+
containerStyle: {
|
|
10932
|
+
height: "100%",
|
|
10933
|
+
display: "flex",
|
|
10934
|
+
justifyContent: "center"
|
|
10935
|
+
},
|
|
10936
|
+
imageStyle: {
|
|
10937
|
+
height: "100%",
|
|
10938
|
+
fontSize: "none",
|
|
10939
|
+
padding: "4px",
|
|
10940
|
+
marginLeft: "8px"
|
|
10941
|
+
}
|
|
10942
|
+
},
|
|
10943
|
+
layout: 4
|
|
10863
10944
|
},
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
widget: "Box"
|
|
10945
|
+
options: {
|
|
10946
|
+
widget: "Image"
|
|
10947
|
+
}
|
|
10868
10948
|
}
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10949
|
+
]
|
|
10950
|
+
};
|
|
10951
|
+
return uiSchema;
|
|
10952
|
+
}
|
|
10953
|
+
function convertUnicodeToCharacter(unicodeInput) {
|
|
10954
|
+
try {
|
|
10955
|
+
const cleanedInput = unicodeInput.replace(/^U\+/i, "");
|
|
10956
|
+
const codePoint = parseInt(cleanedInput, 16);
|
|
10957
|
+
const character = String.fromCodePoint(codePoint);
|
|
10958
|
+
return character;
|
|
10959
|
+
} catch (error) {
|
|
10960
|
+
return "Invalid Unicode input.";
|
|
10961
|
+
}
|
|
10962
|
+
}
|
|
10963
|
+
const buildCard = (config, componentScope, store2) => {
|
|
10964
|
+
const card = _.cloneDeep(Card(store2.theme.myTheme));
|
|
10874
10965
|
if (config.style) {
|
|
10875
10966
|
card.config.style = JSON.parse(config.style);
|
|
10876
10967
|
}
|
|
10877
|
-
card.elements[0].scope = `#/properties/${config.name}/properties/value`;
|
|
10968
|
+
card.elements[0].elements[0].elements[0].scope = `#/properties/${config.name}/properties/value`;
|
|
10878
10969
|
card.elements[1].scope = `#/properties/${config.name}/properties/url`;
|
|
10879
|
-
card.elements[
|
|
10970
|
+
card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
|
|
10880
10971
|
if (config.layout) {
|
|
10881
10972
|
card.config.layout = createLayoutFormat(config.layout);
|
|
10882
10973
|
}
|
|
10883
10974
|
if (config.label) {
|
|
10884
|
-
|
|
10975
|
+
if (config == null ? void 0 : config.titleIcon) {
|
|
10976
|
+
card.elements[0].elements[0].elements[0].config.main.heading = convertUnicodeToCharacter(config.titleIcon) + config.label;
|
|
10977
|
+
} else {
|
|
10978
|
+
card.elements[0].elements[0].elements[0].config.main.heading = config.label;
|
|
10979
|
+
}
|
|
10885
10980
|
}
|
|
10886
10981
|
if (config.url) {
|
|
10887
10982
|
card.elements[1].config.main.url = config.url;
|
|
10888
10983
|
}
|
|
10889
10984
|
if (config.description) {
|
|
10890
|
-
card.elements[
|
|
10985
|
+
card.elements[0].elements[0].elements[1].config.main.heading = config.description;
|
|
10891
10986
|
}
|
|
10892
10987
|
return card;
|
|
10893
10988
|
};
|
|
@@ -10898,7 +10993,7 @@ var DateInputField = {
|
|
|
10898
10993
|
widget: "DateInputField"
|
|
10899
10994
|
},
|
|
10900
10995
|
config: {
|
|
10901
|
-
layout: { xs:
|
|
10996
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
10902
10997
|
main: {
|
|
10903
10998
|
label: "",
|
|
10904
10999
|
type: "date"
|
|
@@ -10912,7 +11007,7 @@ const DateTime = {
|
|
|
10912
11007
|
widget: "DateTimeInputField"
|
|
10913
11008
|
},
|
|
10914
11009
|
config: {
|
|
10915
|
-
layout: { xs:
|
|
11010
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
10916
11011
|
main: {
|
|
10917
11012
|
label: "DateTime",
|
|
10918
11013
|
type: "date"
|
|
@@ -11039,7 +11134,7 @@ var MultipleSelect = {
|
|
|
11039
11134
|
widget: "MultipleSelect"
|
|
11040
11135
|
},
|
|
11041
11136
|
config: {
|
|
11042
|
-
layout: { xs:
|
|
11137
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
11043
11138
|
main: {
|
|
11044
11139
|
label: "",
|
|
11045
11140
|
type: "text",
|
|
@@ -11205,7 +11300,7 @@ const RadioUiSchema = {
|
|
|
11205
11300
|
widget: "RadioInputField"
|
|
11206
11301
|
},
|
|
11207
11302
|
config: {
|
|
11208
|
-
layout: { xs:
|
|
11303
|
+
layout: { xs: 12, sm: 6, md: 4, lg: 4 },
|
|
11209
11304
|
main: {
|
|
11210
11305
|
label: "Enabled",
|
|
11211
11306
|
options: ["YES", "NO"],
|
|
@@ -11314,7 +11409,7 @@ const FileInput = {
|
|
|
11314
11409
|
widget: "FileInputField"
|
|
11315
11410
|
},
|
|
11316
11411
|
config: {
|
|
11317
|
-
layout: { xs:
|
|
11412
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
11318
11413
|
main: {
|
|
11319
11414
|
required: false,
|
|
11320
11415
|
onUpload: "onFileUpload",
|
|
@@ -11668,7 +11763,7 @@ const buildSchema = (config, tableName, isArrayType) => {
|
|
|
11668
11763
|
}
|
|
11669
11764
|
return schema;
|
|
11670
11765
|
};
|
|
11671
|
-
const buildUiSchema = (config) => {
|
|
11766
|
+
const buildUiSchema = (config, store2) => {
|
|
11672
11767
|
let elements = {};
|
|
11673
11768
|
const componentScope = `#/properties/${config.name}`;
|
|
11674
11769
|
switch (config.type) {
|
|
@@ -11751,7 +11846,7 @@ const buildUiSchema = (config) => {
|
|
|
11751
11846
|
elements = buildEmptyBox(config);
|
|
11752
11847
|
break;
|
|
11753
11848
|
case "card":
|
|
11754
|
-
elements = buildCard(config);
|
|
11849
|
+
elements = buildCard(config, componentScope, store2);
|
|
11755
11850
|
break;
|
|
11756
11851
|
case "Graph":
|
|
11757
11852
|
switch (config.graphType) {
|
|
@@ -11766,6 +11861,7 @@ const buildUiSchema = (config) => {
|
|
|
11766
11861
|
elements = buildPieGraph(config, componentScope);
|
|
11767
11862
|
break;
|
|
11768
11863
|
case "HorizontalBarGraph":
|
|
11864
|
+
case "HorizontalStackBarGraph":
|
|
11769
11865
|
elements = buildHorizontalBarGraph(config, componentScope);
|
|
11770
11866
|
break;
|
|
11771
11867
|
}
|
|
@@ -11828,7 +11924,7 @@ const buildUiSchema = (config) => {
|
|
|
11828
11924
|
header: cellElem.label || cellElem.name,
|
|
11829
11925
|
size: sizeMap[cellElem.name] || 180,
|
|
11830
11926
|
type: cellElem.columnFormat,
|
|
11831
|
-
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
11927
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
|
|
11832
11928
|
};
|
|
11833
11929
|
});
|
|
11834
11930
|
} else if (config.type == "Table") {
|
|
@@ -11845,8 +11941,8 @@ const buildUiSchema = (config) => {
|
|
|
11845
11941
|
header: cellElem.label || cellElem.name,
|
|
11846
11942
|
size: sizeMap[cellElem.name] || 180,
|
|
11847
11943
|
type: cellElem.columnFormat,
|
|
11848
|
-
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem) : void 0,
|
|
11849
|
-
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem)) : []
|
|
11944
|
+
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
11945
|
+
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : []
|
|
11850
11946
|
};
|
|
11851
11947
|
} else {
|
|
11852
11948
|
return {
|
|
@@ -11859,11 +11955,11 @@ const buildUiSchema = (config) => {
|
|
|
11859
11955
|
});
|
|
11860
11956
|
} else if (config.type == "Array") {
|
|
11861
11957
|
elements.options.detail.elements = config.elements.map((e, elemInd) => {
|
|
11862
|
-
return buildUiSchema(e);
|
|
11958
|
+
return buildUiSchema(e, store2);
|
|
11863
11959
|
});
|
|
11864
11960
|
} else {
|
|
11865
11961
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
11866
|
-
return buildUiSchema(e);
|
|
11962
|
+
return buildUiSchema(e, store2);
|
|
11867
11963
|
});
|
|
11868
11964
|
}
|
|
11869
11965
|
}
|