impaktapps-ui-builder 0.0.97-alpha.6 → 0.0.97-alpha.7
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 +50 -28
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +11 -11
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +4 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +7 -4
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +15 -3
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +47 -48
|
@@ -7534,6 +7534,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7534
7534
|
getSelectField("graphType", "Graph Type"),
|
|
7535
7535
|
getInputField("leftLabel", "Left Label"),
|
|
7536
7536
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7537
|
+
getInputField("leftLabelMargin", "Left Label Margin"),
|
|
7538
|
+
getInputField("leftLabelOffset", "Left Label Offset"),
|
|
7537
7539
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7538
7540
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7539
7541
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
@@ -9271,7 +9273,7 @@ function executeCustomHandler(params) {
|
|
|
9271
9273
|
}
|
|
9272
9274
|
}
|
|
9273
9275
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9274
|
-
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9276
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9275
9277
|
store2.setSchema((pre) => {
|
|
9276
9278
|
var _a;
|
|
9277
9279
|
return {
|
|
@@ -9285,7 +9287,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9285
9287
|
}
|
|
9286
9288
|
};
|
|
9287
9289
|
});
|
|
9288
|
-
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9290
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data) && !_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9289
9291
|
store2.setSchema((pre) => {
|
|
9290
9292
|
var _a;
|
|
9291
9293
|
return {
|
|
@@ -9468,7 +9470,7 @@ var service = (funcParams) => {
|
|
|
9468
9470
|
};
|
|
9469
9471
|
return {
|
|
9470
9472
|
setPage: async function() {
|
|
9471
|
-
var _a, _b, _c, _d;
|
|
9473
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
9472
9474
|
funcParams.store.setFormdata({});
|
|
9473
9475
|
funcParams.store.newData = {};
|
|
9474
9476
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
@@ -9500,7 +9502,6 @@ var service = (funcParams) => {
|
|
|
9500
9502
|
flexDirection: "row",
|
|
9501
9503
|
position: "absolute",
|
|
9502
9504
|
bottom: 0,
|
|
9503
|
-
marginBottom: "-8px",
|
|
9504
9505
|
height: "fit-content",
|
|
9505
9506
|
overflow: "hidden",
|
|
9506
9507
|
zIndex: 1e3,
|
|
@@ -9519,7 +9520,7 @@ var service = (funcParams) => {
|
|
|
9519
9520
|
heading: "Copywriter@ACT21.IO"
|
|
9520
9521
|
},
|
|
9521
9522
|
style: {
|
|
9522
|
-
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
9523
|
+
color: ((_d = (_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text) == null ? void 0 : _d.disabled) || "#AFAFAF",
|
|
9523
9524
|
fontSize: "12px",
|
|
9524
9525
|
textAlign: "center",
|
|
9525
9526
|
lineHeight: 2,
|
|
@@ -9529,13 +9530,13 @@ var service = (funcParams) => {
|
|
|
9529
9530
|
margin: 0,
|
|
9530
9531
|
flexGrow: 1,
|
|
9531
9532
|
height: 0,
|
|
9532
|
-
transform: "translate(-50%,0%)"
|
|
9533
|
+
transform: "translate(-50%, 0%)"
|
|
9533
9534
|
}
|
|
9534
9535
|
}
|
|
9535
9536
|
},
|
|
9536
9537
|
{
|
|
9537
9538
|
type: "Control",
|
|
9538
|
-
scope: "#/properties/
|
|
9539
|
+
scope: "#/properties/FooterBackIcon",
|
|
9539
9540
|
options: {
|
|
9540
9541
|
widget: "Box"
|
|
9541
9542
|
},
|
|
@@ -9546,24 +9547,24 @@ var service = (funcParams) => {
|
|
|
9546
9547
|
width: "fit-content"
|
|
9547
9548
|
},
|
|
9548
9549
|
style: {
|
|
9549
|
-
fill: theme.palette.primary.main,
|
|
9550
|
+
fill: (_f = (_e = theme == null ? void 0 : theme.palette) == null ? void 0 : _e.primary) == null ? void 0 : _f.main,
|
|
9550
9551
|
width: 20,
|
|
9551
9552
|
height: 0,
|
|
9552
|
-
margin: 0,
|
|
9553
9553
|
top: 0,
|
|
9554
9554
|
right: { xs: "12px", sm: "84px" },
|
|
9555
9555
|
position: "absolute",
|
|
9556
9556
|
fontSize: "12px",
|
|
9557
9557
|
cursor: "pointer",
|
|
9558
9558
|
":hover": {
|
|
9559
|
-
fill: theme.palette.primary.dark
|
|
9560
|
-
}
|
|
9559
|
+
fill: (_h = (_g = theme == null ? void 0 : theme.palette) == null ? void 0 : _g.primary) == null ? void 0 : _h.dark
|
|
9560
|
+
},
|
|
9561
|
+
marginRight: "13px"
|
|
9561
9562
|
}
|
|
9562
9563
|
}
|
|
9563
9564
|
},
|
|
9564
9565
|
{
|
|
9565
9566
|
type: "Control",
|
|
9566
|
-
scope: "#/properties/
|
|
9567
|
+
scope: "#/properties/FooterBackHandlerText",
|
|
9567
9568
|
options: {
|
|
9568
9569
|
widget: "Box"
|
|
9569
9570
|
},
|
|
@@ -9578,24 +9579,24 @@ var service = (funcParams) => {
|
|
|
9578
9579
|
lineHeight: 1,
|
|
9579
9580
|
height: 0,
|
|
9580
9581
|
width: "fit-content",
|
|
9581
|
-
color: theme.palette.primary.main,
|
|
9582
|
-
fontSize: "
|
|
9582
|
+
color: (_j = (_i = theme == null ? void 0 : theme.palette) == null ? void 0 : _i.primary) == null ? void 0 : _j.main,
|
|
9583
|
+
fontSize: "14px",
|
|
9583
9584
|
cursor: "pointer",
|
|
9584
9585
|
marginLeft: "2px",
|
|
9585
|
-
marginRight: 0,
|
|
9586
9586
|
top: 3,
|
|
9587
9587
|
right: "12px",
|
|
9588
9588
|
position: "absolute",
|
|
9589
9589
|
":hover": {
|
|
9590
|
-
color: theme.palette.primary.dark
|
|
9591
|
-
}
|
|
9590
|
+
color: (_l = (_k = theme == null ? void 0 : theme.palette) == null ? void 0 : _k.primary) == null ? void 0 : _l.dark
|
|
9591
|
+
},
|
|
9592
|
+
marginRight: "4px"
|
|
9592
9593
|
}
|
|
9593
9594
|
}
|
|
9594
9595
|
}
|
|
9595
9596
|
]
|
|
9596
9597
|
}
|
|
9597
9598
|
);
|
|
9598
|
-
const schema2 = (
|
|
9599
|
+
const schema2 = (_m = pageData == null ? void 0 : pageData.schema) != null ? _m : { type: "object", properties: {} };
|
|
9599
9600
|
eventGroups = extractEvents(config);
|
|
9600
9601
|
executeEventsParameters = {
|
|
9601
9602
|
config: {},
|
|
@@ -10224,7 +10225,7 @@ const BarGraph = {
|
|
|
10224
10225
|
config: {
|
|
10225
10226
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10226
10227
|
main: {},
|
|
10227
|
-
style: { containerStyle: {} }
|
|
10228
|
+
style: { containerStyle: {}, labelStyle: {} }
|
|
10228
10229
|
}
|
|
10229
10230
|
};
|
|
10230
10231
|
const PieGraph = {
|
|
@@ -10287,7 +10288,9 @@ const HorizontalBarGraph = {
|
|
|
10287
10288
|
main: {
|
|
10288
10289
|
type: "HorizontalBarGraph"
|
|
10289
10290
|
},
|
|
10290
|
-
style: {
|
|
10291
|
+
style: {
|
|
10292
|
+
labelStyle: {}
|
|
10293
|
+
}
|
|
10291
10294
|
}
|
|
10292
10295
|
};
|
|
10293
10296
|
const buildHorizontalBarGraph = (config, componentScope) => {
|
|
@@ -10305,8 +10308,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10305
10308
|
if (config.bottomAxisAngle) {
|
|
10306
10309
|
horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10307
10310
|
}
|
|
10308
|
-
if (config.
|
|
10309
|
-
horizontalBarGraph.config.
|
|
10311
|
+
if (config.legendLabels) {
|
|
10312
|
+
horizontalBarGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
10313
|
+
}
|
|
10314
|
+
if (config.pieArcColors) {
|
|
10315
|
+
horizontalBarGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
10310
10316
|
}
|
|
10311
10317
|
if (config.xAxisValue) {
|
|
10312
10318
|
horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
|
|
@@ -10477,8 +10483,11 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10477
10483
|
}
|
|
10478
10484
|
barGraph.config.main.type = config.graphType;
|
|
10479
10485
|
barGraph.config.main.header = config.heading;
|
|
10480
|
-
if (config.
|
|
10481
|
-
barGraph.config.
|
|
10486
|
+
if (config.legendLabels) {
|
|
10487
|
+
barGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
10488
|
+
}
|
|
10489
|
+
if (config.pieArcColors) {
|
|
10490
|
+
barGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
10482
10491
|
}
|
|
10483
10492
|
if (config.xAxisValue) {
|
|
10484
10493
|
barGraph.config.main.xAxisValue = config.xAxisValue;
|
|
@@ -10501,6 +10510,14 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10501
10510
|
if (config.leftLabel) {
|
|
10502
10511
|
barGraph.config.main.leftLabel = config.leftLabel;
|
|
10503
10512
|
}
|
|
10513
|
+
if (config.leftLabelMargin) {
|
|
10514
|
+
barGraph.config.style.labelStyle.margin = {
|
|
10515
|
+
left: config.leftLabelMargin
|
|
10516
|
+
};
|
|
10517
|
+
}
|
|
10518
|
+
if (config.leftLabelOffset) {
|
|
10519
|
+
barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
|
|
10520
|
+
}
|
|
10504
10521
|
barGraph.scope = componentScope;
|
|
10505
10522
|
return barGraph;
|
|
10506
10523
|
};
|
|
@@ -10853,10 +10870,7 @@ const buildUploadFile = (config, componentScope) => {
|
|
|
10853
10870
|
UploadFile.scope = componentScope;
|
|
10854
10871
|
UploadFile.config.main.label = config.label;
|
|
10855
10872
|
if (config.layout) {
|
|
10856
|
-
UploadFile.config.layout = config.layout;
|
|
10857
|
-
}
|
|
10858
|
-
if (config.layout) {
|
|
10859
|
-
uploadFile.config.layout = createLayoutFormat(config.layout);
|
|
10873
|
+
UploadFile.config.layout = createLayoutFormat(config.layout);
|
|
10860
10874
|
}
|
|
10861
10875
|
if (config.style) {
|
|
10862
10876
|
UploadFile.config.style = config.style;
|
|
@@ -11364,6 +11378,14 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
11364
11378
|
if (config.pieArcColors) {
|
|
11365
11379
|
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
11366
11380
|
}
|
|
11381
|
+
if (config.leftLabelMargin) {
|
|
11382
|
+
lineGraph.config.style.labelStyle.margin = {
|
|
11383
|
+
left: config.leftLabelMargin
|
|
11384
|
+
};
|
|
11385
|
+
}
|
|
11386
|
+
if (config.leftLabelOffset) {
|
|
11387
|
+
lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
|
|
11388
|
+
}
|
|
11367
11389
|
lineGraph.scope = componentScope;
|
|
11368
11390
|
return lineGraph;
|
|
11369
11391
|
};
|