impaktapps-ui-builder 0.0.412-mtreemap.2 → 0.0.412-mtreemap.21

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 (45) hide show
  1. package/dist/impaktapps-ui-builder.es.js +728 -366
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +13 -13
  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/uischema/button.d.ts +1 -6
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +12 -10
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +5 -5
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +6 -6
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +8 -5
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +4 -2
  13. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +3 -2
  14. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +3 -1
  15. package/package.json +1 -1
  16. package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +2 -2
  17. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +4 -4
  18. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +1 -1
  19. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +27 -26
  20. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +2 -0
  21. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
  22. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +2 -2
  23. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +39 -38
  24. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +2 -7
  25. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +10 -9
  26. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +21 -28
  27. package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +3 -8
  28. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +155 -102
  29. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +2 -12
  30. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +1 -1
  31. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +9 -5
  32. package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +14 -0
  33. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +1 -1
  34. package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +1 -1
  35. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +1 -0
  36. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -2
  37. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +495 -283
  38. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +1 -1
  39. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +346 -208
  40. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +70 -23
  41. package/src/impaktapps-ui-builder/builder/services/component.ts +39 -21
  42. package/src/impaktapps-ui-builder/builder/services/event.ts +16 -6
  43. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
  44. package/src/impaktapps-ui-builder/runtime/services/events.ts +28 -33
  45. package/src/impaktapps-ui-builder/runtime/services/service.ts +112 -4
@@ -41,7 +41,7 @@ const PageMasterSchema = {
41
41
  }
42
42
  }
43
43
  },
44
- required: ["template", "name"]
44
+ required: ["template", "name", "label"]
45
45
  };
