impaktapps-ui-builder 0.0.382-alpha.305 → 0.0.382-alpha.309

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.
@@ -81,7 +81,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
81
81
  onChange: () => void;
82
82
  addEvent: () => void;
83
83
  editEvent: () => void;
84
- deleteEvent: () => void;
84
+ deleteEvent: () => Promise<void>;
85
85
  backHandler: () => void;
86
+ deletePopUpEvent: () => void;
86
87
  };
87
88
  export default _default;
@@ -56,5 +56,6 @@ declare const _default: (funcParams: funcParamsProps) => {
56
56
  editEvent: () => void;
57
57
  deleteEvent: () => void;
58
58
  deletePopUpComponent: () => void;
59
+ deletePopUpEvent: () => void;
59
60
  };
60
61
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.382-alpha.305",
3
+ "version": "0.0.382-alpha.309",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -225,114 +225,7 @@ export const PageMasterUiSchema: any = {
225
225
  }
226
226
  ]
227
227
  },
228
- {
229
- type: "Control",
230
- scope: "#/properties/popUpComponent",
231
- options: {
232
- widget: "PopUp"
233
- },
234
- config: {
235
- layout: {
236
- xs: 12,
237
- sm: 12,
238
- md: 12,
239
- lg: 12,
240
- },
241
- main: {
242
- label: "PopUp",
243
- fullScreen:false,
244
- fullWidth:false,
245
- maxWidth:false,
246
- alignItems:false,
247
- // spacing:2
248
- },
249
- },
250
- elements:
251
- [
252
- {
253
- type: "Control",
254
- scope: "#/properties/label",
255
-
256
- options: {
257
- widget: "Box",
258
- },
259
- config: {
260
- layout: 12,
261
- main: {
262
- heading: "Are you sure you want to delete ?",
263
- },
264
- },
265
- },
266
- {
267
- type: "Control",
268
- scope: "#/properties/ConfirmDeleteCompButton",
269
- options: {
270
- widget: "Button",
271
- },
272
- config: {
273
- layout: 3,
274
- main: {
275
- name: "Yes",
276
- startIcon: "ApproveIcon",
277
- variant: "contained",
278
- color: "info",
279
- type: "text",
280
- onClick: "Delete_Components",
281
- size: "small",
282
- },
283
- style: {
284
- // marginBottom: "8px",
285
- width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
286
- // float: "right",
287
- },
288
- },
289
- },
290
- {
291
- type: "Control",
292
- scope: "#/properties/CancelDeleteCompButton",
293
- options: {
294
- widget: "Button",
295
- },
296
- config: {
297
- layout: 3,
298
- main: {
299
- name: "No",
300
- startIcon: "ApproveIcon",
301
- variant: "contained",
302
- color: "info",
303
- type: "text",
304
- onClick: "deletePopUpComponent",
305
- size: "small",
306
- },
307
-
308
- style: {
309
- // marginBottom: "8px",
310
- width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
311
- // float: "left",
312
- },
313
- },
314
- },
315
- // {
316
- // type: "Control",
317
- // scope: "#/properties/emptyBox",
318
-
319
- // options: {
320
- // widget: "Box",
321
- // },
322
- // config: {
323
- // layout: 6,
324
- // },
325
- // },
326
- {
327
- type: "Control",
328
- scope: "#/properties/EmptyBox",
329
- config: { layout: { xs: 11, sm: 5.5, md: 5.5, lg: 6 } },
330
- options: {
331
- widget: "EmptyBox",
332
- },
333
- },
334
- ]
335
- },
228
+
336
229
 
337
230
  ]
338
231
  },
@@ -450,7 +343,7 @@ export const PageMasterUiSchema: any = {
450
343
  icon: "RejectIcon",
451
344
  color: "error",
452
345
  tooltipMessage: "Reject This Record",
453
- onClick: "deleteEvent",
346
+ onClick: "deletePopUpEvent",
454
347
  },
455
348
  },
456
349
  },
@@ -461,6 +354,210 @@ export const PageMasterUiSchema: any = {
461
354
 
462
355
  ],
