impaktapps-ui-builder 0.0.382-alpha.307 → 0.0.382-alpha.310
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 +251 -4
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -9
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +4 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +204 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +5 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +95 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +8 -0
- package/src/impaktapps-ui-builder/builder/services/event.ts +7 -1
|
@@ -14,5 +14,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
14
14
|
eventEditHandler: () => void;
|
|
15
15
|
eventAddHandler: () => void;
|
|
16
16
|
backHandler: () => void;
|
|
17
|
+
deletePopUpComponent: () => void;
|
|
18
|
+
deletePopUpEvent: () => void;
|
|
17
19
|
};
|
|
18
20
|
export default _default;
|
|
@@ -81,7 +81,8 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
|
|
|
81
81
|
onChange: () => void;
|
|
82
82
|
addEvent: () => void;
|
|
83
83
|
editEvent: () => void;
|
|
84
|
-
deleteEvent: () => void
|
|
84
|
+
deleteEvent: () => Promise<void>;
|
|
85
85
|
backHandler: () => void;
|
|
86
|
+
deletePopUpEvent: () => void;
|
|
86
87
|
};
|
|
87
88
|
export default _default;
|
package/package.json
CHANGED
|
@@ -110,14 +110,16 @@ export const TableSection = {
|
|
|
110
110
|
main: {
|
|
111
111
|
icon: "RejectIcon",
|
|
112
112
|
color: "error",
|
|
113
|
-
onClick: "
|
|
113
|
+
onClick: "deletePopUpComponent",
|
|
114
114
|
tooltipMessage: "Reject This Record",
|
|
115
115
|
},
|
|
116
116
|
},
|
|
117
117
|
},
|
|
118
118
|
}
|
|
119
119
|
]
|
|
120
|
-
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
121
123
|
]}
|
|
122
124
|
|
|
123
125
|
export const TableSectionSchema = {
|
|
@@ -218,6 +218,210 @@ export const componentBasicUiSchema: any = {
|
|
|
218
218
|
},
|
|
219
219
|
],
|
|
220
220
|
},
|
|
221
|
+
{
|
|
222
|
+
type: "Control",
|
|
223
|
+
scope: "#/properties/popUpComponent",
|
|
224
|
+
options: {
|
|
225
|
+
widget: "PopUp"
|
|
226
|
+
},
|
|
227
|
+
config: {
|
|
228
|
+
layout: {
|
|
229
|
+
xs: 12,
|
|
230
|
+
sm: 12,
|
|
231
|
+
md: 12,
|
|
232
|
+
lg: 12,
|
|
233
|
+
},
|
|
234
|
+
main: {
|
|
235
|
+
label: "PopUp",
|
|
236
|
+
fullScreen:false,
|
|
237
|
+
fullWidth:false,
|
|
238
|
+
maxWidth:false,
|
|
239
|
+
alignItems:false,
|
|
240
|
+
// spacing:2
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
elements:
|
|
244
|
+
[
|
|
245
|
+
{
|
|
246
|
+
type: "Control",
|
|
247
|
+
scope: "#/properties/label",
|
|
248
|
+
|
|
249
|
+
options: {
|
|
250
|
+
widget: "Box",
|
|
251
|
+
},
|
|
252
|
+
config: {
|
|
253
|
+
layout: 12,
|
|
254
|
+
main: {
|
|
255
|
+
heading: "Are you sure you want to delete ?",
|
|
256
|
+
},
|
|
257
|
+
style: {
|
|
258
|
+
marginBottom: "15px",
|
|
259
|
+
// width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
260
|
+
// float: "right",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
type: "Control",
|
|
266
|
+
scope: "#/properties/ConfirmDeleteCompButton",
|
|
267
|
+
options: {
|
|
268
|
+
widget: "Button",
|
|
269
|
+
},
|
|
270
|
+
config: {
|
|
271
|
+
layout: 3,
|
|
272
|
+
main: {
|
|
273
|
+
name: "Yes",
|
|
274
|
+
startIcon: "ApproveIcon",
|
|
275
|
+
variant: "contained",
|
|
276
|
+
color: "info",
|
|
277
|
+
type: "text",
|
|
278
|
+
onClick: "Delete_Components",
|
|
279
|
+
size: "small",
|
|
280
|
+
},
|
|
281
|
+
style: {
|
|
282
|
+
// marginBottom: "8px",
|
|
283
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
284
|
+
// float: "right",
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
type: "Control",
|
|
290
|
+
scope: "#/properties/CancelDeleteCompButton",
|
|
291
|
+
options: {
|
|
292
|
+
widget: "Button",
|
|
293
|
+
},
|
|
294
|
+
config: {
|
|
295
|
+
layout: 3,
|
|
296
|
+
main: {
|
|
297
|
+
name: "No",
|
|
298
|
+
startIcon: "ApproveIcon",
|
|
299
|
+
variant: "contained",
|
|
300
|
+
color: "info",
|
|
301
|
+
type: "text",
|
|
302
|
+
onClick: "deletePopUpComponent",
|
|
303
|
+
size: "small",
|
|
304
|
+
},
|
|
305
|
+
|
|
306
|
+
style: {
|
|
307
|
+
// marginBottom: "8px",
|
|
308
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
309
|
+
// float: "left",
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
// {
|
|
314
|
+
// type: "Control",
|
|
315
|
+
// scope: "#/properties/emptyBox",
|
|
316
|
+
|
|
317
|
+
// options: {
|
|
318
|
+
// widget: "Box",
|
|
319
|
+
// },
|
|
320
|
+
// config: {
|
|
321
|
+
// layout: 6,
|
|
322
|
+
// },
|
|
323
|
+
// },
|
|
324
|
+
// {
|
|
325
|
+
// type: "Control",
|
|
326
|
+
// scope: "#/properties/EmptyBox",
|
|
327
|
+
// config: { layout: { xs: 11, sm: 5.5, md: 5.5, lg: 6 } },
|
|
328
|
+
// options: {
|
|
329
|
+
// widget: "EmptyBox",
|
|
330
|
+
// },
|
|
331
|
+
// },
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
{
|
|
337
|
+
type: "Control",
|
|
338
|
+
scope: "#/properties/popUpEvent",
|
|
339
|
+
options:{
|
|
340
|
+
widget: "PopUp"
|
|
341
|
+
},
|
|
342
|
+
config:{
|
|
343
|
+
layout: {
|
|
344
|
+
xs: 12,
|
|
345
|
+
sm: 12,
|
|
346
|
+
md: 12,
|
|
347
|
+
lg: 12,
|
|
348
|
+
},
|
|
349
|
+
main: {
|
|
350
|
+
},
|
|
351
|
+
},
|
|
352
|
+
elemetns:[
|
|
353
|
+
{
|
|
354
|
+
type: "Control",
|
|
355
|
+
scope: "#/properties/Label",
|
|
356
|
+
options: {
|
|
357
|
+
widget: "Box",
|
|
358
|
+
},
|
|
359
|
+
config: {
|
|
360
|
+
layout: 12,
|
|
361
|
+
main: {
|
|
362
|
+
heading: "Are you sure you want to delete ?",
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
type: "Control",
|
|
368
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
369
|
+
options: {
|
|
370
|
+
widget: "Button",
|
|
371
|
+
},
|
|
372
|
+
config: {
|
|
373
|
+
layout: 3,
|
|
374
|
+
main: {
|
|
375
|
+
name: "No",
|
|
376
|
+
startIcon: "ApproveIcon",
|
|
377
|
+
variant: "contained",
|
|
378
|
+
color: "info",
|
|
379
|
+
type: "text",
|
|
380
|
+
onClick: "deleteEvent",
|
|
381
|
+
size: "small",
|
|
382
|
+
},
|
|
383
|
+
style: {
|
|
384
|
+
// width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
385
|
+
// float: "left",
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
type: "Control",
|
|
391
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
392
|
+
options: {
|
|
393
|
+
widget: "Button",
|
|
394
|
+
},
|
|
395
|
+
config: {
|
|
396
|
+
layout: 3,
|
|
397
|
+
main: {
|
|
398
|
+
name: "Yes",
|
|
399
|
+
startIcon: "ApproveIcon",
|
|
400
|
+
variant: "contained",
|
|
401
|
+
color: "info",
|
|
402
|
+
type: "text",
|
|
403
|
+
onClick: "deleteEvent",
|
|
404
|
+
size: "small",
|
|
405
|
+
},
|
|
406
|
+
style: {
|
|
407
|
+
// width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
408
|
+
// float: "left",
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
// {
|
|
413
|
+
// type: "Control",
|
|
414
|
+
// scope: "#/properties/emptyBox",
|
|
415
|
+
|
|
416
|
+
// options: {
|
|
417
|
+
// widget: "Box",
|
|
418
|
+
// },
|
|
419
|
+
// config: {
|
|
420
|
+
// layout: 6,
|
|
421
|
+
// },
|
|
422
|
+
// },
|
|
423
|
+
]
|
|
424
|
+
},
|
|
221
425
|
|
|
222
426
|
{
|
|
223
427
|
type: "Control",
|
|
@@ -390,6 +390,11 @@ export const PageMasterUiSchema: any = {
|
|
|
390
390
|
main: {
|
|
391
391
|
heading: "Are you sure you want to delete ?",
|
|
392
392
|
},
|
|
393
|
+
style: {
|
|
394
|
+
marginBottom: "15px",
|
|
395
|
+
// width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
396
|
+
// float: "right",
|
|
397
|
+
},
|
|
393
398
|
},
|
|
394
399
|
},
|
|
395
400
|
{
|
|
@@ -228,7 +228,7 @@ export const EventUiSchema: any = {
|
|
|
228
228
|
icon: "RejectIcon",
|
|
229
229
|
color: "error",
|
|
230
230
|
tooltipMessage: "Reject This Record",
|
|
231
|
-
onClick: "
|
|
231
|
+
onClick: "deletePopUpEvent",
|
|
232
232
|
},
|
|
233
233
|
},
|
|
234
234
|
},
|
|
@@ -238,6 +238,100 @@ export const EventUiSchema: any = {
|
|
|
238
238
|
}
|
|
239
239
|
],
|
|
240
240
|
},
|
|
241
|
+
{
|
|
242
|
+
type: "Control",
|
|
243
|
+
scope: "#/properties/popUpComponent",
|
|
244
|
+
options: {
|
|
245
|
+
widget: "PopUp"
|
|
246
|
+
},
|
|
247
|
+
config: {
|
|
248
|
+
layout: {
|
|
249
|
+
xs: 12,
|
|
250
|
+
sm: 12,
|
|
251
|
+
md: 12,
|
|
252
|
+
lg: 12,
|
|
253
|
+
},
|
|
254
|
+
main: {
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
elements:
|
|
258
|
+
[
|
|
259
|
+
{
|
|
260
|
+
type: "Control",
|
|
261
|
+
scope: "#/properties/label",
|
|
262
|
+
|
|
263
|
+
options: {
|
|
264
|
+
widget: "Box",
|
|
265
|
+
},
|
|
266
|
+
config: {
|
|
267
|
+
layout: 12,
|
|
268
|
+
main: {
|
|
269
|
+
heading: "Are you sure you want to delete ?",
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
type: "Control",
|
|
275
|
+
scope: "#/properties/ConfirmDeleteEventButton",
|
|
276
|
+
options: {
|
|
277
|
+
widget: "Button",
|
|
278
|
+
},
|
|
279
|
+
config: {
|
|
280
|
+
layout: 3,
|
|
281
|
+
main: {
|
|
282
|
+
name: "Yes",
|
|
283
|
+
startIcon: "ApproveIcon",
|
|
284
|
+
variant: "contained",
|
|
285
|
+
color: "info",
|
|
286
|
+
type: "text",
|
|
287
|
+
onClick: "deleteEvent",
|
|
288
|
+
size: "small",
|
|
289
|
+
},
|
|
290
|
+
style: {
|
|
291
|
+
// marginBottom: "8px",
|
|
292
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
293
|
+
// float: "left",
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
type: "Control",
|
|
299
|
+
scope: "#/properties/CancelDeleteEventButton",
|
|
300
|
+
options: {
|
|
301
|
+
widget: "Button",
|
|
302
|
+
},
|
|
303
|
+
config: {
|
|
304
|
+
layout: 3,
|
|
305
|
+
main: {
|
|
306
|
+
name: "No",
|
|
307
|
+
startIcon: "ApproveIcon",
|
|
308
|
+
variant: "contained",
|
|
309
|
+
color: "info",
|
|
310
|
+
type: "text",
|
|
311
|
+
onClick: "deletePopUpEvent",
|
|
312
|
+
size: "small",
|
|
313
|
+
},
|
|
314
|
+
|
|
315
|
+
style: {
|
|
316
|
+
// marginBottom: "8px",
|
|
317
|
+
width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
|
|
318
|
+
// float: "left",
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
// {
|
|
323
|
+
// type: "Control",
|
|
324
|
+
// scope: "#/properties/emptyBox",
|
|
325
|
+
|
|
326
|
+
// options: {
|
|
327
|
+
// widget: "Box",
|
|
328
|
+
// },
|
|
329
|
+
// config: {
|
|
330
|
+
// layout: 6,
|
|
331
|
+
// },
|
|
332
|
+
// },
|
|
333
|
+
]
|
|
334
|
+
},
|
|
241
335
|
{
|
|
242
336
|
type: "Control",
|
|
243
337
|
scope: "#/properties/proc",
|
|
@@ -111,6 +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
115
|
},
|
|
115
116
|
deleteEvent: function () {
|
|
116
117
|
const path = store.searchParams?.get("path");
|
|
@@ -118,6 +119,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
118
119
|
store.formData.events.splice(rowId, 1);
|
|
119
120
|
const response = saveFormdataInLocalStorage(store.ctx.core.data, path)
|
|
120
121
|
store.setFormdata(_.get(response, path));
|
|
122
|
+
store.updateDialog("deletePopUpEvent")
|
|
121
123
|
},
|
|
122
124
|
widgetAddClickHandler: function () {
|
|
123
125
|
if (!Array.isArray(store.formData.elements)) {
|
|
@@ -152,6 +154,12 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
152
154
|
backHandler: function () {
|
|
153
155
|
store.navigate(-1)
|
|
154
156
|
},
|
|
157
|
+
deletePopUpComponent: function(){
|
|
158
|
+
store.updateDialog("popUpComponent");
|
|
159
|
+
},
|
|
160
|
+
deletePopUpEvent: function(){
|
|
161
|
+
store.updateDialog("popUpEvent");
|
|
162
|
+
},
|
|
155
163
|
}
|
|
156
164
|
};
|
|
157
165
|
|
|
@@ -89,9 +89,15 @@ export default (
|
|
|
89
89
|
this.setPage()
|
|
90
90
|
|
|
91
91
|
},
|
|
92
|
-
deleteEvent:
|
|
92
|
+
deleteEvent: async function () {
|
|
93
|
+
await Component(store, dynamicData, submitHandler, service).deleteEvent;
|
|
94
|
+
store.updateDialog("deletePopUpEvent")
|
|
95
|
+
},
|
|
93
96
|
backHandler: function () {
|
|
94
97
|
store.navigate(-1)
|
|
95
98
|
},
|
|
99
|
+
deletePopUpEvent: function(){
|
|
100
|
+
store.updateDialog("deletePopUpEvent");
|
|
101
|
+
}
|
|
96
102
|
}
|
|
97
103
|
};
|