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.
- package/dist/impaktapps-ui-builder.es.js +160 -85
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +7 -7
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +2 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +201 -101
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +8 -1
|
@@ -253,89 +253,6 @@ const PageMasterUiSchema = {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
]
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
type: "Control",
|
|
259
|
-
scope: "#/properties/popUpComponent",
|
|
260
|
-
options: {
|
|
261
|
-
widget: "PopUp"
|
|
262
|
-
},
|
|
263
|
-
config: {
|
|
264
|
-
layout: {
|
|
265
|
-
xs: 12,
|
|
266
|
-
sm: 12,
|
|
267
|
-
md: 12,
|
|
268
|
-
lg: 12
|
|
269
|
-
},
|
|
270
|
-
main: {
|
|
271
|
-
label: "PopUp",
|
|
272
|
-
fullScreen: false,
|
|
273
|
-
fullWidth: false,
|
|
274
|
-
maxWidth: false,
|
|
275
|
-
alignItems: false,
|
|
276
|
-
spacing: 2
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
elements: [
|
|
280
|
-
{
|
|
281
|
-
type: "Control",
|
|
282
|
-
scope: "#/properties/label",
|
|
283
|
-
options: {
|
|
284
|
-
widget: "Box"
|
|
285
|
-
},
|
|
286
|
-
config: {
|
|
287
|
-
layout: 12,
|
|
288
|
-
main: {
|
|
289
|
-
heading: "Are you sure you want to delete ?"
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
type: "Control",
|
|
295
|
-
scope: "#/properties/ConfirmDeleteCompButton",
|
|
296
|
-
options: {
|
|
297
|
-
widget: "Button"
|
|
298
|
-
},
|
|
299
|
-
config: {
|
|
300
|
-
layout: 3,
|
|
301
|
-
main: {
|
|
302
|
-
name: "Yes",
|
|
303
|
-
startIcon: "ApproveIcon",
|
|
304
|
-
variant: "contained",
|
|
305
|
-
color: "info",
|
|
306
|
-
type: "text",
|
|
307
|
-
onClick: "Delete_Components",
|
|
308
|
-
size: "small"
|
|
309
|
-
},
|
|
310
|
-
style: {
|
|
311
|
-
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
312
|
-
float: "right"
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
type: "Control",
|
|
318
|
-
scope: "#/properties/CancelDeleteCompButton",
|
|
319
|
-
options: {
|
|
320
|
-
widget: "Button"
|
|
321
|
-
},
|
|
322
|
-
config: {
|
|
323
|
-
layout: 3,
|
|
324
|
-
main: {
|
|
325
|
-
name: "No",
|
|
326
|
-
startIcon: "ApproveIcon",
|
|
327
|
-
variant: "contained",
|
|
328
|
-
color: "info",
|
|
329
|
-
type: "text",
|
|
330
|
-
onClick: "deletePopUpComponent",
|
|
331
|
-
size: "small"
|
|
332
|
-
},
|
|
333
|
-
style: {
|
|
334
|
-
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
]
|
|
339
256
|
}
|
|
340
257
|
]
|
|
341
258
|
},
|
|
@@ -448,7 +365,7 @@ const PageMasterUiSchema = {
|
|
|
448
365
|
icon: "RejectIcon",
|
|
449
366
|
color: "error",
|
|
450
367
|
tooltipMessage: "Reject This Record",
|
|
451
|
-
onClick: "
|
|
368
|
+
onClick: "deletePopUpEvent"
|
|
452
369
|
}
|
|
453
370
|
}
|
|
454
371
|
}
|
|
@@ -459,6 +376,158 @@ const PageMasterUiSchema = {
|
|
|
459
376
|
}
|
|
460
377
|
]
|
|
461
378
|
},
|
|
379
|
+
{
|
|
380
|
+
type: "Control",
|
|
381
|
+
scope: "#/properties/popUpComponent",
|
|
382
|
+
options: {
|
|
383
|
+
widget: "PopUp"
|
|
384
|
+
},
|
|
385
|
+
config: {
|
|
386
|
+
layout: {
|
|
387
|
+
xs: 12,
|
|
388
|
+
sm: 12,
|
|
389
|
+
md: 12,
|
|
390
|
+
lg: 12
|
|
391
|
+
},
|
|
392
|
+
main: {
|
|
393
|
+
label: "PopUp",
|
|
394
|
+
fullScreen: false,
|
|
395
|
+
fullWidth: false,
|
|
396
|
+
maxWidth: false,
|
|
397
|
+
alignItems: false
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
elements: [
|
|
401
|
+
{
|
|
402
|
+
type: "Control",
|
|
403
|
+
scope: "#/properties/label",
|
|
404
|
+
options: {
|
|
405
|
+
widget: "Box"
|
|
406
|
+
},
|
|
407
|
+
config: {
|
|
408
|
+
layout: 12,
|
|
409
|
+
main: {
|
|
410
|
+
heading: "Are you sure you want to delete ?"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
type: "Control",
|
|
416
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
417
|
+
options: {
|
|
418
|
+
widget: "Button"
|
|
419
|
+
},
|
|
420
|
+
config: {
|
|
421
|
+
layout: 3,
|
|
422
|
+
main: {
|
|
423
|
+
name: "Yes",
|
|
424
|
+
startIcon: "ApproveIcon",
|
|
425
|
+
variant: "contained",
|
|
426
|
+
color: "info",
|
|
427
|
+
type: "text",
|
|
428
|
+
onClick: "Delete_Components",
|
|
429
|
+
size: "small"
|
|
430
|
+
},
|
|
431
|
+
style: {
|
|
432
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
type: "Control",
|
|
438
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
439
|
+
options: {
|
|
440
|
+
widget: "Button"
|
|
441
|
+
},
|
|
442
|
+
config: {
|
|
443
|
+
layout: 3,
|
|
444
|
+
main: {
|
|
445
|
+
name: "No",
|
|
446
|
+
startIcon: "ApproveIcon",
|
|
447
|
+
variant: "contained",
|
|
448
|
+
color: "info",
|
|
449
|
+
type: "text",
|
|
450
|
+
onClick: "deletePopUpComponent",
|
|
451
|
+
size: "small"
|
|
452
|
+
},
|
|
453
|
+
style: {
|
|
454
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" }
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
type: "Control",
|
|
462
|
+
scope: "#/properties/popUpEvent",
|
|
463
|
+
options: {
|
|
464
|
+
widget: "PopUp"
|
|
465
|
+
},
|
|
466
|
+
config: {
|
|
467
|
+
layout: {
|
|
468
|
+
xs: 12,
|
|
469
|
+
sm: 12,
|
|
470
|
+
md: 12,
|
|
471
|
+
lg: 12
|
|
472
|
+
},
|
|
473
|
+
main: {}
|
|
474
|
+
},
|
|
475
|
+
elemetns: [
|
|
476
|
+
{
|
|
477
|
+
type: "Control",
|
|
478
|
+
scope: "#/properties/Label",
|
|
479
|
+
options: {
|
|
480
|
+
widget: "Box"
|
|
481
|
+
},
|
|
482
|
+
config: {
|
|
483
|
+
layout: 12,
|
|
484
|
+
main: {
|
|
485
|
+
heading: "Are you sure you want to delete ?"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
type: "Control",
|
|
491
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
492
|
+
options: {
|
|
493
|
+
widget: "Button"
|
|
494
|
+
},
|
|
495
|
+
config: {
|
|
496
|
+
layout: 3,
|
|
497
|
+
main: {
|
|
498
|
+
name: "No",
|
|
499
|
+
startIcon: "ApproveIcon",
|
|
500
|
+
variant: "contained",
|
|
501
|
+
color: "info",
|
|
502
|
+
type: "text",
|
|
503
|
+
onClick: "deleteEvent",
|
|
504
|
+
size: "small"
|
|
505
|
+
},
|
|
506
|
+
style: {}
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
type: "Control",
|
|
511
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
512
|
+
options: {
|
|
513
|
+
widget: "Button"
|
|
514
|
+
},
|
|
515
|
+
config: {
|
|
516
|
+
layout: 3,
|
|
517
|
+
main: {
|
|
518
|
+
name: "Yes",
|
|
519
|
+
startIcon: "ApproveIcon",
|
|
520
|
+
variant: "contained",
|
|
521
|
+
color: "info",
|
|
522
|
+
type: "text",
|
|
523
|
+
onClick: "deleteEvent",
|
|
524
|
+
size: "small"
|
|
525
|
+
},
|
|
526
|
+
style: {}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
},
|
|
462
531
|
{
|
|
463
532
|
type: "Control",
|
|
464
533
|
scope: "#/properties/btn",
|
|
@@ -7711,7 +7780,10 @@ var pageMaster = (funcParams) => {
|
|
|
7711
7780
|
},
|
|
7712
7781
|
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
7713
7782
|
Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
|
|
7714
|
-
Delete_Components:
|
|
7783
|
+
Delete_Components: async function() {
|
|
7784
|
+
await Component(store2, dynamicData2, submitHandler, service2).deleteComponents();
|
|
7785
|
+
store2.updateDialog("popUpComponent");
|
|
7786
|
+
},
|
|
7715
7787
|
eventAddHandler: function() {
|
|
7716
7788
|
var _a;
|
|
7717
7789
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
@@ -7738,6 +7810,9 @@ var pageMaster = (funcParams) => {
|
|
|
7738
7810
|
},
|
|
7739
7811
|
deletePopUpComponent: function() {
|
|
7740
7812
|
store2.updateDialog("popUpComponent");
|
|
7813
|
+
},
|
|
7814
|
+
deletePopUpEvent: function() {
|
|
7815
|
+
store2.updateDialog("popUpEvent");
|
|
7741
7816
|
}
|
|
7742
7817
|
};
|
|
7743
7818
|
};
|