impaktapps-ui-builder 1.0.67-alpha.4 → 1.0.67-alpha.6

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.
@@ -41,20 +41,7 @@ export declare const EventSection: (theme: any) => {
41
41
  disableSelection: boolean;
42
42
  enableDrag: boolean;
43
43
  };
44
- };
45
- elements: ({
46
- accessorKey: string;
47
- header: string;
48
- type: string;
49
- size: number;
50
- widget?: undefined;
51
- field?: undefined;
52
- } | {
53
- accessorKey: string;
54
- header: string;
55
- size: number;
56
- type: string;
57
- widget: {
44
+ action: ({
58
45
  type: string;
59
46
  scope: string;
60
47
  options: {
@@ -63,27 +50,16 @@ export declare const EventSection: (theme: any) => {
63
50
  config: {
64
51
  main: {
65
52
  size: string;
66
- icon: string;
53
+ startIcon: string;
67
54
  tooltipMessage: string;
68
55
  onClick: string;
56
+ icon?: undefined;
57
+ name?: undefined;
69
58
  styleDefault?: undefined;
70
59
  };
71
- style: {
72
- fill: any;
73
- "& :hover": {
74
- fill: any;
75
- };
76
- };
77
60
  };
78
61
  accessorKeyName?: undefined;
79
- };
80
- field?: undefined;
81
- } | {
82
- accessorKey: string;
83
- header: string;
84
- size: number;
85
- type: string;
86
- widget: {
62
+ } | {
87
63
  type: string;
88
64
  scope: string;
89
65
  accessorKeyName: string;
@@ -95,24 +71,13 @@ export declare const EventSection: (theme: any) => {
95
71
  icon: string;
96
72
  tooltipMessage: string;
97
73
  onClick: string;
98
- size?: undefined;
74
+ name: string;
75
+ size: string;
76
+ startIcon?: undefined;
99
77
  styleDefault?: undefined;
100
78
  };
101
- style: {
102
- fill: any;
103
- "& :hover": {
104
- fill: any;
105
- };
106
- };
107
79
  };
108
- };
109
- field?: undefined;
110
- } | {
111
- header: string;
112
- field: string;
113
- size: number;
114
- type: string;
115
- widget: {
80
+ } | {
116
81
  type: string;
117
82
  scope: string;
118
83
  options: {
@@ -120,18 +85,24 @@ export declare const EventSection: (theme: any) => {
120
85
  };
121
86
  config: {
122
87
  main: {
123
- icon: string;
88
+ startIcon: string;
124
89
  onClick: string;
125
90
  tooltipMessage: string;
126
91
  styleDefault: boolean;
92
+ name: string;
127
93
  size?: undefined;
94
+ icon?: undefined;
128
95
  };
129
- style?: undefined;
130
96
  };
131
97
  accessorKeyName?: undefined;
132
- };
133
- accessorKey?: undefined;
134
- })[];
98
+ })[];
99
+ };
100
+ elements: {
101
+ accessorKey: string;
102
+ header: string;
103
+ type: string;
104
+ size: number;
105
+ }[];
135
106
  }[];
136
107
  };
