impaktapps-ui-builder 1.0.454 → 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 -4
- 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/buildTable.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +15 -1
- 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"),
|
|
@@ -8263,7 +8282,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8263
8282
|
buildWrapper("Tree Table Properties", [
|
|
8264
8283
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8265
8284
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8266
|
-
getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
|
|
8267
8285
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8268
8286
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8269
8287
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
@@ -8876,6 +8894,7 @@ const sectionLabels = {
|
|
|
8876
8894
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8877
8895
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8878
8896
|
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8897
|
+
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8879
8898
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8880
8899
|
Timer: ["Core", "Events", "Style"],
|
|
8881
8900
|
Rank: ["Core", "Events", "Style"],
|
|
@@ -10977,6 +10996,13 @@ var service = (funcParams) => {
|
|
|
10977
10996
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10978
10997
|
return response == null ? void 0 : response.data;
|
|
10979
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
|
+
},
|
|
10980
11006
|
getSelectOptions: async function(param) {
|
|
10981
11007
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10982
11008
|
const apiBody = [
|
|
@@ -11785,9 +11811,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11785
11811
|
if (config2.lazyLoading) {
|
|
11786
11812
|
table.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
11787
11813
|
}
|
|
11788
|
-
if (config2.lazyLoadTree) {
|
|
11789
|
-
table.config.main.lazyTree = config2.lazyLoadTree === "YES" ? true : false;
|
|
11790
|
-
}
|
|
11791
11814
|
if (config2.defaultColumnSize) {
|
|
11792
11815
|
table.config.main.defaultColumnSize = config2.defaultColumnSize;
|
|
11793
11816
|
}
|
|
@@ -13351,6 +13374,47 @@ const buildPdfViewer = (config2, componentScope2) => {
|
|
|
13351
13374
|
}
|
|
13352
13375
|
return PdfViewer;
|
|
13353
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
|
+
};
|
|
13354
13418
|
let schema = {
|
|
13355
13419
|
type: "object",
|
|
13356
13420
|
properties: {},
|
|
@@ -13514,6 +13578,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13514
13578
|
case "MetricCard":
|
|
13515
13579
|
elements = buildMetricCard(config2, componentScope2);
|
|
13516
13580
|
break;
|
|
13581
|
+
case "HierarchyChart":
|
|
13582
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13583
|
+
break;
|
|
13517
13584
|
case "Graph":
|
|
13518
13585
|
switch (config2.graphType) {
|
|
13519
13586
|
case "BarGraph":
|