impaktapps-ui-builder 0.0.382-alpha.1 → 0.0.382-alpha.1000

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 (100) hide show
  1. package/dist/impaktapps-ui-builder.d.ts +1 -0
  2. package/dist/impaktapps-ui-builder.es.js +11324 -0
  3. package/dist/impaktapps-ui-builder.es.js.map +1 -0
  4. package/dist/impaktapps-ui-builder.umd.js +28 -0
  5. package/dist/impaktapps-ui-builder.umd.js.map +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildAadharCard.d.ts +2 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +11 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +5 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildButton.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildCheckbox.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +4 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildDataGrid.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/buildDownloadFile.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/buildEmptyBox.d.ts +1 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/buildFileInput.d.ts +1 -0
  18. package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.d.ts +2 -0
  19. package/dist/src/impaktapps-ui-builder/builder/build/buildLabel.d.ts +1 -0
  20. package/dist/src/impaktapps-ui-builder/builder/build/buildLeaderboard.d.ts +1 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/buildLineGraph.d.ts +1 -0
  22. package/dist/src/impaktapps-ui-builder/builder/build/buildMultiSelect.d.ts +1 -0
  23. package/dist/src/impaktapps-ui-builder/builder/build/buildPieGraph.d.ts +1 -0
  24. package/dist/src/impaktapps-ui-builder/builder/build/buildPop.d.ts +1 -0
  25. package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBar.d.ts +1 -0
  26. package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.d.ts +1 -0
  27. package/dist/src/impaktapps-ui-builder/builder/build/buildRadio.d.ts +1 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/buildRankCard.d.ts +1 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/buildRollAndDice.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/buildRunnerBoyProgrssBar.d.ts +1 -0
  31. package/dist/src/impaktapps-ui-builder/builder/build/buildSelect.d.ts +1 -0
  32. package/dist/src/impaktapps-ui-builder/builder/build/buildSlider.d.ts +1 -0
  33. package/dist/src/impaktapps-ui-builder/builder/build/buildSpeedoMeter.d.ts +1 -0
  34. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.d.ts +1 -0
  35. package/dist/src/impaktapps-ui-builder/builder/build/buildStepper.d.ts +1 -0
  36. package/dist/src/impaktapps-ui-builder/builder/build/buildTabSection.d.ts +1 -0
  37. package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +2 -0
  38. package/dist/src/impaktapps-ui-builder/builder/build/buildText.d.ts +1 -0
  39. package/dist/src/impaktapps-ui-builder/builder/build/buildTextArea.d.ts +1 -0
  40. package/dist/src/impaktapps-ui-builder/builder/build/buildTimer.d.ts +1 -0
  41. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +12 -0
  42. package/dist/src/impaktapps-ui-builder/builder/build/buildUplaodFile.d.ts +1 -0
  43. package/dist/src/impaktapps-ui-builder/builder/build/buildWrapperSection.d.ts +1 -0
  44. package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +134 -0
  45. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +13 -0
  46. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +51 -0
  47. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +28 -0
  48. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +120 -0
  49. package/dist/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.d.ts +13 -0
  50. package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +134 -0
  51. package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +20 -0
  52. package/dist/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.d.ts +18 -0
  53. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +157 -0
  54. package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +46 -0
  55. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +177 -0
  56. package/dist/src/impaktapps-ui-builder/builder/build/uischema/lazyLoadingTable.d.ts +14 -0
  57. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +297 -0
  58. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +23 -0
  59. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +16 -0
  60. package/dist/src/impaktapps-ui-builder/builder/build/uischema/rankCard.d.ts +17 -0
  61. package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +48 -0
  62. package/dist/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.d.ts +17 -0
  63. package/dist/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.d.ts +17 -0
  64. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +21 -0
  65. package/dist/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.d.ts +52 -0
  66. package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +33 -0
  67. package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +19 -0
  68. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +136 -0
  69. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tabsection.d.ts +12 -0
  70. package/dist/src/impaktapps-ui-builder/builder/build/uischema/textInputField.d.ts +20 -0
  71. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +31 -0
  72. package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +32 -0
  73. package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +31 -0
  74. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +12 -0
  75. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.d.ts +1 -0
  76. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.d.ts +1 -0
  77. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +38 -0
  78. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.d.ts +1 -0
  79. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +73 -0
  80. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.d.ts +1 -0
  81. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +20 -0
  82. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +88 -0
  83. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +61 -0
  84. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +10 -0
  85. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +9 -0
  86. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +2 -0
  87. package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +8 -0
  88. package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +11 -0
  89. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +27 -0
  90. package/package.json +1 -1
  91. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
  92. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +18 -4
  93. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +4 -2
  94. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +178 -0
  95. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +236 -59
  96. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +87 -1
  97. package/src/impaktapps-ui-builder/builder/services/component.ts +22 -4
  98. package/src/impaktapps-ui-builder/builder/services/event.ts +9 -1
  99. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -2
  100. package/src/impaktapps-ui-builder/runtime/services/service.ts +6 -7