463
356
  },
357
+ {
358
+ type: "Control",
359
+ scope: "#/properties/popUpComponent",
360
+ options: {
361
+ widget: "PopUp"
362
+ },
363
+ config: {
364
+ layout: {
365
+ xs: 12,
366
+ sm: 12,
367
+ md: 12,
368
+ lg: 12,
369
+ },
370
+ main: {
371
+ label: "PopUp",
372
+ fullScreen:false,
373
+ fullWidth:false,
374
+ maxWidth:false,
375
+ alignItems:false,
376
+ // spacing:2
377
+ },
378
+ },
379
+ elements:
380
+ [
381
+ {
382
+ type: "Control",
383
+ scope: "#/properties/label",
384
+
385
+ options: {
386
+ widget: "Box",
387
+ },
388
+ config: {
389
+ layout: 12,
390
+ main: {
391
+ heading: "Are you sure you want to delete ?",
392
+ },
393
+ style: {
394
+ marginBottom: "15px",
395
+ // width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
396
+ // float: "right",
397
+ },
398
+ },
399
+ },
400
+ {
401
+ type: "Control",
402
+ scope: "#/properties/ConfirmDeleteCompButton",
403
+ options: {
404
+ widget: "Button",
405
+ },
406
+ config: {
407
+ layout: 3,
408
+ main: {
409
+ name: "Yes",
410
+ startIcon: "ApproveIcon",
411
+ variant: "contained",
412
+ color: "info",
413
+ type: "text",
414
+ onClick: "Delete_Components",
415
+ size: "small",
416
+ },
417
+ style: {
418
+ // marginBottom: "8px",
419
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
420
+ // float: "right",
421
+ },
422
+ },
423
+ },
424
+ {
425
+ type: "Control",
426
+ scope: "#/properties/CancelDeleteCompButton",
427
+ options: {
428
+ widget: "Button",
429
+ },
430
+ config: {
431
+ layout: 3,
432
+ main: {
433
+ name: "No",
434
+ startIcon: "ApproveIcon",
435
+ variant: "contained",
436
+ color: "info",
437
+ type: "text",
438
+ onClick: "deletePopUpComponent",
439
+ size: "small",
440
+ },
441
+
442
+ style: {
443
+ // marginBottom: "8px",
444
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
445
+ // float: "left",
446
+ },
447
+ },
448
+ },
449
+ // {
450
+ // type: "Control",
451
+ // scope: "#/properties/emptyBox",
452
+
453
+ // options: {
454
+ // widget: "Box",
455
+ // },
456
+ // config: {
457
+ // layout: 6,
458
+ // },
459
+ // },
460
+ // {
461
+ // type: "Control",
462
+ // scope: "#/properties/EmptyBox",
463
+ // config: { layout: { xs: 11, sm: 5.5, md: 5.5, lg: 6 } },
464
+ // options: {
465
+ // widget: "EmptyBox",
466
+ // },
467
+ // },
468
+ ]
469
+ },
470
+
471
+
472
+ {
473
+ type: "Control",
474
+ scope: "#/properties/popUpEvent",
475
+ options:{
476
+ widget: "PopUp"
477
+ },
478
+ config:{
479
+ layout: {
480
+ xs: 12,
481
+ sm: 12,
482
+ md: 12,
483
+ lg: 12,
484
+ },
485
+ main: {
486
+ },
487
+ },
488
+ elemetns:[
489
+ {
490
+ type: "Control",
491
+ scope: "#/properties/Label",
492
+ options: {
493
+ widget: "Box",
494
+ },
495
+ config: {
496
+ layout: 12,
497
+ main: {
498
+ heading: "Are you sure you want to delete ?",
499
+ },
500
+ },
501
+ },
502
+ {
503
+ type: "Control",
504
+ scope: "#/properties/ConfirmDeleteEventButton",
505
+ options: {
506
+ widget: "Button",
507
+ },
508
+ config: {
509
+ layout: 3,
510
+ main: {
511
+ name: "No",
512
+ startIcon: "ApproveIcon",
513
+ variant: "contained",
514
+ color: "info",
515
+ type: "text",
516
+ onClick: "deleteEvent",
517
+ size: "small",
518
+ },
519
+ style: {
520
+ // width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
521
+ // float: "left",
522
+ },
523
+ },
524
+ },
525
+ {
526
+ type: "Control",
527
+ scope: "#/properties/CancelDeleteEventButton",
528
+ options: {
529
+ widget: "Button",
530
+ },
531
+ config: {
532
+ layout: 3,
533
+ main: {
534
+ name: "Yes",
535
+ startIcon: "ApproveIcon",
536
+ variant: "contained",
537
+ color: "info",
538
+ type: "text",
539
+ onClick: "deleteEvent",
540
+ size: "small",
541
+ },
542
+ style: {
543
+ // width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
544
+ // float: "left",
545
+ },
546
+ },
547
+ },
548
+ // {
549
+ // type: "Control",
550
+ // scope: "#/properties/emptyBox",
551
+
552
+ // options: {
553
+ // widget: "Box",
554
+ // },
555
+ // config: {
556
+ // layout: 6,
557
+ // },
558
+ // },
559
+ ]
560
+ },
464
561
 
