impaktapps-ui-builder 0.0.382-alpha.201 → 0.0.382-alpha.203
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 +100 -88
- 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 +3 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +98 -92
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +9 -2
|
@@ -246,11 +246,95 @@ const PageMasterUiSchema = {
|
|
|
246
246
|
main: {
|
|
247
247
|
icon: "RejectIcon",
|
|
248
248
|
color: "error",
|
|
249
|
-
onClick: "
|
|
249
|
+
onClick: "deletePopUpComponent",
|
|
250
250
|
tooltipMessage: "Reject This Record"
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
type: "Control",
|
|
257
|
+
scope: "#/properties/popUpComponent",
|
|
258
|
+
options: {
|
|
259
|
+
widget: "popUp"
|
|
260
|
+
},
|
|
261
|
+
config: {
|
|
262
|
+
layout: {
|
|
263
|
+
xs: 12,
|
|
264
|
+
sm: 12,
|
|
265
|
+
md: 12,
|
|
266
|
+
lg: 12
|
|
267
|
+
},
|
|
268
|
+
main: {
|
|
269
|
+
label: "PopUpComponent",
|
|
270
|
+
fullScreen: false,
|
|
271
|
+
fullWidth: false,
|
|
272
|
+
maxWidth: false,
|
|
273
|
+
alignItems: false,
|
|
274
|
+
spacing: 2
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
elements: [
|
|
278
|
+
{
|
|
279
|
+
type: "Control",
|
|
280
|
+
scope: "#/properties/pageMaster",
|
|
281
|
+
options: {
|
|
282
|
+
widget: "Box"
|
|
283
|
+
},
|
|
284
|
+
config: {
|
|
285
|
+
layout: 8,
|
|
286
|
+
main: {
|
|
287
|
+
heading: "Are you sure"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
type: "Control",
|
|
293
|
+
scope: "#/properties/ConfirmDeleteButton1",
|
|
294
|
+
options: {
|
|
295
|
+
widget: "Button"
|
|
296
|
+
},
|
|
297
|
+
config: {
|
|
298
|
+
main: {
|
|
299
|
+
name: "No",
|
|
300
|
+
startIcon: "ApproveIcon",
|
|
301
|
+
variant: "contained",
|
|
302
|
+
color: "info",
|
|
303
|
+
type: "text",
|
|
304
|
+
onClick: "testDelComp",
|
|
305
|
+
size: "small"
|
|
306
|
+
},
|
|
307
|
+
style: {
|
|
308
|
+
marginBottom: "8px",
|
|
309
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
310
|
+
float: "left"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
type: "Control",
|
|
316
|
+
scope: "#/properties/CancelDeleteButton",
|
|
317
|
+
options: {
|
|
318
|
+
widget: "Button"
|
|
319
|
+
},
|
|
320
|
+
config: {
|
|
321
|
+
main: {
|
|
322
|
+
name: "Yes",
|
|
323
|
+
startIcon: "ApproveIcon",
|
|
324
|
+
variant: "contained",
|
|
325
|
+
color: "info",
|
|
326
|
+
type: "text",
|
|
327
|
+
onClick: "testDelComp",
|
|
328
|
+
size: "small"
|
|
329
|
+
},
|
|
330
|
+
style: {
|
|
331
|
+
marginBottom: "8px",
|
|
332
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
333
|
+
float: "right"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
]
|
|
254
338
|
}
|
|
255
339
|
]
|
|
256
340
|
}
|
|
@@ -365,96 +449,18 @@ const PageMasterUiSchema = {
|
|
|
365
449
|
icon: "RejectIcon",
|
|
366
450
|
color: "error",
|
|
367
451
|
tooltipMessage: "Reject This Record",
|
|
368
|
-
onClick: "
|
|
452
|
+
onClick: "deleteEvent",
|
|
453
|
+
size: "small"
|
|
454
|
+
},
|
|
455
|
+
style: {
|
|
456
|
+
marginBottom: "8px",
|
|
457
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
458
|
+
float: "right"
|
|
369
459
|
}
|
|
370
460
|
}
|
|
371
461
|
}
|
|
372
462
|
}
|
|
373
463
|
]
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
type: "Control",
|
|
377
|
-
scope: "#/properties/popUp",
|
|
378
|
-
options: {
|
|
379
|
-
widget: "popUp"
|
|
380
|
-
},
|
|
381
|
-
config: {
|
|
382
|
-
layout: {
|
|
383
|
-
xs: 12,
|
|
384
|
-
sm: 12,
|
|
385
|
-
md: 12,
|
|
386
|
-
lg: 12
|
|
387
|
-
},
|
|
388
|
-
main: {
|
|
389
|
-
label: "PopUp",
|
|
390
|
-
fullScreen: false,
|
|
391
|
-
fullWidth: false,
|
|
392
|
-
maxWidth: false,
|
|
393
|
-
alignItems: false,
|
|
394
|
-
spacing: 2
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
elements: [
|
|
398
|
-
{
|
|
399
|
-
type: "Control",
|
|
400
|
-
scope: "#/properties/pageMaster",
|
|
401
|
-
options: {
|
|
402
|
-
widget: "Box"
|
|
403
|
-
},
|
|
404
|
-
config: {
|
|
405
|
-
layout: 8,
|
|
406
|
-
main: {
|
|
407
|
-
heading: "Are you sure"
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
type: "Control",
|
|
413
|
-
scope: "#/properties/ConfirmDeleteButton",
|
|
414
|
-
options: {
|
|
415
|
-
widget: "Button"
|
|
416
|
-
},
|
|
417
|
-
config: {
|
|
418
|
-
main: {
|
|
419
|
-
name: "No",
|
|
420
|
-
startIcon: "ApproveIcon",
|
|
421
|
-
variant: "contained",
|
|
422
|
-
color: "info",
|
|
423
|
-
type: "text",
|
|
424
|
-
onClick: "Delete_Components",
|
|
425
|
-
size: "small"
|
|
426
|
-
},
|
|
427
|
-
style: {
|
|
428
|
-
marginBottom: "8px",
|
|
429
|
-
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
430
|
-
float: "left"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
type: "Control",
|
|
436
|
-
scope: "#/properties/CancelDeleteButton",
|
|
437
|
-
options: {
|
|
438
|
-
widget: "Button"
|
|
439
|
-
},
|
|
440
|
-
config: {
|
|
441
|
-
main: {
|
|
442
|
-
name: "No",
|
|
443
|
-
startIcon: "ApproveIcon",
|
|
444
|
-
variant: "contained",
|
|
445
|
-
color: "info",
|
|
446
|
-
type: "text",
|
|
447
|
-
onClick: "Delete_Components",
|
|
448
|
-
size: "small"
|
|
449
|
-
},
|
|
450
|
-
style: {
|
|
451
|
-
marginBottom: "8px",
|
|
452
|
-
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
453
|
-
float: "right"
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
]
|
|
458
464
|
}
|
|
459
465
|
]
|
|
460
466
|
}
|
|
@@ -7737,8 +7743,14 @@ var pageMaster = (funcParams) => {
|
|
|
7737
7743
|
const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
|
|
7738
7744
|
store2.setFormdata(response2);
|
|
7739
7745
|
},
|
|
7740
|
-
|
|
7741
|
-
store2.updateDialog("
|
|
7746
|
+
deletePopUpEvent: function() {
|
|
7747
|
+
store2.updateDialog("popUpEvent");
|
|
7748
|
+
},
|
|
7749
|
+
deletePopUpComponent: function() {
|
|
7750
|
+
store2.updateDialog("popUpComponent");
|
|
7751
|
+
},
|
|
7752
|
+
testDelComp: function() {
|
|
7753
|
+
console.log("yes fun called");
|
|
7742
7754
|
}
|
|
7743
7755
|
};
|
|
7744
7756
|
};
|