impaktapps-ui-builder 1.0.621 → 1.0.622

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 (100) hide show
  1. package/dist/impaktapps-ui-builder.es.js +2002 -897
  2. package/dist/impaktapps-ui-builder.es.js.map +1 -1
  3. package/dist/impaktapps-ui-builder.umd.js +15 -15
  4. package/dist/impaktapps-ui-builder.umd.js.map +1 -1
  5. package/dist/src/impaktapps-ui-builder/builder/build/buildAreaGraph.d.ts +2 -0
  6. package/dist/src/impaktapps-ui-builder/builder/build/buildCamera.d.ts +1 -0
  7. package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +1 -0
  8. package/dist/src/impaktapps-ui-builder/builder/build/buildGroupButton.d.ts +1 -0
  9. package/dist/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.d.ts +1 -0
  10. package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.d.ts +1 -0
  11. package/dist/src/impaktapps-ui-builder/builder/build/buildImage.d.ts +1 -0
  12. package/dist/src/impaktapps-ui-builder/builder/build/buildMetricCard.d.ts +1 -0
  13. package/dist/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.d.ts +1 -0
  14. package/dist/src/impaktapps-ui-builder/builder/build/buildPdfViewer.d.ts +1 -0
  15. package/dist/src/impaktapps-ui-builder/builder/build/buildPopover.d.ts +1 -0
  16. package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.d.ts +2 -0
  17. package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +2 -1
  18. package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +4 -1
  19. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +1 -1
  20. package/dist/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.d.ts +22 -0
  21. package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +173 -171
  22. package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +18 -50
  23. package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +50 -4
  24. package/dist/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.d.ts +22 -0
  25. package/dist/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.d.ts +13 -0
  26. package/dist/src/impaktapps-ui-builder/builder/build/uischema/metricCard.d.ts +17 -0
  27. package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +1 -0
  28. package/dist/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.d.ts +19 -0
  29. package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +1 -0
  30. package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +15 -66
  31. package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
  32. package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +2 -1
  33. package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -0
  34. package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +5 -2
  35. package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +8 -4
  36. package/package.json +1 -1
  37. package/src/impaktapps-ui-builder/builder/build/buildAreaGraph.ts +66 -0
  38. package/src/impaktapps-ui-builder/builder/build/buildArray.ts +13 -0
  39. package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +50 -0
  40. package/src/impaktapps-ui-builder/builder/build/buildCard.ts +10 -10
  41. package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +23 -9
  42. package/src/impaktapps-ui-builder/builder/build/buildDate.ts +35 -13
  43. package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +7 -0
  44. package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +4 -0
  45. package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +42 -28
  46. package/src/impaktapps-ui-builder/builder/build/buildGroupButton.ts +24 -0
  47. package/src/impaktapps-ui-builder/builder/build/buildHierarchyChart.ts +35 -0
  48. package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +9 -3
  49. package/src/impaktapps-ui-builder/builder/build/buildHorizontalLayout.ts +15 -0
  50. package/src/impaktapps-ui-builder/builder/build/buildImage.ts +38 -0
  51. package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
  52. package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +3 -0
  53. package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +9 -3
  54. package/src/impaktapps-ui-builder/builder/build/buildMetricCard.tsx +37 -0
  55. package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +9 -0
  56. package/src/impaktapps-ui-builder/builder/build/buildOTP_inputs.ts +44 -0
  57. package/src/impaktapps-ui-builder/builder/build/buildPdfViewer.ts +16 -0
  58. package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +6 -3
  59. package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
  60. package/src/impaktapps-ui-builder/builder/build/buildPopover.ts +40 -0
  61. package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +31 -21
  62. package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +10 -2
  63. package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +9 -0
  64. package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +9 -3
  65. package/src/impaktapps-ui-builder/builder/build/buildStackBarLineGraph.ts +72 -0
  66. package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +5 -0
  67. package/src/impaktapps-ui-builder/builder/build/buildTable.ts +21 -11
  68. package/src/impaktapps-ui-builder/builder/build/buildText.ts +9 -0
  69. package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +144 -124
  70. package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +6 -0
  71. package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +7 -2
  72. package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +4 -1
  73. package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +315 -21
  74. package/src/impaktapps-ui-builder/builder/build/uischema/buttonGroup.ts +17 -0
  75. package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +142 -169
  76. package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +74 -19
  77. package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +30 -54
  78. package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +1 -1
  79. package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +37 -4
  80. package/src/impaktapps-ui-builder/builder/build/uischema/hierarchyChart.ts +13 -0
  81. package/src/impaktapps-ui-builder/builder/build/uischema/horizontalLayout.ts +11 -0
  82. package/src/impaktapps-ui-builder/builder/build/uischema/metricCard.ts +13 -0
  83. package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +2 -0
  84. package/src/impaktapps-ui-builder/builder/build/uischema/pdfViewer.ts +18 -0
  85. package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +2 -0
  86. package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +34 -60
  87. package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
  88. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +219 -75
  89. package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +61 -1
  90. package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +94 -106
  91. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +4 -3
  92. package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +31 -55
  93. package/src/impaktapps-ui-builder/builder/services/component.ts +174 -86
  94. package/src/impaktapps-ui-builder/builder/services/event.ts +3 -0
  95. package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +18 -15
  96. package/src/impaktapps-ui-builder/builder/services/utils.ts +15 -3
  97. package/src/impaktapps-ui-builder/lib/index.ts +10 -9
  98. package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +42 -22
  99. package/src/impaktapps-ui-builder/runtime/services/events.ts +9 -11
  100. package/src/impaktapps-ui-builder/runtime/services/service.ts +118 -158
