impaktapps-ui-builder 0.0.382-alpha.311 → 0.0.382-alpha.313
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 +24 -26
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +2 -2
- 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 +2 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +90 -85
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +4 -4
- package/src/impaktapps-ui-builder/builder/services/event.ts +1 -1
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +4 -4
package/package.json
CHANGED
|
@@ -220,7 +220,7 @@ export const componentBasicUiSchema: any = {
|
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
type: "Control",
|
|
223
|
-
scope: "#/properties/
|
|
223
|
+
scope: "#/properties/popUpComponentSection",
|
|
224
224
|
options: {
|
|
225
225
|
widget: "PopUp"
|
|
226
226
|
},
|
|
@@ -305,7 +305,7 @@ export const componentBasicUiSchema: any = {
|
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
type: "Control",
|
|
308
|
-
scope: "#/properties/
|
|
308
|
+
scope: "#/properties/popUpEventSection",
|
|
309
309
|
options:{
|
|
310
310
|
widget: "PopUp"
|
|
311
311
|
},
|
|
@@ -354,7 +354,95 @@ export const PageMasterUiSchema: any = {
|
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
type: "Control",
|
|
357
|
-
scope: "#/properties/
|
|
357
|
+
scope: "#/properties/popUpPageMasterEvent",
|
|
358
|
+
options:{
|
|
359
|
+
widget: "PopUp"
|
|
360
|
+
},
|
|
361
|
+
config:{
|
|
362
|
+
layout: {
|
|
363
|
+
xs: 12,
|
|
364
|
+
sm: 12,
|
|
365
|
+
md: 12,
|
|
366
|
+
lg: 12,
|
|
367
|
+
},
|
|
368
|
+
main: {
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
elemetns:[
|
|
372
|
+
{
|
|
373
|
+
type: "Control",
|
|
374
|
+
scope: "#/properties/label",
|
|
375
|
+
options: {
|
|
376
|
+
widget: "Box",
|
|
377
|
+
},
|
|
378
|
+
config: {
|
|
379
|
+
layout: 12,
|
|
380
|
+
main: {
|
|
381
|
+
heading: "Are you sure you want to delete ?",
|
|
382
|
+
},
|
|
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
|
+
},
|
|
405
|
+
config: {
|
|
406
|
+
layout: 3,
|
|
407
|
+
main: {
|
|
408
|
+
name: "Yes",
|
|
409
|
+
startIcon: "ApproveIcon",
|
|
410
|
+
variant: "contained",
|
|
411
|
+
color: "info",
|
|
412
|
+
type: "text",
|
|
413
|
+
onClick: "deleteEvent",
|
|
414
|
+
size: "small",
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
type: "Control",
|
|
420
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
421
|
+
options: {
|
|
422
|
+
widget: "Button",
|
|
423
|
+
},
|
|
424
|
+
config: {
|
|
425
|
+
layout: 3,
|
|
426
|
+
main: {
|
|
427
|
+
name: "Yes",
|
|
428
|
+
startIcon: "ApproveIcon",
|
|
429
|
+
variant: "contained",
|
|
430
|
+
color: "info",
|
|
431
|
+
type: "text",
|
|
432
|
+
onClick: "deletePopUpEvent",
|
|
433
|
+
size: "small",
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
{
|
|
444
|
+
type: "Control",
|
|
445
|
+
scope: "#/properties/popUpPageMasterComponent",
|
|
358
446
|
options: {
|
|
359
447
|
widget: "PopUp"
|
|
360
448
|
},
|
|
@@ -438,90 +526,7 @@ export const PageMasterUiSchema: any = {
|
|
|
438
526
|
]
|
|
439
527
|
},
|
|
440
528
|
|
|
441
|
-
|
|
442
|
-
type: "Control",
|
|
443
|
-
scope: "#/properties/popUpEvent",
|
|
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
|
-
},
|
|
529
|
+
|
|
525
530
|
|
|
526
531
|
{
|
|
527
532
|
type: "Control",
|
|
@@ -290,7 +290,7 @@ export const EventUiSchema: any = {
|
|
|
290
290
|
widget: "Button",
|
|
291
291
|
},
|
|
292
292
|
config: {
|
|
293
|
-
layout:
|
|
293
|
+
layout: 12,
|
|
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: 12,
|
|
313
313
|
main: {
|
|
314
314
|
name: "No",
|
|
315
315
|
startIcon: "ApproveIcon",
|
|
@@ -111,7 +111,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
111
111
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
112
112
|
const data = path ? _.get(response, path) : response;
|
|
113
113
|
store.setFormdata(data);
|
|
114
|
-
store.updateDialog("popUpComponent");
|
|
114
|
+
// store.updateDialog("popUpComponent");
|
|
115
115
|
},
|
|
116
116
|
deleteEvent: function () {
|
|
117
117
|
const path = store.searchParams?.get("path");
|
|
@@ -119,7 +119,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
119
119
|
store.formData.events.splice(rowId, 1);
|
|
120
120
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
121
121
|
store.setFormdata(_.get(response, path));
|
|
122
|
-
store.updateDialog("popUpEvent")
|
|
122
|
+
// store.updateDialog("popUpEvent")
|
|
123
123
|
},
|
|
124
124
|
widgetAddClickHandler: function () {
|
|
125
125
|
if (!Array.isArray(store.formData.elements)) {
|
|
@@ -155,10 +155,10 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
155
155
|
store.navigate(-1)
|
|
156
156
|
},
|
|
157
157
|
deletePopUpComponent: function(){
|
|
158
|
-
store.updateDialog("
|
|
158
|
+
store.updateDialog("popUpComponentSection");
|
|
159
159
|
},
|
|
160
160
|
deletePopUpEvent: function(){
|
|
161
|
-
store.updateDialog("
|
|
161
|
+
store.updateDialog("popUpEventSection");
|
|
162
162
|
},
|
|
163
163
|
}
|
|
164
164
|
};
|
|
@@ -91,7 +91,7 @@ export default (
|
|
|
91
91
|
},
|
|
92
92
|
deleteEvent: async function () {
|
|
93
93
|
await Component(store, dynamicData, submitHandler, service).deleteEvent;
|
|
94
|
-
store.updateDialog("popUpEvent")
|
|
94
|
+
store.updateDialog("popUpEvent");
|
|
95
95
|
},
|
|
96
96
|
backHandler: function () {
|
|
97
97
|
store.navigate(-1)
|
|
@@ -58,7 +58,7 @@ export default (funcParams: funcParamsProps) => {
|
|
|
58
58
|
// Delete_Components: Component(store, dynamicData, submitHandler, service).deleteComponents,
|
|
59
59
|
Delete_Components: async function() {
|
|
60
60
|
await Component(store, dynamicData, submitHandler, service).deleteComponents();
|
|
61
|
-
store.updateDialog("
|
|
61
|
+
store.updateDialog("popUpPageMasterComponent");
|
|
62
62
|
},
|
|
63
63
|
eventAddHandler: function () {
|
|
64
64
|
const id = store.searchParams?.get("id");
|
|
@@ -81,13 +81,13 @@ export default (funcParams: funcParamsProps) => {
|
|
|
81
81
|
store.formData.events.splice(rowId, 1);
|
|
82
82
|
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|
|
83
83
|
store.setFormdata(response);
|
|
84
|
-
store.updateDialog("
|
|
84
|
+
store.updateDialog("popUpPageMasterEvent");
|
|
85
85
|
},
|
|
86
86
|
deletePopUpComponent: function(){
|
|
87
|
-
store.updateDialog("
|
|
87
|
+
store.updateDialog("popUpPageMasterComponent");
|
|
88
88
|
},
|
|
89
89
|
deletePopUpEvent: function(){
|
|
90
|
-
store.updateDialog("
|
|
90
|
+
store.updateDialog("popUpPageMasterEvent");
|
|
91
91
|
},
|
|
92
92
|
}
|
|
93
93
|
};
|