46
46
  const PageMasterUiSchema = (theme) => {
47
47
  var _a;
@@ -79,15 +79,19 @@ const PageMasterUiSchema = (theme) => {
79
79
  },
80
80
  {
81
81
  type: "Control",
82
- scope: "#/properties/label",
82
+ scope: "#/properties/template",
83
83
  options: {
84
- widget: "InputField"
84
+ widget: "SelectInputField"
85
85
  },
86
86
  config: {
87
87
  layout: { xs: 11, sm: 4, md: 4, lg: 4 },
88
88
  main: {
89
- label: "Label",
90
- options: [],
89
+ label: "Template",
90
+ options: [
91
+ { const: "template1", title: "template1" },
92
+ { const: "template2", title: "template2" },
93
+ { const: "template3", title: "template3" }
94
+ ],
91
95
  color: "secondary",
92
96
  required: true
93
97
  }
@@ -95,228 +99,246 @@ const PageMasterUiSchema = (theme) => {
95
99
  },
96
100
  {
97
101
  type: "Control",
98
- scope: "#/properties/emptyBox",
102
+ scope: "#/properties/label",
99
103
  options: {
100
- widget: "EmptyBox"
104
+ widget: "InputField"
101
105
  },
102
106
  config: {
103
- layout: { xs: 0, sm: 4 }
107
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
108
+ main: {
109
+ label: "Label",
110
+ options: [],
111
+ color: "secondary",
112
+ required: true
113
+ }
104
114
  }
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ type: "TabLayout",
120
+ config: {
121
+ main: {
122
+ tabLabels: ["Components", "events"],
123
+ divider: true
105
124
  },
125
+ defaultStyle: true
126
+ },
127
+ elements: [
106
128
  {
107
- type: "TabLayout",
129
+ type: "Control",
130
+ scope: "#/properties/elements",
131
+ options: {
132
+ widget: "Table"
133
+ },
108
134
  config: {
109
135
  main: {
110
- tabLabels: ["Components", "events"],
111
- divider: true
112
- },
113
- defaultStyle: true
114
- },
115
- elements: [
116
- {
117
- type: "Control",
118
- scope: "#/properties/elements",
119
- options: {
120
- widget: "Table"
121
- },
122
- config: {
123
- main: {
124
- headerIcons: {
125
- elements: [
126
- {
127
- widget: {
128
- type: "Control",
129
- scope: "#/properties/New_Record",
130
- options: {
131
- widget: "IconButton"
132
- },
133
- config: {
134
- main: {
135
- onClick: "onAddClickHandler",
136
- size: "small",
137
- icon: "AddIcon",
138
- iconLabel: "Add New",
139
- styleDefault: true
140
- },
141
- style: {
142
- mt: "6px"
143
- }
144
- }
136
+ headerIcons: {
137
+ elements: [
138
+ {
139
+ widget: {
140
+ type: "Control",
141
+ scope: "#/properties/New_Record",
142
+ options: {
143
+ widget: "IconButton"
144
+ },
145
+ config: {
146
+ main: {
147
+ onClick: "onAddClickHandler",
148
+ size: "small",
149
+ icon: "AddIcon",
150
+ iconLabel: "Add New",
151
+ styleDefault: true
152
+ },
153
+ style: {
154
+ mt: "6px"
145
155
  }
146
156
  }
147
- ]
148
- },
149
- disableAction: true,
150
- disableSelection: true,
151
- enableDrag: true
152
- }
153
- },
154
- elements: [
155
- {
156
- accessorKey: "name",
157
- header: "Name"
158
- },
159
- {
160
- accessorKey: "type",
161
- header: "Type"
162
- },
163
- {
164
- header: "Edit",
165
- field: "Reject_Records",
166
- flex: 1,
167
- widget: {
168
- type: "Control",
169
- scope: "#/properties/RejectButton",
170
- options: {
171
- widget: "IconButton"
172
- },
173
- config: {
174
- main: {
175
- icon: "EditIcon",
176
- onClick: "Edit_Components",
177
- tooltipMessage: "Edit This Record"
178
- }
179
157
  }
180
158
  }
159
+ ]
160
+ },
161
+ disableAction: true,
162
+ disableSelection: true,
163
+ enableDrag: true
164
+ }
165
+ },
166
+ elements: [
167
+ {
168
+ accessorKey: "name",
169
+ header: "Name"
170
+ },
171
+ {
172
+ accessorKey: "type",
173
+ header: "Type"
174
+ },
175
+ {
176
+ header: "Edit",
177
+ field: "Reject_Records",
178
+ flex: 1,
179
+ widget: {
180
+ type: "Control",
181
+ scope: "#/properties/RejectButton",
182
+ options: {
183
+ widget: "IconButton"
181
184
  },
182
- {
183
- header: "Delete",
184
- field: "Reject_Records",
185
- flex: 1,
186
- widget: {
187
- type: "Control",
188
- scope: "#/properties/RejectButton",
189
- options: {
190
- widget: "IconButton"
191
- },
192
- config: {
193
- main: {
194
- icon: "RejectIcon",
195
- color: "error",
196
- onClick: "Delete_Components",
197
- tooltipMessage: "Reject This Record"
198
- }
199
- }
185
+ config: {
186
+ main: {
187
+ icon: "EditIcon",
188
+ color: "primary",
189
+ onClick: "Edit_Components",
190
+ tooltipMessage: "Edit This Record"
200
191
  }
201
192
  }
202
- ]
193
+ }
203
194
  },
204
195
  {
205
- type: "Control",
206
- scope: "#/properties/events",
207
- options: {
208
- widget: "Table"
209
- },
210
- config: {
211
- main: {
212
- headerIcons: {
213
- elements: [
214
- {
215
- widget: {
216
- type: "Control",
217
- scope: "#/properties/New_Record",
218
- options: {
219
- widget: "IconButton"
220
- },
221
- config: {
222
- main: {
223
- onClick: "eventAddHandler",
224
- size: "small",
225
- icon: "AddIcon",
226
- iconLabel: "Add New",
227
- styleDefault: true
228
- },
229
- style: {
230
- mt: "6px"
231
- }
232
- }
233
- }
234
- }
235
- ]
236
- },
237
- disableAction: true,
238
- disableSelection: true,
239
- enableDrag: true
240
- }
241
- },
242
- elements: [
243
- {
244
- accessorKey: "eventType",
245
- header: "Event Type"
246
- },
247
- {
248
- accessorKey: "Handler",
249
- header: "Handler"
250
- },
251
- {
252
- accessorKey: "Edit_Approve_Records",
253
- header: "Edit Widget",
254
- widget: {
255
- type: "Control",
256
- scope: "#/properties/Edit_Records",
257
- options: {
258
- widget: "IconButton"
259
- },
260
- config: {
261
- main: {
262
- size: "small",
263
- icon: "EditIcon",
264
- tooltipMessage: "Edit This Record",
265
- onClick: "editEvent"
266
- },
267
- style: {
268
- color: "#3949ab"
269
- }
270
- }
271
- }
196
+ header: "Delete",
197
+ field: "Reject_Records",
198
+ flex: 1,
199
+ widget: {
200
+ type: "Control",
201
+ scope: "#/properties/RejectButton",
202
+ options: {
203
+ widget: "IconButton"
272
204
  },
273
- {
274
- accessorKey: "Reject_Records",
275
- header: "Delete",
276
- widget: {
277
- type: "Control",
278
- scope: "#/properties/RejectButton",
279
- options: {
280
- widget: "IconButton"
281
- },
282
- config: {
283
- main: {
284
- icon: "RejectIcon",
285
- color: "error",
286
- tooltipMessage: "Reject This Record",
287
- onClick: "deleteEvent"
288
- }
289
- }
205
+ config: {
206
+ main: {
207
+ icon: "RejectIcon",
208
+ color: "error",
209
+ onClick: "Delete_Components",
210
+ tooltipMessage: "Reject This Record"
290
211
  }
291
212
  }
292
- ]
213
+ }
293
214
  }
294
215
  ]
295
216
  },
296
217
  {
297
218
  type: "Control",
298
- scope: "#/properties/btn",
219
+ scope: "#/properties/events",
299
220
  options: {
300
- widget: "Button"
221
+ widget: "Table"
301
222
  },
302
223
  config: {
303
- layout: 11.9,
304
224
  main: {
305
- name: "Save",
306
- startIcon: "ApproveIcon",
307
- variant: "contained",
308
- type: "text",
309
- onClick: "saveHandler",
310
- size: "medium"
225
+ headerIcons: {
226
+ elements: [
227
+ {
228
+ widget: {
229
+ type: "Control",
230
+ scope: "#/properties/New_Record",
231
+ options: {
232
+ widget: "IconButton"
233
+ },
234
+ config: {
235
+ main: {
236
+ onClick: "eventAddHandler",
237
+ size: "small",
238
+ icon: "AddIcon",
239
+ iconLabel: "Add New",
240
+ styleDefault: true
241
+ },
242
+ style: {
243
+ mt: "6px"
244
+ }
245
+ }
246
+ }
247
+ }
248
+ ]
249
+ },
250
+ disableAction: true,
251
+ disableSelection: true,
252
+ enableDrag: true
253
+ }
254
+ },
255
+ elements: [
256
+ {
257
+ accessorKey: "eventType",
258
+ header: "Event Type"
311
259
  },
312
- style: {
313
- width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
314
- float: "right"
260
+ {
261
+ accessorKey: "Handler",
262
+ header: "Handler"
263
+ },
264
+ {
265
+ accessorKey: "Edit_Approve_Records",
266
+ header: "Edit Widget",
267
+ widget: {
268
+ type: "Control",
269
+ scope: "#/properties/Edit_Records",
270
+ options: {
271
+ widget: "IconButton"
272
+ },
273
+ config: {
274
+ main: {
275
+ color: "info",
276
+ size: "small",
277
+ icon: "EditIcon",
278
+ tooltipMessage: "Edit This Record",
279
+ onClick: "editEvent"
280
+ },
281
+ style: {
282
+ color: "#3949ab"
283
+ }
284
+ }
285
+ }
286
+ },
287
+ {
288
+ accessorKey: "Reject_Records",
289
+ header: "Delete",
290
+ widget: {
291
+ type: "Control",
292
+ scope: "#/properties/RejectButton",
293
+ options: {
294
+ widget: "IconButton"
295
+ },
296
+ config: {
297
+ main: {
298
+ icon: "RejectIcon",
299
+ color: "error",
300
+ tooltipMessage: "Reject This Record",
301
+ onClick: "deleteEvent"
302
+ }
303
+ }
304
+ }
315
305
  }
316
- }
306
+ ]
317
307
  }
318
308
  ]
319
309
  },
310
+ {
311
+ type: "Control",
312
+ scope: "#/properties/btn",
313
+ options: {
314
+ widget: "EmptyBox"
315
+ },
316
+ config: {
317
+ layout: { xs: 0, sm: 8, md: 8, lg: 8 }
318
+ }
319
+ },
320
+ {
321
+ type: "Control",
322
+ scope: "#/properties/btn",
323
+ options: {
324
+ widget: "Button"
325
+ },
326
+ config: {
327
+ layout: 11.9,
328
+ main: {
329
+ name: "Save",
330
+ startIcon: "ApproveIcon",
331
+ variant: "contained",
332
+ type: "text",
333
+ onClick: "saveHandler",
334
+ size: "medium"
335
+ },
336
+ style: {
337
+ width: { xs: "90%", sm: "90%", md: "20%", lg: "10%" },
338
+ float: "right"
339
+ }
340
+ }
341
+ },
320
342
  {
321
343
  type: "Control",
322
344
  scope: "#/properties/notify",
@@ -6240,30 +6262,63 @@ const componentBasicUiSchema = (theme) => {
6240
6262
  },
6241
6263
  {
6242
6264
  type: "Control",
6243
- scope: "#/properties/layout",
6244
- layout: 12,
6265
+ scope: "#/properties/columnFormat",
6245
6266
  options: {
6246
- detail: {
6247
- type: "HorizontalLayout",
6248
- elements: [
6249
- {
6250
- type: "Control",
6251
- scope: "#/properties/key",
6252
- options: {
6253
- widget: "SelectInputField"
6254
- },
6255
- config: {
6256
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6257
- main: {
6258
- label: "Screen Size"
6259
- }
6260
- }
6261
- },
6262
- {
6263
- type: "Control",
6264
- scope: "#/properties/value",
6265
- options: {
6266
- widget: "InputField"
6267
+ widget: "SelectInputField"
6268
+ },
6269
+ config: {
6270
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6271
+ main: {
6272
+ label: "Column Format"
6273
+ }
6274
+ }
6275
+ },
6276
+ {
6277
+ type: "Control",
6278
+ scope: "#/properties/proc",
6279
+ config: {
6280
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6281
+ },
6282
+ options: {
6283
+ widget: "EmptyBox"
6284
+ }
6285
+ },
6286
+ {
6287
+ type: "Control",
6288
+ scope: "#/properties/proc",
6289
+ config: {
6290
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6291
+ },
6292
+ options: {
6293
+ widget: "EmptyBox"
6294
+ }
6295
+ },
6296
+ {
6297
+ type: "Control",
6298
+ scope: "#/properties/layout",
6299
+ layout: 12,
6300
+ options: {
6301
+ detail: {
6302
+ type: "HorizontalLayout",
6303
+ elements: [
6304
+ {
6305
+ type: "Control",
6306
+ scope: "#/properties/key",
6307
+ options: {
6308
+ widget: "SelectInputField"
6309
+ },
6310
+ config: {
6311
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6312
+ main: {
6313
+ label: "Screen Size"
6314
+ }
6315
+ }
6316
+ },
6317
+ {
6318
+ type: "Control",
6319
+ scope: "#/properties/value",
6320
+ options: {
6321
+ widget: "InputField"
6267
6322
  },
6268
6323
  config: {
6269
6324
  layout: { xs: 11, sm: 4, md: 4, lg: 4 },
@@ -6277,12 +6332,12 @@ const componentBasicUiSchema = (theme) => {
6277
6332
  },
6278
6333
  {
6279
6334
  type: "Control",
6280
- scope: "#/properties/emptyBox",
6335
+ scope: "#/properties/proc",
6336
+ config: {
6337
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6338
+ },
6281
6339
  options: {
6282
6340
  widget: "EmptyBox"
6283
- },
6284
- config: {
6285
- layout: { xs: 0, sm: 4 }
6286
6341
  }
6287
6342
  }
6288
6343
  ]
@@ -6293,6 +6348,172 @@ const componentBasicUiSchema = (theme) => {
6293
6348
  }
6294
6349
  ]
6295
6350
  },
6351
+ {
6352
+ type: "Control",
6353
+ scope: "#/properties/popUpComponentSection",
6354
+ options: {
6355
+ widget: "PopUp"
6356
+ },
6357
+ config: {
6358
+ layout: {
6359
+ xs: 12,
6360
+ sm: 12,
6361
+ md: 12,
6362
+ lg: 12
6363
+ },
6364
+ main: {}
6365
+ },
6366
+ elements: [
6367
+ {
6368
+ type: "Control",
6369
+ scope: "#/properties/label",
6370
+ options: {
6371
+ widget: "Box"
6372
+ },
6373
+ config: {
6374
+ layout: 12,
6375
+ main: {
6376
+ heading: "Are you sure you want to delete ?"
6377
+ },
6378
+ style: {
6379
+ marginTop: "-40px"
6380
+ }
6381
+ }
6382
+ },
6383
+ {
6384
+ type: "Control",
6385
+ scope: "#/properties/EmptyBox",
6386
+ options: {
6387
+ widget: "EmptyBox"
6388
+ },
6389
+ config: {
6390
+ main: {},
6391
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6392
+ }
6393
+ },
6394
+ {
6395
+ type: "Control",
6396
+ scope: "#/properties/ConfirmDeleteCompButton",
6397
+ options: {
6398
+ widget: "Button"
6399
+ },
6400
+ config: {
6401
+ layout: 3,
6402
+ main: {
6403
+ name: "Yes",
6404
+ startIcon: "ApproveIcon",
6405
+ variant: "contained",
6406
+ color: "info",
6407
+ type: "text",
6408
+ onClick: "deleteComponents",
6409
+ size: "small"
6410
+ }
6411
+ }
6412
+ },
6413
+ {
6414
+ type: "Control",
6415
+ scope: "#/properties/CancelDeleteCompButton",
6416
+ options: {
6417
+ widget: "Button"
6418
+ },
6419
+ config: {
6420
+ layout: 3,
6421
+ main: {
6422
+ name: "No",
6423
+ startIcon: "ApproveIcon",
6424
+ variant: "contained",
6425
+ color: "info",
6426
+ type: "text",
6427
+ onClick: "deletePopUpComponent",
6428
+ size: "small"
6429
+ }
6430
+ }
6431
+ }
6432
+ ]
6433
+ },
6434
+ {
6435
+ type: "Control",
6436
+ scope: "#/properties/popUpEventSection",
6437
+ options: {
6438
+ widget: "PopUp"
6439
+ },
6440
+ config: {
6441
+ layout: {
6442
+ xs: 12,
6443
+ sm: 12,
6444
+ md: 12,
6445
+ lg: 12
6446
+ },
6447
+ main: {}
6448
+ },
6449
+ elements: [
6450
+ {
6451
+ type: "Control",
6452
+ scope: "#/properties/label",
6453
+ options: {
6454
+ widget: "Box"
6455
+ },
6456
+ config: {
6457
+ layout: 12,
6458
+ main: {
6459
+ heading: "Are you sure you want to delete ?"
6460
+ },
6461
+ style: {
6462
+ marginTop: "-40px"
6463
+ }
6464
+ }
6465
+ },
6466
+ {
6467
+ type: "Control",
6468
+ scope: "#/properties/EmptyBox",
6469
+ options: {
6470
+ widget: "EmptyBox"
6471
+ },
6472
+ config: {
6473
+ main: {},
6474
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 }
6475
+ }
6476
+ },
6477
+ {
6478
+ type: "Control",
6479
+ scope: "#/properties/ConfirmDeleteEventButton",
6480
+ options: {
6481
+ widget: "Button"
6482
+ },
6483
+ config: {
6484
+ layout: 3,
6485
+ main: {
6486
+ name: "Yes",
6487
+ startIcon: "ApproveIcon",
6488
+ variant: "contained",
6489
+ color: "info",
6490
+ type: "text",
6491
+ onClick: "deleteEvent",
6492
+ size: "small"
6493
+ }
6494
+ }
6495
+ },
6496
+ {
6497
+ type: "Control",
6498
+ scope: "#/properties/CancelDeleteEventButton",
6499
+ options: {
6500
+ widget: "Button"
6501
+ },
6502
+ config: {
6503
+ layout: 3,
6504
+ main: {
6505
+ name: "No",
6506
+ startIcon: "ApproveIcon",
6507
+ variant: "contained",
6508
+ color: "info",
6509
+ type: "text",
6510
+ onClick: "deletePopUpEvent",
6511
+ size: "small"
6512
+ }
6513
+ }
6514
+ }
6515
+ ]
6516
+ },
6296
6517
  {
6297
6518
  type: "Control",
6298
6519
  scope: "#/properties/EmptyBox",
@@ -6519,12 +6740,7 @@ const CoreSection = {
6519
6740
  widget: "SelectInputField"
6520
6741
  },
6521
6742
  config: {
6522
- layout: {
6523
- xs: 12,
6524
- sm: 12,
6525
- md: 6,
6526
- lg: 6
6527
- },
6743
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
6528
6744
  main: {
6529
6745
  label: "Column Format"
6530
6746
  }
@@ -6534,7 +6750,17 @@ const CoreSection = {
6534
6750
  type: "Control",
6535
6751
  scope: "#/properties/proc",
6536
6752
  config: {
6537
- layout: { xs: 11, sm: 11, md: 6, lg: 6 }
6753
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6754
+ },
6755
+ options: {
6756
+ widget: "EmptyBox"
6757
+ }
6758
+ },
6759
+ {
6760
+ type: "Control",
6761
+ scope: "#/properties/proc",
6762
+ config: {
6763
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6538
6764
  },
6539
6765
  options: {
6540
6766
  widget: "EmptyBox"
@@ -6580,12 +6806,12 @@ const CoreSection = {
6580
6806
  },
6581
6807
  {
6582
6808
  type: "Control",
6583
- scope: "#/properties/emptyBox",
6809
+ scope: "#/properties/proc",
6810
+ config: {
6811
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
6812
+ },
6584
6813
  options: {
6585
6814
  widget: "EmptyBox"
6586
- },
6587
- config: {
6588
- layout: { xs: 0, sm: 4 }
6589
6815
  }
6590
6816
  }
6591
6817
  ]
@@ -6683,7 +6909,7 @@ const EventSection = {
6683
6909
  icon: "RejectIcon",
6684
6910
  color: "error",
6685
6911
  tooltipMessage: "Reject This Record",
6686
- onClick: "deleteEvent"
6912
+ onClick: "deletePopUpEvent"
6687
6913
  }
6688
6914
  }
6689
6915
  }
@@ -6692,15 +6918,16 @@ const EventSection = {
6692
6918
  }
6693
6919
  ]
6694
6920
  };
6695
- const EmptyBox = {
6921
+ var emptyBox = {
6696
6922
  type: "Control",
6697
- scope: `#/properties/empty`,
6923
+ scope: "#/properties/emptyBox",
6698
6924
  options: {
6699
6925
  widget: "EmptyBox"
6700
6926
  },
6701
6927
  config: {
6702
6928
  layout: { xs: 0, sm: 4, md: 4, lg: 4 },
6703
- main: {}
6929
+ main: {},
6930
+ style: {}
6704
6931
  }
6705
6932
  };
6706
6933
  const cardLayout = {
@@ -6740,7 +6967,7 @@ const cardLayout = {
6740
6967
  }
6741
6968
  }
6742
6969
  },
6743
- EmptyBox
6970
+ emptyBox
6744
6971
  ]
6745
6972
  }
6746
6973
  }
@@ -6749,7 +6976,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6749
6976
  return {
6750
6977
  type: "Control",
6751
6978
  scope: `#/properties/${parentScope}`,
6752
- layout: 11.5,
6979
+ layout: 12,
6753
6980
  options: {
6754
6981
  "elementLabelProp": childScope,
6755
6982
  detail: {
@@ -6768,8 +6995,8 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
6768
6995
  }
6769
6996
  }
6770
6997
  },
6771
- EmptyBox,
6772
- EmptyBox
6998
+ emptyBox,
6999
+ emptyBox
6773
7000
  ]
6774
7001
  }
6775
7002
  }
@@ -6789,6 +7016,7 @@ sizeHolder.options.detail.elements[1] = {
6789
7016
  }
6790
7017
  }
6791
7018
  };
7019
+ sizeHolder.options.detail.elements[2] = emptyBox;
6792
7020
  const getInputField = (scope, label) => {
6793
7021
  return {
6794
7022
  type: "Control",
@@ -6876,7 +7104,8 @@ const buildPropertiesSection = function(type) {
6876
7104
  getInputField("linkType", "linkType"),
6877
7105
  getInputField("graphHeight", "Graph Height"),
6878
7106
  getInputField("graphWidth", "Graph Width"),
6879
- getInputField("graphZoomHeight", "Zoom Height")
7107
+ getInputField("graphZoomHeight", "Zoom Height"),
7108
+ emptyBox
6880
7109
  ];
6881
7110
  break;
6882
7111
  case "InputSlider":
@@ -6884,7 +7113,9 @@ const buildPropertiesSection = function(type) {
6884
7113
  getInputField("max", "Max Limit"),
6885
7114
  getInputField("step", "Step"),
6886
7115
  getInputField("min", "Min Limit"),
6887
- getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"])
7116
+ getRadioInputField("limitToMax", "Applly Max. Limit", ["YES", "NO"]),
7117
+ emptyBox,
7118
+ emptyBox
6888
7119
  ];
6889
7120
  break;
6890
7121
  case "DataGrid":
@@ -6893,8 +7124,8 @@ const buildPropertiesSection = function(type) {
6893
7124
  getInputField("elevation", "Card Elevation"),
6894
7125
  getInputField("height", "Grid height"),
6895
7126
  getInputField("justifyContent", "justifyContent"),
6896
- EmptyBox,
6897
- EmptyBox,
7127
+ emptyBox,
7128
+ emptyBox,
6898
7129
  cardLayout
6899
7130
  ];
6900
7131
  break;
@@ -6905,7 +7136,7 @@ const buildPropertiesSection = function(type) {
6905
7136
  getInputField("resetText", "Reset Text"),
6906
7137
  getInputField("completeText", "Complete Text"),
6907
7138
  getSelectField("orientation", "Orientation Type"),
6908
- EmptyBox,
7139
+ emptyBox,
6909
7140
  getArrayControl("sectionLabels", "label")
6910
7141
  ];
6911
7142
  break;
@@ -6913,23 +7144,22 @@ const buildPropertiesSection = function(type) {
6913
7144
  uiSchema.elements = [
6914
7145
  getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
6915
7146
  getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
6916
- getInputField("maxWidth", "Max. Width"),
6917
- EmptyBox
7147
+ getInputField("maxWidth", "Max. Width")
6918
7148
  ];
6919
7149
  break;
6920
7150
  case "Text":
6921
7151
  uiSchema.elements = [
6922
7152
  getInputField("placeholder", "Placeholder"),
6923
- EmptyBox,
6924
- EmptyBox,
7153
+ emptyBox,
7154
+ emptyBox,
6925
7155
  getArrayControl("InputFormatingAndMasking", "formatElement", "Format Element")
6926
7156
  ];
6927
7157
  break;
6928
7158
  case "TextArea":
6929
7159
  uiSchema.elements = [
6930
7160
  getInputField("placeholder", "Placeholder"),
6931
- EmptyBox,
6932
- EmptyBox
7161
+ emptyBox,
7162
+ emptyBox
6933
7163
  ];
6934
7164
  break;
6935
7165
  case "SpeedoMeter":
@@ -6939,7 +7169,7 @@ const buildPropertiesSection = function(type) {
6939
7169
  getInputField("heading", "Container Heading"),
6940
7170
  getInputField("speedoCaption", "Speedometer Caption"),
6941
7171
  getInputField("width", "Speedometer Width"),
6942
- EmptyBox
7172
+ emptyBox
6943
7173
  ];
6944
7174
  break;
6945
7175
  case "RankCard":
@@ -6948,8 +7178,8 @@ const buildPropertiesSection = function(type) {
6948
7178
  getInputField("image", "Image Url"),
6949
7179
  getInputField("title", "Card Title"),
6950
7180
  getInputField("description", "Card Description"),
6951
- EmptyBox,
6952
- EmptyBox
7181
+ emptyBox,
7182
+ emptyBox
6953
7183
  ];
6954
7184
  break;
6955
7185
  case "LeaderBoard":
@@ -6958,8 +7188,8 @@ const buildPropertiesSection = function(type) {
6958
7188
  getInputField("firstImage", "First Image url"),
6959
7189
  getInputField("secondImage", "Second Image url"),
6960
7190
  getInputField("thirdImage", "Third Image url"),
6961
- EmptyBox,
6962
- EmptyBox,
7191
+ emptyBox,
7192
+ emptyBox,
6963
7193
  getTextArea("functionCode", "Write Compare Code", false)
6964
7194
  ];
6965
7195
  break;
@@ -6976,8 +7206,8 @@ const buildPropertiesSection = function(type) {
6976
7206
  getInputField("bottomLabel_1", "First BottomLabel"),
6977
7207
  getInputField("bottomLabel_2", "Second BottomLabel"),
6978
7208
  getInputField("bottomLabel_3", "Third BottomLabel"),
6979
- EmptyBox,
6980
- EmptyBox
7209
+ emptyBox,
7210
+ emptyBox
6981
7211
  ];
6982
7212
  break;
6983
7213
  case "card":
@@ -6985,7 +7215,7 @@ const buildPropertiesSection = function(type) {
6985
7215
  getInputField("url", "Image Url"),
6986
7216
  getInputField("label", "Label"),
6987
7217
  getInputField("description", "Description"),
6988
- EmptyBox
7218
+ emptyBox
6989
7219
  ];
6990
7220
  break;
6991
7221
  case "Button":
@@ -6995,7 +7225,7 @@ const buildPropertiesSection = function(type) {
6995
7225
  getSelectField("color", "Color"),
6996
7226
  getInputField("tooltipMessage", "Tooltip Message"),
6997
7227
  getSelectField("defaultStyle", "Default Style"),
6998
- EmptyBox
7228
+ emptyBox
6999
7229
  ];
7000
7230
  break;
7001
7231
  case "Graph":
@@ -7008,6 +7238,7 @@ const buildPropertiesSection = function(type) {
7008
7238
  getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
7009
7239
  getInputField("yAxisValue", "Y-AxisValue"),
7010
7240
  getInputField("xAxisValue", "X-AxisValue"),
7241
+ emptyBox,
7011
7242
  getArrayControl("legendLabels", "label"),
7012
7243
  getArrayControl("pieArcColors", "color")
7013
7244
  ];
@@ -7017,13 +7248,16 @@ const buildPropertiesSection = function(type) {
7017
7248
  getRadioInputField("divider", "Divider", ["YES", "No"]),
7018
7249
  getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
7019
7250
  getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
7020
- getInputField("rowSpacing", "Row Spacing")
7251
+ getInputField("rowSpacing", "Row Spacing"),
7252
+ emptyBox,
7253
+ emptyBox
7021
7254
  ];
7022
7255
  break;
7023
7256
  case "TabSection":
7024
7257
  uiSchema.elements = [
7025
7258
  getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
7026
7259
  getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
7260
+ emptyBox,
7027
7261
  getArrayControl("sectionLabels", "label")
7028
7262
  ];
7029
7263
  break;
@@ -7049,14 +7283,14 @@ const buildPropertiesSection = function(type) {
7049
7283
  uiSchema.elements = [
7050
7284
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7051
7285
  getRadioInputField("freeSolo", "FreeSolo", ["YES", "NO"]),
7052
- EmptyBox
7286
+ emptyBox
7053
7287
  ];
7054
7288
  break;
7055
7289
  case "MultipleSelect":
7056
7290
  uiSchema.elements = [
7057
7291
  getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
7058
- EmptyBox,
7059
- EmptyBox
7292
+ emptyBox,
7293
+ emptyBox
7060
7294
  ];
7061
7295
  break;
7062
7296
  }
@@ -7182,7 +7416,7 @@ const TableSection = {
7182
7416
  main: {
7183
7417
  icon: "RejectIcon",
7184
7418
  color: "error",
7185
- onClick: "deleteComponent",
7419
+ onClick: "deletePopUpComponent",
7186
7420
  tooltipMessage: "Reject This Record"
7187
7421
  }
7188
7422
  }
@@ -7198,7 +7432,7 @@ const ValueTab = {
7198
7432
  {
7199
7433
  type: "Control",
7200
7434
  scope: "#/properties/value",
7201
- layout: 11.5,
7435
+ layout: 12,
7202
7436
  options: {
7203
7437
  detail: {
7204
7438
  type: "HorizontalLayout",
@@ -7324,10 +7558,10 @@ var buildConfig = (FormData) => {
7324
7558
  const createLayoutFormat = (config) => {
7325
7559
  if (_.isEmpty(config)) {
7326
7560
  return {
7327
- xs: 11,
7328
- sm: 11,
7329
- md: 5.5,
7330
- lg: 5.5
7561
+ xs: 12,
7562
+ sm: 12,
7563
+ md: 12,
7564
+ lg: 12
7331
7565
  };
7332
7566
  }
7333
7567
  let data = {};
@@ -7484,14 +7718,14 @@ const refreshPage = (type, store2) => {
7484
7718
  const sectionUiSchema = {
7485
7719
  Core: CoreSection,
7486
7720
  Value: ValueTab,
7487
- style: StyleSection,
7721
+ Style: StyleSection,
7488
7722
  Event: EventSection,
7489
7723
  Components: TableSection,
7490
7724
  Properties: buildPropertiesSection(type),
7491
7725
  Validation: ValidationSection
7492
7726
  };
7493
7727
  const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
7494
- UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "style", "Event", "Validation"];
7728
+ UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Event", "Validation"];
7495
7729
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection, ValidationSection];
7496
7730
  }
7497
7731
  store2.setUiSchema(UiSchema);
@@ -7538,22 +7772,30 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7538
7772
  store2.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`);
7539
7773
  }
7540
7774
  },
7541
- deleteComponents: function() {
7775
+ deleteComponents: function(shouldUpdateDialog = true) {
7542
7776
  var _a;
7543
7777
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7544
- const rowId = dynamicData2.path.split(".")[1];
7778
+ const rowId = localStorage.getItem("rowId");
7545
7779
  store2.formData.elements.splice(rowId, 1);
7546
7780
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7547
7781
  const data = path ? _.get(response, path) : response;
7548
7782
  store2.setFormdata(data);
7783
+ if (shouldUpdateDialog) {
7784
+ store2.updateDialog("popUpComponentSection");
7785
+ }
7786
+ localStorage.removeItem("rowId");
7549
7787
  },
7550
- deleteEvent: function() {
7788
+ deleteEvent: function(shouldUpdateDialog = true) {
7551
7789
  var _a;
7552
7790
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
7553
- const rowId = dynamicData2.path.split(".")[1];
7791
+ const rowId = localStorage.getItem("rowId");
7554
7792
  store2.formData.events.splice(rowId, 1);
7555
7793
  const response = saveFormdataInLocalStorage(store2.ctx.core.data, path);
7556
7794
  store2.setFormdata(_.get(response, path));
7795
+ if (shouldUpdateDialog) {
7796
+ store2.updateDialog("popUpEventSection");
7797
+ }
7798
+ localStorage.removeItem("rowId");
7557
7799
  },
7558
7800
  widgetAddClickHandler: function() {
7559
7801
  var _a;
@@ -7589,6 +7831,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7589
7831
  },
7590
7832
  backHandler: function() {
7591
7833
  store2.navigate(-1);
7834
+ },
7835
+ deletePopUpComponent: function() {
7836
+ const rowId = dynamicData2.path.split(".")[1];
7837
+ localStorage.setItem("rowId", rowId);
7838
+ store2.updateDialog("popUpComponentSection");
7839
+ },
7840
+ deletePopUpEvent: function() {
7841
+ const rowId = dynamicData2.path.split(".")[1];
7842
+ localStorage.setItem("rowId", rowId);
7843
+ store2.updateDialog("popUpEventSection");
7592
7844
  }
7593
7845
  };
7594
7846
  };
@@ -7643,7 +7895,10 @@ var pageMaster = (funcParams) => {
7643
7895
  },
7644
7896
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7645
7897
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7646
- Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
7898
+ Delete_Components: async function() {
7899
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents(false);
7900
+ store2.updateDialog("popUpPageMasterComponent");
7901
+ },
7647
7902
  eventAddHandler: function() {
7648
7903
  var _a;
7649
7904
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -7663,10 +7918,22 @@ var pageMaster = (funcParams) => {
7663
7918
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7664
7919
  },
7665
7920
  deleteEvent: function() {
7666
- const rowId = dynamicData2.path.split(".")[1];
7921
+ const rowId = localStorage.getItem("rowId");
7667
7922
  store2.formData.events.splice(rowId, 1);
7668
7923
  const response = saveFormdataInLocalStorage(store2.ctx.core.data);
7669
7924
  store2.setFormdata(response);
7925
+ store2.updateDialog("popUpPageMasterEvent");
7926
+ localStorage.removeItem("rowId");
7927
+ },
7928
+ deletePopUpComponent: function() {
7929
+ const rowId = dynamicData2.path.split(".")[1];
7930
+ localStorage.setItem("rowId", rowId);
7931
+ store2.updateDialog("popUpPageMasterComponent");
7932
+ },
7933
+ deletePopUpEvent: function() {
7934
+ const rowId = dynamicData2.path.split(".")[1];
7935
+ localStorage.setItem("rowId", rowId);
7936
+ store2.updateDialog("popUpPageMasterEvent");
7670
7937
  }
7671
7938
  };
7672
7939
  };
@@ -7791,28 +8058,15 @@ const EventUiSchema = (theme) => {
7791
8058
  }
7792
8059
  }
7793
8060
  },
8061
+ getSelectField("Handler", "Handler"),
7794
8062
  {
7795
8063
  type: "Control",
7796
- scope: `#/properties/Handler`,
7797
- options: {
7798
- widget: "SelectInputField"
7799
- },
7800
- config: {
7801
- layout: { xs: 11, sm: 4, md: 4, lg: 4 },
7802
- main: {
7803
- label: "Handler",
7804
- type: "text"
7805
- }
7806
- }
7807
- },
7808
- {
7809
- type: "Control",
7810
- scope: "#/properties/emptyBox",
8064
+ scope: "#/properties/EmptyBox",
7811
8065
  options: {
7812
8066
  widget: "EmptyBox"
7813
8067
  },
7814
8068
  config: {
7815
- layout: { xs: 0, sm: 4 }
8069
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 }
7816
8070
  }
7817
8071
  }
7818
8072
  ]
@@ -7875,6 +8129,7 @@ const EventUiSchema = (theme) => {
7875
8129
  },
7876
8130
  config: {
7877
8131
  main: {
8132
+ color: "info",
7878
8133
  size: "small",
7879
8134
  icon: "EditIcon",
7880
8135
  tooltipMessage: "Edit This Record",
@@ -8263,6 +8518,17 @@ const refreshSectionUiSchema = {
8263
8518
  }
8264
8519
  }
8265
8520
  },
8521
+ {
8522
+ type: "Control",
8523
+ scope: "#/properties/emptyBox",
8524
+ options: {
8525
+ widget: "EmptyBox"
8526
+ },
8527
+ config: {
8528
+ layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8529
+ main: {}
8530
+ }
8531
+ },
8266
8532
  {
8267
8533
  type: "Control",
8268
8534
  scope: "#/properties/emptyBox",
@@ -8280,18 +8546,6 @@ const refreshSectionUiSchema = {
8280
8546
  }
8281
8547
  ]
8282
8548
  };
8283
- var emptyBox = {
8284
- type: "Control",
8285
- scope: "#/properties/emptyBox",
8286
- options: {
8287
- widget: "EmptyBox"
8288
- },
8289
- config: {
8290
- layout: { xs: 0, sm: 4, md: 4, lg: 4 },
8291
- main: {},
8292
- style: {}
8293
- }
8294
- };
8295
8549
  var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8296
8550
  return {
8297
8551
  setPage: async function() {
@@ -8306,18 +8560,19 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8306
8560
  const schema2 = _.cloneDeep(EventSchema);
8307
8561
  if (handlerType) {
8308
8562
  if (handlerType === "custom") {
8309
- uiSchema.elements[1].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8310
- uiSchema.elements[1].elements[0].elements[3] = emptyBox;
8563
+ uiSchema.elements[0].elements[0].elements[2] = getRadioInputField("isSync", "Run in Sync", ["Yes", "No"]);
8311
8564
  uiSchema.elements[0].elements[0].elements[3] = getTextArea("eventCode", "Write Custom Code", false);
8312
8565
  schema2.required = ["eventType", "Handler", "eventCode"];
8313
8566
  } else if (handlerType === "api") {
8567
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8314
8568
  uiSchema.elements[0].elements[0].elements[3] = APISection;
8315
8569
  schema2.required = ["eventType", "Handler", "method", "path"];
8316
8570
  } else if (handlerType === "inBuiltFunction") {
8317
8571
  uiSchema.elements[0].elements[0].elements[2] = getSelectField("inBuiltFunctionType", "Function Name");
8318
- uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true, 12);
8572
+ uiSchema.elements[0].elements[0].elements[3] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
8319
8573
  schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
8320
8574
  } else if (handlerType === "refresh") {
8575
+ uiSchema.elements[0].elements[0].elements[2] = emptyBox;
8321
8576
  uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
8322
8577
  schema2.properties.refreshElements.required = ["value"];
8323
8578
  schema2.properties.refreshElements.items.required = ["value"];
@@ -8334,8 +8589,8 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8334
8589
  store22.setUiSchema(uiSchema);
8335
8590
  },
8336
8591
  getFormData: Component(store2, dynamicData2, submitHandler, service2).getFormdata,
8337
- getUiSchema: async function() {
8338
- return await EventUiSchema(store2.theme.myTheme);
8592
+ getUiSchema: function() {
8593
+ return EventUiSchema;
8339
8594
  },
8340
8595
  getSchema: () => {
8341
8596
  return EventSchema;
@@ -8370,9 +8625,17 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
8370
8625
  store2.setSearchParams(store2.searchParams);
8371
8626
  this.setPage();
8372
8627
  },
8373
- deleteEvent: Component(store2, dynamicData2, submitHandler, service2).deleteEvent,
8628
+ deleteEvent: async function() {
8629
+ await Component(store2, dynamicData2, submitHandler, service2).deleteEvent(false);
8630
+ store2.updateDialog("popUpEvent");
8631
+ },
8374
8632
  backHandler: function() {
8375
8633
  store2.navigate(-1);
8634
+ },
8635
+ deletePopUpEvent: function() {
8636
+ const rowId = dynamicData2.path.split(".")[1];
8637
+ localStorage.setItem("rowId", rowId);
8638
+ store2.updateDialog("popUpEvent");
8376
8639
  }
8377
8640
  };
8378
8641
  };
@@ -8596,17 +8859,25 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
8596
8859
  }
8597
8860
  }
8598
8861
  }
8599
- const buildBodyFormat = (body2, formData, userValue2) => {
8862
+ const buildBodyFormat = (body2, formData, userValue2, store2) => {
8600
8863
  let finalBody = { ...userValue2 == null ? void 0 : userValue2.payload };
8601
8864
  body2.map((elem) => {
8602
- var _a, _b;
8865
+ var _a, _b, _c, _d, _e;
8603
8866
  if (typeof (elem == null ? void 0 : elem.value) !== "string") {
8604
8867
  finalBody[elem.key] = elem.value;
8605
8868
  } else {
8606
8869
  if ((_a = elem == null ? void 0 : elem.value) == null ? void 0 : _a.startsWith("$userValue")) {
8607
8870
  const finalpath = elem.value.substring(11);
8608
8871
  finalBody[elem.key] = _.get(userValue2, finalpath);
8609
- } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$")) {
8872
+ } else if ((_b = elem == null ? void 0 : elem.value) == null ? void 0 : _b.startsWith("$urlParams")) {
8873
+ const finalpath = elem.value.substring(11);
8874
+ const value = (_c = store2 == null ? void 0 : store2.searchParams) == null ? void 0 : _c.get(finalpath);
8875
+ finalBody[elem.key] = value;
8876
+ } else if ((_d = elem == null ? void 0 : elem.value) == null ? void 0 : _d.startsWith("$local")) {
8877
+ const finalpath = elem.value.substring(7);
8878
+ const value = JSON.parse(localStorage.getItem(finalpath) || '""');
8879
+ finalBody[elem.key] = value;
8880
+ } else if ((_e = elem == null ? void 0 : elem.value) == null ? void 0 : _e.startsWith("$")) {
8610
8881
  const finalpath = elem.value.substring(1);
8611
8882
  finalBody[elem.key] = _.get(formData, finalpath);
8612
8883
  } else if ((elem == null ? void 0 : elem.value) === "*" && (elem == null ? void 0 : elem.key) === "*") {
@@ -8654,7 +8925,7 @@ function buildApiPayload(compConfig, body, headers, store, dynamicData, userValu
8654
8925
  headers = buildHeadersFormat(compConfig.headers);
8655
8926
  }
8656
8927
  if (compConfig.body) {
8657
- body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue) };
8928
+ body = { ...buildBodyFormat(compConfig.body, store.newData || ((_b = (_a = store == null ? void 0 : store.ctx) == null ? void 0 : _a.core) == null ? void 0 : _b.data) || store.formData, userValue, store) };
8658
8929
  }
8659
8930
  const promiseChain = { body, headers };
8660
8931
  if (compConfig.apiBody) {
@@ -8735,7 +9006,7 @@ var service = (funcParams) => {
8735
9006
  };
8736
9007
  return {
8737
9008
  setPage: async function() {
8738
- var _a;
9009
+ var _a, _b, _c, _d;
8739
9010
  funcParams.store.setFormdata({});
8740
9011
  funcParams.store.newData = {};
8741
9012
  const pageBasicDetailString = localStorage.getItem("pagemasterMetaData");
@@ -8751,7 +9022,114 @@ var service = (funcParams) => {
8751
9022
  }
8752
9023
  const config = pageData == null ? void 0 : pageData.config;
8753
9024
  const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
8754
- const schema2 = (_a = pageData == null ? void 0 : pageData.schema) != null ? _a : { type: "object", properties: {} };
9025
+ window.localStorage.setItem("pageName", config.label);
9026
+ window.dispatchEvent(new Event("pageNameChanged"));
9027
+ const theme = (_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
9028
+ uiSchema.elements.push(
9029
+ {
9030
+ type: "HorizontalLayout",
9031
+ config: {
9032
+ main: {
9033
+ direction: "row"
9034
+ },
9035
+ style: {
9036
+ flexDirection: "row",
9037
+ position: "absolute",
9038
+ bottom: 0,
9039
+ marginBottom: "-8px",
9040
+ height: "fit-content",
9041
+ overflow: "hidden",
9042
+ zIndex: 1e3,
9043
+ width: "inherit"
9044
+ }
9045
+ },
9046
+ elements: [
9047
+ {
9048
+ type: "Control",
9049
+ scope: "#/properties/FooterText",
9050
+ options: {
9051
+ widget: "Box"
9052
+ },
9053
+ config: {
9054
+ main: {
9055
+ heading: "Copywriter@ACT21.IO"
9056
+ },
9057
+ style: {
9058
+ color: ((_c = theme == null ? void 0 : theme.palette) == null ? void 0 : _c.text.disabled) || "#AFAFAF",
9059
+ fontSize: "12px",
9060
+ textAlign: "center",
9061
+ lineHeight: 1,
9062
+ width: "fit-content",
9063
+ left: "50%",
9064
+ position: "relative",
9065
+ margin: 0,
9066
+ flexGrow: 1,
9067
+ height: 0
9068
+ }
9069
+ }
9070
+ },
9071
+ {
9072
+ type: "Control",
9073
+ scope: "#/properties/backIcon",
9074
+ options: {
9075
+ widget: "Box"
9076
+ },
9077
+ config: {
9078
+ main: {
9079
+ iconName: "PrevIcon",
9080
+ onClick: "backHandler",
9081
+ width: "fit-content"
9082
+ },
9083
+ style: {
9084
+ fill: theme.palette.primary.main,
9085
+ width: 20,
9086
+ height: 0,
9087
+ margin: 0,
9088
+ top: 0,
9089
+ right: "82px",
9090
+ position: "absolute",
9091
+ fontSize: "12px",
9092
+ cursor: "pointer",
9093
+ ":hover": {
9094
+ fill: theme.palette.primary.dark
9095
+ }
9096
+ }
9097
+ }
9098
+ },
9099
+ {
9100
+ type: "Control",
9101
+ scope: "#/properties/text",
9102
+ options: {
9103
+ widget: "Box"
9104
+ },
9105
+ config: {
9106
+ main: {
9107
+ heading: "Previous Page",
9108
+ onClick: "backHandler"
9109
+ },
9110
+ style: {
9111
+ textAlign: "left",
9112
+ lineHeight: 1,
9113
+ height: 0,
9114
+ width: "fit-content",
9115
+ color: theme.palette.primary.main,
9116
+ fontSize: "12px",
9117
+ cursor: "pointer",
9118
+ marginLeft: "2px",
9119
+ marginRight: 0,
9120
+ top: 3,
9121
+ right: "12px",
9122
+ position: "absolute",
9123
+ ":hover": {
9124
+ color: theme.palette.primary.dark
9125
+ }
9126
+ }
9127
+ }
9128
+ }
9129
+ ]
9130
+ }
9131
+ );
9132
+ const schema2 = (_d = pageData == null ? void 0 : pageData.schema) != null ? _d : { type: "object", properties: {} };
8755
9133
  eventGroups = {};
8756
9134
  eventGroups = extractEvents(config);
8757
9135
  executeEventsParameters = {
@@ -8776,8 +9154,6 @@ var service = (funcParams) => {
8776
9154
  eventGroups,
8777
9155
  formDataHolder
8778
9156
  });
8779
- const jsonres = await fetch("https://jsonplaceholder.typicode.com/todos/1");
8780
- await jsonres.json();
8781
9157
  funcParams.store.setSchema(
8782
9158
  (pre) => {
8783
9159
  return {
@@ -8937,9 +9313,12 @@ var leaderBoard = {
8937
9313
  label: "LeaderBoard",
8938
9314
  divider: true
8939
9315
  },
8940
- style: { wrapperStyle: {
8941
- height: { xs: 850, sm: 1e3 }
8942
- } },
9316
+ style: {
9317
+ wrapperStyle: {
9318
+ display: "flex",
9319
+ gap: "10px"
9320
+ }
9321
+ },
8943
9322
  wrapperStyle: {
8944
9323
  position: "relative",
8945
9324
  width: "100%"
@@ -9248,11 +9627,11 @@ var leaderBoard = {
9248
9627
  fontWeight: 900,
9249
9628
  background: "rgb(179, 198, 255)"
9250
9629
  },
9251
- position: "absolute",
9252
9630
  top: { xs: "300px", sm: "300px", md: "390px", lg: "390px" },
9253
9631
  border: "2px solid rgb(179, 198, 255)",
9254
9632
  width: "95%",
9255
- left: "2.5%"
9633
+ left: "2.5%",
9634
+ margin: "auto"
9256
9635
  },
9257
9636
  main: {
9258
9637
  disableAction: true,
@@ -9391,7 +9770,7 @@ const LineGraph = {
9391
9770
  leftLabel: "Incentive",
9392
9771
  gridHidden: true,
9393
9772
  numHidden: false,
9394
- tooltipDataKey: ["First", "Second", "Third"],
9773
+ tooltipDataKey: ["MAMA New Project", "Second", "Third"],
9395
9774
  axisLeft: true,
9396
9775
  axisBottom: true,
9397
9776
  hideLeftAxisLine: false,
@@ -9649,7 +10028,8 @@ var WrapperSection = {
9649
10028
  config: {
9650
10029
  main: {
9651
10030
  rowSpacing: 3,
9652
- divider: true
10031
+ divider: true,
10032
+ label: "Default Label"
9653
10033
  },
9654
10034
  defaultStyle: true
9655
10035
  },
@@ -9660,7 +10040,7 @@ const buildWrapperSection = (config, componentScope) => {
9660
10040
  wrapper.scope = componentScope;
9661
10041
  wrapper.config.main.label = config.label;
9662
10042
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9663
- wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
10043
+ wrapper.config.main.isAccordion = config.isAccordion === "No" ? false : true;
9664
10044
  if (config.defaultStyle) {
9665
10045
  wrapper.config.defaultStyle = config.defaultStyle === "YES" ? true : false;
9666
10046
  }
@@ -9745,12 +10125,7 @@ var Button = {
9745
10125
  widget: "Button"
9746
10126
  },
9747
10127
  config: {
9748
- layout: {
9749
- xs: 11,
9750
- sm: 11,
9751
- md: 5.5,
9752
- lg: 5.5
9753
- },
10128
+ layout: 3,
9754
10129
  main: {
9755
10130
  name: "Compare",
9756
10131
  variant: "contained",
@@ -9760,7 +10135,7 @@ var Button = {
9760
10135
  styleDefault: false,
9761
10136
  icon: "",
9762
10137
  onClick: "onClick",
9763
- size: "small"
10138
+ size: "medium"
9764
10139
  },
9765
10140
  style: {}
9766
10141
  }
@@ -9925,12 +10300,7 @@ const uploadFile = {
9925
10300
  "style": {
9926
10301
  "backgroundColor": "none"
9927
10302
  },
9928
- "layout": {
9929
- "lg": 5.5,
9930
- "md": 5.5,
9931
- "sm": 11,
9932
- "xs": 11
9933
- }
10303
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
9934
10304
  },
9935
10305
  "options": {
9936
10306
  "widget": "UploadFile"
@@ -9947,12 +10317,7 @@ const downloadFile = {
9947
10317
  "style": {
9948
10318
  "backgroundColor": "none"
9949
10319
  },
9950
- "layout": {
9951
- "lg": 5.5,
9952
- "md": 5.5,
9953
- "sm": 11,
9954
- "xs": 11
9955
- }
10320
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 }
9956
10321
  },
9957
10322
  "options": {
9958
10323
  "widget": "DownloadFile"
@@ -10003,14 +10368,16 @@ var Card = {
10003
10368
  main: {
10004
10369
  rowSpacing: 0.5
10005
10370
  },
10006
- componentsBoxStyle: {
10007
- position: "relative",
10008
- color: "white",
10009
- height: { xs: "120px", md: "160px" },
10010
- width: "100%",
10011
- textAlign: "left",
10012
- background: "#3f51b5",
10013
- borderRadius: "20px"
10371
+ style: {
10372
+ componentsBoxStyle: {
10373
+ position: "relative",
10374
+ color: "white",
10375
+ height: { xs: "120px", md: "160px" },
10376
+ width: "100%",
10377
+ textAlign: "left",
10378
+ background: "#3f51b5",
10379
+ borderRadius: "20px"
10380
+ }
10014
10381
  },
10015
10382
  layout: { xs: 12, sm: 12, md: 6, lg: 6 }
10016
10383
  },
@@ -10136,12 +10503,7 @@ const DateTime = {
10136
10503
  widget: "DateTimeInputField"
10137
10504
  },
10138
10505
  config: {
10139
- layout: {
10140
- xs: 11,
10141
- sm: 11,
10142
- md: 5.5,
10143
- lg: 5.5
10144
- },
10506
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10145
10507
  main: {
10146
10508
  label: "DateTime",
10147
10509
  type: "date"
@@ -10301,7 +10663,7 @@ const buildBasicUiSchema = (config) => {
10301
10663
  pageName: config.name,
10302
10664
  name: config.name,
10303
10665
  accessorKey: config.name,
10304
- header: config.label || config.name,
10666
+ heading: config.label || config.name,
10305
10667
  "elements": []
10306
10668
  };
10307
10669
  };
@@ -10434,7 +10796,7 @@ const RadioUiSchema = {
10434
10796
  widget: "RadioInputField"
10435
10797
  },
10436
10798
  config: {
10437
- layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
10799
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10438
10800
  main: {
10439
10801
  label: "Enabled",
10440
10802
  options: ["YES", "NO"],
@@ -10458,11 +10820,11 @@ const buildRadio = (config, componentScope) => {
10458
10820
  return Radio;
10459
10821
  };
10460
10822
  const buildEmptyBox = (config, componentScope) => {
10461
- const EmptyBox2 = _.cloneDeep(emptyBox);
10823
+ const EmptyBox = _.cloneDeep(emptyBox);
10462
10824
  if (config.layout) {
10463
- EmptyBox2.config.layout = createLayoutFormat(config.layout);
10825
+ EmptyBox.config.layout = createLayoutFormat(config.layout);
10464
10826
  }
10465
- return EmptyBox2;
10827
+ return EmptyBox;
10466
10828
  };
10467
10829
  const ArrayUiSchema = {
10468
10830
  type: "Control",
@@ -10543,7 +10905,7 @@ const FileInput = {
10543
10905
  widget: "FileInputField"
10544
10906
  },
10545
10907
  config: {
10546
- layout: 11.5,
10908
+ layout: { xs: 11, sm: 4, md: 4, lg: 4 },
10547
10909
  main: {
10548
10910
  required: false,
10549
10911
  onUpload: "onFileUpload",