impaktapps-ui-builder 1.0.321 → 1.0.330
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 +97 -10
- 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/buildEmptyBox.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +22 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +10 -2
- 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 +9 -1
|
@@ -6272,7 +6272,8 @@ const ComponentSchema = {
|
|
|
6272
6272
|
{ title: "Rank", const: "Rank" },
|
|
6273
6273
|
{ title: "Rank Card", const: "RankCard" },
|
|
6274
6274
|
{ title: "Metric Card", const: "MetricCard" },
|
|
6275
|
-
{ title: "
|
|
6275
|
+
{ title: "Hierarchy Chart", const: "HierarchyChart" },
|
|
6276
|
+
{ title: "Runner Boy", const: "RunnerBoyProgressBar" },
|
|
6276
6277
|
{ title: "Table", const: "Table" },
|
|
6277
6278
|
{ title: "Tabs", const: "TabSection" },
|
|
6278
6279
|
{ title: "Text", const: "Text" },
|
|
@@ -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" },
|
|
@@ -8088,7 +8096,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8088
8096
|
getSelectField("variant", "Variant"),
|
|
8089
8097
|
getInputField("toolTip", "Tooltip"),
|
|
8090
8098
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8091
|
-
|
|
8099
|
+
getSelectField("iconName", "Start Icon"),
|
|
8100
|
+
emptyBox$1("Radio", { xs: 0, sm: 0, md: 0, lg: 6 }),
|
|
8092
8101
|
getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element"),
|
|
8093
8102
|
getInputField("keyName", "Event Key Name")
|
|
8094
8103
|
];
|
|
@@ -8157,6 +8166,17 @@ const buildPropertiesSection = function(type) {
|
|
|
8157
8166
|
emptyBox$1("cardEmpty", { xs: 0, sm: 0, md: 8, lg: 8 })
|
|
8158
8167
|
];
|
|
8159
8168
|
break;
|
|
8169
|
+
case "HierarchyChart":
|
|
8170
|
+
uiSchema.elements = [
|
|
8171
|
+
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8172
|
+
getSelectField("linkType", "Link Type"),
|
|
8173
|
+
getInputField("nodeWidth", "Node Width"),
|
|
8174
|
+
getInputField("nodeHeight", "Node Height"),
|
|
8175
|
+
getInputField("chartHeight", "Chart Height"),
|
|
8176
|
+
getInputField("stepPercent", "Link Bend Position"),
|
|
8177
|
+
emptyBox$1("HierarchyChart", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8178
|
+
];
|
|
8179
|
+
break;
|
|
8160
8180
|
case "MetricCard":
|
|
8161
8181
|
uiSchema.elements = [
|
|
8162
8182
|
getInputField("url", "Image Url"),
|
|
@@ -8229,7 +8249,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8229
8249
|
getInputField("columnSpacing", "Column Spacing"),
|
|
8230
8250
|
getInputField("spacing", "Spacing"),
|
|
8231
8251
|
getInputField("iconUrl", "Icon Url"),
|
|
8232
|
-
|
|
8252
|
+
getInputField("wrapperId", "Wrapper Id"),
|
|
8253
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
8233
8254
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8234
8255
|
];
|
|
8235
8256
|
break;
|
|
@@ -8260,11 +8281,13 @@ const buildPropertiesSection = function(type) {
|
|
|
8260
8281
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
8261
8282
|
getSelectField("maxPageSize", "Max Page Size"),
|
|
8262
8283
|
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
8284
|
+
getInputField("rowIdKey", "Row ID Key"),
|
|
8285
|
+
getInputField("parentIdKey", "Parent ID Key"),
|
|
8286
|
+
emptyBox$1("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8263
8287
|
buildWrapper("Tree Table Properties", [
|
|
8264
8288
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8265
8289
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
8266
8290
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
8267
|
-
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8268
8291
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8269
8292
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8270
8293
|
,
|
|
@@ -8876,6 +8899,7 @@ const sectionLabels = {
|
|
|
8876
8899
|
ProgressBar: ["Core", "Properties", "Events", "Style"],
|
|
8877
8900
|
RankCard: ["Core", "Properties", "Events", "Style"],
|
|
8878
8901
|
MetricCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8902
|
+
HierarchyChart: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8879
8903
|
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
8880
8904
|
Timer: ["Core", "Events", "Style"],
|
|
8881
8905
|
Rank: ["Core", "Events", "Style"],
|
|
@@ -9504,7 +9528,8 @@ const EventSchema = {
|
|
|
9504
9528
|
{ title: "Fail", const: "Fail" },
|
|
9505
9529
|
{ title: "onClose", const: "onClose" },
|
|
9506
9530
|
{ title: "Key Down", const: "onKeyDown" },
|
|
9507
|
-
{ title: "Set Style", const: "setStyle" }
|
|
9531
|
+
{ title: "Set Style", const: "setStyle" },
|
|
9532
|
+
{ title: "Expand Node", const: "onNodeExpandChange" }
|
|
9508
9533
|
]
|
|
9509
9534
|
},
|
|
9510
9535
|
Handler: {
|
|
@@ -10964,18 +10989,26 @@ var service = (funcParams) => {
|
|
|
10964
10989
|
return response == null ? void 0 : response.data;
|
|
10965
10990
|
},
|
|
10966
10991
|
onPaginationChange: async function(paginationValues) {
|
|
10967
|
-
var _a
|
|
10992
|
+
var _a;
|
|
10968
10993
|
const apiBody = [
|
|
10969
10994
|
{ key: "size", value: paginationValues.pagination.pageSize },
|
|
10970
10995
|
{ key: "pageIndex", value: paginationValues.pagination.pageIndex },
|
|
10971
10996
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
10972
10997
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
10973
10998
|
{ key: "globalFilter", value: (_a = paginationValues.globalFilter) != null ? _a : "" },
|
|
10974
|
-
{ key: "
|
|
10999
|
+
{ key: "parentIds", value: paginationValues.parentIds },
|
|
11000
|
+
{ key: "isExpandAll", value: paginationValues.isExpandAll }
|
|
10975
11001
|
];
|
|
10976
11002
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
10977
11003
|
return response == null ? void 0 : response.data;
|
|
10978
11004
|
},
|
|
11005
|
+
onNodeExpandChange: async function(param) {
|
|
11006
|
+
const apiBody = [
|
|
11007
|
+
{ key: "expandedNodeId", value: param.expandedNodeId }
|
|
11008
|
+
];
|
|
11009
|
+
const response = await this.callExecuteEvents(param, apiBody, "onNodeExpandChange");
|
|
11010
|
+
return response == null ? void 0 : response.data;
|
|
11011
|
+
},
|
|
10979
11012
|
getSelectOptions: async function(param) {
|
|
10980
11013
|
if (param.serachValue !== "" && param.serachValue !== void 0) {
|
|
10981
11014
|
const apiBody = [
|
|
@@ -11593,6 +11626,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11593
11626
|
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11594
11627
|
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11595
11628
|
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11629
|
+
wrapper.config.main.wrapperId = config2.wrapperId;
|
|
11596
11630
|
if (config2.defaultStyle) {
|
|
11597
11631
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11598
11632
|
}
|
|
@@ -11648,6 +11682,9 @@ const buildTextField = (config2, componentScope2) => {
|
|
|
11648
11682
|
if (config2.toolTipPosition) {
|
|
11649
11683
|
inputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11650
11684
|
}
|
|
11685
|
+
if (config2.iconName) {
|
|
11686
|
+
inputField.config.main.startIcon = config2.iconName;
|
|
11687
|
+
}
|
|
11651
11688
|
inputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
11652
11689
|
inputField.scope = componentScope2;
|
|
11653
11690
|
return inputField;
|
|
@@ -11802,9 +11839,6 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11802
11839
|
if (config2.paginateExpandedRows) {
|
|
11803
11840
|
table.config.main.paginateExpandedRows = config2.paginateExpandedRows === "YES" ? true : false;
|
|
11804
11841
|
}
|
|
11805
|
-
if (config2.treeStructure) {
|
|
11806
|
-
table.config.main.treeStructure = config2.treeStructure === "YES" ? "flatTreeMap" : false;
|
|
11807
|
-
}
|
|
11808
11842
|
if (config2.SelectionAvailable) {
|
|
11809
11843
|
table.config.main.Selection = config2.SelectionAvailable === "YES" ? true : false;
|
|
11810
11844
|
}
|
|
@@ -11847,6 +11881,12 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11847
11881
|
if (config2.selectKey) {
|
|
11848
11882
|
table.config.main.selectKey = config2.selectKey;
|
|
11849
11883
|
}
|
|
11884
|
+
if (config2.rowIdKey) {
|
|
11885
|
+
table.config.main.rowIdKey = config2.rowIdKey;
|
|
11886
|
+
}
|
|
11887
|
+
if (config2.parentIdKey) {
|
|
11888
|
+
table.config.main.parentIdKey = config2.parentIdKey;
|
|
11889
|
+
}
|
|
11850
11890
|
if (config2.maxPageSize) {
|
|
11851
11891
|
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11852
11892
|
}
|
|
@@ -12602,6 +12642,9 @@ const buildEmptyBox = (config2, componentScope2) => {
|
|
|
12602
12642
|
if (config2.layout) {
|
|
12603
12643
|
EmptyBox.config.layout = createLayoutFormat(config2.layout);
|
|
12604
12644
|
}
|
|
12645
|
+
if (config2.style) {
|
|
12646
|
+
EmptyBox.config.style = JSON.parse(config2.style);
|
|
12647
|
+
}
|
|
12605
12648
|
return EmptyBox;
|
|
12606
12649
|
};
|
|
12607
12650
|
const ArrayUiSchema = {
|
|
@@ -13350,6 +13393,47 @@ const buildPdfViewer = (config2, componentScope2) => {
|
|
|
13350
13393
|
}
|
|
13351
13394
|
return PdfViewer;
|
|
13352
13395
|
};
|
|
13396
|
+
const HierarchyChart = {
|
|
13397
|
+
type: "Control",
|
|
13398
|
+
scope: "#/properties/HierarchyChart",
|
|
13399
|
+
options: {
|
|
13400
|
+
widget: "HierarchyChart"
|
|
13401
|
+
},
|
|
13402
|
+
config: {
|
|
13403
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13404
|
+
main: {},
|
|
13405
|
+
style: { containerStyle: {}, labelStyle: { margin: {} } }
|
|
13406
|
+
}
|
|
13407
|
+
};
|
|
13408
|
+
const buildHierarchyChart = (config2, componentScope2, store2) => {
|
|
13409
|
+
const hierarchyChart = _.cloneDeep(HierarchyChart);
|
|
13410
|
+
hierarchyChart.scope = componentScope2;
|
|
13411
|
+
if (config2.style) {
|
|
13412
|
+
hierarchyChart.config.style = JSON.parse(config2.style);
|
|
13413
|
+
}
|
|
13414
|
+
if (config2.layout) {
|
|
13415
|
+
hierarchyChart.config.layout = createLayoutFormat(config2.layout);
|
|
13416
|
+
}
|
|
13417
|
+
if (config2.linkType) {
|
|
13418
|
+
hierarchyChart.config.main.linkType = config2.linkType;
|
|
13419
|
+
}
|
|
13420
|
+
if (config2.stepPercent) {
|
|
13421
|
+
hierarchyChart.config.main.stepPercent = config2.stepPercent;
|
|
13422
|
+
}
|
|
13423
|
+
if (config2.nodeWidth) {
|
|
13424
|
+
hierarchyChart.config.main.nodeWidth = config2.nodeWidth;
|
|
13425
|
+
}
|
|
13426
|
+
if (config2.nodeHeight) {
|
|
13427
|
+
hierarchyChart.config.main.nodeHeight = config2.nodeHeight;
|
|
13428
|
+
}
|
|
13429
|
+
if (config2.chartHeight) {
|
|
13430
|
+
hierarchyChart.config.main.chartHeight = config2.chartHeight;
|
|
13431
|
+
}
|
|
13432
|
+
if (config2.lazyLoading) {
|
|
13433
|
+
hierarchyChart.config.main.lazyLoading = config2.lazyLoading === "YES" ? true : false;
|
|
13434
|
+
}
|
|
13435
|
+
return hierarchyChart;
|
|
13436
|
+
};
|
|
13353
13437
|
let schema = {
|
|
13354
13438
|
type: "object",
|
|
13355
13439
|
properties: {},
|
|
@@ -13513,6 +13597,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13513
13597
|
case "MetricCard":
|
|
13514
13598
|
elements = buildMetricCard(config2, componentScope2);
|
|
13515
13599
|
break;
|
|
13600
|
+
case "HierarchyChart":
|
|
13601
|
+
elements = buildHierarchyChart(config2, componentScope2);
|
|
13602
|
+
break;
|
|
13516
13603
|
case "Graph":
|
|
13517
13604
|
switch (config2.graphType) {
|
|
13518
13605
|
case "BarGraph":
|