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.
- package/dist/impaktapps-ui-builder.es.js +109 -19
- 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 -2
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +106 -12
- package/src/impaktapps-ui-builder/builder/services/component.ts +0 -6
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +11 -6
|
@@ -51,9 +51,9 @@ 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
|
-
editEvent: () => void
|
|
56
|
+
editEvent: () => Promise<void>;
|
|
57
57
|
deleteEvent: () => void;
|
|
58
58
|
deletePopUpEvent: () => void;
|
|
59
59
|
deletePopUpComponent: () => void;
|
package/package.json
CHANGED
|
@@ -239,12 +239,6 @@ export const PageMasterUiSchema: any = {
|
|
|
239
239
|
lg: 12,
|
|
240
240
|
},
|
|
241
241
|
main: {
|
|
242
|
-
label: "PopUpComponent",
|
|
243
|
-
fullScreen:false,
|
|
244
|
-
fullWidth:false,
|
|
245
|
-
maxWidth:false,
|
|
246
|
-
alignItems:false,
|
|
247
|
-
spacing:2
|
|
248
242
|
},
|
|
249
243
|
},
|
|
250
244
|
elements:
|
|
@@ -259,18 +253,18 @@ export const PageMasterUiSchema: any = {
|
|
|
259
253
|
config: {
|
|
260
254
|
layout: 12,
|
|
261
255
|
main: {
|
|
262
|
-
heading: "Are you sure you want to delete
|
|
256
|
+
heading: "Are you sure you want to delete ?",
|
|
263
257
|
},
|
|
264
258
|
},
|
|
265
259
|
},
|
|
266
260
|
{
|
|
267
261
|
type: "Control",
|
|
268
|
-
scope: "#/properties/
|
|
262
|
+
scope: "#/properties/ConfirmDeleteButton",
|
|
269
263
|
options: {
|
|
270
264
|
widget: "Button",
|
|
271
265
|
},
|
|
272
266
|
config: {
|
|
273
|
-
layout: 3
|
|
267
|
+
layout: 3,
|
|
274
268
|
main: {
|
|
275
269
|
name: "No",
|
|
276
270
|
startIcon: "ApproveIcon",
|
|
@@ -283,7 +277,7 @@ export const PageMasterUiSchema: any = {
|
|
|
283
277
|
style: {
|
|
284
278
|
marginBottom: "8px",
|
|
285
279
|
width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
|
|
286
|
-
float: "left",
|
|
280
|
+
// float: "left",
|
|
287
281
|
},
|
|
288
282
|
},
|
|
289
283
|
},
|
|
@@ -294,7 +288,7 @@ export const PageMasterUiSchema: any = {
|
|
|
294
288
|
widget: "Button",
|
|
295
289
|
},
|
|
296
290
|
config: {
|
|
297
|
-
layout: 3
|
|
291
|
+
layout: 3,
|
|
298
292
|
main: {
|
|
299
293
|
name: "Yes",
|
|
300
294
|
startIcon: "ApproveIcon",
|
|
@@ -308,8 +302,19 @@ export const PageMasterUiSchema: any = {
|
|
|
308
302
|
style: {
|
|
309
303
|
marginBottom: "8px",
|
|
310
304
|
width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
|
|
311
|
-
float: "
|
|
305
|
+
// float: "left",
|
|
312
306
|
},
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
type: "Control",
|
|
311
|
+
scope: "#/properties/emptyBox",
|
|
312
|
+
|
|
313
|
+
options: {
|
|
314
|
+
widget: "Box",
|
|
315
|
+
},
|
|
316
|
+
config: {
|
|
317
|
+
layout: 6,
|
|
313
318
|
},
|
|
314
319
|
},
|
|
315
320
|
]
|
|
@@ -437,6 +442,95 @@ export const PageMasterUiSchema: any = {
|
|
|
437
442
|
},
|
|
438
443
|
]
|
|
439
444
|
},
|
|
445
|
+
{
|
|
446
|
+
type: "Control",
|
|
447
|
+
scope: "#/properties/popUpEvent",
|
|
448
|
+
options:{
|
|
449
|
+
widget: "PopUp"
|
|
450
|
+
},
|
|
451
|
+
config:{
|
|
452
|
+
layout: {
|
|
453
|
+
xs: 12,
|
|
454
|
+
sm: 12,
|
|
455
|
+
md: 12,
|
|
456
|
+
lg: 12,
|
|
457
|
+
},
|
|
458
|
+
main: {
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
elemetns:[
|
|
462
|
+
{
|
|
463
|
+
type: "Control",
|
|
464
|
+
scope: "#/properties/Label",
|
|
465
|
+
options: {
|
|
466
|
+
widget: "Box",
|
|
467
|
+
},
|
|
468
|
+
config: {
|
|
469
|
+
layout: 12,
|
|
470
|
+
main: {
|
|
471
|
+
heading: "Are you sure you want to delete ?",
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
type: "Control",
|
|
477
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
478
|
+
options: {
|
|
479
|
+
widget: "Button",
|
|
480
|
+
},
|
|
481
|
+
config: {
|
|
482
|
+
layout: 3,
|
|
483
|
+
main: {
|
|
484
|
+
name: "No",
|
|
485
|
+
startIcon: "ApproveIcon",
|
|
486
|
+
variant: "contained",
|
|
487
|
+
color: "info",
|
|
488
|
+
type: "text",
|
|
489
|
+
onClick: "deleteEvent",
|
|
490
|
+
size: "small",
|
|
491
|
+
},
|
|
492
|
+
style: {
|
|
493
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
494
|
+
// float: "left",
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
type: "Control",
|
|
500
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
501
|
+
options: {
|
|
502
|
+
widget: "Button",
|
|
503
|
+
},
|
|
504
|
+
config: {
|
|
505
|
+
layout: 3,
|
|
506
|
+
main: {
|
|
507
|
+
name: "Yes",
|
|
508
|
+
startIcon: "ApproveIcon",
|
|
509
|
+
variant: "contained",
|
|
510
|
+
color: "info",
|
|
511
|
+
type: "text",
|
|
512
|
+
onClick: "deleteEvent",
|
|
513
|
+
size: "small",
|
|
514
|
+
},
|
|
515
|
+
style: {
|
|
516
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
517
|
+
// float: "left",
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
type: "Control",
|
|
523
|
+
scope: "#/properties/emptyBox",
|
|
524
|
+
|
|
525
|
+
options: {
|
|
526
|
+
widget: "Box",
|
|
527
|
+
},
|
|
528
|
+
config: {
|
|
529
|
+
layout: 6,
|
|
530
|
+
},
|
|
531
|
+
},
|
|
532
|
+
]
|
|
533
|
+
}
|
|
440
534
|
]
|
|
441
535
|
},
|
|
442
536
|
|
|
@@ -112,12 +112,6 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
112
112
|
const data = path ? _.get(response, path) : response;
|
|
113
113
|
store.setFormdata(data);
|
|
114
114
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
115
|
deleteEvent: function () {
|
|
122
116
|
const path = store.searchParams?.get("path");
|
|
123
117
|
const rowId = dynamicData.path.split(".")[1];
|
|
@@ -55,7 +55,12 @@ 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
|
+
},
|
|
63
|
+
|
|
59
64
|
eventAddHandler: function () {
|
|
60
65
|
const id = store.searchParams?.get("id");
|
|
61
66
|
if (!Array.isArray(store.formData.events)) {
|
|
@@ -65,15 +70,15 @@ export default (funcParams: funcParamsProps) => {
|
|
|
65
70
|
const finalPath = `events[${store.formData.events.length}]`
|
|
66
71
|
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
67
72
|
},
|
|
68
|
-
editEvent: function () {
|
|
73
|
+
editEvent: async function () {
|
|
69
74
|
const rowId = dynamicData.path.split(".")[1];
|
|
70
75
|
const id = store.searchParams?.get("id");
|
|
71
|
-
saveFormdataInLocalStorage(store.ctx.core.data)
|
|
72
|
-
const finalPath = `events[${rowId}]
|
|
73
|
-
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`)
|
|
76
|
+
await saveFormdataInLocalStorage(store.ctx.core.data);
|
|
77
|
+
const finalPath = `events[${rowId}]`;
|
|
78
|
+
store.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
79
|
+
store.updateDialog("popUpEvent");
|
|
74
80
|
},
|
|
75
81
|
deleteEvent: function () {
|
|
76
|
-
// store.updateDialog("popUp");
|
|
77
82
|
const rowId = dynamicData.path.split(".")[1];
|
|
78
83
|
store.formData.events.splice(rowId, 1);
|
|
79
84
|
const response = saveFormdataInLocalStorage(store.ctx.core.data)
|