impaktapps-ui-builder 0.0.382-alpha.5 → 0.0.382-alpha.50

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 (40) hide show
  1. package/dist/impaktapps-ui-builder.es.js +809 -982
  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 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +35 -2
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +10 -12
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +15 -18
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +70 -121
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +1 -108
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +53 -102
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +17 -2
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +17 -2
  14. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
  15. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
  16. package/package.json +1 -1
  17. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +1 -0
  18. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +6 -6
  19. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +3 -1
  20. package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +50 -27
  21. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +30 -49
  22. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +9 -10
  23. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +16 -36
  24. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +1 -6
  25. package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +1 -1
  26. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +99 -125
  27. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +108 -108
  28. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +2 -12
  30. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +1 -6
  31. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +84 -56
  32. package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +1 -6
  33. package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +12 -12
  34. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +12 -12
  35. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +98 -55
  36. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +200 -203
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +415 -284
  38. package/src/impaktapps-ui-builder/builder/services/component.ts +2 -2
  39. package/src/impaktapps-ui-builder/builder/services/event.ts +8 -8
  40. package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -3
@@ -45,16 +45,9 @@ const PageMasterUiSchema = (theme) => {
45
45
  {
46
46
  type: "WrapperLayout",
47
47
  config: {
48
- main: {
49
- label: "Page Template",
50
- isAccordion: true
51
- },
48
+ main: {},
52
49
  wrapperStyle: {
53
- marginTop: "-6px",
54
- marginBottom: "-8px"
55
- },
56
- componentsBoxStyle: {
57
- marginLeft: "24px"
50
+ backgroundColor: theme.palette.background.default
58
51
  },
59
52
  defaultStyle: true
60
53
  },
@@ -102,226 +95,221 @@ const PageMasterUiSchema = (theme) => {
102
95
  config: {
103
96
  layout: { xs: 0, sm: 4 }
104
97
  }
105
- }
106
- ]
107
- },
108
- {
109
- type: "TabLayout",
110
- config: {
111
- main: {
112
- tabLabels: ["Components", "events"],
113
- divider: true
114
98
  },
115
- defaultStyle: true
116
- },
117
- elements: [
118
99
  {
119
- type: "Control",
120
- scope: "#/properties/elements",
121
- options: {
122
- widget: "Table"
123
- },
100
+ type: "TabLayout",
124
101
  config: {
125
102
  main: {
126
- headerIcons: {
127
- elements: [
128
- {
129
- widget: {
130
- type: "Control",
131
- scope: "#/properties/New_Record",
132
- options: {
133
- widget: "IconButton"
134
- },
135
- config: {
136
- main: {
137
- color: "info",
138
- onClick: "onAddClickHandler",
139
- size: "small",
140
- icon: "AddIcon",
141
- iconLabel: "Add New",
142
- styleDefault: true
143
- },
144
- style: {
145
- mt: "6px"
103
+ tabLabels: ["Components", "events"],
104
+ divider: true
105
+ },
106
+ defaultStyle: true
107
+ },
108
+ elements: [
109
+ {
110
+ type: "Control",
111
+ scope: "#/properties/elements",
112
+ options: {
113
+ widget: "Table"
114
+ },
115
+ config: {
116
+ main: {
117
+ headerIcons: {
118
+ elements: [
119
+ {
120
+ widget: {
121
+ type: "Control",
122
+ scope: "#/properties/New_Record",
123
+ options: {
124
+ widget: "IconButton"
125
+ },
126
+ config: {
127
+ main: {
128
+ onClick: "onAddClickHandler",
129
+ size: "small",
130
+ icon: "AddIcon",
131
+ iconLabel: "Add New",
132
+ styleDefault: true
133
+ },
134
+ style: {
135
+ mt: "6px"
136
+ }
137
+ }
146
138
  }
147
139
  }
140
+ ]
141
+ },
142
+ disableAction: true,
143
+ disableSelection: true,
144
+ enableDrag: true
145
+ }
146
+ },
147
+ elements: [
148
+ {
149
+ accessorKey: "name",
150
+ header: "Name"
151
+ },
152
+ {
153
+ accessorKey: "type",
154
+ header: "Type"
155
+ },
156
+ {
157
+ header: "Edit",
158
+ field: "Reject_Records",
159
+ flex: 1,
160
+ widget: {
161
+ type: "Control",
162
+ scope: "#/properties/RejectButton",
163
+ options: {
164
+ widget: "IconButton"
165
+ },
166
+ config: {
167
+ main: {
168
+ icon: "EditIcon",
169
+ onClick: "Edit_Components",
170
+ tooltipMessage: "Edit This Record"
171
+ }
148
172
  }
149
173
  }
150
- ]
151
- },
152
- disableAction: true,
153
- disableSelection: true,
154
- enableDrag: true
155
- }
156
- },
157
- elements: [
158
- {
159
- accessorKey: "name",
160
- header: "Name"
161
- },
162
- {
163
- accessorKey: "type",
164
- header: "Type"
165
- },
166
- {
167
- header: "Edit",
168
- field: "Reject_Records",
169
- flex: 1,
170
- widget: {
171
- type: "Control",
172
- scope: "#/properties/RejectButton",
173
- options: {
174
- widget: "IconButton"
175
174
  },
176
- config: {
177
- main: {
178
- icon: "EditIcon",
179
- color: "primary",
180
- onClick: "Edit_Components",
181
- tooltipMessage: "Edit This Record"
175
+ {
176
+ header: "Delete",
177
+ field: "Reject_Records",
178
+ flex: 1,
179
+ widget: {
180
+ type: "Control",
181
+ scope: "#/properties/RejectButton",
182
+ options: {
183
+ widget: "IconButton"
184
+ },
185
+ config: {
186
+ main: {
187
+ icon: "RejectIcon",
188
+ color: "error",
189
+ onClick: "Delete_Components",
190
+ tooltipMessage: "Reject This Record"
191
+ }
192
+ }
182
193
  }
183
194
  }
184
- }
195
+ ]
185
196
  },
186
197
  {
187
- header: "Delete",
188
- field: "Reject_Records",
189
- flex: 1,
190
- widget: {
191
- type: "Control",
192
- scope: "#/properties/RejectButton",
193
- options: {
194
- widget: "IconButton"
198
+ type: "Control",
199
+ scope: "#/properties/events",
200
+ options: {
201
+ widget: "Table"
202
+ },
203
+ config: {
204
+ main: {
205
+ headerIcons: {
206
+ elements: [
207
+ {
208
+ widget: {
209
+ type: "Control",
210
+ scope: "#/properties/New_Record",
211
+ options: {
212
+ widget: "IconButton"
213
+ },
214
+ config: {
215
+ main: {
216
+ onClick: "eventAddHandler",
217
+ size: "small",
218
+ icon: "AddIcon",
219
+ iconLabel: "Add New",
220
+ styleDefault: true
221
+ },
222
+ style: {
223
+ mt: "6px"
224
+ }
225
+ }
226
+ }
227
+ }
228
+ ]
229
+ },
230
+ disableAction: true,
231
+ disableSelection: true,
232
+ enableDrag: true
233
+ }
234
+ },
235
+ elements: [
236
+ {
237
+ accessorKey: "eventType",
238
+ header: "Event Type"
195
239
  },
196
- config: {
197
- main: {
198
- icon: "RejectIcon",
199
- color: "error",
200
- onClick: "Delete_Components",
201
- tooltipMessage: "Reject This Record"
240
+ {
241
+ accessorKey: "Handler",
242
+ header: "Handler"
243
+ },
244
+ {
245
+ accessorKey: "Edit_Approve_Records",
246
+ header: "Edit Widget",
247
+ widget: {
248
+ type: "Control",
249
+ scope: "#/properties/Edit_Records",
250
+ options: {
251
+ widget: "IconButton"
252
+ },
253
+ config: {
254
+ main: {
255
+ size: "small",
256
+ icon: "EditIcon",
257
+ tooltipMessage: "Edit This Record",
258
+ onClick: "editEvent"
259
+ },
260
+ style: {
261
+ color: "#3949ab"
262
+ }
263
+ }
264
+ }
265
+ },
266
+ {
267
+ accessorKey: "Reject_Records",
268
+ header: "Delete",
269
+ widget: {
270
+ type: "Control",
271
+ scope: "#/properties/RejectButton",
272
+ options: {
273
+ widget: "IconButton"
274
+ },
275
+ config: {
276
+ main: {
277
+ icon: "RejectIcon",
278
+ color: "error",
279
+ tooltipMessage: "Reject This Record",
280
+ onClick: "deleteEvent"
281
+ }
282
+ }
202
283
  }
203
284
  }
204
- }
285
+ ]
205
286
  }
206
287
  ]
207
288
  },
208
289
  {
209
290
  type: "Control",
210
- scope: "#/properties/events",
291
+ scope: "#/properties/btn",
211
292
  options: {
212
- widget: "Table"
293
+ widget: "Button"
213
294
  },
214
295
  config: {
296
+ layout: 11.9,
215
297
  main: {
216
- headerIcons: {
217
- elements: [
218
- {
219
- widget: {
220
- type: "Control",
221
- scope: "#/properties/New_Record",
222
- options: {
223
- widget: "IconButton"
224
- },
225
- config: {
226
- main: {
227
- color: "info",
228
- onClick: "eventAddHandler",
229
- size: "small",
230
- icon: "AddIcon",
231
- iconLabel: "Add New",
232
- styleDefault: true
233
- },
234
- style: {
235
- mt: "6px"
236
- }
237
- }
238
- }
239
- }
240
- ]
241
- },
242
- disableAction: true,
243
- disableSelection: true,
244
- enableDrag: true
245
- }
246
- },
247
- elements: [
248
- {
249
- accessorKey: "eventType",
250
- header: "Event Type"
251
- },
252
- {
253
- accessorKey: "Handler",
254
- header: "Handler"
255
- },
256
- {
257
- accessorKey: "Edit_Approve_Records",
258
- header: "Edit Widget",
259
- widget: {
260
- type: "Control",
261
- scope: "#/properties/Edit_Records",
262
- options: {
263
- widget: "IconButton"
264
- },
265
- config: {
266
- main: {
267
- color: "info",
268
- size: "small",
269
- icon: "EditIcon",
270
- tooltipMessage: "Edit This Record",
271
- onClick: "editEvent"
272
- },
273
- style: {
274
- color: "#3949ab"
275
- }
276
- }
277
- }
298
+ name: "Save",
299
+ startIcon: "ApproveIcon",
300
+ variant: "contained",
301
+ type: "text",
302
+ onClick: "saveHandler",
303
+ size: "medium"
278
304
  },
279
- {
280
- accessorKey: "Reject_Records",
281
- header: "Delete",
282
- widget: {
283
- type: "Control",
284
- scope: "#/properties/RejectButton",
285
- options: {
286
- widget: "IconButton"
287
- },
288
- config: {
289
- main: {
290
- icon: "RejectIcon",
291
- color: "error",
292
- tooltipMessage: "Reject This Record",
293
- onClick: "deleteEvent"
294
- }
295
- }
296
- }
305
+ style: {
306
+ width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
307
+ float: "right"
297
308
  }
298
- ]
309
+ }
299
310
  }
300
311
  ]
301
312
  },
302
- {
303
- type: "Control",
304
- scope: "#/properties/btn",
305
- options: {
306
- widget: "Button"
307
- },
308
- config: {
309
- layout: 11.9,
310
- main: {
311
- name: "Save",
312
- startIcon: "ApproveIcon",
313
- variant: "contained",
314
- color: "info",
315
- type: "text",
316
- onClick: "saveHandler",
317
- size: "medium"
318
- },
319
- style: {
320
- width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
321
- float: "right"
322
- }
323
- }
324
- },
325
313
  {
326
314
  type: "Control",
327
315
  scope: "#/properties/notify",
@@ -6234,7 +6222,7 @@ const componentBasicUiSchema = (theme) => {
6234
6222
  }
6235
6223
  },
6236
6224
  {
6237
- type: "HorizontalLayout",
6225
+ type: "Control",
6238
6226
  scope: "#/properties/layout",
6239
6227
  layout: 12,
6240
6228
  options: {
@@ -6288,6 +6276,26 @@ const componentBasicUiSchema = (theme) => {
6288
6276
  }
6289
6277
  ]
6290
6278
  },
6279
+ {
6280
+ type: "Control",
6281
+ scope: "#/properties/EmptyBox",
6282
+ options: {
6283
+ widget: "EmptyBox"
6284
+ },
6285
+ config: {
6286
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6287
+ }
6288
+ },
6289
+ {
6290
+ type: "Control",
6291
+ scope: "#/properties/EmptyBox",
6292
+ options: {
6293
+ widget: "EmptyBox"
6294
+ },
6295
+ config: {
6296
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6297
+ }
6298
+ },
6291
6299
  {
6292
6300
  type: "Control",
6293
6301
  scope: "#/properties/btn",
@@ -6295,23 +6303,16 @@ const componentBasicUiSchema = (theme) => {
6295
6303
  widget: "Button"
6296
6304
  },
6297
6305
  config: {
6298
- layout: {
6299
- xs: 11,
6300
- sm: 11,
6301
- md: 2.5,
6302
- lg: 2.5
6303
- },
6306
+ layout: 1.8,
6304
6307
  main: {
6305
6308
  name: "Ok",
6306
6309
  startIcon: "ApproveIcon",
6307
6310
  variant: "contained",
6308
- color: "info",
6309
6311
  type: "text",
6310
6312
  onClick: "okHandler",
6311
- size: "small"
6313
+ size: "medium"
6312
6314
  },
6313
6315
  style: {
6314
- marginBottom: "8px",
6315
6316
  float: "right"
6316
6317
  }
6317
6318
  }
@@ -6323,23 +6324,16 @@ const componentBasicUiSchema = (theme) => {
6323
6324
  widget: "Button"
6324
6325
  },
6325
6326
  config: {
6326
- layout: {
6327
- xs: 11,
6328
- sm: 11,
6329
- md: 2.5,
6330
- lg: 2.5
6331
- },
6327
+ layout: 1.8,
6332
6328
  main: {
6333
6329
  name: "Save & Exit",
6334
6330
  startIcon: "ApproveIcon",
6335
6331
  variant: "contained",
6336
- color: "info",
6337
6332
  type: "text",
6338
6333
  onClick: "saveHandler",
6339
- size: "small"
6334
+ size: "medium"
6340
6335
  },
6341
6336
  style: {
6342
- marginBottom: "8px",
6343
6337
  float: "right"
6344
6338
  }
6345
6339
  }
@@ -6469,7 +6463,7 @@ const CoreSection = {
6469
6463
  widget: "SelectInputField"
6470
6464
  },
6471
6465
  config: {
6472
- layout: { xs: 12, sm: 12, md: 6, lg: 6 },
6466
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6473
6467
  main: {
6474
6468
  label: "Type",
6475
6469
  type: "text"
@@ -6483,12 +6477,7 @@ const CoreSection = {
6483
6477
  widget: "InputField"
6484
6478
  },
6485
6479
  config: {
6486
- layout: {
6487
- xs: 12,
6488
- sm: 12,
6489
- md: 6,
6490
- lg: 6
6491
- },
6480
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6492
6481
  main: {
6493
6482
  label: "Name"
6494
6483
  }
@@ -6501,31 +6490,16 @@ const CoreSection = {
6501
6490
  widget: "InputField"
6502
6491
  },
6503
6492
  config: {
6504
- layout: {
6505
- xs: 12,
6506
- sm: 12,
6507
- md: 6,
6508
- lg: 6
6509
- },
6493
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6510
6494
  main: {
6511
6495
  label: "Label"
6512
6496
  }
6513
6497
  }
6514
6498
  },
6515
- {
6516
- type: "Control",
6517
- scope: "#/properties/proc",
6518
- config: {
6519
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6520
- },
6521
- options: {
6522
- widget: "EmptyBox"
6523
- }
6524
- },
6525
6499
  {
6526
6500
  type: "Control",
6527
6501
  scope: "#/properties/layout",
6528
- layout: 11.5,
6502
+ layout: 12,
6529
6503
  options: {
6530
6504
  "elementLabelProp": "key",
6531
6505
  detail: {
@@ -6538,12 +6512,7 @@ const CoreSection = {
6538
6512
  widget: "SelectInputField"
6539
6513
  },
6540
6514
  config: {
6541
- layout: {
6542
- xs: 11,
6543
- sm: 11,
6544
- md: 5.5,
6545
- lg: 5.5
6546
- },
6515
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6547
6516
  main: {
6548
6517
  label: "Screen Size"
6549
6518
  }
@@ -6556,12 +6525,7 @@ const CoreSection = {
6556
6525
  widget: "InputField"
6557
6526
  },
6558
6527
  config: {
6559
- layout: {
6560
- xs: 11,
6561
- sm: 11,
6562
- md: 5.5,
6563
- lg: 5.5
6564
- },
6528
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6565
6529
  main: {
6566
6530
  label: "Value",
6567
6531
  type: "number",
@@ -6569,6 +6533,16 @@ const CoreSection = {
6569
6533
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6570
6534
  }
6571
6535
  }
6536
+ },
6537
+ {
6538
+ type: "Control",
6539
+ scope: "#/properties/emptyBox",
6540
+ options: {
6541
+ widget: "EmptyBox"
6542
+ },
6543
+ config: {
6544
+ layout: { xs: 0, sm: 4 }
6545
+ }
6572
6546
  }
6573
6547
  ]
6574
6548
  }
@@ -6580,121 +6554,95 @@ const EventSection = {
6580
6554
  type: "HorizontalLayout",
6581
6555
  elements: [
6582
6556
  {
6583
- type: "WrapperLayout",
6557
+ type: "Control",
6558
+ scope: "#/properties/events",
6559
+ options: {
6560
+ widget: "Table"
6561
+ },
6584
6562
  config: {
6585
6563
  main: {
6586
- divider: true
6587
- },
6588
- wrapperStyle: {
6589
- border: "1px solid gray"
6564
+ headerIcons: {
6565
+ elements: [
6566
+ {
6567
+ widget: {
6568
+ type: "Control",
6569
+ scope: "#/properties/New_Record",
6570
+ options: {
6571
+ widget: "IconButton"
6572
+ },
6573
+ config: {
6574
+ main: {
6575
+ color: "info",
6576
+ onClick: "eventAddHandler",
6577
+ size: "small",
6578
+ icon: "AddIcon",
6579
+ iconLabel: "Add New",
6580
+ styleDefault: true
6581
+ },
6582
+ style: {
6583
+ mt: "6px"
6584
+ }
6585
+ }
6586
+ }
6587
+ }
6588
+ ]
6589
+ },
6590
+ disableAction: true,
6591
+ disableSelection: true,
6592
+ enableDrag: true
6590
6593
  }
6591
6594
  },
6592
6595
  elements: [
6593
6596
  {
6594
- type: "Control",
6595
- scope: "#/properties/programType",
6596
- options: {
6597
- widget: "Box"
6598
- },
6599
- config: {
6600
- layout: 8,
6601
- main: {
6602
- heading: "Event Table"
6603
- },
6604
- style: {
6605
- fontFamily: "Roboto",
6606
- fontWeight: "500",
6607
- paddingLeft: "-10px",
6608
- fontSize: "20px"
6609
- }
6610
- }
6597
+ accessorKey: "eventType",
6598
+ header: "Event Type"
6611
6599
  },
6612
6600
  {
6613
- type: "Control",
6614
- scope: "#/properties/Back_Button",
6615
- options: {
6616
- widget: "IconButton"
6617
- },
6618
- config: {
6619
- layout: 3,
6620
- main: {
6621
- icon: "AddIcon",
6622
- styleDefault: true,
6623
- size: "small",
6624
- onClick: "eventAddHandler",
6625
- tooltipMessage: "Back"
6601
+ accessorKey: "Handler",
6602
+ header: "Handler"
6603
+ },
6604
+ {
6605
+ accessorKey: "Edit_Approve_Records",
6606
+ header: "Edit Widget",
6607
+ widget: {
6608
+ type: "Control",
6609
+ scope: "#/properties/Edit_Records",
6610
+ options: {
6611
+ widget: "IconButton"
6626
6612
  },
6627
- style: {
6628
- float: "right"
6613
+ config: {
6614
+ main: {
6615
+ color: "info",
6616
+ size: "small",
6617
+ icon: "EditIcon",
6618
+ tooltipMessage: "Edit This Record",
6619
+ onClick: "eventEditHandler"
6620
+ },
6621
+ style: {
6622
+ color: "#3949ab"
6623
+ }
6629
6624
  }
6630
6625
  }
6631
6626
  },
6632
6627
  {
6633
- type: "Control",
6634
- scope: "#/properties/events",
6635
- options: {
6636
- widget: "Table"
6637
- },
6638
- config: {
6639
- main: {
6640
- disableAction: true,
6641
- disableSelection: true,
6642
- enableDrag: true
6643
- }
6644
- },
6645
- elements: [
6646
- {
6647
- accessorKey: "eventType",
6648
- header: "Event Type"
6649
- },
6650
- {
6651
- accessorKey: "Handler",
6652
- header: "Handler"
6653
- },
6654
- {
6655
- accessorKey: "Edit_Approve_Records",
6656
- header: "Edit Widget",
6657
- widget: {
6658
- type: "Control",
6659
- scope: "#/properties/Edit_Records",
6660
- options: {
6661
- widget: "IconButton"
6662
- },
6663
- config: {
6664
- main: {
6665
- color: "info",
6666
- size: "small",
6667
- icon: "EditIcon",
6668
- tooltipMessage: "Edit This Record",
6669
- onClick: "eventEditHandler"
6670
- },
6671
- style: {
6672
- color: "#3949ab"
6673
- }
6674
- }
6675
- }
6628
+ accessorKey: "Reject_Records",
6629
+ header: "Delete",
6630
+ widget: {
6631
+ type: "Control",
6632
+ scope: "#/properties/RejectButton",
6633
+ accessorKeyName: "Reject_Records",
6634
+ options: {
6635
+ widget: "IconButton"
6676
6636
  },
6677
- {
6678
- accessorKey: "Reject_Records",
6679
- header: "Delete",
6680
- widget: {
6681
- type: "Control",
6682
- scope: "#/properties/RejectButton",
6683
- accessorKeyName: "Reject_Records",
6684
- options: {
6685
- widget: "IconButton"
6686
- },
6687
- config: {
6688
- main: {
6689
- icon: "RejectIcon",
6690
- color: "error",
6691
- tooltipMessage: "Reject This Record",
6692
- onClick: "deleteEvent"
6693
- }
6694
- }
6637
+ config: {
6638
+ main: {
6639
+ icon: "RejectIcon",
6640
+ color: "error",
6641
+ tooltipMessage: "Reject This Record",
6642
+ onClick: "deleteEvent"
6695
6643
  }
6696
6644
  }
6697
- ]
6645
+ }
6698
6646
  }
6699
6647
  ]
6700
6648
  }
@@ -6707,12 +6655,7 @@ const EmptyBox = {
6707
6655
  widget: "EmptyBox"
6708
6656
  },
6709
6657
  config: {
6710
- layout: {
6711
- xs: 11,
6712
- sm: 11,
6713
- md: 5.5,
6714
- lg: 5.5
6715
- },
6658
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
6716
6659
  main: {}
6717
6660
  }
6718
6661
  };
@@ -6731,12 +6674,7 @@ const cardLayout = {
6731
6674
  widget: "SelectInputField"
6732
6675
  },
6733
6676
  config: {
6734
- layout: {
6735
- xs: 11,
6736
- sm: 11,
6737
- md: 5.5,
6738
- lg: 5.5
6739
- },
6677
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6740
6678
  main: {
6741
6679
  label: "Screen Size"
6742
6680
  }
@@ -6749,12 +6687,7 @@ const cardLayout = {
6749
6687
  widget: "InputField"
6750
6688
  },
6751
6689
  config: {
6752
- layout: {
6753
- xs: 11,
6754
- sm: 11,
6755
- md: 5.5,
6756
- lg: 5.5
6757
- },
6690
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6758
6691
  main: {
6759
6692
  label: "Value",
6760
6693
  type: "number",
@@ -6762,7 +6695,8 @@ const cardLayout = {
6762
6695
  errorMessage: "Number Can't be greater than 12 and can't be less than 0."
6763
6696
  }
6764
6697
  }
6765
- }
6698
+ },
6699
+ EmptyBox
6766
6700
  ]
6767
6701
  }
6768
6702
  }
@@ -6784,17 +6718,13 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6784
6718
  widget: "InputField"
6785
6719
  },
6786
6720
  config: {
6787
- layout: {
6788
- xs: 11,
6789
- sm: 11,
6790
- md: 5.5,
6791
- lg: 5.5
6792
- },
6721
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6793
6722
  main: {
6794
6723
  label: childLabel || "Labels for Tab"
6795
6724
  }
6796
6725
  }
6797
6726
  },
6727
+ EmptyBox,
6798
6728
  EmptyBox
6799
6729
  ]
6800
6730
  }
@@ -6809,12 +6739,7 @@ sizeHolder.options.detail.elements[1] = {
6809
6739
  widget: "InputField"
6810
6740
  },
6811
6741
  config: {
6812
- layout: {
6813
- xs: 11,
6814
- sm: 11,
6815
- md: 5.5,
6816
- lg: 5.5
6817
- },
6742
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6818
6743
  main: {
6819
6744
  label: "Size"
6820
6745
  }
@@ -6828,12 +6753,7 @@ const getInputField = (scope, label) => {
6828
6753
  widget: "InputField"
6829
6754
  },
6830
6755
  config: {
6831
- layout: {
6832
- xs: 11,
6833
- sm: 11,
6834
- md: 5.5,
6835
- lg: 5.5
6836
- },
6756
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6837
6757
  main: {
6838
6758
  label
6839
6759
  }
@@ -6848,12 +6768,7 @@ const getRadioInputField = (scope, label, options) => {
6848
6768
  widget: "RadioInputField"
6849
6769
  },
6850
6770
  config: {
6851
- layout: {
6852
- xs: 11,
6853
- sm: 11,
6854
- md: 5.5,
6855
- lg: 5.5
6856
- },
6771
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6857
6772
  main: {
6858
6773
  label,
6859
6774
  options
@@ -6896,7 +6811,7 @@ const getSelectField = (scope, label, options) => {
6896
6811
  widget: "SelectInputField"
6897
6812
  },
6898
6813
  config: {
6899
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
6814
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6900
6815
  main: {
6901
6816
  label,
6902
6817
  type: "text"
@@ -6917,6 +6832,8 @@ const buildPropertiesSection = function(type) {
6917
6832
  getInputField("elevation", "Card Elevation"),
6918
6833
  getInputField("height", "Grid height"),
6919
6834
  getInputField("justifyContent", "justifyContent"),
6835
+ EmptyBox,
6836
+ EmptyBox,
6920
6837
  cardLayout
6921
6838
  ];
6922
6839
  break;
@@ -6927,6 +6844,7 @@ const buildPropertiesSection = function(type) {
6927
6844
  getInputField("resetText", "Reset Text"),
6928
6845
  getInputField("completeText", "Complete Text"),
6929
6846
  getSelectField("orientation", "Orientation Type"),
6847
+ EmptyBox,
6930
6848
  getArrayControl("sectionLabels", "label")
6931
6849
  ];
6932
6850
  break;
@@ -6942,12 +6860,14 @@ const buildPropertiesSection = function(type) {
6942
6860
  uiSchema.elements = [
6943
6861
  getInputField("placeholder", "Placeholder"),
6944
6862
  EmptyBox,
6863
+ EmptyBox,
6945
6864
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
6946
6865
  ];
6947
6866
  break;
6948
6867
  case "TextArea":
6949
6868
  uiSchema.elements = [
6950
6869
  getInputField("placeholder", "Placeholder"),
6870
+ EmptyBox,
6951
6871
  EmptyBox
6952
6872
  ];
6953
6873
  break;
@@ -6957,7 +6877,8 @@ const buildPropertiesSection = function(type) {
6957
6877
  getInputField("heading", "Container Heading"),
6958
6878
  getInputField("heading", "Container Heading"),
6959
6879
  getInputField("speedoCaption", "Speedometer Caption"),
6960
- getInputField("width", "Speedometer Width")
6880
+ getInputField("width", "Speedometer Width"),
6881
+ EmptyBox
6961
6882
  ];
6962
6883
  break;
6963
6884
  case "RankCard":
@@ -6965,7 +6886,9 @@ const buildPropertiesSection = function(type) {
6965
6886
  getInputField("rank", "Rank"),
6966
6887
  getInputField("image", "Image Url"),
6967
6888
  getInputField("title", "Card Title"),
6968
- getInputField("description", "Card Description")
6889
+ getInputField("description", "Card Description"),
6890
+ EmptyBox,
6891
+ EmptyBox
6969
6892
  ];
6970
6893
  break;
6971
6894
  case "LeaderBoard":
@@ -6974,6 +6897,8 @@ const buildPropertiesSection = function(type) {
6974
6897
  getInputField("firstImage", "First Image url"),
6975
6898
  getInputField("secondImage", "Second Image url"),
6976
6899
  getInputField("thirdImage", "Third Image url"),
6900
+ EmptyBox,
6901
+ EmptyBox,
6977
6902
  getTextArea("functionCode", "Write Compare Code", false)
6978
6903
  ];
6979
6904
  break;
@@ -6989,7 +6914,9 @@ const buildPropertiesSection = function(type) {
6989
6914
  getInputField("heading", "Heading"),
6990
6915
  getInputField("bottomLabel_1", "First BottomLabel"),
6991
6916
  getInputField("bottomLabel_2", "Second BottomLabel"),
6992
- getInputField("bottomLabel_3", "Third BottomLabel")
6917
+ getInputField("bottomLabel_3", "Third BottomLabel"),
6918
+ EmptyBox,
6919
+ EmptyBox
6993
6920
  ];
6994
6921
  break;
6995
6922
  case "card":
@@ -7023,7 +6950,7 @@ const buildPropertiesSection = function(type) {
7023
6950
  ];
7024
6951
  break;
7025
6952
  case "WrapperSection":
7026
- uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), EmptyBox];
6953
+ uiSchema.elements = [getRadioInputField("divider", "Divider", ["YES", "No"]), getRadioInputField("isAccordion", "Accordion", ["YES", "No"]), EmptyBox];
7027
6954
  break;
7028
6955
  case "TabSection":
7029
6956
  uiSchema.elements = [
@@ -7051,12 +6978,14 @@ const buildPropertiesSection = function(type) {
7051
6978
  case "Select":
7052
6979
  uiSchema.elements = [
7053
6980
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7054
- getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"])
6981
+ getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
6982
+ EmptyBox
7055
6983
  ];
7056
6984
  break;
7057
6985
  case "MultipleSelect":
7058
6986
  uiSchema.elements = [
7059
6987
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
6988
+ EmptyBox,
7060
6989
  EmptyBox
7061
6990
  ];
7062
6991
  break;
@@ -7102,116 +7031,92 @@ const TableSection = {
7102
7031
  type: "HorizontalLayout",
7103
7032
  elements: [
7104
7033
  {
7105
- type: "WrapperLayout",
7034
+ type: "Control",
7035
+ scope: "#/properties/elements",
7036
+ options: {
7037
+ widget: "Table"
7038
+ },
7106
7039
  config: {
7107
- main: {},
7108
- wrapperStyle: {
7109
- border: "1px solid gray"
7040
+ main: {
7041
+ headerIcons: {
7042
+ elements: [
7043
+ {
7044
+ widget: {
7045
+ type: "Control",
7046
+ scope: "#/properties/New_Record",
7047
+ options: {
7048
+ widget: "IconButton"
7049
+ },
7050
+ config: {
7051
+ main: {
7052
+ color: "info",
7053
+ onClick: "widgetAddClickHandler",
7054
+ size: "small",
7055
+ icon: "AddIcon",
7056
+ iconLabel: "Add New",
7057
+ styleDefault: true
7058
+ },
7059
+ style: {
7060
+ mt: "6px"
7061
+ }
7062
+ }
7063
+ }
7064
+ }
7065
+ ]
7066
+ },
7067
+ disableAction: true,
7068
+ disableSelection: true,
7069
+ enableDrag: true
7110
7070
  }
7111
7071
  },
7112
7072
  elements: [
7113
7073
  {
7114
- type: "Control",
7115
- scope: "#/properties/programType",
7116
- options: {
7117
- widget: "Box"
7118
- },
7119
- config: {
7120
- layout: 8,
7121
- main: {
7122
- heading: "Components Table"
7123
- },
7124
- style: {
7125
- fontFamily: "Roboto",
7126
- fontWeight: "500",
7127
- paddingLeft: "-10px",
7128
- fontSize: "20px"
7129
- }
7130
- }
7074
+ accessorKey: "name",
7075
+ header: "Name"
7131
7076
  },
7132
7077
  {
7133
- type: "Control",
7134
- scope: "#/properties/Back_Button",
7135
- options: {
7136
- widget: "IconButton"
7137
- },
7138
- config: {
7139
- layout: 3,
7140
- main: {
7141
- icon: "AddIcon",
7142
- styleDefault: true,
7143
- size: "small",
7144
- onClick: "widgetAddClickHandler",
7145
- tooltipMessage: "Add New"
7078
+ accessorKey: "type",
7079
+ header: "Type"
7080
+ },
7081
+ {
7082
+ header: "Edit Record",
7083
+ field: "Reject_Records",
7084
+ flex: 1,
7085
+ widget: {
7086
+ type: "Control",
7087
+ scope: "#/properties/RejectButton",
7088
+ options: {
7089
+ widget: "IconButton"
7146
7090
  },
7147
- style: {
7148
- float: "right"
7091
+ config: {
7092
+ main: {
7093
+ icon: "EditIcon",
7094
+ color: "primary",
7095
+ onClick: "editComponents",
7096
+ tooltipMessage: "Reject This Record"
7097
+ }
7149
7098
  }
7150
7099
  }
7151
7100
  },
7152
7101
  {
7153
- type: "Control",
7154
- scope: "#/properties/elements",
7155
- options: {
7156
- widget: "Table"
7157
- },
7158
- config: {
7159
- main: {
7160
- disableAction: true,
7161
- disableSelection: true,
7162
- enableDrag: true
7163
- }
7164
- },
7165
- elements: [
7166
- {
7167
- accessorKey: "name",
7168
- header: "Name"
7169
- },
7170
- {
7171
- accessorKey: "type",
7172
- header: "Type"
7173
- },
7174
- {
7175
- header: "Edit Record",
7176
- field: "Reject_Records",
7177
- flex: 1,
7178
- widget: {
7179
- type: "Control",
7180
- scope: "#/properties/RejectButton",
7181
- options: {
7182
- widget: "IconButton"
7183
- },
7184
- config: {
7185
- main: {
7186
- icon: "EditIcon",
7187
- color: "primary",
7188
- onClick: "editComponents",
7189
- tooltipMessage: "Reject This Record"
7190
- }
7191
- }
7192
- }
7102
+ header: "Delete",
7103
+ field: "Reject_Records",
7104
+ flex: 1,
7105
+ widget: {
7106
+ type: "Control",
7107
+ scope: "#/properties/RejectButton",
7108
+ options: {
7109
+ widget: "IconButton"
7193
7110
  },
7194
- {
7195
- header: "Delete",
7196
- field: "Reject_Records",
7197
- flex: 1,
7198
- widget: {
7199
- type: "Control",
7200
- scope: "#/properties/RejectButton",
7201
- options: {
7202
- widget: "IconButton"
7203
- },
7204
- config: {
7205
- main: {
7206
- icon: "RejectIcon",
7207
- color: "error",
7208
- onClick: "deleteComponents",
7209
- tooltipMessage: "Reject This Record"
7210
- }
7211
- }
7111
+ config: {
7112
+ main: {
7113
+ icon: "RejectIcon",
7114
+ color: "error",
7115
+ onClick: "deleteComponents",
7116
+ tooltipMessage: "Reject This Record"
7212
7117
  }
7213
7118
  }
7214
- ]
7119
+ }
7215
7120
  }
7216
7121
  ]
7217
7122
  }
@@ -7235,12 +7140,7 @@ const ValueTab = {
7235
7140
  widget: "InputField"
7236
7141
  },
7237
7142
  config: {
7238
- layout: {
7239
- xs: 11,
7240
- sm: 11,
7241
- md: 5.5,
7242
- lg: 5.5
7243
- },
7143
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7244
7144
  main: {
7245
7145
  label: "Label"
7246
7146
  }
@@ -7253,16 +7153,21 @@ const ValueTab = {
7253
7153
  widget: "InputField"
7254
7154
  },
7255
7155
  config: {
7256
- layout: {
7257
- xs: 11,
7258
- sm: 11,
7259
- md: 5.5,
7260
- lg: 5.5
7261
- },
7156
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7262
7157
  main: {
7263
7158
  label: "Value"
7264
7159
  }
7265
7160
  }
7161
+ },
7162
+ {
7163
+ type: "Control",
7164
+ scope: "#/properties/emptyBox",
7165
+ options: {
7166
+ widget: "EmptyBox"
7167
+ },
7168
+ config: {
7169
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7170
+ }
7266
7171
  }
7267
7172
  ]
7268
7173
  }
@@ -7289,12 +7194,7 @@ const ValidationSection = {
7289
7194
  widget: "SelectInputField"
7290
7195
  },
7291
7196
  config: {
7292
- layout: {
7293
- xs: 11,
7294
- sm: 11,
7295
- md: 5.5,
7296
- lg: 5.5
7297
- },
7197
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7298
7198
  main: {
7299
7199
  label: "Validation Type"
7300
7200
  }
@@ -7307,16 +7207,21 @@ const ValidationSection = {
7307
7207
  widget: "InputField"
7308
7208
  },
7309
7209
  config: {
7310
- layout: {
7311
- xs: 11,
7312
- sm: 11,
7313
- md: 5.5,
7314
- lg: 5.5
7315
- },
7210
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7316
7211
  main: {
7317
7212
  label: "Validation Value"
7318
7213
  }
7319
7214
  }
7215
+ },
7216
+ {
7217
+ type: "Control",
7218
+ scope: "#/properties/emptyBox",
7219
+ options: {
7220
+ widget: "EmptyBox"
7221
+ },
7222
+ config: {
7223
+ layout: { xs: 0, sm: 4 }
7224
+ }
7320
7225
  }
7321
7226
  ]
7322
7227
  }
@@ -7510,8 +7415,8 @@ const refreshPage = (type, store2) => {
7510
7415
  Validation: ValidationSection
7511
7416
  };
7512
7417
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7513
- UiSchema.elements[1].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7514
- UiSchema.elements[1].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7418
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7419
+ UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7515
7420
  }
7516
7421
  store2.setUiSchema(UiSchema);
7517
7422
  };
@@ -7768,334 +7673,385 @@ const EventSchema = {
7768
7673
  },
7769
7674
  required: ["eventType", "Handler"]
7770
7675
  };
7771
- const EventUiSchema = {
7772
- type: "HorizontalLayout",
7773
- elements: [
7774
- {
7775
- type: "WrapperLayout",
7776
- config: {
7777
- main: {
7778
- rowSpacing: 1,
7779
- header: true
7676
+ const EventUiSchema = (theme) => {
7677
+ var _a;
7678
+ const uiSchema = {
7679
+ type: "HorizontalLayout",
7680
+ heading: "Component",
7681
+ elements: [
7682
+ {
7683
+ type: "TabLayout",
7684
+ config: {
7685
+ main: {
7686
+ tabLabels: ["Core", "Response Event"],
7687
+ defaultStyle: true,
7688
+ id: "event"
7689
+ }
7780
7690
  },
7781
- defaultStyle: true
7782
- },
7783
- elements: [
7784
- {
7785
- type: "Control",
7786
- scope: "#/properties/Component",
7787
- options: {
7788
- widget: "Box"
7691
+ elements: [
7692
+ {
7693
+ type: "HorizontalLayout",
7694
+ elements: [
7695
+ {
7696
+ type: "Control",
7697
+ scope: `#/properties/eventType`,
7698
+ options: {
7699
+ widget: "SelectInputField"
7700
+ },
7701
+ config: {
7702
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7703
+ main: {
7704
+ label: "Event Type",
7705
+ type: "text"
7706
+ }
7707
+ }
7708
+ },
7709
+ {
7710
+ type: "Control",
7711
+ scope: `#/properties/Handler`,
7712
+ options: {
7713
+ widget: "SelectInputField"
7714
+ },
7715
+ config: {
7716
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7717
+ main: {
7718
+ label: "Handler",
7719
+ type: "text"
7720
+ }
7721
+ }
7722
+ },
7723
+ {
7724
+ type: "Control",
7725
+ scope: "#/properties/emptyBox",
7726
+ options: {
7727
+ widget: "EmptyBox"
7728
+ },
7729
+ config: {
7730
+ layout: { xs: 0, sm: 4 }
7731
+ }
7732
+ }
7733
+ ]
7789
7734
  },
7790
- config: {
7791
- layout: { xs: 12, sm: 12, md: 2 },
7792
- main: {
7793
- heading: "Component"
7735
+ {
7736
+ type: "Control",
7737
+ scope: "#/properties/events",
7738
+ options: {
7739
+ widget: "Table"
7794
7740
  },
7795
- style: {
7796
- "float": "left"
7797
- }
7741
+ config: {
7742
+ main: {
7743
+ headerIcons: {
7744
+ elements: [
7745
+ {
7746
+ widget: {
7747
+ type: "Control",
7748
+ scope: "#/properties/New_Record",
7749
+ options: {
7750
+ widget: "IconButton"
7751
+ },
7752
+ config: {
7753
+ main: {
7754
+ onClick: "addEvent",
7755
+ size: "small",
7756
+ icon: "AddIcon",
7757
+ iconLabel: "Add New",
7758
+ styleDefault: true
7759
+ },
7760
+ style: {
7761
+ mt: "6px"
7762
+ }
7763
+ }
7764
+ }
7765
+ }
7766
+ ]
7767
+ },
7768
+ disableAction: true,
7769
+ disableSelection: true,
7770
+ enableDrag: true
7771
+ }
7772
+ },
7773
+ elements: [
7774
+ {
7775
+ accessorKey: "eventType",
7776
+ header: "Event Type"
7777
+ },
7778
+ {
7779
+ accessorKey: "Handler",
7780
+ header: "Handler"
7781
+ },
7782
+ {
7783
+ accessorKey: "Edit_Approve_Records",
7784
+ header: "Edit Widget",
7785
+ widget: {
7786
+ type: "Control",
7787
+ scope: "#/properties/Edit_Records",
7788
+ options: {
7789
+ widget: "IconButton"
7790
+ },
7791
+ config: {
7792
+ main: {
7793
+ size: "small",
7794
+ icon: "EditIcon",
7795
+ tooltipMessage: "Edit This Record",
7796
+ onClick: "editEvent"
7797
+ },
7798
+ style: {
7799
+ color: "#3949ab"
7800
+ }
7801
+ }
7802
+ }
7803
+ },
7804
+ {
7805
+ accessorKey: "Reject_Records",
7806
+ header: "Delete",
7807
+ widget: {
7808
+ type: "Control",
7809
+ scope: "#/properties/RejectButton",
7810
+ options: {
7811
+ widget: "IconButton"
7812
+ },
7813
+ config: {
7814
+ main: {
7815
+ icon: "RejectIcon",
7816
+ color: "error",
7817
+ tooltipMessage: "Reject This Record",
7818
+ onClick: "deleteEvent"
7819
+ }
7820
+ }
7821
+ }
7822
+ }
7823
+ ]
7798
7824
  }
7825
+ ]
7826
+ },
7827
+ {
7828
+ type: "Control",
7829
+ scope: "#/properties/EmptyBox",
7830
+ options: {
7831
+ widget: "EmptyBox"
7799
7832
  },
7800
- {
7801
- type: "Control",
7802
- scope: "#/properties/pageName",
7803
- options: {
7804
- widget: "Box"
7833
+ config: {
7834
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7835
+ }
7836
+ },
7837
+ {
7838
+ type: "Control",
7839
+ scope: "#/properties/EmptyBox",
7840
+ options: {
7841
+ widget: "EmptyBox"
7842
+ },
7843
+ config: {
7844
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7845
+ }
7846
+ },
7847
+ {
7848
+ type: "Control",
7849
+ scope: "#/properties/btn",
7850
+ options: {
7851
+ widget: "Button"
7852
+ },
7853
+ config: {
7854
+ layout: 1.8,
7855
+ main: {
7856
+ name: "Ok",
7857
+ startIcon: "ApproveIcon",
7858
+ variant: "contained",
7859
+ type: "text",
7860
+ onClick: "okHandler",
7861
+ size: "medium"
7805
7862
  },
7806
- config: {
7807
- layout: { xs: 7, sm: 7, md: 9 },
7808
- main: {
7809
- heading: " "
7810
- },
7811
- style: {
7812
- float: "right",
7813
- width: "auto",
7814
- fontSize: "12px",
7815
- color: "gray",
7816
- paddingTop: "10px"
7817
- }
7863
+ style: {
7864
+ float: "right"
7818
7865
  }
7866
+ }
7867
+ },
7868
+ {
7869
+ type: "Control",
7870
+ scope: "#/properties/btnSubmit",
7871
+ options: {
7872
+ widget: "Button"
7819
7873
  },
7820
- {
7821
- type: "Control",
7822
- scope: "#/properties/Back_Button",
7823
- options: {
7824
- widget: "IconButton"
7874
+ config: {
7875
+ layout: 1.8,
7876
+ main: {
7877
+ name: "Save & Exit",
7878
+ startIcon: "ApproveIcon",
7879
+ variant: "contained",
7880
+ type: "text",
7881
+ onClick: "saveHandler",
7882
+ size: "medium"
7825
7883
  },
7826
- config: {
7827
- layout: { xs: 2, sm: 2, md: 0.5 },
7828
- main: {
7829
- icon: "BackIcon",
7830
- styleDefault: true,
7831
- size: "small",
7832
- onClick: "backHandler",
7833
- tooltipMessage: "Back"
7834
- },
7835
- style: {
7836
- float: "right"
7837
- }
7884
+ style: {
7885
+ float: "right"
7838
7886
  }
7839
7887
  }
7840
- ]
7841
- },
7842
- {
7843
- type: "TabLayout",
7844
- config: {
7845
- main: {
7846
- tabLabels: ["Core", "Response Event"],
7847
- defaultStyle: true,
7848
- id: "event"
7849
- }
7850
7888
  },
7851
- elements: [
7852
- {
7853
- type: "HorizontalLayout",
7854
- elements: [
7855
- {
7856
- type: "Control",
7857
- scope: `#/properties/eventType`,
7858
- options: {
7859
- widget: "SelectInputField"
7860
- },
7861
- config: {
7862
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
7863
- main: {
7864
- label: "Event Type",
7865
- type: "text"
7866
- }
7867
- }
7868
- },
7869
- getSelectField("Handler", "Handler")
7870
- ]
7889
+ {
7890
+ type: "Control",
7891
+ scope: "#/properties/notify",
7892
+ options: {
7893
+ widget: "Notify"
7871
7894
  },
7872
- {
7873
- type: "WrapperLayout",
7874
- config: {
7875
- main: {
7876
- divider: true
7895
+ layout: 6
7896
+ },
7897
+ {
7898
+ type: "HorizontalLayout",
7899
+ config: {
7900
+ style: {
7901
+ position: "fixed",
7902
+ bottom: 5,
7903
+ overflow: "visible",
7904
+ margin: "0",
7905
+ width: "100vw"
7906
+ }
7907
+ },
7908
+ elements: [
7909
+ {
7910
+ type: "Control",
7911
+ scope: "#/properties/EmptyBox",
7912
+ options: {
7913
+ widget: "EmptyBox"
7877
7914
  },
7878
- wrapperStyle: {
7879
- border: "1px solid gray"
7880
- }
7881
- },
7882
- elements: [
7883
- {
7884
- type: "Control",
7885
- scope: "#/properties/heading",
7886
- options: {
7887
- widget: "Box"
7888
- },
7889
- config: {
7890
- layout: 8,
7891
- main: {
7892
- heading: "Response Event"
7893
- },
7894
- style: {
7895
- fontFamily: "Roboto",
7896
- fontWeight: "500",
7897
- paddingLeft: "-10px",
7898
- fontSize: "20px"
7899
- }
7900
- }
7915
+ config: {
7916
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7917
+ }
7918
+ },
7919
+ {
7920
+ type: "Control",
7921
+ scope: "#/properties/FooterText",
7922
+ options: {
7923
+ widget: "Box"
7901
7924
  },
7902
- {
7903
- type: "Control",
7904
- scope: "#/properties/AddButton",
7905
- options: {
7906
- widget: "IconButton"
7925
+ config: {
7926
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7927
+ main: {
7928
+ heading: "Copywriter@ACT21.IO"
7907
7929
  },
7908
- config: {
7909
- layout: 3,
7910
- main: {
7911
- icon: "AddIcon",
7912
- styleDefault: true,
7913
- size: "small",
7914
- onClick: "addEvent",
7915
- tooltipMessage: "Back"
7916
- },
7917
- style: {
7918
- float: "right"
7919
- }
7930
+ style: {
7931
+ color: ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.text.disabled) || "#AFAFAF",
7932
+ fontSize: "12px"
7920
7933
  }
7934
+ }
7935
+ },
7936
+ {
7937
+ type: "HorizontalLayout",
7938
+ config: {
7939
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
7921
7940
  },
7922
- {
7923
- type: "Control",
7924
- scope: "#/properties/events",
7925
- options: {
7926
- widget: "Table"
7927
- },
7928
- config: {
7929
- main: {
7930
- disableAction: true,
7931
- disableSelection: true,
7932
- enableDrag: true
7941
+ elements: [
7942
+ {
7943
+ type: "Control",
7944
+ scope: "#/properties/EmptyBox",
7945
+ options: {
7946
+ widget: "EmptyBox"
7947
+ },
7948
+ config: {
7949
+ layout: 2
7933
7950
  }
7934
7951
  },
7935
- elements: [
7936
- {
7937
- accessorKey: "eventType",
7938
- header: "Event Type"
7939
- },
7940
- {
7941
- accessorKey: "Handler",
7942
- header: "Handler"
7952
+ {
7953
+ type: "Control",
7954
+ scope: "#/properties/backIcon",
7955
+ options: {
7956
+ widget: "Box"
7943
7957
  },
7944
- {
7945
- accessorKey: "Edit_Approve_Records",
7946
- header: "Edit Widget",
7947
- widget: {
7948
- type: "Control",
7949
- scope: "#/properties/Edit_Records",
7950
- options: {
7951
- widget: "IconButton"
7952
- },
7953
- config: {
7954
- main: {
7955
- color: "info",
7956
- size: "small",
7957
- icon: "EditIcon",
7958
- tooltipMessage: "Edit This Record",
7959
- onClick: "editEvent"
7960
- },
7961
- style: {
7962
- color: "#3949ab"
7963
- }
7964
- }
7958
+ config: {
7959
+ layout: 1,
7960
+ main: {
7961
+ iconName: "PrevIcon",
7962
+ onClick: "backHandler"
7963
+ },
7964
+ style: {
7965
+ fill: theme.palette.primary.dark,
7966
+ width: 20,
7967
+ height: 20,
7968
+ display: "flex",
7969
+ alignItems: "center",
7970
+ justifyContent: "center",
7971
+ marginRight: "-8px",
7972
+ cursor: "pointer"
7965
7973
  }
7974
+ }
7975
+ },
7976
+ {
7977
+ type: "Control",
7978
+ scope: "#/properties/text",
7979
+ options: {
7980
+ widget: "Box"
7966
7981
  },
7967
- {
7968
- accessorKey: "Reject_Records",
7969
- header: "Delete",
7970
- widget: {
7971
- type: "Control",
7972
- scope: "#/properties/RejectButton",
7973
- options: {
7974
- widget: "IconButton"
7975
- },
7976
- config: {
7977
- main: {
7978
- icon: "RejectIcon",
7979
- color: "error",
7980
- tooltipMessage: "Reject This Record",
7981
- onClick: "deleteEvent"
7982
- }
7983
- }
7982
+ config: {
7983
+ layout: 9,
7984
+ main: {
7985
+ heading: "Previous Page",
7986
+ onClick: "backHandler"
7987
+ },
7988
+ style: {
7989
+ color: theme.palette.primary.dark,
7990
+ fontSize: "12px",
7991
+ cursor: "pointer",
7992
+ marginLeft: "-6px"
7984
7993
  }
7985
7994
  }
7986
- ]
7987
- }
7988
- ]
7989
- }
7990
- ]
7991
- },
7992
- {
7993
- type: "Control",
7994
- scope: "#/properties/proc",
7995
- config: {
7996
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
7997
- },
7998
- options: {
7999
- widget: "EmptyBox"
7995
+ }
7996
+ ]
7997
+ }
7998
+ ]
8000
7999
  }
8001
- },
8000
+ ]
8001
+ };
8002
+ return uiSchema;
8003
+ };
8004
+ const APISection = {
8005
+ type: "HorizontalLayout",
8006
+ elements: [
8002
8007
  {
8003
8008
  type: "Control",
8004
- scope: "#/properties/btn",
8009
+ scope: "#/properties/method",
8005
8010
  options: {
8006
- widget: "Button"
8011
+ widget: "SelectInputField"
8007
8012
  },
8008
8013
  config: {
8009
- layout: {
8010
- xs: 11,
8011
- sm: 11,
8012
- md: 2.5,
8013
- lg: 2.5
8014
- },
8014
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8015
8015
  main: {
8016
- name: "Ok",
8017
- startIcon: "ApproveIcon",
8018
- variant: "contained",
8019
- color: "info",
8020
- type: "text",
8021
- onClick: "okHandler",
8022
- size: "small"
8023
- },
8024
- style: {
8025
- marginBottom: "8px",
8026
- float: "right"
8016
+ label: "Method",
8017
+ type: "text"
8027
8018
  }
8028
8019
  }
8029
8020
  },
8030
8021
  {
8031
8022
  type: "Control",
8032
- scope: "#/properties/btnSubmit",
8023
+ scope: "#/properties/path",
8033
8024
  options: {
8034
- widget: "Button"
8025
+ widget: "InputField"
8035
8026
  },
8036
8027
  config: {
8037
- layout: {
8038
- xs: 11,
8039
- sm: 11,
8040
- md: 2.5,
8041
- lg: 2.5
8042
- },
8028
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8043
8029
  main: {
8044
- name: "Save & Exit",
8045
- startIcon: "ApproveIcon",
8046
- variant: "contained",
8047
- color: "info",
8030
+ label: "Path",
8048
8031
  type: "text",
8049
- onClick: "saveHandler",
8050
- size: "small"
8051
- },
8052
- style: {
8053
- marginBottom: "8px",
8054
- float: "right"
8032
+ multiple: false,
8033
+ options: []
8055
8034
  }
8056
8035
  }
8057
8036
  },
8058
8037
  {
8059
8038
  type: "Control",
8060
- scope: "#/properties/notify",
8061
- options: {
8062
- widget: "Notify"
8063
- },
8064
- layout: 6
8065
- }
8066
- ]
8067
- };
8068
- const APISection = {
8069
- type: "HorizontalLayout",
8070
- elements: [
8071
- {
8072
- type: "Control",
8073
- scope: "#/properties/method",
8039
+ scope: "#/properties/emptyBox",
8074
8040
  options: {
8075
- widget: "SelectInputField"
8041
+ widget: "EmptyBox"
8076
8042
  },
8077
8043
  config: {
8078
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8079
- main: {
8080
- label: "Method",
8081
- type: "text"
8082
- }
8044
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8083
8045
  }
8084
8046
  },
8085
8047
  {
8086
8048
  type: "Control",
8087
- scope: "#/properties/path",
8049
+ scope: "#/properties/emptyBox",
8088
8050
  options: {
8089
- widget: "InputField"
8051
+ widget: "EmptyBox"
8090
8052
  },
8091
8053
  config: {
8092
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
8093
- main: {
8094
- label: "Path",
8095
- type: "text",
8096
- multiple: false,
8097
- options: []
8098
- }
8054
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8099
8055
  }
8100
8056
  },
8101
8057
  {
@@ -8114,12 +8070,7 @@ const APISection = {
8114
8070
  widget: "InputField"
8115
8071
  },
8116
8072
  config: {
8117
- layout: {
8118
- xs: 11,
8119
- sm: 11,
8120
- md: 5.5,
8121
- lg: 5.5
8122
- },
8073
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8123
8074
  main: {
8124
8075
  label: "Key"
8125
8076
  }
@@ -8132,16 +8083,21 @@ const APISection = {
8132
8083
  widget: "InputField"
8133
8084
  },
8134
8085
  config: {
8135
- layout: {
8136
- xs: 11,
8137
- sm: 11,
8138
- md: 5.5,
8139
- lg: 5.5
8140
- },
8086
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8141
8087
  main: {
8142
8088
  label: "Value"
8143
8089
  }
8144
8090
  }
8091
+ },
8092
+ {
8093
+ type: "Control",
8094
+ scope: "#/properties/emptyBox",
8095
+ options: {
8096
+ widget: "EmptyBox"
8097
+ },
8098
+ config: {
8099
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8100
+ }
8145
8101
  }
8146
8102
  ]
8147
8103
  }
@@ -8163,12 +8119,7 @@ const APISection = {
8163
8119
  widget: "InputField"
8164
8120
  },
8165
8121
  config: {
8166
- layout: {
8167
- xs: 11,
8168
- sm: 11,
8169
- md: 5.5,
8170
- lg: 5.5
8171
- },
8122
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8172
8123
  main: {
8173
8124
  label: "Key"
8174
8125
  }
@@ -8181,16 +8132,21 @@ const APISection = {
8181
8132
  widget: "InputField"
8182
8133
  },
8183
8134
  config: {
8184
- layout: {
8185
- xs: 11,
8186
- sm: 11,
8187
- md: 5.5,
8188
- lg: 5.5
8189
- },
8135
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8190
8136
  main: {
8191
8137
  label: "Value"
8192
8138
  }
8193
8139
  }
8140
+ },
8141
+ {
8142
+ type: "Control",
8143
+ scope: "#/properties/emptyBox",
8144
+ options: {
8145
+ widget: "EmptyBox"
8146
+ },
8147
+ config: {
8148
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
8149
+ }
8194
8150
  }
8195
8151
  ]
8196
8152
  }
@@ -8217,12 +8173,7 @@ const refreshSectionUiSchema = {
8217
8173
  widget: "InputField"
8218
8174
  },
8219
8175
  config: {
8220
- layout: {
8221
- xs: 11,
8222
- sm: 11,
8223
- md: 5.5,
8224
- lg: 5.5
8225
- },
8176
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
8226
8177
  main: {
8227
8178
  label: "Value"
8228
8179
  }
@@ -8235,12 +8186,7 @@ const refreshSectionUiSchema = {
8235
8186
  widget: "EmptyBox"
8236
8187
  },
8237
8188
  config: {
8238
- layout: {
8239
- xs: 11,
8240
- sm: 11,
8241
- md: 5.5,
8242
- lg: 5.5
8243
- },
8189
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8244
8190
  main: {}
8245
8191
  }
8246
8192
  }
@@ -8260,21 +8206,21 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8260
8206
  this.refreshPage(formdata.Handler, store2);
8261
8207
  },
8262
8208
  refreshPage: (handlerType, store22) => {
8263
- const uiSchema = _.cloneDeep(EventUiSchema);
8209
+ const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
8264
8210
  const schema2 = _.cloneDeep(EventSchema);
8265
8211
  if (handlerType) {
8266
8212
  if (handlerType === "custom") {
8267
- uiSchema.elements[1].elements[0].elements[2] = getTextArea("eventCode", "Write Custom Code", false);
8213
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8268
8214
  schema2.required = ["eventType", "Handler", "eventCode"];
8269
8215
  } else if (handlerType === "api") {
8270
- uiSchema.elements[1].elements[0].elements[2] = APISection;
8216
+ uiSchema.elements[0].elements[0].elements[3] = APISection;
8271
8217
  schema2.required = ["eventType", "Handler", "method", "path"];
8272
8218
  } else if (handlerType === "inBuiltFunction") {
8273
- uiSchema.elements[1].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8274
- uiSchema.elements[1].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, { xs: 12, sm: 12, md: 6 });
8219
+ uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8220
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
8275
8221
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8276
8222
  } else if (handlerType === "refresh") {
8277
- uiSchema.elements[1].elements[0].elements[2] = refreshSectionUiSchema;
8223
+ uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
8278
8224
  schema2.properties.refreshElements.required = ["value"];
8279
8225
  schema2.properties.refreshElements.items.required = ["value"];
8280
8226
  schema2.required = ["eventType", "Handler", "refreshElements"];
@@ -8284,8 +8230,8 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8284
8230
  store22.setUiSchema(uiSchema);
8285
8231
  },
8286
8232
  getFormData: Component(store2, dynamicData2, submitHandler, service2).getFormdata,
8287
- getUiSchema: function() {
8288
- return EventUiSchema;
8233
+ getUiSchema: async function() {
8234
+ return await EventUiSchema(store2.theme.myTheme);
8289
8235
  },
8290
8236
  getSchema: () => {
8291
8237
  return EventSchema;
@@ -8747,6 +8693,9 @@ var service = (funcParams) => {
8747
8693
  functionParameters == null ? void 0 : functionParameters.handleNext();
8748
8694
  }
8749
8695
  },
8696
+ backHandler: () => {
8697
+ funcParams.store.navigate(-1);
8698
+ },
8750
8699
  onReset: async function(functionParameters) {
8751
8700
  var _a, _b;
8752
8701
  const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[0];
@@ -9205,62 +9154,7 @@ const BarGraph = {
9205
9154
  widget: "Graph"
9206
9155
  },
9207
9156
  config: {
9208
- main: {
9209
- header: "Bar Graph",
9210
- bottomLabel: "Name of Employe",
9211
- numTicks: 6,
9212
- leftLabel: "Value in lakhs",
9213
- axisLeft: true,
9214
- axisBottom: true,
9215
- hideTicks: false,
9216
- hideLeftAxisLine: false,
9217
- hideBottomAxisLine: false,
9218
- bottomAxisWidth: "10px",
9219
- legend: {
9220
- labelColor: "green",
9221
- legendTitle: "",
9222
- direction: "row",
9223
- align: "none"
9224
- }
9225
- },
9226
- style: {
9227
- containerStyle: {
9228
- width: "100%",
9229
- height: 300
9230
- },
9231
- headerStyle: {},
9232
- tooltipStyle: {},
9233
- labelStyle: {
9234
- margin: { left: 80, bottom: 20 },
9235
- leftLabelOffset: 50,
9236
- bottomLabelOffset: 10
9237
- },
9238
- barStyle: {
9239
- color: {
9240
- firstBarColor: "#6c5efb",
9241
- secondBarColor: "#3f51b5"
9242
- }
9243
- },
9244
- legendStyle: {
9245
- legend: {
9246
- lineHeight: "0.9em",
9247
- fontSize: "8px",
9248
- fontFamily: "arial",
9249
- padding: "10px 10px",
9250
- width: "30%",
9251
- display: "flex",
9252
- justifyContent: "center",
9253
- border: "1px solid rgba(255, 255, 255, 0.3)",
9254
- borderRadius: " 8px",
9255
- marginRight: "auto"
9256
- },
9257
- legendTitle: {
9258
- fontSize: "10px",
9259
- marginBottom: "10px",
9260
- fontWeight: "100"
9261
- }
9262
- }
9263
- }
9157
+ main: {}
9264
9158
  }
9265
9159
  };
9266
9160
  const PieGraph = {
@@ -9271,35 +9165,7 @@ const PieGraph = {
9271
9165
  },
9272
9166
  config: {
9273
9167
  main: {
9274
- header: "Incentive Branch category wise",
9275
- type: "PieGraph",
9276
- bottomLabel: "Name of Employe",
9277
- leftLabel: "Value",
9278
- axisLeft: true,
9279
- axisBottom: true,
9280
- legendAvailable: true,
9281
- legend: {
9282
- labelColor: "green",
9283
- legendTitle: "Branches",
9284
- direction: "row",
9285
- align: "right"
9286
- }
9287
- },
9288
- style: {
9289
- containerStyle: {
9290
- height: "340"
9291
- },
9292
- headerStyle: {},
9293
- tooltipStyle: {
9294
- backgroundColor: "black",
9295
- width: "80px"
9296
- },
9297
- labelStyle: {},
9298
- legendStyle: {
9299
- legend: {},
9300
- legendTitle: {}
9301
- },
9302
- pieStyle: {}
9168
+ type: "PieGraph"
9303
9169
  }
9304
9170
  }
9305
9171
  };
@@ -9347,28 +9213,7 @@ const HorizontalBarGraph = {
9347
9213
  },
9348
9214
  config: {
9349
9215
  main: {
9350
- header: " ",
9351
- type: "HorizontalBarGraph",
9352
- bottomLabel: " ",
9353
- leftLabel: "Value",
9354
- axisLeft: false,
9355
- axisBottom: true,
9356
- hideBottomTicks: false,
9357
- hideLeftTicks: false,
9358
- hideLeftAxisLine: true,
9359
- hideBottomAxisLine: false,
9360
- bottomAxisWidth: "10px"
9361
- },
9362
- style: {
9363
- containerStyle: {
9364
- width: "100%"
9365
- },
9366
- headerStyle: {},
9367
- tooltipStyle: {},
9368
- labelStyle: {},
9369
- barStyle: {
9370
- color: "#6c5efb"
9371
- }
9216
+ type: "HorizontalBarGraph"
9372
9217
  }
9373
9218
  }
9374
9219
  };
@@ -9517,16 +9362,13 @@ const buildStackbarGraph = (config, componentScope) => {
9517
9362
  barGraph.config.layout = createLayoutFormat(config.layout);
9518
9363
  }
9519
9364
  if (config.legendHide) {
9520
- barGraph.config.main.legendAvailable = false;
9365
+ barGraph.config.main.legendAvailable = config.legendHide;
9521
9366
  }
9522
9367
  barGraph.config.main.type = config.graphType;
9523
9368
  barGraph.config.main.header = config.heading;
9524
9369
  if (config.barColor) {
9525
9370
  barGraph.config.barStyle.color = config.barColor;
9526
9371
  }
9527
- if (config.containerBackground) {
9528
- barGraph.config.containerStyle.background = config.containerBackground;
9529
- }
9530
9372
  if (config.height) {
9531
9373
  barGraph.config.style.containerStyle.height = config.height;
9532
9374
  }
@@ -9536,7 +9378,6 @@ const buildStackbarGraph = (config, componentScope) => {
9536
9378
  if (config.leftLabel) {
9537
9379
  barGraph.config.main.leftLabel = config.leftLabel;
9538
9380
  }
9539
- barGraph.scope = componentScope;
9540
9381
  return barGraph;
9541
9382
  };
9542
9383
  var RunnerBoyProgressBar = {
@@ -9590,8 +9431,10 @@ var WrapperSection = {
9590
9431
  };
9591
9432
  const buildWrapperSection = (config, componentScope) => {
9592
9433
  const wrapper = _.cloneDeep(WrapperSection);
9434
+ wrapper.scope = componentScope;
9593
9435
  wrapper.config.main.label = config.label;
9594
9436
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9437
+ wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
9595
9438
  if (config.style) {
9596
9439
  wrapper.config.style = JSON.parse(config.style);
9597
9440
  }
@@ -9607,12 +9450,7 @@ var TextInputField = {
9607
9450
  widget: "InputField"
9608
9451
  },
9609
9452
  config: {
9610
- layout: {
9611
- xs: 11,
9612
- sm: 11,
9613
- md: 5.5,
9614
- lg: 5.5
9615
- },
9453
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
9616
9454
  main: {
9617
9455
  label: ""
9618
9456
  },
@@ -9645,12 +9483,7 @@ var SelectInputField = {
9645
9483
  widget: "SelectInputField"
9646
9484
  },
9647
9485
  config: {
9648
- "layout": {
9649
- "xs": 11,
9650
- "sm": 11,
9651
- "md": 5.5,
9652
- "lg": 5.5
9653
- },
9486
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
9654
9487
  main: {
9655
9488
  label: "",
9656
9489
  type: "text",
@@ -9939,16 +9772,14 @@ var Card = {
9939
9772
  main: {
9940
9773
  rowSpacing: 0.5
9941
9774
  },
9942
- style: {
9943
- wrapperStyle: {
9944
- position: "relative",
9945
- color: "white",
9946
- height: { xs: "120px", md: "160px" },
9947
- width: "100%",
9948
- textAlign: "left",
9949
- background: "#3f51b5",
9950
- borderRadius: "20px"
9951
- }
9775
+ componentsBoxStyle: {
9776
+ position: "relative",
9777
+ color: "white",
9778
+ height: { xs: "120px", md: "160px" },
9779
+ width: "100%",
9780
+ textAlign: "left",
9781
+ background: "#3f51b5",
9782
+ borderRadius: "20px"
9952
9783
  },
9953
9784
  layout: { xs: 12, sm: 12, md: 6, lg: 6 }
9954
9785
  },
@@ -10060,12 +9891,7 @@ var DateInputField = {
10060
9891
  widget: "DateInputField"
10061
9892
  },
10062
9893
  config: {
10063
- layout: {
10064
- xs: 11,
10065
- sm: 11,
10066
- md: 5.5,
10067
- lg: 5.5
10068
- },
9894
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10069
9895
  main: {
10070
9896
  label: "",
10071
9897
  type: "date"
@@ -10182,7 +10008,7 @@ var MultipleSelect = {
10182
10008
  widget: "MultipleSelect"
10183
10009
  },
10184
10010
  config: {
10185
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10011
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10186
10012
  main: {
10187
10013
  label: "",
10188
10014
  type: "text",
@@ -10213,6 +10039,7 @@ const buildBasicUiSchema = (config) => {
10213
10039
  return {
10214
10040
  "type": "HorizontalLayout",
10215
10041
  pageName: `${config.name}`,
10042
+ heading: `${config.label}`,
10216
10043
  "elements": []
10217
10044
  };
10218
10045
  };
@@ -10369,7 +10196,7 @@ var emptyBox = {
10369
10196
  widget: "EmptyBox"
10370
10197
  },
10371
10198
  config: {
10372
- layout: { xs: 12, sm: 12, md: 5.5, lg: 5.5 },
10199
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
10373
10200
  main: {},
10374
10201
  style: {}
10375
10202
  }
@@ -10748,7 +10575,7 @@ const buildUiSchema = (config) => {
10748
10575
  elements = RunnerBoyProgressbar(config, componentScope);
10749
10576
  break;
10750
10577
  case "WrapperSection":
10751
- elements = buildWrapperSection(config);
10578
+ elements = buildWrapperSection(config, componentScope);
10752
10579
  break;
10753
10580
  case "Text":
10754
10581
  elements = buildTextField(config, componentScope);
@@ -10799,7 +10626,7 @@ const buildUiSchema = (config) => {
10799
10626
  switch (config.graphType) {
10800
10627
  case "BarGraph":
10801
10628
  case "StackBarGraph":
10802
- elements = buildStackbarGraph(config, componentScope);
10629
+ elements = buildStackbarGraph(config);
10803
10630
  break;
10804
10631
  case "LineGraph":
10805
10632
  elements = buildLineGraph(config, componentScope);