impaktapps-ui-builder 0.0.382-alpha.304 → 0.0.382-alpha.307

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.
@@ -51,10 +51,11 @@ declare const _default: (funcParams: funcParamsProps) => {
51
51
  onAddClickHandler: () => void;
52
52
  saveHandler: () => Promise<void>;
53
53
  Edit_Components: () => void;
54
- Delete_Components: () => void;
54
+ Delete_Components: () => Promise<void>;
55
55
  eventAddHandler: () => void;
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.304",
3
+ "version": "0.0.382-alpha.307",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -225,106 +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
- },
228
+
328
229
 
329
230
  ]
330
231
  },
@@ -442,7 +343,7 @@ export const PageMasterUiSchema: any = {
442
343
  icon: "RejectIcon",
443
344
  color: "error",
444
345
  tooltipMessage: "Reject This Record",
445
- onClick: "deleteEvent",
346
+ onClick: "deletePopUpEvent",
446
347
  },
447
348
  },
448
349
  },
@@ -453,6 +354,205 @@ export const PageMasterUiSchema: any = {
453
354
 
454
355
  ],
455
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
+ },
394
+ },
395
+ {
396
+ type: "Control",
397
+ scope: "#/properties/ConfirmDeleteCompButton",
398
+ options: {
399
+ widget: "Button",
400
+ },
401
+ config: {
402
+ layout: 3,
403
+ main: {
404
+ name: "Yes",
405
+ startIcon: "ApproveIcon",
406
+ variant: "contained",
407
+ color: "info",
408
+ type: "text",
409
+ onClick: "Delete_Components",
410
+ size: "small",
411
+ },
412
+ style: {
413
+ // marginBottom: "8px",
414
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
415
+ // float: "right",
416
+ },
417
+ },
418
+ },
419
+ {
420
+ type: "Control",
421
+ scope: "#/properties/CancelDeleteCompButton",
422
+ options: {
423
+ widget: "Button",
424
+ },
425
+ config: {
426
+ layout: 3,
427
+ main: {
428
+ name: "No",
429
+ startIcon: "ApproveIcon",
430
+ variant: "contained",
431
+ color: "info",
432
+ type: "text",
433
+ onClick: "deletePopUpComponent",
434
+ size: "small",
435
+ },
436
+
437
+ style: {
438
+ // marginBottom: "8px",
439
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
440
+ // float: "left",
441
+ },
442
+ },
443
+ },
444
+ // {
445
+ // type: "Control",
446
+ // scope: "#/properties/emptyBox",
447
+
448
+ // options: {
449
+ // widget: "Box",
450
+ // },
451
+ // config: {
452
+ // layout: 6,
453
+ // },
454
+ // },
455
+ // {
456
+ // type: "Control",
457
+ // scope: "#/properties/EmptyBox",
458
+ // config: { layout: { xs: 11, sm: 5.5, md: 5.5, lg: 6 } },
459
+ // options: {
460
+ // widget: "EmptyBox",
461
+ // },
462
+ // },
463
+ ]
464
+ },
465
+
466
+
467
+ {
468
+ type: "Control",
469
+ scope: "#/properties/popUpEvent",
470
+ options:{
471
+ widget: "PopUp"
472
+ },
473
+ config:{
474
+ layout: {
475
+ xs: 12,
476
+ sm: 12,
477
+ md: 12,
478
+ lg: 12,
479
+ },
480
+ main: {
481
+ },
482
+ },
483
+ elemetns:[
484
+ {
485
+ type: "Control",
486
+ scope: "#/properties/Label",
487
+ options: {
488
+ widget: "Box",
489
+ },
490
+ config: {
491
+ layout: 12,
492
+ main: {
493
+ heading: "Are you sure you want to delete ?",
494
+ },
495
+ },
496
+ },
497
+ {
498
+ type: "Control",
499
+ scope: "#/properties/ConfirmDeleteEventButton",
500
+ options: {
501
+ widget: "Button",
502
+ },
503
+ config: {
504
+ layout: 3,
505
+ main: {
506
+ name: "No",
507
+ startIcon: "ApproveIcon",
508
+ variant: "contained",
509
+ color: "info",
510
+ type: "text",
511
+ onClick: "deleteEvent",
512
+ size: "small",
513
+ },
514
+ style: {
515
+ // width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
516
+ // float: "left",
517
+ },
518
+ },
519
+ },
520
+ {
521
+ type: "Control",
522
+ scope: "#/properties/CancelDeleteEventButton",
523
+ options: {
524
+ widget: "Button",
525
+ },
526
+ config: {
527
+ layout: 3,
528
+ main: {
529
+ name: "Yes",
530
+ startIcon: "ApproveIcon",
531
+ variant: "contained",
532
+ color: "info",
533
+ type: "text",
534
+ onClick: "deleteEvent",
535
+ size: "small",
536
+ },
537
+ style: {
538
+ // width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
539
+ // float: "left",
540
+ },
541
+ },
542
+ },
543
+ // {
544
+ // type: "Control",
545
+ // scope: "#/properties/emptyBox",
546
+
547
+ // options: {
548
+ // widget: "Box",
549
+ // },
550
+ // config: {
551
+ // layout: 6,
552
+ // },
553
+ // },
554
+ ]
555
+ },
456
556
 
457
557
  {
458
558
  type: "Control",
@@ -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
+ // Delete_Components: Component(store, dynamicData, submitHandler, service).deleteComponents,
59
+ Delete_Components: async function() {
60
+ await Component(store, dynamicData, submitHandler, service).deleteComponents();
61
+ store.updateDialog("popUpComponent");
62
+ },
59
63
  eventAddHandler: function () {
60
64
  const id = store.searchParams?.get("id");
61
65
  if (!Array.isArray(store.formData.events)) {
@@ -81,5 +85,8 @@ export default (funcParams: funcParamsProps) => {
81
85
  deletePopUpComponent: function(){
82
86
  store.updateDialog("popUpComponent");
83
87
  },
88
+ deletePopUpEvent: function(){
89
+ store.updateDialog("popUpEvent");
90
+ },
84
91
  }
85
92
  };