@@ -159,72 +159,74 @@ export const PageMasterUiSchema: any = {
159
159
  },
160
160
  },
161
161
  },
162
- {
163
- type: "Control",
164
- scope: "#/properties/elements",
165
- options: {
166
- widget: "Table",
167
- },
168
- config: {
169
- main: {
170
- disableAction: true,
171
- disableSelection: true,
172
- enableDrag: true,
173
- }
174
- },
175
- elements: [
176
162
  {
177
- accessorKey: "name",
163
+ type: "Control",
164
+ scope: "#/properties/elements",
165
+ options: {
166
+ widget: "Table",
167
+ },
168
+ config: {
169
+ main: {
170
+ disableAction: true,
171
+ disableSelection: true,
172
+ enableDrag: true,
173
+ }
174
+ },
175
+ elements: [
176
+ {
177
+ accessorKey: "name",
178
178
 
179
- header: "Name",
180
- },
181
- {
182
- accessorKey: "type",
179
+ header: "Name",
180
+ },
181
+ {
182
+ accessorKey: "type",
183
183
 
184
- header: "Type",
185
- },
186
- {
187
- header: "Edit",
188
- field: "Reject_Records",
189
- flex: 1,
190
- widget: {
191
- type: "Control",
192
- scope: "#/properties/RejectButton",
193
- options: {
194
- widget: "IconButton",
184
+ header: "Type",
195
185
  },
196
- config: {
197
- main: {
198
- icon: "EditIcon",
199
- color: "primary",
200
- onClick: "Edit_Components",
201
- tooltipMessage: "Edit This Record",
186
+ {
187
+ header: "Edit",
188
+ field: "Reject_Records",
189
+ flex: 1,
190
+ widget: {
191
+ type: "Control",
192
+ scope: "#/properties/RejectButton",
193
+ options: {
194
+ widget: "IconButton",
195
+ },
196
+ config: {
197
+ main: {
198
+ icon: "EditIcon",
199
+ color: "primary",
200
+ onClick: "Edit_Components",
201
+ tooltipMessage: "Edit This Record",
202
+ },
203
+ },
202
204
  },
203
205
  },
204
- },
205
- },
206
- {
207
- header: "Delete",
208
- field: "Reject_Records",
209
- flex: 1,
210
- widget: {
211
- type: "Control",
212
- scope: "#/properties/RejectButton",
213
- options: {
214
- widget: "IconButton",
215
- },
216
- config: {
217
- main: {
218
- icon: "RejectIcon",
219
- color: "error",
220
- onClick: "Delete_Components",
221
- tooltipMessage: "Reject This Record",
206
+ {
207
+ header: "Delete",
208
+ field: "Reject_Records",
209
+ flex: 1,
210
+ widget: {
211
+ type: "Control",
212
+ scope: "#/properties/RejectButton",
213
+ options: {
214
+ widget: "IconButton",
215
+ },
216
+ config: {
217
+ main: {
218
+ icon: "RejectIcon",
219
+ color: "error",
220
+ onClick: "deletePopUpComponent",
221
+ tooltipMessage: "Reject This Record",
222
+ },
223
+ },
222
224
  },
223
- },
224
- },
225
- }
225
+ }
226
+ ]
227
+ },
226
228
  ]
227
- }]},
229
+ },
228
230
  {
229
231
  type: "WrapperLayout",
230
232
  config: {
@@ -339,7 +341,7 @@ export const PageMasterUiSchema: any = {
339
341
  icon: "RejectIcon",
340
342
  color: "error",
341
343
  tooltipMessage: "Reject This Record",
342
- onClick: "deleteEvent",
344
+ onClick: "deletePopUpEvent",
343
345
  },
344
346
  },
345
347
  },
