impaktapps-ui-builder 0.0.382-alpha.208 → 0.0.382-alpha.210

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.
@@ -267,14 +267,7 @@ const PageMasterUiSchema = {
267
267
  md: 12,
268
268
  lg: 12
269
269
  },
270
- main: {
271
- label: "PopUpComponent",
272
- fullScreen: false,
273
- fullWidth: false,
274
- maxWidth: false,
275
- alignItems: false,
276
- spacing: 2
277
- }
270
+ main: {}
278
271
  },
279
272
  elements: [
280
273
  {
@@ -286,18 +279,18 @@ const PageMasterUiSchema = {
286
279
  config: {
287
280
  layout: 12,
288
281
  main: {
289
- heading: "Are you sure you want to delete the record ?"
282
+ heading: "Are you sure you want to delete ?"
290
283
  }
291
284
  }
292
285
  },
293
286
  {
294
287
  type: "Control",
295
- scope: "#/properties/ConfirmDeleteButton1",
288
+ scope: "#/properties/ConfirmDeleteButton",
296
289
  options: {
297
290
  widget: "Button"
298
291
  },
299
292
  config: {
300
- layout: 3.5,
293
+ layout: 3,
301
294
  main: {
302
295
  name: "No",
303
296
  startIcon: "ApproveIcon",
@@ -309,8 +302,7 @@ const PageMasterUiSchema = {
309
302
  },
310
303
  style: {
311
304
  marginBottom: "8px",
312
- width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
313
- float: "left"
305
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
314
306
  }
315
307
  }
316
308
  },
@@ -321,7 +313,7 @@ const PageMasterUiSchema = {
321
313
  widget: "Button"
322
314
  },
323
315
  config: {
324
- layout: 3.5,
316
+ layout: 3,
325
317
  main: {
326
318
  name: "Yes",
327
319
  startIcon: "ApproveIcon",
@@ -333,10 +325,19 @@ const PageMasterUiSchema = {
333
325
  },
334
326
  style: {
335
327
  marginBottom: "8px",
336
- width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
337
- float: "right"
328
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
338
329
  }
339
330
  }
331
+ },
332
+ {
333
+ type: "Control",
334
+ scope: "#/properties/emptyBox",
335
+ options: {
336
+ widget: "Box"
337
+ },
338
+ config: {
339
+ layout: 6
340
+ }
340
341
  }
341
342
  ]
342
343
  }
@@ -457,6 +458,91 @@ const PageMasterUiSchema = {
457
458
  }
458
459
  }
459
460
  ]
461
+ },
462
+ {
463
+ type: "Control",
464
+ scope: "#/properties/popUpEvent",
465
+ options: {
466
+ widget: "PopUp"
467
+ },
468
+ config: {
469
+ layout: {
470
+ xs: 12,
471
+ sm: 12,
472
+ md: 12,
473
+ lg: 12
474
+ },
475
+ main: {}
476
+ },
477
+ elemetns: [
478
+ {
479
+ type: "Control",
480
+ scope: "#/properties/Label",
481
+ options: {
482
+ widget: "Box"
483
+ },
484
+ config: {
485
+ layout: 12,
486
+ main: {
487
+ heading: "Are you sure you want to delete ?"
488
+ }
489
+ }
490
+ },
491
+ {
492
+ type: "Control",
493
+ scope: "#/properties/ConfirmDeleteEventButton",
494
+ options: {
495
+ widget: "Button"
496
+ },
497
+ config: {
498
+ layout: 3,
499
+ main: {
500
+ name: "No",
501
+ startIcon: "ApproveIcon",
502
+ variant: "contained",
503
+ color: "info",
504
+ type: "text",
505
+ onClick: "deleteEvent",
506
+ size: "small"
507
+ },
508
+ style: {
509
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
510
+ }
511
+ }
512
+ },
513
+ {
514
+ type: "Control",
515
+ scope: "#/properties/CancelDeleteEventButton",
516
+ options: {
517
+ widget: "Button"
518
+ },
519
+ config: {
520
+ layout: 3,
521
+ main: {
522
+ name: "Yes",
523
+ startIcon: "ApproveIcon",
524
+ variant: "contained",
525
+ color: "info",
526
+ type: "text",
527
+ onClick: "deleteEvent",
528
+ size: "small"
529
+ },
530
+ style: {
531
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
532
+ }
533
+ }
534
+ },
535
+ {
536
+ type: "Control",
537
+ scope: "#/properties/emptyBox",
538
+ options: {
539
+ widget: "Box"
540
+ },
541
+ config: {
542
+ layout: 6
543
+ }
544
+ }
545
+ ]
460
546
  }
461
547
  ]
462
548
  }
@@ -7714,7 +7800,10 @@ var pageMaster = (funcParams) => {
7714
7800
  },
7715
7801
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7716
7802
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
7717
- Delete_Components: Component(store2, dynamicData2, submitHandler, service2).deleteComponents,
7803
+ Delete_Components: async function() {
7804
+ await Component(store2, dynamicData2, submitHandler, service2).deleteComponents();
7805
+ store2.updateDialog("popUpComponent");
7806
+ },
7718
7807
  eventAddHandler: function() {
7719
7808
  var _a;
7720
7809
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
@@ -7725,13 +7814,14 @@ var pageMaster = (funcParams) => {
7725
7814
  const finalPath = `events[${store2.formData.events.length}]`;
7726
7815
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7727
7816
  },
7728
- editEvent: function() {
7817
+ editEvent: async function() {
7729
7818
  var _a;
7730
7819
  const rowId = dynamicData2.path.split(".")[1];
7731
7820
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7732
- saveFormdataInLocalStorage(store2.ctx.core.data);
7821
+ await saveFormdataInLocalStorage(store2.ctx.core.data);
7733
7822
  const finalPath = `events[${rowId}]`;
7734
7823
  store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
7824
+ store2.updateDialog("popUpEvent");
7735
7825
  },
7736
7826
  deleteEvent: function() {
7737
7827
  const rowId = dynamicData2.path.split(".")[1];