impaktapps-ui-builder 0.0.596 → 0.0.751

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 (82) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2208 -1683
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +14 -14
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -1
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  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 +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +23 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +170 -82
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +52 -23
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  17. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/{lazyLoadingTable.d.ts → thoughtOfTheDay.d.ts} +6 -4
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
  21. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  22. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  23. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  24. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  25. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  26. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +4 -4
  27. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
  28. package/package.json +5 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +11 -7
  30. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  32. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +21 -13
  33. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
  34. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
  35. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -2
  36. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +7 -16
  37. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +1 -1
  38. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  39. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  40. package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +1 -1
  41. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +19 -4
  42. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +23 -29
  43. package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +6 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +27 -12
  46. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  47. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +10 -10
  48. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +111 -56
  49. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +1 -2
  50. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +188 -90
  51. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +11 -11
  52. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -3
  53. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
  54. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -2
  55. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -29
  56. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -367
  57. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  58. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  59. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  60. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +3 -3
  61. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  62. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -1
  63. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  64. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -1
  65. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  66. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  67. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +3 -3
  68. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +3 -3
  69. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +37 -2
  70. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +283 -182
  71. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  72. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +344 -130
  73. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  74. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +194 -80
  75. package/src/impaktapps-ui-builder/builder/services/component.ts +105 -26
  76. package/src/impaktapps-ui-builder/builder/services/event.ts +50 -9
  77. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +32 -14
  78. package/src/impaktapps-ui-builder/builder/services/utils.ts +13 -13
  79. package/src/impaktapps-ui-builder/lib/index.ts +1 -1
  80. package/src/impaktapps-ui-builder/runtime/services/events.ts +26 -23
  81. package/src/impaktapps-ui-builder/runtime/services/service.ts +61 -62
  82. package/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.ts +0 -15
@@ -41,6 +41,7 @@ export const ComponentSchema: any = {
41
41
  { title: "Upload File", const: "UploadFile" },
42
42
  { title: "TreeMap", const: "TreeMap" },
43
43
  { title: "ColumnGroup", const: "ColumnGroup" },
44
+ { title: "Thought of the Day", const: "Thought" },
44
45
  ]
45
46
  },