@@ -49,12 +49,44 @@ export const PageMasterUiSchema: any = (theme) => {
49
49
  required: true,
50
50
  },
51
51
  },
52
+ },
53
+ {
54
+ type: "Control",
55
+ scope: "#/properties/pageIconUrl",
56
+
57
+ options: {
58
+ widget: "InputField",
59
+ },
60
+ config: {
61
+ layout: { xs: 6, sm: 6, md: 4, lg: 3 },
62
+ main: {
63
+ label: "Page Icon URL",
64
+ options: [],
65
+ color: "secondary",
66
+ required: true,
67
+ },
68
+ },
69
+ },
70
+ {
71
+ type: "Control",
72
+ scope: "#/properties/hasBackIcon",
73
+
74
+ options: {
75
+ widget: "RadioInputField",
76
+ },
77
+ config: {
78
+ layout: { xs: 12, sm: 6, md: 4, lg: 3 },
79
+ main: {
80
+ label: "Back Icon",
81
+ options: [{label: "Yes",const: "YES"}, {label: "No",const: "NO"}],
82
+ },
83
+ },
52
84
  },
53
85
  {
54
86
  type: "Control",
55
87
  scope: "#/properties/EmptyBox",
56
88
  config: {
57
- layout: { xs: 0, sm: 0, md: 4, lg: 6 },
89
+ layout: { xs: 0, sm: 6, md: 0, lg: 3 },
58
90
  },
59
91
  options: {
60
92
  widget: "EmptyBox",
@@ -159,91 +191,70 @@ export const PageMasterUiSchema: any = (theme) => {
159
191
  disableAction: true,
160
192
  disableSelection: true,
161
193
  enableDrag: true,
162
- }
163
- },
164
- elements: [
165
- {
166
- accessorKey: "name",
167
- header: "Name",
168
- size: 300,
169
- type: "string"
170
- },
171
- {
172
- accessorKey: "type",
173
- header: "Type",
174
- size: 300,
175
- type: "string"
176
194
  },
177
- {
178
- header: "Edit",
179
- field: "Reject_Records",
180
- size: 150,
181
- type: "action",
182
- widget: {
195
+ action: [
196
+ {
183
197
  type: "Control",
184
198
  scope: "#/properties/RejectButton",
185
199
  options: {
186
- widget: "IconButton",
200
+ widget: "Button",
187
201
  },
188
202
  config: {
189
203
  main: {
190
- icon: "TableEditIcon",
204
+ size: "small",
205
+ startIcon: "EditIcon",
191
206
  onClick: "Edit_Components",
192
207
  tooltipMessage: "Edit This Record",
193
- },
194
- style: {
195
- fill: theme.palette.primary.main,
196
- "& :hover": {
197
- fill: theme.palette.primary.dark,
198
- },
208
+ name: "Edit"
199
209
  },
200
210
  },
201
211
  },
202
- },
203
- {
204
- header: "Delete",
205
- field: "Reject_Records",
206
- size: 150,
207
- type: "action",
208
- widget: {
212
+ {
209
213
  type: "Control",
210
214
  scope: "#/properties/RejectButton",
211
215
  options: {
212
- widget: "IconButton",
216
+ widget: "Button",
213
217
  },
214
218
  config: {
215
219
  main: {
216
- icon: "Bin",
220
+ size: "small",
221
+ startIcon: "Bin",
217
222
  onClick: "deletePopUpComponent",
218
223
  tooltipMessage: "Reject This Record",
219
- },
220
- style: {
221
- fill: theme.palette.primary.main,
222
- "& :hover": {
223
- fill: theme.palette.primary.dark,
224
- },
224
+ name: "Delete"
225
225
  },
226
226
  },
227
227
  },
228
- },
229
- {
230
- header: "Copy",
231
- field: "Copy_Component",
232
- flex: 1,
233
- widget: {
228
+ {
234
229
  type: "Control",
235
230
  scope: "#/properties/Copy_Component",
236
231
  options: {
237
- widget: "IconButton",
232
+ widget: "Button",
238
233
  },
239
234
  config: {
240
235
  main: {
241
- icon: "FileCopyIcon",
236
+ size: "small",
237
+ startIcon: "FileCopyIcon",
242
238
  onClick: "copyPasteElement",
243
- styleDefault: true,
239
+ styleDefault: false,
240
+ name: "Copy"
244
241
  },
245
242
  },
246
243
  },
244
+ ]
245
+ },
246
+ elements: [
247
+ {
248
+ accessorKey: "name",
249
+ header: "Name",
250
+ size: 300,
251
+ type: "string"
252
+ },
253
+ {
254
+ accessorKey: "type",
255
+ header: "Type",
256
+ size: 300,
257
+ type: "string"
247
258
  },
248
259
  ]
249
260
  },
@@ -321,93 +332,70 @@ export const PageMasterUiSchema: any = (theme) => {
321
332
  enableDrag: true,
322
333
 
323
334
  },
324
- },
325
- elements: [
326
-
327
- {
328
- accessorKey: "eventType",
329
- header: "Event's Type",
330
- size: 300,
331
- type: "string"
332
- },
333
- {
334
- accessorKey: "Handler",
335
- header: "Handler",
336
- size: 200,
337
- type: "string"
338
- },
339
- {
340
- accessorKey: "Edit_Approve_Records",
341
- header: "Edit",
342
- type: "action",
343
- size: 150,
344
- widget: {
335
+ action: [
336
+ {
345
337
  type: "Control",
346
338
  scope: "#/properties/Edit_Records",
347
339
  options: {
348
- widget: "IconButton",
340
+ widget: "Button",
349
341
  },
350
342
  config: {
351
343
  main: {
352
344
  size: "small",
353
- icon: "TableEditIcon",
345
+ startIcon: "EditIcon",
354
346
  tooltipMessage: "Edit This Record",
355
347
  onClick: "editEvent",
356
- },
357
- style: {
358
- fill: theme.palette.primary.main,
359
- "& :hover": {
360
- fill: theme.palette.primary.dark,
361
- },
348
+ name: "Edit"
362
349
  },
363
350
  },
364
351
  },
365
- },
366
- {
367
- accessorKey: "Reject_Records",
368
- header: "Delete",
369
- type: "action",
370
- size: 150,
371
- widget: {
352
+ {
372
353
  type: "Control",
373
354
  scope: "#/properties/RejectButton",
374
355
  options: {
375
- widget: "IconButton",
356
+ widget: "Button",
376
357
  },
377
358
  config: {
378
359
  main: {
379
- icon: "Bin",
360
+ size: "small",
361
+ startIcon: "Bin",
380
362
  tooltipMessage: "Reject This Record",
381
363
  onClick: "deletePopUpEvent",
382
- },
383
- style: {
384
- fill: theme.palette.primary.main,
385
- "& :hover": {
386
- fill: theme.palette.primary.dark,
387
- },
364
+ name: "Delete"
388
365
  },
389
366
  },
390
367
  },
391
- },
392
- {
393
- header: "Copy",
394
- field: "Copy_Event",
395
- type: "action",
396
- size: 150,
397
- widget: {
368
+ {
398
369
  type: "Control",
399
370
  scope: "#/properties/Copy_Event",
400
371
  options: {
401
- widget: "IconButton",
372
+ widget: "Button",
402
373
  },
403
374
  config: {
404
375
  main: {
405
- icon: "FileCopyIcon",
376
+ size: "small",
377
+ startIcon: "FileCopyIcon",
406
378
  onClick: "copyPasteElement",
407
379
  styleDefault: true,
380
+ name: "Copy"
408
381
  },
409
382
  },
410
383
  },
384
+ ]
385
+ },
386
+ elements: [
387
+
388
+ {
389
+ accessorKey: "eventType",
390
+ header: "Event's Type",
391
+ size: 300,
392
+ type: "string"
393
+ },
394
+ {
395
+ accessorKey: "Handler",
396
+ header: "Handler",
397
+ size: 200,
398
+ type: "string"
411
399
  },
412
400
  ]
413
401
  },
@@ -53,9 +53,10 @@ export const EventSchema = {
53
53
  { title: "Row Movement", const: "onRowMovement" },
54
54
  { title: "Download", const: "onDownload" },
55
55
  { title: "Fail", const: "Fail" },
56
+ { title: "onClose", const: "onClose" },
56
57
  { title: "Key Down", const: "onKeyDown" },
57
-
58
-
58
+ { title: "Set Style", const: "setStyle" },
59
+ { title: "Expand Node", const: "onNodeExpandChange" },
59
60
  ]
60
61
  },
61
62
  Handler: {
@@ -72,7 +73,7 @@ export const EventSchema = {
72
73
  oneOf: [
73
74
  { title: "RankProvider", const: "RankProvider" },
74
75
  { title: "Download File", const: "downloadFile" },
75
- { title: "Download", const: "download" },
76
+ { title: "downloadFileFromUrl", const: "downloadFileFromUrl" },
76
77
  ]
77
78
  },
78
79
  body: {
@@ -145,94 +145,70 @@ export const EventUiSchema: any = (theme) => {
145
145
  enableDrag: true,
146
146
 
147
147
  },
148
- },
149
- elements: [
150
-
151
- {
152
- accessorKey: "eventType",
153
- header: "Event's Type",
154
- size: 300,
155
- type: "string"
156
- },
157
- {
158
- accessorKey: "Handler",
159
- header: "Handler",
160
- size: 200,
161
- type: "string"
162
- },
163
- {
164
- accessorKey: "Edit_Approve_Records",
165
- header: "Edit",
166
- type: "action",
167
- size: 150,
168
- widget: {
148
+ action: [
149
+ {
169
150
  type: "Control",
170
151
  scope: "#/properties/Edit_Records",
171
152
  options: {
172
- widget: "IconButton",
153
+ widget: "Button",
173
154
  },
174
155
  config: {
175
156
  main: {
176
157
  size: "small",
177
- icon: "TableEditIcon",
158
+ startIcon: "EditIcon",
178
159
  tooltipMessage: "Edit This Record",
179
160
  onClick: "editEvent",
180
- },
181
- style: {
182
- fill: theme.palette.primary.main,
183
- "& :hover": {
184
- fill: theme.palette.primary.dark,
185
- },
161
+ name: "Edit"
186
162
  },
187
163
  },
188
164
  },
189
- },
190
- {
191
- accessorKey: "Reject_Records",
192
- header: "Delete",
193
- type: "action",
194
- size: 150,
195
- widget: {
165
+ {
196
166
  type: "Control",
197
167
  scope: "#/properties/RejectButton",
198
168
  options: {
199
- widget: "IconButton",
169
+ widget: "Button",
200
170
  },
201
171
  config: {
202
172
  main: {
203
- icon: "Bin",
173
+ startIcon: "Bin",
204
174
  tooltipMessage: "Reject This Record",
205
175
  onClick: "deletePopUpEvent",
206
- },
207
- style: {
208
- fill: theme.palette.primary.main,
209
- "& :hover": {
210
- fill: theme.palette.primary.dark,
211
- },
176
+ name: "Delete",
177
+ size: "small"
212
178
  },
213
179
  },
214
180
  },
215
- },
216
-
217
- {
218
- header: "Copy",
219
- field: "Copy_Event",
220
- type: "action",
221
- size: 150,
222
- widget: {
181
+ {
223
182
  type: "Control",
224
183
  scope: "#/properties/Copy_Event",
225
184
  options: {
226
- widget: "IconButton",
185
+ widget: "Button",
227
186
  },
228
187
  config: {
229
188
  main: {
230
- icon: "FileCopyIcon",
189
+ startIcon: "FileCopyIcon",
231
190
  onClick: "copyPasteElement",
232
- styleDefault: true,
191
+ styleDefault: false,
192
+ name: "Copy",
193
+ size: "small"
233
194
  },
234
195
  },
235
196
  },
197
+ ]
198
+ },
199
+ elements: [
200
+
201
+ {
202
+ accessorKey: "eventType",
203
+ header: "Event's Type",
204
+ size: 300,
205
+ type: "string"
206
+ },
207
+ {
208
+ accessorKey: "Handler",
209
+ header: "Handler",
210
+ size: 200,
211
+ type: "string"
236
212
  },
237
213
  ]
238
214
  }