137
108
  export declare const EventSectionSchema: {
@@ -41,20 +41,7 @@ export declare const TableSection: (theme: any) => {
41
41
  disableSelection: boolean;
42
42
  enableDrag: boolean;
43
43
  };
44
- };
45
- elements: ({
46
- accessorKey: string;
47
- header: string;
48
- type: string;
49
- size: number;
50
- field?: undefined;
51
- widget?: undefined;
52
- } | {
53
- header: string;
54
- field: string;
55
- size: number;
56
- type: string;
57
- widget: {
44
+ action: ({
58
45
  type: string;
59
46
  scope: string;
60
47
  options: {
@@ -62,28 +49,15 @@ export declare const TableSection: (theme: any) => {
62
49
  };
63
50
  config: {
64
51
  main: {
65
- icon: string;
52
+ startIcon: string;
66
53
  size: string;
67
54
  onClick: string;
68
55
  tooltipMessage: string;
56
+ name: string;
69
57
  styleDefault?: undefined;
70
- disabled?: undefined;
71
- };
72
- style: {
73
- fill: any;
74
- "& :hover": {
75
- fill: any;
76
- };
77
58
  };
78
59
  };
79
- };
80
- accessorKey?: undefined;
81
- } | {
82
- header: string;
83
- field: string;
84
- size: number;
85
- type: string;
86
- widget: {
60
+ } | {
87
61
  type: string;
88
62
  scope: string;
89
63
  options: {
@@ -91,47 +65,22 @@ export declare const TableSection: (theme: any) => {
91
65
  };
92
66
  config: {
93
67
  main: {
94
- icon: string;
95
- onClick: string;
96
- tooltipMessage: string;
97
- size?: undefined;
98
- styleDefault?: undefined;
99
- disabled?: undefined;
100
- };
101
- style: {
102
- fill: any;
103
- "& :hover": {
104
- fill: any;
105
- };
106
- };
107
- };
108
- };
109
- accessorKey?: undefined;
110
- } | {
111
- header: string;
112
- field: string;
113
- size: number;
114
- type: string;
115
- widget: {
116
- type: string;
117
- scope: string;
118
- options: {
119
- widget: string;
120
- };
121
- config: {
122
- main: {
123
- icon: string;
68
+ startIcon: string;
124
69
  onClick: string;
125
70
  styleDefault: boolean;
126
- disabled: boolean;
71
+ name: string;
127
72
  size?: undefined;
128
73
  tooltipMessage?: undefined;
129
74
  };
130
- style?: undefined;
131
75
  };
132
- };
133
- accessorKey?: undefined;
134
- })[];
76
+ })[];
77
+ };
78
+ elements: {
79
+ accessorKey: string;
80
+ header: string;
81
+ type: string;
82
+ size: number;
83
+ }[];
135
84
  }[];
136
85
  };
137
86
  export declare const TableSectionSchema: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.67-alpha.4",
3
+ "version": "1.0.67-alpha.6",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -74,95 +74,70 @@ export const EventSection = (theme)=>{
74
74
  enableDrag: true,
75
75
 
76
76
  },
