impaktapps-ui-builder 0.0.382-alpha.313 → 0.0.382-alpha.315
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 +13 -7
- 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/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +157 -63
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +149 -63
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +95 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +5 -1
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +7 -1
package/package.json
CHANGED
|
@@ -303,13 +303,21 @@ export const componentBasicUiSchema: any = {
|
|
|
303
303
|
},
|
|
304
304
|
]
|
|
305
305
|
},
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
306
314
|
{
|
|
307
315
|
type: "Control",
|
|
308
316
|
scope: "#/properties/popUpEventSection",
|
|
309
|
-
options:{
|
|
317
|
+
options: {
|
|
310
318
|
widget: "PopUp"
|
|
311
319
|
},
|
|
312
|
-
config:{
|
|
320
|
+
config: {
|
|
313
321
|
layout: {
|
|
314
322
|
xs: 12,
|
|
315
323
|
sm: 12,
|
|
@@ -319,74 +327,160 @@ export const componentBasicUiSchema: any = {
|
|
|
319
327
|
main: {
|
|
320
328
|
},
|
|
321
329
|
},
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
elements:
|
|
331
|
+
[
|
|
332
|
+
{
|
|
333
|
+
type: "Control",
|
|
334
|
+
scope: "#/properties/label",
|
|
335
|
+
options: {
|
|
336
|
+
widget: "Box",
|
|
337
|
+
},
|
|
338
|
+
config: {
|
|
339
|
+
layout: 12,
|
|
340
|
+
main: {
|
|
341
|
+
heading: "Are you sure you want to delete ?",
|
|
342
|
+
},
|
|
343
|
+
style:{
|
|
344
|
+
marginTop: "-40px"
|
|
345
|
+
}
|
|
333
346
|
},
|
|
334
|
-
style:{
|
|
335
|
-
marginTop: "-40px"
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
type: "Control",
|
|
341
|
-
scope: "#/properties/EmptyBox",
|
|
342
|
-
options: {
|
|
343
|
-
widget: "EmptyBox",
|
|
344
|
-
},
|
|
345
|
-
config: {
|
|
346
|
-
main:{},
|
|
347
|
-
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
348
|
-
},
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
type: "Control",
|
|
352
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
353
|
-
options: {
|
|
354
|
-
widget: "Button",
|
|
355
347
|
},
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
size: "small",
|
|
348
|
+
{
|
|
349
|
+
type: "Control",
|
|
350
|
+
scope: "#/properties/EmptyBox",
|
|
351
|
+
options: {
|
|
352
|
+
widget: "EmptyBox",
|
|
353
|
+
},
|
|
354
|
+
config: {
|
|
355
|
+
main:{},
|
|
356
|
+
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
366
357
|
},
|
|
367
358
|
},
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
359
|
+
{
|
|
360
|
+
type: "Control",
|
|
361
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
362
|
+
options: {
|
|
363
|
+
widget: "Button",
|
|
364
|
+
},
|
|
365
|
+
config: {
|
|
366
|
+
layout: 3,
|
|
367
|
+
main: {
|
|
368
|
+
name: "Yes",
|
|
369
|
+
startIcon: "ApproveIcon",
|
|
370
|
+
variant: "contained",
|
|
371
|
+
color: "info",
|
|
372
|
+
type: "text",
|
|
373
|
+
onClick: "deleteEvent",
|
|
374
|
+
size: "small",
|
|
375
|
+
},
|
|
376
|
+
},
|
|
374
377
|
},
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
378
|
+
{
|
|
379
|
+
type: "Control",
|
|
380
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
381
|
+
options: {
|
|
382
|
+
widget: "Button",
|
|
383
|
+
},
|
|
384
|
+
config: {
|
|
385
|
+
layout: 3,
|
|
386
|
+
main: {
|
|
387
|
+
name: "No",
|
|
388
|
+
startIcon: "ApproveIcon",
|
|
389
|
+
variant: "contained",
|
|
390
|
+
color: "info",
|
|
391
|
+
type: "text",
|
|
392
|
+
onClick: "deletePopUpEvent",
|
|
393
|
+
size: "small",
|
|
394
|
+
},
|
|
385
395
|
},
|
|
386
396
|
},
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
|
|
400
|
+
// {
|
|
401
|
+
// type: "Control",
|
|
402
|
+
// scope: "#/properties/popUpEventSection",
|
|
403
|
+
// options:{
|
|
404
|
+
// widget: "PopUp"
|
|
405
|
+
// },
|
|
406
|
+
// config:{
|
|
407
|
+
// layout: {
|
|
408
|
+
// xs: 12,
|
|
409
|
+
// sm: 12,
|
|
410
|
+
// md: 12,
|
|
411
|
+
// lg: 12,
|
|
412
|
+
// },
|
|
413
|
+
// main: {
|
|
414
|
+
// },
|
|
415
|
+
// },
|
|
416
|
+
// elemetns:[
|
|
417
|
+
// {
|
|
418
|
+
// type: "Control",
|
|
419
|
+
// scope: "#/properties/label",
|
|
420
|
+
// options: {
|
|
421
|
+
// widget: "Box",
|
|
422
|
+
// },
|
|
423
|
+
// config: {
|
|
424
|
+
// layout: 12,
|
|
425
|
+
// main: {
|
|
426
|
+
// heading: "Are you sure you want to delete ?",
|
|
427
|
+
// },
|
|
428
|
+
// style:{
|
|
429
|
+
// marginTop: "-40px"
|
|
430
|
+
// }
|
|
431
|
+
// },
|
|
432
|
+
// },
|
|
433
|
+
// {
|
|
434
|
+
// type: "Control",
|
|
435
|
+
// scope: "#/properties/EmptyBox",
|
|
436
|
+
// options: {
|
|
437
|
+
// widget: "EmptyBox",
|
|
438
|
+
// },
|
|
439
|
+
// config: {
|
|
440
|
+
// main:{},
|
|
441
|
+
// layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
442
|
+
// },
|
|
443
|
+
// },
|
|
444
|
+
// {
|
|
445
|
+
// type: "Control",
|
|
446
|
+
// scope: "#/properties/ConfirmDeleteEventButton",
|
|
447
|
+
// options: {
|
|
448
|
+
// widget: "Button",
|
|
449
|
+
// },
|
|
450
|
+
// config: {
|
|
451
|
+
// layout: 3,
|
|
452
|
+
// main: {
|
|
453
|
+
// name: "Yes",
|
|
454
|
+
// startIcon: "ApproveIcon",
|
|
455
|
+
// variant: "contained",
|
|
456
|
+
// color: "info",
|
|
457
|
+
// type: "text",
|
|
458
|
+
// onClick: "deleteEvent",
|
|
459
|
+
// size: "small",
|
|
460
|
+
// },
|
|
461
|
+
// },
|
|
462
|
+
// },
|
|
463
|
+
// {
|
|
464
|
+
// type: "Control",
|
|
465
|
+
// scope: "#/properties/CancelDeleteEventButton",
|
|
466
|
+
// options: {
|
|
467
|
+
// widget: "Button",
|
|
468
|
+
// },
|
|
469
|
+
// config: {
|
|
470
|
+
// layout: 3,
|
|
471
|
+
// main: {
|
|
472
|
+
// name: "No",
|
|
473
|
+
// startIcon: "ApproveIcon",
|
|
474
|
+
// variant: "contained",
|
|
475
|
+
// color: "info",
|
|
476
|
+
// type: "text",
|
|
477
|
+
// onClick: "deletePopUpEvent",
|
|
478
|
+
// size: "small",
|
|
479
|
+
// },
|
|
480
|
+
// },
|
|
481
|
+
// },
|
|
482
|
+
// ]
|
|
483
|
+
// },
|
|
390
484
|
|
|
391
485
|
{
|
|
392
486
|
type: "Control",
|
|
@@ -352,13 +352,14 @@ export const PageMasterUiSchema: any = {
|
|
|
352
352
|
|
|
353
353
|
],
|
|
354
354
|
},
|
|
355
|
+
|
|
355
356
|
{
|
|
356
357
|
type: "Control",
|
|
357
358
|
scope: "#/properties/popUpPageMasterEvent",
|
|
358
|
-
options:{
|
|
359
|
+
options: {
|
|
359
360
|
widget: "PopUp"
|
|
360
361
|
},
|
|
361
|
-
config:{
|
|
362
|
+
config: {
|
|
362
363
|
layout: {
|
|
363
364
|
xs: 12,
|
|
364
365
|
sm: 12,
|
|
@@ -368,74 +369,159 @@ export const PageMasterUiSchema: any = {
|
|
|
368
369
|
main: {
|
|
369
370
|
},
|
|
370
371
|
},
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
|
+
}
|
|
382
388
|
},
|
|
383
|
-
style:{
|
|
384
|
-
marginTop: "-40px"
|
|
385
|
-
}
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
type: "Control",
|
|
390
|
-
scope: "#/properties/EmptyBox",
|
|
391
|
-
options: {
|
|
392
|
-
widget: "EmptyBox",
|
|
393
|
-
},
|
|
394
|
-
config: {
|
|
395
|
-
main:{},
|
|
396
|
-
layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
397
|
-
},
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
type: "Control",
|
|
401
|
-
scope: "#/properties/ConfirmDeleteEventButton",
|
|
402
|
-
options: {
|
|
403
|
-
widget: "Button",
|
|
404
389
|
},
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
size: "small",
|
|
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 },
|
|
415
399
|
},
|
|
416
400
|
},
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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
|
+
},
|
|
423
419
|
},
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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
|
+
},
|
|
434
437
|
},
|
|
435
438
|
},
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
// {
|
|
442
|
+
// type: "Control",
|
|
443
|
+
// scope: "#/properties/popUpPageMasterEvent",
|
|
444
|
+
// options:{
|
|
445
|
+
// widget: "PopUp"
|
|
446
|
+
// },
|
|
447
|
+
// config:{
|
|
448
|
+
// layout: {
|
|
449
|
+
// xs: 12,
|
|
450
|
+
// sm: 12,
|
|
451
|
+
// md: 12,
|
|
452
|
+
// lg: 12,
|
|
453
|
+
// },
|
|
454
|
+
// main: {
|
|
455
|
+
// },
|
|
456
|
+
// },
|
|
457
|
+
// elemetns:[
|
|
458
|
+
// {
|
|
459
|
+
// type: "Control",
|
|
460
|
+
// scope: "#/properties/label",
|
|
461
|
+
// options: {
|
|
462
|
+
// widget: "Box",
|
|
463
|
+
// },
|
|
464
|
+
// config: {
|
|
465
|
+
// layout: 12,
|
|
466
|
+
// main: {
|
|
467
|
+
// heading: "Are you sure you want to delete ?",
|
|
468
|
+
// },
|
|
469
|
+
// style:{
|
|
470
|
+
// marginTop: "-40px"
|
|
471
|
+
// }
|
|
472
|
+
// },
|
|
473
|
+
// },
|
|
474
|
+
// {
|
|
475
|
+
// type: "Control",
|
|
476
|
+
// scope: "#/properties/EmptyBox",
|
|
477
|
+
// options: {
|
|
478
|
+
// widget: "EmptyBox",
|
|
479
|
+
// },
|
|
480
|
+
// config: {
|
|
481
|
+
// main:{},
|
|
482
|
+
// layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
483
|
+
// },
|
|
484
|
+
// },
|
|
485
|
+
// {
|
|
486
|
+
// type: "Control",
|
|
487
|
+
// scope: "#/properties/ConfirmDeleteEventButton",
|
|
488
|
+
// options: {
|
|
489
|
+
// widget: "Button",
|
|
490
|
+
// },
|
|
491
|
+
// config: {
|
|
492
|
+
// layout: 3,
|
|
493
|
+
// main: {
|
|
494
|
+
// name: "Yes",
|
|
495
|
+
// startIcon: "ApproveIcon",
|
|
496
|
+
// variant: "contained",
|
|
497
|
+
// color: "info",
|
|
498
|
+
// type: "text",
|
|
499
|
+
// onClick: "deleteEvent",
|
|
500
|
+
// size: "small",
|
|
501
|
+
// },
|
|
502
|
+
// },
|
|
503
|
+
// },
|
|
504
|
+
// {
|
|
505
|
+
// type: "Control",
|
|
506
|
+
// scope: "#/properties/CancelDeleteEventButton",
|
|
507
|
+
// options: {
|
|
508
|
+
// widget: "Button",
|
|
509
|
+
// },
|
|
510
|
+
// config: {
|
|
511
|
+
// layout: 3,
|
|
512
|
+
// main: {
|
|
513
|
+
// name: "Yes",
|
|
514
|
+
// startIcon: "ApproveIcon",
|
|
515
|
+
// variant: "contained",
|
|
516
|
+
// color: "info",
|
|
517
|
+
// type: "text",
|
|
518
|
+
// onClick: "deletePopUpEvent",
|
|
519
|
+
// size: "small",
|
|
520
|
+
// },
|
|
521
|
+
// },
|
|
522
|
+
// },
|
|
523
|
+
// ]
|
|
524
|
+
// },
|
|
439
525
|
|
|
440
526
|
|
|
441
527
|
|
|
@@ -290,7 +290,7 @@ export const EventUiSchema: any = {
|
|
|
290
290
|
widget: "Button",
|
|
291
291
|
},
|
|
292
292
|
config: {
|
|
293
|
-
layout:
|
|
293
|
+
layout: 3,
|
|
294
294
|
main: {
|
|
295
295
|
name: "Yes",
|
|
296
296
|
startIcon: "ApproveIcon",
|
|
@@ -309,7 +309,7 @@ export const EventUiSchema: any = {
|
|
|
309
309
|
widget: "Button",
|
|
310
310
|
},
|
|
311
311
|
config: {
|
|
312
|
-
layout:
|
|
312
|
+
layout: 3,
|
|
313
313
|
main: {
|
|
314
314
|
name: "No",
|
|
315
315
|
startIcon: "ApproveIcon",
|
|
@@ -322,7 +322,99 @@ export const EventUiSchema: any = {
|
|
|
322
322
|
},
|
|
323
323
|
},
|
|
324
324
|
]
|
|
325
|
-
|
|
325
|
+
},
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
// {
|
|
330
|
+
// type: "Control",
|
|
331
|
+
// scope: "#/properties/popUpEvent",
|
|
332
|
+
// options: {
|
|
333
|
+
// widget: "PopUp"
|
|
334
|
+
// },
|
|
335
|
+
// config: {
|
|
336
|
+
// layout: {
|
|
337
|
+
// xs: 12,
|
|
338
|
+
// sm: 12,
|
|
339
|
+
// md: 12,
|
|
340
|
+
// lg: 12,
|
|
341
|
+
// },
|
|
342
|
+
// main: {
|
|
343
|
+
// },
|
|
344
|
+
// },
|
|
345
|
+
// elements:
|
|
346
|
+
// [
|
|
347
|
+
// {
|
|
348
|
+
// type: "Control",
|
|
349
|
+
// scope: "#/properties/label",
|
|
350
|
+
// options: {
|
|
351
|
+
// widget: "Box",
|
|
352
|
+
// },
|
|
353
|
+
// config: {
|
|
354
|
+
// layout: 12,
|
|
355
|
+
// main: {
|
|
356
|
+
// heading: "Are you sure you want to delete ?",
|
|
357
|
+
// },
|
|
358
|
+
// style:{
|
|
359
|
+
// marginTop: "-40px"
|
|
360
|
+
// }
|
|
361
|
+
// },
|
|
362
|
+
// },
|
|
363
|
+
// {
|
|
364
|
+
// type: "Control",
|
|
365
|
+
// scope: "#/properties/EmptyBox",
|
|
366
|
+
// options: {
|
|
367
|
+
// widget: "EmptyBox",
|
|
368
|
+
// },
|
|
369
|
+
// config: {
|
|
370
|
+
// main:{},
|
|
371
|
+
// layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
|
|
372
|
+
// },
|
|
373
|
+
// },
|
|
374
|
+
// {
|
|
375
|
+
// type: "Control",
|
|
376
|
+
// scope: "#/properties/ConfirmDeleteEventButton",
|
|
377
|
+
// options: {
|
|
378
|
+
// widget: "Button",
|
|
379
|
+
// },
|
|
380
|
+
// config: {
|
|
381
|
+
// layout: 12,
|
|
382
|
+
// main: {
|
|
383
|
+
// name: "Yes",
|
|
384
|
+
// startIcon: "ApproveIcon",
|
|
385
|
+
// variant: "contained",
|
|
386
|
+
// color: "info",
|
|
387
|
+
// type: "text",
|
|
388
|
+
// onClick: "deleteEvent",
|
|
389
|
+
// size: "small",
|
|
390
|
+
// },
|
|
391
|
+
// },
|
|
392
|
+
// },
|
|
393
|
+
// {
|
|
394
|
+
// type: "Control",
|
|
395
|
+
// scope: "#/properties/CancelDeleteEventButton",
|
|
396
|
+
// options: {
|
|
397
|
+
// widget: "Button",
|
|
398
|
+
// },
|
|
399
|
+
// config: {
|
|
400
|
+
// layout: 12,
|
|
401
|
+
// main: {
|
|
402
|
+
// name: "No",
|
|
403
|
+
// startIcon: "ApproveIcon",
|
|
404
|
+
// variant: "contained",
|
|
405
|
+
// color: "info",
|
|
406
|
+
// type: "text",
|
|
407
|
+
// onClick: "deletePopUpEvent",
|
|
408
|
+
// size: "small",
|
|
409
|
+
// },
|
|
410
|
+
// },
|
|
411
|
+
// },
|
|
412
|
+
// ]
|
|
413
|
+
// },
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
326
418
|
{
|
|
327
419
|
type: "Control",
|
|
328
420
|
scope: "#/properties/proc",
|
|
@@ -105,13 +105,17 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
deleteComponents: function () {
|
|
108
|
+
|
|
108
109
|
const path = store.searchParams?.get("path");
|
|
109
|
-
const rowId = dynamicData.path.split(".")[1];
|
|
110
|
+
// const rowId = dynamicData.path.split(".")[1];
|
|
111
|
+
const rowId = localStorage.getItem('rowId');
|
|
112
|
+
|
|
110
113
|
store.formData.elements.splice(rowId, 1);
|
|
111
114
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
112
115
|
const data = path ? _.get(response, path) : response;
|
|
113
116
|
store.setFormdata(data);
|
|
114
117
|
// store.updateDialog("popUpComponent");
|
|
118
|
+
localStorage.removeItem('rowId');
|
|
115
119
|
},
|
|
116
120
|
deleteEvent: function () {
|
|
117
121
|
const path = store.searchParams?.get("path");
|
|
@@ -77,16 +77,22 @@ export default (funcParams: funcParamsProps) => {
|
|
|
77
77
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
78
78
|
},
|
|
79
79
|
deleteEvent: function () {
|
|
80
|
-
const rowId =
|
|
80
|
+
const rowId = localStorage.getItem('rowId');
|
|
81
|
+
// const rowId = dynamicData.path.split(".")[1];
|
|
81
82
|
store.formData.events.splice(rowId, 1);
|
|
82
83
|
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|
|
83
84
|
store.setFormdata(response);
|
|
84
85
|
store.updateDialog("popUpPageMasterEvent");
|
|
86
|
+
localStorage.removeItem('rowId');
|
|
85
87
|
},
|
|
86
88
|
deletePopUpComponent: function(){
|
|
89
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
90
|
+
localStorage.setItem('rowId',rowId);
|
|
87
91
|
store.updateDialog("popUpPageMasterComponent");
|
|
88
92
|
},
|
|
89
93
|
deletePopUpEvent: function(){
|
|
94
|
+
const rowId = dynamicData.path.split(".")[1];
|
|
95
|
+
localStorage.setItem('rowId',rowId);
|
|
90
96
|
store.updateDialog("popUpPageMasterEvent");
|
|
91
97
|
},
|
|
92
98
|
}
|