impaktapps-ui-builder 0.0.92 → 0.0.93
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 +27 -17
- 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/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 +4 -3
|
@@ -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
|
];
|
|
@@ -9482,10 +9482,9 @@ var service = (funcParams) => {
|
|
|
9482
9482
|
}
|
|
9483
9483
|
const config = pageData == null ? void 0 : pageData.config;
|
|
9484
9484
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
9485
|
-
|
|
9485
|
+
new CustomEvent("pageNameChanged", {
|
|
9486
9486
|
detail: { pageName: config.label }
|
|
9487
9487
|
});
|
|
9488
|
-
window.dispatchEvent(event2);
|
|
9489
9488
|
const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
9490
9489
|
uiSchema.elements.push(
|
|
9491
9490
|
{
|
|
@@ -9520,13 +9519,14 @@ var service = (funcParams) => {
|
|
|
9520
9519
|
color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
|
|
9521
9520
|
fontSize: "12px",
|
|
9522
9521
|
textAlign: "center",
|
|
9523
|
-
lineHeight:
|
|
9522
|
+
lineHeight: 2,
|
|
9524
9523
|
width: "fit-content",
|
|
9525
9524
|
left: "50%",
|
|
9526
9525
|
position: "relative",
|
|
9527
9526
|
margin: 0,
|
|
9528
9527
|
flexGrow: 1,
|
|
9529
|
-
height: 0
|
|
9528
|
+
height: 0,
|
|
9529
|
+
transform: "translate(-50%,0%)"
|
|
9530
9530
|
}
|
|
9531
9531
|
}
|
|
9532
9532
|
},
|
|
@@ -10219,6 +10219,7 @@ const BarGraph = {
|
|
|
10219
10219
|
widget: "Graph"
|
|
10220
10220
|
},
|
|
10221
10221
|
config: {
|
|
10222
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10222
10223
|
main: {},
|
|
10223
10224
|
style: { containerStyle: {} }
|
|
10224
10225
|
}
|
|
@@ -10230,6 +10231,7 @@ const PieGraph = {
|
|
|
10230
10231
|
widget: "Graph"
|
|
10231
10232
|
},
|
|
10232
10233
|
config: {
|
|
10234
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10233
10235
|
main: {
|
|
10234
10236
|
type: "PieGraph"
|
|
10235
10237
|
},
|
|
@@ -10243,7 +10245,7 @@ const LineGraph = {
|
|
|
10243
10245
|
widget: "Graph"
|
|
10244
10246
|
},
|
|
10245
10247
|
config: {
|
|
10246
|
-
layout: 12,
|
|
10248
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10247
10249
|
main: {
|
|
10248
10250
|
type: "LineGraph",
|
|
10249
10251
|
header: "Quartely Incentive in Thousand",
|
|
@@ -10278,6 +10280,7 @@ const HorizontalBarGraph = {
|
|
|
10278
10280
|
widget: "Graph"
|
|
10279
10281
|
},
|
|
10280
10282
|
config: {
|
|
10283
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 6 },
|
|
10281
10284
|
main: {
|
|
10282
10285
|
type: "HorizontalBarGraph"
|
|
10283
10286
|
},
|
|
@@ -10293,6 +10296,12 @@ const buildHorizontalBarGraph = (config, componentScope) => {
|
|
|
10293
10296
|
horizontalBarGraph.config.main.type = config.graphType;
|
|
10294
10297
|
horizontalBarGraph.scope = componentScope;
|
|
10295
10298
|
horizontalBarGraph.config.main.header = config.heading;
|
|
10299
|
+
if (config.legendHide) {
|
|
10300
|
+
horizontalBarGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
10301
|
+
}
|
|
10302
|
+
if (config.bottomAxisAngle) {
|
|
10303
|
+
horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10304
|
+
}
|
|
10296
10305
|
if (config.barColor) {
|
|
10297
10306
|
horizontalBarGraph.config.barStyle.color = config.barColor;
|
|
10298
10307
|
}
|
|
@@ -10449,6 +10458,10 @@ const buildStackbarGraph = (config, componentScope) => {
|
|
|
10449
10458
|
}
|
|
10450
10459
|
if (config.legendHide) {
|
|
10451
10460
|
barGraph.config.main.legendAvailable = config.legendHide;
|
|
10461
|
+
barGraph.config.main.legendAvailable = config.legendHide === "YES" ? false : true;
|
|
10462
|
+
}
|
|
10463
|
+
if (config.bottomAxisAngle) {
|
|
10464
|
+
barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
10452
10465
|
}
|
|
10453
10466
|
barGraph.config.main.type = config.graphType;
|
|
10454
10467
|
barGraph.config.main.header = config.heading;
|
|
@@ -11229,12 +11242,6 @@ const buildTextArea = (config, componentScope) => {
|
|
|
11229
11242
|
if (config.placeholder) {
|
|
11230
11243
|
textArea.config.main.placeholder = config.placeholder;
|
|
11231
11244
|
}
|
|
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
11245
|
textArea.scope = componentScope;
|
|
11239
11246
|
return textArea;
|
|
11240
11247
|
};
|
|
@@ -11309,6 +11316,9 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
11309
11316
|
if (config.legendHide) {
|
|
11310
11317
|
lineGraph.config.main.legendAvailabe = config.legendHide === "YES" ? false : true;
|
|
11311
11318
|
}
|
|
11319
|
+
if (config.bottomAxisAngle) {
|
|
11320
|
+
lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
|
|
11321
|
+
}
|
|
11312
11322
|
if (config.legendLabels) {
|
|
11313
11323
|
lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
|
|
11314
11324
|
}
|