impaktapps-ui-builder 1.0.173 → 1.0.200
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 +454 -314
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDataCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +197 -173
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dataCard.d.ts +320 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +26 -0
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +58 -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/buildDataCard.tsx +44 -0
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -12
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -7
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +21 -31
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -4
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +3 -4
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +25 -71
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +188 -142
- package/src/impaktapps-ui-builder/builder/build/uischema/dataCard.ts +207 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +17 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +3 -10
- package/src/impaktapps-ui-builder/builder/services/component.ts +12 -19
- package/src/impaktapps-ui-builder/builder/services/event.ts +0 -3
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -4
- package/src/impaktapps-ui-builder/builder/services/utils.ts +3 -15
- package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +0 -50
|
@@ -6225,8 +6225,6 @@ 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" },
|
|
6230
6228
|
{ title: "Container", const: "WrapperSection" },
|
|
6231
6229
|
{ title: "Tab Container", const: "HorizontalLayout" },
|
|
6232
6230
|
{ title: "Data Grid", const: "DataGrid" },
|
|
@@ -6260,6 +6258,7 @@ const ComponentSchema = {
|
|
|
6260
6258
|
{ title: "Timer", const: "Timer" },
|
|
6261
6259
|
{ title: "Upload", const: "UploadFile" },
|
|
6262
6260
|
{ title: "Tree ", const: "TreeMap" },
|
|
6261
|
+
{ title: "Column Group", const: "ColumnGroup" },
|
|
6263
6262
|
{ title: "Thought of the day", const: "Thought" }
|
|
6264
6263
|
]
|
|
6265
6264
|
},
|
|
@@ -6314,14 +6313,6 @@ const ComponentSchema = {
|
|
|
6314
6313
|
{ title: "Standard", const: "standard" }
|
|
6315
6314
|
]
|
|
6316
6315
|
},
|
|
6317
|
-
toolTipPosition: {
|
|
6318
|
-
oneOf: [
|
|
6319
|
-
{ title: "Top", const: "top" },
|
|
6320
|
-
{ title: "Left", const: "left" },
|
|
6321
|
-
{ title: "Right", const: "right" },
|
|
6322
|
-
{ title: "Bottom", const: "bottom" }
|
|
6323
|
-
]
|
|
6324
|
-
},
|
|
6325
6316
|
orientation: {
|
|
6326
6317
|
oneOf: [
|
|
6327
6318
|
{ title: "Horizontal", const: "horizontal" },
|
|
@@ -6569,7 +6560,8 @@ const ComponentSchema = {
|
|
|
6569
6560
|
{
|
|
6570
6561
|
title: "Stack Horizontal Bar Graph",
|
|
6571
6562
|
const: "HorizontalStackBarGraph"
|
|
6572
|
-
}
|
|
6563
|
+
},
|
|
6564
|
+
{ title: "Area Graph", const: "AreaGraph" }
|
|
6573
6565
|
]
|
|
6574
6566
|
},
|
|
6575
6567
|
iconName: {
|
|
@@ -7914,9 +7906,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7914
7906
|
getInputField("placeholder", "Placeholder"),
|
|
7915
7907
|
getRadioInputField("multiline", "Multiline", ["YES", "NO"]),
|
|
7916
7908
|
getSelectField("variant", "Variant"),
|
|
7917
|
-
|
|
7918
|
-
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
7919
|
-
emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
7909
|
+
emptyBox$1("TextEmpty1", { xs: 6, sm: 6, md: 0, lg: 3 }),
|
|
7920
7910
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
7921
7911
|
getInputField("keyName", "Event Key Name")
|
|
7922
7912
|
];
|
|
@@ -7971,9 +7961,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7971
7961
|
getInputField("bottomLabel_1", "First BottomLabel"),
|
|
7972
7962
|
getInputField("bottomLabel_2", "Second BottomLabel"),
|
|
7973
7963
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
getArrayControl("pieArcColors", "color", "Color")
|
|
7964
|
+
emptyBox$1("ProgressBarCardEmpty1"),
|
|
7965
|
+
emptyBox$1("ProgressBarCardEmpty2")
|
|
7977
7966
|
];
|
|
7978
7967
|
break;
|
|
7979
7968
|
case "card":
|
|
@@ -7985,6 +7974,16 @@ const buildPropertiesSection = function(type) {
|
|
|
7985
7974
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7986
7975
|
];
|
|
7987
7976
|
break;
|
|
7977
|
+
case "DataCard":
|
|
7978
|
+
uiSchema.elements = [
|
|
7979
|
+
getInputField("url", "Image Url"),
|
|
7980
|
+
getInputField("label", "Label"),
|
|
7981
|
+
getInputField("description", "Description"),
|
|
7982
|
+
getInputField("value", "value"),
|
|
7983
|
+
getInputField("trendIconUrl", "Trend Icon Url"),
|
|
7984
|
+
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
7985
|
+
];
|
|
7986
|
+
break;
|
|
7988
7987
|
case "Button":
|
|
7989
7988
|
uiSchema.elements = [
|
|
7990
7989
|
getSelectField("buttonType", "Button Type"),
|
|
@@ -8005,6 +8004,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8005
8004
|
uiSchema.elements = [
|
|
8006
8005
|
getInputField("height", "Height"),
|
|
8007
8006
|
getInputField("heading", "Heading"),
|
|
8007
|
+
getInputField("subHeader", "Sub Header"),
|
|
8008
8008
|
getSelectField("graphType", "Graph Type"),
|
|
8009
8009
|
getInputField("leftLabel", "Left Label"),
|
|
8010
8010
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
@@ -8018,7 +8018,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8018
8018
|
getInputField("leftMargin", "Left Margin"),
|
|
8019
8019
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
8020
8020
|
getArrayControl("legendLabels", "label"),
|
|
8021
|
-
getArrayControl("pieArcColors", "color")
|
|
8021
|
+
getArrayControl("pieArcColors", "color"),
|
|
8022
|
+
getRadioInputField("xAxisFormatType", "X Axis Format Type", ["Date and Month", "Month and Year"])
|
|
8022
8023
|
];
|
|
8023
8024
|
break;
|
|
8024
8025
|
case "WrapperSection":
|
|
@@ -8027,7 +8028,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8027
8028
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8028
8029
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8029
8030
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8030
|
-
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8031
8031
|
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
8032
8032
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8033
8033
|
];
|
|
@@ -8077,9 +8077,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8077
8077
|
case "Radio":
|
|
8078
8078
|
uiSchema.elements = [
|
|
8079
8079
|
getInputField("errorMessage", "Error Message"),
|
|
8080
|
-
|
|
8081
|
-
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8082
|
-
emptyBox$1("RadioEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8080
|
+
emptyBox$1("Radio", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
8083
8081
|
getArrayControl("sectionLabels", "label", "Options Of Radio")
|
|
8084
8082
|
];
|
|
8085
8083
|
break;
|
|
@@ -8088,33 +8086,27 @@ const buildPropertiesSection = function(type) {
|
|
|
8088
8086
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8089
8087
|
getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
|
|
8090
8088
|
getSelectField("variant", "Variant"),
|
|
8091
|
-
|
|
8092
|
-
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8093
|
-
emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8089
|
+
emptyBox$1("SelectEmpty")
|
|
8094
8090
|
];
|
|
8095
8091
|
break;
|
|
8096
8092
|
case "MultipleSelect":
|
|
8097
8093
|
uiSchema.elements = [
|
|
8098
8094
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8099
8095
|
getSelectField("variant", "Variant"),
|
|
8100
|
-
|
|
8101
|
-
|
|
8096
|
+
emptyBox$1("MultipleSelectEmpty1", { xs: 0, sm: 6, md: 4, lg: 4 }),
|
|
8097
|
+
emptyBox$1("MultipleSelectEmpty2")
|
|
8102
8098
|
];
|
|
8103
8099
|
break;
|
|
8104
8100
|
case "Date":
|
|
8105
8101
|
uiSchema.elements = [
|
|
8106
8102
|
getSelectField("variant", "Variant"),
|
|
8107
|
-
|
|
8108
|
-
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8109
|
-
emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8103
|
+
emptyBox$1("DateEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8110
8104
|
];
|
|
8111
8105
|
break;
|
|
8112
8106
|
case "DateTime":
|
|
8113
8107
|
uiSchema.elements = [
|
|
8114
8108
|
getSelectField("variant", "Variant"),
|
|
8115
|
-
|
|
8116
|
-
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8117
|
-
emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8109
|
+
emptyBox$1("DateTimeEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8118
8110
|
];
|
|
8119
8111
|
break;
|
|
8120
8112
|
case "Thought":
|
|
@@ -8136,20 +8128,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8136
8128
|
getRadioInputField("disableDelete", "Disable Delete", ["YES", "NO"]),
|
|
8137
8129
|
getRadioInputField("disableDownload", "Disable Download", ["YES", "NO"]),
|
|
8138
8130
|
getInputField("description", "Enter description"),
|
|
8139
|
-
|
|
8140
|
-
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8141
|
-
emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8131
|
+
emptyBox$1("FileInputEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8142
8132
|
];
|
|
8143
8133
|
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
|
-
];
|
|
8153
8134
|
}
|
|
8154
8135
|
return uiSchema;
|
|
8155
8136
|
};
|
|
@@ -8494,7 +8475,7 @@ var buildConfig = (FormData) => {
|
|
|
8494
8475
|
};
|
|
8495
8476
|
const createLayoutFormat = (layout, type) => {
|
|
8496
8477
|
if (_.isEmpty(layout)) {
|
|
8497
|
-
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout"
|
|
8478
|
+
const fullLayoutComponents = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought", "HorizontalLayout"];
|
|
8498
8479
|
if (fullLayoutComponents.includes(type)) {
|
|
8499
8480
|
return { xs: 12, sm: 12, md: 12, lg: 12 };
|
|
8500
8481
|
} else if (type === "Graph") {
|
|
@@ -8524,16 +8505,6 @@ const flatObjectValueInArray = (config2 = []) => {
|
|
|
8524
8505
|
const clearFromSessionStorage = () => {
|
|
8525
8506
|
sessionStorage.removeItem("pageFormdata");
|
|
8526
8507
|
};
|
|
8527
|
-
const isErrorExist = (store2) => {
|
|
8528
|
-
if (_.isEmpty(store2.ctx.core.errors))
|
|
8529
|
-
return false;
|
|
8530
|
-
store2.setValidation("ValidateAndShow");
|
|
8531
|
-
store2.setNotify({
|
|
8532
|
-
Fail: true,
|
|
8533
|
-
FailMessage: "Error on Page"
|
|
8534
|
-
});
|
|
8535
|
-
return true;
|
|
8536
|
-
};
|
|
8537
8508
|
const getNavigationHistory = (config2, path) => {
|
|
8538
8509
|
if (path) {
|
|
8539
8510
|
let urlRoutes = config2.name;
|
|
@@ -8592,13 +8563,11 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8592
8563
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
8593
8564
|
navigateHandler(store2, true, "/PageMasterRecords");
|
|
8594
8565
|
} catch (err) {
|
|
8595
|
-
navigateHandler(store2, false
|
|
8566
|
+
navigateHandler(store2, false);
|
|
8596
8567
|
}
|
|
8597
|
-
} else {
|
|
8598
|
-
navigateHandler(store2, false);
|
|
8599
8568
|
}
|
|
8600
8569
|
}
|
|
8601
|
-
const navigateHandler = (store2, isSubmitted, pageName
|
|
8570
|
+
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
8602
8571
|
if (isSubmitted) {
|
|
8603
8572
|
sessionStorage.removeItem("pageFormdata");
|
|
8604
8573
|
store2.navigate(pageName || -1);
|
|
@@ -8610,7 +8579,7 @@ const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
|
8610
8579
|
store2.setValidation("ValidateAndShow");
|
|
8611
8580
|
store2.setNotify({
|
|
8612
8581
|
Fail: true,
|
|
8613
|
-
FailMessage:
|
|
8582
|
+
FailMessage: "Errors on Page"
|
|
8614
8583
|
});
|
|
8615
8584
|
}
|
|
8616
8585
|
};
|
|
@@ -8635,24 +8604,23 @@ function okHandler(store2) {
|
|
|
8635
8604
|
const sectionLabels = {
|
|
8636
8605
|
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8637
8606
|
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
8638
|
-
Table: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8639
|
-
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8640
|
-
WrapperSection: ["Core", "Components", "Properties", "Style"],
|
|
8641
|
-
HorizontalLayout: ["Core", "Components", "Properties", "Style"],
|
|
8607
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8608
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8609
|
+
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8610
|
+
HorizontalLayout: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8642
8611
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
8643
|
-
SpeedoMeter: ["Core", "Properties", "Events", "Style"],
|
|
8612
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8644
8613
|
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8645
8614
|
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
8646
8615
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8647
8616
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8648
8617
|
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8649
8618
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8650
|
-
ProgressBarCard: ["Core", "Properties", "Events", "Style"],
|
|
8651
|
-
|
|
8652
|
-
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8619
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8620
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8653
8621
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8654
|
-
Timer: ["Core", "Events", "Style"],
|
|
8655
|
-
Rank: ["Core", "Events", "Style"],
|
|
8622
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
8623
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8656
8624
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8657
8625
|
Array: ["Core", "Components", "Properties", "Events", "Validation"],
|
|
8658
8626
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8664,12 +8632,11 @@ const sectionLabels = {
|
|
|
8664
8632
|
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8665
8633
|
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8666
8634
|
ColumnGroup: ["Core", "Components"],
|
|
8667
|
-
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8635
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8668
8636
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8669
8637
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8670
8638
|
Image: ["Core", "Properties", "Style"],
|
|
8671
|
-
FileInput: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8672
|
-
Camera: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8639
|
+
FileInput: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8673
8640
|
};
|
|
8674
8641
|
function refreshPage(type, store2) {
|
|
8675
8642
|
var _a, _b;
|
|
@@ -8872,8 +8839,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8872
8839
|
},
|
|
8873
8840
|
editComponents: function() {
|
|
8874
8841
|
var _a, _b, _c;
|
|
8875
|
-
if (isErrorExist(store2))
|
|
8876
|
-
return;
|
|
8877
8842
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8878
8843
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8879
8844
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8915,8 +8880,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8915
8880
|
},
|
|
8916
8881
|
widgetAddClickHandler: function() {
|
|
8917
8882
|
var _a;
|
|
8918
|
-
if (isErrorExist(store2))
|
|
8919
|
-
return;
|
|
8920
8883
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8921
8884
|
store2.formData.elements = [];
|
|
8922
8885
|
}
|
|
@@ -8929,8 +8892,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8929
8892
|
},
|
|
8930
8893
|
eventEditHandler: function() {
|
|
8931
8894
|
var _a, _b;
|
|
8932
|
-
if (isErrorExist(store2))
|
|
8933
|
-
return;
|
|
8934
8895
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8935
8896
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8936
8897
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
@@ -8940,8 +8901,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8940
8901
|
},
|
|
8941
8902
|
eventAddHandler: function() {
|
|
8942
8903
|
var _a, _b;
|
|
8943
|
-
if (isErrorExist(store2))
|
|
8944
|
-
return;
|
|
8945
8904
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8946
8905
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8947
8906
|
if (!Array.isArray(store2.formData.events)) {
|
|
@@ -9115,8 +9074,6 @@ var pageMaster = (funcParams) => {
|
|
|
9115
9074
|
},
|
|
9116
9075
|
onAddClickHandler: function() {
|
|
9117
9076
|
var _a;
|
|
9118
|
-
if (isErrorExist(store2))
|
|
9119
|
-
return;
|
|
9120
9077
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9121
9078
|
if (!Array.isArray(store2.formData.elements)) {
|
|
9122
9079
|
store2.formData.elements = [];
|
|
@@ -9140,8 +9097,6 @@ var pageMaster = (funcParams) => {
|
|
|
9140
9097
|
},
|
|
9141
9098
|
eventAddHandler: function() {
|
|
9142
9099
|
var _a;
|
|
9143
|
-
if (isErrorExist(store2))
|
|
9144
|
-
return;
|
|
9145
9100
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9146
9101
|
if (!Array.isArray(store2.formData.events)) {
|
|
9147
9102
|
store2.formData.events = [];
|
|
@@ -9152,8 +9107,6 @@ var pageMaster = (funcParams) => {
|
|
|
9152
9107
|
},
|
|
9153
9108
|
editEvent: function() {
|
|
9154
9109
|
var _a;
|
|
9155
|
-
if (isErrorExist(store2))
|
|
9156
|
-
return;
|
|
9157
9110
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9158
9111
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9159
9112
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
@@ -10133,8 +10086,6 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10133
10086
|
},
|
|
10134
10087
|
addEvent: function() {
|
|
10135
10088
|
var _a, _b, _c;
|
|
10136
|
-
if (isErrorExist(store2))
|
|
10137
|
-
return;
|
|
10138
10089
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10139
10090
|
if (!Array.isArray(store2.formData.events)) {
|
|
10140
10091
|
store2.formData.events = [];
|
|
@@ -10147,8 +10098,6 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10147
10098
|
},
|
|
10148
10099
|
editEvent: function() {
|
|
10149
10100
|
var _a;
|
|
10150
|
-
if (isErrorExist(store2))
|
|
10151
|
-
return;
|
|
10152
10101
|
const rowId = dynamicData2.path.split(".")[1];
|
|
10153
10102
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
10154
10103
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
@@ -10907,15 +10856,6 @@ const buildProgressBar = (config2, componentScope2) => {
|
|
|
10907
10856
|
ProgressBar.config.layout = config2.layout;
|
|
10908
10857
|
}
|
|
10909
10858
|
ProgressBar.config.main.heading = config2.label;
|
|
10910
|
-
if (config2.variant) {
|
|
10911
|
-
ProgressBar.config.main.variant = config2.variant;
|
|
10912
|
-
}
|
|
10913
|
-
if (config2.pieArcColors) {
|
|
10914
|
-
ProgressBar.config.main.colorRange = flatObjectValueInArray(config2.pieArcColors);
|
|
10915
|
-
}
|
|
10916
|
-
if (config2.size) {
|
|
10917
|
-
ProgressBar.config.main.size = Number(config2.size);
|
|
10918
|
-
}
|
|
10919
10859
|
if (config2.bottomLabel_3) {
|
|
10920
10860
|
ProgressBar.config.main.bottomLabel_3 = config2.bottomLabel_3;
|
|
10921
10861
|
}
|
|
@@ -11270,7 +11210,6 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11270
11210
|
wrapper.config.main.label = config2.label;
|
|
11271
11211
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11272
11212
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11273
|
-
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11274
11213
|
if (config2.defaultStyle) {
|
|
11275
11214
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11276
11215
|
}
|
|
@@ -11320,12 +11259,6 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11320
11259
|
if (config2.layout) {
|
|
11321
11260
|
inputField.config.layout = createLayoutFormat(config2.layout);
|
|
11322
11261
|
}
|
|
11323
|
-
if (config2.toolTip) {
|
|
11324
|
-
inputField.config.main.toolTip = config2.toolTip;
|
|
11325
|
-
}
|
|
11326
|
-
if (config2.toolTipPosition) {
|
|
11327
|
-
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11328
|
-
}
|
|
11329
11262
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11330
11263
|
inputField.scope = componentScope2;
|
|
11331
11264
|
return inputField;
|
|
@@ -11363,12 +11296,6 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11363
11296
|
if (config2.layout) {
|
|
11364
11297
|
selectInputField.config.layout = createLayoutFormat(config2.layout);
|
|
11365
11298
|
}
|
|
11366
|
-
if (config2.toolTip) {
|
|
11367
|
-
selectInputField.config.main.toolTip = config2.toolTip;
|
|
11368
|
-
}
|
|
11369
|
-
if (config2.toolTipPosition) {
|
|
11370
|
-
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11371
|
-
}
|
|
11372
11299
|
selectInputField.scope = componentScope2;
|
|
11373
11300
|
return selectInputField;
|
|
11374
11301
|
};
|
|
@@ -11527,9 +11454,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11527
11454
|
if (config2.initialDensity) {
|
|
11528
11455
|
table.config.main.initialDensity = config2.initialDensity;
|
|
11529
11456
|
}
|
|
11530
|
-
if (config2.layout) {
|
|
11531
|
-
table.config.layout = createLayoutFormat(config2.layout);
|
|
11532
|
-
}
|
|
11533
11457
|
return table;
|
|
11534
11458
|
};
|
|
11535
11459
|
const Box = {
|
|
@@ -11610,12 +11534,6 @@ const buildUploadFile = (config2, componentScope2) => {
|
|
|
11610
11534
|
if (config2.required) {
|
|
11611
11535
|
UploadFile.config.main.required = true;
|
|
11612
11536
|
}
|
|
11613
|
-
if (config2.toolTip) {
|
|
11614
|
-
UploadFile.config.main.toolTip = config2.toolTip;
|
|
11615
|
-
}
|
|
11616
|
-
if (config2.toolTipPosition) {
|
|
11617
|
-
UploadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11618
|
-
}
|
|
11619
11537
|
UploadFile.config.main.errorMessage = config2.errorMessage;
|
|
11620
11538
|
return UploadFile;
|
|
11621
11539
|
};
|
|
@@ -11638,15 +11556,249 @@ const buildDownloadFile = (config2, componentScope2) => {
|
|
|
11638
11556
|
if (config2.errorMessage) {
|
|
11639
11557
|
DownloadFile.config.main.errorMessage = config2.errorMessage;
|
|
11640
11558
|
}
|
|
11641
|
-
if (config2.toolTip) {
|
|
11642
|
-
DownloadFile.config.main.toolTip = config2.toolTip;
|
|
11643
|
-
}
|
|
11644
|
-
if (config2.toolTipPosition) {
|
|
11645
|
-
DownloadFile.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11646
|
-
}
|
|
11647
11559
|
return DownloadFile;
|
|
11648
11560
|
};
|
|
11649
11561
|
function Card(theme) {
|
|
11562
|
+
const uiSchema = {
|
|
11563
|
+
type: "WrapperLayout",
|
|
11564
|
+
config: {
|
|
11565
|
+
main: {},
|
|
11566
|
+
wrapperStyle: {
|
|
11567
|
+
position: "relative",
|
|
11568
|
+
top: "50%",
|
|
11569
|
+
transform: "translateY(-50%)",
|
|
11570
|
+
marginBottom: 0
|
|
11571
|
+
},
|
|
11572
|
+
componentsBoxStyle: {
|
|
11573
|
+
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.1)",
|
|
11574
|
+
flexDirection: "row",
|
|
11575
|
+
flexWrap: "nowrap",
|
|
11576
|
+
width: "100% !important",
|
|
11577
|
+
background: "transparent",
|
|
11578
|
+
border: `1.5px solid ${theme.palette.primary.light}`,
|
|
11579
|
+
borderRadius: "8px",
|
|
11580
|
+
padding: "0px 4px",
|
|
11581
|
+
height: "100%",
|
|
11582
|
+
alignItems: "center",
|
|
11583
|
+
marginLeft: "0px",
|
|
11584
|
+
"&: hover": {
|
|
11585
|
+
background: `${theme.palette.primary.main}`,
|
|
11586
|
+
border: `1.5px solid black`,
|
|
11587
|
+
"& p": {
|
|
11588
|
+
color: "white"
|
|
11589
|
+
}
|
|
11590
|
+
}
|
|
11591
|
+
},
|
|
11592
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 }
|
|
11593
|
+
},
|
|
11594
|
+
elements: [
|
|
11595
|
+
{
|
|
11596
|
+
type: "HorizontalLayout",
|
|
11597
|
+
config: {
|
|
11598
|
+
layout: 9
|
|
11599
|
+
},
|
|
11600
|
+
elements: [
|
|
11601
|
+
{
|
|
11602
|
+
type: "WrapperLayout",
|
|
11603
|
+
config: {
|
|
11604
|
+
main: {
|
|
11605
|
+
columnSpacing: 0,
|
|
11606
|
+
gap: 0
|
|
11607
|
+
},
|
|
11608
|
+
wrapperStyle: {
|
|
11609
|
+
background: "transparent",
|
|
11610
|
+
marginBottom: 0
|
|
11611
|
+
},
|
|
11612
|
+
componentsBoxStyle: {
|
|
11613
|
+
flexDirection: "column",
|
|
11614
|
+
flexWrap: "nowrap",
|
|
11615
|
+
width: "100%",
|
|
11616
|
+
height: "inherit",
|
|
11617
|
+
background: "transparent",
|
|
11618
|
+
borderRadius: "0px",
|
|
11619
|
+
paddingRight: 0
|
|
11620
|
+
},
|
|
11621
|
+
layout: 12
|
|
11622
|
+
},
|
|
11623
|
+
elements: [
|
|
11624
|
+
{
|
|
11625
|
+
type: "WrapperLayout",
|
|
11626
|
+
config: {
|
|
11627
|
+
main: {
|
|
11628
|
+
columnSpacing: 0,
|
|
11629
|
+
gap: 0
|
|
11630
|
+
},
|
|
11631
|
+
wrapperStyle: {
|
|
11632
|
+
background: "transparent",
|
|
11633
|
+
marginBottom: 0
|
|
11634
|
+
},
|
|
11635
|
+
componentsBoxStyle: {
|
|
11636
|
+
flexDirection: "row",
|
|
11637
|
+
flexWrap: "nowrap",
|
|
11638
|
+
width: "100%",
|
|
11639
|
+
height: "0",
|
|
11640
|
+
background: "transparent",
|
|
11641
|
+
borderRadius: "0px",
|
|
11642
|
+
marginLeft: "-10px",
|
|
11643
|
+
marginTop: "-8px",
|
|
11644
|
+
justifyContent: "start",
|
|
11645
|
+
position: "relative"
|
|
11646
|
+
},
|
|
11647
|
+
layout: 12
|
|
11648
|
+
},
|
|
11649
|
+
elements: [
|
|
11650
|
+
{
|
|
11651
|
+
type: "Control",
|
|
11652
|
+
scope: "#/properties/programType",
|
|
11653
|
+
config: {
|
|
11654
|
+
main: {
|
|
11655
|
+
heading: ""
|
|
11656
|
+
},
|
|
11657
|
+
style: {
|
|
11658
|
+
color: "black",
|
|
11659
|
+
display: "flex",
|
|
11660
|
+
fontSize: { xs: "24px", md: "28px" },
|
|
11661
|
+
fontWeight: "bold",
|
|
11662
|
+
background: "inherit",
|
|
11663
|
+
justifyContent: "flex-start",
|
|
11664
|
+
width: "auto",
|
|
11665
|
+
margin: "-8px",
|
|
11666
|
+
marginLeft: "-24px",
|
|
11667
|
+
height: 0
|
|
11668
|
+
}
|
|
11669
|
+
},
|
|
11670
|
+
options: {
|
|
11671
|
+
widget: "Box"
|
|
11672
|
+
}
|
|
11673
|
+
},
|
|
11674
|
+
{
|
|
11675
|
+
type: "Control",
|
|
11676
|
+
scope: "#/properties/programType",
|
|
11677
|
+
config: {
|
|
11678
|
+
main: {
|
|
11679
|
+
heading: "5000.00"
|
|
11680
|
+
},
|
|
11681
|
+
style: {
|
|
11682
|
+
color: "black",
|
|
11683
|
+
display: "flex",
|
|
11684
|
+
fontSize: { xs: "24px", md: "25px" },
|
|
11685
|
+
fontWeight: "bold",
|
|
11686
|
+
background: "inherit",
|
|
11687
|
+
justifyContent: "flex-start",
|
|
11688
|
+
width: "auto",
|
|
11689
|
+
margin: "-8px",
|
|
11690
|
+
marginTop: "-6px",
|
|
11691
|
+
position: "absolute",
|
|
11692
|
+
left: "7px",
|
|
11693
|
+
whiteSpace: "nowrap",
|
|
11694
|
+
overflowX: "auto",
|
|
11695
|
+
overflowY: "hidden",
|
|
11696
|
+
scrollbarWidth: "none",
|
|
11697
|
+
msOverflowStyle: "none",
|
|
11698
|
+
maxWidth: "calc(100% + 20px)",
|
|
11699
|
+
"&::-webkit-scrollbar": {
|
|
11700
|
+
display: "none"
|
|
11701
|
+
}
|
|
11702
|
+
}
|
|
11703
|
+
},
|
|
11704
|
+
options: {
|
|
11705
|
+
widget: "Box"
|
|
11706
|
+
}
|
|
11707
|
+
}
|
|
11708
|
+
]
|
|
11709
|
+
},
|
|
11710
|
+
{
|
|
11711
|
+
type: "Control",
|
|
11712
|
+
scope: "#/properties/programType",
|
|
11713
|
+
config: {
|
|
11714
|
+
main: {
|
|
11715
|
+
heading: "Total Earnings"
|
|
11716
|
+
},
|
|
11717
|
+
style: {
|
|
11718
|
+
color: "black",
|
|
11719
|
+
fontSize: "16px",
|
|
11720
|
+
justifyContent: "center",
|
|
11721
|
+
whiteSpace: "nowrap",
|
|
11722
|
+
overflowX: "auto",
|
|
11723
|
+
overflowY: "hidden",
|
|
11724
|
+
scrollbarWidth: "none",
|
|
11725
|
+
msOverflowStyle: "none",
|
|
11726
|
+
background: "inherit",
|
|
11727
|
+
width: "calc(100% + 8px)",
|
|
11728
|
+
margin: "-8px",
|
|
11729
|
+
marginTop: { xs: "16px", md: "20px" },
|
|
11730
|
+
"&::-webkit-scrollbar": {
|
|
11731
|
+
display: "none"
|
|
11732
|
+
}
|
|
11733
|
+
},
|
|
11734
|
+
layout: 12
|
|
11735
|
+
},
|
|
11736
|
+
options: {
|
|
11737
|
+
widget: "Box"
|
|
11738
|
+
}
|
|
11739
|
+
}
|
|
11740
|
+
]
|
|
11741
|
+
}
|
|
11742
|
+
]
|
|
11743
|
+
},
|
|
11744
|
+
{
|
|
11745
|
+
type: "Control",
|
|
11746
|
+
scope: "#/properties/programType",
|
|
11747
|
+
config: {
|
|
11748
|
+
main: {
|
|
11749
|
+
url: "https://www.svgrepo.com/show/500606/loading.svg"
|
|
11750
|
+
},
|
|
11751
|
+
style: {
|
|
11752
|
+
containerStyle: {
|
|
11753
|
+
height: "100%",
|
|
11754
|
+
display: "flex",
|
|
11755
|
+
justifyContent: "end"
|
|
11756
|
+
},
|
|
11757
|
+
imageStyle: {
|
|
11758
|
+
width: "unset",
|
|
11759
|
+
fontSize: "none",
|
|
11760
|
+
padding: "4px",
|
|
11761
|
+
margin: "0px 0px 0px 8px",
|
|
11762
|
+
height: "64px"
|
|
11763
|
+
}
|
|
11764
|
+
},
|
|
11765
|
+
layout: 3
|
|
11766
|
+
},
|
|
11767
|
+
options: {
|
|
11768
|
+
widget: "Image"
|
|
11769
|
+
}
|
|
11770
|
+
}
|
|
11771
|
+
]
|
|
11772
|
+
};
|
|
11773
|
+
return uiSchema;
|
|
11774
|
+
}
|
|
11775
|
+
const buildCard = (config, componentScope, store) => {
|
|
11776
|
+
const card = _.cloneDeep(Card(store.theme.myTheme));
|
|
11777
|
+
if (config.style) {
|
|
11778
|
+
card.config.wrapperStyle = JSON.parse(config.style);
|
|
11779
|
+
}
|
|
11780
|
+
card.elements[0].elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/value`;
|
|
11781
|
+
card.elements[1].scope = `#/properties/${config.name}/properties/url`;
|
|
11782
|
+
card.elements[0].elements[0].elements[1].scope = `#/properties/${config.name}/properties/description`;
|
|
11783
|
+
if (config.layout) {
|
|
11784
|
+
card.config.layout = createLayoutFormat(config.layout);
|
|
11785
|
+
}
|
|
11786
|
+
if (config == null ? void 0 : config.titleIcon) {
|
|
11787
|
+
card.elements[0].elements[0].elements[0].elements[0].config.main.heading = eval(`'\\${config.titleIcon}'`);
|
|
11788
|
+
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
11789
|
+
}
|
|
11790
|
+
if (config.label) {
|
|
11791
|
+
card.elements[0].elements[0].elements[0].elements[1].config.main.heading = config.label;
|
|
11792
|
+
}
|
|
11793
|
+
if (config.url) {
|
|
11794
|
+
card.elements[1].config.main.url = config.url;
|
|
11795
|
+
}
|
|
11796
|
+
if (config.description) {
|
|
11797
|
+
card.elements[0].elements[0].elements[1].config.main.heading = config.description;
|
|
11798
|
+
}
|
|
11799
|
+
return card;
|
|
11800
|
+
};
|
|
11801
|
+
function DataCard(theme) {
|
|
11650
11802
|
const uiSchema = {
|
|
11651
11803
|
type: "WrapperLayout",
|
|
11652
11804
|
config: {
|
|
@@ -11657,184 +11809,248 @@ function Card(theme) {
|
|
|
11657
11809
|
top: "50%",
|
|
11658
11810
|
transform: "translateY(-50%)",
|
|
11659
11811
|
marginBottom: 0,
|
|
11660
|
-
borderRadius: "
|
|
11661
|
-
fontFamily: "poppins"
|
|
11812
|
+
borderRadius: "8px"
|
|
11662
11813
|
},
|
|
11663
11814
|
componentsBoxStyle: {
|
|
11664
|
-
boxShadow: "
|
|
11815
|
+
boxShadow: "0px 2px 6px rgba(0, 0, 0, 0.06)",
|
|
11665
11816
|
flexDirection: "column",
|
|
11666
11817
|
overflow: "hidden",
|
|
11667
11818
|
flexWrap: "nowrap",
|
|
11668
|
-
width: "
|
|
11669
|
-
background: "
|
|
11670
|
-
|
|
11671
|
-
|
|
11819
|
+
width: "90% !important",
|
|
11820
|
+
background: "#F9FAFB",
|
|
11821
|
+
border: "2px solid #E5E7EB",
|
|
11822
|
+
borderRadius: "16px",
|
|
11823
|
+
padding: "24px 20px 20px 24px",
|
|
11672
11824
|
height: "100%",
|
|
11673
|
-
minHeight: "
|
|
11825
|
+
minHeight: "140px",
|
|
11674
11826
|
position: "relative",
|
|
11675
11827
|
marginLeft: "0px",
|
|
11676
|
-
"
|
|
11677
|
-
|
|
11678
|
-
|
|
11828
|
+
transition: "all 0.3s ease",
|
|
11829
|
+
"&:hover": {
|
|
11830
|
+
transform: "translateY(-6px)",
|
|
11831
|
+
boxShadow: "0px 8px 16px rgba(0, 0, 0, 0.08)"
|
|
11679
11832
|
}
|
|
11680
11833
|
}
|
|
11681
11834
|
},
|
|
11682
|
-
layout: { xs: 12, sm: 12, md:
|
|
11835
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 3 }
|
|
11683
11836
|
},
|
|
11684
11837
|
elements: [
|
|
11685
11838
|
{
|
|
11686
11839
|
type: "Control",
|
|
11687
|
-
scope: "#/properties/
|
|
11840
|
+
scope: "#/properties/programType",
|
|
11688
11841
|
config: {
|
|
11689
11842
|
main: {
|
|
11690
|
-
url: "https://
|
|
11843
|
+
url: "https://unpkg.com/heroicons@2.0.18/24/outline/information-circle.svg"
|
|
11691
11844
|
},
|
|
11692
11845
|
style: {
|
|
11693
11846
|
containerStyle: {
|
|
11694
11847
|
position: "absolute",
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
right: "4px",
|
|
11848
|
+
top: "20px",
|
|
11849
|
+
right: "20px",
|
|
11698
11850
|
display: "flex",
|
|
11699
|
-
justifyContent: "
|
|
11700
|
-
alignItems: "
|
|
11851
|
+
justifyContent: "center",
|
|
11852
|
+
alignItems: "center",
|
|
11853
|
+
background: "#F3F4F6",
|
|
11854
|
+
borderRadius: "20%",
|
|
11855
|
+
width: "48px",
|
|
11856
|
+
height: "48px",
|
|
11857
|
+
padding: "12px"
|
|
11701
11858
|
},
|
|
11702
11859
|
imageStyle: {
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
height: "32px",
|
|
11860
|
+
width: "24px",
|
|
11861
|
+
height: "24px",
|
|
11706
11862
|
padding: "0px",
|
|
11707
|
-
margin: "0px"
|
|
11863
|
+
margin: "0px",
|
|
11864
|
+
opacity: 0.7
|
|
11708
11865
|
}
|
|
11709
11866
|
}
|
|
11710
11867
|
},
|
|
11711
|
-
options: {
|
|
11712
|
-
widget: "Image"
|
|
11713
|
-
}
|
|
11868
|
+
options: { widget: "Image" }
|
|
11714
11869
|
},
|
|
11715
11870
|
{
|
|
11716
11871
|
type: "Control",
|
|
11717
|
-
scope: "#/properties/
|
|
11872
|
+
scope: "#/properties/programType",
|
|
11718
11873
|
config: {
|
|
11719
11874
|
main: {
|
|
11720
|
-
heading: "
|
|
11875
|
+
heading: "METRIC"
|
|
11721
11876
|
},
|
|
11722
11877
|
style: {
|
|
11723
|
-
color: "
|
|
11724
|
-
fontSize: "16px",
|
|
11725
|
-
fontWeight: 300,
|
|
11726
|
-
fontFamily: "Poppins",
|
|
11878
|
+
color: "#9CA3AF",
|
|
11727
11879
|
justifyContent: "flex-start",
|
|
11728
11880
|
background: "inherit",
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
"
|
|
11738
|
-
|
|
11739
|
-
|
|
11881
|
+
margin: "0px",
|
|
11882
|
+
marginBottom: "16px",
|
|
11883
|
+
paddingRight: "60px",
|
|
11884
|
+
whiteSpace: "normal",
|
|
11885
|
+
wordWrap: "break-word",
|
|
11886
|
+
overflowWrap: "break-word",
|
|
11887
|
+
fontStyle: "normal",
|
|
11888
|
+
fontSize: "12px",
|
|
11889
|
+
fontWeight: "600",
|
|
11890
|
+
letterSpacing: "0.3px",
|
|
11891
|
+
textTransform: "uppercase",
|
|
11892
|
+
fontFamily: "Arial",
|
|
11893
|
+
maxWidth: "24%",
|
|
11894
|
+
lineHeight: "1.2",
|
|
11895
|
+
height: "20px"
|
|
11740
11896
|
}
|
|
11741
11897
|
},
|
|
11742
|
-
options: {
|
|
11743
|
-
widget: "Box"
|
|
11744
|
-
}
|
|
11898
|
+
options: { widget: "Box" }
|
|
11745
11899
|
},
|
|
11746
11900
|
{
|
|
11747
11901
|
type: "Control",
|
|
11748
|
-
scope: "#/properties/
|
|
11902
|
+
scope: "#/properties/programType",
|
|
11749
11903
|
config: {
|
|
11750
11904
|
main: {
|
|
11751
|
-
heading: "
|
|
11905
|
+
heading: "--"
|
|
11752
11906
|
},
|
|
11753
11907
|
style: {
|
|
11754
|
-
color: "
|
|
11908
|
+
color: "#111827",
|
|
11755
11909
|
display: "flex",
|
|
11756
|
-
fontSize: { xs: "
|
|
11757
|
-
fontWeight:
|
|
11910
|
+
fontSize: { xs: "36px", md: "42px" },
|
|
11911
|
+
fontWeight: "700",
|
|
11758
11912
|
background: "inherit",
|
|
11759
11913
|
justifyContent: "flex-start",
|
|
11760
11914
|
width: "100%",
|
|
11761
11915
|
margin: "0px",
|
|
11762
|
-
marginBottom: "
|
|
11763
|
-
marginTop: "8px",
|
|
11916
|
+
marginBottom: "16px",
|
|
11764
11917
|
lineHeight: "1",
|
|
11765
|
-
maxWidth: "
|
|
11918
|
+
maxWidth: "200px",
|
|
11766
11919
|
whiteSpace: "nowrap",
|
|
11767
|
-
|
|
11768
|
-
overflowY: "hidden",
|
|
11769
|
-
scrollbarWidth: "none",
|
|
11770
|
-
"&::-webkit-scrollbar": {
|
|
11771
|
-
display: "none"
|
|
11772
|
-
}
|
|
11920
|
+
opacity: 0.85
|
|
11773
11921
|
}
|
|
11774
11922
|
},
|
|
11775
|
-
options: {
|
|
11776
|
-
widget: "Box"
|
|
11777
|
-
}
|
|
11923
|
+
options: { widget: "Box" }
|
|
11778
11924
|
},
|
|
11779
11925
|
{
|
|
11780
|
-
type: "
|
|
11781
|
-
scope: "#/properties/initilCardScope",
|
|
11926
|
+
type: "WrapperLayout",
|
|
11782
11927
|
config: {
|
|
11783
|
-
main: {
|
|
11784
|
-
heading: "Increased from last month"
|
|
11785
|
-
},
|
|
11928
|
+
main: { spacing: 0, rowSpacing: 0, columnSpacing: 0, gap: 0 },
|
|
11786
11929
|
style: {
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11930
|
+
componentsBoxStyle: {
|
|
11931
|
+
display: "flex",
|
|
11932
|
+
flexDirection: "row",
|
|
11933
|
+
alignItems: "center",
|
|
11934
|
+
justifyContent: "flex-start",
|
|
11935
|
+
background: "#E5E7EB",
|
|
11936
|
+
borderRadius: "999px",
|
|
11937
|
+
padding: "6px 14px",
|
|
11938
|
+
width: "fit-content",
|
|
11939
|
+
whiteSpace: "nowrap",
|
|
11940
|
+
gap: "6px",
|
|
11941
|
+
margin: "0px",
|
|
11942
|
+
paddingLeft: "20px",
|
|
11943
|
+
paddingRight: "20px"
|
|
11801
11944
|
}
|
|
11802
|
-
}
|
|
11945
|
+
},
|
|
11946
|
+
layout: { xs: "auto" }
|
|
11803
11947
|
},
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11948
|
+
elements: [
|
|
11949
|
+
{
|
|
11950
|
+
type: "Control",
|
|
11951
|
+
scope: "#/properties/programType",
|
|
11952
|
+
config: {
|
|
11953
|
+
main: {
|
|
11954
|
+
url: "https://unpkg.com/heroicons@2.0.18/24/outline/arrow-right.svg"
|
|
11955
|
+
},
|
|
11956
|
+
style: {
|
|
11957
|
+
containerStyle: {
|
|
11958
|
+
display: "flex",
|
|
11959
|
+
alignItems: "center",
|
|
11960
|
+
justifyContent: "center",
|
|
11961
|
+
margin: "0px",
|
|
11962
|
+
padding: "0px"
|
|
11963
|
+
},
|
|
11964
|
+
imageStyle: {
|
|
11965
|
+
width: "14px",
|
|
11966
|
+
height: "14px",
|
|
11967
|
+
filter: "brightness(0) invert(0.5)",
|
|
11968
|
+
display: "block"
|
|
11969
|
+
}
|
|
11970
|
+
},
|
|
11971
|
+
layout: { xs: "auto" }
|
|
11972
|
+
},
|
|
11973
|
+
options: { widget: "Image" }
|
|
11974
|
+
},
|
|
11975
|
+
{
|
|
11976
|
+
type: "Control",
|
|
11977
|
+
scope: "#/properties/programType",
|
|
11978
|
+
config: {
|
|
11979
|
+
main: {
|
|
11980
|
+
heading: "\u2014"
|
|
11981
|
+
},
|
|
11982
|
+
style: {
|
|
11983
|
+
color: "#6B7280",
|
|
11984
|
+
fontSize: "12px",
|
|
11985
|
+
fontWeight: "550",
|
|
11986
|
+
background: "transparent",
|
|
11987
|
+
margin: "0px",
|
|
11988
|
+
padding: "0px",
|
|
11989
|
+
lineHeight: "1",
|
|
11990
|
+
display: "flex",
|
|
11991
|
+
alignItems: "center"
|
|
11992
|
+
},
|
|
11993
|
+
layout: { xs: "auto" }
|
|
11994
|
+
},
|
|
11995
|
+
options: { widget: "Box" }
|
|
11996
|
+
}
|
|
11997
|
+
]
|
|
11807
11998
|
}
|
|
11808
11999
|
]
|
|
11809
12000
|
};
|
|
11810
12001
|
return uiSchema;
|
|
11811
12002
|
}
|
|
11812
|
-
const
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
12003
|
+
const buildDataCard = (config2, componentScope2, store2) => {
|
|
12004
|
+
var _a, _b, _c, _d, _e;
|
|
12005
|
+
const card2 = _.cloneDeep(DataCard(store2.theme.myTheme));
|
|
12006
|
+
if (config2.style) {
|
|
12007
|
+
const parsedStyle = JSON.parse(config2.style);
|
|
12008
|
+
card2.config.wrapperStyle = parsedStyle;
|
|
12009
|
+
card2.elements[1].config.style = {
|
|
12010
|
+
...card2.elements[1].config.style,
|
|
12011
|
+
...(_a = parsedStyle.labelStyle) != null ? _a : {}
|
|
12012
|
+
};
|
|
12013
|
+
card2.elements[3].config.style.componentsBoxStyle = {
|
|
12014
|
+
...card2.elements[3].config.style.componentsBoxStyle,
|
|
12015
|
+
...(_b = parsedStyle.descriptionBoxStyle) != null ? _b : {}
|
|
12016
|
+
};
|
|
12017
|
+
card2.elements[2].config.style = {
|
|
12018
|
+
...card2.elements[2].config.style,
|
|
12019
|
+
...(_c = parsedStyle.valueStyle) != null ? _c : {}
|
|
12020
|
+
};
|
|
12021
|
+
card2.config.componentsBoxStyle = {
|
|
12022
|
+
...card2.config.componentsBoxStyle,
|
|
12023
|
+
...(_d = parsedStyle.componentsBoxStyle) != null ? _d : {}
|
|
12024
|
+
};
|
|
12025
|
+
card2.elements[0].config.style.containerStyle = {
|
|
12026
|
+
...card2.elements[0].config.style.containerStyle,
|
|
12027
|
+
...(_e = parsedStyle.imageContainerStyle) != null ? _e : {}
|
|
12028
|
+
};
|
|
11816
12029
|
}
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
12030
|
+
card2.elements[2].scope = `#/properties/${config2.name}/properties/value`;
|
|
12031
|
+
card2.elements[0].scope = `#/properties/${config2.name}/properties/url`;
|
|
12032
|
+
card2.elements[3].elements[1].scope = `#/properties/${config2.name}/properties/description`;
|
|
12033
|
+
card2.elements[1].scope = `#/properties/${config2.name}/properties/label`;
|
|
12034
|
+
card2.elements[3].elements[0].scope = `#/properties/${config2.name}/properties/trendIconUrl`;
|
|
12035
|
+
if (config2.layout) {
|
|
12036
|
+
card2.config.layout = createLayoutFormat(config2.layout);
|
|
11823
12037
|
}
|
|
11824
|
-
if (
|
|
11825
|
-
|
|
11826
|
-
card.elements[0].elements[0].elements[0].elements[1].config.style.left = "24px";
|
|
12038
|
+
if (config2.label) {
|
|
12039
|
+
card2.elements[1].config.main.heading = config2.label;
|
|
11827
12040
|
}
|
|
11828
|
-
if (
|
|
11829
|
-
|
|
12041
|
+
if (config2.url) {
|
|
12042
|
+
card2.elements[0].config.main.url = config2.url;
|
|
11830
12043
|
}
|
|
11831
|
-
if (
|
|
11832
|
-
|
|
12044
|
+
if (config2.description) {
|
|
12045
|
+
card2.elements[3].elements[1].config.main.heading = config2.description;
|
|
11833
12046
|
}
|
|
11834
|
-
if (
|
|
11835
|
-
|
|
12047
|
+
if (config2.value) {
|
|
12048
|
+
card2.elements[2].config.main.heading = config2.value;
|
|
11836
12049
|
}
|
|
11837
|
-
|
|
12050
|
+
if (config2.trendIconUrl) {
|
|
12051
|
+
card2.elements[3].elements[0].config.main.url = config2.trendIconUrl;
|
|
12052
|
+
}
|
|
12053
|
+
return card2;
|
|
11838
12054
|
};
|
|
11839
12055
|
var DateInputField = {
|
|
11840
12056
|
type: "Control",
|
|
@@ -11875,12 +12091,6 @@ const buildDate = (config2, componentScope2) => {
|
|
|
11875
12091
|
if (config2.variant) {
|
|
11876
12092
|
dateInputField.config.main.variant = config2.variant;
|
|
11877
12093
|
}
|
|
11878
|
-
if (config2.toolTip) {
|
|
11879
|
-
dateInputField.config.main.toolTip = config2.toolTip;
|
|
11880
|
-
}
|
|
11881
|
-
if (config2.toolTipPosition) {
|
|
11882
|
-
dateInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11883
|
-
}
|
|
11884
12094
|
return dateInputField;
|
|
11885
12095
|
};
|
|
11886
12096
|
const buildDateTime = (config2, componentScope2) => {
|
|
@@ -11894,12 +12104,6 @@ const buildDateTime = (config2, componentScope2) => {
|
|
|
11894
12104
|
if (config2.variant) {
|
|
11895
12105
|
dateTimeInputField.config.main.variant = config2.variant;
|
|
11896
12106
|
}
|
|
11897
|
-
if (config2.toolTip) {
|
|
11898
|
-
dateTimeInputField.config.main.toolTip = config2.toolTip;
|
|
11899
|
-
}
|
|
11900
|
-
if (config2.toolTipPosition) {
|
|
11901
|
-
dateTimeInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11902
|
-
}
|
|
11903
12107
|
return dateTimeInputField;
|
|
11904
12108
|
};
|
|
11905
12109
|
var RankCard = {
|
|
@@ -12011,12 +12215,6 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
12011
12215
|
if (config2.lazyLoading) {
|
|
12012
12216
|
multipleSelect.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
12013
12217
|
}
|
|
12014
|
-
if (config2.toolTip) {
|
|
12015
|
-
multipleSelect.config.main.toolTip = config2.toolTip;
|
|
12016
|
-
}
|
|
12017
|
-
if (config2.toolTipPosition) {
|
|
12018
|
-
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12019
|
-
}
|
|
12020
12218
|
return multipleSelect;
|
|
12021
12219
|
};
|
|
12022
12220
|
const buildBasicUiSchema = (config2) => {
|
|
@@ -12201,12 +12399,6 @@ const buildRadio = (config2, componentScope2) => {
|
|
|
12201
12399
|
if (config2.errorMessage) {
|
|
12202
12400
|
Radio.config.main.errorMessage = config2.errorMessage;
|
|
12203
12401
|
}
|
|
12204
|
-
if (config2.toolTip) {
|
|
12205
|
-
Radio.config.main.toolTip = config2.toolTip;
|
|
12206
|
-
}
|
|
12207
|
-
if (config2.toolTipPosition) {
|
|
12208
|
-
Radio.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12209
|
-
}
|
|
12210
12402
|
return Radio;
|
|
12211
12403
|
};
|
|
12212
12404
|
var emptyBox = {
|
|
@@ -12223,7 +12415,6 @@ var emptyBox = {
|
|
|
12223
12415
|
};
|
|
12224
12416
|
const buildEmptyBox = (config2, componentScope2) => {
|
|
12225
12417
|
const EmptyBox = _.cloneDeep(emptyBox);
|
|
12226
|
-
EmptyBox.scope = componentScope2;
|
|
12227
12418
|
if (config2.layout) {
|
|
12228
12419
|
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
12229
12420
|
}
|
|
@@ -12362,12 +12553,6 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12362
12553
|
if (config2.description) {
|
|
12363
12554
|
box.config.main.description = config2.description;
|
|
12364
12555
|
}
|
|
12365
|
-
if (config2.toolTip) {
|
|
12366
|
-
box.config.main.toolTip = config2.toolTip;
|
|
12367
|
-
}
|
|
12368
|
-
if (config2.toolTipPosition) {
|
|
12369
|
-
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12370
|
-
}
|
|
12371
12556
|
return box;
|
|
12372
12557
|
};
|
|
12373
12558
|
const Stepper = {
|
|
@@ -12667,50 +12852,6 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12667
12852
|
}
|
|
12668
12853
|
return image;
|
|
12669
12854
|
};
|
|
12670
|
-
const cameraUiSchema = {
|
|
12671
|
-
type: "Control",
|
|
12672
|
-
scope: "#/properties/camera",
|
|
12673
|
-
options: {
|
|
12674
|
-
widget: "Camera"
|
|
12675
|
-
},
|
|
12676
|
-
config: {
|
|
12677
|
-
main: {
|
|
12678
|
-
label: "Upload Photo",
|
|
12679
|
-
multiUplaod: false,
|
|
12680
|
-
onUpload: "onFileUpload"
|
|
12681
|
-
}
|
|
12682
|
-
}
|
|
12683
|
-
};
|
|
12684
|
-
const buildCamera = (config2, componentScope2) => {
|
|
12685
|
-
const camera = _.cloneDeep(cameraUiSchema);
|
|
12686
|
-
camera.scope = componentScope2;
|
|
12687
|
-
if (config2.iconName) {
|
|
12688
|
-
camera.config.main.startIcon = config2.iconName;
|
|
12689
|
-
}
|
|
12690
|
-
if (config2.layout) {
|
|
12691
|
-
camera.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12692
|
-
}
|
|
12693
|
-
if (config2.tooltipMessage) {
|
|
12694
|
-
camera.config.main.tooltipMessage = config2.tooltipMessage;
|
|
12695
|
-
}
|
|
12696
|
-
camera.config.main.multiUplaod = config2.multiUplaod === "YES" ? true : false;
|
|
12697
|
-
if (config2.style) {
|
|
12698
|
-
camera.config.style = JSON.parse(config2.style);
|
|
12699
|
-
}
|
|
12700
|
-
if (config2.size) {
|
|
12701
|
-
camera.config.main.size = config2.size;
|
|
12702
|
-
}
|
|
12703
|
-
if (config2.variant) {
|
|
12704
|
-
camera.config.main.variant = config2.variant;
|
|
12705
|
-
}
|
|
12706
|
-
if (config2.color) {
|
|
12707
|
-
camera.config.main.color = config2.color;
|
|
12708
|
-
}
|
|
12709
|
-
if (config2.label) {
|
|
12710
|
-
camera.config.main.name = config2.label;
|
|
12711
|
-
}
|
|
12712
|
-
return camera;
|
|
12713
|
-
};
|
|
12714
12855
|
let schema = {
|
|
12715
12856
|
type: "object",
|
|
12716
12857
|
properties: {},
|
|
@@ -12857,11 +12998,13 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12857
12998
|
elements = buildDownloadFile(config2, componentScope2);
|
|
12858
12999
|
break;
|
|
12859
13000
|
case "EmptyBox":
|
|
12860
|
-
elements = buildEmptyBox(config2
|
|
13001
|
+
elements = buildEmptyBox(config2);
|
|
12861
13002
|
break;
|
|
12862
13003
|
case "card":
|
|
12863
13004
|
elements = buildCard(config2, componentScope2, store2);
|
|
12864
13005
|
break;
|
|
13006
|
+
case "DataCard":
|
|
13007
|
+
elements = buildDataCard(config2, componentScope2, store2);
|
|
12865
13008
|
case "Graph":
|
|
12866
13009
|
switch (config2.graphType) {
|
|
12867
13010
|
case "BarGraph":
|
|
@@ -12923,9 +13066,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12923
13066
|
case "Image":
|
|
12924
13067
|
elements = buildImage(config2, componentScope2);
|
|
12925
13068
|
break;
|
|
12926
|
-
case "Camera":
|
|
12927
|
-
elements = buildCamera(config2, componentScope2);
|
|
12928
|
-
break;
|
|
12929
13069
|
default:
|
|
12930
13070
|
schema = {
|
|
12931
13071
|
type: "object",
|