465
562
  {
466
563
  type: "Control",
@@ -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,100 @@ export const EventUiSchema: any = {
238
238
  }
239
239
  ],
240
240
  },
241
+ {
242
+ type: "Control",
243
+ scope: "#/properties/popUpComponent",
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
+
263
+ options: {
264
+ widget: "Box",
265
+ },
266
+ config: {
267
+ layout: 12,
268
+ main: {
269
+ heading: "Are you sure you want to delete ?",
270
+ },
271
+ },
272
+ },
273
+ {
274
+ type: "Control",
275
+ scope: "#/properties/ConfirmDeleteCompButton",
276
+ options: {
277
+ widget: "Button",
278
+ },
279
+ config: {
280
+ layout: 3,
281
+ main: {
282
+ name: "Yes",
283
+ startIcon: "ApproveIcon",
284
+ variant: "contained",
285
+ color: "info",
286
+ type: "text",
287
+ onClick: "deleteEvent",
288
+ size: "small",
289
+ },
290
+ style: {
291
+ // marginBottom: "8px",
292
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
293
+ // float: "left",
294
+ },
295
+ },
296
+ },
297
+ {
298
+ type: "Control",
299
+ scope: "#/properties/CancelDeleteCompButton",
300
+ options: {
301
+ widget: "Button",
302
+ },
303
+ config: {
304
+ layout: 3,
305
+ main: {
306
+ name: "No",
307
+ startIcon: "ApproveIcon",
308
+ variant: "contained",
309
+ color: "info",
310
+ type: "text",
311
+ onClick: "deletePopUpEvent",
312
+ size: "small",
313
+ },
314
+
315
+ style: {
316
+ // marginBottom: "8px",
317
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
318
+ // float: "left",
319
+ },
320
+ },
321
+ },
322
+ // {
323
+ // type: "Control",
324
+ // scope: "#/properties/emptyBox",
325
+
326
+ // options: {
327
+ // widget: "Box",
328
+ // },
329
+ // config: {
330
+ // layout: 6,
331
+ // },
332
+ // },
333
+ ]
334
+ },
241
335
  {
242
336
  type: "Control",
243
337
  scope: "#/properties/proc",
@@ -89,9 +89,15 @@ 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;
94
+ store.updateDialog("deletePopUpEvent")
95
+ },
93
96
  backHandler: function () {
94
97
  store.navigate(-1)
95
98
  },
99
+ deletePopUpEvent: function(){
100
+ store.updateDialog("deletePopUpEvent");
101
+ }
96
102
  }
97
103
  };
@@ -85,5 +85,8 @@ export default (funcParams: funcParamsProps) => {
85
85
  deletePopUpComponent: function(){
86
86
  store.updateDialog("popUpComponent");
87
87
  },
88
+ deletePopUpEvent: function(){
89
+ store.updateDialog("popUpEvent");
90
+ },
88
91
  }
89
92
  };