impaktapps-ui-builder 0.0.92 → 0.0.95
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 +26 -15
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +0 -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/buildTextArea.ts +0 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +5 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +4 -1
- package/src/impaktapps-ui-builder/runtime/services/service.ts +3 -2
|
@@ -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
|
},
|
|
@@ -7350,8 +7350,7 @@ const getTextArea = (scope, heading, hideButton, layout) => {
|
|
|
7350
7350
|
main: {
|
|
7351
7351
|
heading,
|
|
7352
7352
|
minRows: 8,
|
|
7353
|
-
hideButton
|
|
7354
|
-
enableCodeEditor: true
|
|
7353
|
+
hideButton
|
|
7355
7354
|
}
|
|
7356
7355
|
}
|
|
7357
7356
|
};
|
|
@@ -7457,8 +7456,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7457
7456
|
case "TextArea":
|
|
7458
7457
|
uiSchema.elements = [
|
|
7459
7458
|
getInputField("placeholder", "Placeholder"),
|
|
7460
|
-
|
|
7461
|
-
|
|
7459
|
+
emptyBox$1("TextAreaEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7460
|
+
emptyBox$1("TextAreaEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7462
7461
|
];
|
|
7463
7462
|
break;
|
|
7464
7463
|
case "SpeedoMeter":
|
|
@@ -7538,7 +7537,8 @@ const buildPropertiesSection = function(type) {
|
|
|
7538
7537
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7539
7538
|
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7540
7539
|
getInputField("xAxisValue", "X-AxisValue"),
|
|
7541
|
-
|
|
7540
|
+
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
7541
|
+
emptyBox$1("GraphEmpty1", { xs: 0, sm: 6, md: 6, lg: 0 }),
|
|
7542
7542
|
getArrayControl("legendLabels", "label"),
|
|
7543
7543
|
getArrayControl("pieArcColors", "color")
|
|
7544
7544
|
];
|
|
@@ -9520,13 +9520,14 @@ var service = (funcParams) => {
|
|
|
9520
9520
|
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
9521
9521
|
fontSize: "12px",
|
|
9522
9522
|
textAlign: "center",
|
|
9523
|
-
lineHeight:
|
|
9523
|
+
lineHeight: 2,
|
|
9524
9524
|
width: "fit-content",
|
|
9525
9525
|
left: "50%",
|
|
9526
9526
|
position: "relative",
|
|
9527
9527
|
margin: 0,
|
|
9528
9528
|
flexGrow: 1,
|
|
9529
|
-
height: 0
|
|
9529
|
+
height: 0,
|
|
9530
|
+
transform: "translate(-50%,0%)"
|
|
9530
9531
|
}
|
|
9531
9532
|
}
|
|
9532
9533
|
},
|
|
@@ -10219,6 +10220,7 @@ const BarGraph = {
|
|
|
10219
10220
|
widget: "Graph"
|
|
10220
10221
|
},
|
|
10221
10222
|
config: {
|
|
10223
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10222
10224
|
main: {},
|
|
10223
10225
|
style: { containerStyle: {} }
|
|
10224
10226
|
}
|
|
@@ -10230,6 +10232,7 @@ const PieGraph = {
|
|
|
10230
10232
|
widget: "Graph"
|
|
10231
10233
|
},
|
|
10232
10234
|
config: {
|
|
10235
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10233
10236
|
main: {
|
|
10234
10237
|
type: "PieGraph"
|
|
10235
10238
|
},
|
|
@@ -10243,7 +10246,7 @@ const LineGraph = {
|
|
|
10243
10246
|
widget: "Graph"
|
|
10244
10247
|
},
|
|
10245
10248
|
config: {
|
|
10246
|
-
layout: 12,
|
|
10249
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10247
10250
|
main: {
|
|
10248
10251
|
type: "LineGraph",
|
|
10249
10252
|
header: "Quartely Incentive in Thousand",
|
|
@@ -10278,6 +10281,7 @@ const HorizontalBarGraph = {
|
|
|
10278
10281
|
widget: "Graph"
|
|
10279
10282
|
},
|
|
10280
10283
|
config: {
|
|
10284
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10281
10285
|
main: {
|
|
10282
10286
|
type: "HorizontalBarGraph"
|
|
10283
10287
|
},
|
|
@@ -10293,6 +10297,12 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10293
10297
|
horizontalBarGraph.config.main.type = config.graphType;
|
|
10294
10298
|
horizontalBarGraph.scope = componentScope;
|
|
10295
10299
|
horizontalBarGraph.config.main.header = config.heading;
|
|
10300
|
+
if (config.legendHide) {
|
|
10301
|
+
horizontalBarGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
10302
|
+
}
|
|
10303
|
+
if (config.bottomAxisAngle) {
|
|
10304
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10305
|
+
}
|
|
10296
10306
|
if (config.barColor) {
|
|
10297
10307
|
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
10298
10308
|
}
|
|
@@ -10449,6 +10459,10 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10449
10459
|
}
|
|
10450
10460
|
if (config.legendHide) {
|
|
10451
10461
|
barGraph.config.main.legendAvailable = config.legendHide;
|
|
10462
|
+
barGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
10463
|
+
}
|
|
10464
|
+
if (config.bottomAxisAngle) {
|
|
10465
|
+
barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10452
10466
|
}
|
|
10453
10467
|
barGraph.config.main.type = config.graphType;
|
|
10454
10468
|
barGraph.config.main.header = config.heading;
|
|
@@ -11229,12 +11243,6 @@ const buildTextArea = (config, componentScope) => {
|
|
|
11229
11243
|
if (config.placeholder) {
|
|
11230
11244
|
textArea.config.main.placeholder = config.placeholder;
|
|
11231
11245
|
}
|
|
11232
|
-
if (config.enableCodeEditor) {
|
|
11233
|
-
textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false;
|
|
11234
|
-
}
|
|
11235
|
-
if (config.codeEditorLanguage) {
|
|
11236
|
-
textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
|
|
11237
|
-
}
|
|
11238
11246
|
textArea.scope = componentScope;
|
|
11239
11247
|
return textArea;
|
|
11240
11248
|
};
|
|
@@ -11309,6 +11317,9 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
11309
11317
|
if (config.legendHide) {
|
|
11310
11318
|
lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
|
|
11311
11319
|
}
|
|
11320
|
+
if (config.bottomAxisAngle) {
|
|
11321
|
+
lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
11322
|
+
}
|
|
11312
11323
|
if (config.legendLabels) {
|
|
11313
11324
|
lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
11314
11325
|
}
|