@@ -350,6 +352,181 @@ export const PageMasterUiSchema: any = {
350
352
 
351
353
  ],
352
354
  },
355
+
356
+ {
357
+ type: "Control",
358
+ scope: "#/properties/popUpPageMasterEvent",
359
+ options: {
360
+ widget: "PopUp"
361
+ },
362
+ config: {
363
+ layout: {
364
+ xs: 12,
365
+ sm: 12,
366
+ md: 12,
367
+ lg: 12,
368
+ },
369
+ main: {
370
+ },
371
+ },
372
+ elements:
373
+ [
374
+ {
375
+ type: "Control",
376
+ scope: "#/properties/label",
377
+ options: {
378
+ widget: "Box",
379
+ },
380
+ config: {
381
+ layout: 12,
382
+ main: {
383
+ heading: "Are you sure you want to delete ?",
384
+ },
385
+ style:{
386
+ marginTop: "-40px"
387
+ }
388
+ },
389
+ },
390
+ {
391
+ type: "Control",
392
+ scope: "#/properties/EmptyBox",
393
+ options: {
394
+ widget: "EmptyBox",
395
+ },
396
+ config: {
397
+ main:{},
398
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
399
+ },
400
+ },
401
+ {
402
+ type: "Control",
403
+ scope: "#/properties/ConfirmDeleteEventButton",
404
+ options: {
405
+ widget: "Button",
406
+ },
407
+ config: {
408
+ layout: 3,
409
+ main: {
410
+ name: "Yes",
411
+ startIcon: "ApproveIcon",
412
+ variant: "contained",
413
+ color: "info",
414
+ type: "text",
415
+ onClick: "deleteEvent",
416
+ size: "small",
417
+ },
418
+ },
419
+ },
420
+ {
421
+ type: "Control",
422
+ scope: "#/properties/CancelDeleteEventButton",
423
+ options: {
424
+ widget: "Button",
425
+ },
426
+ config: {
427
+ layout: 3,
428
+ main: {
429
+ name: "No",
430
+ startIcon: "ApproveIcon",
431
+ variant: "contained",
432
+ color: "info",
433
+ type: "text",
434
+ onClick: "deletePopUpEvent",
435
+ size: "small",
436
+ },
437
+ },
438
+ },
439
+ ]
440
+ },
441
+
442
+ {
443
+ type: "Control",
444
+ scope: "#/properties/popUpPageMasterComponent",
445
+ options: {
446
+ widget: "PopUp"
447
+ },
448
+ config: {
449
+ layout: {
450
+ xs: 12,
451
+ sm: 12,
452
+ md: 12,
453
+ lg: 12,
454
+ },
455
+ main: {
456
+ },
457
+ },
458
+ elements:
459
+ [
460
+ {
461
+ type: "Control",
462
+ scope: "#/properties/label",
463
+ options: {
464
+ widget: "Box",
465
+ },
466
+ config: {
467
+ layout: 12,
468
+ main: {
469
+ heading: "Are you sure you want to delete ?",
470
+ },
471
+ style:{
472
+ marginTop: "-40px"
473
+ }
474
+ },
475
+ },
476
+ {
477
+ type: "Control",
478
+ scope: "#/properties/EmptyBox",
479
+ options: {
480
+ widget: "EmptyBox",
481
+ },
482
+ config: {
483
+ main:{},
484
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
485
+ },
486
+ },
487
+ {
488
+ type: "Control",
489
+ scope: "#/properties/ConfirmDeleteCompButton",
490
+ options: {
491
+ widget: "Button",
492
+ },
493
+ config: {
494
+ layout: 3,
495
+ main: {
496
+ name: "Yes",
497
+ startIcon: "ApproveIcon",
498
+ variant: "contained",
499
+ color: "info",
500
+ type: "text",
501
+ onClick: "Delete_Components",
502
+ size: "small",
503
+ },
504
+ },
505
+ },
506
+ {
507
+ type: "Control",
508
+ scope: "#/properties/CancelDeleteCompButton",
509
+ options: {
510
+ widget: "Button",
511
+ },
512
+ config: {
513
+ layout: 3,
514
+ main: {
515
+ name: "No",
516
+ startIcon: "ApproveIcon",
517
+ variant: "contained",
518
+ color: "info",
519
+ type: "text",
520
+ onClick: "deletePopUpComponent",
521
+ size: "small",
522
+ },
523
+ },
524
+ },
525
+ ]
526
+ },
527
+
528
+
529
+
353
530
  {
354
531
  type: "Control",
355
532
  scope: "#/properties/btn",
@@ -228,7 +228,7 @@ export const EventUiSchema: any = {
228
228
  icon: "RejectIcon",
229
229
  color: "error",
230
230
  tooltipMessage: "Reject This Record",
231
- onClick: "deleteEvent",
231
+ onClick: "deletePopUpEvent",
232
232
  },
233
233
  },