46
47
  columnFormat: {
@@ -69,7 +70,7 @@ export const ComponentSchema: any = {
69
70
  type: "array",
70
71
  items: {
71
72
  type: "object",
72
- properties: {
73
+ properties: {
73
74
  key: {
74
75
  type: "string",
75
76
  oneOf: [
@@ -190,6 +191,36 @@ export const ComponentSchema: any = {
190
191
  },
191
192
  },
192
193
  },
194
+ enableColumnFilter:{
195
+ type: "array",
196
+ items: {
197
+ type: "object",
198
+ properties: {
199
+ keyName: {
200
+ type: "string",
201
+ },
202
+ },
203
+ },
204
+ },
205
+ filteringOptions:{
206
+ type: "array",
207
+ items:{
208
+ oneOf: [
209
+ { const: 'fuzzy', title: 'Fuzzy' },
210
+ { const: 'contains', title: 'Contain' },
211
+ { const: 'startsWith', title: 'Starts with' },
212
+ { const: 'endsWith', title: 'Ends with' },
213
+ { const: 'equals', title: 'Equals' },
214
+ { const: 'notEquals', title: 'Not Equals' },
215
+ { const: 'between', title: 'Between' },
216
+ { const: 'betweenInclusive', title: 'Between inclusive' },
217
+ { const: 'greaterThan', title: 'Greater than' },
218
+ { const: 'greaterThanOrEqualTo', title: 'Greater than or equal to' },
219
+ { const: 'lessThan', title: 'Less than' },
220
+ { const: 'lessThanOrEqualTo', title: 'Less than or equal to' },
221
+ ]
222
+ },
223
+ },
193
224
  legendLabels: {
194
225
  type: "array",
195
226
  items: {
@@ -273,6 +304,7 @@ export const ComponentSchema: any = {
273
304
  { title: "Line Graph", const: "LineGraph" },
274
305
  { title: "Pie Graph", const: "PieGraph" },
275
306
  { title: "Horizontal Bar Graph", const: "HorizontalBarGraph" },
307
+ { title: "Stack Horizontal Bar Graph", const: "HorizontalStackBarGraph" }
276
308
  ]
277
309
  },
278
310
  iconName: {
@@ -310,7 +342,10 @@ export const ComponentSchema: any = {
310
342
  name: {
311
343
  type: "string",
312
344
  },
313
- label: { type: 'string' }
345
+ label: { type: 'string' },
346
+ RemoveItemButton:{
347
+ disabled: true,
348
+ },
314
349
  },
315
350
 
316
351
  required: ["name",]
@@ -45,7 +45,7 @@ export const componentBasicUiSchema: any = (theme)=>{
45
45
  widget: "SelectInputField",
46
46
  },
47
47
  config: {
48
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
48
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
49
49
  main: {
50
50
  label: "Type",
51
51
  },
@@ -59,7 +59,7 @@ export const componentBasicUiSchema: any = (theme)=>{
59
59
  widget: "InputField",
60
60
  },
61
61
  config: {
62
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
62
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
63
63
  main: {
64
64
  label: "Name",
65
65
  options: [],
@@ -76,7 +76,7 @@ export const componentBasicUiSchema: any = (theme)=>{
76
76
  widget: "InputField",
77
77
  },
78
78
  config: {
79
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
79
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
80
80
  main: {
81
81
  label: "Label",
82
82
  options: [],
@@ -92,7 +92,7 @@ export const componentBasicUiSchema: any = (theme)=>{
92
92
  widget: "SelectInputField",
93
93
  },
94
94
  config: {
95
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
95
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
96
96
  main: {
97
97
  label: "Column Format",
98
98
 
@@ -103,7 +103,7 @@ export const componentBasicUiSchema: any = (theme)=>{
103
103
  type: "Control",
104
104
  scope: "#/properties/proc",
105
105
  config: {
106
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
106
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 },
107
107
  },
108
108
  options: {
109
109
  widget: "EmptyBox",
@@ -113,7 +113,7 @@ export const componentBasicUiSchema: any = (theme)=>{
113
113
  type: "Control",
114
114
  scope: "#/properties/proc",
115
115
  config: {
116
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
116
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 },
117
117
  },
118
118
  options: {
119
119
  widget: "EmptyBox",
@@ -134,7 +134,7 @@ export const componentBasicUiSchema: any = (theme)=>{
134
134
  widget: "SelectInputField",
135
135
  },
136
136
  config: {
137
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
137
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
138
138
  main: {
139
139
  label: "Screen Size",
140
140
 
@@ -149,7 +149,7 @@ export const componentBasicUiSchema: any = (theme)=>{
149
149
  widget: "InputField",
150
150
  },
151
151
  config: {
152
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
152
+ layout: { xs: 6, sm: 6, md: 4, lg: 4 },
153
153
  main: {
154
154
  label: "Value",
155
155
  type:"number",
@@ -164,7 +164,7 @@ export const componentBasicUiSchema: any = (theme)=>{
164
164
  type: "Control",
165
165
  scope: "#/properties/proc",
166
166
  config: {
167
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
167
+ layout: { xs: 0, sm: 0, md: 4, lg: 4 },
168
168
  },
169
169
  options: {
170
170
  widget: "EmptyBox",
@@ -178,6 +178,106 @@ export const componentBasicUiSchema: any = (theme)=>{
178
178
  },
179
179
  ],
180
180
  },
181
+ {
182
+ type: "HorizontalLayout",
183
+ config: {
184
+ layout:{xs:12,sm: 6}
185
+ },
186
+ elements: [
187
+ {
188
+ type: "Control",
189
+ scope: "#/properties/RemoveItemButton",
190
+ options: {
191
+ widget: "IconButton",
192
+ },
193
+ config: {
194
+ layout: { xs: 1, sm: 1 },
195
+ main: {
196
+ onClick: "RemoveItemButton",
197
+ size: "large",
198
+ icon: "RejectIcon",
199
+ styleDefault: true,
200
+ },
201
+ style:{
202
+ marginLeft: "-10px"
203
+ }
204
+ },
205
+ },
206
+
207
+ {
208
+ type: "Control",
209
+ scope: "#/properties/copiedElementDetails",
210
+
211
+ options: {
212
+ widget: "Box",
213
+ },
214
+ config: {
215
+ layout: { xs: 6, sm: 6 },
216
+ main: {
217
+ heading: "No element copied",
218
+ },
219
+ style: {
220
+ color: "#535557",
221
+ marginLeft: "-10px",
222
+ fontSize: "12px",
223
+ marginTop: "4px"
224
+ },
225
+ },
226
+ },
227
+ {
228
+ type: "Control",
229
+ scope: "#/properties/EmptyBox",
230
+ options: {
231
+ widget: "EmptyBox",
232
+ },
233
+ config: {
234
+ layout: { xs: 1, sm: 5 },
235
+ },
236
+ },
237
+ ]
238
+ },
239
+ {
240
+ type: "Control",
241
+ scope: "#/properties/btn",
242
+ options: {
243
+ widget: "Button",
244
+ },
245
+
246
+ config: {
247
+ layout: { xs: 4, sm: 2 },
248
+ main: {
249
+ name: "Ok",
250
+ startIcon: "ApproveIcon",
251
+ variant: "contained",
252
+ // color: "info",
253
+ type: "text",
254
+ onClick: "okHandler",
255
+ size: "medium",
256
+ },
257
+ },
258
+ },
259
+ {
260
+ type: "Control",
261
+ scope: "#/properties/btnSubmit",
262
+ options: {
263
+ widget: "Button",
264
+ },
265
+
266
+ config: {
267
+ layout: { xs: 4, sm: 2 },
268
+ main: {
269
+ name: "Save & Exit",
270
+ startIcon: "ApproveIcon",
271
+ variant: "contained",
272
+ // color: "info",
273
+ type: "text",
274
+ onClick: "saveHandler",
275
+ size: "medium",
276
+ },
277
+ },
278
+ },
279
+
280
+
181
281
  {
182
282
  type: "Control",
183
283
  scope: "#/properties/popUpComponentSection",
@@ -192,21 +292,16 @@ export const componentBasicUiSchema: any = (theme)=>{
192
292
  lg: 12,
193
293
  },
194
294
  main: {
295
+ title: "WARNING!"
195
296
  },
196
297
  style: {
197
- "& .MuiPaper-root":{
198
- width: '30%',
199
- },
200
- "& .MuiTypography-root":{
201
- padding: 0
202
- },
203
298
  }
204
299
  },
205
300
  elements:
206
301
  [
207
302
  {
208
303
  type: "Control",
209
- scope: "#/properties/label",
304
+ scope: "#/properties/popupText",
210
305
  options: {
211
306
  widget: "Box",
212
307
  },
@@ -216,58 +311,96 @@ export const componentBasicUiSchema: any = (theme)=>{
216
311
  heading: "Are you sure you want to delete ?",
217
312
  },
218
313
  style:{
219
- marginTop: "-40px"
314
+ marginTop: "-20px",
315
+ fontSize: "20px",
316
+ "&.MuiTypography-root": {
317
+ padding: "10px 30px 20px 30px",
318
+ textAlign: "center",
319
+ lineHeight: "1"
320
+ }
220
321
  }
221
322
  },
222
323
  },
223
324
  {
224
- type: "Control",
225
- scope: "#/properties/EmptyBox",
226
- options: {
227
- widget: "EmptyBox",
228
- },
325
+ type: "WrapperLayout",
229
326
  config: {
230
- main:{},
231
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
232
- },
233
- },
234
- {
235
- type: "Control",
236
- scope: "#/properties/ConfirmDeleteCompButton",
237
- options: {
238
- widget: "Button",
327
+ layout: 12,
328
+ main: {},
329
+
239
330
  },
240
- config: {
241
- layout: 3,
242
- main: {
243
- name: "Yes",
244
- startIcon: "ApproveIcon",
245
- variant: "contained",
246
- color: "error",
247
- type: "text",
248
- onClick: "deleteComponents",
249
- size: "small",
331
+ elements: [
332
+ {
333
+ type: "Control",
334
+ scope: "#/properties/CancelDeleteCompButton",
335
+ options: {
336
+ widget: "Button",
337
+ },
338
+ config: {
339
+ layout: 6,
340
+ main: {
341
+ name: "No",
342
+ startIcon: "ApproveIcon",
343
+ variant: "contained",
344
+ color: "info",
345
+ type: "text",
346
+ onClick: "deletePopUpComponent",
347
+ size: "large",
348
+ },
349
+ style: {
350
+ position: "absolute",
351
+ bottom: 0,
352
+ left: 0,
353
+ width: "50%",
354
+ borderRadius: 0,
355
+ boxShadow: 0,
356
+ backgroundColor: "transparent",
357
+ color: theme.palette.primary.main,
358
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
359
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
360
+ "&:hover": {
361
+ color: theme.palette.primary.contrastText,
362
+ backgroundColor: theme.palette.primary.main,
363
+ boxShadow: "none"
364
+ }
365
+ }
366
+ },
250
367
  },
251
- },
252
- },
253
- {
254
- type: "Control",
255
- scope: "#/properties/CancelDeleteCompButton",
256
- options: {
257
- widget: "Button",
258
- },
259
- config: {
260
- layout: 3,
261
- main: {
262
- name: "No",
263
- startIcon: "ApproveIcon",
264
- variant: "contained",
265
- color: "info",
266
- type: "text",
267
- onClick: "deletePopUpComponent",
268
- size: "small",
368
+ {
369
+ type: "Control",
370
+ scope: "#/properties/ConfirmDeleteCompButton",
371
+ options: {
372
+ widget: "Button",
373
+ },
374
+ config: {
375
+ layout: 6,
376
+ main: {
377
+ name: "Yes",
378
+ startIcon: "ApproveIcon",
379
+ variant: "contained",
380
+ color: "error",
381
+ type: "text",
382
+ onClick: "deleteComponents",
383
+ size: "large",
384
+ },
385
+ style: {
386
+ position: "absolute",
387
+ bottom: 0,
388
+ right: 0,
389
+ width: "50%",
390
+ borderRadius: 0,
391
+ boxShadow: 0,
392
+ backgroundColor: "transparent",
393
+ color: theme.palette.error.main,
394
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
395
+ "&:hover": {
396
+ color: theme.palette.error.contrastText,
397
+ backgroundColor: theme.palette.error.main,
398
+ boxShadow: "none"
399
+ }
400
+ }
401
+ },
269
402
  },
270
- },
403
+ ]
271
404
  },
272
405
  ]
273
406
  },
@@ -285,21 +418,16 @@ export const componentBasicUiSchema: any = (theme)=>{
285
418
  lg: 12,
286
419
  },
287
420
  main: {
421
+ title: "WARNING!"
288
422
  },
289
423
  style: {
290
- "& .MuiPaper-root":{
291
- width: '30%',
292
- },
293
- "& .MuiTypography-root":{
294
- padding: 0
295
- },
296
424
  }
297
425
  },
298
426
  elements:
299
427
  [
300
428
  {
301
429
  type: "Control",
302
- scope: "#/properties/label",
430
+ scope: "#/properties/popupText1",
303
431
  options: {
304
432
  widget: "Box",
305
433
  },
@@ -309,127 +437,98 @@ export const componentBasicUiSchema: any = (theme)=>{
309
437
  heading: "Are you sure you want to delete ?",
310
438
  },
311
439
  style:{
312
- marginTop: "-40px"
440
+ marginTop: "-20px",
441
+ fontSize: "20px",
442
+ "&.MuiTypography-root": {
443
+ padding: "10px 30px 20px 30px",
444
+ textAlign: "center",
445
+ lineHeight: "1"
446
+ }
313
447
  }
314
448
  },
315
449
  },
316
450
  {
317
- type: "Control",
318
- scope: "#/properties/EmptyBox",
319
- options: {
320
- widget: "EmptyBox",
321
- },
451
+ type: "WrapperLayout",
322
452
  config: {
323
- main:{},
324
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
325
- },
326
- },
327
- {
328
- type: "Control",
329
- scope: "#/properties/ConfirmDeleteEventButton",
330
- options: {
331
- widget: "Button",
453
+ layout: 12,
454
+ main: {},
455
+
332
456
  },
333
- config: {
334
- layout: 3,
335
- main: {
336
- name: "Yes",
337
- startIcon: "ApproveIcon",
338
- variant: "contained",
339
- color: "info",
340
- type: "text",
341
- onClick: "deleteEvent",
342
- size: "small",
457
+ elements: [
458
+ {
459
+ type: "Control",
460
+ scope: "#/properties/CancelDeleteEventButton",
461
+ options: {
462
+ widget: "Button",
463
+ },
464
+ config: {
465
+ layout: 6,
466
+ main: {
467
+ name: "No",
468
+ startIcon: "ApproveIcon",
469
+ variant: "contained",
470
+ color: "info",
471
+ type: "text",
472
+ onClick: "deletePopUpEvent",
473
+ size: "large",
474
+ },
475
+ style: {
476
+ position: "absolute",
477
+ bottom: 0,
478
+ left: 0,
479
+ width: "50%",
480
+ borderRadius: 0,
481
+ boxShadow: 0,
482
+ backgroundColor: "transparent",
483
+ color: theme.palette.primary.main,
484
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
485
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
486
+ "&:hover": {
487
+ color: theme.palette.primary.contrastText,
488
+ backgroundColor: theme.palette.primary.main,
489
+ boxShadow: "none"
490
+ }
491
+ }
492
+ },
343
493
  },
344
- },
345
- },
346
- {
347
- type: "Control",
348
- scope: "#/properties/CancelDeleteEventButton",
349
- options: {
350
- widget: "Button",
351
- },
352
- config: {
353
- layout: 3,
354
- main: {
355
- name: "No",
356
- startIcon: "ApproveIcon",
357
- variant: "contained",
358
- color: "info",
359
- type: "text",
360
- onClick: "deletePopUpEvent",
361
- size: "small",
494
+ {
495
+ type: "Control",
496
+ scope: "#/properties/ConfirmDeleteEventButton",
497
+ options: {
498
+ widget: "Button",
499
+ },
500
+ config: {
501
+ layout: 6,
502
+ main: {
503
+ name: "Yes",
504
+ startIcon: "ApproveIcon",
505
+ variant: "contained",
506
+ color: "error",
507
+ type: "text",
508
+ onClick: "deleteEvent",
509
+ size: "large",
510
+ },
511
+ style: {
512
+ position: "absolute",
513
+ bottom: 0,
514
+ right: 0,
515
+ width: "50%",
516
+ borderRadius: 0,
517
+ boxShadow: 0,
518
+ backgroundColor: "transparent",
519
+ color: theme.palette.error.main,
520
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
521
+ "&:hover": {
522
+ color: theme.palette.error.contrastText,
523
+ backgroundColor: theme.palette.error.main,
524
+ boxShadow: "none"
525
+ }
526
+ }
527
+ },
362
528
  },
363
- },
529
+ ]
364
530
  },
365
531
  ]
366
- },
367
-
368
- {
369
- type: "Control",
370
- scope: "#/properties/EmptyBox",
371
- options: {
372
- widget: "EmptyBox",
373
- },
374
- config: {
375
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
376
- },
377
- },
378
- {
379
- type: "Control",
380
- scope: "#/properties/EmptyBox",
381
- options: {
382
- widget: "EmptyBox",
383
- },
384
- config: {
385
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
386
- },
387
- },
388
- {
389
- type: "Control",
390
- scope: "#/properties/btn",
391
- options: {
392
- widget: "Button",
393
- },
394
-
395
- config: {
396
- layout: 1.8,
397
- main: {
398
- name: "Ok",
399
- startIcon: "ApproveIcon",
400
- variant: "contained",
401
- // color: "info",
402
- type: "text",
403
- onClick: "okHandler",
404
- size: "medium",
405
- },
406
- style: {
407
- float: "right",
408
- },
409
- },
410
- },
411
- {
412
- type: "Control",
413
- scope: "#/properties/btnSubmit",
414
- options: {
415
- widget: "Button",
416
- },
417
-
418
- config: {
419
- layout: 1.8,
420
- main: {
421
- name: "Save & Exit",
422
- startIcon: "ApproveIcon",
423
- variant: "contained",
424
- // color: "info",
425
- type: "text",
426
- onClick: "saveHandler",
427
- size: "medium",
428
- },
429
- style: {
430
- float: "right",
431
- },
432
- },
433
532
  },
434
533
  {
435
534
  type: "Control",
@@ -472,13 +571,14 @@ export const componentBasicUiSchema: any = (theme)=>{
472
571
  color: theme?.palette?.text.disabled || "#AFAFAF",
473
572
  fontSize: '12px',
474
573
  textAlign: 'center',
475
- lineHeight: 1,
574
+ lineHeight: 2,
476
575
  width: 'fit-content',
477
576
  left: '50%',
478
577
  position: 'relative',
479
578
  margin: 0,
480
579
  flexGrow: 1,
481
- height: 0
580
+ height: 0,
581
+ transform: "translate(-50%,0%)"
482
582
  }
483
583
  },
484
584
  },
@@ -500,7 +600,7 @@ export const componentBasicUiSchema: any = (theme)=>{
500
600
  height: 0,
501
601
  margin: 0,
502
602
  top: 0,
503
- right: '90px',
603
+ right: {xs: '12px', sm: '84px'},
504
604
  position: 'absolute',
505
605
  fontSize: '12px',
506
606
  cursor: 'pointer',
@@ -523,6 +623,7 @@ export const componentBasicUiSchema: any = (theme)=>{
523
623
  onClick: "backHandler"
524
624
  },
525
625
  style: {
626
+ display: {xs: 'none', sm: "flex"},
526
627
  textAlign: 'left',
527
628
  lineHeight: 1,
528
629
  height: 0,
@@ -533,7 +634,7 @@ export const componentBasicUiSchema: any = (theme)=>{
533
634
  marginLeft: '2px',
534
635
  marginRight: 0,
535
636
  top: 3,
536
- right: '20px',
637
+ right: '12px',
537
638
  position: 'absolute',
538
639
  ':hover': {
539
640
  color: theme.palette.primary.dark,