impaktapps-ui-builder 0.0.592-alpha.1 → 0.0.592-alpha.10
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 +59 -48
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +15 -22
- package/src/impaktapps-ui-builder/builder/services/event.ts +4 -4
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +12 -12
- package/src/impaktapps-ui-builder/builder/services/utils.ts +12 -12
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +1 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +4 -3
|
@@ -6346,7 +6346,8 @@ const ComponentSchema = {
|
|
|
6346
6346
|
{ title: "Stack Bar Graph", const: "StackBarGraph" },
|
|
6347
6347
|
{ title: "Line Graph", const: "LineGraph" },
|
|
6348
6348
|
{ title: "Pie Graph", const: "PieGraph" },
|
|
6349
|
-
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" }
|
|
6349
|
+
{ title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
|
|
6350
|
+
{ title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
|
|
6350
6351
|
]
|
|
6351
6352
|
},
|
|
6352
6353
|
iconName: {
|
|
@@ -7846,8 +7847,8 @@ const flatObjectValueInArray = (config = []) => {
|
|
|
7846
7847
|
});
|
|
7847
7848
|
return data;
|
|
7848
7849
|
};
|
|
7849
|
-
const
|
|
7850
|
-
|
|
7850
|
+
const clearFromSessionStorage = () => {
|
|
7851
|
+
sessionStorage.removeItem("pageFormdata");
|
|
7851
7852
|
};
|
|
7852
7853
|
const getNavigationHistory = (config, path) => {
|
|
7853
7854
|
if (path) {
|
|
@@ -7873,19 +7874,19 @@ const getNavigationHistory = (config, path) => {
|
|
|
7873
7874
|
}
|
|
7874
7875
|
return void 0;
|
|
7875
7876
|
};
|
|
7876
|
-
const
|
|
7877
|
+
const saveFormdataInSessionStorage = (formData, path) => {
|
|
7877
7878
|
let updatedFormdata;
|
|
7878
7879
|
if (path) {
|
|
7879
|
-
const pageFormdata =
|
|
7880
|
+
const pageFormdata = getFormdataFromSessionStorage();
|
|
7880
7881
|
updatedFormdata = _.set(pageFormdata, path, buildConfig(formData));
|
|
7881
7882
|
} else {
|
|
7882
7883
|
updatedFormdata = buildConfig(formData);
|
|
7883
7884
|
}
|
|
7884
|
-
|
|
7885
|
+
sessionStorage.setItem("pageFormdata", JSON.stringify(updatedFormdata));
|
|
7885
7886
|
return updatedFormdata;
|
|
7886
7887
|
};
|
|
7887
|
-
const
|
|
7888
|
-
const pageFormdata =
|
|
7888
|
+
const getFormdataFromSessionStorage = (path) => {
|
|
7889
|
+
const pageFormdata = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
|
|
7889
7890
|
let returnValue;
|
|
7890
7891
|
if (path) {
|
|
7891
7892
|
returnValue = _.get(pageFormdata, path);
|
|
@@ -7900,8 +7901,8 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
|
7900
7901
|
var _a, _b;
|
|
7901
7902
|
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
7902
7903
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7903
|
-
|
|
7904
|
-
const config = JSON.parse(
|
|
7904
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
7905
|
+
const config = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
7905
7906
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7906
7907
|
try {
|
|
7907
7908
|
const saveReturn = await submitHandler(store2, service2, config);
|
|
@@ -7913,7 +7914,7 @@ async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
|
7913
7914
|
}
|
|
7914
7915
|
const navigateHandler = (store2, isSubmitted, pageName) => {
|
|
7915
7916
|
if (isSubmitted) {
|
|
7916
|
-
|
|
7917
|
+
sessionStorage.removeItem("pageFormdata");
|
|
7917
7918
|
store2.navigate(pageName || -1);
|
|
7918
7919
|
store2.setNotify({
|
|
7919
7920
|
SuccessMessage: "Submit Successfully",
|
|
@@ -7931,7 +7932,7 @@ function okHandler(store2) {
|
|
|
7931
7932
|
var _a;
|
|
7932
7933
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7933
7934
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7934
|
-
|
|
7935
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
7935
7936
|
store2.navigate(-1);
|
|
7936
7937
|
store2.setNotify({
|
|
7937
7938
|
SuccessMessage: "Save Successfully",
|
|
@@ -8008,7 +8009,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8008
8009
|
getFormdata: function() {
|
|
8009
8010
|
var _a;
|
|
8010
8011
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8011
|
-
return
|
|
8012
|
+
return getFormdataFromSessionStorage(path);
|
|
8012
8013
|
},
|
|
8013
8014
|
getSchema: function() {
|
|
8014
8015
|
return ComponentSchema;
|
|
@@ -8026,7 +8027,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8026
8027
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8027
8028
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8028
8029
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8029
|
-
|
|
8030
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8030
8031
|
if (path) {
|
|
8031
8032
|
const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
|
|
8032
8033
|
const finalPath = `${path2}.elements[${rowId}]`;
|
|
@@ -8040,27 +8041,27 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8040
8041
|
deleteComponents: function(shouldUpdateDialog = true) {
|
|
8041
8042
|
var _a;
|
|
8042
8043
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8043
|
-
const rowId =
|
|
8044
|
+
const rowId = sessionStorage.getItem("rowId");
|
|
8044
8045
|
store2.formData.elements.splice(rowId, 1);
|
|
8045
|
-
const response =
|
|
8046
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8046
8047
|
const data = path ? _.get(response, path) : response;
|
|
8047
8048
|
store2.setFormdata(data);
|
|
8048
8049
|
if (shouldUpdateDialog) {
|
|
8049
8050
|
store2.updateDialog("popUpComponentSection");
|
|
8050
8051
|
}
|
|
8051
|
-
|
|
8052
|
+
sessionStorage.removeItem("rowId");
|
|
8052
8053
|
},
|
|
8053
8054
|
deleteEvent: function(shouldUpdateDialog = true) {
|
|
8054
8055
|
var _a;
|
|
8055
8056
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8056
|
-
const rowId =
|
|
8057
|
+
const rowId = sessionStorage.getItem("rowId");
|
|
8057
8058
|
store2.formData.events.splice(rowId, 1);
|
|
8058
|
-
const response =
|
|
8059
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8059
8060
|
store2.setFormdata(_.get(response, path));
|
|
8060
8061
|
if (shouldUpdateDialog) {
|
|
8061
8062
|
store2.updateDialog("popUpEventSection");
|
|
8062
8063
|
}
|
|
8063
|
-
|
|
8064
|
+
sessionStorage.removeItem("rowId");
|
|
8064
8065
|
},
|
|
8065
8066
|
widgetAddClickHandler: function() {
|
|
8066
8067
|
var _a;
|
|
@@ -8068,7 +8069,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8068
8069
|
store2.formData.elements = [];
|
|
8069
8070
|
}
|
|
8070
8071
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8071
|
-
|
|
8072
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8072
8073
|
const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
|
|
8073
8074
|
store2.searchParams.set("path", finalPath);
|
|
8074
8075
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -8079,7 +8080,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8079
8080
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8080
8081
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8081
8082
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
8082
|
-
|
|
8083
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8083
8084
|
const finalPath = `${path}.events[${rowId}]`;
|
|
8084
8085
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8085
8086
|
},
|
|
@@ -8090,7 +8091,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8090
8091
|
if (!Array.isArray(store2.formData.events)) {
|
|
8091
8092
|
store2.formData.events = [];
|
|
8092
8093
|
}
|
|
8093
|
-
|
|
8094
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8094
8095
|
const finalPath = `${path}.events[${store2.formData.events.length}]`;
|
|
8095
8096
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8096
8097
|
},
|
|
@@ -8099,12 +8100,12 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
8099
8100
|
},
|
|
8100
8101
|
deletePopUpComponent: function() {
|
|
8101
8102
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8102
|
-
|
|
8103
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8103
8104
|
store2.updateDialog("popUpComponentSection");
|
|
8104
8105
|
},
|
|
8105
8106
|
deletePopUpEvent: function() {
|
|
8106
8107
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8107
|
-
|
|
8108
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8108
8109
|
store2.updateDialog("popUpEventSection");
|
|
8109
8110
|
}
|
|
8110
8111
|
};
|
|
@@ -8124,11 +8125,11 @@ var pageMaster = (funcParams) => {
|
|
|
8124
8125
|
var _a;
|
|
8125
8126
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8126
8127
|
const config = await funcParams.pageConfigProvider(id);
|
|
8127
|
-
const formData =
|
|
8128
|
+
const formData = getFormdataFromSessionStorage();
|
|
8128
8129
|
if (formData) {
|
|
8129
8130
|
return formData;
|
|
8130
8131
|
}
|
|
8131
|
-
|
|
8132
|
+
saveFormdataInSessionStorage(config);
|
|
8132
8133
|
return config;
|
|
8133
8134
|
},
|
|
8134
8135
|
getUiSchema: function() {
|
|
@@ -8138,7 +8139,7 @@ var pageMaster = (funcParams) => {
|
|
|
8138
8139
|
return PageMasterSchema;
|
|
8139
8140
|
},
|
|
8140
8141
|
backHandler: () => {
|
|
8141
|
-
|
|
8142
|
+
sessionStorage.removeItem("pageFormdata");
|
|
8142
8143
|
store2.navigate("/PageMasterRecords");
|
|
8143
8144
|
},
|
|
8144
8145
|
onAddClickHandler: function() {
|
|
@@ -8147,7 +8148,7 @@ var pageMaster = (funcParams) => {
|
|
|
8147
8148
|
if (!Array.isArray(store2.formData.elements)) {
|
|
8148
8149
|
store2.formData.elements = [];
|
|
8149
8150
|
}
|
|
8150
|
-
const response =
|
|
8151
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8151
8152
|
if (id) {
|
|
8152
8153
|
store2.navigate(
|
|
8153
8154
|
`/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
|
|
@@ -8170,7 +8171,7 @@ var pageMaster = (funcParams) => {
|
|
|
8170
8171
|
if (!Array.isArray(store2.formData.events)) {
|
|
8171
8172
|
store2.formData.events = [];
|
|
8172
8173
|
}
|
|
8173
|
-
|
|
8174
|
+
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8174
8175
|
const finalPath = `events[${store2.formData.events.length}]`;
|
|
8175
8176
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8176
8177
|
},
|
|
@@ -8178,26 +8179,26 @@ var pageMaster = (funcParams) => {
|
|
|
8178
8179
|
var _a;
|
|
8179
8180
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8180
8181
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8181
|
-
|
|
8182
|
+
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8182
8183
|
const finalPath = `events[${rowId}]`;
|
|
8183
8184
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
8184
8185
|
},
|
|
8185
8186
|
deleteEvent: function() {
|
|
8186
|
-
const rowId =
|
|
8187
|
+
const rowId = sessionStorage.getItem("rowId");
|
|
8187
8188
|
store2.formData.events.splice(rowId, 1);
|
|
8188
|
-
const response =
|
|
8189
|
+
const response = saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
8189
8190
|
store2.setFormdata(response);
|
|
8190
8191
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8191
|
-
|
|
8192
|
+
sessionStorage.removeItem("rowId");
|
|
8192
8193
|
},
|
|
8193
8194
|
deletePopUpComponent: function() {
|
|
8194
8195
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8195
|
-
|
|
8196
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8196
8197
|
store2.updateDialog("popUpPageMasterComponent");
|
|
8197
8198
|
},
|
|
8198
8199
|
deletePopUpEvent: function() {
|
|
8199
8200
|
const rowId = dynamicData2.path.split(".")[1];
|
|
8200
|
-
|
|
8201
|
+
sessionStorage.setItem("rowId", rowId);
|
|
8201
8202
|
store2.updateDialog("popUpPageMasterEvent");
|
|
8202
8203
|
}
|
|
8203
8204
|
};
|
|
@@ -9015,7 +9016,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9015
9016
|
if (!Array.isArray(store2.formData.events)) {
|
|
9016
9017
|
store2.formData.events = [];
|
|
9017
9018
|
}
|
|
9018
|
-
|
|
9019
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9019
9020
|
const finalPath = `${path}.events[${(_c = (_b = store2.formData) == null ? void 0 : _b.events) == null ? void 0 : _c.length}]`;
|
|
9020
9021
|
store2.searchParams.set("path", finalPath);
|
|
9021
9022
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -9025,7 +9026,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9025
9026
|
var _a;
|
|
9026
9027
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9027
9028
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9028
|
-
|
|
9029
|
+
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9029
9030
|
const finalPath = `${path}.events[${rowId}]`;
|
|
9030
9031
|
store2.searchParams.set("path", finalPath);
|
|
9031
9032
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -9040,7 +9041,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9040
9041
|
},
|
|
9041
9042
|
deletePopUpEvent: function() {
|
|
9042
9043
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9043
|
-
|
|
9044
|
+
sessionStorage.setItem("rowId", rowId);
|
|
9044
9045
|
store2.updateDialog("popUpEvent");
|
|
9045
9046
|
}
|
|
9046
9047
|
};
|
|
@@ -9212,7 +9213,7 @@ function executeCustomHandler(params) {
|
|
|
9212
9213
|
return response;
|
|
9213
9214
|
}
|
|
9214
9215
|
}
|
|
9215
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2,
|
|
9216
|
+
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9216
9217
|
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9217
9218
|
store2.setSchema((pre) => {
|
|
9218
9219
|
var _a;
|
|
@@ -9256,9 +9257,9 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9256
9257
|
}
|
|
9257
9258
|
} else {
|
|
9258
9259
|
if (handlerResponse) {
|
|
9259
|
-
|
|
9260
|
+
formDataHolder[componentName] = handlerResponse.data;
|
|
9260
9261
|
store2.setFormdata((pre) => {
|
|
9261
|
-
return { ...pre, ...
|
|
9262
|
+
return { ...pre, ...formDataHolder };
|
|
9262
9263
|
});
|
|
9263
9264
|
}
|
|
9264
9265
|
}
|
|
@@ -9279,7 +9280,7 @@ const buildBodyFormat = (body2, formData, userValue2, store2) => {
|
|
|
9279
9280
|
finalBody[elem.key] = value;
|
|
9280
9281
|
} else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
|
|
9281
9282
|
const finalpath = elem.value.substring(7);
|
|
9282
|
-
const value = JSON.parse(
|
|
9283
|
+
const value = JSON.parse(sessionStorage.getItem(finalpath) || '""');
|
|
9283
9284
|
finalBody[elem.key] = value;
|
|
9284
9285
|
} else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
|
|
9285
9286
|
const finalpath = elem.value.substring(1);
|
|
@@ -9348,7 +9349,6 @@ const notifyUiSchema = {
|
|
|
9348
9349
|
},
|
|
9349
9350
|
layout: 6
|
|
9350
9351
|
};
|
|
9351
|
-
let formDataHolder = {};
|
|
9352
9352
|
let pageData = false;
|
|
9353
9353
|
const extractEvents = (eventConfig) => {
|
|
9354
9354
|
function extractsConfigEvents(eventConfigObj) {
|
|
@@ -9391,6 +9391,7 @@ const extractEvents = (eventConfig) => {
|
|
|
9391
9391
|
};
|
|
9392
9392
|
var service = (funcParams) => {
|
|
9393
9393
|
eventGroups = {};
|
|
9394
|
+
const formDataHolder = {};
|
|
9394
9395
|
if (pageData) {
|
|
9395
9396
|
if (!lodash.exports.isEmpty(pageData) && typeof pageData === "object") {
|
|
9396
9397
|
eventGroups = extractEvents(pageData == null ? void 0 : pageData.config);
|
|
@@ -9413,12 +9414,12 @@ var service = (funcParams) => {
|
|
|
9413
9414
|
var _a, _b, _c, _d;
|
|
9414
9415
|
funcParams.store.setFormdata({});
|
|
9415
9416
|
funcParams.store.newData = {};
|
|
9416
|
-
const pageBasicDetailString =
|
|
9417
|
+
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
9417
9418
|
if (pageBasicDetailString) {
|
|
9418
9419
|
pageData = JSON.parse(pageBasicDetailString);
|
|
9419
9420
|
} else {
|
|
9420
9421
|
pageData = await funcParams.pageDataProvider();
|
|
9421
|
-
|
|
9422
|
+
sessionStorage.setItem("pagemasterMetaData", JSON.stringify({
|
|
9422
9423
|
schema: pageData == null ? void 0 : pageData.schema,
|
|
9423
9424
|
uiSchema: pageData == null ? void 0 : pageData.uiSchema,
|
|
9424
9425
|
config: pageData == null ? void 0 : pageData.config
|
|
@@ -10202,7 +10203,6 @@ const LineGraph = {
|
|
|
10202
10203
|
hideBottomAxisLine: false,
|
|
10203
10204
|
legend: {
|
|
10204
10205
|
labelColor: "green",
|
|
10205
|
-
legendTitle: "Our Assests",
|
|
10206
10206
|
direction: "row",
|
|
10207
10207
|
align: "right",
|
|
10208
10208
|
colorRectWidth: 20
|
|
@@ -10235,11 +10235,15 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10235
10235
|
if (config.layout) {
|
|
10236
10236
|
horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
|
|
10237
10237
|
}
|
|
10238
|
+
horizontalBarGraph.config.main.type = config.graphType;
|
|
10238
10239
|
horizontalBarGraph.scope = componentScope;
|
|
10239
10240
|
horizontalBarGraph.config.main.header = config.heading;
|
|
10240
10241
|
if (config.barColor) {
|
|
10241
10242
|
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
10242
10243
|
}
|
|
10244
|
+
if (config.xAxisValue) {
|
|
10245
|
+
horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10246
|
+
}
|
|
10243
10247
|
if (config.containerBackground) {
|
|
10244
10248
|
horizontalBarGraph.config.containerStyle.background = config.containerBackground;
|
|
10245
10249
|
}
|
|
@@ -10371,6 +10375,9 @@ const buildPieGraph = (config, componentScope) => {
|
|
|
10371
10375
|
if (config.legendLabels) {
|
|
10372
10376
|
pieGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
10373
10377
|
}
|
|
10378
|
+
if (config.xAxisValue) {
|
|
10379
|
+
pieGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10380
|
+
}
|
|
10374
10381
|
if (config.pieArcColors) {
|
|
10375
10382
|
pieGraph.config.style = {
|
|
10376
10383
|
pieStyle: {
|
|
@@ -10393,6 +10400,9 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10393
10400
|
if (config.barColor) {
|
|
10394
10401
|
barGraph.config.barStyle.color = config.barColor;
|
|
10395
10402
|
}
|
|
10403
|
+
if (config.xAxisValue) {
|
|
10404
|
+
barGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10405
|
+
}
|
|
10396
10406
|
if (config.height) {
|
|
10397
10407
|
barGraph.config.style.containerStyle.height = config.height;
|
|
10398
10408
|
}
|
|
@@ -11835,6 +11845,7 @@ const buildUiSchema = (config, store2) => {
|
|
|
11835
11845
|
elements = buildPieGraph(config, componentScope);
|
|
11836
11846
|
break;
|
|
11837
11847
|
case "HorizontalBarGraph":
|
|
11848
|
+
case "HorizontalStackBarGraph":
|
|
11838
11849
|
elements = buildHorizontalBarGraph(config, componentScope);
|
|
11839
11850
|
break;
|
|
11840
11851
|
}
|
|
@@ -11938,5 +11949,5 @@ const buildUiSchema = (config, store2) => {
|
|
|
11938
11949
|
}
|
|
11939
11950
|
return elements;
|
|
11940
11951
|
};
|
|
11941
|
-
export { buildConfig, buildSchema, buildUiSchema,
|
|
11952
|
+
export { buildConfig, buildSchema, buildUiSchema, clearFromSessionStorage, pageMaster, Component as pageMasterComponents, event as pageMasterEvents, service as pageService, schema };
|
|
11942
11953
|
//# sourceMappingURL=impaktapps-ui-builder.es.js.map
|