234
234
  },
@@ -238,6 +238,92 @@ export const EventUiSchema: any = {
238
238
  }
239
239
  ],
240
240
  },
241
+ {
242
+ type: "Control",
243
+ scope: "#/properties/popUpEvent",
244
+ options: {
245
+ widget: "PopUp"
246
+ },
247
+ config: {
248
+ layout: {
249
+ xs: 12,
250
+ sm: 12,
251
+ md: 12,
252
+ lg: 12,
253
+ },
254
+ main: {
255
+ },
256
+ },
257
+ elements:
258
+ [
259
+ {
260
+ type: "Control",
261
+ scope: "#/properties/label",
262
+ options: {
263
+ widget: "Box",
264
+ },
265
+ config: {
266
+ layout: 12,
267
+ main: {
268
+ heading: "Are you sure you want to delete ?",
269
+ },
270
+ style:{
271
+ marginTop: "-40px"
272
+ }
273
+ },
274
+ },
275
+ {
276
+ type: "Control",
277
+ scope: "#/properties/EmptyBox",
278
+ options: {
279
+ widget: "EmptyBox",
280
+ },
281
+ config: {
282
+ main:{},
283
+ layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
284
+ },
285
+ },
286
+ {
287
+ type: "Control",
288
+ scope: "#/properties/ConfirmDeleteEventButton",
289
+ options: {
290
+ widget: "Button",
291
+ },
292
+ config: {
293
+ layout: 3,
294
+ main: {
295
+ name: "Yes",
296
+ startIcon: "ApproveIcon",
297
+ variant: "contained",
298
+ color: "info",
299
+ type: "text",
300
+ onClick: "deleteEvent",
301
+ size: "small",
302
+ },
303
+ },
304
+ },
305
+ {
306
+ type: "Control",
307
+ scope: "#/properties/CancelDeleteEventButton",
308
+ options: {
309
+ widget: "Button",
310
+ },
311
+ config: {
312
+ layout: 3,
313
+ main: {
314
+ name: "No",
315
+ startIcon: "ApproveIcon",
316
+ variant: "contained",
317
+ color: "info",
318
+ type: "text",
319
+ onClick: "deletePopUpEvent",
320
+ size: "small",
321
+ },
322
+ },
323
+ },
324
+ ]
325
+ },
326
+
241
327
  {
242
328
  type: "Control",
243
329
  scope: "#/properties/proc",
@@ -104,20 +104,28 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
104
104
  store.navigate(`/Component?path=${`elements[${rowId}]`}&id=${id}`)
105
105
  }
106
106
  },