77
- },
78
- elements: [
79
-
80
- {
81
- accessorKey: "eventType",
82
- header: "Event's Type",
83
- type: "string",
84
- size: 300,
85
- },
86
- {
87
- accessorKey: "Handler",
88
- header: "Handler",
89
- type: "string",
90
- size: 200,
91
- },
92
- {
93
- accessorKey: "Edit_Approve_Records",
94
- header: "Edit",
95
- size: 150,
96
- type: "action",
97
- widget: {
77
+ action: [
78
+ {
98
79
  type: "Control",
99
80
  scope: "#/properties/Edit_Records",
100
81
  options: {
101
- widget: "IconButton",
82
+ widget: "Button",
102
83
  },
103
84
  config: {
104
85
  main: {
105
86
  size: "small",
106
- icon: "TableEditIcon",
87
+ startIcon: "EditIcon",
107
88
  tooltipMessage: "Edit This Record",
108
89
  onClick: "eventEditHandler",
109
90
  },
110
- style: {
111
- fill: theme.palette.primary.main,
112
- "& :hover": {
113
- fill: theme.palette.primary.dark,
114
- },
115
- },
116
91
  },
117
92
  },
118
- },
119
- {
120
- accessorKey: "Reject_Records",
121
- header: "Delete",
122
- size: 150,
123
- type: "action",
124
- widget: {
93
+ {
125
94
  type: "Control",
126
95
  scope: "#/properties/RejectButton",
127
96
  accessorKeyName: "Reject_Records",
128
97
  options: {
129
- widget: "IconButton",
98
+ widget: "Button",
130
99
  },
131
100
  config: {
132
101
  main: {
133
102
  icon: "Bin",
134
103
  tooltipMessage: "Reject This Record",
135
104
  onClick: "deletePopUpEvent",
136
- },
137
- style: {
138
- fill: theme.palette.primary.main,
139
- "& :hover": {
140
- fill: theme.palette.primary.dark,
141
- },
105
+ name: "Delete",
106
+ size: "small"
142
107
  },
143
108
  },
144
109
  },
145
- },
146
- {
147
- header: "Copy",
148
- field: "Copy_Event",
149
- size: 150,
150
- type: "action",
151
- widget: {
110
+ {
152
111
  type: "Control",
153
112
  scope: "#/properties/Copy_Event",
154
113
  options: {
155
- widget: "IconButton",
114
+ widget: "Button",
156
115
  },
157
116
  config: {
158
117
  main: {
159
- icon: "FileCopyIcon",
118
+ startIcon: "FileCopyIcon",
160
119
  onClick: "copyPasteElement",
161
120
  tooltipMessage: "Reject This Record",
162
- styleDefault: true,
121
+ styleDefault: false,
122
+ name: "Copy"
163
123
  },
164
124
  },
165
125
  },
126
+ ]
127
+ },
128
+ elements: [
129
+
130
+ {
131
+ accessorKey: "eventType",
132
+ header: "Event's Type",
133
+ type: "string",
134
+ size: 300,
135
+ },
136
+ {
137
+ accessorKey: "Handler",
138
+ header: "Handler",
139
+ type: "string",
140
+ size: 200,
166
141
  },
167
142
  ]
168
143
  }]}
@@ -74,93 +74,68 @@ export const TableSection = (theme) => {
74
74
  enableDrag: true,
75
75
 
76
76
  },
77
- },
78
- elements: [
79
- {
80
- accessorKey: "name",
81
- header: "Name",
82
- type: "string",
83
- size: 300,
84
- },
85
- {
86
- accessorKey: "type",
87
- header: "Type",
88
- type: "string",
89
- size: 200,
90
- },
91
- {
92
- header: "Edit Record",
93
- field: "Reject_Records",
94
- size: 150,
95
- type: "action",
96
- widget: {
77
+ action: [
78
+ {
97
79
  type: "Control",
98
80
  scope: "#/properties/RejectButton",
99
81
  options: {
100
- widget: "IconButton",
82
+ widget: "Button",
101
83
  },
102
84
  config: {
103
85
  main: {
104
- icon: "TableEditIcon",
86
+ startIcon: "EditIcon",
105
87
  size: "small",
106
88
  onClick: "editComponents",
107
89
  tooltipMessage: "Reject This Record",
108
- },
109
- style: {
110
- fill: theme.palette.primary.main,
111
- "& :hover": {
112
- fill: theme.palette.primary.dark,
113
- },
90
+ name: "Edit"
114
91
  },
115
92
  },
116
93
  },
117
- },
118
- {
119
- header: "Delete",
120
- field: "Reject_Records",
121
- size: 150,
122
- type: "action",
123
- widget: {
94
+ {
124
95
  type: "Control",
125
96
  scope: "#/properties/RejectButton",
126
97
  options: {
127
- widget: "IconButton",
98
+ widget: "Button",
128
99
  },
129
100
  config: {
130
101
  main: {
131
- icon: "Bin",
102
+ startIcon: "Bin",
132
103
  onClick: "deletePopUpComponent",
133
104
  tooltipMessage: "Reject This Record",
134
- },
135
- style: {
136
- fill: theme.palette.primary.main,
137
- "& :hover": {
138
- fill: theme.palette.primary.dark,
139
- },
105
+ name: "Delete",
106
+ size: "small"
140
107
  },
141
108
  },
142
109
  },
143
- },
144
- {
145
- header: "Copy",
146
- field: "Copy_Component",
147
- size: 150,
148
- type: "action",
149
- widget: {
110
+ {
150
111
  type: "Control",
151
112
  scope: "#/properties/Copy_Component",
152
113
  options: {
153
- widget: "IconButton",
114
+ widget: "Button",
154
115
  },
155
116
  config: {
156
117
  main: {
157
- icon: "FileCopyIcon",
118
+ startIcon: "FileCopyIcon",
158
119
  onClick: "copyPasteElement",
159
- styleDefault: true,
160
- disabled: false
120
+ styleDefault: false,
121
+ name: "Copy"
161
122
  },
162
123
  },
163
124
  },
125
+ ]
126
+ },
127
+ elements: [
128
+ {
129
+ accessorKey: "name",
130
+ header: "Name",
131
+ type: "string",
132
+ size: 300,
133
+ },
134
+ {
135
+ accessorKey: "type",
136
+ header: "Type",
137
+ type: "string",
138
+ size: 200,
164
139
  },
165
140
  ]
166
141
  }]
@@ -239,6 +239,34 @@ export const PageMasterUiSchema: any = (theme) => {
239
239
  size: 300,
240
240
  type: "string"
241
241
  },
242
+
243
+ {
244
+ header: "Edit",
245
+ field: "Reject_Records",
246
+ size: 150,
247
+ type: "action",
248
+ widget: {
249
+ type: "Control",
250
+ scope: "#/properties/RejectButton",
251
+ options: {
252
+ widget: "IconButton",
253
+ },
254
+ config: {
255
+ main: {
256
+ icon: "TableEditIcon",
257
+ onClick: "Edit_Components",
258
+ tooltipMessage: "Edit This Record",
259
+ },
260
+ style: {
261
+ fill: theme.palette.primary.main,
262
+ "& :hover": {
263
+ fill: theme.palette.primary.dark,
264
+ },
265
+ },
266
+ },
267
+ },
268
+ },
269
+
242
270
  ]
243
271
  },
