impaktapps-ui-builder 0.0.382-alpha.307 → 0.0.382-alpha.309
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 +86 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +2 -1
- package/package.json +1 -1
- 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/event.ts +7 -1
|
@@ -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
|
@@ -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/ConfirmDeleteCompButton",
|
|
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/CancelDeleteCompButton",
|
|
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",
|
|
@@ -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
|
};
|