107
- deleteComponents: function () {
107
+ deleteComponents: function (shouldUpdateDialog: boolean = true) {
108
108
  const path = store.searchParams?.get("path");
109
- const rowId = dynamicData.path.split(".")[1];
109
+ const rowId = localStorage.getItem('rowId');
110
110
  store.formData.elements.splice(rowId, 1);
111
111
  const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
112
112
  const data = path ? _.get(response, path) : response;
113
113
  store.setFormdata(data);
114
+ if(shouldUpdateDialog){
115
+ store.updateDialog("popUpComponentSection");
116
+ }
117
+ localStorage.removeItem('rowId');
114
118
  },
115
- deleteEvent: function () {
119
+ deleteEvent: function (shouldUpdateDialog: boolean = true) {
116
120
  const path = store.searchParams?.get("path");
117
- const rowId = dynamicData.path.split(".")[1];
121
+ const rowId = localStorage.getItem('rowId');
118
122
  store.formData.events.splice(rowId, 1);
119
123
  const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
120
124
  store.setFormdata(_.get(response, path));
125
+ if(shouldUpdateDialog){
126
+ store.updateDialog("popUpEventSection")
127
+ }
128
+ localStorage.removeItem('rowId');
121
129
  },
122
130
  widgetAddClickHandler: function () {
123
131
  if (!Array.isArray(store.formData.elements)) {
@@ -152,6 +160,16 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
152
160
  backHandler: function () {
153
161
  store.navigate(-1)
154
162
  },
163
+ deletePopUpComponent: function(){
164
+ const rowId = dynamicData.path.split(".")[1];
165
+ localStorage.setItem('rowId',rowId);
166
+ store.updateDialog("popUpComponentSection");
167
+ },
168
+ deletePopUpEvent: function(){
169
+ const rowId = dynamicData.path.split(".")[1];
170
+ localStorage.setItem('rowId',rowId);
171
+ store.updateDialog("popUpEventSection");
172
+ },
155
173
  }
156
174
  };
157
175
 
@@ -89,9 +89,17 @@ export default (
89
89
  this.setPage()
90
90
 
91
91
  },
92
- deleteEvent: Component(store, dynamicData, submitHandler, service).deleteEvent,
92
+ deleteEvent: async function () {
93
+ await Component(store, dynamicData, submitHandler, service).deleteEvent(false);
94
+ store.updateDialog("popUpEvent");
95
+ },
93
96
  backHandler: function () {
94
97
  store.navigate(-1)
95
98
  },
99
+ deletePopUpEvent: function(){
100
+ const rowId = dynamicData.path.split(".")[1];
101
+ localStorage.setItem('rowId',rowId);
102
+ store.updateDialog("popUpEvent");
103
+ }
96
104
  }
97
105
  };
@@ -55,7 +55,11 @@ export default (funcParams: funcParamsProps) => {
55
55
  },
56
56
  saveHandler: async ()=> await saveHandler(store,service,submitHandler),
57
57
  Edit_Components: Component(store, dynamicData, submitHandler, service).editComponents,
58
- Delete_Components: Component(store, dynamicData, submitHandler, service).deleteComponents,
58
+
59
+ Delete_Components: async function() {
60
+ await Component(store, dynamicData, submitHandler, service).deleteComponents(false);
61
+ store.updateDialog("popUpPageMasterComponent");
62
+ },
59
63
  eventAddHandler: function () {
60
64
  const id = store.searchParams?.get("id");
61
65
  if (!Array.isArray(store.formData.events)) {
@@ -73,10 +77,22 @@ export default (funcParams: funcParamsProps) => {
73
77
  store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
74
78
  },
75
79
  deleteEvent: function () {
76
- const rowId = dynamicData.path.split(".")[1];
80
+ const rowId = localStorage.getItem('rowId');
77
81
  store.formData.events.splice(rowId, 1);
78
82
  const response = saveFormdataInLocalStorage(store.ctx.core.data)
79
83
  store.setFormdata(response);
84
+ store.updateDialog("popUpPageMasterEvent");
85
+ localStorage.removeItem('rowId');
86
+ },
87
+ deletePopUpComponent: function(){
88
+ const rowId = dynamicData.path.split(".")[1];
89
+ localStorage.setItem('rowId',rowId);
90
+ store.updateDialog("popUpPageMasterComponent");
91
+ },
92
+ deletePopUpEvent: function(){
93
+ const rowId = dynamicData.path.split(".")[1];
94
+ localStorage.setItem('rowId',rowId);
95
+ store.updateDialog("popUpPageMasterEvent");
80
96
  },
81
97
  }
82
98
  };
@@ -73,13 +73,12 @@ export default (funcParams: funcParamsProps) => {
73
73
  serviceHolder: this, eventGroups
74
74
  }
75
75
  funcParams.store.setSchema(
76
- // (pre: any) => {
77
- // return {
78
- // ...funcParams.schema, properties:
79
- // { ...funcParams.schema.properties, ...pre.properties, }
80
- // }
81
- // }
82
- funcParams.schema
76
+ (pre: any) => {
77
+ return {
78
+ ...funcParams.schema, properties:
79
+ { ...funcParams.schema.properties, ...pre.properties, }
80
+ }
81
+ }
83
82
  )
84
83
  funcParams.uiSchema.elements.push(notifyUiSchema);
85
84
  funcParams.store.setUiSchema(funcParams.uiSchema);