impaktapps-ui-builder 0.0.412 → 0.0.592

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.
Files changed (78) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2347 -1643
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +1 -1
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +35 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +2 -2
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +20 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +1 -6
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +106 -87
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +71 -122
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +4 -106
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +58 -45
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +1 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +74 -99
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  24. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  25. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
  26. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  27. package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +1 -1
  28. package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +1 -0
  29. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +2 -1
  30. package/package.json +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -1
  32. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +6 -6
  33. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +5 -5
  34. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +1 -1
  35. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  36. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +7 -2
  37. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +13 -2
  38. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  39. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +0 -1
  40. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +1 -5
  41. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +17 -1
  42. package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +3 -0
  43. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +7 -7
  44. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -1
  45. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
  46. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -2
  47. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +100 -70
  48. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  49. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +114 -74
  50. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +30 -47
  51. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +4 -14
  52. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  53. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +34 -56
  54. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  55. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +7 -118
  56. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +78 -69
  57. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  58. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +15 -11
  59. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
  60. package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +5 -7
  61. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +85 -101
  62. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
  63. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  64. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +13 -13
  65. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  66. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  67. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +346 -172
  68. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  69. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +540 -315
  70. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +1 -0
  71. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +388 -264
  72. package/src/impaktapps-ui-builder/builder/services/component.ts +26 -9
  73. package/src/impaktapps-ui-builder/builder/services/event.ts +42 -6
  74. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +19 -3
  75. package/src/impaktapps-ui-builder/builder/services/utils.ts +0 -1
  76. package/src/impaktapps-ui-builder/runtime/services/events.ts +31 -18
  77. package/src/impaktapps-ui-builder/runtime/services/interface.ts +1 -0
  78. package/src/impaktapps-ui-builder/runtime/services/service.ts +135 -15
@@ -1,318 +1,442 @@
1
- import { getSelectField } from "../../../build/uischema/buildPropertiesSection";
1
+ import { getSelectField } from "../../../build/uischema/buildPropertiesSection";
2
2
 
