impaktapps-ui-builder 1.0.55 → 1.0.57-alpha.1

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.
@@ -12,8 +12,7 @@ declare const _default: (funcParams: funcParamsProps) => {
12
12
  onCellRenderer: (cellParams: any) => {};
13
13
  onClick: () => void;
14
14
  onKeyDown: () => void;
15
- onDeletePopupNo: () => void;
16
- onDeletePopupYes: () => void;
15
+ onFileDelete: () => void;
17
16
  onMount: () => void;
18
17
  onFileDownload: () => void;
19
18
  onFileUpload: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.55",
3
+ "version": "1.0.57-alpha.1",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -12,7 +12,7 @@ export const buildButton = (config:any,componentScope:string) =>{
12
12
 
13
13
  }
14
14
  if(config.layout){
15
- button.config.layout = createLayoutFormat(config.layout)
15
+ button.config.layout = createLayoutFormat(config.layout, config.type)
16
16
  }
17
17
  if(config.tooltipMessage){
18
18
  button.config.main.tooltipMessage = config.tooltipMessage
@@ -28,7 +28,7 @@ export default (FormData: any) => {
28
28
 
29
29
  export const createLayoutFormat = (layout: any[], type?: string) => {
30
30
  if (_.isEmpty(layout)) {
31
- const fullLayoutComponents: string[] = ["Array", "WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "Table", "TabSection", "TextArea", "TreeMap", "Thought"]
31
+ const fullLayoutComponents: string[] = ["WrapperSection", "DataGrid", "LeaderBoard", "PopUp", "TextArea", "TreeMap", "Thought"]
32
32
  if(fullLayoutComponents.includes(type)){
33
33
  return { xs: 12, sm: 12, md: 12, lg: 12 }
34
34
  }
@@ -39,10 +39,10 @@ export const buildDataGrid = (config, componentScope) => {
39
39
  DataGrid.config.main.label = config.label;
40
40
  }
41
41
  if (config.layout) {
42
- DataGrid.config.layout = createLayoutFormat(config.layout)
42
+ DataGrid.config.layout = createLayoutFormat(config.layout, config.type)
43
43
  }
44
44
  if (config.cardLayout) {
45
- DataGrid.config.cardLayout = createLayoutFormat(config.cardLayout)
45
+ DataGrid.config.cardLayout = createLayoutFormat(config.cardLayout, config.type)
46
46
  }
47
47
  if (config.style) {
48
48
  DataGrid.config.style = JSON.parse(config.style)
@@ -7,7 +7,7 @@ const buildHorizontalBarGraph = (config:any,componentScope:string) => {
7
7
  const horizontalBarGraph: any = _.cloneDeep(HorizontalBarGraph);
8
8
  horizontalBarGraph.scope = componentScope;
9
9
  if (config.layout) {
10
- horizontalBarGraph.config.layout = createLayoutFormat(config.layout);
10
+ horizontalBarGraph.config.layout = createLayoutFormat(config.layout, config.type);
11
11
  }
12
12
  horizontalBarGraph.config.main.type = config.graphType;
13
13
  horizontalBarGraph.scope = componentScope;
@@ -38,7 +38,7 @@ export const buildLeaderBoard = (config) => {
38
38
  LeaderBoard.config.main.scoreKey = config.scoreKey;
39
39
  }
40
40
  if (config.layout) {
41
- LeaderBoard.config.layout = createLayoutFormat(config.layout);
41
+ LeaderBoard.config.layout = createLayoutFormat(config.layout, config.type);
42
42
  }
43
43
  if (config.style) {
44
44
  LeaderBoard.config.style = JSON.parse(config.style)
@@ -5,7 +5,7 @@ import _ from "lodash";
5
5
  export const buildLineGraph = (config, componentScope) => {
6
6
  const lineGraph: any = _.cloneDeep(LineGraph);
7
7
  if (config.layout) {
8
- lineGraph.config.layout = createLayoutFormat(config.layout);
8
+ lineGraph.config.layout = createLayoutFormat(config.layout, config.type);
9
9
  }
10
10
  lineGraph.config.main.header = config.heading;
11
11
  if (config.height) {
@@ -4,7 +4,7 @@ import _ from "lodash";
4
4
  export const buildPieGraph = (config, componentScope) => {
5
5
  const pieGraph: any = _.cloneDeep(PieGraph);
6
6
  if (config.layout) {
7
- pieGraph.config.layout = createLayoutFormat(config.layout);
7
+ pieGraph.config.layout = createLayoutFormat(config.layout, config.type);
8
8
  }
9
9
  if (config.height) {
10
10
  pieGraph.config.style.containerStyle.height = config.height;
@@ -34,7 +34,7 @@ export const buildPopUp = (config,componentScope) =>{
34
34
  popup.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
35
35
  popup.config.main.maxWidth = config.maxWidth||false;
36
36
  if (config.layout) {
37
- popup.config.layout = createLayoutFormat(config.layout)
37
+ popup.config.layout = createLayoutFormat(config.layout, config.type)
38
38
  }
39
39
  if (config.style) {
40
40
  PopUP.config.style = JSON.parse(config.style)
@@ -5,7 +5,7 @@ import _ from "lodash";
5
5
  export const buildStackbarGraph = (config:any,componentScope:string) => {
6
6
  const barGraph: any = _.cloneDeep(BarGraph);
7
7
  if (config.layout) {
8
- barGraph.config.layout = createLayoutFormat(config.layout);
8
+ barGraph.config.layout = createLayoutFormat(config.layout, config.type);
9
9
  }
10
10
  if (config.legendHide) {
11
11
  barGraph.config.main.legendAvailable = config.legendHide;
@@ -4,7 +4,9 @@ import _ from "lodash";
4
4
  export const buildTabSection = (config:any,componentScope:string) => {
5
5
  const tab: any = _.cloneDeep(Tabsection);
6
6
  tab.scope = componentScope;
7
-
7
+ if (config.style) {
8
+ tab.config.style = JSON.parse(config.style)
9
+ }
8
10
  if(config.lazyLoad){
9
11
  tab.config.main.lazyLoad = config.lazyLoad === "YES" ?true:false;
10
12
  }
@@ -37,7 +37,7 @@ export const buildTextArea = (config:any,componentScope:string) =>{
37
37
  textArea.config.main.heading = config.label;
38
38
 
39
39
  if(config.layout){
40
- textArea.config.layout = createLayoutFormat(config.layout)
40
+ textArea.config.layout = createLayoutFormat(config.layout, config.type)
41
41
  }
42
42
  if (config.style) {
43
43
  textArea.config.style = JSON.parse(config.style)
@@ -10,7 +10,7 @@ export const buildThoughtOfTheDay = (config,componentScope) =>{
10
10
  thought.config.main.thought = `${config.thought}`
11
11
  }
12
12
  if(config.layout){
13
- thought.config.layout = createLayoutFormat(config.layout)
13
+ thought.config.layout = createLayoutFormat(config.layout, config.type)
14
14
  }
15
15
  if(config.label){
16
16
  thought.config.main.label = config.label;
@@ -35,7 +35,7 @@ export const buildTreeMap = (config, componentScope) => {
35
35
  treMap.config.main.header = config.label;
36
36
  }
37
37
  if (config.layout) {
38
- treMap.config.layout = createLayoutFormat(config.layout);
38
+ treMap.config.layout = createLayoutFormat(config.layout, config.type);
39
39
  }
40
40
  if (config.orientation) {
41
41
  treMap.config.main.orientation = config.orientation;
@@ -15,7 +15,7 @@ export const buildWrapperSection = (config, componentScope) => {
15
15
  wrapper.config.style = JSON.parse(config.style)
16
16
  }
17
17
  if (config.layout) {
18
- wrapper.config.layout = createLayoutFormat(config.layout)
18
+ wrapper.config.layout = createLayoutFormat(config.layout, config.type)
19
19
  }
20
20
  return wrapper;
21
21
  }
@@ -46,14 +46,16 @@ export const EventSchema = {
46
46
  { title: "Start", const: "onStart" },
47
47
  { title: "Cell Render", const: "onCellRenderer" },
48
48
  { title: "Upload", const: "onUpload" },
49
+ { title: "FileDelete", const: "onFileDelete" },
50
+ { title: "Download", const: "onDownload" },
49
51
  { title: "Back", const: "onBack" },
50
52
  { title: "Next", const: "onNext" },
51
53
  { title: "Row Movement", const: "onRowMovement" },
52
54
  { title: "Download", const: "onDownload" },
53
55
  { title: "Fail", const: "Fail" },
54
56
  { title: "Key Down", const: "onKeyDown" },
55
- { title: "PopUP NO Event", const: "onDeletePopupNo" },
56
- { title: "PopUP Yes Event", const: "onDeletePopupYes" },
57
+
58
+
57
59
  ]
58
60
  },
59
61
  Handler: {
@@ -236,11 +236,8 @@ export default (funcParams: funcParamsProps) => {
236
236
  onKeyDown: function () {
237
237
  this.callHandler("onKeyDown")
238
238
  },
239
- onDeletePopupNo: function () {
240
- this.callHandler("onDeletePopupNo")
241
- },
242
- onDeletePopupYes: function () {
243
- this.callHandler("onDeletePopupYes")
239
+ onFileDelete: function () {
240
+ this.callHandler("onFileDelete")
244
241
  },
245
242
  onMount: function () {
246
243
  this.callHandler("onMount")