impaktapps-ui-builder 0.0.100 → 0.0.101-alpha.1

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.
Files changed (62) hide show
  1. package/dist/impaktapps-ui-builder.es.js +1908 -1475
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +17 -17
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -1
  8. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +94 -23
  9. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +55 -2
  10. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +52 -22
  11. package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +10 -301
  12. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +6 -1
  14. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +50 -2
  15. package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +1 -14
  17. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +3 -0
  18. package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +3 -0
  19. package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +8 -2
  20. package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +5 -0
  21. package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +5 -0
  22. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -1
  23. package/package.json +5 -1
  24. package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +2 -0
  25. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +7 -3
  26. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +7 -2
  27. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +18 -14
  28. package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +1 -1
  29. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +18 -13
  30. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +10 -2
  31. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +22 -0
  32. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +4 -15
  33. package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +4 -10
  34. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +16 -4
  35. package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
  36. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +11 -0
  37. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +16 -19
  38. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +17 -10
  39. package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -1
  40. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +103 -46
  41. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +44 -0
  42. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +13 -28
  43. package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +10 -366
  44. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  45. package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +1 -1
  46. package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +1 -1
  47. package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +1 -1
  48. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +45 -1
  49. package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
  50. package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +2 -16
  51. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +6 -1
  52. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +424 -202
  53. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +4 -1
  54. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +479 -167
  55. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -1
  56. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +339 -111
  57. package/src/impaktapps-ui-builder/builder/services/component.ts +94 -8
  58. package/src/impaktapps-ui-builder/builder/services/event.ts +19 -4
  59. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +20 -2
  60. package/src/impaktapps-ui-builder/builder/services/utils.ts +2 -2
  61. package/src/impaktapps-ui-builder/runtime/services/events.ts +23 -19
  62. package/src/impaktapps-ui-builder/runtime/services/service.ts +108 -3
@@ -83,7 +83,10 @@ export const EventSchema = {
83
83
  },
84
84
  },
85
85
  },
86
- }
86
+ },
87
+ RemoveItemButton:{
88
+ disabled: true,
89
+ },
87
90
  },
88
91
  required:["eventType","Handler"]
89
92
  }
@@ -106,6 +106,30 @@ export const EventUiSchema: any = (theme) => {
106
106
  },
107
107
  }
108
108
  },
109
+
110
+ {
111
+ widget: {
112
+ type: "Control",
113
+ scope: "#/properties/Paste_Event",
114
+
115
+ options: {
116
+ widget: "IconButton",
117
+ },
118
+ config: {
119
+ main: {
120
+ // color: "info",
121
+ onClick: "copyPasteElement",
122
+ size: "small",
123
+ icon: "PasteIcon",
124
+ iconLabel: "Paste",
125
+ styleDefault: true,
126
+ },
127
+ style: {
128
+ mt: "6px",
129
+ },
130
+ },
131
+ }
132
+ },
109
133
  ]
110
134
  },
111
135
  disableAction: true,
@@ -166,20 +190,88 @@ export const EventUiSchema: any = (theme) => {
166
190
  },
167
191
  },
168
192
  },
193
+
194
+ {
195
+ header: "Copy",
196
+ field: "Copy_Event",
197
+ flex: 1,
198
+ widget: {
199
+ type: "Control",
200
+ scope: "#/properties/Copy_Event",
201
+ options: {
202
+ widget: "IconButton",
203
+ },
204
+ config: {
205
+ main: {
206
+ icon: "FileCopyIcon",
207
+ // color: "error",
208
+ onClick: "copyPasteElement",
209
+ styleDefault: true,
210
+ },
211
+ },
212
+ },
213
+ },
169
214
  ]
170
215
  // }]
171
216
  }
172
217
  ],
173
218
  },
174
219
  {
175
- type: "Control",
176
- scope: "#/properties/EmptyBox",
177
- options: {
178
- widget: "EmptyBox",
179
- },
220
+ type: "HorizontalLayout",
180
221
  config: {
181
- layout: { xs: 4, sm: 8 },
222
+ layout:{xs:12,sm: 6}
182
223
  },
224
+ elements: [
225
+ {
226
+ type: "Control",
227
+ scope: "#/properties/RemoveItemButton",
228
+ options: {
229
+ widget: "IconButton",
230
+ },
231
+ config: {
232
+ layout: { xs: 1, sm: 1 },
233
+ main: {
234
+ onClick: "RemoveItemButton",
235
+ size: "large",
236
+ icon: "RejectIcon",
237
+ styleDefault: true,
238
+ },
239
+ style:{
240
+ marginLeft: "-10px"
241
+ }
242
+ },
243
+ },
244
+ {
245
+ type: "Control",
246
+ scope: "#/properties/copiedElementDetails",
247
+
248
+ options: {
249
+ widget: "Box",
250
+ },
251
+ config: {
252
+ layout: { xs: 6, sm: 6 },
253
+ main: {
254
+ heading: "No element copied",
255
+ },
256
+ style: {
257
+ color: "#535557",
258
+ marginLeft: "-10px",
259
+ fontSize: "12px",
260
+ marginTop: "4px"
261
+ },
262
+ },
263
+ },
264
+ {
265
+ type: "Control",
266
+ scope: "#/properties/EmptyBox",
267
+ options: {
268
+ widget: "EmptyBox",
269
+ },
270
+ config: {
271
+ layout: { xs: 1, sm: 5 },
272
+ },
273
+ },
274
+ ]
183
275
  },
