impaktapps-ui-builder 0.0.94 → 0.0.95-offset.2

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.
@@ -22,7 +22,6 @@ export declare const APISection: {
22
22
  heading: string;
23
23
  minRows: number;
24
24
  hideButton: boolean;
25
- enableCodeEditor: boolean;
26
25
  };
27
26
  };
28
27
  } | {
@@ -59,7 +59,6 @@ export declare const getTextArea: (scope: string, heading: string, hideButton: b
59
59
  heading: string;
60
60
  minRows: number;
61
61
  hideButton: boolean;
62
- enableCodeEditor: boolean;
63
62
  };
64
63
  };
65
64
  };
@@ -5,6 +5,12 @@ export declare const BarGraph: {
5
5
  widget: string;
6
6
  };
7
7
  config: {
8
+ layout: {
9
+ xs: number;
10
+ sm: number;
11
+ md: number;
12
+ lg: number;
13
+ };
8
14
  main: {};
9
15
  style: {
10
16
  containerStyle: {};
@@ -18,6 +24,12 @@ export declare const PieGraph: {
18
24
  widget: string;
19
25
  };
20
26
  config: {
27
+ layout: {
28
+ xs: number;
29
+ sm: number;
30
+ md: number;
31
+ lg: number;
32
+ };
21
33
  main: {
22
34
  type: string;
23
35
  };
@@ -31,7 +43,12 @@ export declare const LineGraph: {
31
43
  widget: string;
32
44
  };
33
45
  config: {
34
- layout: number;
46
+ layout: {
47
+ xs: number;
48
+ sm: number;
49
+ md: number;
50
+ lg: number;
51
+ };
35
52
  main: {
36
53
  type: string;
37
54
  header: string;
@@ -66,6 +83,12 @@ export declare const HorizontalBarGraph: {
66
83
  widget: string;
67
84
  };
68
85
  config: {
86
+ layout: {
87
+ xs: number;
88
+ sm: number;
89
+ md: number;
90
+ lg: number;
91
+ };
69
92
  main: {
70
93
  type: string;
71
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.94",
3
+ "version": "0.0.95-offset.2",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -12,6 +12,12 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
12
12
  horizontalBarGraph.config.main.type = config.graphType;
13
13
  horizontalBarGraph.scope = componentScope;
14
14
  horizontalBarGraph.config.main.header = config.heading;
15
+ if (config.legendHide) {
16
+ horizontalBarGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
17
+ }
18
+ if (config.bottomAxisAngle) {
19
+ horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
20
+ }
15
21
  if (config.barColor) {
16
22
  horizontalBarGraph.config.barStyle.color = config.barColor;
17
23
  }
@@ -30,6 +36,16 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
30
36
  }
31
37
  }
32
38
 
39
+ }
40
+ if (config.leftMargin) {
41
+ horizontalBarGraph.config.style =
42
+ {
43
+ labelStyle: {
44
+ margin: {
45
+ left: config.leftMargin
46
+ }
47
+ }
48
+ }
33
49
  }
34
50
  if (config.bottomLabel) {
35
51
  horizontalBarGraph.config.main.bottomLabel =
@@ -11,6 +11,16 @@ export const buildLineGraph = (config, componentScope) => {
11
11
  if (config.height) {
12
12
  lineGraph.config.style.containerStyle.height = config.height;
13
13
  }
14
+ if (config.leftMargin) {
15
+ lineGraph.config.style =
16
+ {
17
+ labelStyle: {
18
+ margin: {
19
+ left: config.leftMargin
20
+ }
21
+ }
22
+ }
23
+ }
14
24
  if (config.bottomLabel) {
15
25
  lineGraph.config.main.bottomLabel = config.bottomLabel;
16
26
  }
@@ -26,6 +36,9 @@ export const buildLineGraph = (config, componentScope) => {
26
36
  if (config.legendHide) {
27
37
  lineGraph.config.main.legendAvailabe = config.legendHide==="YES"?false:true;
28
38
  }
39
+ if (config.bottomAxisAngle) {
40
+ lineGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
41
+ }
29
42
  if (config.legendLabels) {
30
43
  lineGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
31
44
  }
@@ -9,6 +9,10 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
9
9
  }
10
10
  if (config.legendHide) {
11
11
  barGraph.config.main.legendAvailable = config.legendHide;
12
+ barGraph.config.main.legendAvailable = config.legendHide==="YES"?false:true;
13
+ }
14
+ if (config.bottomAxisAngle) {
15
+ barGraph.config.main.bottomAxisAngle = config.bottomAxisAngle==="YES"?true:false;
12
16
  }
13
17
  barGraph.config.main.type = config.graphType;
14
18
  barGraph.config.main.header = config.heading;
@@ -21,6 +25,16 @@ export const buildStackbarGraph = (config:any,componentScope:string) => {
21
25
  if (config.height) {
22
26
  barGraph.config.style.containerStyle.height = config.height;
23
27
  }
28
+ if (config.leftMargin) {
29
+ barGraph.config.style =
30
+ {
31
+ labelStyle: {
32
+ margin: {
33
+ left: config.leftMargin
34
+ }
35
+ }
36
+ }
37
+ }
24
38
  if (config.bottomLabel) {
25
39
  barGraph.config.main.bottomLabel = config.bottomLabel;
26
40
  }
@@ -38,11 +38,8 @@ export const buildTable = (config: any, componentScope: string) => {
38
38
  if (config.downloadAllData) {
39
39
  table.config.main.downloadAllData = config.downloadAllData === "YES" ? true : false
40
40
  }
41
- if(config.disableGlobalSearch){
42
- table.config.main.disableGlobalSearch = config.disableGlobalSearch === "YES" ? true : false
43
- }
44
- if(config.disableColumnFilter){
45
- table.config.main.disableColumnFilter = config.disableColumnFilter === "YES" ? true : false
41
+ if(config.disableFilters){
42
+ table.config.main.disableFilters = config.disableFilters === "YES" ? true : false
46
43
  }
47
44
  if(config.disableSorting){
48
45
  table.config.main.disableSorting = config.disableSorting === "YES" ? true : false
@@ -45,12 +45,6 @@ export const buildTextArea = (config:any,componentScope:string) =>{
45
45
  if (config.placeholder) {
46
46
  textArea.config.main.placeholder = config.placeholder;
47
47
  }
48
- if(config.enableCodeEditor){
49
- textArea.config.main.enableCodeEditor = config.enableCodeEditor === "YES" ? true : false
50
- }
51
- if(config.codeEditorLanguage){
52
- textArea.config.main.codeEditorLanguage = config.codeEditorLanguage;
53
- }
54
48
  textArea.scope = componentScope;
55
49
  return textArea;
56
50
  }
@@ -172,7 +172,7 @@ export const buildWrapper = (label: string, elements: any[]) => {
172
172
  width: "108%"
173
173
  },
174
174
  componentsBoxStyle: {
175
- marginLeft: "24px",
175
+ marginLeft: "12px",
176
176
  },
177
177
  defaultStyle: true
178
178
  },
@@ -206,8 +206,7 @@ export const getTextArea = (scope: string, heading: string, hideButton: boolean,
206
206
  main: {
207
207
  heading: heading,
208
208
  minRows: 8,
209
- hideButton: hideButton,
210
- enableCodeEditor: true
209
+ hideButton: hideButton
211
210
  },
212
211
  },
213
212
  }
@@ -325,9 +324,7 @@ export const buildPropertiesSection = function (type: String) {
325
324
  case "TextArea":
326
325
  uiSchema.elements = [
327
326
  getInputField("placeholder", "Placeholder"),
328
- getRadioInputField("enableCodeEditor", "Enable Code Editor",["YES", "NO"]),
329
- getInputField("codeEditorLanguage", "Enter Code Language"),
330
- ]
327
+ emptyBox("TextAreaEmpty1", {xs: 6, sm: 6, md: 4, lg: 4 }), emptyBox("TextAreaEmpty2", {xs: 0, sm: 0, md: 4, lg: 4 })]
331
328
  break;
332
329
 
333
330
  case "SpeedoMeter":
@@ -411,7 +408,9 @@ export const buildPropertiesSection = function (type: String) {
411
408
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
412
409
  getInputField("yAxisValue", "Y-AxisValue"),
413
410
  getInputField("xAxisValue", "X-AxisValue"),
414
- emptyBox("GraphEmpty2"),
411
+ getRadioInputField("bottomAxisAngle", "Bottom Axis Angled", ["YES", "No"]),
412
+ getInputField("leftMargin", "Left Margin"),
413
+ emptyBox("GraphEmpty1", {xs: 0, sm: 0, md: 6, lg: 8 }),
415
414
  getArrayControl("legendLabels", "label"),
416
415
  getArrayControl("pieArcColors", "color"),
417
416
  ];
@@ -440,8 +439,7 @@ export const buildPropertiesSection = function (type: String) {
440
439
  getRadioInputField("ColumnResizingAvailable", "ColumnResizing ", ["YES", "NO"]),
441
440
  getRadioInputField("DragAvailable", "Row Dragging", ["YES", "NO"]),
442
441
  getRadioInputField("downloadAllData", "Download All Data", ["YES", "NO"]),
443
- getRadioInputField("disableGlobalSearch", "Disable Global Search", ["YES", "NO"]),
444
- getRadioInputField("disableColumnFilter", "Disable Column Filter", ["YES", "NO"]),
442
+ getRadioInputField("disableFilters", "Disable Filter", ["YES", "NO"]),
445
443
  getRadioInputField("disableSorting", "Disable Sorting", ["YES", "NO"]),
446
444
 
447
445
  getRadioInputField("disableEditColumn", "Disable Edit Column", ["YES", "NO"]),
@@ -451,6 +449,7 @@ export const buildPropertiesSection = function (type: String) {
451
449
  getRadioInputField("disablePagination", "Disable Pagination", ["YES", "NO"]),
452
450
  getInputField("selectKey", "Selection Key"),
453
451
  getMultiSelectField("filteringOptions", "Filtering Options"),
452
+ emptyBox("LazyLoadingTableEmpty1", {xs: 6, sm: 0, md: 4, lg: 4 }),
454
453
  buildWrapper("Tree Table Properties", [
455
454
  getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
456
455
  getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
@@ -15,7 +15,7 @@ export default {
15
15
  styleDefault:false,
16
16
  icon:"",
17
17
  onClick: "onClick",
18
- size: "small",
18
+ size: "medium",
19
19
  },
20
20
  style: {
21
21
  },
@@ -6,6 +6,7 @@ export const BarGraph = {
6
6
  },
7
7
 
8
8
  config: {
9
+ layout: {xs :12,sm:12,md:12,lg:6},
9
10
  main: {
10
11
  },
11
12
  style: { containerStyle: {} }
@@ -19,6 +20,7 @@ export const PieGraph = {
19
20
  widget: "Graph",
20
21
  },
21
22
  config: {
23
+ layout: {xs :12,sm:12,md:12,lg:6},
22
24
  main: {
23
25
  type: "PieGraph",
24
26
  },
@@ -32,7 +34,7 @@ export const LineGraph = {
32
34
  widget: "Graph",
33
35
  },
34
36
  config: {
35
- layout: 12,
37
+ layout: {xs :12,sm:12,md:12,lg:6},
36
38
  main: {
37
39
  type: "LineGraph",
38
40
  header: "Quartely Incentive in Thousand",
@@ -68,6 +70,7 @@ export const HorizontalBarGraph = {
68
70
  widget: "Graph",
69
71
  },
70
72
  config: {
73
+ layout: {xs :12,sm:12,md:12,lg:6},
71
74
  main: {
72
75
  type: "HorizontalBarGraph",
73
76
  },
@@ -130,13 +130,14 @@ export default (funcParams: funcParamsProps) => {
130
130
  color: theme?.palette?.text.disabled || "#AFAFAF",
131
131
  fontSize: '12px',
132
132
  textAlign: 'center',
133
- lineHeight: 1,
133
+ lineHeight: 2,
134
134
  width: 'fit-content',
135
135
  left: '50%',
136
136
  position: 'relative',
137
137
  margin: 0,
138
138
  flexGrow: 1,
139
- height: 0
139
+ height: 0,
140
+ transform: "translate(-50%,0%)"
140
141
  }
141
142
  },
142
143
  },