impaktapps-ui-builder 1.0.414 → 1.0.421
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 +100 -27
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +25 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +69 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -6
- 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 +18 -14
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +16 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -6
|
@@ -123,3 +123,28 @@ export declare const AreaBarGraph: {
|
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
+
export declare const StackBarLineG: {
|
|
127
|
+
type: string;
|
|
128
|
+
scope: string;
|
|
129
|
+
options: {
|
|
130
|
+
widget: string;
|
|
131
|
+
};
|
|
132
|
+
config: {
|
|
133
|
+
layout: {
|
|
134
|
+
xs: number;
|
|
135
|
+
sm: number;
|
|
136
|
+
md: number;
|
|
137
|
+
lg: number;
|
|
138
|
+
};
|
|
139
|
+
main: {
|
|
140
|
+
type: string;
|
|
141
|
+
legendLabels: any;
|
|
142
|
+
};
|
|
143
|
+
style: {
|
|
144
|
+
containerStyle: {};
|
|
145
|
+
labelStyle: {
|
|
146
|
+
margin: {};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
package/package.json
CHANGED
|
@@ -34,9 +34,6 @@ const buildAreaGraph = (config:any,componentScope:string) => {
|
|
|
34
34
|
if(config.xAxisFormatType){
|
|
35
35
|
AreaGraph.config.main.xAxisFormatType = config.xAxisFormatType
|
|
36
36
|
}
|
|
37
|
-
if(config.xAxisTickCount){
|
|
38
|
-
AreaGraph.config.main.xAxisTickCount = config.xAxisTickCount
|
|
39
|
-
}
|
|
40
37
|
if(config.yAxisTickCount){
|
|
41
38
|
AreaGraph.config.main.yAxisTickCount = config.yAxisTickCount
|
|
42
39
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createLayoutFormat, createKeyValueMap } from "./buildConfig";
|
|
2
|
+
import { StackBarLineG } from "./uischema/graph";
|
|
3
|
+
import _ from "lodash";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const buildStackBarLineGraph = (config:any,componentScope:string) => {
|
|
7
|
+
const StackBarLineGraph: any = _.cloneDeep(StackBarLineG);
|
|
8
|
+
StackBarLineGraph.scope = componentScope;
|
|
9
|
+
if (config.layout) {
|
|
10
|
+
StackBarLineGraph.config.layout = createLayoutFormat(config.layout, config.type);
|
|
11
|
+
}
|
|
12
|
+
StackBarLineGraph.config.main.type = config.graphType;
|
|
13
|
+
StackBarLineGraph.scope = componentScope;
|
|
14
|
+
StackBarLineGraph.config.main.header = config.heading;
|
|
15
|
+
StackBarLineGraph.config.main.subHeader = config.subHeader;
|
|
16
|
+
if (config.legendHide) {
|
|
17
|
+
StackBarLineGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
|
|
18
|
+
}
|
|
19
|
+
if (config.bottomAxisAngle) {
|
|
20
|
+
StackBarLineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
|
|
21
|
+
}
|
|
22
|
+
if (config.legendLabels) {
|
|
23
|
+
StackBarLineGraph.config.main.legendLabels = createKeyValueMap(config.legendLabels);
|
|
24
|
+
}
|
|
25
|
+
if(config.legendDirection){
|
|
26
|
+
StackBarLineGraph.config.main.legendDirection = config.legendDirection === "Row" ? "row" : "column";
|
|
27
|
+
}
|
|
28
|
+
if (config.height) {
|
|
29
|
+
StackBarLineGraph.config.style.containerStyle.height = config.height;
|
|
30
|
+
}
|
|
31
|
+
if (config.pieArcColors) {
|
|
32
|
+
StackBarLineGraph.config.style.colorMap = createKeyValueMap(config.pieArcColors);
|
|
33
|
+
}
|
|
34
|
+
if(config.yAxisTickCount){
|
|
35
|
+
StackBarLineGraph.config.main.yAxisTickCount = config.yAxisTickCount
|
|
36
|
+
}
|
|
37
|
+
if (config.xAxisValue) {
|
|
38
|
+
StackBarLineGraph.config.main.xAxisValue = config.xAxisValue;
|
|
39
|
+
}
|
|
40
|
+
if(config.xAxisType) {
|
|
41
|
+
StackBarLineGraph.config.main.xAxisType = config.xAxisType;
|
|
42
|
+
}
|
|
43
|
+
if (config.bottomLabel) {
|
|
44
|
+
StackBarLineGraph.config.main.bottomLabel = config.bottomLabel;
|
|
45
|
+
}
|
|
46
|
+
if (config.leftLabel) {
|
|
47
|
+
StackBarLineGraph.config.main.leftLabel = config.leftLabel;
|
|
48
|
+
}
|
|
49
|
+
if (config.rightLabel) {
|
|
50
|
+
StackBarLineGraph.config.main.rightLabel = config.rightLabel;
|
|
51
|
+
}
|
|
52
|
+
if (config.disableLeftLabel) {
|
|
53
|
+
StackBarLineGraph.config.main.disableLeftLabel = config.disableLeftLabel==="YES"? true: false;
|
|
54
|
+
}
|
|
55
|
+
if (config.growthRateKey) {
|
|
56
|
+
StackBarLineGraph.config.main.growthRateKey = config.growthRateKey;
|
|
57
|
+
}
|
|
58
|
+
if (config.tooltipUnit) {
|
|
59
|
+
StackBarLineGraph.config.main.tooltipUnit = config.tooltipUnit;
|
|
60
|
+
}
|
|
61
|
+
if (config.leftMargin) {
|
|
62
|
+
StackBarLineGraph.config.style.labelStyle.margin ={
|
|
63
|
+
left: config.leftMargin
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return StackBarLineGraph
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default buildStackBarLineGraph;
|
|
@@ -11,15 +11,9 @@ export const buildTable = (config: any, componentScope: string) => {
|
|
|
11
11
|
if (config.lazyLoading) {
|
|
12
12
|
table.config.main.lazyLoading = config.lazyLoading === "YES" ? true : false;
|
|
13
13
|
}
|
|
14
|
-
if (config.lazyLoadTree) {
|
|
15
|
-
table.config.main.lazyTree = config.lazyLoadTree === "YES" ? true : false;
|
|
16
|
-
}
|
|
17
14
|
if (config.defaultColumnSize) {
|
|
18
15
|
table.config.main.defaultColumnSize = config.defaultColumnSize
|
|
19
16
|
}
|
|
20
|
-
if (config.subRowsExpansionPageSize) {
|
|
21
|
-
table.config.main.subRowsExpansionPageSize = config.subRowsExpansionPageSize
|
|
22
|
-
}
|
|
23
17
|
if (config.enableRowMovement) {
|
|
24
18
|
table.config.main.enableRowMovement = config.enableRowMovement === "YES" ? true : false;
|
|
25
19
|
}
|
|
@@ -42,6 +42,7 @@ import { buildThoughtOfTheDay } from "./buildThoughtOfTheDay";
|
|
|
42
42
|
import { buildHorizontalLayout } from "./buildHorizontalLayout";
|
|
43
43
|
import { buildImage } from "./buildImage";
|
|
44
44
|
import buildAreaGraph from "./buildAreaGraph";
|
|
45
|
+
import buildStackBarLineGraph from "./buildStackBarLineGraph";
|
|
45
46
|
import { buildCamera } from "./buildCamera";
|
|
46
47
|
import { buildButtonGroup } from "./buildGroupButton";
|
|
47
48
|
import { buildPopOver } from "./buildPopover";
|
|
@@ -240,6 +241,9 @@ const buildUiSchema = (config: any, store?: any) => {
|
|
|
240
241
|
case "AreaGraph":
|
|
241
242
|
elements = buildAreaGraph(config, componentScope);
|
|
242
243
|
break;
|
|
244
|
+
case "StackBarLineGraph":
|
|
245
|
+
elements = buildStackBarLineGraph(config, componentScope);
|
|
246
|
+
break;
|
|
243
247
|
default:
|
|
244
248
|
elements = buildStackbarGraph(config, componentScope);
|
|
245
249
|
break;
|
|
@@ -9,6 +9,7 @@ export const buildWrapperSection = (config, componentScope) => {
|
|
|
9
9
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
10
10
|
wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
|
|
11
11
|
wrapper.config.main.defaultClosed = config.defaultClosed === "YES" ? true : false;
|
|
12
|
+
wrapper.config.main.icon = config.iconUrl;
|
|
12
13
|
wrapper.config.main.rowSpacing = Number(config.rowSpacing);
|
|
13
14
|
wrapper.config.main.columnSpacing = Number(config.columnSpacing);
|
|
14
15
|
wrapper.config.main.spacing = Number(config.spacing);
|
|
@@ -127,7 +127,7 @@ const getArrayControl = (parentScope: string, childScope: string, childLabel?: s
|
|
|
127
127
|
],
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string) => {
|
|
130
|
+
const getArrayControlMultiField = (parentScope: string, firstFieldScope: string, secondFieldScope: string, firstFieldLabel?: string, secondFieldLabel?: string, arrayLabel?: string) => {
|
|
131
131
|
return {
|
|
132
132
|
type: "Control",
|
|
133
133
|
scope: `#/properties/${parentScope}`,
|
|
@@ -136,7 +136,9 @@ const getArrayControlMultiField = (parentScope: string, firstFieldScope: string,
|
|
|
136
136
|
},
|
|
137
137
|
config: {
|
|
138
138
|
layout: 12,
|
|
139
|
-
main: {
|
|
139
|
+
main: {
|
|
140
|
+
label: arrayLabel,
|
|
141
|
+
},
|
|
140
142
|
style: {
|
|
141
143
|
marginLeft: "-24px",
|
|
142
144
|
marginBottom: "24px !important",
|
|
@@ -559,16 +561,18 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
559
561
|
{ label: "Pie Graph", value: "PieGraph" },
|
|
560
562
|
{ label: "Horizontal Bar Graph", value: "HorizontalBarGraph" },
|
|
561
563
|
{ label: "Stack Horizontal Bar Graph", value: "HorizontalStackBarGraph" },
|
|
562
|
-
{ label: "Area Graph", value: "AreaGraph" }
|
|
564
|
+
{ label: "Area Graph", value: "AreaGraph" },
|
|
565
|
+
{ label: "StackBar And Line Graph", value: "StackBarLineGraph" }
|
|
563
566
|
]),
|
|
564
567
|
getInputField("leftLabel", "Left Label"),
|
|
568
|
+
getInputField("rightLabel", "Right Label"),
|
|
565
569
|
getRadioInputField("disableLeftLabel", "Disable Left Label", ["YES", "No"]),
|
|
566
570
|
getInputField("bottomLabel", "Bottom Label"),
|
|
567
571
|
emptyBox("GraphEmpty1", { xs: 6, sm: 0, md: 0, lg: 0 }),
|
|
568
572
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
569
573
|
getRadioInputField("legendDirection", "Legend Direction", ["Row", "Column"]),
|
|
570
|
-
getInputField("yAxisValue", "Y-
|
|
571
|
-
getInputField("xAxisValue", "X-
|
|
574
|
+
getInputField("yAxisValue", "Y-Axis Key"),
|
|
575
|
+
getInputField("xAxisValue", "X-Axis Key"),
|
|
572
576
|
getSelectField("xAxisType", "X-AxisType", [
|
|
573
577
|
{ label: "Date", value: "date" },
|
|
574
578
|
{ label: "String", value: "string" },
|
|
@@ -576,15 +580,16 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
576
580
|
]),
|
|
577
581
|
getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
|
|
578
582
|
getInputField("leftMargin", "Left Margin"),
|
|
579
|
-
getInputField("xAxisTickCount", "X Axis TickCount"),
|
|
580
583
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
581
584
|
getSelectField("xAxisFormatType", "X Axis Format Type", [
|
|
582
585
|
{ label: "Date and Month", value: "Date and Month" },
|
|
583
586
|
{ label: "Month and Year", value: "Month and Year" }
|
|
584
587
|
]),
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
+
getInputField("growthRateKey", "Growth Rate Key"),
|
|
589
|
+
getInputField("tooltipUnit", "Tooltip Unit"),
|
|
590
|
+
emptyBox("GraphEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
591
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label", "Configure Bar Labels"),
|
|
592
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color", "Configure Bar Colors"),
|
|
588
593
|
];
|
|
589
594
|
break;
|
|
590
595
|
case "WrapperSection":
|
|
@@ -596,7 +601,8 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
596
601
|
getInputField("rowSpacing", "Row Spacing"),
|
|
597
602
|
getInputField("columnSpacing", "Column Spacing"),
|
|
598
603
|
getInputField("spacing", "Spacing"),
|
|
599
|
-
|
|
604
|
+
getInputField("iconUrl", "Icon Url"),
|
|
605
|
+
emptyBox("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }), emptyBox("WrapperSectionEmpty2")
|
|
600
606
|
]
|
|
601
607
|
break;
|
|
602
608
|
|
|
@@ -624,7 +630,7 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
624
630
|
getRadioInputField("disableDensityToggle", "Disable Density Toggle", ["YES", "NO"]),
|
|
625
631
|
getRadioInputField("disableDownloadFile", "Disable Download File", ["YES", "NO"]),
|
|
626
632
|
getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
|
|
627
|
-
getInputField("selectKey", "Selection Key")
|
|
633
|
+
getInputField("selectKey", "Selection Key"),//defaultColumnSize
|
|
628
634
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
629
635
|
getSelectField("maxPageSize", "Max Page Size", [
|
|
630
636
|
{ label: "10", value: 10 },
|
|
@@ -642,13 +648,11 @@ export const buildPropertiesSection = function (type: String) {
|
|
|
642
648
|
buildWrapper("Tree Table Properties", [
|
|
643
649
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
644
650
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
645
|
-
getRadioInputField("lazyLoadTree", "Lazy Load Tree", ["YES", "NO"]),
|
|
646
651
|
// getRadioInputField("enableExpandAll", "Use All Row Expanding", ["YES", "NO"]),
|
|
647
652
|
getRadioInputField("paginateExpandedRows", "Multi Page Expansion", ["YES", "NO"]),
|
|
648
653
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
649
654
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
650
|
-
getInputField("defaultColumnSize", "Default Column Size"),
|
|
651
|
-
getInputField("subRowsExpansionPageSize", "Page Size for Subrows Expansion") , emptyBox("LazyLoadingTableEmpty3")
|
|
655
|
+
getInputField("defaultColumnSize", "Default Column Size"), , emptyBox("LazyLoadingTableEmpty3")
|
|
652
656
|
]),
|
|
653
657
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
654
658
|
sizeHolder,
|
|
@@ -78,3 +78,19 @@ export const AreaBarGraph = {
|
|
|
78
78
|
},
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
export const StackBarLineG = {
|
|
82
|
+
type: "Control",
|
|
83
|
+
scope: "#/properties/graph",
|
|
84
|
+
options: {
|
|
85
|
+
widget: "Graph",
|
|
86
|
+
},
|
|
87
|
+
config: {
|
|
88
|
+
layout: {xs :12,sm:12,md:12,lg:12},
|
|
89
|
+
main: {
|
|
90
|
+
type: "StackBarLineGraph",
|
|
91
|
+
legendLabels: null
|
|
92
|
+
},
|
|
93
|
+
style:{ containerStyle: {},labelStyle:{margin:{}} }
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
|
|
@@ -190,12 +190,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
190
190
|
{ key: "sorting", value: paginationValues.sorting || [] },
|
|
191
191
|
{ key: "filters", value: paginationValues.tableColumnConfig || [] },
|
|
192
192
|
{ key: "globalFilter", value: paginationValues.globalFilter ?? '' },
|
|
193
|
-
{ key: "expandedRowIds", value: paginationValues.expandedRowIds ?? [] }
|
|
194
|
-
{ key: "subRowsPagination", value: paginationValues.subRowsPagination || [] },
|
|
195
|
-
{ key: "loadChildOnly", value: paginationValues.loadChildOnly || false },
|
|
196
|
-
{ key: "parentId", value: paginationValues.parentId },
|
|
197
|
-
{ key: "prevRowCount", value: paginationValues.prevRowCount },
|
|
198
|
-
{ key: "newDataCount", value: paginationValues.newDataCount },
|
|
193
|
+
{ key: "expandedRowIds", value: paginationValues.expandedRowIds ?? [] }
|
|
199
194
|
]
|
|
200
195
|
const response = await this.callExecuteEvents(paginationValues, apiBody, "onLoad");
|
|
201
196
|
return response?.data;
|