impaktapps-ui-builder 0.0.97-alpha.5 → 0.0.97-alpha.6
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 +24 -40
- 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 +1 -4
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +0 -9
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +0 -9
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +19 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -2
- 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 +48 -47
|
@@ -7534,8 +7534,6 @@ 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"),
|
|
7539
7537
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
7540
7538
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7541
7539
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
@@ -9273,7 +9271,7 @@ function executeCustomHandler(params) {
|
|
|
9273
9271
|
}
|
|
9274
9272
|
}
|
|
9275
9273
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9276
|
-
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)
|
|
9274
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9277
9275
|
store2.setSchema((pre) => {
|
|
9278
9276
|
var _a;
|
|
9279
9277
|
return {
|
|
@@ -9287,7 +9285,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9287
9285
|
}
|
|
9288
9286
|
};
|
|
9289
9287
|
});
|
|
9290
|
-
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)
|
|
9288
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9291
9289
|
store2.setSchema((pre) => {
|
|
9292
9290
|
var _a;
|
|
9293
9291
|
return {
|
|
@@ -9470,7 +9468,7 @@ var service = (funcParams) => {
|
|
|
9470
9468
|
};
|
|
9471
9469
|
return {
|
|
9472
9470
|
setPage: async function() {
|
|
9473
|
-
var _a, _b, _c, _d
|
|
9471
|
+
var _a, _b, _c, _d;
|
|
9474
9472
|
funcParams.store.setFormdata({});
|
|
9475
9473
|
funcParams.store.newData = {};
|
|
9476
9474
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
@@ -9502,6 +9500,7 @@ var service = (funcParams) => {
|
|
|
9502
9500
|
flexDirection: "row",
|
|
9503
9501
|
position: "absolute",
|
|
9504
9502
|
bottom: 0,
|
|
9503
|
+
marginBottom: "-8px",
|
|
9505
9504
|
height: "fit-content",
|
|
9506
9505
|
overflow: "hidden",
|
|
9507
9506
|
zIndex: 1e3,
|
|
@@ -9520,7 +9519,7 @@ var service = (funcParams) => {
|
|
|
9520
9519
|
heading: "Copywriter@ACT21.IO"
|
|
9521
9520
|
},
|
|
9522
9521
|
style: {
|
|
9523
|
-
color: ((
|
|
9522
|
+
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
9524
9523
|
fontSize: "12px",
|
|
9525
9524
|
textAlign: "center",
|
|
9526
9525
|
lineHeight: 2,
|
|
@@ -9530,13 +9529,13 @@ var service = (funcParams) => {
|
|
|
9530
9529
|
margin: 0,
|
|
9531
9530
|
flexGrow: 1,
|
|
9532
9531
|
height: 0,
|
|
9533
|
-
transform: "translate(-50%,
|
|
9532
|
+
transform: "translate(-50%,0%)"
|
|
9534
9533
|
}
|
|
9535
9534
|
}
|
|
9536
9535
|
},
|
|
9537
9536
|
{
|
|
9538
9537
|
type: "Control",
|
|
9539
|
-
scope: "#/properties/
|
|
9538
|
+
scope: "#/properties/backIcon",
|
|
9540
9539
|
options: {
|
|
9541
9540
|
widget: "Box"
|
|
9542
9541
|
},
|
|
@@ -9547,24 +9546,24 @@ var service = (funcParams) => {
|
|
|
9547
9546
|
width: "fit-content"
|
|
9548
9547
|
},
|
|
9549
9548
|
style: {
|
|
9550
|
-
fill:
|
|
9549
|
+
fill: theme.palette.primary.main,
|
|
9551
9550
|
width: 20,
|
|
9552
9551
|
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:
|
|
9560
|
-
}
|
|
9561
|
-
marginRight: "13px"
|
|
9559
|
+
fill: theme.palette.primary.dark
|
|
9560
|
+
}
|
|
9562
9561
|
}
|
|
9563
9562
|
}
|
|
9564
9563
|
},
|
|
9565
9564
|
{
|
|
9566
9565
|
type: "Control",
|
|
9567
|
-
scope: "#/properties/
|
|
9566
|
+
scope: "#/properties/text",
|
|
9568
9567
|
options: {
|
|
9569
9568
|
widget: "Box"
|
|
9570
9569
|
},
|
|
@@ -9579,24 +9578,24 @@ var service = (funcParams) => {
|
|
|
9579
9578
|
lineHeight: 1,
|
|
9580
9579
|
height: 0,
|
|
9581
9580
|
width: "fit-content",
|
|
9582
|
-
color:
|
|
9583
|
-
fontSize: "
|
|
9581
|
+
color: theme.palette.primary.main,
|
|
9582
|
+
fontSize: "12px",
|
|
9584
9583
|
cursor: "pointer",
|
|
9585
9584
|
marginLeft: "2px",
|
|
9585
|
+
marginRight: 0,
|
|
9586
9586
|
top: 3,
|
|
9587
9587
|
right: "12px",
|
|
9588
9588
|
position: "absolute",
|
|
9589
9589
|
":hover": {
|
|
9590
|
-
color:
|
|
9591
|
-
}
|
|
9592
|
-
marginRight: "4px"
|
|
9590
|
+
color: theme.palette.primary.dark
|
|
9591
|
+
}
|
|
9593
9592
|
}
|
|
9594
9593
|
}
|
|
9595
9594
|
}
|
|
9596
9595
|
]
|
|
9597
9596
|
}
|
|
9598
9597
|
);
|
|
9599
|
-
const schema2 = (
|
|
9598
|
+
const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
|
|
9600
9599
|
eventGroups = extractEvents(config);
|
|
9601
9600
|
executeEventsParameters = {
|
|
9602
9601
|
config: {},
|
|
@@ -10225,7 +10224,7 @@ const BarGraph = {
|
|
|
10225
10224
|
config: {
|
|
10226
10225
|
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10227
10226
|
main: {},
|
|
10228
|
-
style: { containerStyle: {}
|
|
10227
|
+
style: { containerStyle: {} }
|
|
10229
10228
|
}
|
|
10230
10229
|
};
|
|
10231
10230
|
const PieGraph = {
|
|
@@ -10288,9 +10287,7 @@ const HorizontalBarGraph = {
|
|
|
10288
10287
|
main: {
|
|
10289
10288
|
type: "HorizontalBarGraph"
|
|
10290
10289
|
},
|
|
10291
|
-
style: {
|
|
10292
|
-
labelStyle: {}
|
|
10293
|
-
}
|
|
10290
|
+
style: {}
|
|
10294
10291
|
}
|
|
10295
10292
|
};
|
|
10296
10293
|
const buildHorizontalBarGraph = (config, componentScope) => {
|
|
@@ -10504,14 +10501,6 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10504
10501
|
if (config.leftLabel) {
|
|
10505
10502
|
barGraph.config.main.leftLabel = config.leftLabel;
|
|
10506
10503
|
}
|
|
10507
|
-
if (config.leftLabelMargin) {
|
|
10508
|
-
barGraph.config.style.labelStyle.margin = {
|
|
10509
|
-
left: config.leftLabelMargin
|
|
10510
|
-
};
|
|
10511
|
-
}
|
|
10512
|
-
if (config.leftLabelOffset) {
|
|
10513
|
-
barGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
|
|
10514
|
-
}
|
|
10515
10504
|
barGraph.scope = componentScope;
|
|
10516
10505
|
return barGraph;
|
|
10517
10506
|
};
|
|
@@ -10864,7 +10853,10 @@ const buildUploadFile = (config, componentScope) => {
|
|
|
10864
10853
|
UploadFile.scope = componentScope;
|
|
10865
10854
|
UploadFile.config.main.label = config.label;
|
|
10866
10855
|
if (config.layout) {
|
|
10867
|
-
UploadFile.config.layout =
|
|
10856
|
+
UploadFile.config.layout = config.layout;
|
|
10857
|
+
}
|
|
10858
|
+
if (config.layout) {
|
|
10859
|
+
uploadFile.config.layout = createLayoutFormat(config.layout);
|
|
10868
10860
|
}
|
|
10869
10861
|
if (config.style) {
|
|
10870
10862
|
UploadFile.config.style = config.style;
|
|
@@ -11372,14 +11364,6 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
11372
11364
|
if (config.pieArcColors) {
|
|
11373
11365
|
lineGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
|
|
11374
11366
|
}
|
|
11375
|
-
if (config.leftLabelMargin) {
|
|
11376
|
-
lineGraph.config.style.labelStyle.margin = {
|
|
11377
|
-
left: config.leftLabelMargin
|
|
11378
|
-
};
|
|
11379
|
-
}
|
|
11380
|
-
if (config.leftLabelOffset) {
|
|
11381
|
-
lineGraph.config.style.labelStyle.leftLabelOffset = config.leftLabelOffset;
|
|
11382
|
-
}
|
|
11383
11367
|
lineGraph.scope = componentScope;
|
|
11384
11368
|
return lineGraph;
|
|
11385
11369
|
};
|