impaktapps-ui-builder 0.0.412-mtreemap.7 → 0.0.412-mtreemap.8

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.
@@ -2,140 +2,65 @@ export declare const EventSection: {
2
2
  type: string;
3
3
  elements: {
4
4
  type: string;
5
+ scope: string;
6
+ options: {
7
+ widget: string;
8
+ };
5
9
  config: {
6
10
  main: {
7
- divider: boolean;
8
- };
9
- wrapperStyle: {
10
- border: string;
11
+ disableAction: boolean;
12
+ disableSelection: boolean;
13
+ enableDrag: boolean;
11
14
  };
12
15
  };
13
16
  elements: ({
14
- type: string;
15
- scope: string;
16
- options: {
17
- widget: string;
18
- };
19
- config: {
20
- layout: number;
21
- main: {
22
- heading: string;
23
- icon?: undefined;
24
- styleDefault?: undefined;
25
- size?: undefined;
26
- onClick?: undefined;
27
- tooltipMessage?: undefined;
28
- disableAction?: undefined;
29
- disableSelection?: undefined;
30
- enableDrag?: undefined;
31
- };
32
- style: {
33
- fontFamily: string;
34
- fontWeight: string;
35
- paddingLeft: string;
36
- fontSize: string;
37
- float?: undefined;
38
- };
39
- };
40
- elements?: undefined;
17
+ accessorKey: string;
18
+ header: string;
19
+ widget?: undefined;
41
20
  } | {
42
- type: string;
43
- scope: string;
44
- options: {
45
- widget: string;
46
- };
47
- config: {
48
- layout: number;
49
- main: {
50
- icon: string;
51
- styleDefault: boolean;
52
- size: string;
53
- onClick: string;
54
- tooltipMessage: string;
55
- heading?: undefined;
56
- disableAction?: undefined;
57
- disableSelection?: undefined;
58
- enableDrag?: undefined;
21
+ accessorKey: string;
22
+ header: string;
23
+ widget: {
24
+ type: string;
25
+ scope: string;
26
+ options: {
27
+ widget: string;
59
28
  };
60
- style: {
61
- float: string;
62
- fontFamily?: undefined;
63
- fontWeight?: undefined;
64
- paddingLeft?: undefined;
65
- fontSize?: undefined;
29
+ config: {
30
+ main: {
31
+ color: string;
32
+ size: string;
33
+ icon: string;
34
+ tooltipMessage: string;
35
+ onClick: string;
36
+ };
37
+ style: {
38
+ color: string;
39
+ };
66
40
  };
41
+ accessorKeyName?: undefined;
67
42
  };
68
- elements?: undefined;
69
43
  } | {
70
- type: string;
71
- scope: string;
72
- options: {
73
- widget: string;
74
- };
75
- config: {
76
- main: {
77
- disableAction: boolean;
78
- disableSelection: boolean;
79
- enableDrag: boolean;
80
- heading?: undefined;
81
- icon?: undefined;
82
- styleDefault?: undefined;
83
- size?: undefined;
84
- onClick?: undefined;
85
- tooltipMessage?: undefined;
86
- };
87
- layout?: undefined;
88
- style?: undefined;
89
- };
90
- elements: ({
91
- accessorKey: string;
92
- header: string;
93
- widget?: undefined;
94
- } | {
95
- accessorKey: string;
96
- header: string;
97
- widget: {
98
- type: string;
99
- scope: string;
100
- options: {
101
- widget: string;
102
- };
103
- config: {
104
- main: {
105
- color: string;
106
- size: string;
107
- icon: string;
108
- tooltipMessage: string;
109
- onClick: string;
110
- };
111
- style: {
112
- color: string;
113
- };
114
- };
115
- accessorKeyName?: undefined;
44
+ accessorKey: string;
45
+ header: string;
46
+ widget: {
47
+ type: string;
48
+ scope: string;
49
+ accessorKeyName: string;
50
+ options: {
51
+ widget: string;
116
52
  };
117
- } | {
118
- accessorKey: string;
119
- header: string;
120
- widget: {
121
- type: string;
122
- scope: string;
123
- accessorKeyName: string;
124
- options: {
125
- widget: string;
126
- };
127
- config: {
128
- main: {
129
- icon: string;
130
- color: string;
131
- tooltipMessage: string;
132
- onClick: string;
133
- size?: undefined;
134
- };
135
- style?: undefined;
53
+ config: {
54
+ main: {
55
+ icon: string;
56
+ color: string;
57
+ tooltipMessage: string;
58
+ onClick: string;
59
+ size?: undefined;
136
60
  };
61
+ style?: undefined;
137
62
  };
138
- })[];
63
+ };
139
64
  })[];
140
65
  }[];
141
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.412-mtreemap.7",
3
+ "version": "0.0.412-mtreemap.8",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -1,58 +1,58 @@
1
1
  export const EventSection = {
2
2
  type: "HorizontalLayout",
3
3
  elements: [
4
- {
5
- type: "WrapperLayout",
6
- config: {
7
- main: {
8
- // label: "Table Columns",
9
- divider: true,
10
- },
11
- wrapperStyle: {
12
- border:"1px solid gray"
13
- },
14
- },
15
- elements: [
16
- {
17
- type: "Control",
18
- scope: "#/properties/programType",
4
+ // {
5
+ // type: "WrapperLayout",
6
+ // config: {
7
+ // main: {
8
+ // // label: "Table Columns",
9
+ // divider: true,
10
+ // },
11
+ // wrapperStyle: {
12
+ // border:"1px solid gray"
13
+ // },
14
+ // },
15
+ // elements: [
16
+ // {
17
+ // type: "Control",
18
+ // scope: "#/properties/programType",
19
19
 
20
- options: {
21
- widget: "Box",
22
- },
23
- config: {
24
- layout: 8,
25
- main: {
26
- heading: "Event Table",
27
- },
28
- style: {
29
- fontFamily: "Roboto",
30
- fontWeight: "500",
31
- paddingLeft:"-10px",
32
- fontSize: "20px",},
33
- },
34
- },
35
- {
36
- type: "Control",
37
- scope: "#/properties/Back_Button",
20
+ // options: {
21
+ // widget: "Box",
22
+ // },
23
+ // config: {
24
+ // layout: 8,
25
+ // main: {
26
+ // heading: "Event Table",
27
+ // },
28
+ // style: {
29
+ // fontFamily: "Roboto",
30
+ // fontWeight: "500",
31
+ // paddingLeft:"-10px",
32
+ // fontSize: "20px",},
33
+ // },
34
+ // },
35
+ // {
36
+ // type: "Control",
37
+ // scope: "#/properties/Back_Button",
38
38
 
39
- options: {
40
- widget: "IconButton",
41
- },
42
- config: {
43
- layout: 3,
44
- main: {
45
- icon: "AddIcon",
46
- styleDefault: true,
47
- size: "small",
48
- onClick: "eventAddHandler",
49
- tooltipMessage: "Back",
50
- },
51
- style: {
52
- float: "right",
53
- },
54
- },
55
- },
39
+ // options: {
40
+ // widget: "IconButton",
41
+ // },
42
+ // config: {
43
+ // layout: 3,
44
+ // main: {
45
+ // icon: "AddIcon",
46
+ // styleDefault: true,
47
+ // size: "small",
48
+ // onClick: "eventAddHandler",
49
+ // tooltipMessage: "Back",
50
+ // },
51
+ // style: {
52
+ // float: "right",
53
+ // },
54
+ // },
55
+ // },
56
56
  {
57
57
  type: "Control",
58
58
  scope: "#/properties/events",
@@ -124,7 +124,7 @@ export const EventSection = {
124
124
  },
125
125
  ]
126
126
  }]}
127
- ]}
127
+ // ]}
128
128
 
129
129
  export const EventSectionSchema = {
130
130
  events: {
@@ -29,6 +29,20 @@ export const refreshSectionUiSchema = {
29
29
  type: "Control",
30
30
  scope: "#/properties/emptyBox",
31
31
 
32
+ options: {
33
+ widget: "EmptyBox",
34
+ },
35
+ config: {
36
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
37
+ main: {
38
+
39
+ },
40
+ },
41
+ },
42
+ {
43
+ type: "Control",
44
+ scope: "#/properties/emptyBox",
45
+
32
46
  options: {
33
47
  widget: "EmptyBox",
34
48
  },
@@ -187,6 +187,33 @@ export const EventUiSchema: any = (theme) => {
187
187
  },
188
188
  config: {
189
189
  main: {
190
+ headerIcons: {
191
+ elements: [
192
+ {
193
+ widget: {
194
+ type: "Control",
195
+ scope: "#/properties/New_Record",
196
+
197
+ options: {
198
+ widget: "IconButton",
199
+ },
200
+ config: {
201
+ main: {
202
+ // color: "info",
203
+ onClick: "addEvent",
204
+ size: "small",
205
+ icon: "AddIcon",
206
+ iconLabel: "Add New",
207
+ styleDefault: true,
208
+ },
209
+ style: {
210
+ mt: "6px",
211
+ },
212
+ },
213
+ }
214
+ },
215
+ ]
216
+ },
190
217
  disableAction: true,
191
218
  disableSelection: true,
192
219
  enableDrag: true,
@@ -29,12 +29,13 @@ export default (
29
29
  if (handlerType) {
30
30
  if (handlerType === "custom") {
31
31
  uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync","Run in Sync",["Yes","No"])
32
- uiSchema.elements[0].elements[0].elements[3] = emptyBox;
33
- uiSchema.elements[0].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false)
32
+ // uiSchema.elements[0].elements[0].elements[3] = emptyBox;
33
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false)
34
34
  schema.required = ["eventType", "Handler", "eventCode"]
35
35
 
36
36
  } else if (handlerType === "api") {
37
- uiSchema.elements[0].elements[0].elements[2] = APISection;
37
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
38
+ uiSchema.elements[0].elements[0].elements[3] = APISection;
38
39
  schema.required = ["eventType", "Handler", "method", "path"]
39
40
  } else if (handlerType === "inBuiltFunction") {
40
41
  uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name", [
@@ -42,10 +43,11 @@ export default (
42
43
  { label: "Download File", value: "downloadFile" },
43
44
  { label: "Download Blob File", value: "downloadBlobFile" }
44
45
  ])
45
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
46
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
46
47
  schema.required = ["eventType", "Handler", "inBuiltFunctionType"]
47
48
  } else if (handlerType === "refresh") {
48
- uiSchema.elements[0].elements[0].elements[2] = refreshSectionUiSchema;
49
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
50
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
49
51
  schema.properties.refreshElements.required = ["value"]
50
52
  schema.properties.refreshElements.items.required = ["value"]
51
53
  schema.required = ["eventType", "Handler", "refreshElements"]