impaktapps-ui-builder 1.0.307-test.2 → 1.0.308
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 +6 -88
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -25
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +0 -4
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +3 -6
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -16
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +0 -66
|
@@ -6656,8 +6656,7 @@ const ComponentSchema = {
|
|
|
6656
6656
|
title: "Stack Horizontal Bar Graph",
|
|
6657
6657
|
const: "HorizontalStackBarGraph"
|
|
6658
6658
|
},
|
|
6659
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6660
|
-
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6659
|
+
{ title: "Area Graph", const: "AreaGraph" }
|
|
6661
6660
|
]
|
|
6662
6661
|
},
|
|
6663
6662
|
iconName: {
|
|
@@ -8191,7 +8190,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8191
8190
|
getInputField("subHeader", "Sub Header"),
|
|
8192
8191
|
getSelectField("graphType", "Graph Type"),
|
|
8193
8192
|
getInputField("leftLabel", "Left Label"),
|
|
8194
|
-
getInputField("rightLabel", "Right Label"),
|
|
8195
8193
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8196
8194
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8197
8195
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
@@ -8202,7 +8200,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8202
8200
|
getSelectField("xAxisType", "X-AxisType"),
|
|
8203
8201
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8204
8202
|
getInputField("leftMargin", "Left Margin"),
|
|
8205
|
-
getInputField("
|
|
8203
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8206
8204
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8207
8205
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8208
8206
|
emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
@@ -8219,9 +8217,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8219
8217
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8220
8218
|
getInputField("columnSpacing", "Column Spacing"),
|
|
8221
8219
|
getInputField("spacing", "Spacing"),
|
|
8222
|
-
|
|
8223
|
-
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8224
|
-
emptyBox$1("WrapperSectionEmpty2")
|
|
8220
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
|
|
8225
8221
|
];
|
|
8226
8222
|
break;
|
|
8227
8223
|
case "TabSection":
|
|
@@ -10303,7 +10299,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10303
10299
|
false
|
|
10304
10300
|
);
|
|
10305
10301
|
if (!(formdata == null ? void 0 : formdata.eventCode)) {
|
|
10306
|
-
store22.setFormdata((prev) => ({ ...prev, eventCode: "async (store, dynamicData, user, parentEventOutput, service) => {\n\n\n}" }));
|
|
10302
|
+
store22.setFormdata((prev) => ({ ...prev, eventCode: "async (store, dynamicData, user, parentEventOutput, service, componentName) => {\n\n\n}" }));
|
|
10307
10303
|
}
|
|
10308
10304
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
10309
10305
|
} else if (handlerType === "api") {
|
|
@@ -11331,21 +11327,6 @@ const AreaBarGraph = {
|
|
|
11331
11327
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11332
11328
|
}
|
|
11333
11329
|
};
|
|
11334
|
-
const StackBarLineG = {
|
|
11335
|
-
type: "Control",
|
|
11336
|
-
scope: "#/properties/graph",
|
|
11337
|
-
options: {
|
|
11338
|
-
widget: "Graph"
|
|
11339
|
-
},
|
|
11340
|
-
config: {
|
|
11341
|
-
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11342
|
-
main: {
|
|
11343
|
-
type: "StackBarLineGraph",
|
|
11344
|
-
legendLabels: null
|
|
11345
|
-
},
|
|
11346
|
-
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11347
|
-
}
|
|
11348
|
-
};
|
|
11349
11330
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11350
11331
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11351
11332
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11630,7 +11611,6 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11630
11611
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11631
11612
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11632
11613
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11633
|
-
wrapper.config.main.icon = config2.iconUrl;
|
|
11634
11614
|
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11635
11615
|
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11636
11616
|
wrapper.config.main.spacing = Number(config2.spacing);
|
|
@@ -13114,8 +13094,8 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13114
13094
|
if (config2.xAxisFormatType) {
|
|
13115
13095
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
13116
13096
|
}
|
|
13117
|
-
if (config2.
|
|
13118
|
-
AreaGraph.config.main.
|
|
13097
|
+
if (config2.xAxisTickCount) {
|
|
13098
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
13119
13099
|
}
|
|
13120
13100
|
if (config2.yAxisTickCount) {
|
|
13121
13101
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
@@ -13142,65 +13122,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
13142
13122
|
}
|
|
13143
13123
|
return AreaGraph;
|
|
13144
13124
|
};
|
|
13145
|
-
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
13146
|
-
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
13147
|
-
StackBarLineGraph.scope = componentScope2;
|
|
13148
|
-
if (config2.layout) {
|
|
13149
|
-
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
13150
|
-
}
|
|
13151
|
-
StackBarLineGraph.config.main.type = config2.graphType;
|
|
13152
|
-
StackBarLineGraph.scope = componentScope2;
|
|
13153
|
-
StackBarLineGraph.config.main.header = config2.heading;
|
|
13154
|
-
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
13155
|
-
if (config2.legendHide) {
|
|
13156
|
-
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13157
|
-
}
|
|
13158
|
-
if (config2.bottomAxisAngle) {
|
|
13159
|
-
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13160
|
-
}
|
|
13161
|
-
if (config2.legendLabels) {
|
|
13162
|
-
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13163
|
-
}
|
|
13164
|
-
if (config2.legendDirection) {
|
|
13165
|
-
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13166
|
-
}
|
|
13167
|
-
if (config2.height) {
|
|
13168
|
-
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13169
|
-
}
|
|
13170
|
-
if (config2.pieArcColors) {
|
|
13171
|
-
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13172
|
-
}
|
|
13173
|
-
if (config2.xAxisLabelMinWidth) {
|
|
13174
|
-
StackBarLineGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
|
|
13175
|
-
}
|
|
13176
|
-
if (config2.yAxisTickCount) {
|
|
13177
|
-
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13178
|
-
}
|
|
13179
|
-
if (config2.xAxisValue) {
|
|
13180
|
-
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13181
|
-
}
|
|
13182
|
-
if (config2.xAxisType) {
|
|
13183
|
-
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13184
|
-
}
|
|
13185
|
-
if (config2.bottomLabel) {
|
|
13186
|
-
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13187
|
-
}
|
|
13188
|
-
if (config2.leftLabel) {
|
|
13189
|
-
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13190
|
-
}
|
|
13191
|
-
if (config2.rightLabel) {
|
|
13192
|
-
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13193
|
-
}
|
|
13194
|
-
if (config2.disableLeftLabel) {
|
|
13195
|
-
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13196
|
-
}
|
|
13197
|
-
if (config2.leftMargin) {
|
|
13198
|
-
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13199
|
-
left: config2.leftMargin
|
|
13200
|
-
};
|
|
13201
|
-
}
|
|
13202
|
-
return StackBarLineGraph;
|
|
13203
|
-
};
|
|
13204
13125
|
const cameraUiSchema = {
|
|
13205
13126
|
type: "Control",
|
|
13206
13127
|
scope: "#/properties/camera",
|
|
@@ -13536,9 +13457,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13536
13457
|
case "AreaGraph":
|
|
13537
13458
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13538
13459
|
break;
|
|
13539
|
-
case "StackBarLineGraph":
|
|
13540
|
-
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13541
|
-
break;
|
|
13542
13460
|
default:
|
|
13543
13461
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13544
13462
|
break;
|