impaktapps-ui-builder 0.0.382-alpha.309 → 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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.382-alpha.309",
3
+ "version": "0.0.382-alpha.310",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -117,7 +117,7 @@ export const EventSection = {
117
117
  icon: "RejectIcon",
118
118
  color: "error",
119
119
  tooltipMessage: "Reject This Record",
120
- onClick: "deleteEvent",
120
+ onClick: "deletePopUpEvent",
121
121
  },
122
122
  },
123
123
  },
@@ -110,14 +110,16 @@ export const TableSection = {
110
110
  main: {
111
111
  icon: "RejectIcon",
112
112
  color: "error",
113
- onClick: "deleteComponents",
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",
@@ -272,7 +272,7 @@ export const EventUiSchema: any = {
272
272
  },
273
273
  {
274
274
  type: "Control",
275
- scope: "#/properties/ConfirmDeleteCompButton",
275
+ scope: "#/properties/ConfirmDeleteEventButton",
276
276
  options: {
277
277
  widget: "Button",
278
278
  },
@@ -296,7 +296,7 @@ export const EventUiSchema: any = {
296
296
  },
297
297
  {
298
298
  type: "Control",
299
- scope: "#/properties/CancelDeleteCompButton",
299
+ scope: "#/properties/CancelDeleteEventButton",
300
300
  options: {
301
301
  widget: "Button",
302
302
  },
@@ -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