244
272
  {
@@ -325,7 +353,7 @@ export const PageMasterUiSchema: any = (theme) => {
325
353
  config: {
326
354
  main: {
327
355
  size: "small",
328
- startIcon: "TableEditIcon",
356
+ startIcon: "EditIcon",
329
357
  tooltipMessage: "Edit This Record",
330
358
  onClick: "editEvent",
331
359
  name: "Edit"
@@ -145,54 +145,24 @@ export const EventUiSchema: any = (theme) => {
145
145
  enableDrag: true,
146
146
 
147
147
  },
148
- },
149
- elements: [
150
-
151
- {
152
- accessorKey: "eventType",
153
- header: "Event's Type",
154
- size: 300,
155
- type: "string"
156
- },
157
- {
158
- accessorKey: "Handler",
159
- header: "Handler",
160
- size: 200,
161
- type: "string"
162
- },
163
- {
164
- accessorKey: "Edit_Approve_Records",
165
- header: "Edit",
166
- type: "action",
167
- size: 150,
168
- widget: {
148
+ action: [
149
+ {
169
150
  type: "Control",
170
151
  scope: "#/properties/Edit_Records",
171
152
  options: {
172
- widget: "IconButton",
153
+ widget: "Button",
173
154
  },
174
155
  config: {
175
156
  main: {
176
157
  size: "small",
177
- icon: "TableEditIcon",
158
+ startIcon: "EditIcon",
178
159
  tooltipMessage: "Edit This Record",
179
160
  onClick: "editEvent",
180
- },
181
- style: {
182
- fill: theme.palette.primary.main,
183
- "& :hover": {
184
- fill: theme.palette.primary.dark,
185
- },
161
+ name: "Edit"
186
162
  },
187
163
  },
188
164
  },
189
- },
190
- {
191
- accessorKey: "Reject_Records",
192
- header: "Delete",
193
- type: "action",
194
- size: 150,
195
- widget: {
165
+ {
196
166
  type: "Control",
197
167
  scope: "#/properties/RejectButton",
198
168
  options: {
@@ -200,39 +170,45 @@ export const EventUiSchema: any = (theme) => {
200
170
  },
201
171
  config: {
202
172
  main: {
203
- icon: "Bin",
173
+ startIcon: "Bin",
204
174
  tooltipMessage: "Reject This Record",
205
175
  onClick: "deletePopUpEvent",
206
- },
207
- style: {
208
- fill: theme.palette.primary.main,
209
- "& :hover": {
210
- fill: theme.palette.primary.dark,
211
- },
176
+ name: "Delete",
177
+ size: "small"
212
178
  },
213
179
  },
214
180
  },
215
- },
216
-
217
- {
218
- header: "Copy",
219
- field: "Copy_Event",
220
- type: "action",
221
- size: 150,
222
- widget: {
181
+ {
223
182
  type: "Control",
224
183
  scope: "#/properties/Copy_Event",
225
184
  options: {
226
- widget: "IconButton",
185
+ widget: "Button",
227
186
  },
228
187
  config: {
229
188
  main: {
230
- icon: "FileCopyIcon",
189
+ startIcon: "FileCopyIcon",
231
190
  onClick: "copyPasteElement",
232
- styleDefault: true,
191
+ styleDefault: false,
192
+ name: "Copy",
193
+ size: "small"
233
194
  },
234
195
  },
235
196
  },
197
+ ]
198
+ },
199
+ elements: [
200
+
201
+ {
202
+ accessorKey: "eventType",
203
+ header: "Event's Type",
204
+ size: 300,
205
+ type: "string"
206
+ },
207
+ {
208
+ accessorKey: "Handler",
209
+ header: "Handler",
210
+ size: 200,
211
+ type: "string"
236
212
  },
237
213
  ]
238
214
  }