impaktapps-ui-builder 1.0.165 → 1.0.170
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 +257 -205
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -198
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +14 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -189
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +19 -12
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -1
- package/src/impaktapps-ui-builder/builder/services/utils.ts +12 -0
|
@@ -6225,6 +6225,8 @@ const ComponentSchema = {
|
|
|
6225
6225
|
{ title: "Button", const: "Button" },
|
|
6226
6226
|
{ title: "Data Card", const: "card" },
|
|
6227
6227
|
{ title: "Check Box", const: "CheckBox" },
|
|
6228
|
+
{ title: "Camera", const: "Camera" },
|
|
6229
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6228
6230
|
{ title: "Container", const: "WrapperSection" },
|
|
6229
6231
|
{ title: "Tab Container", const: "HorizontalLayout" },
|
|
6230
6232
|
{ title: "Data Grid", const: "DataGrid" },
|
|
@@ -6258,7 +6260,6 @@ const ComponentSchema = {
|
|
|
6258
6260
|
{ title: "Timer", const: "Timer" },
|
|
6259
6261
|
{ title: "Upload", const: "UploadFile" },
|
|
6260
6262
|
{ title: "Tree ", const: "TreeMap" },
|
|
6261
|
-
{ title: "Column Group", const: "ColumnGroup" },
|
|
6262
6263
|
{ title: "Thought of the day", const: "Thought" }
|
|
6263
6264
|
]
|
|
6264
6265
|
},
|
|
@@ -7970,8 +7971,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7970
7971
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
7971
7972
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7972
7973
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7973
|
-
|
|
7974
|
-
|
|
7974
|
+
getInputField("size", "Size"),
|
|
7975
|
+
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
7976
|
+
getArrayControl("pieArcColors", "color", "Color")
|
|
7975
7977
|
];
|
|
7976
7978
|
break;
|
|
7977
7979
|
case "card":
|
|
@@ -8025,6 +8027,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8025
8027
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8026
8028
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8027
8029
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8030
|
+
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8028
8031
|
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
8029
8032
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8030
8033
|
];
|
|
@@ -8138,6 +8141,15 @@ const buildPropertiesSection = function(type) {
|
|
|
8138
8141
|
emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8139
8142
|
];
|
|
8140
8143
|
break;
|
|
8144
|
+
case "Camera":
|
|
8145
|
+
uiSchema.elements = [
|
|
8146
|
+
getSelectField("iconName", "Icon Name"),
|
|
8147
|
+
getRadioInputField("multiUplaod", "Multiple Uplaod", ["YES", "NO"]),
|
|
8148
|
+
getSelectField("color", "Color"),
|
|
8149
|
+
getInputField("tooltipMessage", "Tooltip Message"),
|
|
8150
|
+
getSelectField("variant", "Variant"),
|
|
8151
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
8152
|
+
];
|
|
8141
8153
|
}
|
|
8142
8154
|
return uiSchema;
|
|
8143
8155
|
};
|
|
@@ -8482,7 +8494,7 @@ var buildConfig = (FormData) => {
|
|
|
8482
8494
|
};
|
|
8483
8495
|
const createLayoutFormat = (layout, type) => {
|
|
8484
8496
|
if (_.isEmpty(layout)) {
|
|
8485
|
-
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout"];
|
|
8497
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout", "Table"];
|
|
8486
8498
|
if (fullLayoutComponents.includes(type)) {
|
|
8487
8499
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8488
8500
|
} else if (type === "Graph") {
|
|
@@ -8512,6 +8524,17 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8512
8524
|
const clearFromSessionStorage = () => {
|
|
8513
8525
|
sessionStorage.removeItem("pageFormdata");
|
|
8514
8526
|
};
|
|
8527
|
+
const isErrorExist = (store2) => {
|
|
8528
|
+
if (!_.isEmpty(store2.ctx.core.errors)) {
|
|
8529
|
+
store2.setValidation("ValidateAndShow");
|
|
8530
|
+
store2.setNotify({
|
|
8531
|
+
Fail: true,
|
|
8532
|
+
FailMessage: "Error on Page"
|
|
8533
|
+
});
|
|
8534
|
+
return false;
|
|
8535
|
+
}
|
|
8536
|
+
return true;
|
|
8537
|
+
};
|
|
8515
8538
|
const getNavigationHistory = (config2, path) => {
|
|
8516
8539
|
if (path) {
|
|
8517
8540
|
let urlRoutes = config2.name;
|
|
@@ -8613,23 +8636,24 @@ function okHandler(store2) {
|
|
|
8613
8636
|
const sectionLabels = {
|
|
8614
8637
|
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8615
8638
|
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8616
|
-
Table: ["Core", "Components", "Properties", "Events", "Style"
|
|
8617
|
-
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"
|
|
8618
|
-
WrapperSection: ["Core", "Components", "Properties", "Style"
|
|
8619
|
-
HorizontalLayout: ["Core", "Components", "Properties", "Style"
|
|
8639
|
+
Table: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8640
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8641
|
+
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8642
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8620
8643
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8621
|
-
SpeedoMeter: ["Core", "Properties", "Events", "Style"
|
|
8644
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8622
8645
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8623
8646
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8624
8647
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8625
8648
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8626
8649
|
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8627
8650
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8628
|
-
ProgressBarCard: ["Core", "Properties", "Events", "Style"
|
|
8629
|
-
|
|
8651
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8652
|
+
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8653
|
+
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8630
8654
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8631
|
-
Timer: ["Core", "Events", "Style"
|
|
8632
|
-
Rank: ["Core", "Events", "Style"
|
|
8655
|
+
Timer: ["Core", "Events", "Style"],
|
|
8656
|
+
Rank: ["Core", "Events", "Style"],
|
|
8633
8657
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8634
8658
|
Array: ["Core", "Components", "Properties", "Events", "Validation"],
|
|
8635
8659
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8641,11 +8665,12 @@ const sectionLabels = {
|
|
|
8641
8665
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8642
8666
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8643
8667
|
ColumnGroup: ["Core", "Components"],
|
|
8644
|
-
Thought: ["Core", "Properties", "Events", "Style"
|
|
8668
|
+
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8645
8669
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8646
8670
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8647
8671
|
Image: ["Core", "Properties", "Style"],
|
|
8648
|
-
FileInput: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8672
|
+
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8673
|
+
Camera: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8649
8674
|
};
|
|
8650
8675
|
function refreshPage(type, store2) {
|
|
8651
8676
|
var _a, _b;
|
|
@@ -8848,6 +8873,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8848
8873
|
},
|
|
8849
8874
|
editComponents: function() {
|
|
8850
8875
|
var _a, _b, _c;
|
|
8876
|
+
if (!isErrorExist(store2))
|
|
8877
|
+
return;
|
|
8851
8878
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8852
8879
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8853
8880
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8889,6 +8916,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8889
8916
|
},
|
|
8890
8917
|
widgetAddClickHandler: function() {
|
|
8891
8918
|
var _a;
|
|
8919
|
+
if (!isErrorExist(store2))
|
|
8920
|
+
return;
|
|
8892
8921
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8893
8922
|
store2.formData.elements = [];
|
|
8894
8923
|
}
|
|
@@ -8901,6 +8930,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8901
8930
|
},
|
|
8902
8931
|
eventEditHandler: function() {
|
|
8903
8932
|
var _a, _b;
|
|
8933
|
+
if (!isErrorExist(store2))
|
|
8934
|
+
return;
|
|
8904
8935
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8905
8936
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8906
8937
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8910,6 +8941,8 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8910
8941
|
},
|
|
8911
8942
|
eventAddHandler: function() {
|
|
8912
8943
|
var _a, _b;
|
|
8944
|
+
if (!isErrorExist(store2))
|
|
8945
|
+
return;
|
|
8913
8946
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8914
8947
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8915
8948
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -9083,6 +9116,8 @@ var pageMaster = (funcParams) => {
|
|
|
9083
9116
|
},
|
|
9084
9117
|
onAddClickHandler: function() {
|
|
9085
9118
|
var _a;
|
|
9119
|
+
if (!isErrorExist(store2))
|
|
9120
|
+
return;
|
|
9086
9121
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9087
9122
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9088
9123
|
store2.formData.elements = [];
|
|
@@ -9106,6 +9141,8 @@ var pageMaster = (funcParams) => {
|
|
|
9106
9141
|
},
|
|
9107
9142
|
eventAddHandler: function() {
|
|
9108
9143
|
var _a;
|
|
9144
|
+
if (!isErrorExist(store2))
|
|
9145
|
+
return;
|
|
9109
9146
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9110
9147
|
if (!Array.isArray(store2.formData.events)) {
|
|
9111
9148
|
store2.formData.events = [];
|
|
@@ -9116,6 +9153,8 @@ var pageMaster = (funcParams) => {
|
|
|
9116
9153
|
},
|
|
9117
9154
|
editEvent: function() {
|
|
9118
9155
|
var _a;
|
|
9156
|
+
if (!isErrorExist(store2))
|
|
9157
|
+
return;
|
|
9119
9158
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9120
9159
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9121
9160
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -10095,6 +10134,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10095
10134
|
},
|
|
10096
10135
|
addEvent: function() {
|
|
10097
10136
|
var _a, _b, _c;
|
|
10137
|
+
if (!isErrorExist(store2))
|
|
10138
|
+
return;
|
|
10098
10139
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10099
10140
|
if (!Array.isArray(store2.formData.events)) {
|
|
10100
10141
|
store2.formData.events = [];
|
|
@@ -10107,6 +10148,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10107
10148
|
},
|
|
10108
10149
|
editEvent: function() {
|
|
10109
10150
|
var _a;
|
|
10151
|
+
if (!isErrorExist(store2))
|
|
10152
|
+
return;
|
|
10110
10153
|
const rowId = dynamicData2.path.split(".")[1];
|
|
10111
10154
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10112
10155
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -10865,6 +10908,15 @@ const buildProgressBar = (config2, componentScope2) => {
|
|
|
10865
10908
|
ProgressBar.config.layout = config2.layout;
|
|
10866
10909
|
}
|
|
10867
10910
|
ProgressBar.config.main.heading = config2.label;
|
|
10911
|
+
if (config2.variant) {
|
|
10912
|
+
ProgressBar.config.main.variant = config2.variant;
|
|
10913
|
+
}
|
|
10914
|
+
if (config2.pieArcColors) {
|
|
10915
|
+
ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10916
|
+
}
|
|
10917
|
+
if (config2.size) {
|
|
10918
|
+
ProgressBar.config.main.size = Number(config2.size);
|
|
10919
|
+
}
|
|
10868
10920
|
if (config2.bottomLabel_3) {
|
|
10869
10921
|
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10870
10922
|
}
|
|
@@ -11219,6 +11271,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11219
11271
|
wrapper.config.main.label = config2.label;
|
|
11220
11272
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11221
11273
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11274
|
+
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11222
11275
|
if (config2.defaultStyle) {
|
|
11223
11276
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11224
11277
|
}
|
|
@@ -11475,6 +11528,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11475
11528
|
if (config2.initialDensity) {
|
|
11476
11529
|
table.config.main.initialDensity = config2.initialDensity;
|
|
11477
11530
|
}
|
|
11531
|
+
if (config2.layout) {
|
|
11532
|
+
table.config.layout = createLayoutFormat(config2.layout);
|
|
11533
|
+
}
|
|
11478
11534
|
return table;
|
|
11479
11535
|
};
|
|
11480
11536
|
const Box = {
|
|
@@ -11596,211 +11652,159 @@ function Card(theme) {
|
|
|
11596
11652
|
type: "WrapperLayout",
|
|
11597
11653
|
config: {
|
|
11598
11654
|
main: {},
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11655
|
+
style: {
|
|
11656
|
+
wrapperStyle: {
|
|
11657
|
+
position: "relative",
|
|
11658
|
+
top: "50%",
|
|
11659
|
+
transform: "translateY(-50%)",
|
|
11660
|
+
marginBottom: 0,
|
|
11661
|
+
borderRadius: "12px",
|
|
11662
|
+
fontFamily: "poppins"
|
|
11663
|
+
},
|
|
11664
|
+
componentsBoxStyle: {
|
|
11665
|
+
boxShadow: "0 0 6px 1px rgba(149, 147, 147, 0.25)",
|
|
11666
|
+
flexDirection: "column",
|
|
11667
|
+
overflow: "hidden",
|
|
11668
|
+
flexWrap: "nowrap",
|
|
11669
|
+
width: "100% !important",
|
|
11670
|
+
background: "transparent",
|
|
11671
|
+
borderRadius: "12px",
|
|
11672
|
+
padding: "20px 20px 20px 14px",
|
|
11673
|
+
height: "100%",
|
|
11674
|
+
minHeight: "100px",
|
|
11675
|
+
position: "relative",
|
|
11676
|
+
marginLeft: "0px",
|
|
11677
|
+
"&: hover": {
|
|
11678
|
+
background: `${theme.palette.primary.main}`,
|
|
11679
|
+
color: `${theme.palette.primary.contrastText}`
|
|
11622
11680
|
}
|
|
11623
11681
|
}
|
|
11624
11682
|
},
|
|
11625
|
-
layout: { xs: 12, sm: 12, md:
|
|
11683
|
+
layout: { xs: 12, sm: 12, md: 3, lg: 3 }
|
|
11626
11684
|
},
|
|
11627
11685
|
elements: [
|
|
11628
|
-
{
|
|
11629
|
-
type: "HorizontalLayout",
|
|
11630
|
-
config: {
|
|
11631
|
-
layout: 9
|
|
11632
|
-
},
|
|
11633
|
-
elements: [
|
|
11634
|
-
{
|
|
11635
|
-
type: "WrapperLayout",
|
|
11636
|
-
config: {
|
|
11637
|
-
main: {
|
|
11638
|
-
columnSpacing: 0,
|
|
11639
|
-
gap: 0
|
|
11640
|
-
},
|
|
11641
|
-
wrapperStyle: {
|
|
11642
|
-
background: "transparent",
|
|
11643
|
-
marginBottom: 0
|
|
11644
|
-
},
|
|
11645
|
-
componentsBoxStyle: {
|
|
11646
|
-
flexDirection: "column",
|
|
11647
|
-
flexWrap: "nowrap",
|
|
11648
|
-
width: "100%",
|
|
11649
|
-
height: "inherit",
|
|
11650
|
-
background: "transparent",
|
|
11651
|
-
borderRadius: "0px",
|
|
11652
|
-
paddingRight: 0
|
|
11653
|
-
},
|
|
11654
|
-
layout: 12
|
|
11655
|
-
},
|
|
11656
|
-
elements: [
|
|
11657
|
-
{
|
|
11658
|
-
type: "WrapperLayout",
|
|
11659
|
-
config: {
|
|
11660
|
-
main: {
|
|
11661
|
-
columnSpacing: 0,
|
|
11662
|
-
gap: 0
|
|
11663
|
-
},
|
|
11664
|
-
wrapperStyle: {
|
|
11665
|
-
background: "transparent",
|
|
11666
|
-
marginBottom: 0
|
|
11667
|
-
},
|
|
11668
|
-
componentsBoxStyle: {
|
|
11669
|
-
flexDirection: "row",
|
|
11670
|
-
flexWrap: "nowrap",
|
|
11671
|
-
width: "100%",
|
|
11672
|
-
height: "0",
|
|
11673
|
-
background: "transparent",
|
|
11674
|
-
borderRadius: "0px",
|
|
11675
|
-
marginLeft: "-10px",
|
|
11676
|
-
marginTop: "-8px",
|
|
11677
|
-
justifyContent: "start",
|
|
11678
|
-
position: "relative"
|
|
11679
|
-
},
|
|
11680
|
-
layout: 12
|
|
11681
|
-
},
|
|
11682
|
-
elements: [
|
|
11683
|
-
{
|
|
11684
|
-
type: "Control",
|
|
11685
|
-
scope: "#/properties/programType",
|
|
11686
|
-
config: {
|
|
11687
|
-
main: {
|
|
11688
|
-
heading: ""
|
|
11689
|
-
},
|
|
11690
|
-
style: {
|
|
11691
|
-
color: "black",
|
|
11692
|
-
display: "flex",
|
|
11693
|
-
fontSize: { xs: "24px", md: "28px" },
|
|
11694
|
-
fontWeight: "bold",
|
|
11695
|
-
background: "inherit",
|
|
11696
|
-
justifyContent: "flex-start",
|
|
11697
|
-
width: "auto",
|
|
11698
|
-
margin: "-8px",
|
|
11699
|
-
marginLeft: "-24px",
|
|
11700
|
-
height: 0
|
|
11701
|
-
}
|
|
11702
|
-
},
|
|
11703
|
-
options: {
|
|
11704
|
-
widget: "Box"
|
|
11705
|
-
}
|
|
11706
|
-
},
|
|
11707
|
-
{
|
|
11708
|
-
type: "Control",
|
|
11709
|
-
scope: "#/properties/programType",
|
|
11710
|
-
config: {
|
|
11711
|
-
main: {
|
|
11712
|
-
heading: "5000.00"
|
|
11713
|
-
},
|
|
11714
|
-
style: {
|
|
11715
|
-
color: "black",
|
|
11716
|
-
display: "flex",
|
|
11717
|
-
fontSize: { xs: "21px", md: "22px" },
|
|
11718
|
-
fontWeight: "500",
|
|
11719
|
-
background: "inherit",
|
|
11720
|
-
justifyContent: "flex-start",
|
|
11721
|
-
width: "auto",
|
|
11722
|
-
margin: "-8px",
|
|
11723
|
-
marginTop: "-6px",
|
|
11724
|
-
position: "absolute",
|
|
11725
|
-
left: "7px",
|
|
11726
|
-
whiteSpace: "nowrap",
|
|
11727
|
-
overflowX: "auto",
|
|
11728
|
-
overflowY: "hidden",
|
|
11729
|
-
scrollbarWidth: "none",
|
|
11730
|
-
msOverflowStyle: "none",
|
|
11731
|
-
maxWidth: "calc(100% + 20px)",
|
|
11732
|
-
"&::-webkit-scrollbar": {
|
|
11733
|
-
display: "none"
|
|
11734
|
-
}
|
|
11735
|
-
}
|
|
11736
|
-
},
|
|
11737
|
-
options: {
|
|
11738
|
-
widget: "Box"
|
|
11739
|
-
}
|
|
11740
|
-
}
|
|
11741
|
-
]
|
|
11742
|
-
},
|
|
11743
|
-
{
|
|
11744
|
-
type: "Control",
|
|
11745
|
-
scope: "#/properties/programType",
|
|
11746
|
-
config: {
|
|
11747
|
-
main: {
|
|
11748
|
-
heading: "Total Earnings"
|
|
11749
|
-
},
|
|
11750
|
-
style: {
|
|
11751
|
-
color: "black",
|
|
11752
|
-
fontSize: "16px",
|
|
11753
|
-
fontWeight: "400",
|
|
11754
|
-
justifyContent: "center",
|
|
11755
|
-
whiteSpace: "nowrap",
|
|
11756
|
-
overflowX: "auto",
|
|
11757
|
-
overflowY: "hidden",
|
|
11758
|
-
scrollbarWidth: "none",
|
|
11759
|
-
msOverflowStyle: "none",
|
|
11760
|
-
background: "inherit",
|
|
11761
|
-
width: "calc(100% + 8px)",
|
|
11762
|
-
margin: "-8px",
|
|
11763
|
-
marginTop: { xs: "16px", md: "20px" },
|
|
11764
|
-
"&::-webkit-scrollbar": {
|
|
11765
|
-
display: "none"
|
|
11766
|
-
}
|
|
11767
|
-
},
|
|
11768
|
-
layout: 12
|
|
11769
|
-
},
|
|
11770
|
-
options: {
|
|
11771
|
-
widget: "Box"
|
|
11772
|
-
}
|
|
11773
|
-
}
|
|
11774
|
-
]
|
|
11775
|
-
}
|
|
11776
|
-
]
|
|
11777
|
-
},
|
|
11778
11686
|
{
|
|
11779
11687
|
type: "Control",
|
|
11780
|
-
scope: "#/properties/
|
|
11688
|
+
scope: "#/properties/initilCardScope",
|
|
11781
11689
|
config: {
|
|
11782
11690
|
main: {
|
|
11783
11691
|
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
11784
11692
|
},
|
|
11785
11693
|
style: {
|
|
11786
11694
|
containerStyle: {
|
|
11787
|
-
|
|
11695
|
+
position: "absolute",
|
|
11696
|
+
color: "inherit",
|
|
11697
|
+
top: "4px",
|
|
11698
|
+
right: "4px",
|
|
11788
11699
|
display: "flex",
|
|
11789
|
-
justifyContent: "end"
|
|
11700
|
+
justifyContent: "flex-end",
|
|
11701
|
+
alignItems: "flex-start"
|
|
11790
11702
|
},
|
|
11791
11703
|
imageStyle: {
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11704
|
+
color: "inherit",
|
|
11705
|
+
width: "32px",
|
|
11706
|
+
height: "32px",
|
|
11707
|
+
padding: "0px",
|
|
11708
|
+
margin: "0px"
|
|
11797
11709
|
}
|
|
11798
|
-
}
|
|
11799
|
-
layout: 3
|
|
11710
|
+
}
|
|
11800
11711
|
},
|
|
11801
11712
|
options: {
|
|
11802
11713
|
widget: "Image"
|
|
11803
11714
|
}
|
|
11715
|
+
},
|
|
11716
|
+
{
|
|
11717
|
+
type: "Control",
|
|
11718
|
+
scope: "#/properties/initilCardScope",
|
|
11719
|
+
config: {
|
|
11720
|
+
main: {
|
|
11721
|
+
heading: "Total Earnings"
|
|
11722
|
+
},
|
|
11723
|
+
style: {
|
|
11724
|
+
color: "inherit",
|
|
11725
|
+
fontSize: "16px",
|
|
11726
|
+
fontWeight: 300,
|
|
11727
|
+
fontFamily: "Poppins",
|
|
11728
|
+
justifyContent: "flex-start",
|
|
11729
|
+
background: "inherit",
|
|
11730
|
+
position: "absolute",
|
|
11731
|
+
top: "8px",
|
|
11732
|
+
left: "12px",
|
|
11733
|
+
display: "flex",
|
|
11734
|
+
maxWidth: "200px",
|
|
11735
|
+
whiteSpace: "nowrap",
|
|
11736
|
+
overflowX: "auto",
|
|
11737
|
+
scrollbarWidth: "none",
|
|
11738
|
+
"&::-webkit-scrollbar": {
|
|
11739
|
+
display: "none"
|
|
11740
|
+
}
|
|
11741
|
+
}
|
|
11742
|
+
},
|
|
11743
|
+
options: {
|
|
11744
|
+
widget: "Box"
|
|
11745
|
+
}
|
|
11746
|
+
},
|
|
11747
|
+
{
|
|
11748
|
+
type: "Control",
|
|
11749
|
+
scope: "#/properties/initilCardScope",
|
|
11750
|
+
config: {
|
|
11751
|
+
main: {
|
|
11752
|
+
heading: "5000.00"
|
|
11753
|
+
},
|
|
11754
|
+
style: {
|
|
11755
|
+
color: "inherit",
|
|
11756
|
+
display: "flex",
|
|
11757
|
+
fontSize: { xs: "22px", md: "40px" },
|
|
11758
|
+
fontWeight: 600,
|
|
11759
|
+
background: "inherit",
|
|
11760
|
+
justifyContent: "flex-start",
|
|
11761
|
+
width: "100%",
|
|
11762
|
+
margin: "0px",
|
|
11763
|
+
marginBottom: "4px",
|
|
11764
|
+
marginTop: "8px",
|
|
11765
|
+
lineHeight: "1",
|
|
11766
|
+
maxWidth: "300px",
|
|
11767
|
+
whiteSpace: "nowrap",
|
|
11768
|
+
overflowX: "auto",
|
|
11769
|
+
overflowY: "hidden",
|
|
11770
|
+
scrollbarWidth: "none",
|
|
11771
|
+
"&::-webkit-scrollbar": {
|
|
11772
|
+
display: "none"
|
|
11773
|
+
}
|
|
11774
|
+
}
|
|
11775
|
+
},
|
|
11776
|
+
options: {
|
|
11777
|
+
widget: "Box"
|
|
11778
|
+
}
|
|
11779
|
+
},
|
|
11780
|
+
{
|
|
11781
|
+
type: "Control",
|
|
11782
|
+
scope: "#/properties/initilCardScope",
|
|
11783
|
+
config: {
|
|
11784
|
+
main: {
|
|
11785
|
+
heading: "Increased from last month"
|
|
11786
|
+
},
|
|
11787
|
+
style: {
|
|
11788
|
+
color: "inherit",
|
|
11789
|
+
fontSize: "12px",
|
|
11790
|
+
fontWeight: "400",
|
|
11791
|
+
justifyContent: "flex-start",
|
|
11792
|
+
background: "inherit",
|
|
11793
|
+
margin: "0px",
|
|
11794
|
+
paddingLeft: "2px",
|
|
11795
|
+
marginBottom: "8px",
|
|
11796
|
+
maxWidth: "200px",
|
|
11797
|
+
whiteSpace: "nowrap",
|
|
11798
|
+
overflowX: "auto",
|
|
11799
|
+
scrollbarWidth: "none",
|
|
11800
|
+
"&::-webkit-scrollbar": {
|
|
11801
|
+
display: "none"
|
|
11802
|
+
}
|
|
11803
|
+
}
|
|
11804
|
+
},
|
|
11805
|
+
options: {
|
|
11806
|
+
widget: "Box"
|
|
11807
|
+
}
|
|
11804
11808
|
}
|
|
11805
11809
|
]
|
|
11806
11810
|
};
|
|
@@ -11811,9 +11815,10 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11811
11815
|
if (config.style) {
|
|
11812
11816
|
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11813
11817
|
}
|
|
11814
|
-
card.elements[0].
|
|
11815
|
-
card.elements[1].scope = `#/properties/${config.name}/properties/
|
|
11816
|
-
card.elements[
|
|
11818
|
+
card.elements[0].scope = `#/properties/${config.name}/properties/url`;
|
|
11819
|
+
card.elements[1].scope = `#/properties/${config.name}/properties/label`;
|
|
11820
|
+
card.elements[2].scope = `#/properties/${config.name}/properties/value`;
|
|
11821
|
+
card.elements[3].scope = `#/properties/${config.name}/properties/description`;
|
|
11817
11822
|
if (config.layout) {
|
|
11818
11823
|
card.config.layout = createLayoutFormat(config.layout);
|
|
11819
11824
|
}
|
|
@@ -11822,13 +11827,13 @@ const buildCard = (config, componentScope, store) => {
|
|
|
11822
11827
|
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11823
11828
|
}
|
|
11824
11829
|
if (config.label) {
|
|
11825
|
-
card.elements[
|
|
11830
|
+
card.elements[1].config.main.heading = config.label;
|
|
11826
11831
|
}
|
|
11827
11832
|
if (config.url) {
|
|
11828
|
-
card.elements[
|
|
11833
|
+
card.elements[0].config.main.url = config.url;
|
|
11829
11834
|
}
|
|
11830
11835
|
if (config.description) {
|
|
11831
|
-
card.elements[
|
|
11836
|
+
card.elements[3].config.main.heading = config.description;
|
|
11832
11837
|
}
|
|
11833
11838
|
return card;
|
|
11834
11839
|
};
|
|
@@ -12663,6 +12668,50 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12663
12668
|
}
|
|
12664
12669
|
return image;
|
|
12665
12670
|
};
|
|
12671
|
+
const cameraUiSchema = {
|
|
12672
|
+
type: "Control",
|
|
12673
|
+
scope: "#/properties/camera",
|
|
12674
|
+
options: {
|
|
12675
|
+
widget: "Camera"
|
|
12676
|
+
},
|
|
12677
|
+
config: {
|
|
12678
|
+
main: {
|
|
12679
|
+
label: "Upload Photo",
|
|
12680
|
+
multiUplaod: false,
|
|
12681
|
+
onUpload: "onFileUpload"
|
|
12682
|
+
}
|
|
12683
|
+
}
|
|
12684
|
+
};
|
|
12685
|
+
const buildCamera = (config2, componentScope2) => {
|
|
12686
|
+
const camera = _.cloneDeep(cameraUiSchema);
|
|
12687
|
+
camera.scope = componentScope2;
|
|
12688
|
+
if (config2.iconName) {
|
|
12689
|
+
camera.config.main.startIcon = config2.iconName;
|
|
12690
|
+
}
|
|
12691
|
+
if (config2.layout) {
|
|
12692
|
+
camera.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12693
|
+
}
|
|
12694
|
+
if (config2.tooltipMessage) {
|
|
12695
|
+
camera.config.main.tooltipMessage = config2.tooltipMessage;
|
|
12696
|
+
}
|
|
12697
|
+
camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
|
|
12698
|
+
if (config2.style) {
|
|
12699
|
+
camera.config.style = JSON.parse(config2.style);
|
|
12700
|
+
}
|
|
12701
|
+
if (config2.size) {
|
|
12702
|
+
camera.config.main.size = config2.size;
|
|
12703
|
+
}
|
|
12704
|
+
if (config2.variant) {
|
|
12705
|
+
camera.config.main.variant = config2.variant;
|
|
12706
|
+
}
|
|
12707
|
+
if (config2.color) {
|
|
12708
|
+
camera.config.main.color = config2.color;
|
|
12709
|
+
}
|
|
12710
|
+
if (config2.label) {
|
|
12711
|
+
camera.config.main.name = config2.label;
|
|
12712
|
+
}
|
|
12713
|
+
return camera;
|
|
12714
|
+
};
|
|
12666
12715
|
let schema = {
|
|
12667
12716
|
type: "object",
|
|
12668
12717
|
properties: {},
|
|
@@ -12875,6 +12924,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12875
12924
|
case "Image":
|
|
12876
12925
|
elements = buildImage(config2, componentScope2);
|
|
12877
12926
|
break;
|
|
12927
|
+
case "Camera":
|
|
12928
|
+
elements = buildCamera(config2, componentScope2);
|
|
12929
|
+
break;
|
|
12878
12930
|
default:
|
|
12879
12931
|
schema = {
|
|
12880
12932
|
type: "object",
|