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.
@@ -55,6 +55,8 @@ declare const _default: (funcParams: funcParamsProps) => {
55
55
  eventAddHandler: () => void;
56
56
  editEvent: () => void;
57
57
  deleteEvent: () => void;
58
- deletePopUp: () => void;
58
+ deletePopUpEvent: () => void;
59
+ deletePopUpComponent: () => void;
60
+ testDelComp: () => void;
59
61
  };
60
62
  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.201",
3
+ "version": "0.0.382-alpha.203",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -217,11 +217,101 @@ export const PageMasterUiSchema: any = {
217
217
  main: {
218
218
  icon: "RejectIcon",
219
219
  color: "error",
220
- onClick: "deletePopUp",
220
+ onClick: "deletePopUpComponent",
221
221
  tooltipMessage: "Reject This Record",
222
222
  },
223
223
  },
224
224
  },
225
+ },
226
+ {
227
+ type: "Control",
228
+ scope: "#/properties/popUpComponent",
229
+ options:{
230
+ widget: "popUp"
231
+ },
232
+ config:{
233
+ layout: {
234
+ xs: 12,
235
+ sm: 12,
236
+ md: 12,
237
+ lg: 12,
238
+ },
239
+ main: {
240
+ label: "PopUpComponent",
241
+ fullScreen:false,
242
+ fullWidth:false,
243
+ maxWidth:false,
244
+ alignItems:false,
245
+ spacing:2
246
+ },
247
+ },
248
+ elements:
249
+ [
250
+ {
251
+ type: "Control",
252
+ scope: "#/properties/pageMaster",
253
+
254
+ options: {
255
+ widget: "Box",
256
+ },
257
+ config: {
258
+ layout: 8,
259
+ main: {
260
+ heading: "Are you sure",
261
+ },
262
+ },
263
+ },
264
+ {
265
+ type: "Control",
266
+ scope: "#/properties/ConfirmDeleteButton1",
267
+ options: {
268
+ widget: "Button",
269
+ },
270
+ config: {
271
+ // layout: 11.7,
272
+ main: {
273
+ name: "No",
274
+ startIcon: "ApproveIcon",
275
+ variant: "contained",
276
+ color: "info",
277
+ type: "text",
278
+ onClick: "testDelComp",
279
+ size: "small",
280
+ },
281
+ style: {
282
+ marginBottom: "8px",
283
+ width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
284
+ float: "left",
285
+ },
286
+ },
287
+ },
288
+ {
289
+ type: "Control",
290
+ scope: "#/properties/CancelDeleteButton",
291
+ options: {
292
+ widget: "Button",
293
+ },
294
+ config: {
295
+ // layout: 11.7,
296
+ main: {
297
+ name: "Yes",
298
+ startIcon: "ApproveIcon",
299
+ variant: "contained",
300
+ color: "info",
301
+ type: "text",
302
+ onClick: "testDelComp",
303
+ // Delete_Components
304
+ size: "small",
305
+ },
306
+
307
+ style: {
308
+ marginBottom: "8px",
309
+ width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
310
+ float: "right",
311
+ },
312
+ },
313
+ },
314
+ ]
225
315
  }
226
316
  ]
227
317
  }]},
@@ -293,7 +383,6 @@ export const PageMasterUiSchema: any = {
293
383
  },
294
384
  },
295
385
  elements: [
296
-
297
386
  {
298
387
  accessorKey: "eventType",
299
388
  header: "Event Type",
@@ -339,97 +428,14 @@ export const PageMasterUiSchema: any = {
339
428
  icon: "RejectIcon",
340
429
  color: "error",
341
430
  tooltipMessage: "Reject This Record",
342
- onClick: "deletePopUp",
431
+ onClick: "deleteEvent",
432
+ size: "small",
433
+ },
434
+ style: {
435
+ marginBottom: "8px",
436
+ width: { xs: "100%", sm: "100%", md: "25%", lg: "20%" },
437
+ float: "right",
343
438
  },
344
- },
345
- },
346
- },
347
- ],
348
-
349
- },
350
- {
351
- type: "Control",
352
- scope: "#/properties/popUp",
353
- options:{
354
- widget: "popUp"
355
- },
356
- config:{
357
- layout: {
358
- xs: 12,
359
- sm: 12,
360
- md: 12,
361
- lg: 12,
362
- },
363
- main: {
364
- label: "PopUp",
365
- fullScreen:false,
366
- fullWidth:false,
367
- maxWidth:false,
368
- alignItems:false,
369
- spacing:2
370
- },
371
- },
372
- elements:
373
- [
374
- {
375
- type: "Control",
376
- scope: "#/properties/pageMaster",
377
-
378
- options: {
379
- widget: "Box",
380
- },
381
- config: {
382
- layout: 8,
383
- main: {
384
- heading: "Are you sure",
385
- },
386
- },
387
- },
388
- {
389
- type: "Control",
390
- scope: "#/properties/ConfirmDeleteButton",
391
- options: {
392
- widget: "Button",
393
- },
394
- config: {
395
- // layout: 11.7,
396
- main: {
397
- name: "No",
398
- startIcon: "ApproveIcon",
399
- variant: "contained",
400
- color: "info",
401
- type: "text",
402
- onClick: "Delete_Components",
403
- size: "small",
404
- },
405
- style: {
406
- marginBottom: "8px",
407
- width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
408
- float: "left",
409
- },
410
- },
411
- },
412
- {
413
- type: "Control",
414
- scope: "#/properties/CancelDeleteButton",
415
- options: {
416
- widget: "Button",
417
- },
418
- config: {
419
- // layout: 11.7,
420
- main: {
421
- name: "No",
422
- startIcon: "ApproveIcon",
423
- variant: "contained",
424
- color: "info",
425
- type: "text",
426
- onClick: "Delete_Components",
427
- size: "small",
428
- },
429
- style: {
430
- marginBottom: "8px",
431
- width:{xs:"100%",sm:"100%",md:"25%",lg:"20%"},
432
- float: "right",
433
439
  },
434
440
  },
435
441
  },
@@ -79,8 +79,15 @@ export default (funcParams: funcParamsProps) => {
79
79
  const response = saveFormdataInLocalStorage(store.ctx.core.data)
80
80
  store.setFormdata(response);
81
81
  },
82
- deletePopUp: function(){
83
- store.updateDialog("popUp");
82
+ deletePopUpEvent: function(){
83
+ store.updateDialog("popUpEvent");
84
+ },
85
+ deletePopUpComponent: function(){
86
+ store.updateDialog("popUpComponent");
87
+ },
88
+
89
+ testDelComp: function(){
90
+ console.log("yes fun called");
84
91
  }
85
92
  }
86
93
  };