3
- export const EventUiSchema: any = {
4
- type: "HorizontalLayout",
5
- elements: [
6
- {
7
- type: "WrapperLayout",
8
- config: {
9
- main: {
10
- rowSpacing: 1,
11
- header: true
3
+ export const EventUiSchema: any = (theme) => {
4
+ const uiSchema = {
5
+ type: "HorizontalLayout",
6
+ heading: "Component",
7
+ elements: [
8
+ {
9
+ type: "Control",
10
+ scope: "#/properties/pageName",
11
+
12
+ options: {
13
+ widget: "Box",
14
+ },
15
+ config: {
16
+ layout: 12,
17
+ main: {
18
+ heading: " ",
19
+ },
20
+ style: {
21
+ marginLeft: theme.spacing(3),
22
+ width:"auto",
23
+ fontSize:"12px",
24
+ color:"gray",
25
+ },
12
26
  },
13
- defaultStyle: true
14
27
  },
15
- elements: [
16
- {
17
- type: "Control",
18
- scope: "#/properties/Component",
28
+ {
29
+ type: "TabLayout",
30
+ config: {
31
+ main: {
32
+ tabLabels: ["Core", "Response Event"],
33
+ defaultStyle: true,
34
+ id: "event"
35
+ },
36
+ },
37
+
38
+ elements: [
39
+ {
40
+ type: "HorizontalLayout",
41
+ elements: [
42
+ {
43
+ type: "Control",
44
+ scope: `#/properties/eventType`,
19
45
 
20
- options: {
21
- widget: "Box",
46
+ options: {
47
+ widget: "SelectInputField",
48
+ },
49
+ config: {
50
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
51
+ main: {
52
+ label: "Event Type",
53
+ type: "text",
54
+
55
+ },
56
+ },
57
+ },
58
+ getSelectField("Handler", "Handler", [
59
+ { label: "Custom", value: "custom" },
60
+ { label: "Api", value: "api" },
61
+ { label: "Inbuilt Function", value: "inBuiltFunction" },
62
+ { label: "Refresh", value: "refresh" },
63
+ ]),
64
+ {
65
+ type: "Control",
66
+ scope: "#/properties/EmptyBox",
67
+ options: {
68
+ widget: "EmptyBox",
69
+ },
70
+ config: {
71
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
72
+ },
73
+ },
74
+ ],
22
75
  },
23
- config: {
24
- layout: {xs:12,sm:12,md:2},
25
- main: {
26
- heading: "Component",
76
+ {
77
+ type: "Control",
78
+ scope: "#/properties/events",
79
+ options: {
80
+ widget: "Table",
27
81
  },
28
- style:{
29
- "float":"left",
30
- }
82
+ config: {
83
+ main: {
84
+ headerIcons: {
85
+ elements: [
86
+ {
87
+ widget: {
88
+ type: "Control",
89
+ scope: "#/properties/New_Record",
90
+
91
+ options: {
92
+ widget: "IconButton",
93
+ },
94
+ config: {
95
+ main: {
96
+ // color: "info",
97
+ onClick: "addEvent",
98
+ size: "small",
99
+ icon: "AddIcon",
100
+ iconLabel: "Add New",
101
+ styleDefault: true,
102
+ },
103
+ style: {
104
+ mt: "6px",
105
+ },
106
+ },
107
+ }
108
+ },
109
+ ]
110
+ },
111
+ disableAction: true,
112
+ disableSelection: true,
113
+ enableDrag: true,
114
+
115
+ },
116
+ },
117
+ elements: [
118
+
119
+ {
120
+ accessorKey: "eventType",
121
+ header: "Event Type",
122
+ },
123
+ {
124
+ accessorKey: "Handler",
125
+ header: "Handler",
126
+ },
127
+ {
128
+ accessorKey: "Edit_Approve_Records",
129
+ header: "Edit Widget",
130
+ widget: {
131
+ type: "Control",
132
+ scope: "#/properties/Edit_Records",
133
+ options: {
134
+ widget: "IconButton",
135
+ },
136
+ config: {
137
+ main: {
138
+ color: "info",
139
+ size: "small",
140
+ icon: "EditIcon",
141
+ tooltipMessage: "Edit This Record",
142
+ onClick: "editEvent",
143
+ },
144
+ style: {
145
+ color: theme.palette.primary.main,
146
+ },
147
+ },
148
+ },
149
+ },
150
+ {
151
+ accessorKey: "Reject_Records",
152
+ header: "Delete",
153
+ widget: {
154
+ type: "Control",
155
+ scope: "#/properties/RejectButton",
156
+ options: {
157
+ widget: "IconButton",
158
+ },
159
+ config: {
160
+ main: {
161
+ icon: "RejectIcon",
162
+ color: "error",
163
+ tooltipMessage: "Reject This Record",
164
+ onClick: "deletePopUpEvent",
165
+ },
166
+ },
167
+ },
168
+ },
169
+ ]
170
+ // }]
171
+ }
172
+ ],
173
+ },
174
+ {
175
+ type: "Control",
176
+ scope: "#/properties/EmptyBox",
177
+ options: {
178
+ widget: "EmptyBox",
179
+ },
180
+ config: {
181
+ layout: { xs: 4, sm: 8 },
182
+ },
183
+ },
184
+ {
185
+ type: "Control",
186
+ scope: "#/properties/btn",
187
+ options: {
188
+ widget: "Button",
189
+ },
190
+
191
+ config: {
192
+ layout: { xs: 4, sm: 2 },
193
+ main: {
194
+ name: "Ok",
195
+ startIcon: "ApproveIcon",
196
+ variant: "contained",
197
+ // color: "info",
198
+ type: "text",
199
+ onClick: "okHandler",
200
+ size: "medium",
201
+ },
202
+ style: {
203
+ float: "right",
31
204
  },
32
205
  },
33
-
34
- {
35
- type: "Control",
36
- scope: "#/properties/pageName",
37
-
38
- options: {
39
- widget: "Box",
206
+ },
207
+ {
208
+ type: "Control",
209
+ scope: "#/properties/btnSubmit",
210
+ options: {
211
+ widget: "Button",
212
+ },
213
+
214
+ config: {
215
+ layout: { xs: 4, sm: 2 },
216
+ main: {
217
+ name: "Save & Exit",
218
+ startIcon: "ApproveIcon",
219
+ variant: "contained",
220
+ // color: "info",
221
+ type: "text",
222
+ onClick: "saveHandler",
223
+ size: "medium",
40
224
  },
41
- config: {
42
- layout: {xs:7,sm:7,md:9},
43
- main: {
44
- heading: " ",
45
- },
46
- style: {
47
- float: "right",
48
- width:"auto",
49
- fontSize:"12px",
50
- color:"gray",
51
- paddingTop:"10px"
52
- },
225
+ style: {
226
+ float: "right",
53
227
  },
54
228
  },
55
-
56
- {
57
- type: "Control",
58
- scope: "#/properties/Back_Button",
59
-
60
- options: {
61
- widget: "IconButton",
229
+ },
230
+ {
231
+ type: "Control",
232
+ scope: "#/properties/popUpEvent",
233
+ options: {
234
+ widget: "PopUp"
235
+ },
236
+ config: {
237
+ layout: {
238
+ xs: 12,
239
+ sm: 12,
240
+ md: 6,
241
+ lg: 6,
62
242
  },
63
- config: {
64
- layout: {xs:2,sm:2,md:0.5},
65
- main: {
66
- icon: "BackIcon",
67
- styleDefault: true,
68
- size: "small",
69
- onClick: "backHandler",
70
- tooltipMessage: "Back",
243
+ main: {
244
+ },
245
+ style: {
246
+ "& .MuiPaper-root":{
247
+ width: '30%',
71
248
  },
72
- style: {
73
- float: "right",
249
+ "& .MuiTypography-root":{
250
+ padding: 0
74
251
  },
75
- },
76
- },
77
- ],
78
- },
79
- {
80
- type: "TabLayout",
81
- config: {
82
- main: {
83
- tabLabels: ["Core", "Response Event"],
84
- defaultStyle: true,
85
- id: "event"
252
+ wrapperStyle: {
253
+ width: { xs: "100%", sm: "100%", md: "98%" },
254
+ }
255
+ }
86
256
  },
87
- },
88
-
89
- elements: [
90
- {
91
- type: "HorizontalLayout",
92
- elements: [
257
+ elements:
258
+ [
93
259
  {
94
260
  type: "Control",
95
- scope: `#/properties/eventType`,
96
-
261
+ scope: "#/properties/label",
97
262
  options: {
98
- widget: "SelectInputField",
263
+ widget: "Box",
99
264
  },
100
265
  config: {
101
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
266
+ layout: 12,
102
267
  main: {
103
- label: "Event Type",
104
- type: "text",
105
-
268
+ heading: "Are you sure you want to delete ?",
106
269
  },
270
+ style: {
271
+ marginTop: "-40px"
272
+ }
107
273
  },
108
274
  },
109
- getSelectField("Handler", "Handler", [
110
- { label: "Custom", value: "custom" },
111
- { label: "Api", value: "api" },
112
- { label: "Inbuilt Function", value: "inBuiltFunction" },
113
- { label: "Refresh", value: "refresh" },
114
- ]),
115
- ],
116
- },
117
- {
118
- type: "WrapperLayout",
119
- config: {
120
- main: {
121
- // label: "Success Case Event",
122
- divider: true,
123
- },
124
- wrapperStyle: {
125
- border: "1px solid gray"
126
- },
127
- },
128
- elements: [
129
275
  {
130
276
  type: "Control",
131
- scope: "#/properties/heading",
132
-
277
+ scope: "#/properties/EmptyBox",
133
278
  options: {
134
- widget: "Box",
279
+ widget: "EmptyBox",
135
280
  },
136
281
  config: {
137
- layout: 8,
138
- main: {
139
- heading: "Response Event",
140
- },
141
- style: {
142
- fontFamily: "Roboto",
143
- fontWeight: "500",
144
- paddingLeft: "-10px",
145
- fontSize: "20px",
146
- },
282
+ main: {},
283
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
147
284
  },
148
285
  },
149
286
  {
150
287
  type: "Control",
151
- scope: "#/properties/AddButton",
288
+ scope: "#/properties/ConfirmDeleteEventButton",
152
289
  options: {
153
- widget: "IconButton",
290
+ widget: "Button",
154
291
  },
155
292
  config: {
156
293
  layout: 3,
157
294
  main: {
158
- icon: "AddIcon",
159
- styleDefault: true,
295
+ name: "Yes",
296
+ startIcon: "ApproveIcon",
297
+ variant: "contained",
298
+ color: "error",
299
+ type: "text",
300
+ onClick: "deleteEvent",
160
301
  size: "small",
161
- onClick: "addEvent",
162
- tooltipMessage: "Back",
163
- },
164
- style: {
165
- float: "right",
166
302
  },
167
303
  },
168
304
  },
169
-
170
305
  {
171
306
  type: "Control",
172
- scope: "#/properties/events",
307
+ scope: "#/properties/CancelDeleteEventButton",
173
308
  options: {
174
- widget: "Table",
309
+ widget: "Button",
175
310
  },
176
311
  config: {
312
+ layout: 3,
177
313
  main: {
178
- disableAction: true,
179
- disableSelection: true,
180
- enableDrag: true,
181
-
314
+ name: "No",
315
+ startIcon: "ApproveIcon",
316
+ variant: "contained",
317
+ color: "info",
318
+ type: "text",
319
+ onClick: "deletePopUpEvent",
320
+ size: "small",
182
321
  },
183
322
  },
184
- elements: [
185
-
186
- {
187
- accessorKey: "eventType",
188
- header: "Event Type",
189
- },
190
- {
191
- accessorKey: "Handler",
192
- header: "Handler",
193
- },
194
- {
195
- accessorKey: "Edit_Approve_Records",
196
- header: "Edit Widget",
197
- widget: {
198
- type: "Control",
199
- scope: "#/properties/Edit_Records",
200
- options: {
201
- widget: "IconButton",
202
- },
203
- config: {
204
- main: {
205
- color: "info",
206
- size: "small",
207
- icon: "EditIcon",
208
- tooltipMessage: "Edit This Record",
209
- onClick: "editEvent",
210
- },
211
- style: {
212
- color: "#3949ab",
213
- },
214
- },
215
- },
216
- },
217
- {
218
- accessorKey: "Reject_Records",
219
- header: "Delete",
220
- widget: {
221
- type: "Control",
222
- scope: "#/properties/RejectButton",
223
- options: {
224
- widget: "IconButton",
225
- },
226
- config: {
227
- main: {
228
- icon: "RejectIcon",
229
- color: "error",
230
- tooltipMessage: "Reject This Record",
231
- onClick: "deleteEvent",
232
- },
233
- },
234
- },
235
- },
236
- ]
237
- }]
238
- }
239
- ],
240
- },
241
- {
242
- type: "Control",
243
- scope: "#/properties/proc",
244
- config: {
245
- layout: { xs: 11, sm: 11, md: 6, lg: 6 },
246
- },
247
- options: {
248
- widget: "EmptyBox",
249
- },
250
- },
251
- {
252
- type: "Control",
253
- scope: "#/properties/btn",
254
- options: {
255
- widget: "Button",
323
+ },
324
+ ]
256
325
  },
257
-
258
- config: {
259
- layout: {
260
- xs: 11,
261
- sm: 11,
262
- md: 2.5,
263
- lg: 2.5,
264
- },
265
- main: {
266
- name: "Ok",
267
- startIcon: "ApproveIcon",
268
- variant: "contained",
269
- color: "info",
270
- type: "text",
271
- onClick: "okHandler",
272
- size: "small",
273
- },
274
- style: {
275
- marginBottom: "8px",
276
- float: "right",
326
+ {
327
+ type: "Control",
328
+ scope: "#/properties/notify",
329
+ options: {
330
+ widget: "Notify",
277
331
  },
332
+ layout: 6,
278
333
  },
279
- },
280
- {
281
- type: "Control",
282
- scope: "#/properties/btnSubmit",
283
- options: {
284
- widget: "Button",
285
- },
286
-
287
- config: {
288
- layout: {
289
- xs: 11,
290
- sm: 11,
291
- md: 2.5,
292
- lg: 2.5,
293
- },
294
- main: {
295
- name: "Save & Exit",
296
- startIcon: "ApproveIcon",
297
- variant: "contained",
298
- color: "info",
299
- type: "text",
300
- onClick: "saveHandler",
301
- size: "small",
302
- },
303
- style: {
304
- marginBottom: "8px",
305
- float: "right",
334
+ {
335
+ type: "HorizontalLayout",
336
+ config: {
337
+ main: {
338
+ direction: 'row'
339
+ },
340
+ style: {
341
+ flexDirection: "row",
342
+ position: "absolute",
343
+ bottom: 0,
344
+ marginBottom: '-8px',
345
+ height: 'fit-content',
346
+ overflow: 'hidden',
347
+ zIndex: 1000,
348
+ width: 'inherit'
349
+ }
306
350
  },
307
- },
308
- },
309
- {
310
- type: "Control",
311
- scope: "#/properties/notify",
312
- options: {
313
- widget: "Notify",
314
- },
315
- layout: 6,
316
- }
317
- ],
318
- };
351
+ elements: [
352
+ {
353
+
354
+ type: "Control",
355
+ scope: "#/properties/FooterText",
356
+ options: {
357
+ widget: "Box",
358
+ },
359
+ config: {
360
+ main: {
361
+ heading: "Copywriter@ACT21.IO"
362
+ },
363
+ style: {
364
+ color: theme?.palette?.text.disabled || "#AFAFAF",
365
+ fontSize: '12px',
366
+ textAlign: 'center',
367
+ lineHeight: 1,
368
+ width: 'fit-content',
369
+ left: '50%',
370
+ position: 'relative',
371
+ margin: 0,
372
+ flexGrow: 1,
373
+ height: 0
374
+ }
375
+ },
376
+ },
377
+ {
378
+ type: "Control",
379
+ scope: "#/properties/backIcon",
380
+ options: {
381
+ widget: "Box",
382
+ },
383
+ config: {
384
+ main: {
385
+ iconName: 'PrevIcon',
386
+ onClick: "backHandler",
387
+ width: 'fit-content',
388
+ },
389
+ style: {
390
+ fill: theme.palette.primary.main,
391
+ width: 20,
392
+ height: 0,
393
+ margin: 0,
394
+ top: 0,
395
+ right: {xs: '12px', sm: '84px'},
396
+ position: 'absolute',
397
+ fontSize: '12px',
398
+ cursor: 'pointer',
399
+ ':hover': {
400
+ fill: theme.palette.primary.dark,
401
+ }
402
+ }
403
+ }
404
+ },
405
+ {
406
+ type: "Control",
407
+ scope: "#/properties/text",
408
+
409
+ options: {
410
+ widget: "Box",
411
+ },
412
+ config: {
413
+ main: {
414
+ heading: "Previous Page",
415
+ onClick: "backHandler"
416
+ },
417
+ style: {
418
+ display: {xs: 'none', sm: "flex"},
419
+ textAlign: 'left',
420
+ lineHeight: 1,
421
+ height: 0,
422
+ width: 'fit-content',
423
+ color: theme.palette.primary.main,
424
+ fontSize: "12px",
425
+ cursor: 'pointer',
426
+ marginLeft: '2px',
427
+ marginRight: 0,
428
+ top: 3,
429
+ right: '12px',
430
+ position: 'absolute',
431
+ ':hover': {
432
+ color: theme.palette.primary.dark,
433
+ }
434
+ }
435
+ },
436
+ },
437
+ ]
438
+ }
439
+ ],
440
+ };
441
+ return uiSchema;
442
+ }