impaktapps-ui-builder 1.0.455 → 1.0.456
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 +71 -0
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- 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/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/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"],
|
|
@@ -10976,6 +10996,13 @@ var service = (funcParams) => {
|
|
|
10976
10996
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10977
10997
|
return response == null ? void 0 : response.data;
|
|
10978
10998
|
},
|
|
10999
|
+
onNodeExpandChange: async function(param) {
|
|
11000
|
+
const apiBody = [
|
|
11001
|
+
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
11002
|
+
];
|
|
11003
|
+
const response = await this.callExecuteEvents(param, apiBody, "onLoad");
|
|
11004
|
+
return response == null ? void 0 : response.data;
|
|
11005
|
+
},
|
|
10979
11006
|
getSelectOptions: async function(param) {
|
|
10980
11007
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10981
11008
|
const apiBody = [
|
|
@@ -13347,6 +13374,47 @@ const buildPdfViewer = (config2, componentScope2) => {
|
|
|
13347
13374
|
}
|
|
13348
13375
|
return PdfViewer;
|
|
13349
13376
|
};
|
|
13377
|
+
const HierarchyChart = {
|
|
13378
|
+
type: "Control",
|
|
13379
|
+
scope: "#/properties/HierarchyChart",
|
|
13380
|
+
options: {
|
|
13381
|
+
widget: "HierarchyChart"
|
|
13382
|
+
},
|
|
13383
|
+
config: {
|
|
13384
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13385
|
+
main: {},
|
|
13386
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13387
|
+
}
|
|
13388
|
+
};
|
|
13389
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13390
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13391
|
+
hierarchyChart.scope = componentScope2;
|
|
13392
|
+
if (config2.style) {
|
|
13393
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13394
|
+
}
|
|
13395
|
+
if (config2.layout) {
|
|
13396
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13397
|
+
}
|
|
13398
|
+
if (config2.linkType) {
|
|
13399
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13400
|
+
}
|
|
13401
|
+
if (config2.stepPercent) {
|
|
13402
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13403
|
+
}
|
|
13404
|
+
if (config2.nodeWidth) {
|
|
13405
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13406
|
+
}
|
|
13407
|
+
if (config2.nodeHeight) {
|
|
13408
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13409
|
+
}
|
|
13410
|
+
if (config2.chartHeight) {
|
|
13411
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13412
|
+
}
|
|
13413
|
+
if (config2.lazyLoading) {
|
|
13414
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13415
|
+
}
|
|
13416
|
+
return hierarchyChart;
|
|
13417
|
+
};
|
|
13350
13418
|
let schema = {
|
|
13351
13419
|
type: "object",
|
|
13352
13420
|
properties: {},
|
|
@@ -13510,6 +13578,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13510
13578
|
case "MetricCard":
|
|
13511
13579
|
elements = buildMetricCard(config2, componentScope2);
|
|
13512
13580
|
break;
|
|
13581
|
+
case "HierarchyChart":
|
|
13582
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13583
|
+
break;
|
|
13513
13584
|
case "Graph":
|
|
13514
13585
|
switch (config2.graphType) {
|
|
13515
13586
|
case "BarGraph":
|