impaktapps-ui-builder 0.0.25 → 0.0.27
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 +395 -1200
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCheckbox.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRankCard.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildRollAndDice.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildSlider.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +33 -19
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.d.ts +11 -12
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +4 -62
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rankCard.d.ts +9 -175
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.d.ts +10 -83
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.d.ts +6 -343
- package/dist/src/impaktapps-ui-builder/builder/services/saveHandler.d.ts +2 -2
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +28 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +7 -7
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +15 -3
- package/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.ts +3 -6
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +13 -1
- package/src/impaktapps-ui-builder/builder/build/buildRollAndDice.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildRunnerBoyProgrssBar.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildSlider.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +13 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +7 -5
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +95 -92
- package/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.ts +11 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -80
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +8 -135
- package/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.ts +12 -74
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +9 -664
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +2 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/services/clearLocalStorage.ts +3 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +15 -13
- package/src/impaktapps-ui-builder/builder/services/event.ts +3 -3
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +9 -9
- package/src/impaktapps-ui-builder/builder/services/saveHandler.ts +5 -5
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +32 -27
- package/src/impaktapps-ui-builder/runtime/services/service.ts +12 -7
- package/src/impaktapps-ui-builder/builder/services/clearSessionStorage.ts +0 -3
- /package/dist/src/impaktapps-ui-builder/builder/services/{clearSessionStorage.d.ts → clearLocalStorage.d.ts} +0 -0
|
@@ -6048,6 +6048,7 @@ const componentBasicUiSchema = {
|
|
|
6048
6048
|
options: [
|
|
6049
6049
|
{ label: "Select", value: "Select" },
|
|
6050
6050
|
{ label: "Date", value: "Date" },
|
|
6051
|
+
{ label: "CheckBox", value: "CheckBox" },
|
|
6051
6052
|
{ label: "Table", value: "Table" },
|
|
6052
6053
|
{ label: "Array", value: "Array" },
|
|
6053
6054
|
{ label: "Container", value: "WrapperSection" },
|
|
@@ -6067,7 +6068,7 @@ const componentBasicUiSchema = {
|
|
|
6067
6068
|
{ label: "ProgressBar Card", value: "ProgressBarCard" },
|
|
6068
6069
|
{ label: "Rank Card", value: "RankCard" },
|
|
6069
6070
|
{ label: "Runner Boy Progress Bar", value: "RunnerBoyProgressBar" },
|
|
6070
|
-
{ label: "
|
|
6071
|
+
{ label: "Slider", value: "Slider" },
|
|
6071
6072
|
{ label: "Timer", value: "Timer" },
|
|
6072
6073
|
{ label: "MultipleSelect", value: "MultipleSelect" },
|
|
6073
6074
|
{ label: "LeaderBoard", value: "LeaderBoard" }
|
|
@@ -6282,19 +6283,19 @@ const getNavigationHistory = (config, path) => {
|
|
|
6282
6283
|
}
|
|
6283
6284
|
return void 0;
|
|
6284
6285
|
};
|
|
6285
|
-
const
|
|
6286
|
+
const saveFormdataInLocalStorage = (formData, path) => {
|
|
6286
6287
|
let updatedFormdata;
|
|
6287
6288
|
if (path) {
|
|
6288
|
-
const pageFormdata =
|
|
6289
|
+
const pageFormdata = getFormdataFromLocalStorage();
|
|
6289
6290
|
updatedFormdata = _.set(pageFormdata, path, buildConfig(formData));
|
|
6290
6291
|
} else {
|
|
6291
6292
|
updatedFormdata = buildConfig(formData);
|
|
6292
6293
|
}
|
|
6293
|
-
|
|
6294
|
+
localStorage.setItem("pageFormdata", JSON.stringify(updatedFormdata));
|
|
6294
6295
|
return updatedFormdata;
|
|
6295
6296
|
};
|
|
6296
|
-
const
|
|
6297
|
-
const pageFormdata =
|
|
6297
|
+
const getFormdataFromLocalStorage = (path) => {
|
|
6298
|
+
const pageFormdata = localStorage.getItem("pageFormdata") ? JSON.parse(localStorage.getItem("pageFormdata")) : void 0;
|
|
6298
6299
|
let returnValue;
|
|
6299
6300
|
if (path) {
|
|
6300
6301
|
returnValue = _.get(pageFormdata, path);
|
|
@@ -6322,6 +6323,7 @@ const CoreSection = {
|
|
|
6322
6323
|
options: [
|
|
6323
6324
|
{ label: "Select", value: "Select" },
|
|
6324
6325
|
{ label: "Date", value: "Date" },
|
|
6326
|
+
{ label: "CheckBox", value: "CheckBox" },
|
|
6325
6327
|
{ label: "Table", value: "Table" },
|
|
6326
6328
|
{ label: "Array", value: "Array" },
|
|
6327
6329
|
{ label: "Container", value: "WrapperSection" },
|
|
@@ -6341,7 +6343,7 @@ const CoreSection = {
|
|
|
6341
6343
|
{ label: "ProgressBar Card", value: "ProgressBarCard" },
|
|
6342
6344
|
{ label: "Rank Card", value: "RankCard" },
|
|
6343
6345
|
{ label: "Runner Boy Progress Bar", value: "RunnerBoyProgressBar" },
|
|
6344
|
-
{ label: "
|
|
6346
|
+
{ label: "Slider", value: "Slider" },
|
|
6345
6347
|
{ label: "Timer", value: "Timer" },
|
|
6346
6348
|
{ label: "MultipleSelect", value: "MultipleSelect" },
|
|
6347
6349
|
{ label: "LeaderBoard", value: "LeaderBoard" }
|
|
@@ -6708,16 +6710,6 @@ const getSelectField = (scope, label, options) => {
|
|
|
6708
6710
|
}
|
|
6709
6711
|
};
|
|
6710
6712
|
};
|
|
6711
|
-
const emptyBox$1 = {
|
|
6712
|
-
type: "Control",
|
|
6713
|
-
scope: "#/properties/proc",
|
|
6714
|
-
config: {
|
|
6715
|
-
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 }
|
|
6716
|
-
},
|
|
6717
|
-
options: {
|
|
6718
|
-
widget: "EmptyBox"
|
|
6719
|
-
}
|
|
6720
|
-
};
|
|
6721
6713
|
const GraphSection = {
|
|
6722
6714
|
type: "HorizontalLayout",
|
|
6723
6715
|
elements: []
|
|
@@ -6725,8 +6717,12 @@ const GraphSection = {
|
|
|
6725
6717
|
const buildPropertiesSection = function(type) {
|
|
6726
6718
|
let uiSchema = _.cloneDeep(GraphSection);
|
|
6727
6719
|
if (type === "SpeedoMeter" || type === "RankCard" || type === "Timer") {
|
|
6728
|
-
|
|
6729
|
-
|
|
6720
|
+
uiSchema.elements = [
|
|
6721
|
+
getInputField("rank", "Rank"),
|
|
6722
|
+
getInputField("image", "Image Url"),
|
|
6723
|
+
getInputField("title", "Card Title"),
|
|
6724
|
+
getInputField("description", "Card Description")
|
|
6725
|
+
];
|
|
6730
6726
|
} else if (type === "LeaderBoard") {
|
|
6731
6727
|
uiSchema.elements = [
|
|
6732
6728
|
getInputField("valueLabel", "Value Label"),
|
|
@@ -6746,9 +6742,7 @@ const buildPropertiesSection = function(type) {
|
|
|
6746
6742
|
const bottomLabel_3 = getInputField("bottomLabel_3", "Third BottomLabel");
|
|
6747
6743
|
uiSchema.elements = [heading, bottomLabel_1, bottomLabel_2, bottomLabel_3];
|
|
6748
6744
|
} else if (type === "card") {
|
|
6749
|
-
|
|
6750
|
-
const iconName = getInputField("iconName", "Icon Name");
|
|
6751
|
-
uiSchema.elements = [caption, iconName];
|
|
6745
|
+
uiSchema.elements = [getInputField("url", "Image Url"), getInputField("label", "Label"), getInputField("description", "Description")];
|
|
6752
6746
|
} else if (type === "Box") {
|
|
6753
6747
|
const iconName = getInputField("value", "Value");
|
|
6754
6748
|
uiSchema.elements = [getSelectField("graphType", "Label Type", [
|
|
@@ -6994,12 +6988,13 @@ const sectionLabels = {
|
|
|
6994
6988
|
SpeedoMeter: ["Core", "Properties", "style", "Event"],
|
|
6995
6989
|
card: ["Core", "Properties", "style", "Event"],
|
|
6996
6990
|
UploadFile: ["Core", "style", "Event"],
|
|
6991
|
+
Graph: ["Core", "Properties", "style", "Event"],
|
|
6997
6992
|
DownloadFile: ["Core", "style", "Event"],
|
|
6998
6993
|
Box: ["Core", "Properties", "style", "Event"],
|
|
6999
6994
|
Properties: ["Core", "Properties", "style", "Event"],
|
|
7000
6995
|
ProgressBarCard: ["Core", "Properties", "style", "Event"],
|
|
7001
6996
|
RankCard: ["Core", "Properties", "style", "Event"],
|
|
7002
|
-
|
|
6997
|
+
Slider: ["Core", "Components", "Properties", "style", "Event"],
|
|
7003
6998
|
Timer: ["Core", "Properties", "style", "Event"],
|
|
7004
6999
|
Rank: ["Core", "Properties", "style", "Event"],
|
|
7005
7000
|
Button: ["Core", "Properties", "style", "Event"],
|
|
@@ -7018,8 +7013,8 @@ const refreshPage = (type, store2) => {
|
|
|
7018
7013
|
Properties: buildPropertiesSection(type)
|
|
7019
7014
|
};
|
|
7020
7015
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
7021
|
-
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style"];
|
|
7022
|
-
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection];
|
|
7016
|
+
UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event"];
|
|
7017
|
+
UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection];
|
|
7023
7018
|
}
|
|
7024
7019
|
store2.setUiSchema(UiSchema);
|
|
7025
7020
|
};
|
|
@@ -7036,7 +7031,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7036
7031
|
getFormdata: async function() {
|
|
7037
7032
|
var _a;
|
|
7038
7033
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7039
|
-
return
|
|
7034
|
+
return getFormdataFromLocalStorage(path);
|
|
7040
7035
|
},
|
|
7041
7036
|
getSchema: function() {
|
|
7042
7037
|
return ComponentSchema;
|
|
@@ -7044,7 +7039,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7044
7039
|
saveHandler: async function() {
|
|
7045
7040
|
var _a;
|
|
7046
7041
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7047
|
-
|
|
7042
|
+
saveFormdataInLocalStorage(store2.formData, path);
|
|
7048
7043
|
store2.navigate(-1);
|
|
7049
7044
|
store2.setNotify({
|
|
7050
7045
|
SuccessMessage: "Save Successfully",
|
|
@@ -7062,7 +7057,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7062
7057
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7063
7058
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7064
7059
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
7065
|
-
|
|
7060
|
+
saveFormdataInLocalStorage(store2.formData, path);
|
|
7066
7061
|
if (path) {
|
|
7067
7062
|
const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
|
|
7068
7063
|
const finalPath = `${path2}.elements[${rowId}]`;
|
|
@@ -7078,7 +7073,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7078
7073
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7079
7074
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7080
7075
|
store2.formData.elements.splice(rowId, 1);
|
|
7081
|
-
const response =
|
|
7076
|
+
const response = saveFormdataInLocalStorage(store2.formData, path);
|
|
7082
7077
|
const data2 = path ? _.get(response, path) : response;
|
|
7083
7078
|
store2.setFormdata(data2);
|
|
7084
7079
|
},
|
|
@@ -7087,7 +7082,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7087
7082
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7088
7083
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7089
7084
|
store2.formData.events.splice(rowId, 1);
|
|
7090
|
-
const response =
|
|
7085
|
+
const response = saveFormdataInLocalStorage(store2.formData, path);
|
|
7091
7086
|
store2.setFormdata(_.get(response, path));
|
|
7092
7087
|
},
|
|
7093
7088
|
widgetAddClickHandler: async function() {
|
|
@@ -7096,7 +7091,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7096
7091
|
store2.formData.elements = [];
|
|
7097
7092
|
}
|
|
7098
7093
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7099
|
-
|
|
7094
|
+
saveFormdataInLocalStorage(store2.formData, path);
|
|
7100
7095
|
const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
|
|
7101
7096
|
store2.searchParams.set("path", finalPath);
|
|
7102
7097
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -7107,7 +7102,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7107
7102
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7108
7103
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7109
7104
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
7110
|
-
|
|
7105
|
+
saveFormdataInLocalStorage(store2.formData, path);
|
|
7111
7106
|
const finalPath = `${path}.events[${rowId}]`;
|
|
7112
7107
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7113
7108
|
},
|
|
@@ -7118,7 +7113,7 @@ var Component = (store2, dynamicData2) => {
|
|
|
7118
7113
|
if (!Array.isArray(store2.formData.events)) {
|
|
7119
7114
|
store2.formData.events = [];
|
|
7120
7115
|
}
|
|
7121
|
-
|
|
7116
|
+
saveFormdataInLocalStorage(store2.formData, path);
|
|
7122
7117
|
const finalPath = `${path}.events[${store2.formData.events.length}]`;
|
|
7123
7118
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7124
7119
|
},
|
|
@@ -7141,11 +7136,11 @@ var pageMaster = (funcParams) => {
|
|
|
7141
7136
|
getFormdata: async function() {
|
|
7142
7137
|
var _a;
|
|
7143
7138
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7144
|
-
const formData =
|
|
7139
|
+
const formData = getFormdataFromLocalStorage();
|
|
7145
7140
|
if (formData) {
|
|
7146
7141
|
return formData;
|
|
7147
7142
|
}
|
|
7148
|
-
|
|
7143
|
+
saveFormdataInLocalStorage(config);
|
|
7149
7144
|
return config;
|
|
7150
7145
|
},
|
|
7151
7146
|
getUiSchema: async function() {
|
|
@@ -7155,7 +7150,7 @@ var pageMaster = (funcParams) => {
|
|
|
7155
7150
|
return PageMasterSchema;
|
|
7156
7151
|
},
|
|
7157
7152
|
backHandler: () => {
|
|
7158
|
-
|
|
7153
|
+
localStorage.removeItem("pageFormdata");
|
|
7159
7154
|
store2.navigate("/PageMasterRecords");
|
|
7160
7155
|
},
|
|
7161
7156
|
onAddClickHandler: async function() {
|
|
@@ -7164,14 +7159,14 @@ var pageMaster = (funcParams) => {
|
|
|
7164
7159
|
if (!Array.isArray(store2.formData.elements)) {
|
|
7165
7160
|
store2.formData.elements = [];
|
|
7166
7161
|
}
|
|
7167
|
-
const response =
|
|
7162
|
+
const response = saveFormdataInLocalStorage(store2.formData);
|
|
7168
7163
|
store2.navigate(
|
|
7169
7164
|
`/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
|
|
7170
7165
|
);
|
|
7171
7166
|
},
|
|
7172
7167
|
submitPageHandler: async function() {
|
|
7173
7168
|
submitHandler(store2, funcParams.service).then((saveReturn) => {
|
|
7174
|
-
|
|
7169
|
+
localStorage.removeItem("pageFormdata");
|
|
7175
7170
|
store2.navigate(-1);
|
|
7176
7171
|
store2.setNotify({
|
|
7177
7172
|
SuccessMessage: "Submit Successfully",
|
|
@@ -7187,7 +7182,7 @@ var pageMaster = (funcParams) => {
|
|
|
7187
7182
|
if (!Array.isArray(store2.formData.events)) {
|
|
7188
7183
|
store2.formData.events = [];
|
|
7189
7184
|
}
|
|
7190
|
-
|
|
7185
|
+
saveFormdataInLocalStorage(store2.formData);
|
|
7191
7186
|
const finalPath = `events[${store2.formData.events.length}]`;
|
|
7192
7187
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7193
7188
|
},
|
|
@@ -7195,14 +7190,14 @@ var pageMaster = (funcParams) => {
|
|
|
7195
7190
|
var _a;
|
|
7196
7191
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7197
7192
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7198
|
-
|
|
7193
|
+
saveFormdataInLocalStorage(store2.formData);
|
|
7199
7194
|
const finalPath = `events[${rowId}]`;
|
|
7200
7195
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
7201
7196
|
},
|
|
7202
7197
|
deleteEvent: async function() {
|
|
7203
7198
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7204
7199
|
store2.formData.events.splice(rowId, 1);
|
|
7205
|
-
const response =
|
|
7200
|
+
const response = saveFormdataInLocalStorage(store2.formData);
|
|
7206
7201
|
store2.setFormdata(response);
|
|
7207
7202
|
}
|
|
7208
7203
|
};
|
|
@@ -7753,7 +7748,7 @@ var event = (store2, dynamicData2) => {
|
|
|
7753
7748
|
if (!Array.isArray(store2.formData.events)) {
|
|
7754
7749
|
store2.formData.events = [];
|
|
7755
7750
|
}
|
|
7756
|
-
|
|
7751
|
+
saveFormdataInLocalStorage(store2.formData, path);
|
|
7757
7752
|
const finalPath = `${path}.events[${(_c = (_b = store2.formData) == null ? void 0 : _b.events) == null ? void 0 : _c.length}]`;
|
|
7758
7753
|
store2.searchParams.set("path", finalPath);
|
|
7759
7754
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -7763,7 +7758,7 @@ var event = (store2, dynamicData2) => {
|
|
|
7763
7758
|
var _a;
|
|
7764
7759
|
const rowId = dynamicData2.path.split(".")[1];
|
|
7765
7760
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7766
|
-
|
|
7761
|
+
saveFormdataInLocalStorage(store2.formData, path);
|
|
7767
7762
|
const finalPath = `${path}.events[${rowId}]`;
|
|
7768
7763
|
store2.searchParams.set("path", finalPath);
|
|
7769
7764
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -7937,17 +7932,21 @@ async function executeCustomHandler(customHandlerConfig, componentName, store, d
|
|
|
7937
7932
|
return { response: void 0, events: customHandlerConfig == null ? void 0 : customHandlerConfig.events };
|
|
7938
7933
|
}
|
|
7939
7934
|
async function mergeFormdata(handlerResponse, componentName2, eventConfig, store2) {
|
|
7940
|
-
if (eventConfig.type === "Select") {
|
|
7941
|
-
|
|
7942
|
-
return {
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7935
|
+
if (eventConfig.type === "Select" && handlerResponse) {
|
|
7936
|
+
store2.setSchema((pre) => {
|
|
7937
|
+
return {
|
|
7938
|
+
...pre,
|
|
7939
|
+
properties: {
|
|
7940
|
+
...pre.properties,
|
|
7941
|
+
[componentName2]: {
|
|
7942
|
+
enum: handlerResponse.data
|
|
7943
|
+
}
|
|
7944
|
+
}
|
|
7945
|
+
};
|
|
7947
7946
|
});
|
|
7948
7947
|
} else if (eventConfig.type === "page") {
|
|
7949
7948
|
store2.setFormdata((pre) => {
|
|
7950
|
-
return { ...pre, ...handlerResponse.data };
|
|
7949
|
+
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
7951
7950
|
});
|
|
7952
7951
|
} else {
|
|
7953
7952
|
handlerResponse && store2.setFormdata((pre) => {
|
|
@@ -8015,14 +8014,20 @@ function getRefreshElements(eventConfig, eventGropus) {
|
|
|
8015
8014
|
}
|
|
8016
8015
|
let compType;
|
|
8017
8016
|
let eventGroups = {};
|
|
8017
|
+
const notifyUiSchema = {
|
|
8018
|
+
type: "Control",
|
|
8019
|
+
scope: "#/properties/notify",
|
|
8020
|
+
options: {
|
|
8021
|
+
widget: "Notify"
|
|
8022
|
+
},
|
|
8023
|
+
layout: 6
|
|
8024
|
+
};
|
|
8018
8025
|
const extractEvents = (eventConfig) => {
|
|
8019
8026
|
function extractsConfigEvents(eventConfigObj) {
|
|
8020
8027
|
if (eventConfigObj.events) {
|
|
8021
8028
|
eventConfigObj.events.forEach((event2) => {
|
|
8022
8029
|
if (eventConfigObj.type) {
|
|
8023
8030
|
compType = eventConfigObj.type;
|
|
8024
|
-
} else {
|
|
8025
|
-
compType = "page";
|
|
8026
8031
|
}
|
|
8027
8032
|
if (!eventGroups[event2.eventType]) {
|
|
8028
8033
|
eventGroups[event2.eventType] = {};
|
|
@@ -8055,7 +8060,7 @@ var service = (funcParams) => {
|
|
|
8055
8060
|
this,
|
|
8056
8061
|
eventGroups
|
|
8057
8062
|
);
|
|
8058
|
-
funcParams.
|
|
8063
|
+
funcParams.uiSchema.elements.push(notifyUiSchema);
|
|
8059
8064
|
funcParams.store.setUiSchema(funcParams.uiSchema);
|
|
8060
8065
|
},
|
|
8061
8066
|
onClick: async function() {
|
|
@@ -8078,8 +8083,8 @@ var service = (funcParams) => {
|
|
|
8078
8083
|
if (eventGroups.onChange) {
|
|
8079
8084
|
const ChangeEventsKeysArray = Object.keys(eventGroups.onChange);
|
|
8080
8085
|
Promise.all(ChangeEventsKeysArray.map(async (componentName2) => {
|
|
8081
|
-
var _a, _b
|
|
8082
|
-
if (((
|
|
8086
|
+
var _a, _b;
|
|
8087
|
+
if (((_a = funcParams.store) == null ? void 0 : _a.formData[componentName2]) !== funcParams.store.newData[componentName2] && ((_b = funcParams.store) == null ? void 0 : _b.newData[componentName2]) !== void 0) {
|
|
8083
8088
|
for (const eventConfig of eventGroups.onChange[componentName2]) {
|
|
8084
8089
|
await executeEvents(
|
|
8085
8090
|
eventConfig,
|
|
@@ -8111,24 +8116,6 @@ var emptyBox = {
|
|
|
8111
8116
|
style: {}
|
|
8112
8117
|
}
|
|
8113
8118
|
};
|
|
8114
|
-
var cardSlider = {
|
|
8115
|
-
type: "SliderLayout",
|
|
8116
|
-
config: {
|
|
8117
|
-
main: {
|
|
8118
|
-
header: true,
|
|
8119
|
-
label: "Rewards For Top Rankers",
|
|
8120
|
-
divider: true
|
|
8121
|
-
},
|
|
8122
|
-
defaultStyle: true,
|
|
8123
|
-
style: {
|
|
8124
|
-
labelStyle: {
|
|
8125
|
-
paddingLeft: "8px"
|
|
8126
|
-
}
|
|
8127
|
-
},
|
|
8128
|
-
layout: 12
|
|
8129
|
-
},
|
|
8130
|
-
elements: []
|
|
8131
|
-
};
|
|
8132
8119
|
var leaderBoard = {
|
|
8133
8120
|
type: "WrapperLayout",
|
|
8134
8121
|
config: {
|
|
@@ -8158,7 +8145,7 @@ var leaderBoard = {
|
|
|
8158
8145
|
top: "60px",
|
|
8159
8146
|
left: "calc(50% - 85px)",
|
|
8160
8147
|
width: "180px",
|
|
8161
|
-
border: "5px solid
|
|
8148
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
8162
8149
|
height: "180px",
|
|
8163
8150
|
borderRadius: "50%"
|
|
8164
8151
|
},
|
|
@@ -8181,7 +8168,7 @@ var leaderBoard = {
|
|
|
8181
8168
|
top: "130px",
|
|
8182
8169
|
left: "calc(25% - 90px)",
|
|
8183
8170
|
width: "180px",
|
|
8184
|
-
border: "5px solid
|
|
8171
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
8185
8172
|
height: "180px",
|
|
8186
8173
|
borderRadius: "50%"
|
|
8187
8174
|
},
|
|
@@ -8204,7 +8191,7 @@ var leaderBoard = {
|
|
|
8204
8191
|
top: "130px",
|
|
8205
8192
|
left: "calc(75% - 85px)",
|
|
8206
8193
|
width: "170px",
|
|
8207
|
-
border: "5px solid
|
|
8194
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
8208
8195
|
height: "180px",
|
|
8209
8196
|
borderRadius: "50%"
|
|
8210
8197
|
},
|
|
@@ -8320,7 +8307,7 @@ var leaderBoard = {
|
|
|
8320
8307
|
},
|
|
8321
8308
|
animation: "rotateAnimation 4s infinite",
|
|
8322
8309
|
width: "40px",
|
|
8323
|
-
border: "5px solid
|
|
8310
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
8324
8311
|
height: "40px",
|
|
8325
8312
|
borderRadius: "50%"
|
|
8326
8313
|
},
|
|
@@ -8358,7 +8345,7 @@ var leaderBoard = {
|
|
|
8358
8345
|
},
|
|
8359
8346
|
animation: "rotateAnimation 4s infinite",
|
|
8360
8347
|
width: "40px",
|
|
8361
|
-
border: "5px solid
|
|
8348
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
8362
8349
|
height: "40px",
|
|
8363
8350
|
borderRadius: "50%"
|
|
8364
8351
|
},
|
|
@@ -8396,7 +8383,7 @@ var leaderBoard = {
|
|
|
8396
8383
|
},
|
|
8397
8384
|
animation: "rotateAnimation 4s infinite",
|
|
8398
8385
|
width: "40px",
|
|
8399
|
-
border: "5px solid
|
|
8386
|
+
border: "5px solid rgb(179, 198, 255)",
|
|
8400
8387
|
height: "40px",
|
|
8401
8388
|
borderRadius: "50%"
|
|
8402
8389
|
},
|
|
@@ -8412,6 +8399,7 @@ var leaderBoard = {
|
|
|
8412
8399
|
options: {
|
|
8413
8400
|
widget: "Table"
|
|
8414
8401
|
},
|
|
8402
|
+
elements: [],
|
|
8415
8403
|
config: {
|
|
8416
8404
|
style: {
|
|
8417
8405
|
tableHeadstyle: {
|
|
@@ -8426,88 +8414,23 @@ var leaderBoard = {
|
|
|
8426
8414
|
},
|
|
8427
8415
|
main: {
|
|
8428
8416
|
disableAction: true,
|
|
8429
|
-
disableSelection: true
|
|
8430
|
-
columns: {
|
|
8431
|
-
dataColumns: [
|
|
8432
|
-
{
|
|
8433
|
-
accessorKey: "a",
|
|
8434
|
-
widgetWithData: true,
|
|
8435
|
-
size: 40,
|
|
8436
|
-
header: " ",
|
|
8437
|
-
widget: {
|
|
8438
|
-
type: "Control",
|
|
8439
|
-
scope: "#/properties/id",
|
|
8440
|
-
options: {
|
|
8441
|
-
widget: "Box"
|
|
8442
|
-
},
|
|
8443
|
-
config: {
|
|
8444
|
-
style: {
|
|
8445
|
-
objectFit: "cover",
|
|
8446
|
-
width: "40px",
|
|
8447
|
-
height: "40px",
|
|
8448
|
-
borderRadius: "50%"
|
|
8449
|
-
},
|
|
8450
|
-
main: {
|
|
8451
|
-
url: "https://www.svgrepo.com/show/484058/person.svg"
|
|
8452
|
-
}
|
|
8453
|
-
}
|
|
8454
|
-
}
|
|
8455
|
-
},
|
|
8456
|
-
{
|
|
8457
|
-
accessorKey: "name",
|
|
8458
|
-
header: "Name"
|
|
8459
|
-
},
|
|
8460
|
-
{
|
|
8461
|
-
accessorKey: "id",
|
|
8462
|
-
header: "Policy"
|
|
8463
|
-
},
|
|
8464
|
-
{
|
|
8465
|
-
accessorKey: "modifiedOn",
|
|
8466
|
-
header: "Incentice"
|
|
8467
|
-
},
|
|
8468
|
-
{
|
|
8469
|
-
accessorKey: "active",
|
|
8470
|
-
header: "active"
|
|
8471
|
-
},
|
|
8472
|
-
{
|
|
8473
|
-
accessorKey: "button",
|
|
8474
|
-
size: 80,
|
|
8475
|
-
header: "Compare",
|
|
8476
|
-
widget: {
|
|
8477
|
-
type: "Control",
|
|
8478
|
-
scope: "#/properties/id",
|
|
8479
|
-
options: {
|
|
8480
|
-
widget: "Button"
|
|
8481
|
-
},
|
|
8482
|
-
config: {
|
|
8483
|
-
style: {
|
|
8484
|
-
fontSize: "12px"
|
|
8485
|
-
},
|
|
8486
|
-
main: {
|
|
8487
|
-
name: "Compare"
|
|
8488
|
-
}
|
|
8489
|
-
}
|
|
8490
|
-
}
|
|
8491
|
-
}
|
|
8492
|
-
]
|
|
8493
|
-
}
|
|
8417
|
+
disableSelection: true
|
|
8494
8418
|
}
|
|
8495
8419
|
}
|
|
8496
8420
|
}
|
|
8497
8421
|
]
|
|
8498
8422
|
};
|
|
8499
8423
|
const buildLeaderBoard = (config) => {
|
|
8500
|
-
var _a;
|
|
8501
8424
|
const LeaderBoard = _.cloneDeep(leaderBoard);
|
|
8502
|
-
if (
|
|
8503
|
-
const modifyColumns = config.
|
|
8504
|
-
if (!e.
|
|
8505
|
-
return e;
|
|
8425
|
+
if (config.elements) {
|
|
8426
|
+
const modifyColumns = config.elements.map((e, i) => {
|
|
8427
|
+
if (!e.type) {
|
|
8428
|
+
return { accessorKey: e.name, header: e.label || e.name };
|
|
8506
8429
|
}
|
|
8507
|
-
const widgetSchema = buildUiSchema(
|
|
8508
|
-
return {
|
|
8430
|
+
const widgetSchema = { widget: buildUiSchema(e), accessorKey: e.name, header: e.label || e.name };
|
|
8431
|
+
return { ...widgetSchema };
|
|
8509
8432
|
});
|
|
8510
|
-
LeaderBoard.elements[9].
|
|
8433
|
+
LeaderBoard.elements[9].elements = modifyColumns;
|
|
8511
8434
|
}
|
|
8512
8435
|
if (config.name) {
|
|
8513
8436
|
LeaderBoard.elements[0].scope = `#/properties/${config.name}/properties/firstImage`;
|
|
@@ -8541,7 +8464,7 @@ var progressBar = {
|
|
|
8541
8464
|
config: {
|
|
8542
8465
|
layout: 6,
|
|
8543
8466
|
main: {
|
|
8544
|
-
developOnlyProgresBar:
|
|
8467
|
+
developOnlyProgresBar: false,
|
|
8545
8468
|
bottomLabel_3: "Remaining",
|
|
8546
8469
|
heading: "PBC Details"
|
|
8547
8470
|
}
|
|
@@ -8551,16 +8474,13 @@ const buildProgressBarCard = (config, myScope) => {
|
|
|
8551
8474
|
const progressBarCard = _.cloneDeep(progressBar);
|
|
8552
8475
|
progressBarCard.scope = myScope;
|
|
8553
8476
|
if (config.heading) {
|
|
8554
|
-
progressBarCard.
|
|
8555
|
-
}
|
|
8556
|
-
if (config.layout) {
|
|
8557
|
-
progressBarCard.config.layout = config.layout;
|
|
8477
|
+
progressBarCard.config.main.heading = config.heading;
|
|
8558
8478
|
}
|
|
8559
8479
|
if (config.bottomLabel_3) {
|
|
8560
|
-
progressBarCard.
|
|
8480
|
+
progressBarCard.config.main.bottomLabel_3 = config.bottomLabel_3;
|
|
8561
8481
|
}
|
|
8562
8482
|
if (config.bottomLabel_2) {
|
|
8563
|
-
progressBarCard.
|
|
8483
|
+
progressBarCard.config.main.bottomLabel_2 = config.bottomLabel_2;
|
|
8564
8484
|
}
|
|
8565
8485
|
if (config.bottomLabel_1) {
|
|
8566
8486
|
progressBarCard.elements[0].config.main.bottomLabel_1 = config.bottomLabel_1;
|
|
@@ -8668,7 +8588,6 @@ const PieGraph = {
|
|
|
8668
8588
|
type: "PieGraph",
|
|
8669
8589
|
bottomLabel: "Name of Employe",
|
|
8670
8590
|
leftLabel: "Value",
|
|
8671
|
-
tooltipDataKey: ["HDFC", "SBI", "Kotak"],
|
|
8672
8591
|
axisLeft: true,
|
|
8673
8592
|
axisBottom: true,
|
|
8674
8593
|
legendAvailable: true,
|
|
@@ -8840,13 +8759,25 @@ const buildPieGraph = (config, componentScope) => {
|
|
|
8840
8759
|
pieGraph.config.layout = config.layout;
|
|
8841
8760
|
}
|
|
8842
8761
|
if (config.containerBackground) {
|
|
8843
|
-
pieGraph.config.containerStyle.background = config.containerBackground;
|
|
8762
|
+
pieGraph.config.style.containerStyle.background = config.containerBackground;
|
|
8844
8763
|
}
|
|
8845
8764
|
if (config.height) {
|
|
8846
|
-
pieGraph.config.containerStyle.height = config.height;
|
|
8765
|
+
pieGraph.config.style.containerStyle.height = config.height;
|
|
8766
|
+
}
|
|
8767
|
+
if (config.legendAvailabe) {
|
|
8768
|
+
pieGraph.config.main.legendAvailabe = config.legendAvailabe === "YES" ? false : true;
|
|
8847
8769
|
}
|
|
8848
8770
|
pieGraph.scope = componentScope;
|
|
8849
|
-
pieGraph.config.main.
|
|
8771
|
+
pieGraph.config.main.header = config.heading;
|
|
8772
|
+
if (config.bottomLabel) {
|
|
8773
|
+
pieGraph.config.main.bottomLabel = config.bottomLabel;
|
|
8774
|
+
}
|
|
8775
|
+
if (config.leftLabel) {
|
|
8776
|
+
pieGraph.config.main.leftLabel = config.leftLabel;
|
|
8777
|
+
}
|
|
8778
|
+
if (config.tooltipDataKey) {
|
|
8779
|
+
pieGraph.config.main.tooltipDataKey = config.tooltipDataKey;
|
|
8780
|
+
}
|
|
8850
8781
|
return pieGraph;
|
|
8851
8782
|
};
|
|
8852
8783
|
const buildStackbarGraph = (config, componentScope) => {
|
|
@@ -8878,780 +8809,149 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
8878
8809
|
return barGraph;
|
|
8879
8810
|
};
|
|
8880
8811
|
var RunnerBoyProgressBar = {
|
|
8812
|
+
type: "Control",
|
|
8813
|
+
scope: "#/properties/path",
|
|
8814
|
+
options: {
|
|
8815
|
+
widget: "RunnerBoyProgressBar"
|
|
8816
|
+
},
|
|
8817
|
+
config: {
|
|
8818
|
+
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
8819
|
+
main: {}
|
|
8820
|
+
}
|
|
8821
|
+
};
|
|
8822
|
+
const RunnerBoyProgressbar = (config, componentScope) => {
|
|
8823
|
+
const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
|
|
8824
|
+
RunnerBoy.scope = componentScope;
|
|
8825
|
+
if (config.layout) {
|
|
8826
|
+
RunnerBoy.config.layout = createLayoutFormat(config.layout);
|
|
8827
|
+
}
|
|
8828
|
+
return RunnerBoy;
|
|
8829
|
+
};
|
|
8830
|
+
var Tabsection = {
|
|
8831
|
+
type: "TabLayout",
|
|
8832
|
+
config: {
|
|
8833
|
+
main: {
|
|
8834
|
+
id: "groupMaster",
|
|
8835
|
+
tabLabels: ["default"],
|
|
8836
|
+
layout: 12
|
|
8837
|
+
}
|
|
8838
|
+
},
|
|
8839
|
+
elements: []
|
|
8840
|
+
};
|
|
8841
|
+
const buildTabSection = (config, componentScope) => {
|
|
8842
|
+
const tab = _.cloneDeep(Tabsection);
|
|
8843
|
+
if (config.sectionLabels) {
|
|
8844
|
+
tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
|
|
8845
|
+
}
|
|
8846
|
+
tab.config.main.id = config.name;
|
|
8847
|
+
return tab;
|
|
8848
|
+
};
|
|
8849
|
+
var WrapperSection = {
|
|
8881
8850
|
type: "WrapperLayout",
|
|
8882
8851
|
config: {
|
|
8883
|
-
layout: 12,
|
|
8884
8852
|
main: {
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
wrapperStyle: {
|
|
8888
|
-
"width": "100%"
|
|
8853
|
+
label: "Default Label",
|
|
8854
|
+
divider: true
|
|
8889
8855
|
},
|
|
8890
|
-
|
|
8891
|
-
wrapperStyle: {
|
|
8892
|
-
width: "100%",
|
|
8893
|
-
height: "120px",
|
|
8894
|
-
position: "relative",
|
|
8895
|
-
border: "1px solid black",
|
|
8896
|
-
background: "#fff",
|
|
8897
|
-
borderRadius: "10px",
|
|
8898
|
-
color: "white",
|
|
8899
|
-
margin: "auto"
|
|
8900
|
-
}
|
|
8901
|
-
}
|
|
8856
|
+
defaultStyle: true
|
|
8902
8857
|
},
|
|
8903
|
-
elements: [
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
}
|
|
8858
|
+
elements: []
|
|
8859
|
+
};
|
|
8860
|
+
const buildWrapperSection = (config, componentScope) => {
|
|
8861
|
+
const wrapper = _.cloneDeep(WrapperSection);
|
|
8862
|
+
wrapper.config.main.label = config.label;
|
|
8863
|
+
wrapper.config.main.divider = config.divider ? true : false;
|
|
8864
|
+
wrapper.config.main.header = config.heading ? true : false;
|
|
8865
|
+
return wrapper;
|
|
8866
|
+
};
|
|
8867
|
+
var TextInputField = {
|
|
8868
|
+
type: "Control",
|
|
8869
|
+
scope: "#/properties/text",
|
|
8870
|
+
options: {
|
|
8871
|
+
widget: "InputField"
|
|
8872
|
+
},
|
|
8873
|
+
config: {
|
|
8874
|
+
layout: {
|
|
8875
|
+
xs: 11,
|
|
8876
|
+
sm: 11,
|
|
8877
|
+
md: 5.5,
|
|
8878
|
+
lg: 5.5
|
|
8925
8879
|
},
|
|
8926
|
-
{
|
|
8927
|
-
|
|
8928
|
-
"scope": "#/properties/zeroPercentage",
|
|
8929
|
-
"options": {
|
|
8930
|
-
"widget": "Box"
|
|
8931
|
-
},
|
|
8932
|
-
"config": {
|
|
8933
|
-
"main": {
|
|
8934
|
-
heading: "0%"
|
|
8935
|
-
},
|
|
8936
|
-
style: {
|
|
8937
|
-
position: "absolute",
|
|
8938
|
-
left: "calc(10px - 3px)",
|
|
8939
|
-
top: "12px",
|
|
8940
|
-
width: "10px",
|
|
8941
|
-
textAlign: "center",
|
|
8942
|
-
fontSize: "8px",
|
|
8943
|
-
zIndex: 2
|
|
8944
|
-
}
|
|
8945
|
-
}
|
|
8880
|
+
main: {
|
|
8881
|
+
label: ""
|
|
8946
8882
|
},
|
|
8947
|
-
{
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8883
|
+
style: {}
|
|
8884
|
+
}
|
|
8885
|
+
};
|
|
8886
|
+
const buildTextField = (config, componentScope) => {
|
|
8887
|
+
const inputField = _.cloneDeep(TextInputField);
|
|
8888
|
+
inputField.config.main.label = config.label;
|
|
8889
|
+
if (config.style) {
|
|
8890
|
+
inputField.config.style = JSON.parse(config.style);
|
|
8891
|
+
}
|
|
8892
|
+
if (config.layout) {
|
|
8893
|
+
inputField.config.layout = createLayoutFormat(config.layout);
|
|
8894
|
+
}
|
|
8895
|
+
inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
8896
|
+
inputField.scope = componentScope;
|
|
8897
|
+
return inputField;
|
|
8898
|
+
};
|
|
8899
|
+
var SelectInputField = {
|
|
8900
|
+
type: "Control",
|
|
8901
|
+
scope: "#/properties/select",
|
|
8902
|
+
options: {
|
|
8903
|
+
widget: "SelectInputField"
|
|
8904
|
+
},
|
|
8905
|
+
config: {
|
|
8906
|
+
"layout": {
|
|
8907
|
+
"xs": 11,
|
|
8908
|
+
"sm": 11,
|
|
8909
|
+
"md": 5.5,
|
|
8910
|
+
"lg": 5.5
|
|
8967
8911
|
},
|
|
8968
|
-
{
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8912
|
+
main: {
|
|
8913
|
+
label: "",
|
|
8914
|
+
type: "text"
|
|
8915
|
+
}
|
|
8916
|
+
}
|
|
8917
|
+
};
|
|
8918
|
+
const buildSelect = (config, componentScope) => {
|
|
8919
|
+
const selectInputField = _.cloneDeep(SelectInputField);
|
|
8920
|
+
selectInputField.config.main.label = config.label;
|
|
8921
|
+
if (config.value) {
|
|
8922
|
+
const options = config.value.map((e) => {
|
|
8923
|
+
return { label: e.label, value: e.value };
|
|
8924
|
+
});
|
|
8925
|
+
selectInputField.config.main.options = options;
|
|
8926
|
+
}
|
|
8927
|
+
if (config.layout) {
|
|
8928
|
+
selectInputField.config.layout = createLayoutFormat(config.layout);
|
|
8929
|
+
}
|
|
8930
|
+
selectInputField.scope = componentScope;
|
|
8931
|
+
return selectInputField;
|
|
8932
|
+
};
|
|
8933
|
+
var Button = {
|
|
8934
|
+
type: "Control",
|
|
8935
|
+
scope: "#/properties/button",
|
|
8936
|
+
options: {
|
|
8937
|
+
widget: "Button"
|
|
8938
|
+
},
|
|
8939
|
+
config: {
|
|
8940
|
+
layout: {
|
|
8941
|
+
xs: 11,
|
|
8942
|
+
sm: 11,
|
|
8943
|
+
md: 5.5,
|
|
8944
|
+
lg: 5.5
|
|
8988
8945
|
},
|
|
8989
|
-
{
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
"
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
"
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
},
|
|
8999
|
-
style: {
|
|
9000
|
-
position: "absolute",
|
|
9001
|
-
left: "20%",
|
|
9002
|
-
top: 0,
|
|
9003
|
-
width: "2px",
|
|
9004
|
-
zIndex: 10,
|
|
9005
|
-
height: "10px",
|
|
9006
|
-
background: "green"
|
|
9007
|
-
}
|
|
9008
|
-
}
|
|
9009
|
-
},
|
|
9010
|
-
{
|
|
9011
|
-
"type": "Control",
|
|
9012
|
-
"scope": "#/properties/twentyPercentage",
|
|
9013
|
-
"options": {
|
|
9014
|
-
"widget": "Box"
|
|
9015
|
-
},
|
|
9016
|
-
"config": {
|
|
9017
|
-
"main": {
|
|
9018
|
-
heading: "20%"
|
|
9019
|
-
},
|
|
9020
|
-
style: {
|
|
9021
|
-
position: "absolute",
|
|
9022
|
-
left: "calc(20% - 3px)",
|
|
9023
|
-
top: "12px",
|
|
9024
|
-
width: "10px",
|
|
9025
|
-
textAlign: "center",
|
|
9026
|
-
fontSize: "8px",
|
|
9027
|
-
zIndex: 2
|
|
9028
|
-
}
|
|
9029
|
-
}
|
|
9030
|
-
},
|
|
9031
|
-
{
|
|
9032
|
-
"type": "Control",
|
|
9033
|
-
"scope": "#/properties/fourRunnerTick",
|
|
9034
|
-
"options": {
|
|
9035
|
-
"widget": "Box"
|
|
9036
|
-
},
|
|
9037
|
-
"config": {
|
|
9038
|
-
"main": {
|
|
9039
|
-
heading: " "
|
|
9040
|
-
},
|
|
9041
|
-
style: {
|
|
9042
|
-
position: "absolute",
|
|
9043
|
-
left: "30%",
|
|
9044
|
-
top: 0,
|
|
9045
|
-
width: "2px",
|
|
9046
|
-
zIndex: 10,
|
|
9047
|
-
height: "10px",
|
|
9048
|
-
background: "green"
|
|
9049
|
-
}
|
|
9050
|
-
}
|
|
9051
|
-
},
|
|
9052
|
-
{
|
|
9053
|
-
"type": "Control",
|
|
9054
|
-
"scope": "#/properties/thirtyPercentage",
|
|
9055
|
-
"options": {
|
|
9056
|
-
"widget": "Box"
|
|
9057
|
-
},
|
|
9058
|
-
"config": {
|
|
9059
|
-
"main": {
|
|
9060
|
-
heading: "30%"
|
|
9061
|
-
},
|
|
9062
|
-
style: {
|
|
9063
|
-
position: "absolute",
|
|
9064
|
-
left: "calc(30% - 3px)",
|
|
9065
|
-
top: "12px",
|
|
9066
|
-
width: "10px",
|
|
9067
|
-
textAlign: "center",
|
|
9068
|
-
fontSize: "8px",
|
|
9069
|
-
zIndex: 2
|
|
9070
|
-
}
|
|
9071
|
-
}
|
|
9072
|
-
},
|
|
9073
|
-
{
|
|
9074
|
-
"type": "Control",
|
|
9075
|
-
"scope": "#/properties/fiveRunnerTick",
|
|
9076
|
-
"options": {
|
|
9077
|
-
"widget": "Box"
|
|
9078
|
-
},
|
|
9079
|
-
"config": {
|
|
9080
|
-
"main": {
|
|
9081
|
-
heading: " "
|
|
9082
|
-
},
|
|
9083
|
-
style: {
|
|
9084
|
-
position: "absolute",
|
|
9085
|
-
left: "40%",
|
|
9086
|
-
top: 0,
|
|
9087
|
-
width: "2px",
|
|
9088
|
-
zIndex: 10,
|
|
9089
|
-
height: "10px",
|
|
9090
|
-
background: "green"
|
|
9091
|
-
}
|
|
9092
|
-
}
|
|
9093
|
-
},
|
|
9094
|
-
{
|
|
9095
|
-
"type": "Control",
|
|
9096
|
-
"scope": "#/properties/fortyPercentage",
|
|
9097
|
-
"options": {
|
|
9098
|
-
"widget": "Box"
|
|
9099
|
-
},
|
|
9100
|
-
"config": {
|
|
9101
|
-
"main": {
|
|
9102
|
-
heading: "40%"
|
|
9103
|
-
},
|
|
9104
|
-
style: {
|
|
9105
|
-
position: "absolute",
|
|
9106
|
-
left: "calc(40% - 3px)",
|
|
9107
|
-
top: "12px",
|
|
9108
|
-
width: "10px",
|
|
9109
|
-
textAlign: "center",
|
|
9110
|
-
fontSize: "8px",
|
|
9111
|
-
zIndex: 2
|
|
9112
|
-
}
|
|
9113
|
-
}
|
|
9114
|
-
},
|
|
9115
|
-
{
|
|
9116
|
-
"type": "Control",
|
|
9117
|
-
"scope": "#/properties/sixRunnerTick",
|
|
9118
|
-
"options": {
|
|
9119
|
-
"widget": "Box"
|
|
9120
|
-
},
|
|
9121
|
-
"config": {
|
|
9122
|
-
"main": {
|
|
9123
|
-
heading: " "
|
|
9124
|
-
},
|
|
9125
|
-
style: {
|
|
9126
|
-
position: "absolute",
|
|
9127
|
-
left: "50%",
|
|
9128
|
-
top: 0,
|
|
9129
|
-
width: "2px",
|
|
9130
|
-
zIndex: 10,
|
|
9131
|
-
height: "10px",
|
|
9132
|
-
background: "green"
|
|
9133
|
-
}
|
|
9134
|
-
}
|
|
9135
|
-
},
|
|
9136
|
-
{
|
|
9137
|
-
"type": "Control",
|
|
9138
|
-
"scope": "#/properties/fiftyPercentage",
|
|
9139
|
-
"options": {
|
|
9140
|
-
"widget": "Box"
|
|
9141
|
-
},
|
|
9142
|
-
"config": {
|
|
9143
|
-
"main": {
|
|
9144
|
-
heading: "50%"
|
|
9145
|
-
},
|
|
9146
|
-
style: {
|
|
9147
|
-
position: "absolute",
|
|
9148
|
-
left: "calc(50% - 3px)",
|
|
9149
|
-
top: "12px",
|
|
9150
|
-
width: "10px",
|
|
9151
|
-
textAlign: "center",
|
|
9152
|
-
fontSize: "8px",
|
|
9153
|
-
zIndex: 2
|
|
9154
|
-
}
|
|
9155
|
-
}
|
|
9156
|
-
},
|
|
9157
|
-
{
|
|
9158
|
-
"type": "Control",
|
|
9159
|
-
"scope": "#/properties/sixtyPercentage",
|
|
9160
|
-
"options": {
|
|
9161
|
-
"widget": "Box"
|
|
9162
|
-
},
|
|
9163
|
-
"config": {
|
|
9164
|
-
"main": {
|
|
9165
|
-
heading: "60%"
|
|
9166
|
-
},
|
|
9167
|
-
style: {
|
|
9168
|
-
position: "absolute",
|
|
9169
|
-
left: "calc(60% - 3px)",
|
|
9170
|
-
top: "12px",
|
|
9171
|
-
width: "10px",
|
|
9172
|
-
textAlign: "center",
|
|
9173
|
-
fontSize: "8px",
|
|
9174
|
-
zIndex: 2
|
|
9175
|
-
}
|
|
9176
|
-
}
|
|
9177
|
-
},
|
|
9178
|
-
{
|
|
9179
|
-
"type": "Control",
|
|
9180
|
-
"scope": "#/properties/sevenRunnerTick",
|
|
9181
|
-
"options": {
|
|
9182
|
-
"widget": "Box"
|
|
9183
|
-
},
|
|
9184
|
-
"config": {
|
|
9185
|
-
"main": {
|
|
9186
|
-
heading: " "
|
|
9187
|
-
},
|
|
9188
|
-
style: {
|
|
9189
|
-
position: "absolute",
|
|
9190
|
-
left: "60%",
|
|
9191
|
-
top: 0,
|
|
9192
|
-
width: "2px",
|
|
9193
|
-
zIndex: 10,
|
|
9194
|
-
height: "10px",
|
|
9195
|
-
background: "green"
|
|
9196
|
-
}
|
|
9197
|
-
}
|
|
9198
|
-
},
|
|
9199
|
-
{
|
|
9200
|
-
"type": "Control",
|
|
9201
|
-
"scope": "#/properties/seventyPercentage",
|
|
9202
|
-
"options": {
|
|
9203
|
-
"widget": "Box"
|
|
9204
|
-
},
|
|
9205
|
-
"config": {
|
|
9206
|
-
"main": {
|
|
9207
|
-
heading: "70%"
|
|
9208
|
-
},
|
|
9209
|
-
style: {
|
|
9210
|
-
position: "absolute",
|
|
9211
|
-
left: "calc(70% - 3px)",
|
|
9212
|
-
top: "12px",
|
|
9213
|
-
width: "10px",
|
|
9214
|
-
textAlign: "center",
|
|
9215
|
-
fontSize: "8px",
|
|
9216
|
-
zIndex: 2
|
|
9217
|
-
}
|
|
9218
|
-
}
|
|
9219
|
-
},
|
|
9220
|
-
{
|
|
9221
|
-
"type": "Control",
|
|
9222
|
-
"scope": "#/properties/eightRunnerTick",
|
|
9223
|
-
"options": {
|
|
9224
|
-
"widget": "Box"
|
|
9225
|
-
},
|
|
9226
|
-
"config": {
|
|
9227
|
-
"main": {
|
|
9228
|
-
heading: " "
|
|
9229
|
-
},
|
|
9230
|
-
style: {
|
|
9231
|
-
position: "absolute",
|
|
9232
|
-
left: "70%",
|
|
9233
|
-
top: 0,
|
|
9234
|
-
width: "2px",
|
|
9235
|
-
zIndex: 10,
|
|
9236
|
-
height: "10px",
|
|
9237
|
-
background: "green"
|
|
9238
|
-
}
|
|
9239
|
-
}
|
|
9240
|
-
},
|
|
9241
|
-
{
|
|
9242
|
-
"type": "Control",
|
|
9243
|
-
"scope": "#/properties/eightyPercentage",
|
|
9244
|
-
"options": {
|
|
9245
|
-
"widget": "Box"
|
|
9246
|
-
},
|
|
9247
|
-
"config": {
|
|
9248
|
-
"main": {
|
|
9249
|
-
heading: "80%"
|
|
9250
|
-
},
|
|
9251
|
-
style: {
|
|
9252
|
-
position: "absolute",
|
|
9253
|
-
left: "calc(80% - 3px)",
|
|
9254
|
-
top: "12px",
|
|
9255
|
-
width: "10px",
|
|
9256
|
-
textAlign: "center",
|
|
9257
|
-
fontSize: "8px",
|
|
9258
|
-
zIndex: 2
|
|
9259
|
-
}
|
|
9260
|
-
}
|
|
9261
|
-
},
|
|
9262
|
-
{
|
|
9263
|
-
"type": "Control",
|
|
9264
|
-
"scope": "#/properties/nineRunnerTick",
|
|
9265
|
-
"options": {
|
|
9266
|
-
"widget": "Box"
|
|
9267
|
-
},
|
|
9268
|
-
"config": {
|
|
9269
|
-
"main": {
|
|
9270
|
-
heading: " "
|
|
9271
|
-
},
|
|
9272
|
-
style: {
|
|
9273
|
-
position: "absolute",
|
|
9274
|
-
left: "80%",
|
|
9275
|
-
top: 0,
|
|
9276
|
-
width: "2px",
|
|
9277
|
-
zIndex: 10,
|
|
9278
|
-
height: "10px",
|
|
9279
|
-
background: "green"
|
|
9280
|
-
}
|
|
9281
|
-
}
|
|
9282
|
-
},
|
|
9283
|
-
{
|
|
9284
|
-
"type": "Control",
|
|
9285
|
-
"scope": "#/properties/nintyPercentage",
|
|
9286
|
-
"options": {
|
|
9287
|
-
"widget": "Box"
|
|
9288
|
-
},
|
|
9289
|
-
"config": {
|
|
9290
|
-
"main": {
|
|
9291
|
-
heading: "90%"
|
|
9292
|
-
},
|
|
9293
|
-
style: {
|
|
9294
|
-
position: "absolute",
|
|
9295
|
-
left: "calc(90% - 3px)",
|
|
9296
|
-
top: "12px",
|
|
9297
|
-
width: "10px",
|
|
9298
|
-
textAlign: "center",
|
|
9299
|
-
fontSize: "8px",
|
|
9300
|
-
zIndex: 2
|
|
9301
|
-
}
|
|
9302
|
-
}
|
|
9303
|
-
},
|
|
9304
|
-
{
|
|
9305
|
-
"type": "Control",
|
|
9306
|
-
"scope": "#/properties/tenRunnerTick",
|
|
9307
|
-
"options": {
|
|
9308
|
-
"widget": "Box"
|
|
9309
|
-
},
|
|
9310
|
-
"config": {
|
|
9311
|
-
"main": {
|
|
9312
|
-
heading: " "
|
|
9313
|
-
},
|
|
9314
|
-
style: {
|
|
9315
|
-
position: "absolute",
|
|
9316
|
-
left: "90%",
|
|
9317
|
-
top: 0,
|
|
9318
|
-
width: "2px",
|
|
9319
|
-
zIndex: 10,
|
|
9320
|
-
height: "10px",
|
|
9321
|
-
background: "green"
|
|
9322
|
-
}
|
|
9323
|
-
}
|
|
9324
|
-
},
|
|
9325
|
-
{
|
|
9326
|
-
"type": "Control",
|
|
9327
|
-
"scope": "#/properties/hundredPercentage",
|
|
9328
|
-
"options": {
|
|
9329
|
-
"widget": "Box"
|
|
9330
|
-
},
|
|
9331
|
-
"config": {
|
|
9332
|
-
"main": {
|
|
9333
|
-
heading: "100%"
|
|
9334
|
-
},
|
|
9335
|
-
style: {
|
|
9336
|
-
position: "absolute",
|
|
9337
|
-
left: "calc(100% - 22px)",
|
|
9338
|
-
top: "12px",
|
|
9339
|
-
width: "20px",
|
|
9340
|
-
textAlign: "center",
|
|
9341
|
-
fontSize: "8px",
|
|
9342
|
-
zIndex: 2
|
|
9343
|
-
}
|
|
9344
|
-
}
|
|
9345
|
-
},
|
|
9346
|
-
{
|
|
9347
|
-
"type": "Control",
|
|
9348
|
-
"scope": "#/properties/elevenRunnerTick",
|
|
9349
|
-
"options": {
|
|
9350
|
-
"widget": "Box"
|
|
9351
|
-
},
|
|
9352
|
-
"config": {
|
|
9353
|
-
"main": {
|
|
9354
|
-
heading: " "
|
|
9355
|
-
},
|
|
9356
|
-
style: {
|
|
9357
|
-
position: "absolute",
|
|
9358
|
-
left: "calc(100% - 10px)",
|
|
9359
|
-
top: 0,
|
|
9360
|
-
width: "2px",
|
|
9361
|
-
zIndex: 10,
|
|
9362
|
-
height: "10px",
|
|
9363
|
-
background: "green"
|
|
9364
|
-
}
|
|
9365
|
-
}
|
|
9366
|
-
},
|
|
9367
|
-
{
|
|
9368
|
-
"type": "Control",
|
|
9369
|
-
"scope": "#/properties/runnerBoy",
|
|
9370
|
-
"layout": { xs: 12, sm: 8, md: 6, lg: 5 },
|
|
9371
|
-
"options": {
|
|
9372
|
-
"widget": "Box"
|
|
9373
|
-
},
|
|
9374
|
-
"config": {
|
|
9375
|
-
"main": {
|
|
9376
|
-
"url": "https://media1.giphy.com/media/JTOaN2A7IVwoGKIQ11/giphy.gif?cid=ecf05e47oxseox7hagztx1974svhjicmd09zlj0au9zewn8v&ep=v1_stickers_search&rid=giphy.gif&ct=s"
|
|
9377
|
-
},
|
|
9378
|
-
containerStyle: {
|
|
9379
|
-
position: "absolute",
|
|
9380
|
-
left: 0,
|
|
9381
|
-
textAlign: "center",
|
|
9382
|
-
borderRadius: "20px 20px 0 0",
|
|
9383
|
-
display: "flex",
|
|
9384
|
-
top: "20px",
|
|
9385
|
-
width: "80px",
|
|
9386
|
-
height: "100px",
|
|
9387
|
-
background: "transparent",
|
|
9388
|
-
fontWeight: "bolder",
|
|
9389
|
-
color: "white",
|
|
9390
|
-
"@keyframes rotateRunnerAnimation": {
|
|
9391
|
-
from: {
|
|
9392
|
-
left: 0
|
|
9393
|
-
},
|
|
9394
|
-
to: {
|
|
9395
|
-
left: "calc(50% - 40px)"
|
|
9396
|
-
}
|
|
9397
|
-
},
|
|
9398
|
-
animation: "rotateRunnerAnimation 10s linear 1s 1 forwards",
|
|
9399
|
-
alignItems: "center",
|
|
9400
|
-
justifyContent: "center"
|
|
9401
|
-
}
|
|
9402
|
-
}
|
|
9403
|
-
},
|
|
9404
|
-
{
|
|
9405
|
-
"type": "Control",
|
|
9406
|
-
"scope": "#/properties/progressBar",
|
|
9407
|
-
"layout": { xs: 12, sm: 8, md: 6, lg: 5 },
|
|
9408
|
-
"options": {
|
|
9409
|
-
"widget": "Box"
|
|
9410
|
-
},
|
|
9411
|
-
"config": {
|
|
9412
|
-
"main": {
|
|
9413
|
-
heading: "20 Policy Completed"
|
|
9414
|
-
},
|
|
9415
|
-
style: {
|
|
9416
|
-
position: "absolute",
|
|
9417
|
-
left: 0,
|
|
9418
|
-
textAlign: "center",
|
|
9419
|
-
borderRadius: "0 10px 10px 10px",
|
|
9420
|
-
top: "calc(100% - 15px)",
|
|
9421
|
-
display: "flex",
|
|
9422
|
-
zIndex: 3,
|
|
9423
|
-
overflow: "hidden",
|
|
9424
|
-
fontSize: "10px",
|
|
9425
|
-
width: "1px",
|
|
9426
|
-
height: "15px",
|
|
9427
|
-
background: "green",
|
|
9428
|
-
fontWeight: 900,
|
|
9429
|
-
textShadow: "2px 2px 5px gray",
|
|
9430
|
-
color: "white",
|
|
9431
|
-
"@keyframes widthAnimation": {
|
|
9432
|
-
from: {
|
|
9433
|
-
width: 0
|
|
9434
|
-
},
|
|
9435
|
-
to: {
|
|
9436
|
-
width: "50%"
|
|
9437
|
-
}
|
|
9438
|
-
},
|
|
9439
|
-
animation: "widthAnimation 10s linear 1s 1 forwards",
|
|
9440
|
-
alignItems: "center",
|
|
9441
|
-
justifyContent: "center"
|
|
9442
|
-
}
|
|
9443
|
-
}
|
|
9444
|
-
},
|
|
9445
|
-
{
|
|
9446
|
-
"type": "Control",
|
|
9447
|
-
"scope": "#/properties/progrssBarContainer",
|
|
9448
|
-
"layout": { xs: 12, sm: 8, md: 6, lg: 5 },
|
|
9449
|
-
"options": {
|
|
9450
|
-
"widget": "Box"
|
|
9451
|
-
},
|
|
9452
|
-
"config": {
|
|
9453
|
-
"main": {
|
|
9454
|
-
heading: " "
|
|
9455
|
-
},
|
|
9456
|
-
style: {
|
|
9457
|
-
position: "absolute",
|
|
9458
|
-
left: 0,
|
|
9459
|
-
textAlign: "center",
|
|
9460
|
-
borderRadius: "0 0 10px 10px",
|
|
9461
|
-
display: "flex",
|
|
9462
|
-
overflow: "hidden",
|
|
9463
|
-
fontSize: "8px",
|
|
9464
|
-
top: "calc(100% - 15px)",
|
|
9465
|
-
width: "100%",
|
|
9466
|
-
height: "15px",
|
|
9467
|
-
background: "#D9FFE2",
|
|
9468
|
-
fontWeight: "bolder",
|
|
9469
|
-
color: "white"
|
|
9470
|
-
}
|
|
9471
|
-
}
|
|
9472
|
-
},
|
|
9473
|
-
{
|
|
9474
|
-
"type": "Control",
|
|
9475
|
-
"scope": "#/properties/trophy",
|
|
9476
|
-
"layout": { xs: 12, sm: 8, md: 6, lg: 5 },
|
|
9477
|
-
"options": {
|
|
9478
|
-
"widget": "Box"
|
|
9479
|
-
},
|
|
9480
|
-
"config": {
|
|
9481
|
-
"main": {
|
|
9482
|
-
"url": "https://tse2.mm.bing.net/th?id=OIP.4mtQjTlFWqEt6ze9dSB2DwHaLi&pid=Api&P=0&h=180"
|
|
9483
|
-
},
|
|
9484
|
-
containerStyle: {
|
|
9485
|
-
position: "absolute",
|
|
9486
|
-
right: "-20px",
|
|
9487
|
-
textAlign: "center",
|
|
9488
|
-
borderRadius: "0 0 10px 10px",
|
|
9489
|
-
display: "flex",
|
|
9490
|
-
overFlow: "hidden",
|
|
9491
|
-
fontSize: "8px",
|
|
9492
|
-
bottom: "15px",
|
|
9493
|
-
width: "40px",
|
|
9494
|
-
height: "60px",
|
|
9495
|
-
"@keyframes trophyAnimation": {
|
|
9496
|
-
0: {
|
|
9497
|
-
transform: "rotate(0deg)"
|
|
9498
|
-
},
|
|
9499
|
-
"50%": {
|
|
9500
|
-
transform: "rotate(20deg)"
|
|
9501
|
-
},
|
|
9502
|
-
"100%": {
|
|
9503
|
-
transform: "rotate(-20deg)"
|
|
9504
|
-
}
|
|
9505
|
-
},
|
|
9506
|
-
animation: "trophyAnimation 3s infinite alternate"
|
|
9507
|
-
},
|
|
9508
|
-
style: {
|
|
9509
|
-
textAlign: "center",
|
|
9510
|
-
borderRadius: "0 0 10px 10px",
|
|
9511
|
-
display: "flex",
|
|
9512
|
-
overFlow: "hidden",
|
|
9513
|
-
fontSize: "8px",
|
|
9514
|
-
bottom: "15px",
|
|
9515
|
-
width: "40px",
|
|
9516
|
-
height: "60px",
|
|
9517
|
-
background: "#D9FFE2",
|
|
9518
|
-
fontWeight: "bolder",
|
|
9519
|
-
color: "white"
|
|
9520
|
-
}
|
|
9521
|
-
}
|
|
9522
|
-
}
|
|
9523
|
-
]
|
|
9524
|
-
};
|
|
9525
|
-
const RunnerBoyProgressbar = (config, componentScope) => {
|
|
9526
|
-
const RunnerBoy = _.cloneDeep(RunnerBoyProgressBar);
|
|
9527
|
-
RunnerBoy.scope = componentScope;
|
|
9528
|
-
return RunnerBoy;
|
|
9529
|
-
};
|
|
9530
|
-
var Tabsection = {
|
|
9531
|
-
type: "TabLayout",
|
|
9532
|
-
config: {
|
|
9533
|
-
main: {
|
|
9534
|
-
id: "groupMaster",
|
|
9535
|
-
tabLabels: ["default"],
|
|
9536
|
-
layout: 12
|
|
9537
|
-
}
|
|
9538
|
-
},
|
|
9539
|
-
elements: []
|
|
9540
|
-
};
|
|
9541
|
-
const buildTabSection = (config, componentScope) => {
|
|
9542
|
-
const tab = _.cloneDeep(Tabsection);
|
|
9543
|
-
if (config.sectionLabels) {
|
|
9544
|
-
tab.config.main.tabLabels = config.sectionLabels.map((e) => e.label);
|
|
9545
|
-
}
|
|
9546
|
-
tab.config.main.id = config.name;
|
|
9547
|
-
return tab;
|
|
9548
|
-
};
|
|
9549
|
-
var WrapperSection = {
|
|
9550
|
-
type: "WrapperLayout",
|
|
9551
|
-
config: {
|
|
9552
|
-
main: {
|
|
9553
|
-
label: "Default Label",
|
|
9554
|
-
divider: true
|
|
9555
|
-
},
|
|
9556
|
-
defaultStyle: true
|
|
9557
|
-
},
|
|
9558
|
-
elements: []
|
|
9559
|
-
};
|
|
9560
|
-
const buildWrapperSection = (config, componentScope) => {
|
|
9561
|
-
const wrapper = _.cloneDeep(WrapperSection);
|
|
9562
|
-
wrapper.config.main.label = config.label;
|
|
9563
|
-
wrapper.config.main.divider = config.divider ? true : false;
|
|
9564
|
-
wrapper.config.main.header = config.heading ? true : false;
|
|
9565
|
-
return wrapper;
|
|
9566
|
-
};
|
|
9567
|
-
var TextInputField = {
|
|
9568
|
-
type: "Control",
|
|
9569
|
-
scope: "#/properties/text",
|
|
9570
|
-
options: {
|
|
9571
|
-
widget: "InputField"
|
|
9572
|
-
},
|
|
9573
|
-
config: {
|
|
9574
|
-
layout: {
|
|
9575
|
-
xs: 11,
|
|
9576
|
-
sm: 11,
|
|
9577
|
-
md: 5.5,
|
|
9578
|
-
lg: 5.5
|
|
9579
|
-
},
|
|
9580
|
-
main: {
|
|
9581
|
-
label: ""
|
|
9582
|
-
},
|
|
9583
|
-
style: {}
|
|
9584
|
-
}
|
|
9585
|
-
};
|
|
9586
|
-
const buildTextField = (config, componentScope) => {
|
|
9587
|
-
const inputField = _.cloneDeep(TextInputField);
|
|
9588
|
-
inputField.config.main.label = config.label;
|
|
9589
|
-
if (config.style) {
|
|
9590
|
-
inputField.config.style = JSON.parse(config.style);
|
|
9591
|
-
}
|
|
9592
|
-
if (config.layout) {
|
|
9593
|
-
inputField.config.layout = createLayoutFormat(config.layout);
|
|
9594
|
-
}
|
|
9595
|
-
inputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
9596
|
-
inputField.scope = componentScope;
|
|
9597
|
-
return inputField;
|
|
9598
|
-
};
|
|
9599
|
-
var SelectInputField = {
|
|
9600
|
-
type: "Control",
|
|
9601
|
-
scope: "#/properties/select",
|
|
9602
|
-
options: {
|
|
9603
|
-
widget: "SelectInputField"
|
|
9604
|
-
},
|
|
9605
|
-
config: {
|
|
9606
|
-
"layout": {
|
|
9607
|
-
"xs": 11,
|
|
9608
|
-
"sm": 11,
|
|
9609
|
-
"md": 5.5,
|
|
9610
|
-
"lg": 5.5
|
|
9611
|
-
},
|
|
9612
|
-
main: {
|
|
9613
|
-
label: "",
|
|
9614
|
-
type: "text"
|
|
9615
|
-
}
|
|
9616
|
-
}
|
|
9617
|
-
};
|
|
9618
|
-
const buildSelect = (config, componentScope) => {
|
|
9619
|
-
const selectInputField = _.cloneDeep(SelectInputField);
|
|
9620
|
-
selectInputField.config.main.label = config.label;
|
|
9621
|
-
if (config.value) {
|
|
9622
|
-
const options = config.value.map((e) => {
|
|
9623
|
-
return { label: e.label, value: e.value };
|
|
9624
|
-
});
|
|
9625
|
-
selectInputField.config.main.options = options;
|
|
9626
|
-
}
|
|
9627
|
-
if (config.layout) {
|
|
9628
|
-
selectInputField.config.layout = createLayoutFormat(config.layout);
|
|
9629
|
-
}
|
|
9630
|
-
selectInputField.scope = `${componentScope}/properties/options`;
|
|
9631
|
-
return selectInputField;
|
|
9632
|
-
};
|
|
9633
|
-
var Button = {
|
|
9634
|
-
type: "Control",
|
|
9635
|
-
scope: "#/properties/button",
|
|
9636
|
-
options: {
|
|
9637
|
-
widget: "Button"
|
|
9638
|
-
},
|
|
9639
|
-
config: {
|
|
9640
|
-
layout: {
|
|
9641
|
-
xs: 11,
|
|
9642
|
-
sm: 11,
|
|
9643
|
-
md: 5.5,
|
|
9644
|
-
lg: 5.5
|
|
9645
|
-
},
|
|
9646
|
-
main: {
|
|
9647
|
-
name: "Compare",
|
|
9648
|
-
variant: "contained",
|
|
9649
|
-
color: "info",
|
|
9650
|
-
type: "text",
|
|
9651
|
-
startIcon: "",
|
|
9652
|
-
icon: "",
|
|
9653
|
-
onClick: "onClick",
|
|
9654
|
-
size: "large"
|
|
8946
|
+
main: {
|
|
8947
|
+
name: "Compare",
|
|
8948
|
+
variant: "contained",
|
|
8949
|
+
color: "info",
|
|
8950
|
+
type: "text",
|
|
8951
|
+
startIcon: "",
|
|
8952
|
+
icon: "",
|
|
8953
|
+
onClick: "onClick",
|
|
8954
|
+
size: "large"
|
|
9655
8955
|
},
|
|
9656
8956
|
style: {}
|
|
9657
8957
|
}
|
|
@@ -9697,7 +8997,7 @@ var Table = {
|
|
|
9697
8997
|
};
|
|
9698
8998
|
const buildTable = (config, componentScope) => {
|
|
9699
8999
|
const table = _.cloneDeep(Table);
|
|
9700
|
-
table.scope =
|
|
9000
|
+
table.scope = componentScope;
|
|
9701
9001
|
if (config.style) {
|
|
9702
9002
|
table.config.style = JSON.parse(config.style);
|
|
9703
9003
|
}
|
|
@@ -9814,94 +9114,99 @@ const buildDownloadFile = (config, componentScope) => {
|
|
|
9814
9114
|
return DownloadFile;
|
|
9815
9115
|
};
|
|
9816
9116
|
var Card = {
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9117
|
+
type: "WrapperLayout",
|
|
9118
|
+
config: {
|
|
9119
|
+
main: {
|
|
9120
|
+
rowSpacing: 0.5
|
|
9821
9121
|
},
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
"
|
|
9827
|
-
|
|
9828
|
-
|
|
9122
|
+
style: {
|
|
9123
|
+
wrapperStyle: {
|
|
9124
|
+
position: "relative",
|
|
9125
|
+
color: "white",
|
|
9126
|
+
height: { xs: "120px", md: "160px" },
|
|
9127
|
+
width: "100%",
|
|
9128
|
+
textAlign: "left",
|
|
9129
|
+
background: "#3f51b5",
|
|
9130
|
+
borderRadius: "20px"
|
|
9829
9131
|
}
|
|
9830
9132
|
},
|
|
9831
|
-
|
|
9832
|
-
xs: 11,
|
|
9833
|
-
sm: 11,
|
|
9834
|
-
md: 6,
|
|
9835
|
-
lg: 6
|
|
9836
|
-
}
|
|
9133
|
+
layout: { xs: 12, sm: 12, md: 6, lg: 6 }
|
|
9837
9134
|
},
|
|
9838
|
-
|
|
9135
|
+
elements: [
|
|
9839
9136
|
{
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9137
|
+
type: "Control",
|
|
9138
|
+
scope: "#/properties/programType",
|
|
9139
|
+
config: {
|
|
9140
|
+
main: {
|
|
9141
|
+
heading: "$5000.00"
|
|
9845
9142
|
},
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
"
|
|
9143
|
+
style: {
|
|
9144
|
+
position: "absolute",
|
|
9145
|
+
left: "10%",
|
|
9146
|
+
top: "15%",
|
|
9147
|
+
color: "#f5effc",
|
|
9148
|
+
height: "80px",
|
|
9149
|
+
display: "flex",
|
|
9150
|
+
fontSize: { xs: "24px", md: "32px" },
|
|
9151
|
+
alignItems: "center",
|
|
9152
|
+
background: "inherit",
|
|
9153
|
+
justifyContent: "flex-start"
|
|
9854
9154
|
},
|
|
9855
|
-
|
|
9155
|
+
layout: 5
|
|
9856
9156
|
},
|
|
9857
|
-
|
|
9858
|
-
|
|
9157
|
+
options: {
|
|
9158
|
+
widget: "Box"
|
|
9859
9159
|
}
|
|
9860
9160
|
},
|
|
9861
9161
|
{
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9162
|
+
type: "Control",
|
|
9163
|
+
scope: "#/properties/programType",
|
|
9164
|
+
config: {
|
|
9165
|
+
main: {
|
|
9166
|
+
url: "$"
|
|
9867
9167
|
},
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9168
|
+
style: {
|
|
9169
|
+
color: "#f5effc",
|
|
9170
|
+
objectFit: "contain",
|
|
9171
|
+
position: "absolute",
|
|
9172
|
+
top: "10px",
|
|
9173
|
+
right: "10px",
|
|
9174
|
+
height: "80%",
|
|
9175
|
+
width: "35%",
|
|
9176
|
+
display: "flex",
|
|
9177
|
+
fontSize: "34px",
|
|
9178
|
+
alignItems: "center",
|
|
9179
|
+
background: "inherit",
|
|
9180
|
+
padding: "20px",
|
|
9181
|
+
justifyContent: "left"
|
|
9877
9182
|
},
|
|
9878
|
-
|
|
9183
|
+
layout: 5
|
|
9879
9184
|
},
|
|
9880
|
-
|
|
9881
|
-
|
|
9185
|
+
options: {
|
|
9186
|
+
widget: "Box"
|
|
9882
9187
|
}
|
|
9883
9188
|
},
|
|
9884
9189
|
{
|
|
9885
|
-
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9190
|
+
type: "Control",
|
|
9191
|
+
scope: "#/properties/programType",
|
|
9192
|
+
config: {
|
|
9193
|
+
main: {
|
|
9194
|
+
heading: "Total Earnings"
|
|
9890
9195
|
},
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9196
|
+
style: {
|
|
9197
|
+
position: "absolute",
|
|
9198
|
+
top: "calc(60%)",
|
|
9199
|
+
alignItems: "center",
|
|
9200
|
+
color: "#8999e8",
|
|
9201
|
+
fontSize: "16px",
|
|
9202
|
+
left: "10%",
|
|
9203
|
+
background: "inherit",
|
|
9204
|
+
justifyContent: "center"
|
|
9900
9205
|
},
|
|
9901
|
-
|
|
9206
|
+
layout: 12
|
|
9902
9207
|
},
|
|
9903
|
-
|
|
9904
|
-
|
|
9208
|
+
options: {
|
|
9209
|
+
widget: "Box"
|
|
9905
9210
|
}
|
|
9906
9211
|
}
|
|
9907
9212
|
]
|
|
@@ -9918,7 +9223,8 @@ const buildCard = (config, componentScope) => {
|
|
|
9918
9223
|
card.config.layout = createLayoutFormat(config.layout);
|
|
9919
9224
|
}
|
|
9920
9225
|
card.elements[0].config.main.heading = config.label;
|
|
9921
|
-
card.elements[
|
|
9226
|
+
card.elements[1].config.main.url = config.url;
|
|
9227
|
+
card.elements[2].config.main.heading = config.description;
|
|
9922
9228
|
return card;
|
|
9923
9229
|
};
|
|
9924
9230
|
var DateInputField = {
|
|
@@ -9951,217 +9257,56 @@ const buildDate = (config, componentScope) => {
|
|
|
9951
9257
|
return dateInputField;
|
|
9952
9258
|
};
|
|
9953
9259
|
var RankCard = {
|
|
9954
|
-
type: "
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
height: 310,
|
|
9959
|
-
position: "relative",
|
|
9960
|
-
background: "white",
|
|
9961
|
-
borderRadius: "12px",
|
|
9962
|
-
boxShadow: "2px 2px 5px grey",
|
|
9963
|
-
margin: "none"
|
|
9964
|
-
},
|
|
9965
|
-
main: {},
|
|
9966
|
-
layout: 4
|
|
9260
|
+
type: "Control",
|
|
9261
|
+
scope: "#/properties/path",
|
|
9262
|
+
options: {
|
|
9263
|
+
widget: "RankCard"
|
|
9967
9264
|
},
|
|
9968
|
-
|
|
9969
|
-
{
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
config: {
|
|
9973
|
-
main: {
|
|
9974
|
-
url: ""
|
|
9975
|
-
},
|
|
9976
|
-
style: {
|
|
9977
|
-
position: "absolute",
|
|
9978
|
-
left: "calc(50% - 90px)",
|
|
9979
|
-
top: "10px",
|
|
9980
|
-
border: "1px solid blue",
|
|
9981
|
-
objectFit: "cover",
|
|
9982
|
-
width: "180px",
|
|
9983
|
-
boxShadow: "1px 1px 2px blue",
|
|
9984
|
-
height: "180px",
|
|
9985
|
-
borderRadius: "50%",
|
|
9986
|
-
marginLeft: "auto",
|
|
9987
|
-
marginRight: "auto"
|
|
9988
|
-
},
|
|
9989
|
-
layout: 6
|
|
9990
|
-
},
|
|
9991
|
-
options: {
|
|
9992
|
-
widget: "Box"
|
|
9993
|
-
}
|
|
9994
|
-
},
|
|
9995
|
-
{
|
|
9996
|
-
type: "Control",
|
|
9997
|
-
scope: "#/properties/name",
|
|
9998
|
-
config: {
|
|
9999
|
-
style: {
|
|
10000
|
-
color: "white",
|
|
10001
|
-
position: "absolute",
|
|
10002
|
-
width: "95%",
|
|
10003
|
-
top: "200px",
|
|
10004
|
-
padding: "0px 12px",
|
|
10005
|
-
display: "inline-block",
|
|
10006
|
-
borderRadius: "8px",
|
|
10007
|
-
"@keyframes RankCardImage": {
|
|
10008
|
-
from: {
|
|
10009
|
-
backgroundColor: "green"
|
|
10010
|
-
},
|
|
10011
|
-
to: {
|
|
10012
|
-
backgroundColor: "blue"
|
|
10013
|
-
}
|
|
10014
|
-
},
|
|
10015
|
-
animation: "RankCardImage 4s infinite alternate"
|
|
10016
|
-
},
|
|
10017
|
-
main: {
|
|
10018
|
-
heading: "Prakhar"
|
|
10019
|
-
}
|
|
10020
|
-
},
|
|
10021
|
-
options: {
|
|
10022
|
-
widget: "Box"
|
|
10023
|
-
}
|
|
10024
|
-
},
|
|
10025
|
-
{
|
|
10026
|
-
type: "Control",
|
|
10027
|
-
scope: "#/properties/description",
|
|
10028
|
-
config: {
|
|
10029
|
-
style: {
|
|
10030
|
-
maxHeight: 120,
|
|
10031
|
-
fontSize: "15px",
|
|
10032
|
-
fontWeight: "400",
|
|
10033
|
-
width: "95%",
|
|
10034
|
-
position: "absolute",
|
|
10035
|
-
top: "240px",
|
|
10036
|
-
color: "gray",
|
|
10037
|
-
overflow: "auto",
|
|
10038
|
-
wordWrap: "break-word",
|
|
10039
|
-
"&::-webkit-scrollbar": { display: "none" }
|
|
10040
|
-
},
|
|
10041
|
-
main: {
|
|
10042
|
-
heading: "sadnfikudfojbsvdjnblokvnjsdnvlkjm nlskjdnv"
|
|
10043
|
-
}
|
|
10044
|
-
},
|
|
10045
|
-
options: {
|
|
10046
|
-
widget: "Box"
|
|
10047
|
-
}
|
|
10048
|
-
},
|
|
10049
|
-
{
|
|
10050
|
-
type: "Control",
|
|
10051
|
-
scope: "#/properties/rank",
|
|
10052
|
-
config: {
|
|
10053
|
-
style: {
|
|
10054
|
-
position: "absolute",
|
|
10055
|
-
top: "0px",
|
|
10056
|
-
right: "0px",
|
|
10057
|
-
width: "15%",
|
|
10058
|
-
animation: "RankCardImage 4s infinite alternate",
|
|
10059
|
-
backgroundColor: "rgb(57, 73, 171)",
|
|
10060
|
-
color: "white",
|
|
10061
|
-
boxShadow: "2px 2px 5px gray",
|
|
10062
|
-
padding: "4px 8px",
|
|
10063
|
-
borderRadius: "4px 12px 4px 25px",
|
|
10064
|
-
fontWeight: "bold"
|
|
10065
|
-
},
|
|
10066
|
-
main: {
|
|
10067
|
-
heading: "#1"
|
|
10068
|
-
}
|
|
10069
|
-
},
|
|
10070
|
-
options: {
|
|
10071
|
-
widget: "Box"
|
|
10072
|
-
}
|
|
10073
|
-
}
|
|
10074
|
-
]
|
|
9265
|
+
config: {
|
|
9266
|
+
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
9267
|
+
main: {}
|
|
9268
|
+
}
|
|
10075
9269
|
};
|
|
10076
|
-
const
|
|
9270
|
+
const buildRankCard = (config, componentScope) => {
|
|
10077
9271
|
const rankCard = _.cloneDeep(RankCard);
|
|
10078
9272
|
rankCard.scope = componentScope;
|
|
9273
|
+
if (config.image) {
|
|
9274
|
+
rankCard.config.main.url = config.image;
|
|
9275
|
+
}
|
|
9276
|
+
if (config.title) {
|
|
9277
|
+
rankCard.config.main.title = config.title;
|
|
9278
|
+
}
|
|
9279
|
+
if (config.description) {
|
|
9280
|
+
rankCard.config.main.description = config.description;
|
|
9281
|
+
}
|
|
9282
|
+
if (config.rank) {
|
|
9283
|
+
rankCard.config.main.rank = `#${config.rank}`;
|
|
9284
|
+
}
|
|
10079
9285
|
if (config.layout) {
|
|
10080
9286
|
rankCard.config.layout = createLayoutFormat(config.layout);
|
|
10081
9287
|
}
|
|
10082
9288
|
return rankCard;
|
|
10083
9289
|
};
|
|
10084
9290
|
var RollAndDice = {
|
|
10085
|
-
type: "
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10089
|
-
width: "100%",
|
|
10090
|
-
padding: "none"
|
|
10091
|
-
},
|
|
10092
|
-
style: {
|
|
10093
|
-
wrapperStyle: {
|
|
10094
|
-
width: "100%",
|
|
10095
|
-
height: 270,
|
|
10096
|
-
position: "relative",
|
|
10097
|
-
background: "#333333",
|
|
10098
|
-
borderRadius: "12px",
|
|
10099
|
-
boxShadow: "2px 2px 5px grey",
|
|
10100
|
-
margin: "auto",
|
|
10101
|
-
padding: "none"
|
|
10102
|
-
}
|
|
10103
|
-
},
|
|
10104
|
-
main: {
|
|
10105
|
-
header: true
|
|
10106
|
-
},
|
|
10107
|
-
layout: 12
|
|
9291
|
+
type: "Control",
|
|
9292
|
+
scope: "#/properties/path",
|
|
9293
|
+
options: {
|
|
9294
|
+
widget: "RollAndDice"
|
|
10108
9295
|
},
|
|
10109
|
-
|
|
10110
|
-
{
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
config: {
|
|
10114
|
-
style: {
|
|
10115
|
-
color: "white",
|
|
10116
|
-
height: 190,
|
|
10117
|
-
width: "60%",
|
|
10118
|
-
marginLeft: "auto",
|
|
10119
|
-
marginRight: "auto",
|
|
10120
|
-
backgroundSize: "contain",
|
|
10121
|
-
backgroundPosition: "center",
|
|
10122
|
-
display: "flex",
|
|
10123
|
-
alignItems: "center",
|
|
10124
|
-
marginTop: "10px",
|
|
10125
|
-
justifyContent: "center",
|
|
10126
|
-
backgroundRepeat: "no-repeat",
|
|
10127
|
-
padding: "0px 12px",
|
|
10128
|
-
backgroundImage: "url('https://media0.giphy.com/media/oVC14esV3dKehcBkT4/giphy.gif?cid=ecf05e47vv4p7czphyk7mnyu6uwho7r1g8da0lwyceacljoe&ep=v1_stickers_search&rid=giphy.gif&ct=s')",
|
|
10129
|
-
borderRadius: "50%"
|
|
10130
|
-
},
|
|
10131
|
-
main: {
|
|
10132
|
-
heading: ""
|
|
10133
|
-
}
|
|
10134
|
-
},
|
|
10135
|
-
options: {
|
|
10136
|
-
widget: "Box"
|
|
10137
|
-
}
|
|
10138
|
-
},
|
|
10139
|
-
{
|
|
10140
|
-
type: "Control",
|
|
10141
|
-
scope: "#/properties/button",
|
|
10142
|
-
config: {
|
|
10143
|
-
layout: 4,
|
|
10144
|
-
style: {},
|
|
10145
|
-
main: {
|
|
10146
|
-
name: "Rank",
|
|
10147
|
-
onClick: "rankProvider"
|
|
10148
|
-
}
|
|
10149
|
-
},
|
|
10150
|
-
options: {
|
|
10151
|
-
widget: "Button"
|
|
10152
|
-
}
|
|
10153
|
-
}
|
|
10154
|
-
]
|
|
9296
|
+
config: {
|
|
9297
|
+
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
9298
|
+
main: {}
|
|
9299
|
+
}
|
|
10155
9300
|
};
|
|
10156
9301
|
const buildRollAndDice = (config, componentScope) => {
|
|
10157
9302
|
const rank = _.cloneDeep(RollAndDice);
|
|
10158
9303
|
if (config.name) {
|
|
10159
|
-
|
|
10160
|
-
rank.elements[1].scope = componentScope;
|
|
9304
|
+
rank.scope = componentScope;
|
|
10161
9305
|
}
|
|
10162
9306
|
if (config.layout) {
|
|
10163
9307
|
rank.config.layout = createLayoutFormat(config.layout);
|
|
10164
9308
|
}
|
|
9309
|
+
return rank;
|
|
10165
9310
|
};
|
|
10166
9311
|
var Timer = {
|
|
10167
9312
|
type: "Control",
|
|
@@ -10280,6 +9425,53 @@ const buildTextArea = (config, componentScope) => {
|
|
|
10280
9425
|
textArea.scope = componentScope;
|
|
10281
9426
|
return textArea;
|
|
10282
9427
|
};
|
|
9428
|
+
var cardSlider = {
|
|
9429
|
+
type: "Control",
|
|
9430
|
+
scope: "#/properties/path",
|
|
9431
|
+
options: {
|
|
9432
|
+
widget: "Slider"
|
|
9433
|
+
},
|
|
9434
|
+
elements: [],
|
|
9435
|
+
config: {
|
|
9436
|
+
layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
|
|
9437
|
+
main: {}
|
|
9438
|
+
}
|
|
9439
|
+
};
|
|
9440
|
+
const buildSlider = (config, componentScope) => {
|
|
9441
|
+
const slider = _.cloneDeep(cardSlider);
|
|
9442
|
+
if (config.name) {
|
|
9443
|
+
slider.scope = componentScope;
|
|
9444
|
+
}
|
|
9445
|
+
if (config.layout) {
|
|
9446
|
+
slider.config.layout = createLayoutFormat(config.layout);
|
|
9447
|
+
}
|
|
9448
|
+
return slider;
|
|
9449
|
+
};
|
|
9450
|
+
const Checkbox = {
|
|
9451
|
+
"type": "Control",
|
|
9452
|
+
"scope": "#/properties/username1",
|
|
9453
|
+
"layout": 12,
|
|
9454
|
+
"options": {
|
|
9455
|
+
"widget": "CheckBox"
|
|
9456
|
+
},
|
|
9457
|
+
"config": {
|
|
9458
|
+
"main": {
|
|
9459
|
+
"label": "Welcome to Hyperform"
|
|
9460
|
+
}
|
|
9461
|
+
}
|
|
9462
|
+
};
|
|
9463
|
+
const buildCheckbox = (config, componentScope) => {
|
|
9464
|
+
const check = _.cloneDeep(Checkbox);
|
|
9465
|
+
check.scope = componentScope;
|
|
9466
|
+
check.config.main.label = config.label;
|
|
9467
|
+
if (config.layout) {
|
|
9468
|
+
check.config.layout = createLayoutFormat(config.layout);
|
|
9469
|
+
}
|
|
9470
|
+
if (config.style) {
|
|
9471
|
+
check.config.style = JSON.parse(config.style);
|
|
9472
|
+
}
|
|
9473
|
+
return check;
|
|
9474
|
+
};
|
|
10283
9475
|
const buildUiSchema = (config) => {
|
|
10284
9476
|
let elements = {};
|
|
10285
9477
|
const componentScope = `#/properties/${config.name}`;
|
|
@@ -10314,6 +9506,9 @@ const buildUiSchema = (config) => {
|
|
|
10314
9506
|
case "Box":
|
|
10315
9507
|
elements = buildLabel(config, componentScope);
|
|
10316
9508
|
break;
|
|
9509
|
+
case "CheckBox":
|
|
9510
|
+
elements = buildCheckbox(config, componentScope);
|
|
9511
|
+
break;
|
|
10317
9512
|
case "UploadFile":
|
|
10318
9513
|
elements = buildUploadFile(config, componentScope);
|
|
10319
9514
|
break;
|
|
@@ -10357,15 +9552,13 @@ const buildUiSchema = (config) => {
|
|
|
10357
9552
|
elements = buildProgressBarCard(config, componentScope);
|
|
10358
9553
|
break;
|
|
10359
9554
|
case "RankCard":
|
|
10360
|
-
elements =
|
|
9555
|
+
elements = buildRankCard(config, componentScope);
|
|
10361
9556
|
break;
|
|
10362
9557
|
case "Rank":
|
|
10363
9558
|
elements = buildRollAndDice(config, componentScope);
|
|
10364
9559
|
break;
|
|
10365
|
-
case "
|
|
10366
|
-
|
|
10367
|
-
CardSlider.scope = componentScope;
|
|
10368
|
-
elements = CardSlider;
|
|
9560
|
+
case "Slider":
|
|
9561
|
+
elements = buildSlider(config, componentScope);
|
|
10369
9562
|
break;
|
|
10370
9563
|
case "Timer":
|
|
10371
9564
|
elements = buildTimer(config, componentScope);
|
|
@@ -10380,7 +9573,9 @@ const buildUiSchema = (config) => {
|
|
|
10380
9573
|
elements = buildBasicUiSchema(config);
|
|
10381
9574
|
}
|
|
10382
9575
|
if (config == null ? void 0 : config.elements) {
|
|
10383
|
-
if (config.type
|
|
9576
|
+
if ((config == null ? void 0 : config.type) === "LeaderBoard") {
|
|
9577
|
+
return elements;
|
|
9578
|
+
} else if (config.type == "Table") {
|
|
10384
9579
|
elements.elements = config.elements.map((e, elemInd) => {
|
|
10385
9580
|
if (e.type) {
|
|
10386
9581
|
return {
|
|
@@ -10402,8 +9597,8 @@ const buildUiSchema = (config) => {
|
|
|
10402
9597
|
}
|
|
10403
9598
|
return elements;
|
|
10404
9599
|
};
|
|
10405
|
-
var
|
|
10406
|
-
|
|
9600
|
+
var clearLocalStorage = () => {
|
|
9601
|
+
localStorage.removeItem("pageFormdata");
|
|
10407
9602
|
};
|
|
10408
|
-
export { buildConfig, buildUiSchema,
|
|
9603
|
+
export { buildConfig, buildUiSchema, clearLocalStorage as clearPreviousCache, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService };
|
|
10409
9604
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|