impaktapps-ui-builder 1.0.277 → 1.0.280-test.2
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 +96 -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 +3 -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 +22 -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,28 @@ 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
|
+
},
|
|
10903
|
+
onNodeSearchChange: async function(param) {
|
|
10904
|
+
const apiBody = [
|
|
10905
|
+
{ key: "searchTerm", value: param.searchTerm }
|
|
10906
|
+
];
|
|
10907
|
+
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
10908
|
+
return response == null ? void 0 : response.data;
|
|
10909
|
+
},
|
|
10910
|
+
onSearchNodeSelect: async function(param) {
|
|
10911
|
+
const apiBody = [
|
|
10912
|
+
{ key: "selectedNodeId", value: param.selectedNodeId },
|
|
10913
|
+
{ key: "uncollapsedIds", value: param.uncollapsedIds }
|
|
10914
|
+
];
|
|
10915
|
+
const response = await this.callExecuteEvents(param, apiBody, "onSearchNodeSelect");
|
|
10916
|
+
return response == null ? void 0 : response.data;
|
|
10917
|
+
},
|
|
10878
10918
|
getSelectOptions: async function(param) {
|
|
10879
10919
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10880
10920
|
const apiBody = [
|
|
@@ -11189,21 +11229,6 @@ const AreaBarGraph = {
|
|
|
11189
11229
|
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
11190
11230
|
}
|
|
11191
11231
|
};
|
|
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
11232
|
const buildHorizontalBarGraph = (config2, componentScope2) => {
|
|
11208
11233
|
const horizontalBarGraph = _.cloneDeep(HorizontalBarGraph);
|
|
11209
11234
|
horizontalBarGraph.scope = componentScope2;
|
|
@@ -11486,7 +11511,6 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11486
11511
|
wrapper.config.main.divider = config2.divider === "YES" ? true : false;
|
|
11487
11512
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11488
11513
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11489
|
-
wrapper.config.main.icon = config2.iconUrl;
|
|
11490
11514
|
if (config2.defaultStyle) {
|
|
11491
11515
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11492
11516
|
}
|
|
@@ -12958,8 +12982,8 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12958
12982
|
if (config2.xAxisFormatType) {
|
|
12959
12983
|
AreaGraph.config.main.xAxisFormatType = config2.xAxisFormatType;
|
|
12960
12984
|
}
|
|
12961
|
-
if (config2.
|
|
12962
|
-
AreaGraph.config.main.
|
|
12985
|
+
if (config2.xAxisTickCount) {
|
|
12986
|
+
AreaGraph.config.main.xAxisTickCount = config2.xAxisTickCount;
|
|
12963
12987
|
}
|
|
12964
12988
|
if (config2.yAxisTickCount) {
|
|
12965
12989
|
AreaGraph.config.main.yAxisTickCount = config2.yAxisTickCount;
|
|
@@ -12986,65 +13010,6 @@ const buildAreaGraph = (config2, componentScope2) => {
|
|
|
12986
13010
|
}
|
|
12987
13011
|
return AreaGraph;
|
|
12988
13012
|
};
|
|
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
13013
|
const cameraUiSchema = {
|
|
13049
13014
|
type: "Control",
|
|
13050
13015
|
scope: "#/properties/camera",
|
|
@@ -13198,6 +13163,50 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13198
13163
|
OTP.config.main.length = +config2.length;
|
|
13199
13164
|
return OTP;
|
|
13200
13165
|
};
|
|
13166
|
+
const HierarchyChart = {
|
|
13167
|
+
type: "Control",
|
|
13168
|
+
scope: "#/properties/HierarchyChart",
|
|
13169
|
+
options: {
|
|
13170
|
+
widget: "HierarchyChart"
|
|
13171
|
+
},
|
|
13172
|
+
config: {
|
|
13173
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13174
|
+
main: {},
|
|
13175
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13176
|
+
}
|
|
13177
|
+
};
|
|
13178
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13179
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13180
|
+
hierarchyChart.scope = componentScope2;
|
|
13181
|
+
if (config2.style) {
|
|
13182
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13183
|
+
}
|
|
13184
|
+
if (config2.layout) {
|
|
13185
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13186
|
+
}
|
|
13187
|
+
if (config2.linkType) {
|
|
13188
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13189
|
+
}
|
|
13190
|
+
if (config2.stepPercent) {
|
|
13191
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13192
|
+
}
|
|
13193
|
+
if (config2.nodeWidth) {
|
|
13194
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13195
|
+
}
|
|
13196
|
+
if (config2.nodeHeight) {
|
|
13197
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13198
|
+
}
|
|
13199
|
+
if (config2.chartHeight) {
|
|
13200
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13201
|
+
}
|
|
13202
|
+
if (config2.lazyLoading) {
|
|
13203
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13204
|
+
}
|
|
13205
|
+
if (config2.isExpandAll) {
|
|
13206
|
+
hierarchyChart.config.main.isExpandAll = config2.isExpandAll === "YES" ? true : false;
|
|
13207
|
+
}
|
|
13208
|
+
return hierarchyChart;
|
|
13209
|
+
};
|
|
13201
13210
|
let schema = {
|
|
13202
13211
|
type: "object",
|
|
13203
13212
|
properties: {},
|
|
@@ -13361,6 +13370,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13361
13370
|
case "MetricCard":
|
|
13362
13371
|
elements = buildMetricCard(config2, componentScope2);
|
|
13363
13372
|
break;
|
|
13373
|
+
case "HierarchyChart":
|
|
13374
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13375
|
+
break;
|
|
13364
13376
|
case "Graph":
|
|
13365
13377
|
switch (config2.graphType) {
|
|
13366
13378
|
case "BarGraph":
|
|
@@ -13380,9 +13392,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13380
13392
|
case "AreaGraph":
|
|
13381
13393
|
elements = buildAreaGraph(config2, componentScope2);
|
|
13382
13394
|
break;
|
|
13383
|
-
case "StackBarLineGraph":
|
|
13384
|
-
elements = buildStackBarLineGraph(config2, componentScope2);
|
|
13385
|
-
break;
|
|
13386
13395
|
default:
|
|
13387
13396
|
elements = buildStackbarGraph(config2, componentScope2);
|
|
13388
13397
|
break;
|