184
276
  {
185
277
  type: "Control",
@@ -237,89 +329,119 @@ export const EventUiSchema: any = (theme) => {
237
329
  layout: {
238
330
  xs: 12,
239
331
  sm: 12,
240
- md: 6,
241
- lg: 6,
332
+ md: 12,
333
+ lg: 12,
242
334
  },
243
335
  main: {
336
+ title: "WARNING!"
244
337
  },
245
338
  style: {
246
- "& .MuiPaper-root":{
247
- width: '30%',
248
- },
249
- "& .MuiTypography-root":{
250
- padding: 0
251
- },
252
- wrapperStyle: {
253
- width: { xs: "100%", sm: "100%", md: "98%" },
254
- }
255
339
  }
256
340
  },
257
341
  elements:
258
342
  [
259
343
  {
260
344
  type: "Control",
261
- scope: "#/properties/label",
345
+ scope: "#/properties/popupText",
262
346
  options: {
263
347
  widget: "Box",
264
348
  },
265
349
  config: {
266
- layout: 12,
350
+ layout: 11,
267
351
  main: {
268
352
  heading: "Are you sure you want to delete ?",
269
353
  },
270
- style: {
271
- marginTop: "-40px"
354
+ style:{
355
+ marginTop: "-20px",
356
+ fontSize: "20px",
357
+ "&.MuiTypography-root": {
358
+ padding: "10px 30px 20px 30px",
359
+ textAlign: "center",
360
+ lineHeight: "1"
361
+ }
272
362
  }
273
363
  },
274
364
  },
275
365
  {
276
- type: "Control",
277
- scope: "#/properties/EmptyBox",
278
- options: {
279
- widget: "EmptyBox",
280
- },
366
+ type: "WrapperLayout",
281
367
  config: {
368
+ layout: 11,
282
369
  main: {},
283
- layout: { xs: 11, sm: 5.5, md: 5.5, lg: 5.5 },
284
- },
285
- },
286
- {
287
- type: "Control",
288
- scope: "#/properties/ConfirmDeleteEventButton",
289
- options: {
290
- widget: "Button",
370
+
291
371
  },
292
- config: {
293
- layout: 3,
294
- main: {
295
- name: "Yes",
296
- startIcon: "ApproveIcon",
297
- variant: "contained",
298
- color: "error",
299
- type: "text",
300
- onClick: "deleteEvent",
301
- size: "small",
372
+ elements: [
373
+ {
374
+ type: "Control",
375
+ scope: "#/properties/CancelDeleteEventButton",
376
+ options: {
377
+ widget: "Button",
378
+ },
379
+ config: {
380
+ layout: 6,
381
+ main: {
382
+ name: "No",
383
+ startIcon: "ApproveIcon",
384
+ variant: "contained",
385
+ color: "info",
386
+ type: "text",
387
+ onClick: "deletePopUpEvent",
388
+ size: "large",
389
+ },
390
+ style: {
391
+ position: "absolute",
392
+ bottom: 0,
393
+ left: 0,
394
+ width: "50%",
395
+ borderRadius: 0,
396
+ boxShadow: 0,
397
+ backgroundColor: "transparent",
398
+ color: theme.palette.primary.main,
399
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
400
+ borderRight: `0.5px solid ${theme.palette.grey[600]}`,
401
+ "&:hover": {
402
+ color: theme.palette.primary.contrastText,
403
+ backgroundColor: theme.palette.primary.main,
404
+ boxShadow: "none"
405
+ }
406
+ }
407
+ },
302
408
  },
303
- },
304
- },
305
- {
306
- type: "Control",
307
- scope: "#/properties/CancelDeleteEventButton",
308
- options: {
309
- widget: "Button",
310
- },
311
- config: {
312
- layout: 3,
313
- main: {
314
- name: "No",
315
- startIcon: "ApproveIcon",
316
- variant: "contained",
317
- color: "info",
318
- type: "text",
319
- onClick: "deletePopUpEvent",
320
- size: "small",
409
+ {
410
+ type: "Control",
411
+ scope: "#/properties/ConfirmDeleteEventButton",
412
+ options: {
413
+ widget: "Button",
414
+ },
415
+ config: {
416
+ layout: 6,
417
+ main: {
418
+ name: "Yes",
419
+ startIcon: "ApproveIcon",
420
+ variant: "contained",
421
+ color: "error",
422
+ type: "text",
423
+ onClick: "deleteEvent",
424
+ size: "large",
425
+ },
426
+ style: {
427
+ position: "absolute",
428
+ bottom: 0,
429
+ right: 0,
430
+ width: "50%",
431
+ borderRadius: 0,
432
+ boxShadow: 0,
433
+ backgroundColor: "transparent",
434
+ color: theme.palette.error.main,
435
+ borderTop: `0.5px solid ${theme.palette.grey[600]}`,
436
+ "&:hover": {
437
+ color: theme.palette.error.contrastText,
438
+ backgroundColor: theme.palette.error.main,
439
+ boxShadow: "none"
440
+ }
441
+ }
442
+ },
321
443
  },
322
- },
444
+ ]
323
445
  },
324
446
  ]
325
447
  },
@@ -331,26 +453,130 @@ export const EventUiSchema: any = (theme) => {
331
453
  },
332
454
  layout: 6,
333
455
  },
456
+ // {
457
+ // type: "HorizontalLayout",
458
+ // config: {
459
+ // main: {
460
+ // direction: 'row'
461
+ // },
462
+ // style: {
463
+ // flexDirection: "row",
464
+ // position: "absolute",
465
+ // bottom: 0,
466
+ // marginBottom: '-8px',
467
+ // height: 'fit-content',
468
+ // overflow: 'hidden',
469
+ // zIndex: 1000,
470
+ // width: 'inherit'
471
+ // }
472
+ // },
473
+ // elements: [
474
+ // {
475
+
476
+ // type: "Control",
477
+ // scope: "#/properties/FooterText",
478
+ // options: {
479
+ // widget: "Box",
480
+ // },
481
+ // config: {
482
+ // main: {
483
+ // heading: "Copywriter@ACT21.IO"
484
+ // },
485
+ // style: {
486
+ // color: theme?.palette?.text.disabled || "#AFAFAF",
487
+ // fontSize: '12px',
488
+ // textAlign: 'center',
489
+ // lineHeight: 2,
490
+ // width: 'fit-content',
491
+ // left: '50%',
492
+ // position: 'relative',
493
+ // margin: 0,
494
+ // flexGrow: 1,
495
+ // height: 0,
496
+ // transform: "translate(-50%,0%)"
497
+ // }
498
+ // },
499
+ // },
500
+ // {
501
+ // type: "Control",
502
+ // scope: "#/properties/backIcon",
503
+ // options: {
504
+ // widget: "Box",
505
+ // },
506
+ // config: {
507
+ // main: {
508
+ // iconName: 'PrevIcon',
509
+ // onClick: "backHandler",
510
+ // width: 'fit-content',
511
+ // },
512
+ // style: {
513
+ // fill: theme.palette.primary.main,
514
+ // width: 20,
515
+ // height: 0,
516
+ // margin: 0,
517
+ // top: 0,
518
+ // right: {xs: '12px', sm: '84px'},
519
+ // position: 'absolute',
520
+ // fontSize: '12px',
521
+ // cursor: 'pointer',
522
+ // ':hover': {
523
+ // fill: theme.palette.primary.dark,
524
+ // }
525
+ // }
526
+ // }
527
+ // },
528
+ // {
529
+ // type: "Control",
530
+ // scope: "#/properties/text",
531
+
532
+ // options: {
533
+ // widget: "Box",
534
+ // },
535
+ // config: {
536
+ // main: {
537
+ // heading: "Previous Page",
538
+ // onClick: "backHandler"
539
+ // },
540
+ // style: {
541
+ // display: {xs: 'none', sm: "flex"},
542
+ // textAlign: 'left',
543
+ // lineHeight: 1,
544
+ // height: 0,
545
+ // width: 'fit-content',
546
+ // color: theme.palette.primary.main,
547
+ // fontSize: "12px",
548
+ // cursor: 'pointer',
549
+ // marginLeft: '2px',
550
+ // marginRight: 0,
551
+ // top: 3,
552
+ // right: '12px',
553
+ // position: 'absolute',
554
+ // ':hover': {
555
+ // color: theme.palette.primary.dark,
556
+ // }
557
+ // }
558
+ // },
559
+ // },
560
+ // ]
561
+ // }
334
562
  {
335
563
  type: "HorizontalLayout",
336
564
  config: {
337
565
  main: {
338
- direction: 'row'
566
+ direction: "row",
339
567
  },
340
568
  style: {
341
569
  flexDirection: "row",
342
570
  position: "absolute",
343
571
  bottom: 0,
344
- marginBottom: '-8px',
345
- height: 'fit-content',
346
- overflow: 'hidden',
572
+ height: "fit-content",
573
+ overflow: "hidden",
347
574
  zIndex: 1000,
348
- width: 'inherit'
349
- }
575
+ width: "inherit",
576
+ },
350
577
  },
351
578
  elements: [
352
579
  {
353
-
354
580
  type: "Control",
355
581
  scope: "#/properties/FooterText",
356
582
  options: {
@@ -358,83 +584,85 @@ export const EventUiSchema: any = (theme) => {
358
584
  },
359
585
  config: {
360
586
  main: {
361
- heading: "Copywriter@ACT21.IO"
587
+ heading: "Copywriter@ACT21.IO",
362
588
  },
363
589
  style: {
364
- color: theme?.palette?.text.disabled || "#AFAFAF",
365
- fontSize: '12px',
366
- textAlign: 'center',
367
- lineHeight: 1,
368
- width: 'fit-content',
369
- left: '50%',
370
- position: 'relative',
590
+ color: theme?.palette?.text?.disabled || "#AFAFAF",
591
+ fontSize: "11px",
592
+ textAlign: "center",
593
+ lineHeight: 2,
594
+ width: "fit-content",
595
+ left: "50%",
596
+ position: "relative",
371
597
  margin: 0,
372
598
  flexGrow: 1,
373
- height: 0
374
- }
599
+ height: 0,
600
+ transform: "translate(-50%, 0%)",
601
+ },
375
602
  },
376
603
  },
377
604
  {
378
605
  type: "Control",
379
- scope: "#/properties/backIcon",
606
+ scope: "#/properties/FooterBackIcon",
380
607
  options: {
381
608
  widget: "Box",
382
609
  },
383
610
  config: {
384
611
  main: {
385
- iconName: 'PrevIcon',
612
+ iconName: "PrevIcon",
386
613
  onClick: "backHandler",
387
- width: 'fit-content',
614
+ width: "fit-content",
388
615
  },
389
616
  style: {
390
- fill: theme.palette.primary.main,
617
+ fill: theme?.palette?.primary?.main,
391
618
  width: 20,
392
619
  height: 0,
393
- margin: 0,
620
+ // margin: 0,
394
621
  top: 0,
395
- right: {xs: '12px', sm: '84px'},
396
- position: 'absolute',
397
- fontSize: '12px',
398
- cursor: 'pointer',
399
- ':hover': {
400
- fill: theme.palette.primary.dark,
401
- }
402
- }
403
- }
622
+ right: { xs: "12px", sm: "84px" },
623
+ position: "absolute",
624
+ fontSize: "12px",
625
+ cursor: "pointer",
626
+ ":hover": {
627
+ fill: theme?.palette?.primary?.dark,
628
+ },
629
+ marginRight: "20px",
630
+ },
631
+ },
404
632
  },
405
633
  {
406
634
  type: "Control",
407
- scope: "#/properties/text",
408
-
635
+ scope: "#/properties/FooterBackHandlerText",
409
636
  options: {
410
637
  widget: "Box",
411
638
  },
412
639
  config: {
413
640
  main: {
414
641
  heading: "Previous Page",
415
- onClick: "backHandler"
642
+ onClick: "backHandler",
416
643
  },
417
644
  style: {
418
- display: {xs: 'none', sm: "flex"},
419
- textAlign: 'left',
645
+ display: { xs: "none", sm: "flex" },
646
+ textAlign: "left",
420
647
  lineHeight: 1,
421
648
  height: 0,
422
- width: 'fit-content',
423
- color: theme.palette.primary.main,
649
+ width: "fit-content",
650
+ color: theme?.palette?.primary?.main,
424
651
  fontSize: "12px",
425
- cursor: 'pointer',
426
- marginLeft: '2px',
427
- marginRight: 0,
652
+ cursor: "pointer",
653
+ marginLeft: "2px",
654
+
428
655
  top: 3,
429
- right: '12px',
430
- position: 'absolute',
431
- ':hover': {
432
- color: theme.palette.primary.dark,
433
- }
434
- }
656
+ right: "12px",
657
+ position: "absolute",
658
+ ":hover": {
659
+ color: theme?.palette?.primary?.dark,
660
+ },
661
+ marginRight: "4px",
662
+ },
435
663
  },
436
664
  },
437
- ]
665
+ ],
438
666
  }
439
667
  ],
440
668
  };