impaktapps-ui-builder 1.0.67-alpha.3 → 1.0.67-alpha.5

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.
@@ -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
  }