impaktapps-ui-builder 0.0.88 → 0.0.89-graphTest.1
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 +25 -10
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +12 -12
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +24 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +4 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +2 -2
- package/src/impaktapps-ui-builder/runtime/services/service.ts +4 -4
|
@@ -7321,7 +7321,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7321
7321
|
width: "108%"
|
|
7322
7322
|
},
|
|
7323
7323
|
componentsBoxStyle: {
|
|
7324
|
-
marginLeft: "
|
|
7324
|
+
marginLeft: "12px"
|
|
7325
7325
|
},
|
|
7326
7326
|
defaultStyle: true
|
|
7327
7327
|
},
|
|
@@ -7537,7 +7537,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7537
7537
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7538
7538
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7539
7539
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7540
|
-
|
|
7540
|
+
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7541
7541
|
getArrayControl("legendLabels", "label"),
|
|
7542
7542
|
getArrayControl("pieArcColors", "color")
|
|
7543
7543
|
];
|
|
@@ -9268,7 +9268,7 @@ function executeCustomHandler(params) {
|
|
|
9268
9268
|
}
|
|
9269
9269
|
}
|
|
9270
9270
|
function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
|
|
9271
|
-
if (eventConfig.type === "Select" &&
|
|
9271
|
+
if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9272
9272
|
store2.setSchema((pre) => {
|
|
9273
9273
|
var _a;
|
|
9274
9274
|
return {
|
|
@@ -9282,7 +9282,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
9282
9282
|
}
|
|
9283
9283
|
};
|
|
9284
9284
|
});
|
|
9285
|
-
} else if (eventConfig.type === "MultipleSelect" &&
|
|
9285
|
+
} else if (eventConfig.type === "MultipleSelect" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
9286
9286
|
store2.setSchema((pre) => {
|
|
9287
9287
|
var _a;
|
|
9288
9288
|
return {
|
|
@@ -9481,10 +9481,9 @@ var service = (funcParams) => {
|
|
|
9481
9481
|
}
|
|
9482
9482
|
const config = pageData == null ? void 0 : pageData.config;
|
|
9483
9483
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
9484
|
-
|
|
9484
|
+
new CustomEvent("pageNameChanged", {
|
|
9485
9485
|
detail: { pageName: config.label }
|
|
9486
9486
|
});
|
|
9487
|
-
window.dispatchEvent(event2);
|
|
9488
9487
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
9489
9488
|
uiSchema.elements.push(
|
|
9490
9489
|
{
|
|
@@ -9519,13 +9518,14 @@ var service = (funcParams) => {
|
|
|
9519
9518
|
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
9520
9519
|
fontSize: "12px",
|
|
9521
9520
|
textAlign: "center",
|
|
9522
|
-
lineHeight:
|
|
9521
|
+
lineHeight: 2,
|
|
9523
9522
|
width: "fit-content",
|
|
9524
9523
|
left: "50%",
|
|
9525
9524
|
position: "relative",
|
|
9526
9525
|
margin: 0,
|
|
9527
9526
|
flexGrow: 1,
|
|
9528
|
-
height: 0
|
|
9527
|
+
height: 0,
|
|
9528
|
+
transform: "translate(-50%,0%)"
|
|
9529
9529
|
}
|
|
9530
9530
|
}
|
|
9531
9531
|
},
|
|
@@ -9592,7 +9592,6 @@ var service = (funcParams) => {
|
|
|
9592
9592
|
}
|
|
9593
9593
|
);
|
|
9594
9594
|
const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
|
|
9595
|
-
eventGroups = {};
|
|
9596
9595
|
eventGroups = extractEvents(config);
|
|
9597
9596
|
executeEventsParameters = {
|
|
9598
9597
|
config: {},
|
|
@@ -10219,6 +10218,7 @@ const BarGraph = {
|
|
|
10219
10218
|
widget: "Graph"
|
|
10220
10219
|
},
|
|
10221
10220
|
config: {
|
|
10221
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10222
10222
|
main: {},
|
|
10223
10223
|
style: { containerStyle: {} }
|
|
10224
10224
|
}
|
|
@@ -10230,6 +10230,7 @@ const PieGraph = {
|
|
|
10230
10230
|
widget: "Graph"
|
|
10231
10231
|
},
|
|
10232
10232
|
config: {
|
|
10233
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10233
10234
|
main: {
|
|
10234
10235
|
type: "PieGraph"
|
|
10235
10236
|
},
|
|
@@ -10243,7 +10244,7 @@ const LineGraph = {
|
|
|
10243
10244
|
widget: "Graph"
|
|
10244
10245
|
},
|
|
10245
10246
|
config: {
|
|
10246
|
-
layout: 12,
|
|
10247
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10247
10248
|
main: {
|
|
10248
10249
|
type: "LineGraph",
|
|
10249
10250
|
header: "Quartely Incentive in Thousand",
|
|
@@ -10278,6 +10279,7 @@ const HorizontalBarGraph = {
|
|
|
10278
10279
|
widget: "Graph"
|
|
10279
10280
|
},
|
|
10280
10281
|
config: {
|
|
10282
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10281
10283
|
main: {
|
|
10282
10284
|
type: "HorizontalBarGraph"
|
|
10283
10285
|
},
|
|
@@ -10293,6 +10295,12 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10293
10295
|
horizontalBarGraph.config.main.type = config.graphType;
|
|
10294
10296
|
horizontalBarGraph.scope = componentScope;
|
|
10295
10297
|
horizontalBarGraph.config.main.header = config.heading;
|
|
10298
|
+
if (config.legendHide) {
|
|
10299
|
+
horizontalBarGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
10300
|
+
}
|
|
10301
|
+
if (config.bottomAxisAngle) {
|
|
10302
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10303
|
+
}
|
|
10296
10304
|
if (config.barColor) {
|
|
10297
10305
|
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
10298
10306
|
}
|
|
@@ -10449,6 +10457,10 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10449
10457
|
}
|
|
10450
10458
|
if (config.legendHide) {
|
|
10451
10459
|
barGraph.config.main.legendAvailable = config.legendHide;
|
|
10460
|
+
barGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
10461
|
+
}
|
|
10462
|
+
if (config.bottomAxisAngle) {
|
|
10463
|
+
barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10452
10464
|
}
|
|
10453
10465
|
barGraph.config.main.type = config.graphType;
|
|
10454
10466
|
barGraph.config.main.header = config.heading;
|
|
@@ -11303,6 +11315,9 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
11303
11315
|
if (config.legendHide) {
|
|
11304
11316
|
lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
|
|
11305
11317
|
}
|
|
11318
|
+
if (config.bottomAxisAngle) {
|
|
11319
|
+
lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
11320
|
+
}
|
|
11306
11321
|
if (config.legendLabels) {
|
|
11307
11322
|
lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
11308
11323
|
}
|