impaktapps-ui-builder 1.0.457 → 1.0.470
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 +73 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +2 -2
- 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/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/buildHierarchyChart.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +9 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +7 -0
|
@@ -6272,6 +6272,7 @@ const ComponentSchema = {
|
|
|
6272
6272
|
{ title: "Rank", const: "Rank" },
|
|
6273
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6274
6274
|
{ title: "Metric Card", const: "MetricCard" },
|
|
6275
|
+
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
6275
6276
|
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6276
6277
|
{ title: "Table", const: "Table" },
|
|
6277
6278
|
{ title: "Tabs", const: "TabSection" },
|
|
@@ -6335,6 +6336,13 @@ const ComponentSchema = {
|
|
|
6335
6336
|
{ title: "Standard", const: "standard" }
|
|
6336
6337
|
]
|
|
6337
6338
|
},
|
|
6339
|
+
linkType: {
|
|
6340
|
+
oneOf: [
|
|
6341
|
+
{ title: "Step", const: "step" },
|
|
6342
|
+
{ title: "Diagonal", const: "diagonal" },
|
|
6343
|
+
{ title: "Line", const: "line" }
|
|
6344
|
+
]
|
|
6345
|
+
},
|
|
6338
6346
|
positionVertical: {
|
|
6339
6347
|
oneOf: [
|
|
6340
6348
|
{ title: "Top", const: "top" },
|
|
@@ -8157,6 +8165,17 @@ const buildPropertiesSection = function(type) {
|
|
|
8157
8165
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
8158
8166
|
];
|
|
8159
8167
|
break;
|
|
8168
|
+
case "HierarchyChart":
|
|
8169
|
+
uiSchema.elements = [
|
|
8170
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8171
|
+
getSelectField("linkType", "Link Type"),
|
|
8172
|
+
getInputField("nodeWidth", "Node Width"),
|
|
8173
|
+
getInputField("nodeHeight", "Node Height"),
|
|
8174
|
+
getInputField("chartHeight", "Chart Height"),
|
|
8175
|
+
getInputField("stepPercent", "Link Bend Position"),
|
|
8176
|
+
emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8177
|
+
];
|
|
8178
|
+
break;
|
|
8160
8179
|
case "MetricCard":
|
|
8161
8180
|
uiSchema.elements = [
|
|
8162
8181
|
getInputField("url", "Image Url"),
|
|
@@ -8875,6 +8894,7 @@ const sectionLabels = {
|
|
|
8875
8894
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8876
8895
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8877
8896
|
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8897
|
+
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8878
8898
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8879
8899
|
Timer: ["Core", "Events", "Style"],
|
|
8880
8900
|
Rank: ["Core", "Events", "Style"],
|
|
@@ -9503,7 +9523,8 @@ const EventSchema = {
|
|
|
9503
9523
|
{ title: "Fail", const: "Fail" },
|
|
9504
9524
|
{ title: "onClose", const: "onClose" },
|
|
9505
9525
|
{ title: "Key Down", const: "onKeyDown" },
|
|
9506
|
-
{ title: "Set Style", const: "setStyle" }
|
|
9526
|
+
{ title: "Set Style", const: "setStyle" },
|
|
9527
|
+
{ title: "Expand Node", const: "onNodeExpandChange" }
|
|
9507
9528
|
]
|
|
9508
9529
|
},
|
|
9509
9530
|
Handler: {
|
|
@@ -10976,6 +10997,13 @@ var service = (funcParams) => {
|
|
|
10976
10997
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10977
10998
|
return response == null ? void 0 : response.data;
|
|
10978
10999
|
},
|
|
11000
|
+
onNodeExpandChange: async function(param) {
|
|
11001
|
+
const apiBody = [
|
|
11002
|
+
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
11003
|
+
];
|
|
11004
|
+
const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
|
|
11005
|
+
return response == null ? void 0 : response.data;
|
|
11006
|
+
},
|
|
10979
11007
|
getSelectOptions: async function(param) {
|
|
10980
11008
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10981
11009
|
const apiBody = [
|
|
@@ -11783,7 +11811,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11783
11811
|
}
|
|
11784
11812
|
if (config2.lazyLoading) {
|
|
11785
11813
|
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11786
|
-
table.config.main.lazyTree = config2.lazyLoading === "YES" ? true : false;
|
|
11787
11814
|
}
|
|
11788
11815
|
if (config2.defaultColumnSize) {
|
|
11789
11816
|
table.config.main.defaultColumnSize = config2.defaultColumnSize;
|
|
@@ -13348,6 +13375,47 @@ const buildPdfViewer = (config2, componentScope2) => {
|
|
|
13348
13375
|
}
|
|
13349
13376
|
return PdfViewer;
|
|
13350
13377
|
};
|
|
13378
|
+
const HierarchyChart = {
|
|
13379
|
+
type: "Control",
|
|
13380
|
+
scope: "#/properties/HierarchyChart",
|
|
13381
|
+
options: {
|
|
13382
|
+
widget: "HierarchyChart"
|
|
13383
|
+
},
|
|
13384
|
+
config: {
|
|
13385
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13386
|
+
main: {},
|
|
13387
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13388
|
+
}
|
|
13389
|
+
};
|
|
13390
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13391
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13392
|
+
hierarchyChart.scope = componentScope2;
|
|
13393
|
+
if (config2.style) {
|
|
13394
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13395
|
+
}
|
|
13396
|
+
if (config2.layout) {
|
|
13397
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13398
|
+
}
|
|
13399
|
+
if (config2.linkType) {
|
|
13400
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13401
|
+
}
|
|
13402
|
+
if (config2.stepPercent) {
|
|
13403
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13404
|
+
}
|
|
13405
|
+
if (config2.nodeWidth) {
|
|
13406
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13407
|
+
}
|
|
13408
|
+
if (config2.nodeHeight) {
|
|
13409
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13410
|
+
}
|
|
13411
|
+
if (config2.chartHeight) {
|
|
13412
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13413
|
+
}
|
|
13414
|
+
if (config2.lazyLoading) {
|
|
13415
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13416
|
+
}
|
|
13417
|
+
return hierarchyChart;
|
|
13418
|
+
};
|
|
13351
13419
|
let schema = {
|
|
13352
13420
|
type: "object",
|
|
13353
13421
|
properties: {},
|
|
@@ -13511,6 +13579,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13511
13579
|
case "MetricCard":
|
|
13512
13580
|
elements = buildMetricCard(config2, componentScope2);
|
|
13513
13581
|
break;
|
|
13582
|
+
case "HierarchyChart":
|
|
13583
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13584
|
+
break;
|
|
13514
13585
|
case "Graph":
|
|
13515
13586
|
switch (config2.graphType) {
|
|
13516
13587
|
case "BarGraph":
|