impaktapps-ui-builder 1.0.277 → 1.0.280
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 +81 -87
- 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/buildHierarchyChart.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -25
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +2 -2
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +38 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -4
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +20 -7
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +8 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +7 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +0 -2
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +0 -66
|
@@ -6256,6 +6256,7 @@ const ComponentSchema = {
|
|
|
6256
6256
|
{ title: "Rank", const: "Rank" },
|
|
6257
6257
|
{ title: "Rank Card", const: "RankCard" },
|
|
6258
6258
|
{ title: "Metric Card", const: "MetricCard" },
|
|
6259
|
+
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
6259
6260
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6260
6261
|
{ title: "Table", const: "Table" },
|
|
6261
6262
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -6318,6 +6319,13 @@ const ComponentSchema = {
|
|
|
6318
6319
|
{ title: "Standard", const: "standard" }
|
|
6319
6320
|
]
|
|
6320
6321
|
},
|
|
6322
|
+
linkType: {
|
|
6323
|
+
oneOf: [
|
|
6324
|
+
{ title: "Step", const: "step" },
|
|
6325
|
+
{ title: "Diagonal", const: "diagonal" },
|
|
6326
|
+
{ title: "Line", const: "line" }
|
|
6327
|
+
]
|
|
6328
|
+
},
|
|
6321
6329
|
positionVertical: {
|
|
6322
6330
|
oneOf: [
|
|
6323
6331
|
{ title: "Top", const: "top" },
|
|
@@ -6640,8 +6648,7 @@ const ComponentSchema = {
|
|
|
6640
6648
|
title: "Stack Horizontal Bar Graph",
|
|
6641
6649
|
const: "HorizontalStackBarGraph"
|
|
6642
6650
|
},
|
|
6643
|
-
{ title: "Area Graph", const: "AreaGraph" }
|
|
6644
|
-
{ title: "StackBar And Line Graph", const: "StackBarLineGraph" }
|
|
6651
|
+
{ title: "Area Graph", const: "AreaGraph" }
|
|
6645
6652
|
]
|
|
6646
6653
|
},
|
|
6647
6654
|
iconName: {
|
|
@@ -8129,6 +8136,18 @@ const buildPropertiesSection = function(type) {
|
|
|
8129
8136
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
8130
8137
|
];
|
|
8131
8138
|
break;
|
|
8139
|
+
case "HierarchyChart":
|
|
8140
|
+
uiSchema.elements = [
|
|
8141
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8142
|
+
getSelectField("linkType", "Link Type"),
|
|
8143
|
+
getInputField("nodeWidth", "Node Width"),
|
|
8144
|
+
getInputField("nodeHeight", "Node Height"),
|
|
8145
|
+
getRadioInputField("isExpandAll", "Expand All", ["YES", "NO"]),
|
|
8146
|
+
getInputField("chartHeight", "Chart Height"),
|
|
8147
|
+
getInputField("stepPercent", "Link Bend Position"),
|
|
8148
|
+
emptyBox$1("HierarchyChart", { xs: 6, sm: 6, md: 0, lg: 3 })
|
|
8149
|
+
];
|
|
8150
|
+
break;
|
|
8132
8151
|
case "MetricCard":
|
|
8133
8152
|
uiSchema.elements = [
|
|
8134
8153
|
getInputField("url", "Image Url"),
|
|
@@ -8137,7 +8156,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8137
8156
|
getInputField("description", "Description"),
|
|
8138
8157
|
getSelectField("growthRate", "Growth Rate"),
|
|
8139
8158
|
getInputField("color", "Card Color"),
|
|
8140
|
-
emptyBox$1("MetricEmpty1", { xs: 6, sm:
|
|
8159
|
+
emptyBox$1("MetricEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 })
|
|
8141
8160
|
];
|
|
8142
8161
|
break;
|
|
8143
8162
|
case "Button":
|
|
@@ -8171,7 +8190,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8171
8190
|
getInputField("subHeader", "Sub Header"),
|
|
8172
8191
|
getSelectField("graphType", "Graph Type"),
|
|
8173
8192
|
getInputField("leftLabel", "Left Label"),
|
|
8174
|
-
getInputField("rightLabel", "Right Label"),
|
|
8175
8193
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
8176
8194
|
getInputField("bottomLabel", "Bottom Label"),
|
|
8177
8195
|
emptyBox$1("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
@@ -8182,7 +8200,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8182
8200
|
getSelectField("xAxisType", "X-AxisType"),
|
|
8183
8201
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
8184
8202
|
getInputField("leftMargin", "Left Margin"),
|
|
8185
|
-
getInputField("
|
|
8203
|
+
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
8186
8204
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8187
8205
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8188
8206
|
emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
@@ -8197,8 +8215,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8197
8215
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8198
8216
|
getInputField("rowSpacing", "Row Spacing"),
|
|
8199
8217
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8200
|
-
|
|
8201
|
-
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8218
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 4 }),
|
|
8202
8219
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8203
8220
|
];
|
|
8204
8221
|
break;
|
|
@@ -8831,6 +8848,7 @@ const sectionLabels = {
|
|
|
8831
8848
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8832
8849
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8833
8850
|
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8851
|
+
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8834
8852
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8835
8853
|
Timer: ["Core", "Events", "Style"],
|
|
8836
8854
|
Rank: ["Core", "Events", "Style"],
|
|
@@ -10875,6 +10893,13 @@ var service = (funcParams) => {
|
|
|
10875
10893
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10876
10894
|
return response == null ? void 0 : response.data;
|
|
10877
10895
|
},
|
|
10896
|
+
onNodeExpandChange: async function(param) {
|
|
10897
|
+
const apiBody = [
|
|
10898
|
+
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
10899
|
+
];
|
|
10900
|
+
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10901
|
+
return response == null ? void 0 : response.data;
|
|
10902
|
+
},
|
|
10878
10903
|
getSelectOptions: async function(param) {
|
|
10879
10904
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10880
10905
|
const apiBody = [
|
|
@@ -11189,21 +11214,6 @@ const AreaBarGraph = {
|
|
|
11189
11214
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11190
11215
|
}
|
|
11191
11216
|
};
|
|
11192
|
-
const StackBarLineG = {
|
|
11193
|
-
type: "Control",
|
|
11194
|
-
scope: "#/properties/graph",
|
|
11195
|
-
options: {
|
|
11196
|
-
widget: "Graph"
|
|
11197
|
-
},
|
|
11198
|
-
config: {
|
|
11199
|
-
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
11200
|
-
main: {
|
|
11201
|
-
type: "StackBarLineGraph",
|
|
11202
|
-
legendLabels: null
|
|
11203
|
-
},
|
|
11204
|
-
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11205
|
-
}
|
|
11206
|
-
};
|
|
11207
11217
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11208
11218
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11209
11219
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11486,7 +11496,6 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11486
11496
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11487
11497
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11488
11498
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11489
|
-
wrapper.config.main.icon = config2.iconUrl;
|
|
11490
11499
|
if (config2.defaultStyle) {
|
|
11491
11500
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11492
11501
|
}
|
|
@@ -12958,8 +12967,8 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12958
12967
|
if (config2.xAxisFormatType) {
|
|
12959
12968
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
12960
12969
|
}
|
|
12961
|
-
if (config2.
|
|
12962
|
-
AreaGraph.config.main.
|
|
12970
|
+
if (config2.xAxisTickCount) {
|
|
12971
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
12963
12972
|
}
|
|
12964
12973
|
if (config2.yAxisTickCount) {
|
|
12965
12974
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
@@ -12986,65 +12995,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12986
12995
|
}
|
|
12987
12996
|
return AreaGraph;
|
|
12988
12997
|
};
|
|
12989
|
-
const buildStackBarLineGraph = (config2, componentScope2) => {
|
|
12990
|
-
const StackBarLineGraph = _.cloneDeep(StackBarLineG);
|
|
12991
|
-
StackBarLineGraph.scope = componentScope2;
|
|
12992
|
-
if (config2.layout) {
|
|
12993
|
-
StackBarLineGraph.config.layout = createLayoutFormat(config2.layout, config2.type);
|
|
12994
|
-
}
|
|
12995
|
-
StackBarLineGraph.config.main.type = config2.graphType;
|
|
12996
|
-
StackBarLineGraph.scope = componentScope2;
|
|
12997
|
-
StackBarLineGraph.config.main.header = config2.heading;
|
|
12998
|
-
StackBarLineGraph.config.main.subHeader = config2.subHeader;
|
|
12999
|
-
if (config2.legendHide) {
|
|
13000
|
-
StackBarLineGraph.config.main.legendAvailable = config2.legendHide === "YES" ? false : true;
|
|
13001
|
-
}
|
|
13002
|
-
if (config2.bottomAxisAngle) {
|
|
13003
|
-
StackBarLineGraph.config.main.bottomAxisAngle = config2.bottomAxisAngle === "YES" ? true : false;
|
|
13004
|
-
}
|
|
13005
|
-
if (config2.legendLabels) {
|
|
13006
|
-
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config2.legendLabels);
|
|
13007
|
-
}
|
|
13008
|
-
if (config2.legendDirection) {
|
|
13009
|
-
StackBarLineGraph.config.main.legendDirection = config2.legendDirection === "Row" ? "row" : "column";
|
|
13010
|
-
}
|
|
13011
|
-
if (config2.height) {
|
|
13012
|
-
StackBarLineGraph.config.style.containerStyle.height = config2.height;
|
|
13013
|
-
}
|
|
13014
|
-
if (config2.pieArcColors) {
|
|
13015
|
-
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config2.pieArcColors);
|
|
13016
|
-
}
|
|
13017
|
-
if (config2.xAxisLabelMinWidth) {
|
|
13018
|
-
StackBarLineGraph.config.main.xAxisLabelMinWidth = config2.xAxisLabelMinWidth;
|
|
13019
|
-
}
|
|
13020
|
-
if (config2.yAxisTickCount) {
|
|
13021
|
-
StackBarLineGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
13022
|
-
}
|
|
13023
|
-
if (config2.xAxisValue) {
|
|
13024
|
-
StackBarLineGraph.config.main.xAxisValue = config2.xAxisValue;
|
|
13025
|
-
}
|
|
13026
|
-
if (config2.xAxisType) {
|
|
13027
|
-
StackBarLineGraph.config.main.xAxisType = config2.xAxisType;
|
|
13028
|
-
}
|
|
13029
|
-
if (config2.bottomLabel) {
|
|
13030
|
-
StackBarLineGraph.config.main.bottomLabel = config2.bottomLabel;
|
|
13031
|
-
}
|
|
13032
|
-
if (config2.leftLabel) {
|
|
13033
|
-
StackBarLineGraph.config.main.leftLabel = config2.leftLabel;
|
|
13034
|
-
}
|
|
13035
|
-
if (config2.rightLabel) {
|
|
13036
|
-
StackBarLineGraph.config.main.rightLabel = config2.rightLabel;
|
|
13037
|
-
}
|
|
13038
|
-
if (config2.disableLeftLabel) {
|
|
13039
|
-
StackBarLineGraph.config.main.disableLeftLabel = config2.disableLeftLabel === "YES" ? true : false;
|
|
13040
|
-
}
|
|
13041
|
-
if (config2.leftMargin) {
|
|
13042
|
-
StackBarLineGraph.config.style.labelStyle.margin = {
|
|
13043
|
-
left: config2.leftMargin
|
|
13044
|
-
};
|
|
13045
|
-
}
|
|
13046
|
-
return StackBarLineGraph;
|
|
13047
|
-
};
|
|
13048
12998
|
const cameraUiSchema = {
|
|
13049
12999
|
type: "Control",
|
|
13050
13000
|
scope: "#/properties/camera",
|
|
@@ -13198,6 +13148,50 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13198
13148
|
OTP.config.main.length = +config2.length;
|
|
13199
13149
|
return OTP;
|
|
13200
13150
|
};
|
|
13151
|
+
const HierarchyChart = {
|
|
13152
|
+
type: "Control",
|
|
13153
|
+
scope: "#/properties/HierarchyChart",
|
|
13154
|
+
options: {
|
|
13155
|
+
widget: "HierarchyChart"
|
|
13156
|
+
},
|
|
13157
|
+
config: {
|
|
13158
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13159
|
+
main: {},
|
|
13160
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13161
|
+
}
|
|
13162
|
+
};
|
|
13163
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13164
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13165
|
+
hierarchyChart.scope = componentScope2;
|
|
13166
|
+
if (config2.style) {
|
|
13167
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13168
|
+
}
|
|
13169
|
+
if (config2.layout) {
|
|
13170
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13171
|
+
}
|
|
13172
|
+
if (config2.linkType) {
|
|
13173
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13174
|
+
}
|
|
13175
|
+
if (config2.stepPercent) {
|
|
13176
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13177
|
+
}
|
|
13178
|
+
if (config2.nodeWidth) {
|
|
13179
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13180
|
+
}
|
|
13181
|
+
if (config2.nodeHeight) {
|
|
13182
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13183
|
+
}
|
|
13184
|
+
if (config2.chartHeight) {
|
|
13185
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13186
|
+
}
|
|
13187
|
+
if (config2.lazyLoading) {
|
|
13188
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13189
|
+
}
|
|
13190
|
+
if (config2.isExpandAll) {
|
|
13191
|
+
hierarchyChart.config.main.isExpandAll = config2.isExpandAll === "YES" ? true : false;
|
|
13192
|
+
}
|
|
13193
|
+
return hierarchyChart;
|
|
13194
|
+
};
|
|
13201
13195
|
let schema = {
|
|
13202
13196
|
type: "object",
|
|
13203
13197
|
properties: {},
|
|
@@ -13361,6 +13355,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13361
13355
|
case "MetricCard":
|
|
13362
13356
|
elements = buildMetricCard(config2, componentScope2);
|
|
13363
13357
|
break;
|
|
13358
|
+
case "HierarchyChart":
|
|
13359
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13360
|
+
break;
|
|
13364
13361
|
case "Graph":
|
|
13365
13362
|
switch (config2.graphType) {
|
|
13366
13363
|
case "BarGraph":
|
|
@@ -13380,9 +13377,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13380
13377
|
case "AreaGraph":
|
|
13381
13378
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13382
13379
|
break;
|
|
13383
|
-
case "StackBarLineGraph":
|
|
13384
|
-
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13385
|
-
break;
|
|
13386
13380
|
default:
|
|
13387
13381
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13388
13382
|
break;
|